[03:21:46]OFD Sender: No OFD packet to send [03:21:51]OFD Sender: No OFD packet to send [03:21:56]OFD Sender: No OFD packet to send [03:22:01]OFD Sender: No OFD packet to send [03:22:06]OFD Sender: No OFD packet to send [03:22:11]OFD Sender: No OFD packet to send [03:22:16]OFD Sender: No OFD packet to send [03:22:21]OFD Sender: No OFD packet to send [03:22:26]OFD Sender: No OFD packet to send [03:22:31]OFD Sender: No OFD packet to send [03:22:36]OFD Sender: No OFD packet to send [03:22:41]OFD Sender: No OFD packet to send [03:22:46]OFD Sender: No OFD packet to send [03:22:51]OFD Sender: No OFD packet to send [03:22:56]OFD Sender: No OFD packet to send [03:23:01]OFD Sender: No OFD packet to send [03:23:06]OFD Sender: No OFD packet to send [03:23:11]OFD Sender: No OFD packet to send [03:23:16]OFD Sender: No OFD packet to send [03:23:21]OFD Sender: No OFD packet to send [03:23:26]OFD Sender: No OFD packet to send [03:23:31]OFD Sender: No OFD packet to send [03:23:36]OFD Sender: No OFD packet to send [03:23:41]OFD Sender: No OFD packet to send [03:23:46]OFD Sender: No OFD packet to send [03:23:51]OFD Sender: No OFD packet to send [03:23:56]OFD Sender: No OFD packet to send [03:24:01]OFD Sender: No OFD packet to send [03:24:06]OFD Sender: No OFD packet to send [03:24:11]OFD Sender: No OFD packet to send [03:24:16]OFD Sender: No OFD packet to send [03:24:21]OFD Sender: No OFD packet to send [03:24:26]OFD Sender: No OFD packet to send [03:24:31]OFD Sender: No OFD packet to send [03:24:36]OFD Sender: No OFD packet to send [03:24:41]OFD Sender: No OFD packet to send [03:24:46]OFD Sender: No OFD packet to send [03:24:51]OFD Sender: No OFD packet to send [03:24:56]OFD Sender: No OFD packet to send [03:25:01]OFD Sender: No OFD packet to send [03:25:06]OFD Sender: No OFD packet to send [03:25:11]OFD Sender: No OFD packet to send [03:25:16]OFD Sender: No OFD packet to send [03:25:21]OFD Sender: No OFD packet to send [03:25:26]OFD Sender: No OFD packet to send [03:25:31]OFD Sender: No OFD packet to send [03:25:36]OFD Sender: No OFD packet to send [03:25:41]OFD Sender: No OFD packet to send [03:25:46]OFD Sender: No OFD packet to send [03:25:51]OFD Sender: No OFD packet to send [03:25:56]OFD Sender: No OFD packet to send [03:26:01]OFD Sender: No OFD packet to send [03:26:06]OFD Sender: No OFD packet to send [03:26:11]OFD Sender: No OFD packet to send [03:26:16]OFD Sender: No OFD packet to send [03:26:21]OFD Sender: No OFD packet to send [03:26:26]OFD Sender: No OFD packet to send [03:26:31]OFD Sender: No OFD packet to send [03:26:36]OFD Sender: No OFD packet to send [03:26:41]OFD Sender: No OFD packet to send [03:26:46]OFD Sender: No OFD packet to send [03:26:51]OFD Sender: No OFD packet to send [03:26:56]OFD Sender: No OFD packet to send [03:27:01]OFD Sender: No OFD packet to send [03:27:06]OFD Sender: No OFD packet to send [03:27:11]OFD Sender: No OFD packet to send [03:27:16]OFD Sender: No OFD packet to send [03:27:21]OFD Sender: No OFD packet to send [03:27:26]OFD Sender: No OFD packet to send [03:27:31]OFD Sender: No OFD packet to send [03:27:36]OFD Sender: No OFD packet to send [03:27:41]OFD Sender: No OFD packet to send [03:27:46]OFD Sender: No OFD packet to send [03:27:51]OFD Sender: No OFD packet to send [03:27:56]OFD Sender: No OFD packet to send [03:28:01]OFD Sender: No OFD packet to send [03:28:06]OFD Sender: No OFD packet to send [03:28:11]OFD Sender: No OFD packet to send [03:28:16]OFD Sender: No OFD packet to send [03:28:21]OFD Sender: No OFD packet to send [03:28:26]OFD Sender: No OFD packet to send [03:28:31]OFD Sender: No OFD packet to send [03:28:36]OFD Sender: No OFD packet to send [03:28:41]OFD Sender: No OFD packet to send [03:28:46]OFD Sender: No OFD packet to send [03:28:51]OFD Sender: No OFD packet to send [03:28:56]OFD Sender: No OFD packet to send [03:29:01]OFD Sender: No OFD packet to send [03:29:06]OFD Sender: No OFD packet to send [03:29:11]OFD Sender: No OFD packet to send [03:29:16]OFD Sender: No OFD packet to send [03:29:21]OFD Sender: No OFD packet to send [03:29:26]OFD Sender: No OFD packet to send [03:29:31]OFD Sender: No OFD packet to send [03:29:36]OFD Sender: No OFD packet to send [03:29:41]OFD Sender: No OFD packet to send [03:29:46]OFD Sender: No OFD packet to send [03:29:51]OFD Sender: No OFD packet to send [03:29:56]OFD Sender: No OFD packet to send [03:30:01]OFD Sender: No OFD packet to send [03:30:06]OFD Sender: No OFD packet to send [03:30: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:15]accept exits with 9 [03:36:15]New connection [03:36:15]New thread 3066858852 created [03:36:15]Thread 3066715492 joined [03:36:15]Waiting for new connection... [03:36:15] Sock 9.Parse request [03:36:15]Sock 9.Check first char [03:36:15]Sock 9.First char is OK [03:36:15]request: POST /json_proto HTTP/1.0 [03:36:15]Method: POST [03:36:15]URL: /json_proto [03:36:15]Method is POST - this is cgi request [03:36:15]url: /json_proto [03:36:15]query_string will be loaded in cgi processing [03:36:15]execute_cgi json_proto POST (null) [03:36:15]execute_cgi path=json_proto method=POST [03:36:15]POST find Content-Length [03:36:15]Host: 172.17.38.133:8080 [03:36:15]Content-Length: 824 [03:36:15]Content-Type: application/json [03:36:15] [03:36:15]POST finish read [03:36:15]Found Content-Length = 824 [03:36:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673476", "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 }]} ], "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" : 6000.40 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:36:15]execute_script... [03:36: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)673476", "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 }]} ], "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" : 6000.40 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:36:15]POST & json_proto [03:36:15]process_json_proto [03:36:15]json parsed OK: [03:36:15]protocol is kg_v1.0 [03:36:15]action value=close_receipt [03:36:15]process_action close_receipt [03:36:15]cmd_close_receipt [03:36:15]MH_GetDate [03:36:15]Write to MH i2c: F0 00 00 D4 0D D0 [03:36:15]Write i2c OK [03:36:15]MH_I2C_Read... [03:36:15]Read from MH i2c: F0 [03:36:15]MH_I2C_Read... [03:36:15]Read from MH i2c: F0 09 00 [03:36:15]MH_I2C_Read... [03:36:15]Read from MH i2c: F0 09 00 D4 0D 00 31 F5 74 66 BD 8F 7C 64 05 [03:36:15]GetLastDocTimeStamp 1718937518 [03:36:15]current date 1718940977 [03:36:15]FM_GetShiftState [03:36:15]SAM_PROTO_GetShiftState [03:36:15]wFMCommunicate request_size=4 [03:36:15]MH_SAM_APDU [03:36:15]CAPDU: 80 13 01 00 [03:36:15]Write to MH i2c: E2 08 00 D5 0D 80 13 01 00 00 00 00 00 5F [03:36:15]Write i2c OK [03:36:15]MH_I2C_Read... [03:36:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:36:15]Read from MH i2c: E2 [03:36:15]MH_I2C_Read... [03:36:15]Read from MH i2c: E2 0E 00 [03:36:15]MH_I2C_Read... [03:36:15]Read from MH i2c: E2 0E 00 D5 0D 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 72 [03:36:15]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [03:36:15]wFMCommunicate OK [03:36:15]SAM_PROTO_GetShiftState done [03:36:15]FM_GetShiftState done [03:36:15]opened in 1718929509 [03:36:15]opened+sec_in_day 1719015909 [03:36:15]quantity*price = 600039 [03:36:15]sum+1 = 600041 [03:36:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 6000.40 НСП 1% : 53.10 НДС 12% : 637.21 Наличными: 0.00 Безнал.: 6000.40 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 10 21.06.2024 03:36 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875093 ФД: 104087 ФПД: 8663587439147 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T033617&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104087&fm=8663587439147&tin=02508201610067®Number=0000000000092785&sum=600040 [03:36:16]StoreToDocumentArchive [03:36:16]shift 355 fd 104087 [03:36:16]save to /storage/0355/doc_00104087 [03:36:16]save last doc name /storage/0355/doc_00104087 to /storage/kkm_last_doc_name [03:36:16]save OK [03:36:16]Clear old archive folders... [03:36:16]ProcessDocumentItem done err = 0, tmpTLVsize=252 [03:36:16]tlvbuf is 0110D400 [03:36:16]SAM_PROTO_ClearQueue [03:36:16]wFMCommunicate request_size=4 [03:36:16]MH_SAM_APDU [03:36:16]CAPDU: 80 09 00 00 [03:36:16]Write to MH i2c: E2 08 00 E2 0D 80 09 00 00 00 00 00 00 61 [03:36:16]Write i2c OK [03:36:16]MH_I2C_Read... [03:36:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:36:16]Read from MH i2c: E2 [03:36:16]MH_I2C_Read... [03:36:16]Read from MH i2c: E2 03 00 [03:36:16]MH_I2C_Read... [03:36:16]Read from MH i2c: E2 03 00 E2 0D 00 90 00 63 [03:36:16]RAPDU: 90 00 [03:36:16]wFMCommunicate OK [03:36:16]SAM_PROTO_ClearQueue done [03:36:16]KKMCreateOFDPacket [03:36:16]OFDProtocolAddRootSTLVToBuf [03:36:16]FM_MakeSignedData [03:36:16]FM_MakeSignedData [03:36:16]SAM_PROTO_SignData [03:36:16]wFMCommunicate request_size=4 [03:36:16]MH_SAM_APDU [03:36:16]CAPDU: 80 0D 01 02 [03:36:16]Write to MH i2c: E2 08 00 E3 0D 80 0D 01 02 00 00 00 00 69 [03:36:16]Write i2c OK [03:36:16]MH_I2C_Read... [03:36:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:36:16]Read from MH i2c: E2 [03:36:16]MH_I2C_Read... [03:36:16]Read from MH i2c: E2 03 00 [03:36:16]MH_I2C_Read... [03:36:16]Read from MH i2c: E2 03 00 E3 0D 00 90 00 64 [03:36:16]RAPDU: 90 00 [03:36:16]wFMCommunicate OK [03:36:16]wFMCommunicate request_size=255 [03:36:16]MH_SAM_APDU [03:36:16]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 E8 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 00 00 00 00 00 00 39 04 06 00 E8 27 09 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 31 F5 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 97 96 01 00 35 04 06 00 [03:36:16]Write to MH i2c: E2 02 01 E4 0D 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 E8 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 00 00 00 00 00 00 39 04 06 00 E8 27 09 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 31 F5 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 97 96 01 00 35 04 06 00 00 00 A9 [03:36:16]Write i2c OK [03:36:16]MH_I2C_Read... [03:36:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:36:16]Read from MH i2c: E2 [03:36:16]MH_I2C_Read... [03:36:16]Read from MH i2c: E2 03 00 [03:36:16]MH_I2C_Read... [03:36:16]Read from MH i2c: E2 03 00 E4 0D 00 90 00 65 [03:36:16]RAPDU: 90 00 [03:36:16]wFMCommunicate OK [03:36:16]wFMCommunicate request_size=11 [03:36:16]MH_SAM_APDU [03:36:16]CAPDU: 80 0D 02 02 06 07 E1 26 0D 42 2B [03:36:16]Write to MH i2c: E2 0E 00 E5 0D 80 0D 02 02 06 00 07 E1 26 0D 42 2B 00 00 00 [03:36:16]Write i2c OK [03:36:16]MH_I2C_Read... [03:36:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:36:16]Read from MH i2c: E2 [03:36:16]MH_I2C_Read... [03:36:16]Read from MH i2c: E2 03 00 [03:36:16]MH_I2C_Read... [03:36:16]Read from MH i2c: E2 03 00 E5 0D 00 90 00 66 [03:36:16]RAPDU: 90 00 [03:36:16]wFMCommunicate OK [03:36:16]wFMCommunicate request_size=4 [03:36:16]MH_SAM_APDU [03:36:16]CAPDU: 80 0D 03 02 [03:36:16]Write to MH i2c: E2 08 00 E6 0D 80 0D 03 02 00 00 00 00 6E [03:36:16]Write i2c OK [03:36:16]MH_I2C_Read... [03:36:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:36:16]Read from MH i2c: E2 [03:36:16]MH_I2C_Read... [03:36:16]Read from MH i2c: E2 0B 00 [03:36:16]MH_I2C_Read... [03:36:16]Read from MH i2c: E2 0B 00 E6 0D 00 77 D5 43 29 EE 55 1E 5D 90 00 E5 [03:36:16]RAPDU: 77 D5 43 29 EE 55 1E 5D 90 00 [03:36:16]wFMCommunicate OK [03:36:16]SAM_PROTO_SignData done [03:36:16]FM_MakeSignedData done [03:36:16]CreateOFDProtocolMessage [03:36:16]wFMCommunicate request_size=4 [03:36:16]MH_SAM_APDU [03:36:16]CAPDU: 80 11 00 00 [03:36:16]Write to MH i2c: E2 08 00 E7 0D 80 11 00 00 00 00 00 00 6E [03:36:16]Write i2c OK [03:36:16]MH_I2C_Read... [03:36:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:36:16]Read from MH i2c: E2 [03:36:16]MH_I2C_Read... [03:36:16]Read from MH i2c: E2 17 00 [03:36:16]MH_I2C_Read... [03:36:16]Read from MH i2c: E2 17 00 E7 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 C1 [03:36:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [03:36:16]wFMCommunicate OK [03:36:16]CreateOFDProtocolMessage done [03:36:16]OFDSenderStorePacket 104087 [03:36:16]StoreOFDPacket docnum=104087 [03:36: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 9B 24 08 01 51 09 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 E8 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 00 00 00 00 00 00 39 04 06 00 E8 27 09 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 31 F5 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 97 96 01 00 35 04 06 00 07 E1 26 0D 42 2B 77 D5 43 29 EE 55 1E 5D [03:36:16]CheckFolder [03:36:16]dirname=/storage/ofd_packets [03:36:16]CheckFolder done [03:36:16]ProducePacketName [03:36:16]name=ofd_packets/00104087 [03:36:16]NVStorageSaveData ofd_packets/00104087 [03:36:16]File name is /storage/ofd_packets/00104087 [03:36:16]Write 302 bytes [03:36:16]NVStorageSaveData done [03:36:16]OFDSenderStorePacket done [03:36:16]KKMCreateOFDPacket done [03:36:16]NVStorageSaveData kkm_last_timestamp [03:36:16]File name is /storage/kkm_last_timestamp [03:36:16]Write 4 bytes [03:36:16]NVStorageSaveData done [03:36:16]ExternCall_PrintAddStr [03:36:16]wPrintStart [03:36:16]Write to MH i2c: 01 00 00 E8 0D F5 [03:36:16]Write i2c OK [03:36:16]MH_I2C_Read... [03:36:16]Read from MH i2c: 01 [03:36:16]MH_I2C_Read... [03:36:16]Read from MH i2c: 01 07 00 [03:36:16]MH_I2C_Read... [03:36:16]Read from MH i2c: 01 07 00 E8 0D 00 00 00 00 00 FF 0F 0A [03:36:16]RasterBufferAndPrint [03:36:16]line Счет N : (1)673476 [03:36:16]line ИНН: 02508201610067 [03:36:16]line Контрольно-Кассовый Чек [03:36:16]line ПРОДАЖА [03:36:16]line ТРК (МРК, ГНК) : 11 [03:36:16]line Товар: 2710194210 [03:36:16]line ДТ(л)-К-5 [03:36:16]line 82.310 * 72.90 [03:36:16]line = 6000.40 [03:36:16]line НДС 12% НСП 1% [03:36:16]line > о реализуемом товаре [03:36:16]line ИТОГО: 6000.40 [03:36:16]line НСП 1% : 53.10 [03:36:16]line НДС 12% : 637.21 [03:36:16]line Наличными: 0.00 [03:36:16]line Безнал.: 6000.40 [03:36:16]line Место: АЗС № 120 "Партнер Нефть" [03:36:16]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [03:36:16]line СНО: Общий режим [03:36:16]line Чек 10 21.06.2024 03:36 [03:36:16]line Смена: 355 ФФД: 1.0 [03:36:16]line ЗНМ: 0300000164 [03:36:16]line РНМ: 0000000000092785 [03:36:16]line Версия ККМ: 001 [03:36:16]line Платежная система: Бакай Банк [03:36:16]line ФМ: 0000000000875093 [03:36:16]line ФД: 104087 [03:36:16]line ФПД: 8663587439147 [03:36:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T033617&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104087&fm=8663587439147&tin=02508201610067®Number=0000000000092785&sum=600040 [03:36:17]OFD Sender: Processing packet 104087 [packets to send 17, broken 16] [03:36:17]ProducePacketName [03:36:17]name=ofd_packets/00104087 [03:36:17]OFD Sender: To server: pG, [03:36:17]CommunicateWithHost lk.salyk.kg:30040 [03:36:17]ConnectInit lk.salyk.kg [03:36:17]written 0, free lines is 4095 [03:36:17]Connected sock=10 [03:36: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 10 01 00 00 9B 24 08 01 51 09 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 E8 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 00 00 00 00 00 00 39 04 06 00 E8 27 09 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 31 F5 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 97 96 01 00 35 04 06 00 07 E1 26 0D 42 2B 77 D5 43 29 EE 55 1E 5D [03:36: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 2D 27 47 00 57 CB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 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 96 01 00 F4 03 04 00 B5 9B 74 66 B6 04 01 00 00 6C 91 FD 43 7E 7B CB C0 [03:36:17]CommunicateWithHost err = 0 [03:36:17]CheckOFDResponse [03:36:17]1017 (14) - 77093643461234 [03:36:17]1041 (16) - 0000000000875093 [03:36:17]1040 (4) - 104087 [03:36:17]1012 (4) - 20.06.2024 21:14 [03:36:17]1206 (1) - 0 [03:36:17]OFD Sender: Remove packet 104087 [03:36:17]ProducePacketName [03:36:17]name=ofd_packets/00104087 [03:36:17]NVStorageDeleteData [03:36:17]Write to MH i2c: 01 00 00 12 0E 20 [03:36:17]Write i2c OK [03:36:17]MH_I2C_Read... [03:36:17]Read from MH i2c: 01 [03:36:17]MH_I2C_Read... [03:36:17]Read from MH i2c: 01 07 00 [03:36:17]MH_I2C_Read... [03:36:17]Read from MH i2c: 01 07 00 12 0E 00 00 00 00 00 E5 0C 18 [03:36:17]RasterBufferAndPrint [03:36:17]line [03:36:17]line [03:36:17]line [03:36:17]line [03:36:17]line [03:36:17]written 0, free lines is 3307 [03:36:17]MH_Cut [03:36:17]Write to MH i2c: D1 01 00 19 0E 01 F9 [03:36:17]Write i2c OK [03:36:17]MH_I2C_Read... [03:36:17]Read from MH i2c: D1 [03:36:17]MH_I2C_Read... [03:36:17]Read from MH i2c: D1 01 00 [03:36:17]MH_I2C_Read... [03:36:17]Read from MH i2c: D1 01 00 19 0E 00 F8 [03:36:17]Write to MH i2c: 01 00 00 1A 0E 28 [03:36:17]Write i2c OK [03:36:17]MH_I2C_Read... [03:36:18]OFD Sender: No OFD packet to send [03:36:18]*** Cut start [03:36:18]*** Partial cut [03:36:18]*** CUTSNS_PIN = 1 [03:36:18]*** CUTSNS_PIN = 0 [03:36:18]*** Brake cut motor [03:36:19]Read from MH i2c: 01 [03:36:19]MH_I2C_Read... [03:36:19]*** Stop cut motor [03:36:19]*** Cut end [03:36:19]Read from MH i2c: 01 07 00 [03:36:19]MH_I2C_Read... [03:36:19]Read from MH i2c: 01 07 00 1A 0E 00 00 00 00 00 FF 0F 3D [03:36:19]process_action close_receipt done [03:36:19]requested_data is exist [03:36:19]produce_requested_data [03:36:19]requested_item fm.sn is exist - process it [03:36:19]wFMCommunicate request_size=4 [03:36:19]MH_SAM_APDU [03:36:19]CAPDU: 80 11 00 00 [03:36:19]Write to MH i2c: E2 08 00 1B 0E 80 11 00 00 00 00 00 00 A3 [03:36:19]Write i2c OK [03:36:19]MH_I2C_Read... [03:36:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:36:19]Read from MH i2c: E2 [03:36:19]MH_I2C_Read... [03:36:19]Read from MH i2c: E2 17 00 [03:36:19]MH_I2C_Read... [03:36:19]Read from MH i2c: E2 17 00 1B 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 F6 [03:36:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [03:36:19]wFMCommunicate OK [03:36:19]requested_item fd.num is exist - process it [03:36:19]SAM_PROTO_GetFieldsCounters [03:36:19]wFMCommunicate request_size=4 [03:36:19]MH_SAM_APDU [03:36:19]CAPDU: 80 13 00 00 [03:36:19]Write to MH i2c: E2 08 00 1C 0E 80 13 00 00 00 00 00 00 A6 [03:36:19]Write i2c OK [03:36:19]MH_I2C_Read... [03:36:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:36:19]Read from MH i2c: E2 [03:36:19]MH_I2C_Read... [03:36:19]Read from MH i2c: E2 62 00 [03:36:19]MH_I2C_Read... [03:36:19]Read from MH i2c: E2 62 00 1C 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 97 96 01 00 0E 04 04 00 63 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 7D [03:36: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 97 96 01 00 0E 04 04 00 63 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:36:19]wFMCommunicate OK [03:36:19]SAM_PROTO_GetFieldsCounters done [03:36:19]requested_item shift.num is exist - process it [03:36:19]requested_item shift.opened is exist - process it [03:36:19]req_shift_opened [03:36:19]FM_GetShiftState [03:36:19]SAM_PROTO_GetShiftState [03:36:19]wFMCommunicate request_size=4 [03:36:19]MH_SAM_APDU [03:36:19]CAPDU: 80 13 01 00 [03:36:19]Write to MH i2c: E2 08 00 1D 0E 80 13 01 00 00 00 00 00 A8 [03:36:19]Write i2c OK [03:36:19]MH_I2C_Read... [03:36:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:36:19]Read from MH i2c: E2 [03:36:19]MH_I2C_Read... [03:36:19]Read from MH i2c: E2 0E 00 [03:36:19]MH_I2C_Read... [03:36:19]Read from MH i2c: E2 0E 00 1D 0E 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 BB [03:36:19]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [03:36:19]wFMCommunicate OK [03:36:19]SAM_PROTO_GetShiftState done [03:36:19]FM_GetShiftState done [03:36:19]req_shift_opened done [03:36:19]requested_item shift.open_date is exist - process it [03:36:19]req_shift_open_date [03:36:19]req_shift_open_date done [03:36:19]produce_requested_data done [03:36:19]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104087,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [03:36:19]process_action_free close_receipt [03:36:19]json_value_free [03:36:19]json_value_free done [03:36:19]process_json_proto returns [03:36:19]Send response to host [03:36:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104087,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [03:36:19]free response buf [03:36:19]execute_script done [03:36:19]execute_script returns [03:36:19]free content buf [03:36:19]Sock 9.Close socket [03:36:19]Sock 9.Thread stoped [03:36:23]OFD Sender: No OFD packet to send [03:36:28]OFD Sender: No OFD packet to send [03:36:33]OFD Sender: No OFD packet to send [03:36:38]OFD Sender: No OFD packet to send [03:36:43]OFD Sender: No OFD packet to send [03:36:48]OFD Sender: No OFD packet to send [03:36:53]OFD Sender: No OFD packet to send [03:36:58]OFD Sender: No OFD packet to send [03:37:03]OFD Sender: No OFD packet to send [03:37:08]OFD Sender: No OFD packet to send [03:37:13]OFD Sender: No OFD packet to send [03:37:18]OFD Sender: No OFD packet to send [03:37:23]OFD Sender: No OFD packet to send [03:37:28]OFD Sender: No OFD packet to send [03:37:33]OFD Sender: No OFD packet to send [03:37:38]OFD Sender: No OFD packet to send [03:37:43]OFD Sender: No OFD packet to send [03:37:48]OFD Sender: No OFD packet to send [03:37:53]OFD Sender: No OFD packet to send [03:37:58]OFD Sender: No OFD packet to send [03:38:03]OFD Sender: No OFD packet to send [03:38:08]OFD Sender: No OFD packet to send [03:38:13]OFD Sender: No OFD packet to send [03:38:18]OFD Sender: No OFD packet to send [03:38:23]OFD Sender: No OFD packet to send [03:38:28]OFD Sender: No OFD packet to send [03:38:33]OFD Sender: No OFD packet to send [03:38:38]OFD Sender: No OFD packet to send [03:38:43]OFD Sender: No OFD packet to send [03:38:48]OFD Sender: No OFD packet to send [03:38:53]OFD Sender: No OFD packet to send [03:38:58]OFD Sender: No OFD packet to send [03:39:03]OFD Sender: No OFD packet to send [03:39:08]OFD Sender: No OFD packet to send [03:39:13]OFD Sender: No OFD packet to send [03:39:18]OFD Sender: No OFD packet to send [03:39:23]OFD Sender: No OFD packet to send [03:39:28]OFD Sender: No OFD packet to send [03:39:33]OFD Sender: No OFD packet to send [03:39:38]OFD Sender: No OFD packet to send [03:39:43]OFD Sender: No OFD packet to send [03:39:48]OFD Sender: No OFD packet to send [03:39:53]OFD Sender: No OFD packet to send [03:39:58]OFD Sender: No OFD packet to send [03:40:03]OFD Sender: No OFD packet to send [03:40:08]OFD Sender: No OFD packet to send [03:40:13]OFD Sender: No OFD packet to send [03:40:18]OFD Sender: No OFD packet to send [03:40:23]OFD Sender: No OFD packet to send [03:40:28]OFD Sender: No OFD packet to send [03:40:33]OFD Sender: No OFD packet to send [03:40:38]OFD Sender: No OFD packet to send [03:40:43]OFD Sender: No OFD packet to send [03:40:48]OFD Sender: No OFD packet to send [03:40:53]OFD Sender: No OFD packet to send [03:40:58]OFD Sender: No OFD packet to send [03:41:03]OFD Sender: No OFD packet to send [03:41:08]OFD Sender: No OFD packet to send [03:41:13]OFD Sender: No OFD packet to send [03:41:18]OFD Sender: No OFD packet to send [03:41:23]OFD Sender: No OFD packet to send [03:41:28]OFD Sender: No OFD packet to send [03:41:33]OFD Sender: No OFD packet to send [03:41:38]OFD Sender: No OFD packet to send [03:41:43]OFD Sender: No OFD packet to send [03:41:48]OFD Sender: No OFD packet to send [03:41:53]OFD Sender: No OFD packet to send [03:41:58]OFD Sender: No OFD packet to send [03:42:03]OFD Sender: No OFD packet to send [03:42:08]OFD Sender: No OFD packet to send [03:42:13]OFD Sender: No OFD packet to send [03:42:18]OFD Sender: No OFD packet to send [03:42:23]OFD Sender: No OFD packet to send [03:42:28]OFD Sender: No OFD packet to send [03:42:33]OFD Sender: No OFD packet to send [03:42:38]OFD Sender: No OFD packet to send [03:42:43]OFD Sender: No OFD packet to send [03:42:48]OFD Sender: No OFD packet to send [03:42:53]OFD Sender: No OFD packet to send [03:42:58]OFD Sender: No OFD packet to send [03:43:03]OFD Sender: No OFD packet to send [03:43:08]OFD Sender: No OFD packet to send [03:43:13]OFD Sender: No OFD packet to send [03:43:18]OFD Sender: No OFD packet to send [03:43:23]OFD Sender: No OFD packet to send [03:43:28]OFD Sender: No OFD packet to send [03:43:33]OFD Sender: No OFD packet to send [03:43:38]OFD Sender: No OFD packet to send [03:43:43]OFD Sender: No OFD packet to send [03:43:48]OFD Sender: No OFD packet to send [03:43:53]OFD Sender: No OFD packet to send [03:43:58]OFD Sender: No OFD packet to send [03:44:03]OFD Sender: No OFD packet to send [03:44:08]OFD Sender: No OFD packet to send [03:44:13]OFD Sender: No OFD packet to send [03:44:18]OFD Sender: No OFD packet to send [03:44:23]OFD Sender: No OFD packet to send [03:44:28]OFD Sender: No OFD packet to send [03:44:33]OFD Sender: No OFD packet to send [03:44:38]OFD Sender: No OFD packet to send [03:44:43]OFD Sender: No OFD packet to send [03:44:48]OFD Sender: No OFD packet to send [03:44:53]OFD Sender: No OFD packet to send [03:44:58]OFD Sender: No OFD packet to send [03:45:03]OFD Sender: No OFD packet to send [03:45:08]OFD Sender: No OFD packet to send [03:45:13]OFD Sender: No OFD packet to send [03:45:18]OFD Sender: No OFD packet to send [03:45:23]OFD Sender: No OFD packet to send [03:45:28]OFD Sender: No OFD packet to send [03:45:33]OFD Sender: No OFD packet to send [03:45:38]OFD Sender: No OFD packet to send [03:45:43]OFD Sender: No OFD packet to send [03:45:48]OFD Sender: No OFD packet to send [03:45:53]OFD Sender: No OFD packet to send [03:45:58]OFD Sender: No OFD packet to send [03:46:03]OFD Sender: No OFD packet to send [03:46:08]OFD Sender: No OFD packet to send [03:46:13]OFD Sender: No OFD packet to send [03:46:18]OFD Sender: No OFD packet to send [03:46:23]OFD Sender: No OFD packet to send [03:46:28]OFD Sender: No OFD packet to send [03:46:33]OFD Sender: No OFD packet to send [03:46:38]OFD Sender: No OFD packet to send [03:46:43]OFD Sender: No OFD packet to send [03:46:48]OFD Sender: No OFD packet to send [03:46:53]OFD Sender: No OFD packet to send [03:46:58]OFD Sender: No OFD packet to send [03:47:03]OFD Sender: No OFD packet to send [03:47:08]OFD Sender: No OFD packet to send [03:47:13]OFD Sender: No OFD packet to send [03:47:18]OFD Sender: No OFD packet to send [03:47:23]OFD Sender: No OFD packet to send [03:47:28]OFD Sender: No OFD packet to send [03:47:33]OFD Sender: No OFD packet to send [03:47:38]OFD Sender: No OFD packet to send [03:47:43]OFD Sender: No OFD packet to send [03:47:48]OFD Sender: No OFD packet to send [03:47:53]OFD Sender: No OFD packet to send [03:47:58]OFD Sender: No OFD packet to send [03:48:03]OFD Sender: No OFD packet to send [03:48:08]OFD Sender: No OFD packet to send [03:48:13]OFD Sender: No OFD packet to send [03:48:18]OFD Sender: No OFD packet to send [03:48:23]OFD Sender: No OFD packet to send [03:48:28]OFD Sender: No OFD packet to send [03:48:33]OFD Sender: No OFD packet to send [03:48:38]OFD Sender: No OFD packet to send [03:48:43]OFD Sender: No OFD packet to send [03:48:48]OFD Sender: No OFD packet to send [03:48:53]OFD Sender: No OFD packet to send [03:48:58]OFD Sender: No OFD packet to send [03:49:03]OFD Sender: No OFD packet to send [03:49:08]OFD Sender: No OFD packet to send [03:49:13]OFD Sender: No OFD packet to send [03:49:18]OFD Sender: No OFD packet to send [03:49:23]OFD Sender: No OFD packet to send [03:49:28]OFD Sender: No OFD packet to send [03:49:33]OFD Sender: No OFD packet to send [03:49:38]OFD Sender: No OFD packet to send [03:49:43]OFD Sender: No OFD packet to send [03:49:48]OFD Sender: No OFD packet to send [03:49:53]OFD Sender: No OFD packet to send [03:49:58]OFD Sender: No OFD packet to send [03:50:03]OFD Sender: No OFD packet to send [03:50:08]OFD Sender: No OFD packet to send [03:50:13]OFD Sender: No OFD packet to send [03:50:18]OFD Sender: No OFD packet to send [03:50:23]OFD Sender: No OFD packet to send [03:50:28]OFD Sender: No OFD packet to send [03:50:33]OFD Sender: No OFD packet to send [03:50:38]OFD Sender: No OFD packet to send [03:50:43]OFD Sender: No OFD packet to send [03:50:48]OFD Sender: No OFD packet to send [03:50:53]OFD Sender: No OFD packet to send [03:50:58]OFD Sender: No OFD packet to send [03:51:03]OFD Sender: No OFD packet to send [03:51:08]OFD Sender: No OFD packet to send [03:51:13]OFD Sender: No OFD packet to send [03:51:18]OFD Sender: No OFD packet to send [03:51:23]OFD Sender: No OFD packet to send [03:51:28]OFD Sender: No OFD packet to send [03:51:33]OFD Sender: No OFD packet to send [03:51:38]OFD Sender: No OFD packet to send [03:51:43]OFD Sender: No OFD packet to send [03:51:48]OFD Sender: No OFD packet to send [03:51:53]OFD Sender: No OFD packet to send [03:51:58]OFD Sender: No OFD packet to send [03:52:03]OFD Sender: No OFD packet to send [03:52:08]OFD Sender: No OFD packet to send [03:52:13]OFD Sender: No OFD packet to send [03:52:18]OFD Sender: No OFD packet to send [03:52:23]OFD Sender: No OFD packet to send [03:52:28]OFD Sender: No OFD packet to send [03:52:33]OFD Sender: No OFD packet to send [03:52:38]OFD Sender: No OFD packet to send [03:52:43]OFD Sender: No OFD packet to send [03:52:48]OFD Sender: No OFD packet to send [03:52:53]OFD Sender: No OFD packet to send [03:52:58]OFD Sender: No OFD packet to send [03:53:03]OFD Sender: No OFD packet to send [03:53:08]OFD Sender: No OFD packet to send [03:53:13]OFD Sender: No OFD packet to send [03:53:18]OFD Sender: No OFD packet to send [03:53:23]OFD Sender: No OFD packet to send [03:53:28]OFD Sender: No OFD packet to send [03:53:33]OFD Sender: No OFD packet to send [03:53:38]OFD Sender: No OFD packet to send [03:53:43]OFD Sender: No OFD packet to send [03:53:48]OFD Sender: No OFD packet to send [03:53:53]OFD Sender: No OFD packet to send [03:53:58]OFD Sender: No OFD packet to send [03:54:03]OFD Sender: No OFD packet to send [03:54:08]OFD Sender: No OFD packet to send [03:54:13]OFD Sender: No OFD packet to send [03:54:18]OFD Sender: No OFD packet to send [03:54:23]OFD Sender: No OFD packet to send [03:54:28]OFD Sender: No OFD packet to send [03:54:33]OFD Sender: No OFD packet to send [03:54:38]OFD Sender: No OFD packet to send [03:54:44]OFD Sender: No OFD packet to send [03:54:49]OFD Sender: No OFD packet to send [03:54:54]OFD Sender: No OFD packet to send [03:54:59]OFD Sender: No OFD packet to send [03:55:04]OFD Sender: No OFD packet to send [03:55:09]OFD Sender: No OFD packet to send [03:55:14]OFD Sender: No OFD packet to send [03:55:19]OFD Sender: No OFD packet to send [03:55:24]OFD Sender: No OFD packet to send [03:55:29]OFD Sender: No OFD packet to send [03:55:34]OFD Sender: No OFD packet to send [03:55:39]OFD Sender: No OFD packet to send [03:55:44]OFD Sender: No OFD packet to send [03:55:49]OFD Sender: No OFD packet to send [03:55:54]OFD Sender: No OFD packet to send [03:55:59]OFD Sender: No OFD packet to send [03:56:04]OFD Sender: No OFD packet to send [03:56:09]OFD Sender: No OFD packet to send [03:56:14]OFD Sender: No OFD packet to send [03:56:19]OFD Sender: No OFD packet to send [03:56:24]OFD Sender: No OFD packet to send [03:56:29]OFD Sender: No OFD packet to send [03:56:34]OFD Sender: No OFD packet to send [03:56:39]OFD Sender: No OFD packet to send [03:56:44]OFD Sender: No OFD packet to send [03:56:49]OFD Sender: No OFD packet to send [03:56:54]OFD Sender: No OFD packet to send [03:56:59]OFD Sender: No OFD packet to send [03:57:04]OFD Sender: No OFD packet to send [03:57:09]OFD Sender: No OFD packet to send [03:57:14]OFD Sender: No OFD packet to send [03:57:19]OFD Sender: No OFD packet to send [03:57:24]OFD Sender: No OFD packet to send [03:57:29]OFD Sender: No OFD packet to send [03:57:34]OFD Sender: No OFD packet to send [03:57:39]OFD Sender: No OFD packet to send [03:57:44]OFD Sender: No OFD packet to send [03:57:49]OFD Sender: No OFD packet to send [03:57:54]OFD Sender: No OFD packet to send [03:57:59]OFD Sender: No OFD packet to send [03:58:04]OFD Sender: No OFD packet to send [03:58:09]OFD Sender: No OFD packet to send [03:58:14]OFD Sender: No OFD packet to send [03:58:19]OFD Sender: No OFD packet to send [03:58:24]OFD Sender: No OFD packet to send [03:58:29]OFD Sender: No OFD packet to send [03:58:34]OFD Sender: No OFD packet to send [03:58:39]OFD Sender: No OFD packet to send [03:58:44]OFD Sender: No OFD packet to send [03:58:49]OFD Sender: No OFD packet to send [03:58:54]OFD Sender: No OFD packet to send [03:58:59]OFD Sender: No OFD packet to send [03:59:04]OFD Sender: No OFD packet to send [03:59:09]OFD Sender: No OFD packet to send [03:59:14]OFD Sender: No OFD packet to send [03:59:19]OFD Sender: No OFD packet to send [03:59:24]OFD Sender: No OFD packet to send [03:59:29]OFD Sender: No OFD packet to send [03:59:34]OFD Sender: No OFD packet to send [03:59:39]OFD Sender: No OFD packet to send [03:59:44]OFD Sender: No OFD packet to send [03:59:49]OFD Sender: No OFD packet to send [03:59:54]OFD Sender: No OFD packet to send [03:59:59]OFD Sender: No OFD packet to send [04:00:04]OFD Sender: No OFD packet to send [04:00:09]OFD Sender: No OFD packet to send [04:00:14]OFD Sender: No OFD packet to send [04:00:19]OFD Sender: No OFD packet to send [04:00:24]OFD Sender: No OFD packet to send [04:00:29]OFD Sender: No OFD packet to send [04:00:34]OFD Sender: No OFD packet to send [04:00:39]OFD Sender: No OFD packet to send [04:00:44]OFD Sender: No OFD packet to send [04:00:49]OFD Sender: No OFD packet to send [04:00:54]OFD Sender: No OFD packet to send [04:00:59]OFD Sender: No OFD packet to send [04:01:04]OFD Sender: No OFD packet to send [04:01:09]OFD Sender: No OFD packet to send [04:01:14]OFD Sender: No OFD packet to send [04:01:19]OFD Sender: No OFD packet to send [04:01:24]OFD Sender: No OFD packet to send [04:01:29]OFD Sender: No OFD packet to send [04:01:34]OFD Sender: No OFD packet to send [04:01:39]OFD Sender: No OFD packet to send [04:01:44]OFD Sender: No OFD packet to send [04:01:49]OFD Sender: No OFD packet to send [04:01:54]OFD Sender: No OFD packet to send [04:01:59]OFD Sender: No OFD packet to send [04:02:04]OFD Sender: No OFD packet to send [04:02:09]OFD Sender: No OFD packet to send [04:02:14]OFD Sender: No OFD packet to send [04:02:19]OFD Sender: No OFD packet to send [04:02:24]OFD Sender: No OFD packet to send [04:02:29]OFD Sender: No OFD packet to send [04:02:34]OFD Sender: No OFD packet to send [04:02:39]OFD Sender: No OFD packet to send [04:02:44]OFD Sender: No OFD packet to send [04:02:49]OFD Sender: No OFD packet to send [04:02:54]OFD Sender: No OFD packet to send [04:02:59]OFD Sender: No OFD packet to send [04:03:04]OFD Sender: No OFD packet to send [04:03:09]OFD Sender: No OFD packet to send [04:03:14]OFD Sender: No OFD packet to send [04:03:19]OFD Sender: No OFD packet to send [04:03:24]OFD Sender: No OFD packet to send [04:03:29]OFD Sender: No OFD packet to send [04:03:34]OFD Sender: No OFD packet to send [04:03:39]OFD Sender: No OFD packet to send [04:03:44]OFD Sender: No OFD packet to send [04:03:49]OFD Sender: No OFD packet to send [04:03:54]OFD Sender: No OFD packet to send [04:03:59]OFD Sender: No OFD packet to send [04:04:04]OFD Sender: No OFD packet to send [04:04:09]OFD Sender: No OFD packet to send [04:04:14]OFD Sender: No OFD packet to send [04:04:19]OFD Sender: No OFD packet to send [04:04:24]OFD Sender: No OFD packet to send [04:04:29]OFD Sender: No OFD packet to send [04:04:34]OFD Sender: No OFD packet to send [04:04:39]OFD Sender: No OFD packet to send [04:04:44]OFD Sender: No OFD packet to send [04:04:49]OFD Sender: No OFD packet to send [04:04:54]OFD Sender: No OFD packet to send [04:04:59]OFD Sender: No OFD packet to send [04:05:04]OFD Sender: No OFD packet to send [04:05:09]OFD Sender: No OFD packet to send [04:05:14]OFD Sender: No OFD packet to send [04:05:19]OFD Sender: No OFD packet to send [04:05:24]OFD Sender: No OFD packet to send [04:05:29]OFD Sender: No OFD packet to send [04:05:34]OFD Sender: No OFD packet to send [04:05:39]OFD Sender: No OFD packet to send [04:05:44]OFD Sender: No OFD packet to send [04:05:49]OFD Sender: No OFD packet to send [04:05:54]OFD Sender: No OFD packet to send [04:05:59]OFD Sender: No OFD packet to send [04:06:04]OFD Sender: No OFD packet to send [04:06:09]OFD Sender: No OFD packet to send [04:06:14]OFD Sender: No OFD packet to send [04:06:19]OFD Sender: No OFD packet to send [04:06:24]OFD Sender: No OFD packet to send [04:06:29]OFD Sender: No OFD packet to send [04:06:34]OFD Sender: No OFD packet to send [04:06:39]OFD Sender: No OFD packet to send [04:06:44]OFD Sender: No OFD packet to send [04:06:49]OFD Sender: No OFD packet to send [04:06:54]OFD Sender: No OFD packet to send [04:06:59]OFD Sender: No OFD packet to send [04:07:04]OFD Sender: No OFD packet to send [04:07:09]OFD Sender: No OFD packet to send [04:07:14]OFD Sender: No OFD packet to send [04:07:19]OFD Sender: No OFD packet to send [04:07:24]OFD Sender: No OFD packet to send [04:07:29]OFD Sender: No OFD packet to send [04:07:34]OFD Sender: No OFD packet to send [04:07:39]OFD Sender: No OFD packet to send [04:07:44]OFD Sender: No OFD packet to send [04:07:49]OFD Sender: No OFD packet to send [04:07:54]OFD Sender: No OFD packet to send [04:07:59]OFD Sender: No OFD packet to send [04:08:04]OFD Sender: No OFD packet to send [04:08:09]OFD Sender: No OFD packet to send [04:08:14]OFD Sender: No OFD packet to send [04:08:19]OFD Sender: No OFD packet to send [04:08:24]OFD Sender: No OFD packet to send [04:08:29]OFD Sender: No OFD packet to send [04:08:34]OFD Sender: No OFD packet to send [04:08:39]OFD Sender: No OFD packet to send [04:08:44]OFD Sender: No OFD packet to send [04:08:49]OFD Sender: No OFD packet to send [04:08:54]OFD Sender: No OFD packet to send [04:08:59]OFD Sender: No OFD packet to send [04:09:04]OFD Sender: No OFD packet to send [04:09:09]OFD Sender: No OFD packet to send [04:09:14]OFD Sender: No OFD packet to send [04:09:19]OFD Sender: No OFD packet to send [04:09:24]OFD Sender: No OFD packet to send [04:09:29]OFD Sender: No OFD packet to send [04:09:34]OFD Sender: No OFD packet to send [04:09:39]OFD Sender: No OFD packet to send [04:09:44]OFD Sender: No OFD packet to send [04:09:49]OFD Sender: No OFD packet to send [04:09:54]OFD Sender: No OFD packet to send [04:09:59]OFD Sender: No OFD packet to send [04:10:04]OFD Sender: No OFD packet to send [04:10:09]OFD Sender: No OFD packet to send [04:10:14]OFD Sender: No OFD packet to send [04:10:19]OFD Sender: No OFD packet to send [04:10:24]OFD Sender: No OFD packet to send [04:10:29]OFD Sender: No OFD packet to send [04:10:34]OFD Sender: No OFD packet to send [04:10:39]OFD Sender: No OFD packet to send [04:10:44]OFD Sender: No OFD packet to send [04:10:49]OFD Sender: No OFD packet to send [04:10:54]OFD Sender: No OFD packet to send [04:10:59]OFD Sender: No OFD packet to send [04:11:04]OFD Sender: No OFD packet to send [04:11:09]OFD Sender: No OFD packet to send [04:11:14]OFD Sender: No OFD packet to send [04:11:19]OFD Sender: No OFD packet to send [04:11:24]OFD Sender: No OFD packet to send [04:11:29]OFD Sender: No OFD packet to send [04:11:34]OFD Sender: No OFD packet to send [04:11:39]OFD Sender: No OFD packet to send [04:11:44]OFD Sender: No OFD packet to send [04:11:49]OFD Sender: No OFD packet to send [04:11:54]OFD Sender: No OFD packet to send [04:11:59]OFD Sender: No OFD packet to send [04:12:04]OFD Sender: No OFD packet to send [04:12:09]OFD Sender: No OFD packet to send [04:12:14]OFD Sender: No OFD packet to send [04:12:19]OFD Sender: No OFD packet to send [04:12:24]OFD Sender: No OFD packet to send [04:12:29]OFD Sender: No OFD packet to send [04:12:34]OFD Sender: No OFD packet to send [04:12:39]OFD Sender: No OFD packet to send [04:12:44]OFD Sender: No OFD packet to send [04:12:49]OFD Sender: No OFD packet to send [04:12:54]OFD Sender: No OFD packet to send [04:12:59]OFD Sender: No OFD packet to send [04:13:04]OFD Sender: No OFD packet to send [04:13:09]OFD Sender: No OFD packet to send [04:13:14]OFD Sender: No OFD packet to send [04:13:19]OFD Sender: No OFD packet to send [04:13:24]OFD Sender: No OFD packet to send [04:13:29]OFD Sender: No OFD packet to send [04:13:34]OFD Sender: No OFD packet to send [04:13:39]OFD Sender: No OFD packet to send [04:13:44]OFD Sender: No OFD packet to send [04:13:49]OFD Sender: No OFD packet to send [04:13:54]OFD Sender: No OFD packet to send [04:13:59]OFD Sender: No OFD packet to send [04:14:04]OFD Sender: No OFD packet to send [04:14:09]OFD Sender: No OFD packet to send [04:14:14]OFD Sender: No OFD packet to send [04:14:19]OFD Sender: No OFD packet to send [04:14:24]OFD Sender: No OFD packet to send [04:14:29]OFD Sender: No OFD packet to send [04:14:34]OFD Sender: No OFD packet to send [04:14:39]OFD Sender: No OFD packet to send [04:14:44]OFD Sender: No OFD packet to send [04:14:49]OFD Sender: No OFD packet to send [04:14:54]OFD Sender: No OFD packet to send [04:14:59]OFD Sender: No OFD packet to send [04:15:04]OFD Sender: No OFD packet to send [04:15:09]OFD Sender: No OFD packet to send [04:15:14]OFD Sender: No OFD packet to send [04:15:20]OFD Sender: No OFD packet to send [04:15:25]OFD Sender: No OFD packet to send [04:15:30]OFD Sender: No OFD packet to send [04:15:35]OFD Sender: No OFD packet to send [04:15:40]OFD Sender: No OFD packet to send [04:15:45]OFD Sender: No OFD packet to send [04:15:50]OFD Sender: No OFD packet to send [04:15:55]OFD Sender: No OFD packet to send [04:16:00]OFD Sender: No OFD packet to send [04:16:05]OFD Sender: No OFD packet to send [04:16:10]OFD Sender: No OFD packet to send [04:16:15]OFD Sender: No OFD packet to send [04:16:20]OFD Sender: No OFD packet to send [04:16:25]OFD Sender: No OFD packet to send [04:16:30]OFD Sender: No OFD packet to send [04:16:35]OFD Sender: No OFD packet to send [04:16:40]OFD Sender: No OFD packet to send [04:16:45]OFD Sender: No OFD packet to send [04:16:50]OFD Sender: No OFD packet to send [04:16:55]OFD Sender: No OFD packet to send [04:17:00]OFD Sender: No OFD packet to send [04:17:05]OFD Sender: No OFD packet to send [04:17:10]OFD Sender: No OFD packet to send [04:17:15]OFD Sender: No OFD packet to send [04:17:20]OFD Sender: No OFD packet to send [04:17:25]OFD Sender: No OFD packet to send [04:17:30]OFD Sender: No OFD packet to send [04:17:35]OFD Sender: No OFD packet to send [04:17:40]OFD Sender: No OFD packet to send [04:17:45]OFD Sender: No OFD packet to send [04:17:50]OFD Sender: No OFD packet to send [04:17:55]OFD Sender: No OFD packet to send [04:18:00]OFD Sender: No OFD packet to send [04:18:05]OFD Sender: No OFD packet to send [04:18:10]OFD Sender: No OFD packet to send [04:18:15]OFD Sender: No OFD packet to send [04:18:20]OFD Sender: No OFD packet to send [04:18:25]OFD Sender: No OFD packet to send [04:18:30]OFD Sender: No OFD packet to send [04:18:35]OFD Sender: No OFD packet to send [04:18:40]OFD Sender: No OFD packet to send [04:18:45]OFD Sender: No OFD packet to send [04:18:50]OFD Sender: No OFD packet to send [04:18:55]OFD Sender: No OFD packet to send [04:19:00]OFD Sender: No OFD packet to send [04:19:05]OFD Sender: No OFD packet to send [04:19:10]OFD Sender: No OFD packet to send [04:19:15]OFD Sender: No OFD packet to send [04:19:20]OFD Sender: No OFD packet to send [04:19:25]OFD Sender: No OFD packet to send [04:19:30]OFD Sender: No OFD packet to send [04:19:35]OFD Sender: No OFD packet to send [04:19:40]OFD Sender: No OFD packet to send [04:19:45]OFD Sender: No OFD packet to send [04:19:50]OFD Sender: No OFD packet to send [04:19:55]OFD Sender: No OFD packet to send [04:20:00]OFD Sender: No OFD packet to send [04:20:05]OFD Sender: No OFD packet to send [04:20:10]OFD Sender: No OFD packet to send [04:20:15]OFD Sender: No OFD packet to send [04:20:20]OFD Sender: No OFD packet to send [04:20:25]OFD Sender: No OFD packet to send [04:20:30]OFD Sender: No OFD packet to send [04:20:35]OFD Sender: No OFD packet to send [04:20:40]OFD Sender: No OFD packet to send [04:20:45]OFD Sender: No OFD packet to send [04:20:50]OFD Sender: No OFD packet to send [04:20:55]OFD Sender: No OFD packet to send [04:21:00]OFD Sender: No OFD packet to send [04:21:05]OFD Sender: No OFD packet to send [04:21:10]OFD Sender: No OFD packet to send [04:21:15]OFD Sender: No OFD packet to send [04:21:20]OFD Sender: No OFD packet to send [04:21:25]OFD Sender: No OFD packet to send [04:21:30]OFD Sender: No OFD packet to send [04:21:35]OFD Sender: No OFD packet to send [04:21:40]OFD Sender: No OFD packet to send [04:21:45]OFD Sender: No OFD packet to send [04:21:50]OFD Sender: No OFD packet to send [04:21:55]OFD Sender: No OFD packet to send [04:22:00]OFD Sender: No OFD packet to send [04:22:05]OFD Sender: No OFD packet to send [04:22:10]OFD Sender: No OFD packet to send [04:22:15]OFD Sender: No OFD packet to send [04:22:20]OFD Sender: No OFD packet to send [04:22:25]OFD Sender: No OFD packet to send [04:22:30]OFD Sender: No OFD packet to send [04:22:35]OFD Sender: No OFD packet to send [04:22:40]OFD Sender: No OFD packet to send [04:22:45]OFD Sender: No OFD packet to send [04:22:50]OFD Sender: No OFD packet to send [04:22:55]OFD Sender: No OFD packet to send [04:23:00]OFD Sender: No OFD packet to send [04:23:05]OFD Sender: No OFD packet to send [04:23:10]OFD Sender: No OFD packet to send [04:23:15]OFD Sender: No OFD packet to send [04:23:20]OFD Sender: No OFD packet to send [04:23:25]OFD Sender: No OFD packet to send [04:23:30]OFD Sender: No OFD packet to send [04:23:35]OFD Sender: No OFD packet to send [04:23:40]OFD Sender: No OFD packet to send [04:23:45]OFD Sender: No OFD packet to send [04:23:50]OFD Sender: No OFD packet to send [04:23:55]OFD Sender: No OFD packet to send [04:24:00]OFD Sender: No OFD packet to send [04:24:05]OFD Sender: No OFD packet to send [04:24:10]OFD Sender: No OFD packet to send [04:24:15]OFD Sender: No OFD packet to send [04:24:20]OFD Sender: No OFD packet to send [04:24:25]OFD Sender: No OFD packet to send [04:24:30]OFD Sender: No OFD packet to send [04:24:35]OFD Sender: No OFD packet to send [04:24:40]OFD Sender: No OFD packet to send [04:24:45]OFD Sender: No OFD packet to send [04:24:50]OFD Sender: No OFD packet to send [04:24:55]OFD Sender: No OFD packet to send [04:25:00]OFD Sender: No OFD packet to send [04:25:05]OFD Sender: No OFD packet to send [04:25:10]OFD Sender: No OFD packet to send [04:25:15]OFD Sender: No OFD packet to send [04:25:20]OFD Sender: No OFD packet to send [04:25:25]OFD Sender: No OFD packet to send [04:25:30]OFD Sender: No OFD packet to send [04:25:35]OFD Sender: No OFD packet to send [04:25:40]OFD Sender: No OFD packet to send [04:25:45]OFD Sender: No OFD packet to send [04:25:50]OFD Sender: No OFD packet to send [04:25:55]OFD Sender: No OFD packet to send [04:26:00]OFD Sender: No OFD packet to send [04:26:05]OFD Sender: No OFD packet to send [04:26:10]OFD Sender: No OFD packet to send [04:26:15]OFD Sender: No OFD packet to send [04:26:20]OFD Sender: No OFD packet to send [04:26:25]OFD Sender: No OFD packet to send [04:26:30]OFD Sender: No OFD packet to send [04:26:35]OFD Sender: No OFD packet to send [04:26:40]OFD Sender: No OFD packet to send [04:26:45]OFD Sender: No OFD packet to send [04:26:50]OFD Sender: No OFD packet to send [04:26:55]OFD Sender: No OFD packet to send [04:27:00]OFD Sender: No OFD packet to send [04:27:05]OFD Sender: No OFD packet to send [04:27:10]OFD Sender: No OFD packet to send [04:27:15]OFD Sender: No OFD packet to send [04:27:20]OFD Sender: No OFD packet to send [04:27:25]OFD Sender: No OFD packet to send [04:27:30]OFD Sender: No OFD packet to send [04:27:35]OFD Sender: No OFD packet to send [04:27:40]OFD Sender: No OFD packet to send [04:27:45]OFD Sender: No OFD packet to send [04:27:50]OFD Sender: No OFD packet to send [04:27:55]OFD Sender: No OFD packet to send [04:28:00]OFD Sender: No OFD packet to send [04:28:05]OFD Sender: No OFD packet to send [04:28:10]OFD Sender: No OFD packet to send [04:28:15]OFD Sender: No OFD packet to send [04:28:20]OFD Sender: No OFD packet to send [04:28:25]OFD Sender: No OFD packet to send [04:28:30]OFD Sender: No OFD packet to send [04:28:35]OFD Sender: No OFD packet to send [04:28:40]OFD Sender: No OFD packet to send [04:28:45]OFD Sender: No OFD packet to send [04:28:50]OFD Sender: No OFD packet to send [04:28:55]OFD Sender: No OFD packet to send [04:29:00]OFD Sender: No OFD packet to send [04:29:05]OFD Sender: No OFD packet to send [04:29:10]OFD Sender: No OFD packet to send [04:29:15]OFD Sender: No OFD packet to send [04:29:20]OFD Sender: No OFD packet to send [04:29:25]OFD Sender: No OFD packet to send [04:29:30]OFD Sender: No OFD packet to send [04:29:35]OFD Sender: No OFD packet to send [04:29:40]OFD Sender: No OFD packet to send [04:29:45]OFD Sender: No OFD packet to send [04:29:50]OFD Sender: No OFD packet to send [04:29:55]OFD Sender: No OFD packet to send [04:30:00]OFD Sender: No OFD packet to send [04:30:05]OFD Sender: No OFD packet to send [04:30:10]OFD Sender: No OFD packet to send [04:30:15]OFD Sender: No OFD packet to send [04:30:20]OFD Sender: No OFD packet to send [04:30:25]OFD Sender: No OFD packet to send [04:30:30]OFD Sender: No OFD packet to send [04:30:35]OFD Sender: No OFD packet to send [04:30:40]OFD Sender: No OFD packet to send [04:30:45]OFD Sender: No OFD packet to send [04:30:50]OFD Sender: No OFD packet to send [04:30:55]OFD Sender: No OFD packet to send [04:31:00]OFD Sender: No OFD packet to send [04:31:05]OFD Sender: No OFD packet to send [04:31:10]OFD Sender: No OFD packet to send [04:31:15]OFD Sender: No OFD packet to send [04:31:20]OFD Sender: No OFD packet to send [04:31:25]OFD Sender: No OFD packet to send [04:31:30]OFD Sender: No OFD packet to send [04:31:35]OFD Sender: No OFD packet to send [04:31:40]OFD Sender: No OFD packet to send [04:31:45]OFD Sender: No OFD packet to send [04:31:50]OFD Sender: No OFD packet to send [04:31:55]OFD Sender: No OFD packet to send [04:32:00]OFD Sender: No OFD packet to send [04:32:05]OFD Sender: No OFD packet to send [04:32:10]OFD Sender: No OFD packet to send [04:32:15]OFD Sender: No OFD packet to send [04:32:20]OFD Sender: No OFD packet to send [04:32:25]OFD Sender: No OFD packet to send [04:32:30]OFD Sender: No OFD packet to send [04:32:35]OFD Sender: No OFD packet to send [04:32:40]OFD Sender: No OFD packet to send [04:32:45]OFD Sender: No OFD packet to send [04:32:50]OFD Sender: No OFD packet to send [04:32:55]OFD Sender: No OFD packet to send [04:33:00]OFD Sender: No OFD packet to send [04:33:05]OFD Sender: No OFD packet to send [04:33:10]OFD Sender: No OFD packet to send [04:33:15]OFD Sender: No OFD packet to send [04:33:20]OFD Sender: No OFD packet to send [04:33:25]OFD Sender: No OFD packet to send [04:33:30]OFD Sender: No OFD packet to send [04:33:35]OFD Sender: No OFD packet to send [04:33:40]OFD Sender: No OFD packet to send [04:33:45]OFD Sender: No OFD packet to send [04:33:50]OFD Sender: No OFD packet to send [04:33:55]OFD Sender: No OFD packet to send [04:34:00]OFD Sender: No OFD packet to send [04:34:05]OFD Sender: No OFD packet to send [04:34:10]OFD Sender: No OFD packet to send [04:34:15]OFD Sender: No OFD packet to send [04:34:20]OFD Sender: No OFD packet to send [04:34:25]OFD Sender: No OFD packet to send [04:34:30]OFD Sender: No OFD packet to send [04:34:35]OFD Sender: No OFD packet to send [04:34:40]OFD Sender: No OFD packet to send [04:34:45]OFD Sender: No OFD packet to send [04:34:50]OFD Sender: No OFD packet to send [04:34:55]OFD Sender: No OFD packet to send [04:35:00]OFD Sender: No OFD packet to send [04:35:05]OFD Sender: No OFD packet to send [04:35:10]OFD Sender: No OFD packet to send [04:35:15]OFD Sender: No OFD packet to send [04:35:20]OFD Sender: No OFD packet to send [04:35:25]OFD Sender: No OFD packet to send [04:35:30]OFD Sender: No OFD packet to send [04:35:35]OFD Sender: No OFD packet to send [04:35:40]OFD Sender: No OFD packet to send [04:35:45]OFD Sender: No OFD packet to send [04:35:51]OFD Sender: No OFD packet to send [04:35:56]OFD Sender: No OFD packet to send [04:36:01]OFD Sender: No OFD packet to send [04:36:06]OFD Sender: No OFD packet to send [04:36:11]OFD Sender: No OFD packet to send [04:36:16]OFD Sender: No OFD packet to send [04:36:21]OFD Sender: No OFD packet to send [04:36:26]OFD Sender: No OFD packet to send [04:36:31]OFD Sender: No OFD packet to send [04:36:36]OFD Sender: No OFD packet to send [04:36:41]OFD Sender: No OFD packet to send [04:36:46]OFD Sender: No OFD packet to send [04:36:51]OFD Sender: No OFD packet to send [04:36:56]OFD Sender: No OFD packet to send [04:37:01]OFD Sender: No OFD packet to send [04:37:06]OFD Sender: No OFD packet to send [04:37:11]OFD Sender: No OFD packet to send [04:37:16]OFD Sender: No OFD packet to send [04:37:21]OFD Sender: No OFD packet to send [04:37:26]OFD Sender: No OFD packet to send [04:37:31]OFD Sender: No OFD packet to send [04:37:36]OFD Sender: No OFD packet to send [04:37:41]OFD Sender: No OFD packet to send [04:37:46]OFD Sender: No OFD packet to send [04:37:51]OFD Sender: No OFD packet to send [04:37:56]OFD Sender: No OFD packet to send [04:38:01]OFD Sender: No OFD packet to send [04:38:06]OFD Sender: No OFD packet to send [04:38:11]OFD Sender: No OFD packet to send [04:38:16]OFD Sender: No OFD packet to send [04:38:21]OFD Sender: No OFD packet to send [04:38:26]OFD Sender: No OFD packet to send [04:38:31]OFD Sender: No OFD packet to send [04:38:36]OFD Sender: No OFD packet to send [04:38:41]OFD Sender: No OFD packet to send [04:38:46]OFD Sender: No OFD packet to send [04:38:51]OFD Sender: No OFD packet to send [04:38:56]OFD Sender: No OFD packet to send [04:39:01]OFD Sender: No OFD packet to send [04:39:06]OFD Sender: No OFD packet to send [04:39:11]OFD Sender: No OFD packet to send [04:39:16]OFD Sender: No OFD packet to send [04:39:21]OFD Sender: No OFD packet to send [04:39:26]OFD Sender: No OFD packet to send [04:39:31]OFD Sender: No OFD packet to send [04:39:36]OFD Sender: No OFD packet to send [04:39:41]OFD Sender: No OFD packet to send [04:39:46]OFD Sender: No OFD packet to send [04:39:51]OFD Sender: No OFD packet to send [04:39:56]OFD Sender: No OFD packet to send [04:40:01]OFD Sender: No OFD packet to send [04:40:06]OFD Sender: No OFD packet to send [04:40:11]OFD Sender: No OFD packet to send [04:40:16]OFD Sender: No OFD packet to send [04:40:21]OFD Sender: No OFD packet to send [04:40:26]OFD Sender: No OFD packet to send [04:40:31]OFD Sender: No OFD packet to send [04:40:36]OFD Sender: No OFD packet to send [04:40:41]OFD Sender: No OFD packet to send [04:40:46]OFD Sender: No OFD packet to send [04:40:51]OFD Sender: No OFD packet to send [04:40:56]OFD Sender: No OFD packet to send [04:41:01]OFD Sender: No OFD packet to send [04:41:06]OFD Sender: No OFD packet to send [04:41:11]OFD Sender: No OFD packet to send [04:41:16]OFD Sender: No OFD packet to send [04:41:21]OFD Sender: No OFD packet to send [04:41:26]OFD Sender: No OFD packet to send [04:41:31]OFD Sender: No OFD packet to send [04:41:36]OFD Sender: No OFD packet to send [04:41:41]OFD Sender: No OFD packet to send [04:41:46]OFD Sender: No OFD packet to send [04:41:51]OFD Sender: No OFD packet to send [04:41:56]OFD Sender: No OFD packet to send [04:42:01]OFD Sender: No OFD packet to send [04:42:06]OFD Sender: No OFD packet to send [04:42:11]OFD Sender: No OFD packet to send [04:42:16]OFD Sender: No OFD packet to send [04:42:21]OFD Sender: No OFD packet to send [04:42:26]OFD Sender: No OFD packet to send [04:42:31]OFD Sender: No OFD packet to send [04:42:36]OFD Sender: No OFD packet to send [04:42:41]OFD Sender: No OFD packet to send [04:42:46]OFD Sender: No OFD packet to send [04:42:51]OFD Sender: No OFD packet to send [04:42:56]OFD Sender: No OFD packet to send [04:43:01]OFD Sender: No OFD packet to send [04:43:06]OFD Sender: No OFD packet to send [04:43:11]OFD Sender: No OFD packet to send [04:43:16]OFD Sender: No OFD packet to send [04:43:21]OFD Sender: No OFD packet to send [04:43:26]OFD Sender: No OFD packet to send [04:43:31]OFD Sender: No OFD packet to send [04:43:36]OFD Sender: No OFD packet to send [04:43:41]OFD Sender: No OFD packet to send [04:43:46]OFD Sender: No OFD packet to send [04:43:51]OFD Sender: No OFD packet to send [04:43:56]OFD Sender: No OFD packet to send [04:44:01]OFD Sender: No OFD packet to send [04:44:06]OFD Sender: No OFD packet to send [04:44:11]OFD Sender: No OFD packet to send [04:44:16]OFD Sender: No OFD packet to send [04:44:21]OFD Sender: No OFD packet to send [04:44:26]OFD Sender: No OFD packet to send [04:44:31]OFD Sender: No OFD packet to send [04:44:36]OFD Sender: No OFD packet to send [04:44:41]OFD Sender: No OFD packet to send [04:44:46]OFD Sender: No OFD packet to send [04:44:51]OFD Sender: No OFD packet to send [04:44:56]OFD Sender: No OFD packet to send [04:45:01]OFD Sender: No OFD packet to send [04:45:06]OFD Sender: No OFD packet to send [04:45:11]OFD Sender: No OFD packet to send [04:45:16]OFD Sender: No OFD packet to send [04:45:21]OFD Sender: No OFD packet to send [04:45:26]OFD Sender: No OFD packet to send [04:45:31]OFD Sender: No OFD packet to send [04:45:36]OFD Sender: No OFD packet to send [04:45:41]OFD Sender: No OFD packet to send [04:45:46]OFD Sender: No OFD packet to send [04:45:51]OFD Sender: No OFD packet to send [04:45:56]OFD Sender: No OFD packet to send [04:46:01]OFD Sender: No OFD packet to send [04:46:06]OFD Sender: No OFD packet to send [04:46:11]OFD Sender: No OFD packet to send [04:46:16]OFD Sender: No OFD packet to send [04:46:21]OFD Sender: No OFD packet to send [04:46:26]OFD Sender: No OFD packet to send [04:46:31]OFD Sender: No OFD packet to send [04:46:36]OFD Sender: No OFD packet to send [04:46:41]OFD Sender: No OFD packet to send [04:46:46]OFD Sender: No OFD packet to send [04:46:51]OFD Sender: No OFD packet to send [04:46:56]OFD Sender: No OFD packet to send [04:47:01]OFD Sender: No OFD packet to send [04:47:06]OFD Sender: No OFD packet to send [04:47:11]OFD Sender: No OFD packet to send [04:47:16]OFD Sender: No OFD packet to send [04:47:21]OFD Sender: No OFD packet to send [04:47:26]OFD Sender: No OFD packet to send [04:47:31]OFD Sender: No OFD packet to send [04:47:36]OFD Sender: No OFD packet to send [04:47:41]OFD Sender: No OFD packet to send [04:47:46]OFD Sender: No OFD packet to send [04:47:51]OFD Sender: No OFD packet to send [04:47:56]OFD Sender: No OFD packet to send [04:48:01]OFD Sender: No OFD packet to send [04:48:06]OFD Sender: No OFD packet to send [04:48:11]OFD Sender: No OFD packet to send [04:48:16]OFD Sender: No OFD packet to send [04:48:21]OFD Sender: No OFD packet to send [04:48:26]OFD Sender: No OFD packet to send [04:48:31]OFD Sender: No OFD packet to send [04:48:36]OFD Sender: No OFD packet to send [04:48:41]OFD Sender: No OFD packet to send [04:48:46]OFD Sender: No OFD packet to send [04:48:51]OFD Sender: No OFD packet to send [04:48:56]OFD Sender: No OFD packet to send [04:49:01]OFD Sender: No OFD packet to send [04:49:06]OFD Sender: No OFD packet to send [04:49:11]OFD Sender: No OFD packet to send [04:49:16]OFD Sender: No OFD packet to send [04:49:21]OFD Sender: No OFD packet to send [04:49:26]OFD Sender: No OFD packet to send [04:49:31]OFD Sender: No OFD packet to send [04:49:36]OFD Sender: No OFD packet to send [04:49:41]OFD Sender: No OFD packet to send [04:49:46]OFD Sender: No OFD packet to send [04:49:51]OFD Sender: No OFD packet to send [04:49:56]OFD Sender: No OFD packet to send [04:50:01]OFD Sender: No OFD packet to send [04:50:06]OFD Sender: No OFD packet to send [04:50:11]OFD Sender: No OFD packet to send [04:50:16]OFD Sender: No OFD packet to send [04:50:21]OFD Sender: No OFD packet to send [04:50:26]OFD Sender: No OFD packet to send [04:50:31]OFD Sender: No OFD packet to send [04:50:36]OFD Sender: No OFD packet to send [04:50:41]OFD Sender: No OFD packet to send [04:50:46]OFD Sender: No OFD packet to send [04:50:51]OFD Sender: No OFD packet to send [04:50:56]OFD Sender: No OFD packet to send [04:51:01]OFD Sender: No OFD packet to send [04:51:06]OFD Sender: No OFD packet to send [04:51:11]OFD Sender: No OFD packet to send [04:51:16]OFD Sender: No OFD packet to send [04:51:21]OFD Sender: No OFD packet to send [04:51:26]OFD Sender: No OFD packet to send [04:51:31]OFD Sender: No OFD packet to send [04:51:36]OFD Sender: No OFD packet to send [04:51:41]OFD Sender: No OFD packet to send [04:51:46]OFD Sender: No OFD packet to send [04:51:51]OFD Sender: No OFD packet to send [04:51:56]OFD Sender: No OFD packet to send [04:52:01]OFD Sender: No OFD packet to send [04:52:06]OFD Sender: No OFD packet to send [04:52:11]OFD Sender: No OFD packet to send [04:52:16]OFD Sender: No OFD packet to send [04:52:21]OFD Sender: No OFD packet to send [04:52:26]OFD Sender: No OFD packet to send [04:52:31]OFD Sender: No OFD packet to send [04:52:36]OFD Sender: No OFD packet to send [04:52:41]OFD Sender: No OFD packet to send [04:52:46]OFD Sender: No OFD packet to send [04:52:51]OFD Sender: No OFD packet to send [04:52:56]OFD Sender: No OFD packet to send [04:53:01]OFD Sender: No OFD packet to send [04:53:06]OFD Sender: No OFD packet to send [04:53:11]OFD Sender: No OFD packet to send [04:53:16]OFD Sender: No OFD packet to send [04:53:21]OFD Sender: No OFD packet to send [04:53:26]OFD Sender: No OFD packet to send [04:53:31]OFD Sender: No OFD packet to send [04:53:36]OFD Sender: No OFD packet to send [04:53:41]OFD Sender: No OFD packet to send [04:53:46]OFD Sender: No OFD packet to send [04:53:51]OFD Sender: No OFD packet to send [04:53:56]OFD Sender: No OFD packet to send [04:54:01]OFD Sender: No OFD packet to send [04:54:06]OFD Sender: No OFD packet to send [04:54:11]OFD Sender: No OFD packet to send [04:54:16]OFD Sender: No OFD packet to send [04:54:21]OFD Sender: No OFD packet to send [04:54:26]OFD Sender: No OFD packet to send [04:54:31]OFD Sender: No OFD packet to send [04:54:36]OFD Sender: No OFD packet to send [04:54:41]OFD Sender: No OFD packet to send [04:54:46]OFD Sender: No OFD packet to send [04:54:51]OFD Sender: No OFD packet to send [04:54:56]OFD Sender: No OFD packet to send [04:55:01]OFD Sender: No OFD packet to send [04:55:06]OFD Sender: No OFD packet to send [04:55:11]OFD Sender: No OFD packet to send [04:55:16]OFD Sender: No OFD packet to send [04:55:21]OFD Sender: No OFD packet to send [04:55:26]OFD Sender: No OFD packet to send [04:55:31]OFD Sender: No OFD packet to send [04:55:33]accept exits with 7 [04:55:33]New connection [04:55:33]New thread 3066715492 created [04:55:33]Thread 3066858852 joined [04:55:33]Waiting for new connection... [04:55:33] Sock 7.Parse request [04:55:33]Sock 7.Check first char [04:55:33]Sock 7.First char is OK [04:55:33]request: POST /json_proto HTTP/1.0 [04:55:33]Method: POST [04:55:33]URL: /json_proto [04:55:33]Method is POST - this is cgi request [04:55:33]url: /json_proto [04:55:33]query_string will be loaded in cgi processing [04:55:33]execute_cgi json_proto POST (null) [04:55:33]execute_cgi path=json_proto method=POST [04:55:33]POST find Content-Length [04:55:33]Host: 172.17.38.133:8080 [04:55:33]Content-Length: 819 [04:55:33]Content-Type: application/json [04:55:33] [04:55:33]POST finish read [04:55:33]Found Content-Length = 819 [04:55:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673477", "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" : 35.740, "sum" : 2373.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 2373.14 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:55:33]execute_script... [04:55: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)673477", "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" : 35.740, "sum" : 2373.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 2373.14 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:55:33]POST & json_proto [04:55:33]process_json_proto [04:55:33]json parsed OK: [04:55:33]protocol is kg_v1.0 [04:55:33]action value=close_receipt [04:55:33]process_action close_receipt [04:55:33]cmd_close_receipt [04:55:33]MH_GetDate [04:55:33]Write to MH i2c: F0 00 00 1E 0E 1B [04:55:33]Write i2c OK [04:55:33]MH_I2C_Read... [04:55:33]Read from MH i2c: F0 [04:55:33]MH_I2C_Read... [04:55:33]Read from MH i2c: F0 09 00 [04:55:33]MH_I2C_Read... [04:55:33]Read from MH i2c: F0 09 00 1E 0E 00 C8 07 75 66 BD 8F 7C 64 FA [04:55:33]GetLastDocTimeStamp 1718940977 [04:55:33]current date 1718945736 [04:55:33]FM_GetShiftState [04:55:33]SAM_PROTO_GetShiftState [04:55:33]wFMCommunicate request_size=4 [04:55:33]MH_SAM_APDU [04:55:33]CAPDU: 80 13 01 00 [04:55:33]Write to MH i2c: E2 08 00 1F 0E 80 13 01 00 00 00 00 00 AA [04:55:33]Write i2c OK [04:55:33]MH_I2C_Read... [04:55:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:55:33]Read from MH i2c: E2 [04:55:33]MH_I2C_Read... [04:55:33]Read from MH i2c: E2 0E 00 [04:55:33]MH_I2C_Read... [04:55:33]Read from MH i2c: E2 0E 00 1F 0E 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 BD [04:55:33]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [04:55:33]wFMCommunicate OK [04:55:33]SAM_PROTO_GetShiftState done [04:55:33]FM_GetShiftState done [04:55:33]opened in 1718929509 [04:55:33]opened+sec_in_day 1719015909 [04:55:33]quantity*price = 237313 [04:55:33]sum+1 = 237315 [04:55:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2373.14 НСП 1% : 21.00 НДС 12% : 252.01 Наличными: 0.00 Безнал.: 2373.14 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 11 21.06.2024 04:55 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875093 ФД: 104088 ФПД: 198357347840041 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T045536&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104088&fm=198357347840041&tin=02508201610067®Number=0000000000092785&sum=237314 [04:55:34]StoreToDocumentArchive [04:55:34]shift 355 fd 104088 [04:55:34]save to /storage/0355/doc_00104088 [04:55:34]save last doc name /storage/0355/doc_00104088 to /storage/kkm_last_doc_name [04:55:34]save OK [04:55:34]Clear old archive folders... [04:55:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [04:55:34]tlvbuf is 01148070 [04:55:34]SAM_PROTO_ClearQueue [04:55:34]wFMCommunicate request_size=4 [04:55:34]MH_SAM_APDU [04:55:34]CAPDU: 80 09 00 00 [04:55:34]Write to MH i2c: E2 08 00 2C 0E 80 09 00 00 00 00 00 00 AC [04:55:34]Write i2c OK [04:55:34]MH_I2C_Read... [04:55:34]Read from MH i2c: E2 [04:55:34]MH_I2C_Read... [04:55:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:55:34]Read from MH i2c: E2 03 00 [04:55:34]MH_I2C_Read... [04:55:34]Read from MH i2c: E2 03 00 2C 0E 00 90 00 AE [04:55:34]RAPDU: 90 00 [04:55:34]wFMCommunicate OK [04:55:34]SAM_PROTO_ClearQueue done [04:55:34]KKMCreateOFDPacket [04:55:34]OFDProtocolAddRootSTLVToBuf [04:55:34]FM_MakeSignedData [04:55:34]FM_MakeSignedData [04:55:34]SAM_PROTO_SignData [04:55:34]wFMCommunicate request_size=4 [04:55:34]MH_SAM_APDU [04:55:34]CAPDU: 80 0D 01 02 [04:55:34]Write to MH i2c: E2 08 00 2D 0E 80 0D 01 02 00 00 00 00 B4 [04:55:34]Write i2c OK [04:55:34]MH_I2C_Read... [04:55:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:55:34]Read from MH i2c: E2 [04:55:34]MH_I2C_Read... [04:55:34]Read from MH i2c: E2 03 00 [04:55:34]MH_I2C_Read... [04:55:34]Read from MH i2c: E2 03 00 2D 0E 00 90 00 AF [04:55:34]RAPDU: 90 00 [04:55:34]wFMCommunicate OK [04:55:34]wFMCommunicate request_size=255 [04:55:34]MH_SAM_APDU [04:55: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 9C 8B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 02 9F 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 02 9F 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 34 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 71 62 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 02 9F 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 C8 07 75 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 98 96 01 00 35 04 06 00 B4 [04:55:34]Write to MH i2c: E2 02 01 2E 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 8B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 02 9F 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 02 9F 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 34 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 71 62 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 02 9F 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 C8 07 75 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 98 96 01 00 35 04 06 00 B4 00 00 EB [04:55:34]Write i2c OK [04:55:34]MH_I2C_Read... [04:55:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:55:34]Read from MH i2c: E2 [04:55:34]MH_I2C_Read... [04:55:34]Read from MH i2c: E2 03 00 [04:55:34]MH_I2C_Read... [04:55:34]Read from MH i2c: E2 03 00 2E 0E 00 90 00 B0 [04:55:34]RAPDU: 90 00 [04:55:34]wFMCommunicate OK [04:55:34]wFMCommunicate request_size=10 [04:55:34]MH_SAM_APDU [04:55:34]CAPDU: 80 0D 02 02 05 67 AB 41 B0 29 [04:55:34]Write to MH i2c: E2 0D 00 2F 0E 80 0D 02 02 05 00 67 AB 41 B0 29 00 00 ED [04:55:34]Write i2c OK [04:55:34]MH_I2C_Read... [04:55:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:55:34]Read from MH i2c: E2 [04:55:34]MH_I2C_Read... [04:55:34]Read from MH i2c: E2 03 00 [04:55:34]MH_I2C_Read... [04:55:34]Read from MH i2c: E2 03 00 2F 0E 00 90 00 B1 [04:55:34]RAPDU: 90 00 [04:55:34]wFMCommunicate OK [04:55:34]wFMCommunicate request_size=4 [04:55:34]MH_SAM_APDU [04:55:34]CAPDU: 80 0D 03 02 [04:55:34]Write to MH i2c: E2 08 00 30 0E 80 0D 03 02 00 00 00 00 B9 [04:55:34]Write i2c OK [04:55:34]MH_I2C_Read... [04:55:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:55:35]Read from MH i2c: E2 [04:55:35]MH_I2C_Read... [04:55:35]Read from MH i2c: E2 0B 00 [04:55:35]MH_I2C_Read... [04:55:35]Read from MH i2c: E2 0B 00 30 0E 00 30 0B 34 99 B9 DD 91 F1 90 00 DA [04:55:35]RAPDU: 30 0B 34 99 B9 DD 91 F1 90 00 [04:55:35]wFMCommunicate OK [04:55:35]SAM_PROTO_SignData done [04:55:35]FM_MakeSignedData done [04:55:35]CreateOFDProtocolMessage [04:55:35]wFMCommunicate request_size=4 [04:55:35]MH_SAM_APDU [04:55:35]CAPDU: 80 11 00 00 [04:55:35]Write to MH i2c: E2 08 00 31 0E 80 11 00 00 00 00 00 00 B9 [04:55:35]Write i2c OK [04:55:35]MH_I2C_Read... [04:55:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:55:35]Read from MH i2c: E2 [04:55:35]MH_I2C_Read... [04:55:35]Read from MH i2c: E2 17 00 [04:55:35]MH_I2C_Read... [04:55:35]Read from MH i2c: E2 17 00 31 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 0C [04:55:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [04:55:35]wFMCommunicate OK [04:55:35]CreateOFDProtocolMessage done [04:55:35]OFDSenderStorePacket 104088 [04:55:35]StoreOFDPacket docnum=104088 [04:55: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 3B 32 07 01 28 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 9C 8B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 02 9F 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 02 9F 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 34 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 71 62 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 02 9F 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 C8 07 75 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 98 96 01 00 35 04 06 00 B4 67 AB 41 B0 29 30 0B 34 99 B9 DD 91 F1 [04:55:35]CheckFolder [04:55:35]dirname=/storage/ofd_packets [04:55:35]CheckFolder done [04:55:35]ProducePacketName [04:55:35]name=ofd_packets/00104088 [04:55:35]NVStorageSaveData ofd_packets/00104088 [04:55:35]File name is /storage/ofd_packets/00104088 [04:55:35]Write 301 bytes [04:55:35]NVStorageSaveData done [04:55:35]OFDSenderStorePacket done [04:55:35]KKMCreateOFDPacket done [04:55:35]NVStorageSaveData kkm_last_timestamp [04:55:35]File name is /storage/kkm_last_timestamp [04:55:35]Write 4 bytes [04:55:35]NVStorageSaveData done [04:55:35]ExternCall_PrintAddStr [04:55:35]wPrintStart [04:55:35]Write to MH i2c: 01 00 00 32 0E 40 [04:55:35]Write i2c OK [04:55:35]MH_I2C_Read... [04:55:35]Read from MH i2c: 01 [04:55:35]MH_I2C_Read... [04:55:35]Read from MH i2c: 01 07 00 [04:55:35]MH_I2C_Read... [04:55:35]Read from MH i2c: 01 07 00 32 0E 00 00 00 00 00 FF 0F 55 [04:55:35]RasterBufferAndPrint [04:55:35]line Счет N : (1)673477 [04:55:35]line ИНН: 02508201610067 [04:55:35]line Контрольно-Кассовый Чек [04:55:35]line ПРОДАЖА [04:55:35]line ТРК (МРК, ГНК) : 32 [04:55:35]line Товар: 2710124130 [04:55:35]line Аи-92-К-5 [04:55:35]line 35.740 * 66.40 [04:55:35]line = 2373.14 [04:55:35]line НДС 12% НСП 1% [04:55:35]line > о реализуемом товаре [04:55:35]line ИТОГО: 2373.14 [04:55:35]line НСП 1% : 21.00 [04:55:35]line НДС 12% : 252.01 [04:55:35]line Наличными: 0.00 [04:55:35]line Безнал.: 2373.14 [04:55:35]line Место: АЗС № 120 "Партнер Нефть" [04:55:35]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [04:55:35]line СНО: Общий режим [04:55:35]line Чек 11 21.06.2024 04:55 [04:55:35]line Смена: 355 ФФД: 1.0 [04:55:35]line ЗНМ: 0300000164 [04:55:35]line РНМ: 0000000000092785 [04:55:35]line Версия ККМ: 001 [04:55:35]line Платежная система: Бакай Банк [04:55:35]line ФМ: 0000000000875093 [04:55:35]line ФД: 104088 [04:55:35]line ФПД: 198357347840041 [04:55:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T045536&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104088&fm=198357347840041&tin=02508201610067®Number=0000000000092785&sum=237314 [04:55:35]written 0, free lines is 4095 [04:55:35]OFD Sender: Processing packet 104088 [packets to send 17, broken 16] [04:55:35]ProducePacketName [04:55:35]name=ofd_packets/00104088 [04:55:35]OFD Sender: To server: pG, [04:55:35]CommunicateWithHost lk.salyk.kg:30040 [04:55:35]ConnectInit lk.salyk.kg [04:55:35]Connected sock=10 [04:55: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 3B 32 07 01 28 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 9C 8B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 02 9F 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 02 9F 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 34 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 71 62 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 02 9F 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 C8 07 75 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 98 96 01 00 35 04 06 00 B4 67 AB 41 B0 29 30 0B 34 99 B9 DD 91 F1 [04:55: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 BB 71 47 00 F8 28 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 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 96 01 00 F4 03 04 00 4B AE 74 66 B6 04 01 00 00 62 C8 17 17 3C 53 BB 3A [04:55:35]CommunicateWithHost err = 0 [04:55:35]CheckOFDResponse [04:55:35]1017 (14) - 77093643461234 [04:55:35]1041 (16) - 0000000000875093 [04:55:35]1040 (4) - 104088 [04:55:35]1012 (4) - 20.06.2024 22:33 [04:55:35]1206 (1) - 0 [04:55:35]OFD Sender: Remove packet 104088 [04:55:35]ProducePacketName [04:55:35]name=ofd_packets/00104088 [04:55:35]NVStorageDeleteData [04:55:35]Write to MH i2c: 01 00 00 5C 0E 6A [04:55:35]Write i2c OK [04:55:35]MH_I2C_Read... [04:55:35]Read from MH i2c: 01 [04:55:35]MH_I2C_Read... [04:55:35]Read from MH i2c: 01 07 00 [04:55:35]MH_I2C_Read... [04:55:35]Read from MH i2c: 01 07 00 5C 0E 00 00 00 00 00 F4 0C 71 [04:55:35]RasterBufferAndPrint [04:55:35]line [04:55:35]line [04:55:35]line [04:55:35]line [04:55:35]line [04:55:35]written 0, free lines is 3322 [04:55:35]MH_Cut [04:55:35]Write to MH i2c: D1 01 00 63 0E 01 43 [04:55:35]Write i2c OK [04:55:35]MH_I2C_Read... [04:55:35]Read from MH i2c: D1 [04:55:35]MH_I2C_Read... [04:55:35]Read from MH i2c: D1 01 00 [04:55:35]MH_I2C_Read... [04:55:35]Read from MH i2c: D1 01 00 63 0E 00 42 [04:55:35]Write to MH i2c: 01 00 00 64 0E 72 [04:55:35]Write i2c OK [04:55:35]MH_I2C_Read... [04:55:36]OFD Sender: No OFD packet to send [04:55:36]*** Cut start [04:55:36]*** Partial cut [04:55:36]*** CUTSNS_PIN = 1 [04:55:36]*** CUTSNS_PIN = 0 [04:55:36]*** Brake cut motor [04:55:37]Read from MH i2c: 01 [04:55:37]MH_I2C_Read... [04:55:37]*** Stop cut motor [04:55:37]*** Cut end [04:55:37]Read from MH i2c: 01 07 00 [04:55:37]MH_I2C_Read... [04:55:37]Read from MH i2c: 01 07 00 64 0E 00 00 00 00 00 FF 0F 87 [04:55:37]process_action close_receipt done [04:55:37]requested_data is exist [04:55:37]produce_requested_data [04:55:37]requested_item fm.sn is exist - process it [04:55:37]wFMCommunicate request_size=4 [04:55:37]MH_SAM_APDU [04:55:37]CAPDU: 80 11 00 00 [04:55:37]Write to MH i2c: E2 08 00 65 0E 80 11 00 00 00 00 00 00 ED [04:55:37]Write i2c OK [04:55:37]MH_I2C_Read... [04:55:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:55:37]Read from MH i2c: E2 [04:55:37]MH_I2C_Read... [04:55:37]Read from MH i2c: E2 17 00 [04:55:37]MH_I2C_Read... [04:55:37]Read from MH i2c: E2 17 00 65 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 40 [04:55:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [04:55:37]wFMCommunicate OK [04:55:37]requested_item fd.num is exist - process it [04:55:37]SAM_PROTO_GetFieldsCounters [04:55:37]wFMCommunicate request_size=4 [04:55:37]MH_SAM_APDU [04:55:37]CAPDU: 80 13 00 00 [04:55:37]Write to MH i2c: E2 08 00 66 0E 80 13 00 00 00 00 00 00 F0 [04:55:37]Write i2c OK [04:55:37]MH_I2C_Read... [04:55:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:55:37]Read from MH i2c: E2 [04:55:37]MH_I2C_Read... [04:55:37]Read from MH i2c: E2 62 00 [04:55:37]MH_I2C_Read... [04:55:37]Read from MH i2c: E2 62 00 66 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 98 96 01 00 0E 04 04 00 63 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 CB [04:55: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 98 96 01 00 0E 04 04 00 63 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:55:37]wFMCommunicate OK [04:55:37]SAM_PROTO_GetFieldsCounters done [04:55:37]requested_item shift.num is exist - process it [04:55:37]requested_item shift.opened is exist - process it [04:55:37]req_shift_opened [04:55:37]FM_GetShiftState [04:55:37]SAM_PROTO_GetShiftState [04:55:37]wFMCommunicate request_size=4 [04:55:37]MH_SAM_APDU [04:55:37]CAPDU: 80 13 01 00 [04:55:37]Write to MH i2c: E2 08 00 67 0E 80 13 01 00 00 00 00 00 F2 [04:55:37]Write i2c OK [04:55:37]MH_I2C_Read... [04:55:37]Read from MH i2c: E2 [04:55:37]MH_I2C_Read... [04:55:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:55:37]Read from MH i2c: E2 0E 00 [04:55:37]MH_I2C_Read... [04:55:37]Read from MH i2c: E2 0E 00 67 0E 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 05 [04:55:37]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [04:55:37]wFMCommunicate OK [04:55:37]SAM_PROTO_GetShiftState done [04:55:37]FM_GetShiftState done [04:55:37]req_shift_opened done [04:55:37]requested_item shift.open_date is exist - process it [04:55:37]req_shift_open_date [04:55:37]req_shift_open_date done [04:55:37]produce_requested_data done [04:55:37]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104088,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [04:55:37]process_action_free close_receipt [04:55:37]json_value_free [04:55:37]json_value_free done [04:55:37]process_json_proto returns [04:55:37]Send response to host [04:55:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104088,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [04:55:37]free response buf [04:55:37]execute_script done [04:55:37]execute_script returns [04:55:37]free content buf [04:55:37]Sock 7.Close socket [04:55:37]Sock 7.Thread stoped [04:55:41]OFD Sender: No OFD packet to send [04:55:46]OFD Sender: No OFD packet to send [04:55:51]OFD Sender: No OFD packet to send [04:55:56]OFD Sender: No OFD packet to send [04:56:01]OFD Sender: No OFD packet to send [04:56:06]OFD Sender: No OFD packet to send [04:56:11]OFD Sender: No OFD packet to send [04:56:16]OFD Sender: No OFD packet to send [04:56:21]OFD Sender: No OFD packet to send [04:56:26]OFD Sender: No OFD packet to send [04:56:31]OFD Sender: No OFD packet to send [04:56:36]OFD Sender: No OFD packet to send [04:56:41]OFD Sender: No OFD packet to send [04:56:46]OFD Sender: No OFD packet to send [04:56:51]OFD Sender: No OFD packet to send [04:56:56]OFD Sender: No OFD packet to send [04:57:01]OFD Sender: No OFD packet to send [04:57:06]OFD Sender: No OFD packet to send [04:57:11]OFD Sender: No OFD packet to send [04:57:16]OFD Sender: No OFD packet to send [04:57:21]OFD Sender: No OFD packet to send [04:57:26]OFD Sender: No OFD packet to send [04:57:31]OFD Sender: No OFD packet to send [04:57:36]OFD Sender: No OFD packet to send [04:57:41]OFD Sender: No OFD packet to send [04:57:46]OFD Sender: No OFD packet to send [04:57:51]OFD Sender: No OFD packet to send [04:57:56]OFD Sender: No OFD packet to send [04:58:01]OFD Sender: No OFD packet to send [04:58:06]OFD Sender: No OFD packet to send [04:58:11]OFD Sender: No OFD packet to send [04:58:16]OFD Sender: No OFD packet to send [04:58:21]OFD Sender: No OFD packet to send [04:58:26]OFD Sender: No OFD packet to send [04:58:31]OFD Sender: No OFD packet to send [04:58:36]OFD Sender: No OFD packet to send [04:58:41]OFD Sender: No OFD packet to send [04:58:46]OFD Sender: No OFD packet to send [04:58:51]OFD Sender: No OFD packet to send [04:58:56]OFD Sender: No OFD packet to send [04:59:01]OFD Sender: No OFD packet to send [04:59:06]OFD Sender: No OFD packet to send [04:59:11]OFD Sender: No OFD packet to send [04:59:16]OFD Sender: No OFD packet to send [04:59:21]OFD Sender: No OFD packet to send [04:59:26]OFD Sender: No OFD packet to send [04:59:31]OFD Sender: No OFD packet to send [04:59:36]OFD Sender: No OFD packet to send [04:59:41]OFD Sender: No OFD packet to send [04:59:46]OFD Sender: No OFD packet to send [04:59:51]OFD Sender: No OFD packet to send [04:59:56]OFD Sender: No OFD packet to send [05:00:01]OFD Sender: No OFD packet to send [05:00:06]OFD Sender: No OFD packet to send [05:00:11]OFD Sender: No OFD packet to send [05:00:16]OFD Sender: No OFD packet to send [05:00:21]OFD Sender: No OFD packet to send [05:00:26]OFD Sender: No OFD packet to send [05:00:31]OFD Sender: No OFD packet to send [05:00:36]OFD Sender: No OFD packet to send [05:00:41]OFD Sender: No OFD packet to send [05:00:46]OFD Sender: No OFD packet to send [05:00:51]OFD Sender: No OFD packet to send [05:00:56]OFD Sender: No OFD packet to send [05:01:01]OFD Sender: No OFD packet to send [05:01:06]OFD Sender: No OFD packet to send [05:01:11]OFD Sender: No OFD packet to send [05:01:16]OFD Sender: No OFD packet to send [05:01:21]OFD Sender: No OFD packet to send [05:01:26]OFD Sender: No OFD packet to send [05:01:31]OFD Sender: No OFD packet to send [05:01:36]OFD Sender: No OFD packet to send [05:01:41]OFD Sender: No OFD packet to send [05:01:46]OFD Sender: No OFD packet to send [05:01:51]OFD Sender: No OFD packet to send [05:01:56]OFD Sender: No OFD packet to send [05:02:01]OFD Sender: No OFD packet to send [05:02:06]OFD Sender: No OFD packet to send [05:02:11]OFD Sender: No OFD packet to send [05:02:16]OFD Sender: No OFD packet to send [05:02:21]OFD Sender: No OFD packet to send [05:02:26]OFD Sender: No OFD packet to send [05:02:31]OFD Sender: No OFD packet to send [05:02:36]OFD Sender: No OFD packet to send [05:02:41]OFD Sender: No OFD packet to send [05:02:46]OFD Sender: No OFD packet to send [05:02:51]OFD Sender: No OFD packet to send [05:02:56]OFD Sender: No OFD packet to send [05:03:01]OFD Sender: No OFD packet to send [05:03:06]OFD Sender: No OFD packet to send [05:03:11]OFD Sender: No OFD packet to send [05:03:16]OFD Sender: No OFD packet to send [05:03:21]OFD Sender: No OFD packet to send [05:03:26]OFD Sender: No OFD packet to send [05:03:31]OFD Sender: No OFD packet to send [05:03:36]OFD Sender: No OFD packet to send [05:03:41]OFD Sender: No OFD packet to send [05:03:46]OFD Sender: No OFD packet to send [05:03:51]OFD Sender: No OFD packet to send [05:03:56]OFD Sender: No OFD packet to send [05:04:01]OFD Sender: No OFD packet to send [05:04:06]OFD Sender: No OFD packet to send [05:04:11]OFD Sender: No OFD packet to send [05:04:16]OFD Sender: No OFD packet to send [05:04:20]accept exits with 9 [05:04:20]New connection [05:04:20]New thread 3066858852 created [05:04:20]Thread 3066715492 joined [05:04:20]Waiting for new connection... [05:04:20] Sock 9.Parse request [05:04:20]Sock 9.Check first char [05:04:20]Sock 9.First char is OK [05:04:20]request: POST /json_proto HTTP/1.0 [05:04:20]Method: POST [05:04:20]URL: /json_proto [05:04:20]Method is POST - this is cgi request [05:04:20]url: /json_proto [05:04:20]query_string will be loaded in cgi processing [05:04:20]execute_cgi json_proto POST (null) [05:04:20]execute_cgi path=json_proto method=POST [05:04:20]POST find Content-Length [05:04:20]Host: 172.17.38.133:8080 [05:04:20]Content-Length: 827 [05:04:20]Content-Type: application/json [05:04:20] [05:04:20]POST finish read [05:04:20]Found Content-Length = 827 [05:04:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673478", "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" : 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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 10000.42 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:04:20]execute_script... [05:04: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)673478", "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" : 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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 10000.42 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:04:20]POST & json_proto [05:04:20]process_json_proto [05:04:20]json parsed OK: [05:04:20]protocol is kg_v1.0 [05:04:20]action value=close_receipt [05:04:20]process_action close_receipt [05:04:20]cmd_close_receipt [05:04:20]MH_GetDate [05:04:20]Write to MH i2c: F0 00 00 68 0E 65 [05:04:20]Write i2c OK [05:04:20]MH_I2C_Read... [05:04:20]Read from MH i2c: F0 [05:04:20]MH_I2C_Read... [05:04:20]Read from MH i2c: F0 09 00 [05:04:20]MH_I2C_Read... [05:04:20]Read from MH i2c: F0 09 00 68 0E 00 D7 09 75 66 BD 8F 7C 64 55 [05:04:20]GetLastDocTimeStamp 1718945736 [05:04:20]current date 1718946263 [05:04:20]FM_GetShiftState [05:04:20]SAM_PROTO_GetShiftState [05:04:20]wFMCommunicate request_size=4 [05:04:20]MH_SAM_APDU [05:04:20]CAPDU: 80 13 01 00 [05:04:20]Write to MH i2c: E2 08 00 69 0E 80 13 01 00 00 00 00 00 F4 [05:04:20]Write i2c OK [05:04:20]MH_I2C_Read... [05:04:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:04:20]Read from MH i2c: E2 [05:04:20]MH_I2C_Read... [05:04:20]Read from MH i2c: E2 0E 00 [05:04:20]MH_I2C_Read... [05:04:20]Read from MH i2c: E2 0E 00 69 0E 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 07 [05:04:20]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [05:04:20]wFMCommunicate OK [05:04:20]SAM_PROTO_GetShiftState done [05:04:20]FM_GetShiftState done [05:04:20]opened in 1718929509 [05:04:20]opened+sec_in_day 1719015909 [05:04:20]quantity*price = 1000042 [05:04:20]sum+1 = 1000043 [05:04:20]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 СНО: Общий режим Чек 12 21.06.2024 05:04 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875093 ФД: 104089 ФПД: 209817994968365 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T050423&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104089&fm=209817994968365&tin=02508201610067®Number=0000000000092785&sum=1000042 [05:04:21]StoreToDocumentArchive [05:04:21]shift 355 fd 104089 [05:04:21]save to /storage/0355/doc_00104089 [05:04:21]save last doc name /storage/0355/doc_00104089 to /storage/kkm_last_doc_name [05:04:21]save OK [05:04:21]Clear old archive folders... [05:04:21]ProcessDocumentItem done err = 0, tmpTLVsize=252 [05:04:21]tlvbuf is B6D91450 [05:04:21]SAM_PROTO_ClearQueue [05:04:21]wFMCommunicate request_size=4 [05:04:21]MH_SAM_APDU [05:04:21]CAPDU: 80 09 00 00 [05:04:21]Write to MH i2c: E2 08 00 76 0E 80 09 00 00 00 00 00 00 F6 [05:04:21]Write i2c OK [05:04:21]MH_I2C_Read... [05:04:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:04:21]Read from MH i2c: E2 [05:04:21]MH_I2C_Read... [05:04:21]Read from MH i2c: E2 03 00 [05:04:21]MH_I2C_Read... [05:04:21]Read from MH i2c: E2 03 00 76 0E 00 90 00 F8 [05:04:21]RAPDU: 90 00 [05:04:21]wFMCommunicate OK [05:04:21]SAM_PROTO_ClearQueue done [05:04:21]KKMCreateOFDPacket [05:04:21]OFDProtocolAddRootSTLVToBuf [05:04:21]FM_MakeSignedData [05:04:21]FM_MakeSignedData [05:04:21]SAM_PROTO_SignData [05:04:21]wFMCommunicate request_size=4 [05:04:21]MH_SAM_APDU [05:04:21]CAPDU: 80 0D 01 02 [05:04:21]Write to MH i2c: E2 08 00 77 0E 80 0D 01 02 00 00 00 00 FE [05:04:21]Write i2c OK [05:04:21]MH_I2C_Read... [05:04:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:04:21]Read from MH i2c: E2 [05:04:21]MH_I2C_Read... [05:04:21]Read from MH i2c: E2 03 00 [05:04:21]MH_I2C_Read... [05:04:21]Read from MH i2c: E2 03 00 77 0E 00 90 00 F9 [05:04:21]RAPDU: 90 00 [05:04:21]wFMCommunicate OK [05:04:21]wFMCommunicate request_size=255 [05:04:21]MH_SAM_APDU [05:04: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 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 0C 00 00 00 F4 03 04 00 D7 09 75 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 99 96 01 00 35 04 06 00 [05:04:21]Write to MH i2c: E2 02 01 78 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 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 0C 00 00 00 F4 03 04 00 D7 09 75 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 99 96 01 00 35 04 06 00 00 00 8A [05:04:21]Write i2c OK [05:04:21]MH_I2C_Read... [05:04:21]OFD Sender: No OFD packet to send [05:04:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:04:21]Read from MH i2c: E2 [05:04:21]MH_I2C_Read... [05:04:21]Read from MH i2c: E2 03 00 [05:04:21]MH_I2C_Read... [05:04:21]Read from MH i2c: E2 03 00 78 0E 00 90 00 FA [05:04:21]RAPDU: 90 00 [05:04:21]wFMCommunicate OK [05:04:21]wFMCommunicate request_size=11 [05:04:21]MH_SAM_APDU [05:04:21]CAPDU: 80 0D 02 02 06 BE D4 0F 0E BD 2D [05:04:21]Write to MH i2c: E2 0E 00 79 0E 80 0D 02 02 06 00 BE D4 0F 0E BD 2D 00 00 A6 [05:04:21]Write i2c OK [05:04:21]MH_I2C_Read... [05:04:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:04:22]Read from MH i2c: E2 [05:04:22]MH_I2C_Read... [05:04:22]Read from MH i2c: E2 03 00 [05:04:22]MH_I2C_Read... [05:04:22]Read from MH i2c: E2 03 00 79 0E 00 90 00 FB [05:04:22]RAPDU: 90 00 [05:04:22]wFMCommunicate OK [05:04:22]wFMCommunicate request_size=4 [05:04:22]MH_SAM_APDU [05:04:22]CAPDU: 80 0D 03 02 [05:04:22]Write to MH i2c: E2 08 00 7A 0E 80 0D 03 02 00 00 00 00 03 [05:04:22]Write i2c OK [05:04:22]MH_I2C_Read... [05:04:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:04:22]Read from MH i2c: E2 [05:04:22]MH_I2C_Read... [05:04:22]Read from MH i2c: E2 0B 00 [05:04:22]MH_I2C_Read... [05:04:22]Read from MH i2c: E2 0B 00 7A 0E 00 93 84 F9 4E 3E DD C5 D2 90 00 14 [05:04:22]RAPDU: 93 84 F9 4E 3E DD C5 D2 90 00 [05:04:22]wFMCommunicate OK [05:04:22]SAM_PROTO_SignData done [05:04:22]FM_MakeSignedData done [05:04:22]CreateOFDProtocolMessage [05:04:22]wFMCommunicate request_size=4 [05:04:22]MH_SAM_APDU [05:04:22]CAPDU: 80 11 00 00 [05:04:22]Write to MH i2c: E2 08 00 7B 0E 80 11 00 00 00 00 00 00 03 [05:04:22]Write i2c OK [05:04:22]MH_I2C_Read... [05:04:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:04:22]Read from MH i2c: E2 [05:04:22]MH_I2C_Read... [05:04:22]Read from MH i2c: E2 17 00 [05:04:22]MH_I2C_Read... [05:04:22]Read from MH i2c: E2 17 00 7B 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 56 [05:04:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [05:04:22]wFMCommunicate OK [05:04:22]CreateOFDProtocolMessage done [05:04:22]OFDSenderStorePacket 104089 [05:04:22]StoreOFDPacket docnum=104089 [05:04: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 10 01 00 00 7F 6C 08 01 AC 7B 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 0C 00 00 00 F4 03 04 00 D7 09 75 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 99 96 01 00 35 04 06 00 BE D4 0F 0E BD 2D 93 84 F9 4E 3E DD C5 D2 [05:04:22]CheckFolder [05:04:22]dirname=/storage/ofd_packets [05:04:22]CheckFolder done [05:04:22]ProducePacketName [05:04:22]name=ofd_packets/00104089 [05:04:22]NVStorageSaveData ofd_packets/00104089 [05:04:22]File name is /storage/ofd_packets/00104089 [05:04:22]Write 302 bytes [05:04:22]NVStorageSaveData done [05:04:22]OFDSenderStorePacket done [05:04:22]KKMCreateOFDPacket done [05:04:22]NVStorageSaveData kkm_last_timestamp [05:04:22]File name is /storage/kkm_last_timestamp [05:04:22]Write 4 bytes [05:04:22]NVStorageSaveData done [05:04:22]ExternCall_PrintAddStr [05:04:22]wPrintStart [05:04:22]Write to MH i2c: 01 00 00 7C 0E 8A [05:04:22]Write i2c OK [05:04:22]MH_I2C_Read... [05:04:22]Read from MH i2c: 01 [05:04:22]MH_I2C_Read... [05:04:22]Read from MH i2c: 01 07 00 [05:04:22]MH_I2C_Read... [05:04:22]Read from MH i2c: 01 07 00 7C 0E 00 00 00 00 00 FF 0F 9F [05:04:22]RasterBufferAndPrint [05:04:22]line Счет N : (1)673478 [05:04:22]line ИНН: 02508201610067 [05:04:22]line Контрольно-Кассовый Чек [05:04:22]line ПРОДАЖА [05:04:22]line ТРК (МРК, ГНК) : 21 [05:04:22]line Товар: 2710194210 [05:04:22]line ДТ(л)-К-5 [05:04:22]line 137.180 * 72.90 [05:04:22]line = 10000.42 [05:04:22]line НДС 12% НСП 1% [05:04:22]line > о реализуемом товаре [05:04:22]line ИТОГО: 10000.42 [05:04:22]line НСП 1% : 88.50 [05:04:22]line НДС 12% : 1061.99 [05:04:22]line Наличными: 0.00 [05:04:22]line Безнал.: 10000.42 [05:04:22]line Место: АЗС № 120 "Партнер Нефть" [05:04:22]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [05:04:22]line СНО: Общий режим [05:04:22]line Чек 12 21.06.2024 05:04 [05:04:22]line Смена: 355 ФФД: 1.0 [05:04:22]line ЗНМ: 0300000164 [05:04:22]line РНМ: 0000000000092785 [05:04:22]line Версия ККМ: 001 [05:04:22]line Платежная система: Бакай Банк [05:04:22]line ФМ: 0000000000875093 [05:04:22]line ФД: 104089 [05:04:22]line ФПД: 209817994968365 [05:04:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T050423&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104089&fm=209817994968365&tin=02508201610067®Number=0000000000092785&sum=1000042 [05:04:22]OFD Sender: Processing packet 104089 [packets to send 17, broken 16] [05:04:22]ProducePacketName [05:04:22]name=ofd_packets/00104089 [05:04:22]OFD Sender: To server: pG, [05:04:22]CommunicateWithHost lk.salyk.kg:30040 [05:04:22]ConnectInit lk.salyk.kg [05:04:22]written 0, free lines is 4095 [05:04:22]Connected sock=10 [05:04: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 7F 6C 08 01 AC 7B 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 0C 00 00 00 F4 03 04 00 D7 09 75 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 99 96 01 00 35 04 06 00 BE D4 0F 0E BD 2D 93 84 F9 4E 3E DD C5 D2 [05:04: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 7C 3D 47 00 46 F8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 99 96 01 00 F4 03 04 00 5A B0 74 66 B6 04 01 00 00 E9 E0 07 C5 C2 10 8F 0F [05:04:22]CommunicateWithHost err = 0 [05:04:22]CheckOFDResponse [05:04:22]1017 (14) - 77093643461234 [05:04:22]1041 (16) - 0000000000875093 [05:04:22]1040 (4) - 104089 [05:04:22]1012 (4) - 20.06.2024 22:42 [05:04:22]1206 (1) - 0 [05:04:22]OFD Sender: Remove packet 104089 [05:04:22]ProducePacketName [05:04:22]name=ofd_packets/00104089 [05:04:22]NVStorageDeleteData [05:04:22]Write to MH i2c: 01 00 00 A6 0E B4 [05:04:22]Write i2c OK [05:04:22]MH_I2C_Read... [05:04:22]Read from MH i2c: 01 [05:04:22]MH_I2C_Read... [05:04:22]Read from MH i2c: 01 07 00 [05:04:22]MH_I2C_Read... [05:04:22]Read from MH i2c: 01 07 00 A6 0E 00 00 00 00 00 F9 0C C0 [05:04:22]RasterBufferAndPrint [05:04:22]line [05:04:22]line [05:04:22]line [05:04:22]line [05:04:22]line [05:04:22]written 0, free lines is 3326 [05:04:22]MH_Cut [05:04:22]Write to MH i2c: D1 01 00 AD 0E 01 8D [05:04:22]Write i2c OK [05:04:22]MH_I2C_Read... [05:04:22]Read from MH i2c: D1 [05:04:22]MH_I2C_Read... [05:04:22]Read from MH i2c: D1 01 00 [05:04:22]MH_I2C_Read... [05:04:22]Read from MH i2c: D1 01 00 AD 0E 00 8C [05:04:22]Write to MH i2c: 01 00 00 AE 0E BC [05:04:22]Write i2c OK [05:04:22]MH_I2C_Read... [05:04:23]OFD Sender: No OFD packet to send [05:04:23]*** Cut start [05:04:23]*** Partial cut [05:04:23]*** CUTSNS_PIN = 1 [05:04:23]*** CUTSNS_PIN = 0 [05:04:23]*** Brake cut motor [05:04:24]Read from MH i2c: 01 [05:04:24]MH_I2C_Read... [05:04:24]*** Stop cut motor [05:04:24]*** Cut end [05:04:24]Read from MH i2c: 01 07 00 [05:04:24]MH_I2C_Read... [05:04:24]Read from MH i2c: 01 07 00 AE 0E 00 00 00 00 00 FF 0F D1 [05:04:24]process_action close_receipt done [05:04:24]requested_data is exist [05:04:24]produce_requested_data [05:04:24]requested_item fm.sn is exist - process it [05:04:24]wFMCommunicate request_size=4 [05:04:24]MH_SAM_APDU [05:04:24]CAPDU: 80 11 00 00 [05:04:24]Write to MH i2c: E2 08 00 AF 0E 80 11 00 00 00 00 00 00 37 [05:04:24]Write i2c OK [05:04:24]MH_I2C_Read... [05:04:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:04:24]Read from MH i2c: E2 [05:04:24]MH_I2C_Read... [05:04:24]Read from MH i2c: E2 17 00 [05:04:24]MH_I2C_Read... [05:04:24]Read from MH i2c: E2 17 00 AF 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 8A [05:04:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [05:04:24]wFMCommunicate OK [05:04:24]requested_item fd.num is exist - process it [05:04:24]SAM_PROTO_GetFieldsCounters [05:04:24]wFMCommunicate request_size=4 [05:04:24]MH_SAM_APDU [05:04:24]CAPDU: 80 13 00 00 [05:04:24]Write to MH i2c: E2 08 00 B0 0E 80 13 00 00 00 00 00 00 3A [05:04:24]Write i2c OK [05:04:24]MH_I2C_Read... [05:04:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:04:24]Read from MH i2c: E2 [05:04:24]MH_I2C_Read... [05:04:24]Read from MH i2c: E2 62 00 [05:04:24]MH_I2C_Read... [05:04:24]Read from MH i2c: E2 62 00 B0 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 99 96 01 00 0E 04 04 00 63 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 19 [05:04: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 99 96 01 00 0E 04 04 00 63 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:04:24]wFMCommunicate OK [05:04:24]SAM_PROTO_GetFieldsCounters done [05:04:24]requested_item shift.num is exist - process it [05:04:24]requested_item shift.opened is exist - process it [05:04:24]req_shift_opened [05:04:24]FM_GetShiftState [05:04:24]SAM_PROTO_GetShiftState [05:04:24]wFMCommunicate request_size=4 [05:04:24]MH_SAM_APDU [05:04:24]CAPDU: 80 13 01 00 [05:04:24]Write to MH i2c: E2 08 00 B1 0E 80 13 01 00 00 00 00 00 3C [05:04:24]Write i2c OK [05:04:24]MH_I2C_Read... [05:04:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:04:24]Read from MH i2c: E2 [05:04:24]MH_I2C_Read... [05:04:24]Read from MH i2c: E2 0E 00 [05:04:24]MH_I2C_Read... [05:04:24]Read from MH i2c: E2 0E 00 B1 0E 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 4F [05:04:24]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [05:04:24]wFMCommunicate OK [05:04:24]SAM_PROTO_GetShiftState done [05:04:24]FM_GetShiftState done [05:04:24]req_shift_opened done [05:04:24]requested_item shift.open_date is exist - process it [05:04:24]req_shift_open_date [05:04:24]req_shift_open_date done [05:04:24]produce_requested_data done [05:04:24]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104089,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [05:04:24]process_action_free close_receipt [05:04:24]json_value_free [05:04:24]json_value_free done [05:04:24]process_json_proto returns [05:04:24]Send response to host [05:04:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104089,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [05:04:24]free response buf [05:04:24]execute_script done [05:04:24]execute_script returns [05:04:24]free content buf [05:04:24]Sock 9.Close socket [05:04:24]Sock 9.Thread stoped [05:04:28]OFD Sender: No OFD packet to send [05:04:33]OFD Sender: No OFD packet to send [05:04:38]OFD Sender: No OFD packet to send [05:04:43]OFD Sender: No OFD packet to send [05:04:48]OFD Sender: No OFD packet to send [05:04:53]OFD Sender: No OFD packet to send [05:04:58]OFD Sender: No OFD packet to send [05:05:03]OFD Sender: No OFD packet to send [05:05:08]OFD Sender: No OFD packet to send [05:05:13]OFD Sender: No OFD packet to send [05:05:18]OFD Sender: No OFD packet to send [05:05:23]OFD Sender: No OFD packet to send [05:05:28]OFD Sender: No OFD packet to send [05:05:31]accept exits with 7 [05:05:31]New connection [05:05:31]New thread 3066715492 created [05:05:31]Thread 3066858852 joined [05:05:31]Waiting for new connection... [05:05:31] Sock 7.Parse request [05:05:31]Sock 7.Check first char [05:05:31]Sock 7.First char is OK [05:05:31]request: POST /json_proto HTTP/1.0 [05:05:31]Method: POST [05:05:31]URL: /json_proto [05:05:31]Method is POST - this is cgi request [05:05:31]url: /json_proto [05:05:31]query_string will be loaded in cgi processing [05:05:31]execute_cgi json_proto POST (null) [05:05:31]execute_cgi path=json_proto method=POST [05:05:31]POST find Content-Length [05:05:31]Host: 172.17.38.133:8080 [05:05:31]Content-Length: 682 [05:05:31]Content-Type: application/json [05:05:31] [05:05:31]POST finish read [05:05:31]Found Content-Length = 682 [05:05:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673479", "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" : 44.450, "sum" : 3284.86, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 3284.00, "payments": [ { "type": 0, "sum" : 3284.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:05:31]execute_script... [05:05: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)673479", "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" : 44.450, "sum" : 3284.86, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 3284.00, "payments": [ { "type": 0, "sum" : 3284.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:05:31]POST & json_proto [05:05:31]process_json_proto [05:05:31]json parsed OK: [05:05:31]protocol is kg_v1.0 [05:05:31]action value=close_receipt [05:05:31]process_action close_receipt [05:05:31]cmd_close_receipt [05:05:31]MH_GetDate [05:05:31]Write to MH i2c: F0 00 00 B2 0E AF [05:05:31]Write i2c OK [05:05:31]MH_I2C_Read... [05:05:31]Read from MH i2c: F0 [05:05:31]MH_I2C_Read... [05:05:31]Read from MH i2c: F0 09 00 [05:05:31]MH_I2C_Read... [05:05:31]Read from MH i2c: F0 09 00 B2 0E 00 1E 0A 75 66 BD 8F 7C 64 E7 [05:05:31]GetLastDocTimeStamp 1718946263 [05:05:31]current date 1718946334 [05:05:31]FM_GetShiftState [05:05:31]SAM_PROTO_GetShiftState [05:05:31]wFMCommunicate request_size=4 [05:05:31]MH_SAM_APDU [05:05:31]CAPDU: 80 13 01 00 [05:05:31]Write to MH i2c: E2 08 00 B3 0E 80 13 01 00 00 00 00 00 3E [05:05:31]Write i2c OK [05:05:31]MH_I2C_Read... [05:05:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:05:31]Read from MH i2c: E2 [05:05:31]MH_I2C_Read... [05:05:31]Read from MH i2c: E2 0E 00 [05:05:31]MH_I2C_Read... [05:05:31]Read from MH i2c: E2 0E 00 B3 0E 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 51 [05:05:31]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [05:05:31]wFMCommunicate OK [05:05:31]SAM_PROTO_GetShiftState done [05:05:31]FM_GetShiftState done [05:05:31]opened in 1718929509 [05:05:31]opened+sec_in_day 1719015909 [05:05:31]quantity*price = 328485 [05:05:31]sum+1 = 328487 [05:05:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.86 ИТОГО: 3284.00 Внесено: 5000.00 СДАЧА: 1716.00 НСП 1% : 29.07 НДС 12% : 348.83 Наличными: 3284.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 13 21.06.2024 05:05 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104090 ФПД: 68811065590414 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T050534&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104090&fm=68811065590414&tin=02508201610067®Number=0000000000092785&sum=328400 [05:05:32]StoreToDocumentArchive [05:05:32]shift 355 fd 104090 [05:05:32]save to /storage/0355/doc_00104090 [05:05:32]save last doc name /storage/0355/doc_00104090 to /storage/kkm_last_doc_name [05:05:32]save OK [05:05:32]Clear old archive folders... [05:05:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [05:05:32]tlvbuf is 01121B80 [05:05:32]SAM_PROTO_ClearQueue [05:05:32]wFMCommunicate request_size=4 [05:05:32]MH_SAM_APDU [05:05:32]CAPDU: 80 09 00 00 [05:05:32]Write to MH i2c: E2 08 00 C0 0E 80 09 00 00 00 00 00 00 40 [05:05:32]Write i2c OK [05:05:32]MH_I2C_Read... [05:05:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:05:32]Read from MH i2c: E2 [05:05:32]MH_I2C_Read... [05:05:32]Read from MH i2c: E2 03 00 [05:05:32]MH_I2C_Read... [05:05:32]Read from MH i2c: E2 03 00 C0 0E 00 90 00 42 [05:05:32]RAPDU: 90 00 [05:05:32]wFMCommunicate OK [05:05:32]SAM_PROTO_ClearQueue done [05:05:32]KKMCreateOFDPacket [05:05:32]OFDProtocolAddRootSTLVToBuf [05:05:32]FM_MakeSignedData [05:05:32]FM_MakeSignedData [05:05:32]SAM_PROTO_SignData [05:05:32]wFMCommunicate request_size=4 [05:05:32]MH_SAM_APDU [05:05:32]CAPDU: 80 0D 01 02 [05:05:32]Write to MH i2c: E2 08 00 C1 0E 80 0D 01 02 00 00 00 00 48 [05:05:32]Write i2c OK [05:05:32]MH_I2C_Read... [05:05:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:05:32]Read from MH i2c: E2 [05:05:32]MH_I2C_Read... [05:05:32]Read from MH i2c: E2 03 00 [05:05:32]MH_I2C_Read... [05:05:32]Read from MH i2c: E2 03 00 C1 0E 00 90 00 43 [05:05:32]RAPDU: 90 00 [05:05:32]wFMCommunicate OK [05:05:32]wFMCommunicate request_size=255 [05:05:32]MH_SAM_APDU [05:05: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A2 AD 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 26 03 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 02 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5B 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 88 00 00 00 00 07 04 06 00 D0 02 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 1E 0A 75 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 9A 96 01 00 35 04 06 00 3E [05:05:32]Write to MH i2c: E2 02 01 C2 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A2 AD 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 26 03 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 02 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5B 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 88 00 00 00 00 07 04 06 00 D0 02 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 1E 0A 75 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 9A 96 01 00 35 04 06 00 3E 00 00 95 [05:05:32]Write i2c OK [05:05:32]MH_I2C_Read... [05:05:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:05:32]Read from MH i2c: E2 [05:05:32]MH_I2C_Read... [05:05:32]Read from MH i2c: E2 03 00 [05:05:32]MH_I2C_Read... [05:05:32]Read from MH i2c: E2 03 00 C2 0E 00 90 00 44 [05:05:32]RAPDU: 90 00 [05:05:32]wFMCommunicate OK [05:05:32]wFMCommunicate request_size=10 [05:05:32]MH_SAM_APDU [05:05:32]CAPDU: 80 0D 02 02 05 95 53 1F 02 8E [05:05:32]Write to MH i2c: E2 0D 00 C3 0E 80 0D 02 02 05 00 95 53 1F 02 8E 00 00 EC [05:05:32]Write i2c OK [05:05:32]MH_I2C_Read... [05:05:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:05:32]Read from MH i2c: E2 [05:05:32]MH_I2C_Read... [05:05:32]Read from MH i2c: E2 03 00 [05:05:32]MH_I2C_Read... [05:05:32]Read from MH i2c: E2 03 00 C3 0E 00 90 00 45 [05:05:32]RAPDU: 90 00 [05:05:32]wFMCommunicate OK [05:05:32]wFMCommunicate request_size=4 [05:05:32]MH_SAM_APDU [05:05:32]CAPDU: 80 0D 03 02 [05:05:32]Write to MH i2c: E2 08 00 C4 0E 80 0D 03 02 00 00 00 00 4D [05:05:32]Write i2c OK [05:05:32]MH_I2C_Read... [05:05:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:05:33]Read from MH i2c: E2 [05:05:33]MH_I2C_Read... [05:05:33]Read from MH i2c: E2 0B 00 [05:05:33]MH_I2C_Read... [05:05:33]Read from MH i2c: E2 0B 00 C4 0E 00 03 5D 22 56 80 BC 7B AA 90 00 87 [05:05:33]RAPDU: 03 5D 22 56 80 BC 7B AA 90 00 [05:05:33]wFMCommunicate OK [05:05:33]SAM_PROTO_SignData done [05:05:33]FM_MakeSignedData done [05:05:33]CreateOFDProtocolMessage [05:05:33]wFMCommunicate request_size=4 [05:05:33]MH_SAM_APDU [05:05:33]CAPDU: 80 11 00 00 [05:05:33]Write to MH i2c: E2 08 00 C5 0E 80 11 00 00 00 00 00 00 4D [05:05:33]Write i2c OK [05:05:33]MH_I2C_Read... [05:05:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:05:33]Read from MH i2c: E2 [05:05:33]MH_I2C_Read... [05:05:33]Read from MH i2c: E2 17 00 [05:05:33]MH_I2C_Read... [05:05:33]Read from MH i2c: E2 17 00 C5 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 A0 [05:05:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [05:05:33]wFMCommunicate OK [05:05:33]CreateOFDProtocolMessage done [05:05:33]OFDSenderStorePacket 104090 [05:05:33]StoreOFDPacket docnum=104090 [05:05: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 06 5C 07 01 A8 DC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A2 AD 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 26 03 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 02 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5B 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 88 00 00 00 00 07 04 06 00 D0 02 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 1E 0A 75 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 9A 96 01 00 35 04 06 00 3E 95 53 1F 02 8E 03 5D 22 56 80 BC 7B AA [05:05:33]CheckFolder [05:05:33]dirname=/storage/ofd_packets [05:05:33]CheckFolder done [05:05:33]ProducePacketName [05:05:33]name=ofd_packets/00104090 [05:05:33]NVStorageSaveData ofd_packets/00104090 [05:05:33]File name is /storage/ofd_packets/00104090 [05:05:33]Write 301 bytes [05:05:33]NVStorageSaveData done [05:05:33]OFDSenderStorePacket done [05:05:33]KKMCreateOFDPacket done [05:05:33]NVStorageSaveData kkm_last_timestamp [05:05:33]File name is /storage/kkm_last_timestamp [05:05:33]Write 4 bytes [05:05:33]NVStorageSaveData done [05:05:33]ExternCall_PrintAddStr [05:05:33]wPrintStart [05:05:33]Write to MH i2c: 01 00 00 C6 0E D4 [05:05:33]Write i2c OK [05:05:33]MH_I2C_Read... [05:05:33]Read from MH i2c: 01 [05:05:33]MH_I2C_Read... [05:05:33]Read from MH i2c: 01 07 00 [05:05:33]MH_I2C_Read... [05:05:33]Read from MH i2c: 01 07 00 C6 0E 00 00 00 00 00 FF 0F E9 [05:05:33]RasterBufferAndPrint [05:05:33]line Счет N : (1)673479 [05:05:33]line ИНН: 02508201610067 [05:05:33]line Контрольно-Кассовый Чек [05:05:33]line ПРОДАЖА [05:05:33]line ТРК (МРК, ГНК) : 41 [05:05:33]line Товар: 2710124500 [05:05:33]line Аи-95-К-5 [05:05:33]line 44.450 * 73.90 [05:05:33]line = 3284.86 [05:05:33]line НДС 12% НСП 1% [05:05:33]line > о реализуемом товаре [05:05:33]line ОКРУГЛЕНИЕ: -0.86 [05:05:33]line ИТОГО: 3284.00 [05:05:33]line Внесено: 5000.00 [05:05:33]line СДАЧА: 1716.00 [05:05:33]line НСП 1% : 29.07 [05:05:33]line НДС 12% : 348.83 [05:05:33]line Наличными: 3284.00 [05:05:33]line Безнал.: 0.00 [05:05:33]line Место: АЗС № 120 "Партнер Нефть" [05:05:33]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [05:05:33]line СНО: Общий режим [05:05:33]line Чек 13 21.06.2024 05:05 [05:05:33]line Смена: 355 ФФД: 1.0 [05:05:33]line ЗНМ: 0300000164 [05:05:33]line РНМ: 0000000000092785 [05:05:33]line Версия ККМ: 001 [05:05:33]line ФМ: 0000000000875093 [05:05:33]line ФД: 104090 [05:05:33]line ФПД: 68811065590414 [05:05:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T050534&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104090&fm=68811065590414&tin=02508201610067®Number=0000000000092785&sum=328400 [05:05:33]OFD Sender: Processing packet 104090 [packets to send 17, broken 16] [05:05:33]ProducePacketName [05:05:33]name=ofd_packets/00104090 [05:05:33]OFD Sender: To server: pG, [05:05:33]CommunicateWithHost lk.salyk.kg:30040 [05:05:33]ConnectInit lk.salyk.kg [05:05:33]written 0, free lines is 4095 [05:05:33]Connected sock=10 [05:05: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 06 5C 07 01 A8 DC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A2 AD 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 26 03 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 02 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5B 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 88 00 00 00 00 07 04 06 00 D0 02 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 1E 0A 75 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 9A 96 01 00 35 04 06 00 3E 95 53 1F 02 8E 03 5D 22 56 80 BC 7B AA [05:05: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 C3 47 00 24 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 9A 96 01 00 F4 03 04 00 A1 B0 74 66 B6 04 01 00 00 38 F7 11 A1 3E 70 93 51 [05:05:33]CommunicateWithHost err = 0 [05:05:33]CheckOFDResponse [05:05:33]1017 (14) - 77093643461234 [05:05:33]1041 (16) - 0000000000875093 [05:05:33]1040 (4) - 104090 [05:05:33]1012 (4) - 20.06.2024 22:43 [05:05:33]1206 (1) - 0 [05:05:33]OFD Sender: Remove packet 104090 [05:05:33]ProducePacketName [05:05:33]name=ofd_packets/00104090 [05:05:33]NVStorageDeleteData [05:05:33]Write to MH i2c: 01 00 00 F1 0E FF [05:05:33]Write i2c OK [05:05:33]MH_I2C_Read... [05:05:33]Read from MH i2c: 01 [05:05:33]MH_I2C_Read... [05:05:33]Read from MH i2c: 01 07 00 [05:05:33]MH_I2C_Read... [05:05:33]Read from MH i2c: 01 07 00 F1 0E 00 00 00 00 00 F5 0C 07 [05:05:33]RasterBufferAndPrint [05:05:33]line [05:05:33]line [05:05:33]line [05:05:33]line [05:05:33]line [05:05:33]written 0, free lines is 3324 [05:05:33]MH_Cut [05:05:33]Write to MH i2c: D1 01 00 F8 0E 01 D8 [05:05:33]Write i2c OK [05:05:33]MH_I2C_Read... [05:05:33]Read from MH i2c: D1 [05:05:33]MH_I2C_Read... [05:05:33]Read from MH i2c: D1 01 00 [05:05:33]MH_I2C_Read... [05:05:33]Read from MH i2c: D1 01 00 F8 0E 00 D7 [05:05:33]Write to MH i2c: 01 00 00 F9 0E 07 [05:05:33]Write i2c OK [05:05:33]MH_I2C_Read... [05:05:34]OFD Sender: No OFD packet to send [05:05:34]*** Cut start [05:05:34]*** Partial cut [05:05:34]*** CUTSNS_PIN = 1 [05:05:34]*** CUTSNS_PIN = 0 [05:05:34]*** Brake cut motor [05:05:35]Read from MH i2c: 01 [05:05:35]MH_I2C_Read... [05:05:35]*** Stop cut motor [05:05:35]*** Cut end [05:05:35]Read from MH i2c: 01 07 00 [05:05:35]MH_I2C_Read... [05:05:35]Read from MH i2c: 01 07 00 F9 0E 00 00 00 00 00 FF 0F 1C [05:05:35]process_action close_receipt done [05:05:35]requested_data is exist [05:05:35]produce_requested_data [05:05:35]requested_item fm.sn is exist - process it [05:05:35]wFMCommunicate request_size=4 [05:05:35]MH_SAM_APDU [05:05:35]CAPDU: 80 11 00 00 [05:05:35]Write to MH i2c: E2 08 00 FA 0E 80 11 00 00 00 00 00 00 82 [05:05:35]Write i2c OK [05:05:35]MH_I2C_Read... [05:05:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:05:35]Read from MH i2c: E2 [05:05:35]MH_I2C_Read... [05:05:35]Read from MH i2c: E2 17 00 [05:05:35]MH_I2C_Read... [05:05:35]Read from MH i2c: E2 17 00 FA 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 D5 [05:05:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [05:05:35]wFMCommunicate OK [05:05:35]requested_item fd.num is exist - process it [05:05:35]SAM_PROTO_GetFieldsCounters [05:05:35]wFMCommunicate request_size=4 [05:05:35]MH_SAM_APDU [05:05:35]CAPDU: 80 13 00 00 [05:05:35]Write to MH i2c: E2 08 00 FB 0E 80 13 00 00 00 00 00 00 85 [05:05:35]Write i2c OK [05:05:35]MH_I2C_Read... [05:05:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:05:35]Read from MH i2c: E2 [05:05:35]MH_I2C_Read... [05:05:35]Read from MH i2c: E2 62 00 [05:05:35]MH_I2C_Read... [05:05:35]Read from MH i2c: E2 62 00 FB 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 9A 96 01 00 0E 04 04 00 63 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 68 [05:05: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 9A 96 01 00 0E 04 04 00 63 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:05:35]wFMCommunicate OK [05:05:35]SAM_PROTO_GetFieldsCounters done [05:05:35]requested_item shift.num is exist - process it [05:05:35]requested_item shift.opened is exist - process it [05:05:35]req_shift_opened [05:05:35]FM_GetShiftState [05:05:35]SAM_PROTO_GetShiftState [05:05:35]wFMCommunicate request_size=4 [05:05:35]MH_SAM_APDU [05:05:35]CAPDU: 80 13 01 00 [05:05:35]Write to MH i2c: E2 08 00 FC 0E 80 13 01 00 00 00 00 00 87 [05:05:35]Write i2c OK [05:05:35]MH_I2C_Read... [05:05:35]Read from MH i2c: E2 [05:05:35]MH_I2C_Read... [05:05:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:05:35]Read from MH i2c: E2 0E 00 [05:05:35]MH_I2C_Read... [05:05:35]Read from MH i2c: E2 0E 00 FC 0E 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 9A [05:05:35]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [05:05:35]wFMCommunicate OK [05:05:35]SAM_PROTO_GetShiftState done [05:05:35]FM_GetShiftState done [05:05:35]req_shift_opened done [05:05:35]requested_item shift.open_date is exist - process it [05:05:35]req_shift_open_date [05:05:35]req_shift_open_date done [05:05:35]produce_requested_data done [05:05:35]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104090,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [05:05:35]process_action_free close_receipt [05:05:35]json_value_free [05:05:35]json_value_free done [05:05:35]process_json_proto returns [05:05:35]Send response to host [05:05:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104090,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [05:05:35]free response buf [05:05:35]execute_script done [05:05:35]execute_script returns [05:05:35]free content buf [05:05:35]Sock 7.Close socket [05:05:35]Sock 7.Thread stoped [05:05:39]OFD Sender: No OFD packet to send [05:05:44]OFD Sender: No OFD packet to send [05:05:49]OFD Sender: No OFD packet to send [05:05:54]OFD Sender: No OFD packet to send [05:05:59]OFD Sender: No OFD packet to send [05:06:04]OFD Sender: No OFD packet to send [05:06:09]OFD Sender: No OFD packet to send [05:06:14]OFD Sender: No OFD packet to send [05:06:19]OFD Sender: No OFD packet to send [05:06:24]OFD Sender: No OFD packet to send [05:06:29]OFD Sender: No OFD packet to send [05:06:34]OFD Sender: No OFD packet to send [05:06:39]OFD Sender: No OFD packet to send [05:06:44]OFD Sender: No OFD packet to send [05:06:49]OFD Sender: No OFD packet to send [05:06:54]OFD Sender: No OFD packet to send [05:06:59]OFD Sender: No OFD packet to send [05:07:04]OFD Sender: No OFD packet to send [05:07:09]OFD Sender: No OFD packet to send [05:07:14]OFD Sender: No OFD packet to send [05:07:19]OFD Sender: No OFD packet to send [05:07:24]OFD Sender: No OFD packet to send [05:07:29]OFD Sender: No OFD packet to send [05:07:34]OFD Sender: No OFD packet to send [05:07:39]OFD Sender: No OFD packet to send [05:07:44]OFD Sender: No OFD packet to send [05:07:49]OFD Sender: No OFD packet to send [05:07:54]OFD Sender: No OFD packet to send [05:07:59]OFD Sender: No OFD packet to send [05:08:04]OFD Sender: No OFD packet to send [05:08:09]OFD Sender: No OFD packet to send [05:08:14]OFD Sender: No OFD packet to send [05:08:19]OFD Sender: No OFD packet to send [05:08:24]OFD Sender: No OFD packet to send [05:08:29]OFD Sender: No OFD packet to send [05:08:34]OFD Sender: No OFD packet to send [05:08:39]OFD Sender: No OFD packet to send [05:08:44]OFD Sender: No OFD packet to send [05:08:49]OFD Sender: No OFD packet to send [05:08:54]OFD Sender: No OFD packet to send [05:08:59]OFD Sender: No OFD packet to send [05:09:04]OFD Sender: No OFD packet to send [05:09:09]OFD Sender: No OFD packet to send [05:09:14]OFD Sender: No OFD packet to send [05:09:19]OFD Sender: No OFD packet to send [05:09:24]OFD Sender: No OFD packet to send [05:09:29]OFD Sender: No OFD packet to send [05:09:34]OFD Sender: No OFD packet to send [05:09:39]OFD Sender: No OFD packet to send [05:09:44]OFD Sender: No OFD packet to send [05:09:49]OFD Sender: No OFD packet to send [05:09:54]OFD Sender: No OFD packet to send [05:09:59]OFD Sender: No OFD packet to send [05:10:04]OFD Sender: No OFD packet to send [05:10:09]OFD Sender: No OFD packet to send [05:10:14]OFD Sender: No OFD packet to send [05:10:19]OFD Sender: No OFD packet to send [05:10:24]OFD Sender: No OFD packet to send [05:10:29]OFD Sender: No OFD packet to send [05:10:34]OFD Sender: No OFD packet to send [05:10:39]OFD Sender: No OFD packet to send [05:10:44]OFD Sender: No OFD packet to send [05:10:49]OFD Sender: No OFD packet to send [05:10:54]OFD Sender: No OFD packet to send [05:10:59]OFD Sender: No OFD packet to send [05:11:04]OFD Sender: No OFD packet to send [05:11:09]OFD Sender: No OFD packet to send [05:11:14]OFD Sender: No OFD packet to send [05:11:19]OFD Sender: No OFD packet to send [05:11:24]OFD Sender: No OFD packet to send [05:11:29]OFD Sender: No OFD packet to send [05:11:34]OFD Sender: No OFD packet to send [05:11:39]OFD Sender: No OFD packet to send [05:11:44]OFD Sender: No OFD packet to send [05:11:49]OFD Sender: No OFD packet to send [05:11:54]OFD Sender: No OFD packet to send [05:11:59]OFD Sender: No OFD packet to send [05:12:04]OFD Sender: No OFD packet to send [05:12:09]OFD Sender: No OFD packet to send [05:12:14]OFD Sender: No OFD packet to send [05:12:19]OFD Sender: No OFD packet to send [05:12:24]OFD Sender: No OFD packet to send [05:12:29]OFD Sender: No OFD packet to send [05:12:34]OFD Sender: No OFD packet to send [05:12:39]OFD Sender: No OFD packet to send [05:12:44]OFD Sender: No OFD packet to send [05:12:49]OFD Sender: No OFD packet to send [05:12:54]OFD Sender: No OFD packet to send [05:12:59]OFD Sender: No OFD packet to send [05:13:04]OFD Sender: No OFD packet to send [05:13:09]OFD Sender: No OFD packet to send [05:13:14]OFD Sender: No OFD packet to send [05:13:19]OFD Sender: No OFD packet to send [05:13:24]OFD Sender: No OFD packet to send [05:13:29]OFD Sender: No OFD packet to send [05:13:34]OFD Sender: No OFD packet to send [05:13:37]accept exits with 9 [05:13:37]New connection [05:13:37]New thread 3066858852 created [05:13:37]Thread 3066715492 joined [05:13:37]Waiting for new connection... [05:13:37] Sock 9.Parse request [05:13:37]Sock 9.Check first char [05:13:37]Sock 9.First char is OK [05:13:37]request: POST /json_proto HTTP/1.0 [05:13:37]Method: POST [05:13:37]URL: /json_proto [05:13:37]Method is POST - this is cgi request [05:13:37]url: /json_proto [05:13:37]query_string will be loaded in cgi processing [05:13:37]execute_cgi json_proto POST (null) [05:13:37]execute_cgi path=json_proto method=POST [05:13:37]POST find Content-Length [05:13:37]Host: 172.17.38.133:8080 [05:13:37]Content-Length: 682 [05:13:37]Content-Type: application/json [05:13:37] [05:13:37]POST finish read [05:13:37]Found Content-Length = 682 [05:13:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673480", "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" ] } } [05:13:37]execute_script... [05:13: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)673480", "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" ] } } [05:13:37]POST & json_proto [05:13:37]process_json_proto [05:13:37]json parsed OK: [05:13:37]protocol is kg_v1.0 [05:13:37]action value=close_receipt [05:13:37]process_action close_receipt [05:13:37]cmd_close_receipt [05:13:37]MH_GetDate [05:13:37]Write to MH i2c: F0 00 00 FD 0E FA [05:13:37]Write i2c OK [05:13:37]MH_I2C_Read... [05:13:37]Read from MH i2c: F0 [05:13:37]MH_I2C_Read... [05:13:37]Read from MH i2c: F0 09 00 [05:13:37]MH_I2C_Read... [05:13:37]Read from MH i2c: F0 09 00 FD 0E 00 03 0C 75 66 BD 8F 7C 64 19 [05:13:37]GetLastDocTimeStamp 1718946334 [05:13:37]current date 1718946819 [05:13:37]FM_GetShiftState [05:13:37]SAM_PROTO_GetShiftState [05:13:37]wFMCommunicate request_size=4 [05:13:37]MH_SAM_APDU [05:13:37]CAPDU: 80 13 01 00 [05:13:37]Write to MH i2c: E2 08 00 FE 0E 80 13 01 00 00 00 00 00 89 [05:13:37]Write i2c OK [05:13:37]MH_I2C_Read... [05:13:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:13:37]Read from MH i2c: E2 [05:13:37]MH_I2C_Read... [05:13:37]Read from MH i2c: E2 0E 00 [05:13:37]MH_I2C_Read... [05:13:37]Read from MH i2c: E2 0E 00 FE 0E 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 9C [05:13:37]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [05:13:37]wFMCommunicate OK [05:13:37]SAM_PROTO_GetShiftState done [05:13:37]FM_GetShiftState done [05:13:37]opened in 1718929509 [05:13:37]opened+sec_in_day 1719015909 [05:13:37]quantity*price = 200063 [05:13:37]sum+1 = 200064 [05:13:37]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 СНО: Общий режим Чек 14 21.06.2024 05:13 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104091 ФПД: 66564710676778 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T051339&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104091&fm=66564710676778&tin=02508201610067®Number=0000000000092785&sum=200000 [05:13:38]StoreToDocumentArchive [05:13:38]shift 355 fd 104091 [05:13:38]save to /storage/0355/doc_00104091 [05:13:38]save last doc name /storage/0355/doc_00104091 to /storage/kkm_last_doc_name [05:13:38]save OK [05:13:38]Clear old archive folders... [05:13:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [05:13:38]tlvbuf is 01124530 [05:13:38]SAM_PROTO_ClearQueue [05:13:38]wFMCommunicate request_size=4 [05:13:38]MH_SAM_APDU [05:13:38]CAPDU: 80 09 00 00 [05:13:38]Write to MH i2c: E2 08 00 0B 0F 80 09 00 00 00 00 00 00 8C [05:13:38]Write i2c OK [05:13:38]MH_I2C_Read... [05:13:38]Read from MH i2c: E2 [05:13:38]MH_I2C_Read... [05:13:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:13:38]Read from MH i2c: E2 03 00 [05:13:38]MH_I2C_Read... [05:13:38]Read from MH i2c: E2 03 00 0B 0F 00 90 00 8E [05:13:38]RAPDU: 90 00 [05:13:38]wFMCommunicate OK [05:13:38]SAM_PROTO_ClearQueue done [05:13:38]KKMCreateOFDPacket [05:13:38]OFDProtocolAddRootSTLVToBuf [05:13:38]FM_MakeSignedData [05:13:38]FM_MakeSignedData [05:13:38]SAM_PROTO_SignData [05:13:38]wFMCommunicate request_size=4 [05:13:38]MH_SAM_APDU [05:13:38]CAPDU: 80 0D 01 02 [05:13:38]Write to MH i2c: E2 08 00 0C 0F 80 0D 01 02 00 00 00 00 94 [05:13:38]Write i2c OK [05:13:38]MH_I2C_Read... [05:13:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:13:38]Read from MH i2c: E2 [05:13:38]MH_I2C_Read... [05:13:38]Read from MH i2c: E2 03 00 [05:13:38]MH_I2C_Read... [05:13:38]Read from MH i2c: E2 03 00 0C 0F 00 90 00 8F [05:13:38]RAPDU: 90 00 [05:13:38]wFMCommunicate OK [05:13:38]wFMCommunicate request_size=255 [05:13:38]MH_SAM_APDU [05:13: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 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 0E 00 00 00 F4 03 04 00 03 0C 75 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 9B 96 01 00 35 04 06 00 3C [05:13:38]Write to MH i2c: E2 02 01 0D 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 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 0E 00 00 00 F4 03 04 00 03 0C 75 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 9B 96 01 00 35 04 06 00 3C 00 00 0D [05:13:38]Write i2c OK [05:13:38]MH_I2C_Read... [05:13:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:13:38]Read from MH i2c: E2 [05:13:38]MH_I2C_Read... [05:13:38]Read from MH i2c: E2 03 00 [05:13:38]MH_I2C_Read... [05:13:38]Read from MH i2c: E2 03 00 0D 0F 00 90 00 90 [05:13:38]RAPDU: 90 00 [05:13:38]wFMCommunicate OK [05:13:38]wFMCommunicate request_size=10 [05:13:38]MH_SAM_APDU [05:13:38]CAPDU: 80 0D 02 02 05 8A 4D EF 39 2A [05:13:38]Write to MH i2c: E2 0D 00 0E 0F 80 0D 02 02 05 00 8A 4D EF 39 2A 00 00 CA [05:13:38]Write i2c OK [05:13:38]MH_I2C_Read... [05:13:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:13:38]Read from MH i2c: E2 [05:13:38]MH_I2C_Read... [05:13:38]Read from MH i2c: E2 03 00 [05:13:38]MH_I2C_Read... [05:13:38]Read from MH i2c: E2 03 00 0E 0F 00 90 00 91 [05:13:38]RAPDU: 90 00 [05:13:38]wFMCommunicate OK [05:13:38]wFMCommunicate request_size=4 [05:13:38]MH_SAM_APDU [05:13:38]CAPDU: 80 0D 03 02 [05:13:38]Write to MH i2c: E2 08 00 0F 0F 80 0D 03 02 00 00 00 00 99 [05:13:38]Write i2c OK [05:13:38]MH_I2C_Read... [05:13:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:13:38]Read from MH i2c: E2 [05:13:38]MH_I2C_Read... [05:13:38]Read from MH i2c: E2 0B 00 [05:13:38]MH_I2C_Read... [05:13:38]Read from MH i2c: E2 0B 00 0F 0F 00 C8 2A E5 1A BD F7 61 F9 90 00 99 [05:13:38]RAPDU: C8 2A E5 1A BD F7 61 F9 90 00 [05:13:38]wFMCommunicate OK [05:13:38]SAM_PROTO_SignData done [05:13:38]FM_MakeSignedData done [05:13:38]CreateOFDProtocolMessage [05:13:38]wFMCommunicate request_size=4 [05:13:38]MH_SAM_APDU [05:13:38]CAPDU: 80 11 00 00 [05:13:38]Write to MH i2c: E2 08 00 10 0F 80 11 00 00 00 00 00 00 99 [05:13:38]Write i2c OK [05:13:38]MH_I2C_Read... [05:13:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:13:38]Read from MH i2c: E2 [05:13:38]MH_I2C_Read... [05:13:38]Read from MH i2c: E2 17 00 [05:13:38]MH_I2C_Read... [05:13:38]Read from MH i2c: E2 17 00 10 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 EC [05:13:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [05:13:38]wFMCommunicate OK [05:13:38]CreateOFDProtocolMessage done [05:13:38]OFDSenderStorePacket 104091 [05:13:38]StoreOFDPacket docnum=104091 [05:13: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 4F 40 07 01 05 28 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 0E 00 00 00 F4 03 04 00 03 0C 75 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 9B 96 01 00 35 04 06 00 3C 8A 4D EF 39 2A C8 2A E5 1A BD F7 61 F9 [05:13:38]CheckFolder [05:13:38]dirname=/storage/ofd_packets [05:13:38]CheckFolder done [05:13:38]ProducePacketName [05:13:38]name=ofd_packets/00104091 [05:13:38]NVStorageSaveData ofd_packets/00104091 [05:13:38]File name is /storage/ofd_packets/00104091 [05:13:38]Write 301 bytes [05:13:38]NVStorageSaveData done [05:13:38]OFDSenderStorePacket done [05:13:38]KKMCreateOFDPacket done [05:13:38]NVStorageSaveData kkm_last_timestamp [05:13:38]File name is /storage/kkm_last_timestamp [05:13:38]Write 4 bytes [05:13:38]NVStorageSaveData done [05:13:38]ExternCall_PrintAddStr [05:13:38]wPrintStart [05:13:38]Write to MH i2c: 01 00 00 11 0F 20 [05:13:38]Write i2c OK [05:13:38]MH_I2C_Read... [05:13:38]Read from MH i2c: 01 [05:13:38]MH_I2C_Read... [05:13:38]Read from MH i2c: 01 07 00 [05:13:38]MH_I2C_Read... [05:13:38]Read from MH i2c: 01 07 00 11 0F 00 00 00 00 00 FF 0F 35 [05:13:38]RasterBufferAndPrint [05:13:38]line Счет N : (1)673480 [05:13:38]line ИНН: 02508201610067 [05:13:38]line Контрольно-Кассовый Чек [05:13:38]line ПРОДАЖА [05:13:38]line ТРК (МРК, ГНК) : 32 [05:13:38]line Товар: 2710124130 [05:13:38]line Аи-92-К-5 [05:13:38]line 30.130 * 66.40 [05:13:38]line = 2000.63 [05:13:38]line НДС 12% НСП 1% [05:13:38]line > о реализуемом товаре [05:13:38]line ОКРУГЛЕНИЕ: -0.63 [05:13:38]line ИТОГО: 2000.00 [05:13:38]line Внесено: 2000.00 [05:13:38]line СДАЧА: 0.00 [05:13:38]line НСП 1% : 17.70 [05:13:38]line НДС 12% : 212.46 [05:13:38]line Наличными: 2000.00 [05:13:38]line Безнал.: 0.00 [05:13:38]line Место: АЗС № 120 "Партнер Нефть" [05:13:38]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [05:13:38]line СНО: Общий режим [05:13:38]line Чек 14 21.06.2024 05:13 [05:13:38]line Смена: 355 ФФД: 1.0 [05:13:38]line ЗНМ: 0300000164 [05:13:38]line РНМ: 0000000000092785 [05:13:38]line Версия ККМ: 001 [05:13:38]line ФМ: 0000000000875093 [05:13:38]line ФД: 104091 [05:13:38]line ФПД: 66564710676778 [05:13:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T051339&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104091&fm=66564710676778&tin=02508201610067®Number=0000000000092785&sum=200000 [05:13:39]OFD Sender: Processing packet 104091 [packets to send 17, broken 16] [05:13:39]ProducePacketName [05:13:39]name=ofd_packets/00104091 [05:13:39]OFD Sender: To server: pG, [05:13:39]CommunicateWithHost lk.salyk.kg:30040 [05:13:39]ConnectInit lk.salyk.kg [05:13:39]written 0, free lines is 4095 [05:13:39]Connected sock=10 [05:13: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 4F 40 07 01 05 28 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 0E 00 00 00 F4 03 04 00 03 0C 75 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 9B 96 01 00 35 04 06 00 3C 8A 4D EF 39 2A C8 2A E5 1A BD F7 61 F9 [05:13: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 BB 3A 47 00 8E 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 9B 96 01 00 F4 03 04 00 87 B2 74 66 B6 04 01 00 00 72 16 7C 2D 52 82 AB 2F [05:13:39]CommunicateWithHost err = 0 [05:13:39]CheckOFDResponse [05:13:39]1017 (14) - 77093643461234 [05:13:39]1041 (16) - 0000000000875093 [05:13:39]1040 (4) - 104091 [05:13:39]1012 (4) - 20.06.2024 22:51 [05:13:39]1206 (1) - 0 [05:13:39]OFD Sender: Remove packet 104091 [05:13:39]ProducePacketName [05:13:39]name=ofd_packets/00104091 [05:13:39]NVStorageDeleteData [05:13:39]Write to MH i2c: 01 00 00 3C 0F 4B [05:13:39]Write i2c OK [05:13:39]MH_I2C_Read... [05:13:39]Read from MH i2c: 01 [05:13:39]MH_I2C_Read... [05:13:39]Read from MH i2c: 01 07 00 [05:13:39]MH_I2C_Read... [05:13:39]Read from MH i2c: 01 07 00 3C 0F 00 00 00 00 00 E9 0C 47 [05:13:39]RasterBufferAndPrint [05:13:39]line [05:13:39]line [05:13:39]line [05:13:39]line [05:13:39]line [05:13:39]written 0, free lines is 3312 [05:13:39]MH_Cut [05:13:39]Write to MH i2c: D1 01 00 43 0F 01 24 [05:13:39]Write i2c OK [05:13:39]MH_I2C_Read... [05:13:39]Read from MH i2c: D1 [05:13:39]MH_I2C_Read... [05:13:39]Read from MH i2c: D1 01 00 [05:13:39]MH_I2C_Read... [05:13:39]Read from MH i2c: D1 01 00 43 0F 00 23 [05:13:39]Write to MH i2c: 01 00 00 44 0F 53 [05:13:39]Write i2c OK [05:13:39]MH_I2C_Read... [05:13:40]OFD Sender: No OFD packet to send [05:13:40]*** Cut start [05:13:40]*** Partial cut [05:13:40]*** CUTSNS_PIN = 1 [05:13:40]*** CUTSNS_PIN = 0 [05:13:40]*** Brake cut motor [05:13:40]Read from MH i2c: 01 [05:13:40]MH_I2C_Read... [05:13:40]*** Stop cut motor [05:13:40]*** Cut end [05:13:40]Read from MH i2c: 01 07 00 [05:13:40]MH_I2C_Read... [05:13:40]Read from MH i2c: 01 07 00 44 0F 00 00 00 00 00 FF 0F 68 [05:13:40]process_action close_receipt done [05:13:40]requested_data is exist [05:13:40]produce_requested_data [05:13:40]requested_item fm.sn is exist - process it [05:13:40]wFMCommunicate request_size=4 [05:13:40]MH_SAM_APDU [05:13:40]CAPDU: 80 11 00 00 [05:13:40]Write to MH i2c: E2 08 00 45 0F 80 11 00 00 00 00 00 00 CE [05:13:40]Write i2c OK [05:13:40]MH_I2C_Read... [05:13:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:13:41]Read from MH i2c: E2 [05:13:41]MH_I2C_Read... [05:13:41]Read from MH i2c: E2 17 00 [05:13:41]MH_I2C_Read... [05:13:41]Read from MH i2c: E2 17 00 45 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 21 [05:13:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [05:13:41]wFMCommunicate OK [05:13:41]requested_item fd.num is exist - process it [05:13:41]SAM_PROTO_GetFieldsCounters [05:13:41]wFMCommunicate request_size=4 [05:13:41]MH_SAM_APDU [05:13:41]CAPDU: 80 13 00 00 [05:13:41]Write to MH i2c: E2 08 00 46 0F 80 13 00 00 00 00 00 00 D1 [05:13:41]Write i2c OK [05:13:41]MH_I2C_Read... [05:13:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:13:41]Read from MH i2c: E2 [05:13:41]MH_I2C_Read... [05:13:41]Read from MH i2c: E2 62 00 [05:13:41]MH_I2C_Read... [05:13:41]Read from MH i2c: E2 62 00 46 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 9B 96 01 00 0E 04 04 00 63 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 B8 [05:13: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 9B 96 01 00 0E 04 04 00 63 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 [05:13:41]wFMCommunicate OK [05:13:41]SAM_PROTO_GetFieldsCounters done [05:13:41]requested_item shift.num is exist - process it [05:13:41]requested_item shift.opened is exist - process it [05:13:41]req_shift_opened [05:13:41]FM_GetShiftState [05:13:41]SAM_PROTO_GetShiftState [05:13:41]wFMCommunicate request_size=4 [05:13:41]MH_SAM_APDU [05:13:41]CAPDU: 80 13 01 00 [05:13:41]Write to MH i2c: E2 08 00 47 0F 80 13 01 00 00 00 00 00 D3 [05:13:41]Write i2c OK [05:13:41]MH_I2C_Read... [05:13:41]Read from MH i2c: E2 [05:13:41]MH_I2C_Read... [05:13:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:13:41]Read from MH i2c: E2 0E 00 [05:13:41]MH_I2C_Read... [05:13:41]Read from MH i2c: E2 0E 00 47 0F 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 E6 [05:13:41]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [05:13:41]wFMCommunicate OK [05:13:41]SAM_PROTO_GetShiftState done [05:13:41]FM_GetShiftState done [05:13:41]req_shift_opened done [05:13:41]requested_item shift.open_date is exist - process it [05:13:41]req_shift_open_date [05:13:41]req_shift_open_date done [05:13:41]produce_requested_data done [05:13:41]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104091,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [05:13:41]process_action_free close_receipt [05:13:41]json_value_free [05:13:41]json_value_free done [05:13:41]process_json_proto returns [05:13:41]Send response to host [05:13:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104091,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [05:13:41]free response buf [05:13:41]execute_script done [05:13:41]execute_script returns [05:13:41]free content buf [05:13:41]Sock 9.Close socket [05:13:41]Sock 9.Thread stoped [05:13:45]OFD Sender: No OFD packet to send [05:13:50]OFD Sender: No OFD packet to send [05:13:55]OFD Sender: No OFD packet to send [05:14:00]OFD Sender: No OFD packet to send [05:14:05]OFD Sender: No OFD packet to send [05:14:10]OFD Sender: No OFD packet to send [05:14:15]OFD Sender: No OFD packet to send [05:14:20]OFD Sender: No OFD packet to send [05:14:25]OFD Sender: No OFD packet to send [05:14:30]OFD Sender: No OFD packet to send [05:14:35]OFD Sender: No OFD packet to send [05:14:40]OFD Sender: No OFD packet to send [05:14:45]OFD Sender: No OFD packet to send [05:14:50]OFD Sender: No OFD packet to send [05:14:55]OFD Sender: No OFD packet to send [05:15:00]OFD Sender: No OFD packet to send [05:15:05]OFD Sender: No OFD packet to send [05:15:10]OFD Sender: No OFD packet to send [05:15:15]OFD Sender: No OFD packet to send [05:15:20]OFD Sender: No OFD packet to send [05:15:25]OFD Sender: No OFD packet to send [05:15:30]OFD Sender: No OFD packet to send [05:15:35]OFD Sender: No OFD packet to send [05:15:40]OFD Sender: No OFD packet to send [05:15:45]OFD Sender: No OFD packet to send [05:15:50]OFD Sender: No OFD packet to send [05:15:55]OFD Sender: No OFD packet to send [05:16:00]OFD Sender: No OFD packet to send [05:16:05]OFD Sender: No OFD packet to send [05:16:10]OFD Sender: No OFD packet to send [05:16:15]OFD Sender: No OFD packet to send [05:16:20]OFD Sender: No OFD packet to send [05:16:25]OFD Sender: No OFD packet to send [05:16:30]OFD Sender: No OFD packet to send [05:16:35]OFD Sender: No OFD packet to send [05:16:40]OFD Sender: No OFD packet to send [05:16:45]OFD Sender: No OFD packet to send [05:16:50]OFD Sender: No OFD packet to send [05:16:55]OFD Sender: No OFD packet to send [05:17:00]OFD Sender: No OFD packet to send [05:17:05]OFD Sender: No OFD packet to send [05:17:10]OFD Sender: No OFD packet to send [05:17:15]OFD Sender: No OFD packet to send [05:17:20]OFD Sender: No OFD packet to send [05:17:25]OFD Sender: No OFD packet to send [05:17:30]OFD Sender: No OFD packet to send [05:17:35]OFD Sender: No OFD packet to send [05:17:40]OFD Sender: No OFD packet to send [05:17:45]OFD Sender: No OFD packet to send [05:17:50]OFD Sender: No OFD packet to send [05:17:55]OFD Sender: No OFD packet to send [05:18:00]OFD Sender: No OFD packet to send [05:18:05]OFD Sender: No OFD packet to send [05:18:10]OFD Sender: No OFD packet to send [05:18:15]OFD Sender: No OFD packet to send [05:18:20]OFD Sender: No OFD packet to send [05:18:25]OFD Sender: No OFD packet to send [05:18:30]OFD Sender: No OFD packet to send [05:18:35]OFD Sender: No OFD packet to send [05:18:40]OFD Sender: No OFD packet to send [05:18:45]OFD Sender: No OFD packet to send [05:18:50]OFD Sender: No OFD packet to send [05:18:55]OFD Sender: No OFD packet to send [05:19:00]OFD Sender: No OFD packet to send [05:19:05]OFD Sender: No OFD packet to send [05:19:10]OFD Sender: No OFD packet to send [05:19:15]OFD Sender: No OFD packet to send [05:19:20]OFD Sender: No OFD packet to send [05:19:25]OFD Sender: No OFD packet to send [05:19:30]OFD Sender: No OFD packet to send [05:19:35]OFD Sender: No OFD packet to send [05:19:40]OFD Sender: No OFD packet to send [05:19:45]OFD Sender: No OFD packet to send [05:19:50]OFD Sender: No OFD packet to send [05:19:55]OFD Sender: No OFD packet to send [05:20:00]OFD Sender: No OFD packet to send [05:20:05]OFD Sender: No OFD packet to send [05:20:10]OFD Sender: No OFD packet to send [05:20:15]OFD Sender: No OFD packet to send [05:20:20]OFD Sender: No OFD packet to send [05:20:25]OFD Sender: No OFD packet to send [05:20:30]OFD Sender: No OFD packet to send [05:20:35]OFD Sender: No OFD packet to send [05:20:40]OFD Sender: No OFD packet to send [05:20:45]OFD Sender: No OFD packet to send [05:20:50]OFD Sender: No OFD packet to send [05:20:55]OFD Sender: No OFD packet to send [05:21:00]OFD Sender: No OFD packet to send [05:21:05]OFD Sender: No OFD packet to send [05:21:10]OFD Sender: No OFD packet to send [05:21:15]OFD Sender: No OFD packet to send [05:21:20]OFD Sender: No OFD packet to send [05:21:25]OFD Sender: No OFD packet to send [05:21:30]OFD Sender: No OFD packet to send [05:21:35]OFD Sender: No OFD packet to send [05:21:40]OFD Sender: No OFD packet to send [05:21:45]OFD Sender: No OFD packet to send [05:21:50]OFD Sender: No OFD packet to send [05:21:55]OFD Sender: No OFD packet to send [05:22:00]OFD Sender: No OFD packet to send [05:22:05]OFD Sender: No OFD packet to send [05:22:10]OFD Sender: No OFD packet to send [05:22:15]OFD Sender: No OFD packet to send [05:22:20]OFD Sender: No OFD packet to send [05:22:25]OFD Sender: No OFD packet to send [05:22:30]OFD Sender: No OFD packet to send [05:22:35]OFD Sender: No OFD packet to send [05:22:40]OFD Sender: No OFD packet to send [05:22:45]OFD Sender: No OFD packet to send [05:22:50]OFD Sender: No OFD packet to send [05:22:55]OFD Sender: No OFD packet to send [05:23:00]OFD Sender: No OFD packet to send [05:23:05]OFD Sender: No OFD packet to send [05:23:10]OFD Sender: No OFD packet to send [05:23:15]OFD Sender: No OFD packet to send [05:23:20]OFD Sender: No OFD packet to send [05:23:25]OFD Sender: No OFD packet to send [05:23:30]OFD Sender: No OFD packet to send [05:23:35]OFD Sender: No OFD packet to send [05:23:40]OFD Sender: No OFD packet to send [05:23:45]OFD Sender: No OFD packet to send [05:23:50]OFD Sender: No OFD packet to send [05:23:55]OFD Sender: No OFD packet to send [05:24:00]OFD Sender: No OFD packet to send [05:24:05]OFD Sender: No OFD packet to send [05:24:10]OFD Sender: No OFD packet to send [05:24:15]OFD Sender: No OFD packet to send [05:24:20]OFD Sender: No OFD packet to send [05:24:25]OFD Sender: No OFD packet to send [05:24:30]OFD Sender: No OFD packet to send [05:24:35]OFD Sender: No OFD packet to send [05:24:40]OFD Sender: No OFD packet to send [05:24:45]OFD Sender: No OFD packet to send [05:24:50]OFD Sender: No OFD packet to send [05:24:55]OFD Sender: No OFD packet to send [05:25:00]OFD Sender: No OFD packet to send [05:25:05]OFD Sender: No OFD packet to send [05:25:10]OFD Sender: No OFD packet to send [05:25:15]OFD Sender: No OFD packet to send [05:25:20]OFD Sender: No OFD packet to send [05:25:25]OFD Sender: No OFD packet to send [05:25:30]OFD Sender: No OFD packet to send [05:25:35]OFD Sender: No OFD packet to send [05:25:40]OFD Sender: No OFD packet to send [05:25:45]OFD Sender: No OFD packet to send [05:25:50]OFD Sender: No OFD packet to send [05:25:55]OFD Sender: No OFD packet to send [05:26:00]OFD Sender: No OFD packet to send [05:26:05]OFD Sender: No OFD packet to send [05:26:10]OFD Sender: No OFD packet to send [05:26:15]OFD Sender: No OFD packet to send [05:26:20]OFD Sender: No OFD packet to send [05:26:25]OFD Sender: No OFD packet to send [05:26:30]OFD Sender: No OFD packet to send [05:26:35]OFD Sender: No OFD packet to send [05:26:40]OFD Sender: No OFD packet to send [05:26:45]OFD Sender: No OFD packet to send [05:26:50]OFD Sender: No OFD packet to send [05:26:55]OFD Sender: No OFD packet to send [05:27:00]OFD Sender: No OFD packet to send [05:27:05]OFD Sender: No OFD packet to send [05:27:10]OFD Sender: No OFD packet to send [05:27:15]OFD Sender: No OFD packet to send [05:27:20]OFD Sender: No OFD packet to send [05:27:25]OFD Sender: No OFD packet to send [05:27:30]OFD Sender: No OFD packet to send [05:27:35]OFD Sender: No OFD packet to send [05:27:40]OFD Sender: No OFD packet to send [05:27:45]OFD Sender: No OFD packet to send [05:27:50]OFD Sender: No OFD packet to send [05:27:55]OFD Sender: No OFD packet to send [05:28:00]OFD Sender: No OFD packet to send [05:28:05]OFD Sender: No OFD packet to send [05:28:10]OFD Sender: No OFD packet to send [05:28:15]OFD Sender: No OFD packet to send [05:28:20]OFD Sender: No OFD packet to send [05:28:25]OFD Sender: No OFD packet to send [05:28:30]OFD Sender: No OFD packet to send [05:28:35]OFD Sender: No OFD packet to send [05:28:40]OFD Sender: No OFD packet to send [05:28:45]OFD Sender: No OFD packet to send [05:28:50]OFD Sender: No OFD packet to send [05:28:55]OFD Sender: No OFD packet to send [05:29:00]OFD Sender: No OFD packet to send [05:29:05]OFD Sender: No OFD packet to send [05:29:10]OFD Sender: No OFD packet to send [05:29:15]OFD Sender: No OFD packet to send [05:29:20]OFD Sender: No OFD packet to send [05:29:25]OFD Sender: No OFD packet to send [05:29:30]OFD Sender: No OFD packet to send [05:29:35]OFD Sender: No OFD packet to send [05:29:40]OFD Sender: No OFD packet to send [05:29:45]OFD Sender: No OFD packet to send [05:29:50]OFD Sender: No OFD packet to send [05:29:55]OFD Sender: No OFD packet to send [05:30:00]OFD Sender: No OFD packet to send [05:30:05]OFD Sender: No OFD packet to send [05:30:10]OFD Sender: No OFD packet to send [05:30:15]OFD Sender: No OFD packet to send [05:30:20]OFD Sender: No OFD packet to send [05:30:25]OFD Sender: No OFD packet to send [05:30:30]OFD Sender: No OFD packet to send [05:30:35]OFD Sender: No OFD packet to send [05:30:40]OFD Sender: No OFD packet to send [05:30:45]OFD Sender: No OFD packet to send [05:30:50]OFD Sender: No OFD packet to send [05:30:55]OFD Sender: No OFD packet to send [05:31:00]OFD Sender: No OFD packet to send [05:31:05]OFD Sender: No OFD packet to send [05:31:10]OFD Sender: No OFD packet to send [05:31:15]OFD Sender: No OFD packet to send [05:31:20]OFD Sender: No OFD packet to send [05:31:25]OFD Sender: No OFD packet to send [05:31:30]OFD Sender: No OFD packet to send [05:31:35]OFD Sender: No OFD packet to send [05:31:40]OFD Sender: No OFD packet to send [05:31:45]OFD Sender: No OFD packet to send [05:31:50]OFD Sender: No OFD packet to send [05:31:55]OFD Sender: No OFD packet to send [05:32:00]OFD Sender: No OFD packet to send [05:32:05]OFD Sender: No OFD packet to send [05:32:10]OFD Sender: No OFD packet to send [05:32:15]OFD Sender: No OFD packet to send [05:32:20]OFD Sender: No OFD packet to send [05:32:25]OFD Sender: No OFD packet to send [05:32:30]OFD Sender: No OFD packet to send [05:32:35]OFD Sender: No OFD packet to send [05:32:40]OFD Sender: No OFD packet to send [05:32:45]OFD Sender: No OFD packet to send [05:32:50]OFD Sender: No OFD packet to send [05:32:55]OFD Sender: No OFD packet to send [05:33:00]OFD Sender: No OFD packet to send [05:33:05]OFD Sender: No OFD packet to send [05:33:10]OFD Sender: No OFD packet to send [05:33:15]OFD Sender: No OFD packet to send [05:33:20]OFD Sender: No OFD packet to send [05:33:25]OFD Sender: No OFD packet to send [05:33:30]OFD Sender: No OFD packet to send [05:33:35]OFD Sender: No OFD packet to send [05:33:40]OFD Sender: No OFD packet to send [05:33:45]OFD Sender: No OFD packet to send [05:33:50]OFD Sender: No OFD packet to send [05:33:56]OFD Sender: No OFD packet to send [05:34:01]OFD Sender: No OFD packet to send [05:34:06]OFD Sender: No OFD packet to send [05:34:11]OFD Sender: No OFD packet to send [05:34:16]OFD Sender: No OFD packet to send [05:34:21]OFD Sender: No OFD packet to send [05:34:26]OFD Sender: No OFD packet to send [05:34:31]OFD Sender: No OFD packet to send [05:34:36]OFD Sender: No OFD packet to send [05:34:41]OFD Sender: No OFD packet to send [05:34:46]OFD Sender: No OFD packet to send [05:34:51]OFD Sender: No OFD packet to send [05:34:56]OFD Sender: No OFD packet to send [05:35:01]OFD Sender: No OFD packet to send [05:35:06]OFD Sender: No OFD packet to send [05:35:11]OFD Sender: No OFD packet to send [05:35:16]OFD Sender: No OFD packet to send [05:35:21]OFD Sender: No OFD packet to send [05:35:26]OFD Sender: No OFD packet to send [05:35:31]OFD Sender: No OFD packet to send [05:35:36]OFD Sender: No OFD packet to send [05:35:41]OFD Sender: No OFD packet to send [05:35:46]OFD Sender: No OFD packet to send [05:35:51]OFD Sender: No OFD packet to send [05:35:56]OFD Sender: No OFD packet to send [05:36:01]OFD Sender: No OFD packet to send [05:36:06]OFD Sender: No OFD packet to send [05:36:11]OFD Sender: No OFD packet to send [05:36:16]OFD Sender: No OFD packet to send [05:36:21]OFD Sender: No OFD packet to send [05:36:26]OFD Sender: No OFD packet to send [05:36:31]OFD Sender: No OFD packet to send [05:36:36]OFD Sender: No OFD packet to send [05:36:41]OFD Sender: No OFD packet to send [05:36:46]OFD Sender: No OFD packet to send [05:36:51]OFD Sender: No OFD packet to send [05:36:56]OFD Sender: No OFD packet to send [05:37:01]OFD Sender: No OFD packet to send [05:37:06]OFD Sender: No OFD packet to send [05:37:11]OFD Sender: No OFD packet to send [05:37:16]OFD Sender: No OFD packet to send [05:37:21]OFD Sender: No OFD packet to send [05:37:26]OFD Sender: No OFD packet to send [05:37:31]OFD Sender: No OFD packet to send [05:37:36]OFD Sender: No OFD packet to send [05:37:41]OFD Sender: No OFD packet to send [05:37:46]OFD Sender: No OFD packet to send [05:37:51]OFD Sender: No OFD packet to send [05:37:56]OFD Sender: No OFD packet to send [05:38:01]OFD Sender: No OFD packet to send [05:38:06]OFD Sender: No OFD packet to send [05:38:11]OFD Sender: No OFD packet to send [05:38:16]OFD Sender: No OFD packet to send [05:38:21]OFD Sender: No OFD packet to send [05:38:26]OFD Sender: No OFD packet to send [05:38:31]OFD Sender: No OFD packet to send [05:38:36]OFD Sender: No OFD packet to send [05:38:41]OFD Sender: No OFD packet to send [05:38:46]OFD Sender: No OFD packet to send [05:38:51]OFD Sender: No OFD packet to send [05:38:56]OFD Sender: No OFD packet to send [05:39:01]OFD Sender: No OFD packet to send [05:39:06]OFD Sender: No OFD packet to send [05:39:11]OFD Sender: No OFD packet to send [05:39:16]OFD Sender: No OFD packet to send [05:39:21]OFD Sender: No OFD packet to send [05:39:26]OFD Sender: No OFD packet to send [05:39:31]OFD Sender: No OFD packet to send [05:39:36]OFD Sender: No OFD packet to send [05:39:41]OFD Sender: No OFD packet to send [05:39:46]OFD Sender: No OFD packet to send [05:39:51]OFD Sender: No OFD packet to send [05:39:56]OFD Sender: No OFD packet to send [05:40:01]OFD Sender: No OFD packet to send [05:40:06]OFD Sender: No OFD packet to send [05:40:11]OFD Sender: No OFD packet to send [05:40:16]OFD Sender: No OFD packet to send [05:40:21]OFD Sender: No OFD packet to send [05:40:26]OFD Sender: No OFD packet to send [05:40:31]OFD Sender: No OFD packet to send [05:40:36]OFD Sender: No OFD packet to send [05:40:41]OFD Sender: No OFD packet to send [05:40:46]OFD Sender: No OFD packet to send [05:40:51]OFD Sender: No OFD packet to send [05:40:56]OFD Sender: No OFD packet to send [05:41:01]OFD Sender: No OFD packet to send [05:41:06]OFD Sender: No OFD packet to send [05:41:11]OFD Sender: No OFD packet to send [05:41:16]OFD Sender: No OFD packet to send [05:41:21]OFD Sender: No OFD packet to send [05:41:26]OFD Sender: No OFD packet to send [05:41:31]OFD Sender: No OFD packet to send [05:41:36]OFD Sender: No OFD packet to send [05:41:41]OFD Sender: No OFD packet to send [05:41:46]OFD Sender: No OFD packet to send [05:41:51]OFD Sender: No OFD packet to send [05:41:56]OFD Sender: No OFD packet to send [05:42:01]OFD Sender: No OFD packet to send [05:42:06]OFD Sender: No OFD packet to send [05:42:11]OFD Sender: No OFD packet to send [05:42:16]OFD Sender: No OFD packet to send [05:42:21]OFD Sender: No OFD packet to send [05:42:26]OFD Sender: No OFD packet to send [05:42:31]OFD Sender: No OFD packet to send [05:42:36]OFD Sender: No OFD packet to send [05:42:41]OFD Sender: No OFD packet to send [05:42:46]OFD Sender: No OFD packet to send [05:42:51]OFD Sender: No OFD packet to send [05:42:56]OFD Sender: No OFD packet to send [05:43:01]OFD Sender: No OFD packet to send [05:43:06]OFD Sender: No OFD packet to send [05:43:11]OFD Sender: No OFD packet to send [05:43:16]OFD Sender: No OFD packet to send [05:43:21]OFD Sender: No OFD packet to send [05:43:26]OFD Sender: No OFD packet to send [05:43:31]OFD Sender: No OFD packet to send [05:43:36]OFD Sender: No OFD packet to send [05:43:41]OFD Sender: No OFD packet to send [05:43:46]OFD Sender: No OFD packet to send [05:43:51]OFD Sender: No OFD packet to send [05:43:56]OFD Sender: No OFD packet to send [05:44:01]OFD Sender: No OFD packet to send [05:44:06]OFD Sender: No OFD packet to send [05:44:11]OFD Sender: No OFD packet to send [05:44:16]OFD Sender: No OFD packet to send [05:44:21]OFD Sender: No OFD packet to send [05:44:26]OFD Sender: No OFD packet to send [05:44:31]OFD Sender: No OFD packet to send [05:44:36]OFD Sender: No OFD packet to send [05:44:41]OFD Sender: No OFD packet to send [05:44:46]OFD Sender: No OFD packet to send [05:44:51]OFD Sender: No OFD packet to send [05:44:56]OFD Sender: No OFD packet to send [05:45:01]OFD Sender: No OFD packet to send [05:45:06]OFD Sender: No OFD packet to send [05:45:11]OFD Sender: No OFD packet to send [05:45:16]OFD Sender: No OFD packet to send [05:45:21]OFD Sender: No OFD packet to send [05:45:26]OFD Sender: No OFD packet to send [05:45:31]OFD Sender: No OFD packet to send [05:45:36]OFD Sender: No OFD packet to send [05:45:41]OFD Sender: No OFD packet to send [05:45:46]OFD Sender: No OFD packet to send [05:45:51]OFD Sender: No OFD packet to send [05:45:56]OFD Sender: No OFD packet to send [05:46:01]OFD Sender: No OFD packet to send [05:46:06]OFD Sender: No OFD packet to send [05:46:11]OFD Sender: No OFD packet to send [05:46:16]OFD Sender: No OFD packet to send [05:46:21]OFD Sender: No OFD packet to send [05:46:26]OFD Sender: No OFD packet to send [05:46:31]OFD Sender: No OFD packet to send [05:46:36]OFD Sender: No OFD packet to send [05:46:41]OFD Sender: No OFD packet to send [05:46:46]OFD Sender: No OFD packet to send [05:46:51]OFD Sender: No OFD packet to send [05:46:56]OFD Sender: No OFD packet to send [05:47:01]OFD Sender: No OFD packet to send [05:47:06]OFD Sender: No OFD packet to send [05:47:11]OFD Sender: No OFD packet to send [05:47:16]OFD Sender: No OFD packet to send [05:47:21]OFD Sender: No OFD packet to send [05:47:26]OFD Sender: No OFD packet to send [05:47:31]OFD Sender: No OFD packet to send [05:47:36]OFD Sender: No OFD packet to send [05:47:41]OFD Sender: No OFD packet to send [05:47:46]OFD Sender: No OFD packet to send [05:47:51]OFD Sender: No OFD packet to send [05:47:56]OFD Sender: No OFD packet to send [05:48:01]OFD Sender: No OFD packet to send [05:48:06]OFD Sender: No OFD packet to send [05:48:11]OFD Sender: No OFD packet to send [05:48:16]OFD Sender: No OFD packet to send [05:48:21]OFD Sender: No OFD packet to send [05:48:26]OFD Sender: No OFD packet to send [05:48:31]OFD Sender: No OFD packet to send [05:48:36]OFD Sender: No OFD packet to send [05:48:41]OFD Sender: No OFD packet to send [05:48:46]OFD Sender: No OFD packet to send [05:48:51]OFD Sender: No OFD packet to send [05:48:56]OFD Sender: No OFD packet to send [05:49:01]OFD Sender: No OFD packet to send [05:49:06]OFD Sender: No OFD packet to send [05:49:11]OFD Sender: No OFD packet to send [05:49:16]OFD Sender: No OFD packet to send [05:49:21]OFD Sender: No OFD packet to send [05:49:26]OFD Sender: No OFD packet to send [05:49:31]OFD Sender: No OFD packet to send [05:49:36]OFD Sender: No OFD packet to send [05:49:41]OFD Sender: No OFD packet to send [05:49:46]OFD Sender: No OFD packet to send [05:49:51]OFD Sender: No OFD packet to send [05:49:56]OFD Sender: No OFD packet to send [05:50:01]OFD Sender: No OFD packet to send [05:50:06]OFD Sender: No OFD packet to send [05:50:11]OFD Sender: No OFD packet to send [05:50:16]OFD Sender: No OFD packet to send [05:50:21]OFD Sender: No OFD packet to send [05:50:26]OFD Sender: No OFD packet to send [05:50:31]OFD Sender: No OFD packet to send [05:50:36]OFD Sender: No OFD packet to send [05:50:41]OFD Sender: No OFD packet to send [05:50:46]OFD Sender: No OFD packet to send [05:50:51]OFD Sender: No OFD packet to send [05:50:56]OFD Sender: No OFD packet to send [05:51:01]OFD Sender: No OFD packet to send [05:51:06]OFD Sender: No OFD packet to send [05:51:11]OFD Sender: No OFD packet to send [05:51:16]OFD Sender: No OFD packet to send [05:51:21]OFD Sender: No OFD packet to send [05:51:26]OFD Sender: No OFD packet to send [05:51:31]OFD Sender: No OFD packet to send [05:51:36]OFD Sender: No OFD packet to send [05:51:41]OFD Sender: No OFD packet to send [05:51:46]OFD Sender: No OFD packet to send [05:51:51]OFD Sender: No OFD packet to send [05:51:56]OFD Sender: No OFD packet to send [05:52:01]OFD Sender: No OFD packet to send [05:52:06]OFD Sender: No OFD packet to send [05:52:11]OFD Sender: No OFD packet to send [05:52:16]OFD Sender: No OFD packet to send [05:52:21]OFD Sender: No OFD packet to send [05:52:26]OFD Sender: No OFD packet to send [05:52:31]OFD Sender: No OFD packet to send [05:52:36]OFD Sender: No OFD packet to send [05:52:41]OFD Sender: No OFD packet to send [05:52:46]OFD Sender: No OFD packet to send [05:52:51]OFD Sender: No OFD packet to send [05:52:56]OFD Sender: No OFD packet to send [05:53:01]OFD Sender: No OFD packet to send [05:53:06]OFD Sender: No OFD packet to send [05:53:11]OFD Sender: No OFD packet to send [05:53:16]OFD Sender: No OFD packet to send [05:53:21]OFD Sender: No OFD packet to send [05:53:26]OFD Sender: No OFD packet to send [05:53:31]OFD Sender: No OFD packet to send [05:53:36]OFD Sender: No OFD packet to send [05:53:41]OFD Sender: No OFD packet to send [05:53:46]OFD Sender: No OFD packet to send [05:53:51]OFD Sender: No OFD packet to send [05:53:56]OFD Sender: No OFD packet to send [05:54:01]OFD Sender: No OFD packet to send [05:54:06]OFD Sender: No OFD packet to send [05:54:11]OFD Sender: No OFD packet to send [05:54:16]OFD Sender: No OFD packet to send [05:54:22]OFD Sender: No OFD packet to send [05:54:27]OFD Sender: No OFD packet to send [05:54:32]OFD Sender: No OFD packet to send [05:54:37]OFD Sender: No OFD packet to send [05:54:42]OFD Sender: No OFD packet to send [05:54:47]OFD Sender: No OFD packet to send [05:54:52]OFD Sender: No OFD packet to send [05:54:57]OFD Sender: No OFD packet to send [05:55:02]OFD Sender: No OFD packet to send [05:55:07]OFD Sender: No OFD packet to send [05:55:12]OFD Sender: No OFD packet to send [05:55:17]OFD Sender: No OFD packet to send [05:55:22]OFD Sender: No OFD packet to send [05:55:27]OFD Sender: No OFD packet to send [05:55:32]OFD Sender: No OFD packet to send [05:55:37]OFD Sender: No OFD packet to send [05:55:42]OFD Sender: No OFD packet to send [05:55:47]OFD Sender: No OFD packet to send [05:55:52]OFD Sender: No OFD packet to send [05:55:57]OFD Sender: No OFD packet to send [05:56:02]OFD Sender: No OFD packet to send [05:56:07]OFD Sender: No OFD packet to send [05:56:12]OFD Sender: No OFD packet to send [05:56:17]OFD Sender: No OFD packet to send [05:56:22]OFD Sender: No OFD packet to send [05:56:27]OFD Sender: No OFD packet to send [05:56:32]OFD Sender: No OFD packet to send [05:56:37]OFD Sender: No OFD packet to send [05:56:42]OFD Sender: No OFD packet to send [05:56:47]OFD Sender: No OFD packet to send [05:56:52]OFD Sender: No OFD packet to send [05:56:57]OFD Sender: No OFD packet to send [05:57:02]OFD Sender: No OFD packet to send [05:57:07]OFD Sender: No OFD packet to send [05:57:12]OFD Sender: No OFD packet to send [05:57:17]OFD Sender: No OFD packet to send [05:57:22]OFD Sender: No OFD packet to send [05:57:27]OFD Sender: No OFD packet to send [05:57:32]OFD Sender: No OFD packet to send [05:57:37]OFD Sender: No OFD packet to send [05:57:42]OFD Sender: No OFD packet to send [05:57:47]OFD Sender: No OFD packet to send [05:57:52]OFD Sender: No OFD packet to send [05:57:57]OFD Sender: No OFD packet to send [05:58:02]OFD Sender: No OFD packet to send [05:58:07]OFD Sender: No OFD packet to send [05:58:12]OFD Sender: No OFD packet to send [05:58:17]OFD Sender: No OFD packet to send [05:58:22]OFD Sender: No OFD packet to send [05:58:27]OFD Sender: No OFD packet to send [05:58:32]OFD Sender: No OFD packet to send [05:58:37]OFD Sender: No OFD packet to send [05:58:42]OFD Sender: No OFD packet to send [05:58:47]OFD Sender: No OFD packet to send [05:58:52]OFD Sender: No OFD packet to send [05:58:57]OFD Sender: No OFD packet to send [05:59:02]OFD Sender: No OFD packet to send [05:59:07]OFD Sender: No OFD packet to send [05:59:12]OFD Sender: No OFD packet to send [05:59:17]OFD Sender: No OFD packet to send [05:59:22]OFD Sender: No OFD packet to send [05:59:27]OFD Sender: No OFD packet to send [05:59:32]OFD Sender: No OFD packet to send [05:59:37]OFD Sender: No OFD packet to send [05:59:42]OFD Sender: No OFD packet to send [05:59:47]OFD Sender: No OFD packet to send [05:59:52]OFD Sender: No OFD packet to send [05:59:57]OFD Sender: No OFD packet to send [06:00:02]OFD Sender: No OFD packet to send [06:00:07]OFD Sender: No OFD packet to send [06:00:12]OFD Sender: No OFD packet to send [06:00:17]OFD Sender: No OFD packet to send [06:00:22]OFD Sender: No OFD packet to send [06:00:27]OFD Sender: No OFD packet to send [06:00:32]OFD Sender: No OFD packet to send [06:00:37]OFD Sender: No OFD packet to send [06:00:42]OFD Sender: No OFD packet to send [06:00:47]OFD Sender: No OFD packet to send [06:00:52]OFD Sender: No OFD packet to send [06:00:57]OFD Sender: No OFD packet to send [06:01:02]OFD Sender: No OFD packet to send [06:01:07]OFD Sender: No OFD packet to send [06:01:12]OFD Sender: No OFD packet to send [06:01:17]OFD Sender: No OFD packet to send [06:01:22]OFD Sender: No OFD packet to send [06:01:27]OFD Sender: No OFD packet to send [06:01:32]OFD Sender: No OFD packet to send [06:01:37]OFD Sender: No OFD packet to send [06:01:42]OFD Sender: No OFD packet to send [06:01:47]OFD Sender: No OFD packet to send [06:01:52]OFD Sender: No OFD packet to send [06:01:57]OFD Sender: No OFD packet to send [06:02:02]OFD Sender: No OFD packet to send [06:02:07]OFD Sender: No OFD packet to send [06:02:12]OFD Sender: No OFD packet to send [06:02:17]OFD Sender: No OFD packet to send [06:02:22]OFD Sender: No OFD packet to send [06:02:27]OFD Sender: No OFD packet to send [06:02:32]OFD Sender: No OFD packet to send [06:02:37]OFD Sender: No OFD packet to send [06:02:42]OFD Sender: No OFD packet to send [06:02:47]OFD Sender: No OFD packet to send [06:02:52]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:48]OFD Sender: No OFD packet to send [06:14:53]OFD Sender: No OFD packet to send [06:14:58]OFD Sender: No OFD packet to send [06:15:03]OFD Sender: No OFD packet to send [06:15:08]OFD Sender: No OFD packet to send [06:15:13]OFD Sender: No OFD packet to send [06:15:18]OFD Sender: No OFD packet to send [06:15:23]OFD Sender: No OFD packet to send [06:15:28]OFD Sender: No OFD packet to send [06:15:33]OFD Sender: No OFD packet to send [06:15:38]OFD Sender: No OFD packet to send [06:15:43]OFD Sender: No OFD packet to send [06:15:48]OFD Sender: No OFD packet to send [06:15:53]OFD Sender: No OFD packet to send [06:15:58]OFD Sender: No OFD packet to send [06:16:03]OFD Sender: No OFD packet to send [06:16:08]OFD Sender: No OFD packet to send [06:16:13]OFD Sender: No OFD packet to send [06:16:18]OFD Sender: No OFD packet to send [06:16:23]OFD Sender: No OFD packet to send [06:16:28]OFD Sender: No OFD packet to send [06:16:33]OFD Sender: No OFD packet to send [06:16:38]OFD Sender: No OFD packet to send [06:16:43]OFD Sender: No OFD packet to send [06:16:48]OFD Sender: No OFD packet to send [06:16:53]OFD Sender: No OFD packet to send [06:16:58]OFD Sender: No OFD packet to send [06:17:03]OFD Sender: No OFD packet to send [06:17:08]OFD Sender: No OFD packet to send [06:17:13]OFD Sender: No OFD packet to send [06:17:18]OFD Sender: No OFD packet to send [06:17:23]OFD Sender: No OFD packet to send [06:17:28]OFD Sender: No OFD packet to send [06:17:33]OFD Sender: No OFD packet to send [06:17:38]OFD Sender: No OFD packet to send [06:17:43]OFD Sender: No OFD packet to send [06:17:48]OFD Sender: No OFD packet to send [06:17:53]OFD Sender: No OFD packet to send [06:17:58]OFD Sender: No OFD packet to send [06:18:03]OFD Sender: No OFD packet to send [06:18:08]OFD Sender: No OFD packet to send [06:18:13]OFD Sender: No OFD packet to send [06:18:18]OFD Sender: No OFD packet to send [06:18:23]OFD Sender: No OFD packet to send [06:18:28]OFD Sender: No OFD packet to send [06:18:33]OFD Sender: No OFD packet to send [06:18:38]OFD Sender: No OFD packet to send [06:18:43]OFD Sender: No OFD packet to send [06:18:48]OFD Sender: No OFD packet to send [06:18:53]OFD Sender: No OFD packet to send [06:18:58]OFD Sender: No OFD packet to send [06:19:03]OFD Sender: No OFD packet to send [06:19:08]OFD Sender: No OFD packet to send [06:19:13]OFD Sender: No OFD packet to send [06:19:18]OFD Sender: No OFD packet to send [06:19:23]OFD Sender: No OFD packet to send [06:19:28]OFD Sender: No OFD packet to send [06:19:33]OFD Sender: No OFD packet to send [06:19:38]OFD Sender: No OFD packet to send [06:19:43]OFD Sender: No OFD packet to send [06:19:48]OFD Sender: No OFD packet to send [06:19:53]OFD Sender: No OFD packet to send [06:19:58]OFD Sender: No OFD packet to send [06:20:03]OFD Sender: No OFD packet to send [06:20:08]OFD Sender: No OFD packet to send [06:20:13]OFD Sender: No OFD packet to send [06:20:18]OFD Sender: No OFD packet to send [06:20:23]OFD Sender: No OFD packet to send [06:20:28]OFD Sender: No OFD packet to send [06:20:33]OFD Sender: No OFD packet to send [06:20:38]OFD Sender: No OFD packet to send [06:20:43]OFD Sender: No OFD packet to send [06:20:48]OFD Sender: No OFD packet to send [06:20:53]OFD Sender: No OFD packet to send [06:20:58]OFD Sender: No OFD packet to send [06:21:03]OFD Sender: No OFD packet to send [06:21:08]OFD Sender: No OFD packet to send [06:21:13]OFD Sender: No OFD packet to send [06:21:18]OFD Sender: No OFD packet to send [06:21:23]OFD Sender: No OFD packet to send [06:21:28]OFD Sender: No OFD packet to send [06:21:33]OFD Sender: No OFD packet to send [06:21:38]OFD Sender: No OFD packet to send [06:21:43]OFD Sender: No OFD packet to send [06:21:48]OFD Sender: No OFD packet to send [06:21:53]OFD Sender: No OFD packet to send [06:21:58]OFD Sender: No OFD packet to send [06:22:03]OFD Sender: No OFD packet to send [06:22:08]OFD Sender: No OFD packet to send [06:22:13]OFD Sender: No OFD packet to send [06:22:18]OFD Sender: No OFD packet to send [06:22:23]OFD Sender: No OFD packet to send [06:22:28]OFD Sender: No OFD packet to send [06:22:33]OFD Sender: No OFD packet to send [06:22:38]OFD Sender: No OFD packet to send [06:22:43]OFD Sender: No OFD packet to send [06:22:48]OFD Sender: No OFD packet to send [06:22:53]OFD Sender: No OFD packet to send [06:22:58]OFD Sender: No OFD packet to send [06:23:03]OFD Sender: No OFD packet to send [06:23:08]OFD Sender: No OFD packet to send [06:23:13]OFD Sender: No OFD packet to send [06:23:18]OFD Sender: No OFD packet to send [06:23:23]OFD Sender: No OFD packet to send [06:23:28]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:13]OFD Sender: No OFD packet to send [06:30:18]OFD Sender: No OFD packet to send [06:30:23]OFD Sender: No OFD packet to send [06:30:28]OFD Sender: No OFD packet to send [06:30:33]OFD Sender: No OFD packet to send [06:30:38]OFD Sender: No OFD packet to send [06:30:43]OFD Sender: No OFD packet to send [06:30:48]OFD Sender: No OFD packet to send [06:30:53]OFD Sender: No OFD packet to send [06:30:58]OFD Sender: No OFD packet to send [06:31:03]OFD Sender: No OFD packet to send [06:31:08]OFD Sender: No OFD packet to send [06:31:13]OFD Sender: No OFD packet to send [06:31:18]OFD Sender: No OFD packet to send [06:31:23]OFD Sender: No OFD packet to send [06:31:28]OFD Sender: No OFD packet to send [06:31:33]OFD Sender: No OFD packet to send [06:31:38]OFD Sender: No OFD packet to send [06:31:43]OFD Sender: No OFD packet to send [06:31:48]OFD Sender: No OFD packet to send [06:31:53]OFD Sender: No OFD packet to send [06:31:58]OFD Sender: No OFD packet to send [06:32:03]OFD Sender: No OFD packet to send [06:32:08]OFD Sender: No OFD packet to send [06:32:13]OFD Sender: No OFD packet to send [06:32:18]OFD Sender: No OFD packet to send [06:32:23]OFD Sender: No OFD packet to send [06:32:28]OFD Sender: No OFD packet to send [06:32:33]OFD Sender: No OFD packet to send [06:32:38]OFD Sender: No OFD packet to send [06:32:43]OFD Sender: No OFD packet to send [06:32:48]OFD Sender: No OFD packet to send [06:32:53]OFD Sender: No OFD packet to send [06:32:58]OFD Sender: No OFD packet to send [06:33:03]OFD Sender: No OFD packet to send [06:33:08]OFD Sender: No OFD packet to send [06:33:13]OFD Sender: No OFD packet to send [06:33:18]OFD Sender: No OFD packet to send [06:33:23]OFD Sender: No OFD packet to send [06:33:28]OFD Sender: No OFD packet to send [06:33:33]OFD Sender: No OFD packet to send [06:33:36]accept exits with 7 [06:33:36]New connection [06:33:36]New thread 3066715492 created [06:33:36]Thread 3066858852 joined [06:33:36]Waiting for new connection... [06:33:36] Sock 7.Parse request [06:33:36]Sock 7.Check first char [06:33:36]Sock 7.First char is OK [06:33:36]request: POST /json_proto HTTP/1.0 [06:33:36]Method: POST [06:33:36]URL: /json_proto [06:33:36]Method is POST - this is cgi request [06:33:36]url: /json_proto [06:33:36]query_string will be loaded in cgi processing [06:33:36]execute_cgi json_proto POST (null) [06:33:36]execute_cgi path=json_proto method=POST [06:33:36]POST find Content-Length [06:33:36]Host: 172.17.38.133:8080 [06:33:36]Content-Length: 682 [06:33:36]Content-Type: application/json [06:33:36] [06:33:36]POST finish read [06:33:36]Found Content-Length = 682 [06:33:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673481", "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" : 25.610, "sum" : 1700.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1700.00, "total" : 1700.00, "payments": [ { "type": 0, "sum" : 1700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:33:36]execute_script... [06:33: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)673481", "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" : 25.610, "sum" : 1700.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1700.00, "total" : 1700.00, "payments": [ { "type": 0, "sum" : 1700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:33:36]POST & json_proto [06:33:36]process_json_proto [06:33:36]json parsed OK: [06:33:36]protocol is kg_v1.0 [06:33:36]action value=close_receipt [06:33:36]process_action close_receipt [06:33:36]cmd_close_receipt [06:33:36]MH_GetDate [06:33:36]Write to MH i2c: F0 00 00 48 0F 46 [06:33:36]Write i2c OK [06:33:36]MH_I2C_Read... [06:33:36]Read from MH i2c: F0 [06:33:36]MH_I2C_Read... [06:33:36]Read from MH i2c: F0 09 00 [06:33:36]MH_I2C_Read... [06:33:36]Read from MH i2c: F0 09 00 48 0F 00 C4 1E 75 66 BD 8F 7C 64 38 [06:33:36]GetLastDocTimeStamp 1718946819 [06:33:36]current date 1718951620 [06:33:36]FM_GetShiftState [06:33:36]SAM_PROTO_GetShiftState [06:33:36]wFMCommunicate request_size=4 [06:33:36]MH_SAM_APDU [06:33:36]CAPDU: 80 13 01 00 [06:33:36]Write to MH i2c: E2 08 00 49 0F 80 13 01 00 00 00 00 00 D5 [06:33:36]Write i2c OK [06:33:36]MH_I2C_Read... [06:33:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:33:37]Read from MH i2c: E2 [06:33:37]MH_I2C_Read... [06:33:37]Read from MH i2c: E2 0E 00 [06:33:37]MH_I2C_Read... [06:33:37]Read from MH i2c: E2 0E 00 49 0F 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 E8 [06:33:37]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [06:33:37]wFMCommunicate OK [06:33:37]SAM_PROTO_GetShiftState done [06:33:37]FM_GetShiftState done [06:33:37]opened in 1718929509 [06:33:37]opened+sec_in_day 1719015909 [06:33:37]quantity*price = 170050 [06:33:37]sum+1 = 170051 [06:33:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.50 ИТОГО: 1700.00 Внесено: 1700.00 СДАЧА: 0.00 НСП 1% : 15.05 НДС 12% : 180.58 Наличными: 1700.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 15 21.06.2024 06:33 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104092 ФПД: 253397316955076 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T063340&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104092&fm=253397316955076&tin=02508201610067®Number=0000000000092785&sum=170000 [06:33:38]StoreToDocumentArchive [06:33:38]shift 355 fd 104092 [06:33:38]save to /storage/0355/doc_00104092 [06:33:38]save last doc name /storage/0355/doc_00104092 to /storage/kkm_last_doc_name [06:33:38]save OK [06:33:38]Clear old archive folders... [06:33:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:33:38]tlvbuf is 0111C590 [06:33:38]SAM_PROTO_ClearQueue [06:33:38]wFMCommunicate request_size=4 [06:33:38]MH_SAM_APDU [06:33:38]CAPDU: 80 09 00 00 [06:33:38]Write to MH i2c: E2 08 00 56 0F 80 09 00 00 00 00 00 00 D7 [06:33:38]Write i2c OK [06:33:38]MH_I2C_Read... [06:33:38]Read from MH i2c: E2 [06:33:38]MH_I2C_Read... [06:33:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:33:38]Read from MH i2c: E2 03 00 [06:33:38]MH_I2C_Read... [06:33:38]Read from MH i2c: E2 03 00 56 0F 00 90 00 D9 [06:33:38]RAPDU: 90 00 [06:33:38]wFMCommunicate OK [06:33:38]SAM_PROTO_ClearQueue done [06:33:38]KKMCreateOFDPacket [06:33:38]OFDProtocolAddRootSTLVToBuf [06:33:38]FM_MakeSignedData [06:33:38]FM_MakeSignedData [06:33:38]SAM_PROTO_SignData [06:33:38]wFMCommunicate request_size=4 [06:33:38]MH_SAM_APDU [06:33:38]CAPDU: 80 0D 01 02 [06:33:38]Write to MH i2c: E2 08 00 57 0F 80 0D 01 02 00 00 00 00 DF [06:33:38]Write i2c OK [06:33:38]MH_I2C_Read... [06:33:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:33:38]Read from MH i2c: E2 [06:33:38]MH_I2C_Read... [06:33:38]Read from MH i2c: E2 03 00 [06:33:38]MH_I2C_Read... [06:33:38]Read from MH i2c: E2 03 00 57 0F 00 90 00 DA [06:33:38]RAPDU: 90 00 [06:33:38]wFMCommunicate OK [06:33:38]wFMCommunicate request_size=255 [06:33:38]MH_SAM_APDU [06:33:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 64 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 42 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 46 00 00 00 00 07 04 06 00 10 98 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 C4 1E 75 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 9C 96 01 00 35 04 06 00 E6 [06:33:38]Write to MH i2c: E2 02 01 58 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 0A 64 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 42 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 46 00 00 00 00 07 04 06 00 10 98 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 C4 1E 75 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 9C 96 01 00 35 04 06 00 E6 00 00 95 [06:33:38]Write i2c OK [06:33:38]MH_I2C_Read... [06:33:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:33:38]Read from MH i2c: E2 [06:33:38]MH_I2C_Read... [06:33:38]Read from MH i2c: E2 03 00 [06:33:38]MH_I2C_Read... [06:33:38]Read from MH i2c: E2 03 00 58 0F 00 90 00 DB [06:33:38]RAPDU: 90 00 [06:33:38]wFMCommunicate OK [06:33:38]wFMCommunicate request_size=10 [06:33:38]MH_SAM_APDU [06:33:38]CAPDU: 80 0D 02 02 05 76 A9 10 6B C4 [06:33:38]Write to MH i2c: E2 0D 00 59 0F 80 0D 02 02 05 00 76 A9 10 6B C4 00 00 4A [06:33:38]Write i2c OK [06:33:38]MH_I2C_Read... [06:33:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:33:38]Read from MH i2c: E2 [06:33:38]MH_I2C_Read... [06:33:38]Read from MH i2c: E2 03 00 [06:33:38]MH_I2C_Read... [06:33:38]Read from MH i2c: E2 03 00 59 0F 00 90 00 DC [06:33:38]RAPDU: 90 00 [06:33:38]wFMCommunicate OK [06:33:38]wFMCommunicate request_size=4 [06:33:38]MH_SAM_APDU [06:33:38]CAPDU: 80 0D 03 02 [06:33:38]Write to MH i2c: E2 08 00 5A 0F 80 0D 03 02 00 00 00 00 E4 [06:33:38]Write i2c OK [06:33:38]MH_I2C_Read... [06:33:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:33:38]Read from MH i2c: E2 [06:33:38]MH_I2C_Read... [06:33:38]Read from MH i2c: E2 0B 00 [06:33:38]MH_I2C_Read... [06:33:38]Read from MH i2c: E2 0B 00 5A 0F 00 E0 AE 28 E2 FB 00 C8 96 90 00 D6 [06:33:38]RAPDU: E0 AE 28 E2 FB 00 C8 96 90 00 [06:33:38]wFMCommunicate OK [06:33:38]SAM_PROTO_SignData done [06:33:38]FM_MakeSignedData done [06:33:38]CreateOFDProtocolMessage [06:33:38]wFMCommunicate request_size=4 [06:33:38]MH_SAM_APDU [06:33:38]CAPDU: 80 11 00 00 [06:33:38]Write to MH i2c: E2 08 00 5B 0F 80 11 00 00 00 00 00 00 E4 [06:33:38]Write i2c OK [06:33:38]MH_I2C_Read... [06:33:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:33:38]Read from MH i2c: E2 [06:33:38]MH_I2C_Read... [06:33:38]Read from MH i2c: E2 17 00 [06:33:38]MH_I2C_Read... [06:33:38]Read from MH i2c: E2 17 00 5B 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 37 [06:33:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [06:33:38]wFMCommunicate OK [06:33:38]CreateOFDProtocolMessage done [06:33:38]OFDSenderStorePacket 104092 [06:33:38]StoreOFDPacket docnum=104092 [06:33: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 CE 8A 07 01 EA CD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 64 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 42 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 46 00 00 00 00 07 04 06 00 10 98 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 C4 1E 75 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 9C 96 01 00 35 04 06 00 E6 76 A9 10 6B C4 E0 AE 28 E2 FB 00 C8 96 [06:33:38]CheckFolder [06:33:38]dirname=/storage/ofd_packets [06:33:38]CheckFolder done [06:33:38]ProducePacketName [06:33:38]name=ofd_packets/00104092 [06:33:38]NVStorageSaveData ofd_packets/00104092 [06:33:38]File name is /storage/ofd_packets/00104092 [06:33:38]Write 301 bytes [06:33:38]NVStorageSaveData done [06:33:38]OFDSenderStorePacket done [06:33:38]KKMCreateOFDPacket done [06:33:38]NVStorageSaveData kkm_last_timestamp [06:33:38]File name is /storage/kkm_last_timestamp [06:33:38]Write 4 bytes [06:33:38]NVStorageSaveData done [06:33:38]ExternCall_PrintAddStr [06:33:38]wPrintStart [06:33:38]Write to MH i2c: 01 00 00 5C 0F 6B [06:33:38]Write i2c OK [06:33:38]MH_I2C_Read... [06:33:38]Read from MH i2c: 01 [06:33:38]MH_I2C_Read... [06:33:38]Read from MH i2c: 01 07 00 [06:33:38]MH_I2C_Read... [06:33:38]Read from MH i2c: 01 07 00 5C 0F 00 00 00 00 00 FF 0F 80 [06:33:38]RasterBufferAndPrint [06:33:38]line Счет N : (1)673481 [06:33:38]line ИНН: 02508201610067 [06:33:38]line Контрольно-Кассовый Чек [06:33:38]line ПРОДАЖА [06:33:38]line ТРК (МРК, ГНК) : 32 [06:33:38]line Товар: 2710124130 [06:33:38]line Аи-92-К-5 [06:33:38]line 25.610 * 66.40 [06:33:38]line = 1700.50 [06:33:38]line НДС 12% НСП 1% [06:33:38]line > о реализуемом товаре [06:33:38]line ОКРУГЛЕНИЕ: -0.50 [06:33:38]line ИТОГО: 1700.00 [06:33:38]line Внесено: 1700.00 [06:33:38]line СДАЧА: 0.00 [06:33:38]line НСП 1% : 15.05 [06:33:38]line НДС 12% : 180.58 [06:33:38]line Наличными: 1700.00 [06:33:38]line Безнал.: 0.00 [06:33:38]line Место: АЗС № 120 "Партнер Нефть" [06:33:38]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [06:33:38]line СНО: Общий режим [06:33:38]line Чек 15 21.06.2024 06:33 [06:33:38]line Смена: 355 ФФД: 1.0 [06:33:38]line ЗНМ: 0300000164 [06:33:38]line РНМ: 0000000000092785 [06:33:38]line Версия ККМ: 001 [06:33:38]line ФМ: 0000000000875093 [06:33:38]line ФД: 104092 [06:33:38]line ФПД: 253397316955076 [06:33:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T063340&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104092&fm=253397316955076&tin=02508201610067®Number=0000000000092785&sum=170000 [06:33:38]OFD Sender: Processing packet 104092 [packets to send 17, broken 16] [06:33:38]ProducePacketName [06:33:38]name=ofd_packets/00104092 [06:33:38]OFD Sender: To server: pG, [06:33:38]CommunicateWithHost lk.salyk.kg:30040 [06:33:38]ConnectInit lk.salyk.kg [06:33:38]written 0, free lines is 4095 [06:33:39]Connected sock=10 [06:33: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 CE 8A 07 01 EA CD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 64 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 42 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 46 00 00 00 00 07 04 06 00 10 98 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 C4 1E 75 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 9C 96 01 00 35 04 06 00 E6 76 A9 10 6B C4 E0 AE 28 E2 FB 00 C8 96 [06:33: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 1A 7A 47 00 98 82 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 9C 96 01 00 F4 03 04 00 47 C5 74 66 B6 04 01 00 00 49 38 8D 2C F4 AE C0 A1 [06:33:39]CommunicateWithHost err = 0 [06:33:39]CheckOFDResponse [06:33:39]1017 (14) - 77093643461234 [06:33:39]1041 (16) - 0000000000875093 [06:33:39]1040 (4) - 104092 [06:33:39]1012 (4) - 21.06.2024 00:11 [06:33:39]1206 (1) - 0 [06:33:39]OFD Sender: Remove packet 104092 [06:33:39]ProducePacketName [06:33:39]name=ofd_packets/00104092 [06:33:39]NVStorageDeleteData [06:33:39]Write to MH i2c: 01 00 00 87 0F 96 [06:33:39]Write i2c OK [06:33:39]MH_I2C_Read... [06:33:39]Read from MH i2c: 01 [06:33:39]MH_I2C_Read... [06:33:39]Read from MH i2c: 01 07 00 [06:33:39]MH_I2C_Read... [06:33:39]Read from MH i2c: 01 07 00 87 0F 00 00 00 00 00 DC 0C 85 [06:33:39]RasterBufferAndPrint [06:33:39]line [06:33:39]line [06:33:39]line [06:33:39]line [06:33:39]line [06:33:39]written 0, free lines is 3298 [06:33:39]MH_Cut [06:33:39]Write to MH i2c: D1 01 00 8E 0F 01 6F [06:33:39]Write i2c OK [06:33:39]MH_I2C_Read... [06:33:39]Read from MH i2c: D1 [06:33:39]MH_I2C_Read... [06:33:39]Read from MH i2c: D1 01 00 [06:33:39]MH_I2C_Read... [06:33:39]Read from MH i2c: D1 01 00 8E 0F 00 6E [06:33:39]Write to MH i2c: 01 00 00 8F 0F 9E [06:33:39]Write i2c OK [06:33:39]MH_I2C_Read... [06:33:39]OFD Sender: No OFD packet to send [06:33:40]*** Cut start [06:33:40]*** Partial cut [06:33:40]*** CUTSNS_PIN = 1 [06:33:40]*** CUTSNS_PIN = 0 [06:33:40]*** Brake cut motor [06:33:40]Read from MH i2c: 01 [06:33:40]MH_I2C_Read... [06:33:40]*** Stop cut motor [06:33:40]*** Cut end [06:33:40]Read from MH i2c: 01 07 00 [06:33:40]MH_I2C_Read... [06:33:40]Read from MH i2c: 01 07 00 8F 0F 00 00 00 00 00 FF 0F B3 [06:33:40]process_action close_receipt done [06:33:40]requested_data is exist [06:33:40]produce_requested_data [06:33:40]requested_item fm.sn is exist - process it [06:33:40]wFMCommunicate request_size=4 [06:33:40]MH_SAM_APDU [06:33:40]CAPDU: 80 11 00 00 [06:33:40]Write to MH i2c: E2 08 00 90 0F 80 11 00 00 00 00 00 00 19 [06:33:40]Write i2c OK [06:33:40]MH_I2C_Read... [06:33:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:33:40]Read from MH i2c: E2 [06:33:40]MH_I2C_Read... [06:33:40]Read from MH i2c: E2 17 00 [06:33:40]MH_I2C_Read... [06:33:40]Read from MH i2c: E2 17 00 90 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 6C [06:33:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [06:33:40]wFMCommunicate OK [06:33:40]requested_item fd.num is exist - process it [06:33:40]SAM_PROTO_GetFieldsCounters [06:33:40]wFMCommunicate request_size=4 [06:33:40]MH_SAM_APDU [06:33:40]CAPDU: 80 13 00 00 [06:33:40]Write to MH i2c: E2 08 00 91 0F 80 13 00 00 00 00 00 00 1C [06:33:40]Write i2c OK [06:33:40]MH_I2C_Read... [06:33:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:33:40]Read from MH i2c: E2 [06:33:40]MH_I2C_Read... [06:33:40]Read from MH i2c: E2 62 00 [06:33:40]MH_I2C_Read... [06:33:40]Read from MH i2c: E2 62 00 91 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 9C 96 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 07 [06:33: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 9C 96 01 00 0E 04 04 00 63 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:33:40]wFMCommunicate OK [06:33:40]SAM_PROTO_GetFieldsCounters done [06:33:40]requested_item shift.num is exist - process it [06:33:40]requested_item shift.opened is exist - process it [06:33:40]req_shift_opened [06:33:40]FM_GetShiftState [06:33:40]SAM_PROTO_GetShiftState [06:33:40]wFMCommunicate request_size=4 [06:33:40]MH_SAM_APDU [06:33:40]CAPDU: 80 13 01 00 [06:33:40]Write to MH i2c: E2 08 00 92 0F 80 13 01 00 00 00 00 00 1E [06:33:40]Write i2c OK [06:33:40]MH_I2C_Read... [06:33:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:33:41]Read from MH i2c: E2 [06:33:41]MH_I2C_Read... [06:33:41]Read from MH i2c: E2 0E 00 [06:33:41]MH_I2C_Read... [06:33:41]Read from MH i2c: E2 0E 00 92 0F 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 31 [06:33:41]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [06:33:41]wFMCommunicate OK [06:33:41]SAM_PROTO_GetShiftState done [06:33:41]FM_GetShiftState done [06:33:41]req_shift_opened done [06:33:41]requested_item shift.open_date is exist - process it [06:33:41]req_shift_open_date [06:33:41]req_shift_open_date done [06:33:41]produce_requested_data done [06:33:41]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104092,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [06:33:41]process_action_free close_receipt [06:33:41]json_value_free [06:33:41]json_value_free done [06:33:41]process_json_proto returns [06:33:41]Send response to host [06:33:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104092,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [06:33:41]free response buf [06:33:41]execute_script done [06:33:41]execute_script returns [06:33:41]free content buf [06:33:41]Sock 7.Close socket [06:33:41]Sock 7.Thread stoped [06:33:44]OFD Sender: No OFD packet to send [06:33:49]OFD Sender: No OFD packet to send [06:33:54]OFD Sender: No OFD packet to send [06:33:59]OFD Sender: No OFD packet to send [06:34:04]OFD Sender: No OFD packet to send [06:34:09]OFD Sender: No OFD packet to send [06:34:14]OFD Sender: No OFD packet to send [06:34:19]OFD Sender: No OFD packet to send [06:34:24]OFD Sender: No OFD packet to send [06:34:29]OFD Sender: No OFD packet to send [06:34:34]OFD Sender: No OFD packet to send [06:34:39]OFD Sender: No OFD packet to send [06:34:44]OFD Sender: No OFD packet to send [06:34:49]OFD Sender: No OFD packet to send [06:34:54]OFD Sender: No OFD packet to send [06:34:59]OFD Sender: No OFD packet to send [06:35:04]OFD Sender: No OFD packet to send [06:35:09]OFD Sender: No OFD packet to send [06:35:14]OFD Sender: No OFD packet to send [06:35:19]OFD Sender: No OFD packet to send [06:35:24]OFD Sender: No OFD packet to send [06:35:29]OFD Sender: No OFD packet to send [06:35:34]OFD Sender: No OFD packet to send [06:35:39]OFD Sender: No OFD packet to send [06:35:44]OFD Sender: No OFD packet to send [06:35:49]OFD Sender: No OFD packet to send [06:35:54]OFD Sender: No OFD packet to send [06:35:59]OFD Sender: No OFD packet to send [06:36:04]OFD Sender: No OFD packet to send [06:36:09]OFD Sender: No OFD packet to send [06:36:14]OFD Sender: No OFD packet to send [06:36:19]OFD Sender: No OFD packet to send [06:36:24]OFD Sender: No OFD packet to send [06:36:29]OFD Sender: No OFD packet to send [06:36:34]OFD Sender: No OFD packet to send [06:36:39]OFD Sender: No OFD packet to send [06:36:45]OFD Sender: No OFD packet to send [06:36:50]OFD Sender: No OFD packet to send [06:36:55]OFD Sender: No OFD packet to send [06:37:00]OFD Sender: No OFD packet to send [06:37:05]OFD Sender: No OFD packet to send [06:37:10]OFD Sender: No OFD packet to send [06:37:15]OFD Sender: No OFD packet to send [06:37:20]OFD Sender: No OFD packet to send [06:37:25]OFD Sender: No OFD packet to send [06:37:30]OFD Sender: No OFD packet to send [06:37:35]OFD Sender: No OFD packet to send [06:37:40]OFD Sender: No OFD packet to send [06:37:45]OFD Sender: No OFD packet to send [06:37:50]OFD Sender: No OFD packet to send [06:37:55]OFD Sender: No OFD packet to send [06:38:00]OFD Sender: No OFD packet to send [06:38:05]OFD Sender: No OFD packet to send [06:38:10]OFD Sender: No OFD packet to send [06:38:15]OFD Sender: No OFD packet to send [06:38:20]OFD Sender: No OFD packet to send [06:38:25]OFD Sender: No OFD packet to send [06:38:30]OFD Sender: No OFD packet to send [06:38:35]OFD Sender: No OFD packet to send [06:38:40]OFD Sender: No OFD packet to send [06:38:45]OFD Sender: No OFD packet to send [06:38:50]OFD Sender: No OFD packet to send [06:38:55]OFD Sender: No OFD packet to send [06:39:00]OFD Sender: No OFD packet to send [06:39:05]OFD Sender: No OFD packet to send [06:39:10]OFD Sender: No OFD packet to send [06:39:15]OFD Sender: No OFD packet to send [06:39:20]OFD Sender: No OFD packet to send [06:39:25]OFD Sender: No OFD packet to send [06:39:30]OFD Sender: No OFD packet to send [06:39:35]OFD Sender: No OFD packet to send [06:39:40]OFD Sender: No OFD packet to send [06:39:45]OFD Sender: No OFD packet to send [06:39:50]OFD Sender: No OFD packet to send [06:39:55]OFD Sender: No OFD packet to send [06:40:00]OFD Sender: No OFD packet to send [06:40:05]OFD Sender: No OFD packet to send [06:40:10]OFD Sender: No OFD packet to send [06:40:15]OFD Sender: No OFD packet to send [06:40:20]OFD Sender: No OFD packet to send [06:40:25]OFD Sender: No OFD packet to send [06:40:30]OFD Sender: No OFD packet to send [06:40:35]OFD Sender: No OFD packet to send [06:40:40]OFD Sender: No OFD packet to send [06:40:45]OFD Sender: No OFD packet to send [06:40:50]OFD Sender: No OFD packet to send [06:40:55]OFD Sender: No OFD packet to send [06:41:00]OFD Sender: No OFD packet to send [06:41:05]OFD Sender: No OFD packet to send [06:41:10]OFD Sender: No OFD packet to send [06:41:15]OFD Sender: No OFD packet to send [06:41:20]OFD Sender: No OFD packet to send [06:41:25]OFD Sender: No OFD packet to send [06:41:30]OFD Sender: No OFD packet to send [06:41:35]OFD Sender: No OFD packet to send [06:41:40]OFD Sender: No OFD packet to send [06:41:45]OFD Sender: No OFD packet to send [06:41:50]OFD Sender: No OFD packet to send [06:41:55]OFD Sender: No OFD packet to send [06:42:00]OFD Sender: No OFD packet to send [06:42:05]OFD Sender: No OFD packet to send [06:42:10]OFD Sender: No OFD packet to send [06:42:15]OFD Sender: No OFD packet to send [06:42:20]OFD Sender: No OFD packet to send [06:42:25]OFD Sender: No OFD packet to send [06:42:30]OFD Sender: No OFD packet to send [06:42:35]OFD Sender: No OFD packet to send [06:42:40]OFD Sender: No OFD packet to send [06:42:45]OFD Sender: No OFD packet to send [06:42:50]OFD Sender: No OFD packet to send [06:42:55]OFD Sender: No OFD packet to send [06:43:00]OFD Sender: No OFD packet to send [06:43:05]OFD Sender: No OFD packet to send [06:43:10]OFD Sender: No OFD packet to send [06:43:15]OFD Sender: No OFD packet to send [06:43:20]OFD Sender: No OFD packet to send [06:43:25]OFD Sender: No OFD packet to send [06:43:30]OFD Sender: No OFD packet to send [06:43:35]OFD Sender: No OFD packet to send [06:43:40]OFD Sender: No OFD packet to send [06:43:45]OFD Sender: No OFD packet to send [06:43:50]OFD Sender: No OFD packet to send [06:43:55]OFD Sender: No OFD packet to send [06:44:00]OFD Sender: No OFD packet to send [06:44:05]OFD Sender: No OFD packet to send [06:44:10]OFD Sender: No OFD packet to send [06:44:15]OFD Sender: No OFD packet to send [06:44:20]OFD Sender: No OFD packet to send [06:44:25]OFD Sender: No OFD packet to send [06:44:30]OFD Sender: No OFD packet to send [06:44:35]OFD Sender: No OFD packet to send [06:44:40]OFD Sender: No OFD packet to send [06:44:45]OFD Sender: No OFD packet to send [06:44:50]OFD Sender: No OFD packet to send [06:44:55]OFD Sender: No OFD packet to send [06:45:00]OFD Sender: No OFD packet to send [06:45:05]OFD Sender: No OFD packet to send [06:45:10]OFD Sender: No OFD packet to send [06:45:15]OFD Sender: No OFD packet to send [06:45:20]OFD Sender: No OFD packet to send [06:45:25]OFD Sender: No OFD packet to send [06:45:30]OFD Sender: No OFD packet to send [06:45:35]OFD Sender: No OFD packet to send [06:45:40]OFD Sender: No OFD packet to send [06:45:45]OFD Sender: No OFD packet to send [06:45:50]OFD Sender: No OFD packet to send [06:45:55]OFD Sender: No OFD packet to send [06:46:00]OFD Sender: No OFD packet to send [06:46:05]OFD Sender: No OFD packet to send [06:46:10]OFD Sender: No OFD packet to send [06:46:15]OFD Sender: No OFD packet to send [06:46:20]OFD Sender: No OFD packet to send [06:46:25]OFD Sender: No OFD packet to send [06:46:30]OFD Sender: No OFD packet to send [06:46:35]OFD Sender: No OFD packet to send [06:46:40]OFD Sender: No OFD packet to send [06:46:45]OFD Sender: No OFD packet to send [06:46:50]OFD Sender: No OFD packet to send [06:46:55]OFD Sender: No OFD packet to send [06:47:00]OFD Sender: No OFD packet to send [06:47:05]OFD Sender: No OFD packet to send [06:47:10]OFD Sender: No OFD packet to send [06:47:15]OFD Sender: No OFD packet to send [06:47:20]OFD Sender: No OFD packet to send [06:47:25]OFD Sender: No OFD packet to send [06:47:30]OFD Sender: No OFD packet to send [06:47:35]OFD Sender: No OFD packet to send [06:47:40]OFD Sender: No OFD packet to send [06:47:45]OFD Sender: No OFD packet to send [06:47:50]OFD Sender: No OFD packet to send [06:47:55]OFD Sender: No OFD packet to send [06:48:00]OFD Sender: No OFD packet to send [06:48:05]OFD Sender: No OFD packet to send [06:48:10]OFD Sender: No OFD packet to send [06:48:15]OFD Sender: No OFD packet to send [06:48:20]OFD Sender: No OFD packet to send [06:48:25]OFD Sender: No OFD packet to send [06:48:30]OFD Sender: No OFD packet to send [06:48:35]OFD Sender: No OFD packet to send [06:48:40]OFD Sender: No OFD packet to send [06:48:45]OFD Sender: No OFD packet to send [06:48:50]OFD Sender: No OFD packet to send [06:48:55]OFD Sender: No OFD packet to send [06:49:00]OFD Sender: No OFD packet to send [06:49:05]OFD Sender: No OFD packet to send [06:49:10]OFD Sender: No OFD packet to send [06:49:15]OFD Sender: No OFD packet to send [06:49:20]OFD Sender: No OFD packet to send [06:49:25]OFD Sender: No OFD packet to send [06:49:30]OFD Sender: No OFD packet to send [06:49:35]OFD Sender: No OFD packet to send [06:49:40]OFD Sender: No OFD packet to send [06:49:45]OFD Sender: No OFD packet to send [06:49:50]OFD Sender: No OFD packet to send [06:49:55]OFD Sender: No OFD packet to send [06:50:00]OFD Sender: No OFD packet to send [06:50:05]OFD Sender: No OFD packet to send [06:50:10]OFD Sender: No OFD packet to send [06:50:15]OFD Sender: No OFD packet to send [06:50:20]OFD Sender: No OFD packet to send [06:50:25]OFD Sender: No OFD packet to send [06:50:30]OFD Sender: No OFD packet to send [06:50:35]OFD Sender: No OFD packet to send [06:50:40]OFD Sender: No OFD packet to send [06:50:45]OFD Sender: No OFD packet to send [06:50:50]OFD Sender: No OFD packet to send [06:50:55]OFD Sender: No OFD packet to send [06:51:00]OFD Sender: No OFD packet to send [06:51:05]OFD Sender: No OFD packet to send [06:51:10]OFD Sender: No OFD packet to send [06:51:15]OFD Sender: No OFD packet to send [06:51:20]OFD Sender: No OFD packet to send [06:51:25]OFD Sender: No OFD packet to send [06:51:30]OFD Sender: No OFD packet to send [06:51:35]OFD Sender: No OFD packet to send [06:51:40]OFD Sender: No OFD packet to send [06:51:45]OFD Sender: No OFD packet to send [06:51:50]OFD Sender: No OFD packet to send [06:51:55]OFD Sender: No OFD packet to send [06:52:00]OFD Sender: No OFD packet to send [06:52:05]OFD Sender: No OFD packet to send [06:52:10]OFD Sender: No OFD packet to send [06:52:15]OFD Sender: No OFD packet to send [06:52:20]OFD Sender: No OFD packet to send [06:52:25]OFD Sender: No OFD packet to send [06:52:30]OFD Sender: No OFD packet to send [06:52:35]OFD Sender: No OFD packet to send [06:52:40]OFD Sender: No OFD packet to send [06:52:45]OFD Sender: No OFD packet to send [06:52:50]OFD Sender: No OFD packet to send [06:52:55]OFD Sender: No OFD packet to send [06:53:00]OFD Sender: No OFD packet to send [06:53:05]OFD Sender: No OFD packet to send [06:53:10]OFD Sender: No OFD packet to send [06:53:15]OFD Sender: No OFD packet to send [06:53:20]OFD Sender: No OFD packet to send [06:53:25]OFD Sender: No OFD packet to send [06:53:30]OFD Sender: No OFD packet to send [06:53:35]OFD Sender: No OFD packet to send [06:53:40]OFD Sender: No OFD packet to send [06:53:45]OFD Sender: No OFD packet to send [06:53:50]OFD Sender: No OFD packet to send [06:53:55]OFD Sender: No OFD packet to send [06:54:00]OFD Sender: No OFD packet to send [06:54:05]OFD Sender: No OFD packet to send [06:54:10]OFD Sender: No OFD packet to send [06:54:15]OFD Sender: No OFD packet to send [06:54:20]OFD Sender: No OFD packet to send [06:54:25]OFD Sender: No OFD packet to send [06:54:30]OFD Sender: No OFD packet to send [06:54:35]OFD Sender: No OFD packet to send [06:54:40]OFD Sender: No OFD packet to send [06:54:43]accept exits with 9 [06:54:43]New connection [06:54:43]New thread 3066858852 created [06:54:43]Thread 3066715492 joined [06:54:43]Waiting for new connection... [06:54:43] Sock 9.Parse request [06:54:43]Sock 9.Check first char [06:54:43]Sock 9.First char is OK [06:54:43]request: POST /json_proto HTTP/1.0 [06:54:43]Method: POST [06:54:43]URL: /json_proto [06:54:43]Method is POST - this is cgi request [06:54:43]url: /json_proto [06:54:43]query_string will be loaded in cgi processing [06:54:43]execute_cgi json_proto POST (null) [06:54:43]execute_cgi path=json_proto method=POST [06:54:43]POST find Content-Length [06:54:43]Host: 172.17.38.133:8080 [06:54:43]Content-Length: 1162 [06:54:43]Content-Type: application/json [06:54:43] [06:54:43]POST finish read [06:54:43]Found Content-Length = 1162 [06:54: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 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)673482\u000A21.06.2024 06:31\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: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30101762\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:54:43]execute_script... [06:54: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 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)673482\u000A21.06.2024 06:31\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: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30101762\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:54:43]POST & json_proto [06:54:43]process_json_proto [06:54:43]json parsed OK: [06:54:43]protocol is kg_v1.0 [06:54:43]action value=print_text [06:54:43]process_action print_text [06:54:43]cmd_print_text [06:54:43]ExternCall_PrintAddStr [06:54:43]wPrintStart [06:54:43]Write to MH i2c: 01 00 00 93 0F A2 [06:54:43]Write i2c OK [06:54:43]MH_I2C_Read... [06:54:43]Read from MH i2c: 01 [06:54:43]MH_I2C_Read... [06:54:43]Read from MH i2c: 01 07 00 [06:54:43]MH_I2C_Read... [06:54:43]Read from MH i2c: 01 07 00 93 0F 00 00 00 00 00 FF 0F B7 [06:54:43]RasterBufferAndPrint [06:54:43]line *****ТОВАРНЫЙ ЧЕК***** [06:54:43]line АЗС 120 [06:54:43]line Партнер нефть [06:54:43]line 02508201610067 [06:54:43]line Кассир : Асанбаев Н. [06:54:43]line Счет N : (1)673482 [06:54:43]line 21.06.2024 06:31 [06:54:43]line ПРОДАЖА [06:54:43]line ТРК (МРК, ГНК): 21 [06:54:43]line Вид ГСМ : 2710194210 [06:54:43]line ДТ(л)-К-5 [06:54:43]line 20.000 x 72.90 [06:54:43]line ИТОГ: 1458.00 [06:54:43]line Тип оплаты: Талоны: ТК ГПНА Online [06:54:43]line 30101762 [06:54:43]line ______________________ [06:54:43]line (подпись) [06:54:43]written 0, free lines is 4095 [06:54:43]Write to MH i2c: 01 00 00 A7 0F B6 [06:54:43]Write i2c OK [06:54:43]MH_I2C_Read... [06:54:43]Read from MH i2c: 01 [06:54:43]MH_I2C_Read... [06:54:43]Read from MH i2c: 01 07 00 [06:54:43]MH_I2C_Read... [06:54:43]Read from MH i2c: 01 07 00 A7 0F 00 00 00 00 00 0F 0E DA [06:54:43]RasterBufferAndPrint [06:54:43]line [06:54:43]line [06:54:43]line [06:54:43]line [06:54:43]line [06:54:43]written 0, free lines is 3600 [06:54:43]MH_Cut [06:54:43]Write to MH i2c: D1 01 00 AE 0F 01 8F [06:54:43]Write i2c OK [06:54:43]MH_I2C_Read... [06:54:43]Read from MH i2c: D1 [06:54:43]MH_I2C_Read... [06:54:43]Read from MH i2c: D1 01 00 [06:54:43]MH_I2C_Read... [06:54:43]Read from MH i2c: D1 01 00 AE 0F 00 8E [06:54:43]Write to MH i2c: 01 00 00 AF 0F BE [06:54:43]Write i2c OK [06:54:43]MH_I2C_Read... [06:54:44]*** Cut start [06:54:44]*** Partial cut [06:54:44]*** CUTSNS_PIN = 1 [06:54:44]*** CUTSNS_PIN = 0 [06:54:44]*** Brake cut motor [06:54:44]Read from MH i2c: 01 [06:54:44]MH_I2C_Read... [06:54:44]Read from MH i2c: 01 07 00 [06:54:44]MH_I2C_Read... [06:54:44]*** Stop cut motor [06:54:44]*** Cut end [06:54:44]Read from MH i2c: 01 07 00 AF 0F 00 00 00 00 00 FF 0F D3 [06:54:44]process_action print_text done [06:54:44]requested_data is exist [06:54:44]produce_requested_data [06:54:44]requested_item fm.sn is exist - process it [06:54:44]wFMCommunicate request_size=4 [06:54:44]MH_SAM_APDU [06:54:44]CAPDU: 80 11 00 00 [06:54:44]Write to MH i2c: E2 08 00 B0 0F 80 11 00 00 00 00 00 00 39 [06:54:44]Write i2c OK [06:54:44]MH_I2C_Read... [06:54:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:54:44]Read from MH i2c: E2 [06:54:44]MH_I2C_Read... [06:54:44]Read from MH i2c: E2 17 00 [06:54:44]MH_I2C_Read... [06:54:44]Read from MH i2c: E2 17 00 B0 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 8C [06:54:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [06:54:44]wFMCommunicate OK [06:54:44]requested_item fd.num is exist - process it [06:54:44]SAM_PROTO_GetFieldsCounters [06:54:44]wFMCommunicate request_size=4 [06:54:44]MH_SAM_APDU [06:54:44]CAPDU: 80 13 00 00 [06:54:44]Write to MH i2c: E2 08 00 B1 0F 80 13 00 00 00 00 00 00 3C [06:54:44]Write i2c OK [06:54:44]MH_I2C_Read... [06:54:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:54:45]Read from MH i2c: E2 [06:54:45]MH_I2C_Read... [06:54:45]Read from MH i2c: E2 62 00 [06:54:45]MH_I2C_Read... [06:54:45]Read from MH i2c: E2 62 00 B1 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 9C 96 01 00 0E 04 04 00 63 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 27 [06:54: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 9C 96 01 00 0E 04 04 00 63 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:54:45]wFMCommunicate OK [06:54:45]SAM_PROTO_GetFieldsCounters done [06:54:45]requested_item shift.num is exist - process it [06:54:45]requested_item shift.opened is exist - process it [06:54:45]req_shift_opened [06:54:45]FM_GetShiftState [06:54:45]SAM_PROTO_GetShiftState [06:54:45]wFMCommunicate request_size=4 [06:54:45]MH_SAM_APDU [06:54:45]CAPDU: 80 13 01 00 [06:54:45]Write to MH i2c: E2 08 00 B2 0F 80 13 01 00 00 00 00 00 3E [06:54:45]Write i2c OK [06:54:45]MH_I2C_Read... [06:54:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:54:45]Read from MH i2c: E2 [06:54:45]MH_I2C_Read... [06:54:45]Read from MH i2c: E2 0E 00 [06:54:45]MH_I2C_Read... [06:54:45]Read from MH i2c: E2 0E 00 B2 0F 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 51 [06:54:45]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [06:54:45]wFMCommunicate OK [06:54:45]SAM_PROTO_GetShiftState done [06:54:45]FM_GetShiftState done [06:54:45]req_shift_opened done [06:54:45]requested_item shift.open_date is exist - process it [06:54:45]req_shift_open_date [06:54:45]req_shift_open_date done [06:54:45]produce_requested_data done [06:54:45]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104092,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [06:54:45]process_action_free print_text [06:54:45]json_value_free [06:54:45]json_value_free done [06:54:45]process_json_proto returns [06:54:45]Send response to host [06:54:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104092,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [06:54:45]free response buf [06:54:45]execute_script done [06:54:45]execute_script returns [06:54:45]free content buf [06:54:45]Sock 9.Close socket [06:54:45]Sock 9.Thread stoped [06:54:45]OFD Sender: No OFD packet to send [06:54:50]OFD Sender: No OFD packet to send [06:54:55]OFD Sender: No OFD packet to send [06:55:00]OFD Sender: No OFD packet to send [06:55:05]OFD Sender: No OFD packet to send [06:55:10]OFD Sender: No OFD packet to send [06:55:15]OFD Sender: No OFD packet to send [06:55:20]OFD Sender: No OFD packet to send [06:55:25]OFD Sender: No OFD packet to send [06:55:30]OFD Sender: No OFD packet to send [06:55:35]OFD Sender: No OFD packet to send [06:55:40]OFD Sender: No OFD packet to send [06:55:45]OFD Sender: No OFD packet to send [06:55:50]OFD Sender: No OFD packet to send [06:55:55]OFD Sender: No OFD packet to send [06:56:00]OFD Sender: No OFD packet to send [06:56:05]OFD Sender: No OFD packet to send [06:56:10]OFD Sender: No OFD packet to send [06:56:15]OFD Sender: No OFD packet to send [06:56:20]OFD Sender: No OFD packet to send [06:56:25]OFD Sender: No OFD packet to send [06:56:30]OFD Sender: No OFD packet to send [06:56:35]OFD Sender: No OFD packet to send [06:56:40]OFD Sender: No OFD packet to send [06:56:45]OFD Sender: No OFD packet to send [06:56:50]OFD Sender: No OFD packet to send [06:56:55]OFD Sender: No OFD packet to send [06:57:00]OFD Sender: No OFD packet to send [06:57:05]OFD Sender: No OFD packet to send [06:57:10]OFD Sender: No OFD packet to send [06:57:15]OFD Sender: No OFD packet to send [06:57:20]OFD Sender: No OFD packet to send [06:57:26]OFD Sender: No OFD packet to send [06:57:31]OFD Sender: No OFD packet to send [06:57:36]OFD Sender: No OFD packet to send [06:57:41]OFD Sender: No OFD packet to send [06:57:46]OFD Sender: No OFD packet to send [06:57:51]OFD Sender: No OFD packet to send [06:57:56]OFD Sender: No OFD packet to send [06:58:01]OFD Sender: No OFD packet to send [06:58:06]OFD Sender: No OFD packet to send [06:58:11]OFD Sender: No OFD packet to send [06:58:16]OFD Sender: No OFD packet to send [06:58:21]OFD Sender: No OFD packet to send [06:58:26]OFD Sender: No OFD packet to send [06:58:31]OFD Sender: No OFD packet to send [06:58:36]OFD Sender: No OFD packet to send [06:58:41]OFD Sender: No OFD packet to send [06:58:46]OFD Sender: No OFD packet to send [06:58:51]OFD Sender: No OFD packet to send [06:58:56]OFD Sender: No OFD packet to send [06:59:01]OFD Sender: No OFD packet to send [06:59:06]OFD Sender: No OFD packet to send [06:59:11]OFD Sender: No OFD packet to send [06:59:16]OFD Sender: No OFD packet to send [06:59:21]OFD Sender: No OFD packet to send [06:59:26]OFD Sender: No OFD packet to send [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:40]recv_with_timeout no data received [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:06]OFD Sender: No OFD packet to send [07:12:11]OFD Sender: No OFD packet to send [07:12:16]OFD Sender: No OFD packet to send [07:12:21]OFD Sender: No OFD packet to send [07:12:26]OFD Sender: No OFD packet to send [07:12:31]OFD Sender: No OFD packet to send [07:12:36]OFD Sender: No OFD packet to send [07:12:41]OFD Sender: No OFD packet to send [07:12:46]OFD Sender: No OFD packet to send [07:12:51]OFD Sender: No OFD packet to send [07:12:56]OFD Sender: No OFD packet to send [07:13:01]OFD Sender: No OFD packet to send [07:13:06]OFD Sender: No OFD packet to send [07:13:11]OFD Sender: No OFD packet to send [07:13:16]OFD Sender: No OFD packet to send [07:13:21]OFD Sender: No OFD packet to send [07:13:26]OFD Sender: No OFD packet to send [07:13:31]OFD Sender: No OFD packet to send [07:13:36]OFD Sender: No OFD packet to send [07:13:41]OFD Sender: No OFD packet to send [07:13:46]OFD Sender: No OFD packet to send [07:13:51]OFD Sender: No OFD packet to send [07:13:56]OFD Sender: No OFD packet to send [07:14:01]OFD Sender: No OFD packet to send [07:14:06]OFD Sender: No OFD packet to send [07:14:11]OFD Sender: No OFD packet to send [07:14:16]OFD Sender: No OFD packet to send [07:14:21]OFD Sender: No OFD packet to send [07:14:26]OFD Sender: No OFD packet to send [07:14:31]OFD Sender: No OFD packet to send [07:14:36]OFD Sender: No OFD packet to send [07:14:41]OFD Sender: No OFD packet to send [07:14:46]OFD Sender: No OFD packet to send [07:14:51]OFD Sender: No OFD packet to send [07:14:56]OFD Sender: No OFD packet to send [07:15:01]OFD Sender: No OFD packet to send [07:15:06]OFD Sender: No OFD packet to send [07:15:11]OFD Sender: No OFD packet to send [07:15:16]OFD Sender: No OFD packet to send [07:15:21]OFD Sender: No OFD packet to send [07:15:26]OFD Sender: No OFD packet to send [07:15:31]OFD Sender: No OFD packet to send [07:15:36]OFD Sender: No OFD packet to send [07:15:41]OFD Sender: No OFD packet to send [07:15:46]OFD Sender: No OFD packet to send [07:15:51]OFD Sender: No OFD packet to send [07:15:56]OFD Sender: No OFD packet to send [07:16:01]OFD Sender: No OFD packet to send [07:16:06]OFD Sender: No OFD packet to send [07:16:11]OFD Sender: No OFD packet to send [07:16:16]OFD Sender: No OFD packet to send [07:16:21]OFD Sender: No OFD packet to send [07:16:26]OFD Sender: No OFD packet to send [07:16:31]OFD Sender: No OFD packet to send [07:16:36]OFD Sender: No OFD packet to send [07:16:41]OFD Sender: No OFD packet to send [07:16:46]OFD Sender: No OFD packet to send [07:16:51]OFD Sender: No OFD packet to send [07:16:56]OFD Sender: No OFD packet to send [07:17:01]OFD Sender: No OFD packet to send [07:17:06]OFD Sender: No OFD packet to send [07:17:11]OFD Sender: No OFD packet to send [07:17:16]OFD Sender: No OFD packet to send [07:17:21]OFD Sender: No OFD packet to send [07:17:26]OFD Sender: No OFD packet to send [07:17:31]OFD Sender: No OFD packet to send [07:17:36]OFD Sender: No OFD packet to send [07:17:41]OFD Sender: No OFD packet to send [07:17:46]OFD Sender: No OFD packet to send [07:17:51]OFD Sender: No OFD packet to send [07:17:56]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:27:58]accept exits with 7 [07:27:58]New connection [07:27:58]New thread 3066715492 created [07:27:58]Thread 3066858852 joined [07:27:58]Waiting for new connection... [07:27:58] Sock 7.Parse request [07:27:58]Sock 7.Check first char [07:27:58]Sock 7.First char is OK [07:27:58]request: POST /json_proto HTTP/1.0 [07:27:58]Method: POST [07:27:58]URL: /json_proto [07:27:58]Method is POST - this is cgi request [07:27:58]url: /json_proto [07:27:58]query_string will be loaded in cgi processing [07:27:58]execute_cgi json_proto POST (null) [07:27:58]execute_cgi path=json_proto method=POST [07:27:58]POST find Content-Length [07:27:58]Host: 172.17.38.133:8080 [07:27:58]Content-Length: 687 [07:27:58]Content-Type: application/json [07:27:58] [07:27:58]POST finish read [07:27:58]Found Content-Length = 687 [07:27:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673483", "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:27:58]execute_script... [07:27:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673483", "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:27:58]POST & json_proto [07:27:58]process_json_proto [07:27:58]json parsed OK: [07:27:58]protocol is kg_v1.0 [07:27:58]action value=close_receipt [07:27:58]process_action close_receipt [07:27:58]cmd_close_receipt [07:27:58]MH_GetDate [07:27:58]Write to MH i2c: F0 00 00 B3 0F B1 [07:27:58]Write i2c OK [07:27:58]MH_I2C_Read... [07:27:58]Read from MH i2c: F0 [07:27:58]MH_I2C_Read... [07:27:58]Read from MH i2c: F0 09 00 [07:27:58]MH_I2C_Read... [07:27:58]Read from MH i2c: F0 09 00 B3 0F 00 81 2B 75 66 BD 8F 7C 64 6D [07:27:58]GetLastDocTimeStamp 1718951620 [07:27:58]current date 1718954881 [07:27:58]FM_GetShiftState [07:27:58]SAM_PROTO_GetShiftState [07:27:58]wFMCommunicate request_size=4 [07:27:58]MH_SAM_APDU [07:27:58]CAPDU: 80 13 01 00 [07:27:58]Write to MH i2c: E2 08 00 B4 0F 80 13 01 00 00 00 00 00 40 [07:27:58]Write i2c OK [07:27:58]MH_I2C_Read... [07:27:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:27:58]Read from MH i2c: E2 [07:27:58]MH_I2C_Read... [07:27:58]Read from MH i2c: E2 0E 00 [07:27:58]MH_I2C_Read... [07:27:58]Read from MH i2c: E2 0E 00 B4 0F 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 53 [07:27:58]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [07:27:58]wFMCommunicate OK [07:27:58]SAM_PROTO_GetShiftState done [07:27:58]FM_GetShiftState done [07:27:58]opened in 1718929509 [07:27:58]opened+sec_in_day 1719015909 [07:27:58]quantity*price = 100018 [07:27:58]sum+1 = 100020 [07:27: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 СНО: Общий режим Чек 16 21.06.2024 07:28 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104093 ФПД: 266422834603718 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T072801&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104093&fm=266422834603718&tin=02508201610067®Number=0000000000092785&sum=100000 [07:27:59]StoreToDocumentArchive [07:27:59]shift 355 fd 104093 [07:27:59]save to /storage/0355/doc_00104093 [07:27:59]save last doc name /storage/0355/doc_00104093 to /storage/kkm_last_doc_name [07:27:59]save OK [07:27:59]Clear old archive folders... [07:27:59]ProcessDocumentItem done err = 0, tmpTLVsize=252 [07:27:59]tlvbuf is 01118970 [07:27:59]SAM_PROTO_ClearQueue [07:27:59]wFMCommunicate request_size=4 [07:27:59]MH_SAM_APDU [07:27:59]CAPDU: 80 09 00 00 [07:27:59]Write to MH i2c: E2 08 00 C1 0F 80 09 00 00 00 00 00 00 42 [07:27:59]Write i2c OK [07:27:59]MH_I2C_Read... [07:27:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:27:59]Read from MH i2c: E2 [07:27:59]MH_I2C_Read... [07:27:59]Read from MH i2c: E2 03 00 [07:27:59]MH_I2C_Read... [07:27:59]Read from MH i2c: E2 03 00 C1 0F 00 90 00 44 [07:27:59]RAPDU: 90 00 [07:27:59]wFMCommunicate OK [07:27:59]SAM_PROTO_ClearQueue done [07:27:59]KKMCreateOFDPacket [07:27:59]OFDProtocolAddRootSTLVToBuf [07:27:59]FM_MakeSignedData [07:27:59]FM_MakeSignedData [07:27:59]SAM_PROTO_SignData [07:27:59]wFMCommunicate request_size=4 [07:27:59]MH_SAM_APDU [07:27:59]CAPDU: 80 0D 01 02 [07:27:59]Write to MH i2c: E2 08 00 C2 0F 80 0D 01 02 00 00 00 00 4A [07:27:59]Write i2c OK [07:27:59]MH_I2C_Read... [07:27:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:27:59]Read from MH i2c: E2 [07:27:59]MH_I2C_Read... [07:27:59]Read from MH i2c: E2 03 00 [07:27:59]MH_I2C_Read... [07:27:59]Read from MH i2c: E2 03 00 C2 0F 00 90 00 45 [07:27:59]RAPDU: 90 00 [07:27:59]wFMCommunicate OK [07:27:59]wFMCommunicate request_size=255 [07:27:59]MH_SAM_APDU [07:27: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 10 00 00 00 F4 03 04 00 81 2B 75 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 9D 96 01 00 35 04 06 00 [07:27:59]Write to MH i2c: E2 02 01 C3 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 10 00 00 00 F4 03 04 00 81 2B 75 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 9D 96 01 00 35 04 06 00 00 00 CD [07:27:59]Write i2c OK [07:27:59]MH_I2C_Read... [07:27:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:27:59]Read from MH i2c: E2 [07:27:59]MH_I2C_Read... [07:27:59]Read from MH i2c: E2 03 00 [07:27:59]MH_I2C_Read... [07:27:59]Read from MH i2c: E2 03 00 C3 0F 00 90 00 46 [07:27:59]RAPDU: 90 00 [07:27:59]wFMCommunicate OK [07:27:59]wFMCommunicate request_size=11 [07:27:59]MH_SAM_APDU [07:27:59]CAPDU: 80 0D 02 02 06 F2 4F 66 6A A6 C6 [07:27:59]Write to MH i2c: E2 0E 00 C4 0F 80 0D 02 02 06 00 F2 4F 66 6A A6 C6 00 00 D6 [07:27:59]Write i2c OK [07:27:59]MH_I2C_Read... [07:27:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:27:59]Read from MH i2c: E2 [07:27:59]MH_I2C_Read... [07:27:59]Read from MH i2c: E2 03 00 [07:27:59]MH_I2C_Read... [07:27:59]Read from MH i2c: E2 03 00 C4 0F 00 90 00 47 [07:27:59]RAPDU: 90 00 [07:27:59]wFMCommunicate OK [07:27:59]wFMCommunicate request_size=4 [07:27:59]MH_SAM_APDU [07:27:59]CAPDU: 80 0D 03 02 [07:27:59]Write to MH i2c: E2 08 00 C5 0F 80 0D 03 02 00 00 00 00 4F [07:27:59]Write i2c OK [07:27:59]MH_I2C_Read... [07:27:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:27:59]Read from MH i2c: E2 [07:27:59]MH_I2C_Read... [07:27:59]Read from MH i2c: E2 0B 00 [07:27:59]MH_I2C_Read... [07:27:59]Read from MH i2c: E2 0B 00 C5 0F 00 62 54 14 76 18 F3 8A 43 90 00 68 [07:27:59]RAPDU: 62 54 14 76 18 F3 8A 43 90 00 [07:27:59]wFMCommunicate OK [07:27:59]SAM_PROTO_SignData done [07:27:59]FM_MakeSignedData done [07:27:59]CreateOFDProtocolMessage [07:27:59]wFMCommunicate request_size=4 [07:27:59]MH_SAM_APDU [07:27:59]CAPDU: 80 11 00 00 [07:27:59]Write to MH i2c: E2 08 00 C6 0F 80 11 00 00 00 00 00 00 4F [07:27:59]Write i2c OK [07:27:59]MH_I2C_Read... [07:27:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:27:59]Read from MH i2c: E2 [07:27:59]MH_I2C_Read... [07:27:59]Read from MH i2c: E2 17 00 [07:27:59]MH_I2C_Read... [07:27:59]Read from MH i2c: E2 17 00 C6 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 A2 [07:27:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [07:27:59]wFMCommunicate OK [07:27:59]CreateOFDProtocolMessage done [07:27:59]OFDSenderStorePacket 104093 [07:27:59]StoreOFDPacket docnum=104093 [07:27: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 CA F1 08 01 8C 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 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 10 00 00 00 F4 03 04 00 81 2B 75 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 9D 96 01 00 35 04 06 00 F2 4F 66 6A A6 C6 62 54 14 76 18 F3 8A 43 [07:27:59]CheckFolder [07:27:59]dirname=/storage/ofd_packets [07:27:59]CheckFolder done [07:27:59]ProducePacketName [07:27:59]name=ofd_packets/00104093 [07:27:59]NVStorageSaveData ofd_packets/00104093 [07:27:59]File name is /storage/ofd_packets/00104093 [07:27:59]Write 302 bytes [07:27:59]NVStorageSaveData done [07:27:59]OFDSenderStorePacket done [07:27:59]KKMCreateOFDPacket done [07:27:59]NVStorageSaveData kkm_last_timestamp [07:27:59]File name is /storage/kkm_last_timestamp [07:27:59]Write 4 bytes [07:27:59]NVStorageSaveData done [07:27:59]ExternCall_PrintAddStr [07:27:59]wPrintStart [07:27:59]Write to MH i2c: 01 00 00 C7 0F D6 [07:27:59]Write i2c OK [07:27:59]MH_I2C_Read... [07:27:59]Read from MH i2c: 01 [07:27:59]MH_I2C_Read... [07:27:59]Read from MH i2c: 01 07 00 [07:27:59]MH_I2C_Read... [07:27:59]Read from MH i2c: 01 07 00 C7 0F 00 00 00 00 00 FF 0F EB [07:27:59]RasterBufferAndPrint [07:27:59]line Счет N : (1)673483 [07:27:59]line ИНН: 02508201610067 [07:27:59]line Контрольно-Кассовый Чек [07:27:59]line ПРОДАЖА [07:27:59]line ТРК (МРК, ГНК) : 21 [07:27:59]line Товар: 2710194210 [07:27:59]line ДТ(л)-К-5 [07:27:59]line 13.720 * 72.90 [07:27:59]line = 1000.19 [07:27:59]line НДС 12% НСП 1% [07:27:59]line > о реализуемом товаре [07:27:59]line ОКРУГЛЕНИЕ: -0.19 [07:27:59]line ИТОГО: 1000.00 [07:27:59]line Внесено: 1000.00 [07:27:59]line СДАЧА: 0.00 [07:27:59]line НСП 1% : 8.85 [07:27:59]line НДС 12% : 106.21 [07:27:59]line Наличными: 1000.00 [07:27:59]line Безнал.: 0.00 [07:27:59]line Место: АЗС № 120 "Партнер Нефть" [07:27:59]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [07:27:59]line СНО: Общий режим [07:27:59]line Чек 16 21.06.2024 07:28 [07:27:59]line Смена: 355 ФФД: 1.0 [07:27:59]line ЗНМ: 0300000164 [07:27:59]line РНМ: 0000000000092785 [07:27:59]line Версия ККМ: 001 [07:27:59]line ФМ: 0000000000875093 [07:27:59]line ФД: 104093 [07:28:00]line ФПД: 266422834603718 [07:28:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T072801&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104093&fm=266422834603718&tin=02508201610067®Number=0000000000092785&sum=100000 [07:28:00]OFD Sender: Processing packet 104093 [packets to send 17, broken 16] [07:28:00]ProducePacketName [07:28:00]name=ofd_packets/00104093 [07:28:00]OFD Sender: To server: pG, [07:28:00]CommunicateWithHost lk.salyk.kg:30040 [07:28:00]ConnectInit lk.salyk.kg [07:28:00]written 0, free lines is 4095 [07:28:00]Connected sock=11 [07:28: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 CA F1 08 01 8C 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 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 10 00 00 00 F4 03 04 00 81 2B 75 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 9D 96 01 00 35 04 06 00 F2 4F 66 6A A6 C6 62 54 14 76 18 F3 8A 43 [07:28: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 48 AA 47 00 6E 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 9D 96 01 00 F4 03 04 00 04 D2 74 66 B6 04 01 00 00 0D 71 7C A4 D5 34 1A 2E [07:28:00]CommunicateWithHost err = 0 [07:28:00]CheckOFDResponse [07:28:00]1017 (14) - 77093643461234 [07:28:00]1041 (16) - 0000000000875093 [07:28:00]1040 (4) - 104093 [07:28:00]1012 (4) - 21.06.2024 01:06 [07:28:00]1206 (1) - 0 [07:28:00]OFD Sender: Remove packet 104093 [07:28:00]ProducePacketName [07:28:00]name=ofd_packets/00104093 [07:28:00]NVStorageDeleteData [07:28:00]Write to MH i2c: 01 00 00 F2 0F 01 [07:28:00]Write i2c OK [07:28:00]MH_I2C_Read... [07:28:00]Read from MH i2c: 01 [07:28:00]MH_I2C_Read... [07:28:00]Read from MH i2c: 01 07 00 [07:28:00]MH_I2C_Read... [07:28:00]Read from MH i2c: 01 07 00 F2 0F 00 00 00 00 00 E6 0C FA [07:28:00]RasterBufferAndPrint [07:28:00]line [07:28:00]line [07:28:00]line [07:28:00]line [07:28:00]line [07:28:00]written 0, free lines is 3308 [07:28:00]MH_Cut [07:28:00]Write to MH i2c: D1 01 00 F9 0F 01 DA [07:28:00]Write i2c OK [07:28:00]MH_I2C_Read... [07:28:00]Read from MH i2c: D1 [07:28:00]MH_I2C_Read... [07:28:00]Read from MH i2c: D1 01 00 [07:28:00]MH_I2C_Read... [07:28:00]Read from MH i2c: D1 01 00 F9 0F 00 D9 [07:28:00]Write to MH i2c: 01 00 00 FA 0F 09 [07:28:00]Write i2c OK [07:28:00]MH_I2C_Read... [07:28:01]OFD Sender: No OFD packet to send [07:28:01]*** Cut start [07:28:01]*** Partial cut [07:28:01]*** CUTSNS_PIN = 1 [07:28:01]*** CUTSNS_PIN = 0 [07:28:01]*** Brake cut motor [07:28:01]Read from MH i2c: 01 [07:28:01]MH_I2C_Read... [07:28:01]*** Stop cut motor [07:28:01]*** Cut end [07:28:01]Read from MH i2c: 01 07 00 [07:28:01]MH_I2C_Read... [07:28:01]Read from MH i2c: 01 07 00 FA 0F 00 00 00 00 00 FF 0F 1E [07:28:01]process_action close_receipt done [07:28:01]requested_data is exist [07:28:01]produce_requested_data [07:28:01]requested_item fm.sn is exist - process it [07:28:01]wFMCommunicate request_size=4 [07:28:01]MH_SAM_APDU [07:28:01]CAPDU: 80 11 00 00 [07:28:01]Write to MH i2c: E2 08 00 FB 0F 80 11 00 00 00 00 00 00 84 [07:28:01]Write i2c OK [07:28:01]MH_I2C_Read... [07:28:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:28:02]Read from MH i2c: E2 [07:28:02]MH_I2C_Read... [07:28:02]Read from MH i2c: E2 17 00 [07:28:02]MH_I2C_Read... [07:28:02]Read from MH i2c: E2 17 00 FB 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 D7 [07:28:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [07:28:02]wFMCommunicate OK [07:28:02]requested_item fd.num is exist - process it [07:28:02]SAM_PROTO_GetFieldsCounters [07:28:02]wFMCommunicate request_size=4 [07:28:02]MH_SAM_APDU [07:28:02]CAPDU: 80 13 00 00 [07:28:02]Write to MH i2c: E2 08 00 FC 0F 80 13 00 00 00 00 00 00 87 [07:28:02]Write i2c OK [07:28:02]MH_I2C_Read... [07:28:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:28:02]Read from MH i2c: E2 [07:28:02]MH_I2C_Read... [07:28:02]Read from MH i2c: E2 62 00 [07:28:02]MH_I2C_Read... [07:28:02]Read from MH i2c: E2 62 00 FC 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 9D 96 01 00 0E 04 04 00 63 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 76 [07:28: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 9D 96 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:28:02]wFMCommunicate OK [07:28:02]SAM_PROTO_GetFieldsCounters done [07:28:02]requested_item shift.num is exist - process it [07:28:02]requested_item shift.opened is exist - process it [07:28:02]req_shift_opened [07:28:02]FM_GetShiftState [07:28:02]SAM_PROTO_GetShiftState [07:28:02]wFMCommunicate request_size=4 [07:28:02]MH_SAM_APDU [07:28:02]CAPDU: 80 13 01 00 [07:28:02]Write to MH i2c: E2 08 00 FD 0F 80 13 01 00 00 00 00 00 89 [07:28:02]Write i2c OK [07:28:02]MH_I2C_Read... [07:28:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:28:02]Read from MH i2c: E2 [07:28:02]MH_I2C_Read... [07:28:02]Read from MH i2c: E2 0E 00 [07:28:02]MH_I2C_Read... [07:28:02]Read from MH i2c: E2 0E 00 FD 0F 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 9C [07:28:02]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [07:28:02]wFMCommunicate OK [07:28:02]SAM_PROTO_GetShiftState done [07:28:02]FM_GetShiftState done [07:28:02]req_shift_opened done [07:28:02]requested_item shift.open_date is exist - process it [07:28:02]req_shift_open_date [07:28:02]req_shift_open_date done [07:28:02]produce_requested_data done [07:28:02]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104093,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [07:28:02]process_action_free close_receipt [07:28:02]json_value_free [07:28:02]json_value_free done [07:28:02]process_json_proto returns [07:28:02]Send response to host [07:28:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104093,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [07:28:02]free response buf [07:28:02]execute_script done [07:28:02]execute_script returns [07:28:02]free content buf [07:28:02]Sock 7.Close socket [07:28:02]Sock 7.Thread stoped [07:28:06]OFD Sender: No OFD packet to send [07:28:11]OFD Sender: No OFD packet to send [07:28:16]OFD Sender: No OFD packet to send [07:28:16]accept exits with 9 [07:28:16]New connection [07:28:16]New thread 3066858852 created [07:28:16]Thread 3066715492 joined [07:28:16]Waiting for new connection... [07:28:16] Sock 9.Parse request [07:28:16]Sock 9.Check first char [07:28:16]Sock 9.First char is OK [07:28:16]request: POST /json_proto HTTP/1.0 [07:28:16]Method: POST [07:28:16]URL: /json_proto [07:28:16]Method is POST - this is cgi request [07:28:16]url: /json_proto [07:28:16]query_string will be loaded in cgi processing [07:28:16]execute_cgi json_proto POST (null) [07:28:16]execute_cgi path=json_proto method=POST [07:28:16]POST find Content-Length [07:28:16]Host: 172.17.38.133:8080 [07:28:16]Content-Length: 677 [07:28:16]Content-Type: application/json [07:28:16] [07:28:16]POST finish read [07:28:16]Found Content-Length = 677 [07:28:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673484", "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" ] } } [07:28:16]execute_script... [07:28: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)673484", "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" ] } } [07:28:16]POST & json_proto [07:28:16]process_json_proto [07:28:16]json parsed OK: [07:28:16]protocol is kg_v1.0 [07:28:16]action value=close_receipt [07:28:16]process_action close_receipt [07:28:16]cmd_close_receipt [07:28:16]MH_GetDate [07:28:16]Write to MH i2c: F0 00 00 FE 0F FC [07:28:16]Write i2c OK [07:28:16]MH_I2C_Read... [07:28:16]Read from MH i2c: F0 [07:28:16]MH_I2C_Read... [07:28:16]Read from MH i2c: F0 09 00 [07:28:16]MH_I2C_Read... [07:28:16]Read from MH i2c: F0 09 00 FE 0F 00 93 2B 75 66 BD 8F 7C 64 CA [07:28:16]GetLastDocTimeStamp 1718954881 [07:28:16]current date 1718954899 [07:28:16]FM_GetShiftState [07:28:16]SAM_PROTO_GetShiftState [07:28:16]wFMCommunicate request_size=4 [07:28:16]MH_SAM_APDU [07:28:16]CAPDU: 80 13 01 00 [07:28:16]Write to MH i2c: E2 08 00 FF 0F 80 13 01 00 00 00 00 00 8B [07:28:16]Write i2c OK [07:28:16]MH_I2C_Read... [07:28:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:28:16]Read from MH i2c: E2 [07:28:16]MH_I2C_Read... [07:28:16]Read from MH i2c: E2 0E 00 [07:28:16]MH_I2C_Read... [07:28:16]Read from MH i2c: E2 0E 00 FF 0F 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 9E [07:28:16]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [07:28:16]wFMCommunicate OK [07:28:16]SAM_PROTO_GetShiftState done [07:28:16]FM_GetShiftState done [07:28:16]opened in 1718929509 [07:28:16]opened+sec_in_day 1719015909 [07:28:16]quantity*price = 60025 [07:28:16]sum+1 = 60027 [07:28:16]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 СНО: Общий режим Чек 17 21.06.2024 07:28 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104094 ФПД: 89247070707103 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T072819&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104094&fm=89247070707103&tin=02508201610067®Number=0000000000092785&sum=60000 [07:28:17]StoreToDocumentArchive [07:28:17]shift 355 fd 104094 [07:28:17]save to /storage/0355/doc_00104094 [07:28:17]save last doc name /storage/0355/doc_00104094 to /storage/kkm_last_doc_name [07:28:17]save OK [07:28:17]Clear old archive folders... [07:28:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:28:17]tlvbuf is 01119180 [07:28:17]SAM_PROTO_ClearQueue [07:28:17]wFMCommunicate request_size=4 [07:28:17]MH_SAM_APDU [07:28:17]CAPDU: 80 09 00 00 [07:28:17]Write to MH i2c: E2 08 00 0C 10 80 09 00 00 00 00 00 00 8E [07:28:17]Write i2c OK [07:28:17]MH_I2C_Read... [07:28:17]Read from MH i2c: E2 [07:28:17]MH_I2C_Read... [07:28:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:28:17]Read from MH i2c: E2 03 00 [07:28:17]MH_I2C_Read... [07:28:17]Read from MH i2c: E2 03 00 0C 10 00 90 00 90 [07:28:17]RAPDU: 90 00 [07:28:17]wFMCommunicate OK [07:28:17]SAM_PROTO_ClearQueue done [07:28:17]KKMCreateOFDPacket [07:28:17]OFDProtocolAddRootSTLVToBuf [07:28:17]FM_MakeSignedData [07:28:17]FM_MakeSignedData [07:28:17]SAM_PROTO_SignData [07:28:17]wFMCommunicate request_size=4 [07:28:17]MH_SAM_APDU [07:28:17]CAPDU: 80 0D 01 02 [07:28:17]Write to MH i2c: E2 08 00 0D 10 80 0D 01 02 00 00 00 00 96 [07:28:17]Write i2c OK [07:28:17]MH_I2C_Read... [07:28:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:28:17]Read from MH i2c: E2 [07:28:17]MH_I2C_Read... [07:28:17]Read from MH i2c: E2 03 00 [07:28:17]MH_I2C_Read... [07:28:17]Read from MH i2c: E2 03 00 0D 10 00 90 00 91 [07:28:17]RAPDU: 90 00 [07:28:17]wFMCommunicate OK [07:28:17]wFMCommunicate request_size=255 [07:28:17]MH_SAM_APDU [07:28: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 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 11 00 00 00 F4 03 04 00 93 2B 75 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 9E 96 01 00 35 04 06 00 51 [07:28:17]Write to MH i2c: E2 02 01 0E 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 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 11 00 00 00 F4 03 04 00 93 2B 75 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 9E 96 01 00 35 04 06 00 51 00 00 C1 [07:28:17]Write i2c OK [07:28:17]MH_I2C_Read... [07:28:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:28:17]Read from MH i2c: E2 [07:28:17]MH_I2C_Read... [07:28:17]Read from MH i2c: E2 03 00 [07:28:17]MH_I2C_Read... [07:28:17]Read from MH i2c: E2 03 00 0E 10 00 90 00 92 [07:28:17]RAPDU: 90 00 [07:28:17]wFMCommunicate OK [07:28:17]wFMCommunicate request_size=10 [07:28:17]MH_SAM_APDU [07:28:17]CAPDU: 80 0D 02 02 05 2B 73 F2 5D 9F [07:28:17]Write to MH i2c: E2 0D 00 0F 10 80 0D 02 02 05 00 2B 73 F2 5D 9F 00 00 2F [07:28:17]Write i2c OK [07:28:17]MH_I2C_Read... [07:28:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:28:18]Read from MH i2c: E2 [07:28:18]MH_I2C_Read... [07:28:18]Read from MH i2c: E2 03 00 [07:28:18]MH_I2C_Read... [07:28:18]Read from MH i2c: E2 03 00 0F 10 00 90 00 93 [07:28:18]RAPDU: 90 00 [07:28:18]wFMCommunicate OK [07:28:18]wFMCommunicate request_size=4 [07:28:18]MH_SAM_APDU [07:28:18]CAPDU: 80 0D 03 02 [07:28:18]Write to MH i2c: E2 08 00 10 10 80 0D 03 02 00 00 00 00 9B [07:28:18]Write i2c OK [07:28:18]MH_I2C_Read... [07:28:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:28:18]Read from MH i2c: E2 [07:28:18]MH_I2C_Read... [07:28:18]Read from MH i2c: E2 0B 00 [07:28:18]MH_I2C_Read... [07:28:18]Read from MH i2c: E2 0B 00 10 10 00 1E 5A 9C 78 3D E5 2E EF 90 00 67 [07:28:18]RAPDU: 1E 5A 9C 78 3D E5 2E EF 90 00 [07:28:18]wFMCommunicate OK [07:28:18]SAM_PROTO_SignData done [07:28:18]FM_MakeSignedData done [07:28:18]CreateOFDProtocolMessage [07:28:18]wFMCommunicate request_size=4 [07:28:18]MH_SAM_APDU [07:28:18]CAPDU: 80 11 00 00 [07:28:18]Write to MH i2c: E2 08 00 11 10 80 11 00 00 00 00 00 00 9B [07:28:18]Write i2c OK [07:28:18]MH_I2C_Read... [07:28:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:28:18]Read from MH i2c: E2 [07:28:18]MH_I2C_Read... [07:28:18]Read from MH i2c: E2 17 00 [07:28:18]MH_I2C_Read... [07:28:18]Read from MH i2c: E2 17 00 11 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 EE [07:28:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [07:28:18]wFMCommunicate OK [07:28:18]CreateOFDProtocolMessage done [07:28:18]OFDSenderStorePacket 104094 [07:28:18]StoreOFDPacket docnum=104094 [07:28: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 92 BA 07 01 0E F6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 11 00 00 00 F4 03 04 00 93 2B 75 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 9E 96 01 00 35 04 06 00 51 2B 73 F2 5D 9F 1E 5A 9C 78 3D E5 2E EF [07:28:18]CheckFolder [07:28:18]dirname=/storage/ofd_packets [07:28:18]CheckFolder done [07:28:18]ProducePacketName [07:28:18]name=ofd_packets/00104094 [07:28:18]NVStorageSaveData ofd_packets/00104094 [07:28:18]File name is /storage/ofd_packets/00104094 [07:28:18]Write 301 bytes [07:28:18]NVStorageSaveData done [07:28:18]OFDSenderStorePacket done [07:28:18]KKMCreateOFDPacket done [07:28:18]NVStorageSaveData kkm_last_timestamp [07:28:18]File name is /storage/kkm_last_timestamp [07:28:18]Write 4 bytes [07:28:18]NVStorageSaveData done [07:28:18]ExternCall_PrintAddStr [07:28:18]wPrintStart [07:28:18]Write to MH i2c: 01 00 00 12 10 22 [07:28:18]Write i2c OK [07:28:18]MH_I2C_Read... [07:28:18]Read from MH i2c: 01 [07:28:18]MH_I2C_Read... [07:28:18]Read from MH i2c: 01 07 00 [07:28:18]MH_I2C_Read... [07:28:18]Read from MH i2c: 01 07 00 12 10 00 00 00 00 00 FF 0F 37 [07:28:18]RasterBufferAndPrint [07:28:18]line Счет N : (1)673484 [07:28:18]line ИНН: 02508201610067 [07:28:18]line Контрольно-Кассовый Чек [07:28:18]line ПРОДАЖА [07:28:18]line ТРК (МРК, ГНК) : 32 [07:28:18]line Товар: 2710124130 [07:28:18]line Аи-92-К-5 [07:28:18]line 9.040 * 66.40 [07:28:18]line = 600.26 [07:28:18]line НДС 12% НСП 1% [07:28:18]line > о реализуемом товаре [07:28:18]line ОКРУГЛЕНИЕ: -0.26 [07:28:18]line ИТОГО: 600.00 [07:28:18]line Внесено: 600.00 [07:28:18]line СДАЧА: 0.00 [07:28:18]line НСП 1% : 5.31 [07:28:18]line НДС 12% : 63.74 [07:28:18]line Наличными: 600.00 [07:28:18]line Безнал.: 0.00 [07:28:18]line Место: АЗС № 120 "Партнер Нефть" [07:28:18]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [07:28:18]line СНО: Общий режим [07:28:18]line Чек 17 21.06.2024 07:28 [07:28:18]line Смена: 355 ФФД: 1.0 [07:28:18]line ЗНМ: 0300000164 [07:28:18]line РНМ: 0000000000092785 [07:28:18]line Версия ККМ: 001 [07:28:18]line ФМ: 0000000000875093 [07:28:18]line ФД: 104094 [07:28:18]line ФПД: 89247070707103 [07:28:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T072819&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104094&fm=89247070707103&tin=02508201610067®Number=0000000000092785&sum=60000 [07:28:18]written 0, free lines is 4095 [07:28:18]OFD Sender: Processing packet 104094 [packets to send 17, broken 16] [07:28:18]ProducePacketName [07:28:18]name=ofd_packets/00104094 [07:28:18]OFD Sender: To server: pG, [07:28:18]CommunicateWithHost lk.salyk.kg:30040 [07:28:18]ConnectInit lk.salyk.kg [07:28:18]Connected sock=10 [07:28: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 92 BA 07 01 0E F6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 11 00 00 00 F4 03 04 00 93 2B 75 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 9E 96 01 00 35 04 06 00 51 2B 73 F2 5D 9F 1E 5A 9C 78 3D E5 2E EF [07:28: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 D0 46 47 00 28 83 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 9E 96 01 00 F4 03 04 00 16 D2 74 66 B6 04 01 00 00 07 2A C4 21 3F 20 41 D4 [07:28:18]CommunicateWithHost err = 0 [07:28:18]CheckOFDResponse [07:28:18]1017 (14) - 77093643461234 [07:28:18]1041 (16) - 0000000000875093 [07:28:18]1040 (4) - 104094 [07:28:18]1012 (4) - 21.06.2024 01:06 [07:28:18]1206 (1) - 0 [07:28:18]OFD Sender: Remove packet 104094 [07:28:18]ProducePacketName [07:28:18]name=ofd_packets/00104094 [07:28:18]NVStorageDeleteData [07:28:18]Write to MH i2c: 01 00 00 3D 10 4D [07:28:18]Write i2c OK [07:28:18]MH_I2C_Read... [07:28:18]Read from MH i2c: 01 [07:28:18]MH_I2C_Read... [07:28:18]Read from MH i2c: 01 07 00 [07:28:18]MH_I2C_Read... [07:28:18]Read from MH i2c: 01 07 00 3D 10 00 00 00 00 00 E4 0C 44 [07:28:18]RasterBufferAndPrint [07:28:18]line [07:28:18]line [07:28:18]line [07:28:18]line [07:28:18]line [07:28:18]written 0, free lines is 3306 [07:28:18]MH_Cut [07:28:18]Write to MH i2c: D1 01 00 44 10 01 26 [07:28:18]Write i2c OK [07:28:18]MH_I2C_Read... [07:28:18]Read from MH i2c: D1 [07:28:18]MH_I2C_Read... [07:28:18]Read from MH i2c: D1 01 00 [07:28:18]MH_I2C_Read... [07:28:18]Read from MH i2c: D1 01 00 44 10 00 25 [07:28:18]Write to MH i2c: 01 00 00 45 10 55 [07:28:18]Write i2c OK [07:28:18]MH_I2C_Read... [07:28:19]OFD Sender: No OFD packet to send [07:28:19]*** Cut start [07:28:19]*** Partial cut [07:28:19]*** CUTSNS_PIN = 1 [07:28:19]*** CUTSNS_PIN = 0 [07:28:19]*** Brake cut motor [07:28:20]Read from MH i2c: 01 [07:28:20]MH_I2C_Read... [07:28:20]*** Stop cut motor [07:28:20]*** Cut end [07:28:20]Read from MH i2c: 01 07 00 [07:28:20]MH_I2C_Read... [07:28:20]Read from MH i2c: 01 07 00 45 10 00 00 00 00 00 FF 0F 6A [07:28:20]process_action close_receipt done [07:28:20]requested_data is exist [07:28:20]produce_requested_data [07:28:20]requested_item fm.sn is exist - process it [07:28:20]wFMCommunicate request_size=4 [07:28:20]MH_SAM_APDU [07:28:20]CAPDU: 80 11 00 00 [07:28:20]Write to MH i2c: E2 08 00 46 10 80 11 00 00 00 00 00 00 D0 [07:28:20]Write i2c OK [07:28:20]MH_I2C_Read... [07:28:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:28:20]Read from MH i2c: E2 [07:28:20]MH_I2C_Read... [07:28:20]Read from MH i2c: E2 17 00 [07:28:20]MH_I2C_Read... [07:28:20]Read from MH i2c: E2 17 00 46 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 23 [07:28:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [07:28:20]wFMCommunicate OK [07:28:20]requested_item fd.num is exist - process it [07:28:20]SAM_PROTO_GetFieldsCounters [07:28:20]wFMCommunicate request_size=4 [07:28:20]MH_SAM_APDU [07:28:20]CAPDU: 80 13 00 00 [07:28:20]Write to MH i2c: E2 08 00 47 10 80 13 00 00 00 00 00 00 D3 [07:28:20]Write i2c OK [07:28:20]MH_I2C_Read... [07:28:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:28:20]Read from MH i2c: E2 [07:28:20]MH_I2C_Read... [07:28:20]Read from MH i2c: E2 62 00 [07:28:20]MH_I2C_Read... [07:28:20]Read from MH i2c: E2 62 00 47 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 9E 96 01 00 0E 04 04 00 63 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 C6 [07:28: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 9E 96 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:28:20]wFMCommunicate OK [07:28:20]SAM_PROTO_GetFieldsCounters done [07:28:20]requested_item shift.num is exist - process it [07:28:20]requested_item shift.opened is exist - process it [07:28:20]req_shift_opened [07:28:20]FM_GetShiftState [07:28:20]SAM_PROTO_GetShiftState [07:28:20]wFMCommunicate request_size=4 [07:28:20]MH_SAM_APDU [07:28:20]CAPDU: 80 13 01 00 [07:28:20]Write to MH i2c: E2 08 00 48 10 80 13 01 00 00 00 00 00 D5 [07:28:20]Write i2c OK [07:28:20]MH_I2C_Read... [07:28:20]Read from MH i2c: E2 [07:28:20]MH_I2C_Read... [07:28:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:28:20]Read from MH i2c: E2 0E 00 [07:28:20]MH_I2C_Read... [07:28:20]Read from MH i2c: E2 0E 00 48 10 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 E8 [07:28:20]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [07:28:20]wFMCommunicate OK [07:28:20]SAM_PROTO_GetShiftState done [07:28:20]FM_GetShiftState done [07:28:20]req_shift_opened done [07:28:20]requested_item shift.open_date is exist - process it [07:28:20]req_shift_open_date [07:28:20]req_shift_open_date done [07:28:20]produce_requested_data done [07:28:20]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104094,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [07:28:20]process_action_free close_receipt [07:28:20]json_value_free [07:28:20]json_value_free done [07:28:20]process_json_proto returns [07:28:20]Send response to host [07:28:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104094,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [07:28:20]free response buf [07:28:20]execute_script done [07:28:20]execute_script returns [07:28:20]free content buf [07:28:20]Sock 9.Close socket [07:28:20]Sock 9.Thread stoped [07:28:24]OFD Sender: No OFD packet to send [07:28:29]OFD Sender: No OFD packet to send [07:28:34]OFD Sender: No OFD packet to send [07:28:39]OFD Sender: No OFD packet to send [07:28:44]OFD Sender: No OFD packet to send [07:28:49]OFD Sender: No OFD packet to send [07:28:54]OFD Sender: No OFD packet to send [07:28:59]OFD Sender: No OFD packet to send [07:29:04]OFD Sender: No OFD packet to send [07:29:09]OFD Sender: No OFD packet to send [07:29:14]OFD Sender: No OFD packet to send [07:29:19]OFD Sender: No OFD packet to send [07:29:24]OFD Sender: No OFD packet to send [07:29:29]OFD Sender: No OFD packet to send [07:29:34]OFD Sender: No OFD packet to send [07:29:39]OFD Sender: No OFD packet to send [07:29:44]OFD Sender: No OFD packet to send [07:29:49]OFD Sender: No OFD packet to send [07:29:54]OFD Sender: No OFD packet to send [07:29:59]OFD Sender: No OFD packet to send [07:30:04]OFD Sender: No OFD packet to send [07:30:09]OFD Sender: No OFD packet to send [07:30:14]OFD Sender: No OFD packet to send [07:30:19]OFD Sender: No OFD packet to send [07:30:24]OFD Sender: No OFD packet to send [07:30:29]OFD Sender: No OFD packet to send [07:30:34]OFD Sender: No OFD packet to send [07:30:39]OFD Sender: No OFD packet to send [07:30:44]OFD Sender: No OFD packet to send [07:30:49]OFD Sender: No OFD packet to send [07:30:54]OFD Sender: No OFD packet to send [07:30:59]OFD Sender: No OFD packet to send [07:31:04]OFD Sender: No OFD packet to send [07:31:09]OFD Sender: No OFD packet to send [07:31:14]OFD Sender: No OFD packet to send [07:31:19]OFD Sender: No OFD packet to send [07:31:24]OFD Sender: No OFD packet to send [07:31:29]OFD Sender: No OFD packet to send [07:31:34]OFD Sender: No OFD packet to send [07:31:39]OFD Sender: No OFD packet to send [07:31:44]OFD Sender: No OFD packet to send [07:31:49]OFD Sender: No OFD packet to send [07:31:54]OFD Sender: No OFD packet to send [07:31:59]OFD Sender: No OFD packet to send [07:32:04]OFD Sender: No OFD packet to send [07:32:09]OFD Sender: No OFD packet to send [07:32:14]OFD Sender: No OFD packet to send [07:32:19]OFD Sender: No OFD packet to send [07:32:24]OFD Sender: No OFD packet to send [07:32:29]OFD Sender: No OFD packet to send [07:32:34]OFD Sender: No OFD packet to send [07:32:39]OFD Sender: No OFD packet to send [07:32:44]OFD Sender: No OFD packet to send [07:32:49]OFD Sender: No OFD packet to send [07:32:54]OFD Sender: No OFD packet to send [07:32:59]OFD Sender: No OFD packet to send [07:33:04]OFD Sender: No OFD packet to send [07:33:09]OFD Sender: No OFD packet to send [07:33:14]OFD Sender: No OFD packet to send [07:33:19]OFD Sender: No OFD packet to send [07:33:24]OFD Sender: No OFD packet to send [07:33:29]OFD Sender: No OFD packet to send [07:33:34]OFD Sender: No OFD packet to send [07:33:39]OFD Sender: No OFD packet to send [07:33:44]OFD Sender: No OFD packet to send [07:33:49]OFD Sender: No OFD packet to send [07:33:54]OFD Sender: No OFD packet to send [07:33:59]OFD Sender: No OFD packet to send [07:34:04]OFD Sender: No OFD packet to send [07:34:09]OFD Sender: No OFD packet to send [07:34:14]OFD Sender: No OFD packet to send [07:34:19]OFD Sender: No OFD packet to send [07:34:24]OFD Sender: No OFD packet to send [07:34:29]OFD Sender: No OFD packet to send [07:34:34]OFD Sender: No OFD packet to send [07:34:39]OFD Sender: No OFD packet to send [07:34:44]OFD Sender: No OFD packet to send [07:34:49]OFD Sender: No OFD packet to send [07:34:54]OFD Sender: No OFD packet to send [07:34:59]OFD Sender: No OFD packet to send [07:35:04]OFD Sender: No OFD packet to send [07:35:09]OFD Sender: No OFD packet to send [07:35:14]OFD Sender: No OFD packet to send [07:35:19]OFD Sender: No OFD packet to send [07:35:24]OFD Sender: No OFD packet to send [07:35:29]OFD Sender: No OFD packet to send [07:35:34]OFD Sender: No OFD packet to send [07:35:39]OFD Sender: No OFD packet to send [07:35:44]OFD Sender: No OFD packet to send [07:35:49]OFD Sender: No OFD packet to send [07:35:54]OFD Sender: No OFD packet to send [07:35:59]OFD Sender: No OFD packet to send [07:36:04]OFD Sender: No OFD packet to send [07:36:09]OFD Sender: No OFD packet to send [07:36:14]OFD Sender: No OFD packet to send [07:36:19]OFD Sender: No OFD packet to send [07:36:24]OFD Sender: No OFD packet to send [07:36:29]OFD Sender: No OFD packet to send [07:36:34]OFD Sender: No OFD packet to send [07:36:39]OFD Sender: No OFD packet to send [07:36:44]OFD Sender: No OFD packet to send [07:36:49]OFD Sender: No OFD packet to send [07:36:54]OFD Sender: No OFD packet to send [07:36:59]OFD Sender: No OFD packet to send [07:37:04]OFD Sender: No OFD packet to send [07:37:09]OFD Sender: No OFD packet to send [07:37:14]OFD Sender: No OFD packet to send [07:37:19]OFD Sender: No OFD packet to send [07:37:24]OFD Sender: No OFD packet to send [07:37:29]OFD Sender: No OFD packet to send [07:37:34]OFD Sender: No OFD packet to send [07:37:39]OFD Sender: No OFD packet to send [07:37:44]OFD Sender: No OFD packet to send [07:37:49]OFD Sender: No OFD packet to send [07:37:54]OFD Sender: No OFD packet to send [07:37:59]OFD Sender: No OFD packet to send [07:38:04]OFD Sender: No OFD packet to send [07:38:09]OFD Sender: No OFD packet to send [07:38:14]OFD Sender: No OFD packet to send [07:38:19]OFD Sender: No OFD packet to send [07:38:24]OFD Sender: No OFD packet to send [07:38:29]OFD Sender: No OFD packet to send [07:38:34]OFD Sender: No OFD packet to send [07:38:39]OFD Sender: No OFD packet to send [07:38:44]OFD Sender: No OFD packet to send [07:38:49]OFD Sender: No OFD packet to send [07:38:54]OFD Sender: No OFD packet to send [07:38:59]OFD Sender: No OFD packet to send [07:39:04]OFD Sender: No OFD packet to send [07:39:09]OFD Sender: No OFD packet to send [07:39:14]OFD Sender: No OFD packet to send [07:39:19]OFD Sender: No OFD packet to send [07:39:24]OFD Sender: No OFD packet to send [07:39:29]OFD Sender: No OFD packet to send [07:39:34]OFD Sender: No OFD packet to send [07:39:39]OFD Sender: No OFD packet to send [07:39:44]OFD Sender: No OFD packet to send [07:39:49]OFD Sender: No OFD packet to send [07:39:54]OFD Sender: No OFD packet to send [07:39:59]OFD Sender: No OFD packet to send [07:40:04]OFD Sender: No OFD packet to send [07:40:09]OFD Sender: No OFD packet to send [07:40:14]OFD Sender: No OFD packet to send [07:40:19]OFD Sender: No OFD packet to send [07:40:24]OFD Sender: No OFD packet to send [07:40:29]OFD Sender: No OFD packet to send [07:40:34]OFD Sender: No OFD packet to send [07:40:39]OFD Sender: No OFD packet to send [07:40:44]OFD Sender: No OFD packet to send [07:40:49]OFD Sender: No OFD packet to send [07:40:54]OFD Sender: No OFD packet to send [07:40:59]OFD Sender: No OFD packet to send [07:41:04]OFD Sender: No OFD packet to send [07:41:09]OFD Sender: No OFD packet to send [07:41:14]OFD Sender: No OFD packet to send [07:41:19]OFD Sender: No OFD packet to send [07:41:24]OFD Sender: No OFD packet to send [07:41:29]OFD Sender: No OFD packet to send [07:41:34]OFD Sender: No OFD packet to send [07:41:39]OFD Sender: No OFD packet to send [07:41:44]OFD Sender: No OFD packet to send [07:41:49]OFD Sender: No OFD packet to send [07:41:54]OFD Sender: No OFD packet to send [07:42:00]OFD Sender: No OFD packet to send [07:42:05]OFD Sender: No OFD packet to send [07:42:10]OFD Sender: No OFD packet to send [07:42:15]OFD Sender: No OFD packet to send [07:42:20]OFD Sender: No OFD packet to send [07:42:25]OFD Sender: No OFD packet to send [07:42:30]OFD Sender: No OFD packet to send [07:42:35]OFD Sender: No OFD packet to send [07:42:40]OFD Sender: No OFD packet to send [07:42:45]OFD Sender: No OFD packet to send [07:42:50]OFD Sender: No OFD packet to send [07:42:55]OFD Sender: No OFD packet to send [07:43:00]OFD Sender: No OFD packet to send [07:43:05]OFD Sender: No OFD packet to send [07:43:10]OFD Sender: No OFD packet to send [07:43:15]OFD Sender: No OFD packet to send [07:43:20]OFD Sender: No OFD packet to send [07:43:25]OFD Sender: No OFD packet to send [07:43:30]OFD Sender: No OFD packet to send [07:43:35]OFD Sender: No OFD packet to send [07:43:40]OFD Sender: No OFD packet to send [07:43:45]OFD Sender: No OFD packet to send [07:43:50]OFD Sender: No OFD packet to send [07:43:55]OFD Sender: No OFD packet to send [07:44:00]OFD Sender: No OFD packet to send [07:44:05]OFD Sender: No OFD packet to send [07:44:10]OFD Sender: No OFD packet to send [07:44:15]OFD Sender: No OFD packet to send [07:44:20]OFD Sender: No OFD packet to send [07:44:25]OFD Sender: No OFD packet to send [07:44:30]OFD Sender: No OFD packet to send [07:44:35]OFD Sender: No OFD packet to send [07:44:40]OFD Sender: No OFD packet to send [07:44:45]OFD Sender: No OFD packet to send [07:44:48]accept exits with 7 [07:44:48]New connection [07:44:48]New thread 3066715492 created [07:44:48]Thread 3066858852 joined [07:44:48]Waiting for new connection... [07:44:48] Sock 7.Parse request [07:44:48]Sock 7.Check first char [07:44:48]Sock 7.First char is OK [07:44:48]request: POST /json_proto HTTP/1.0 [07:44:48]Method: POST [07:44:48]URL: /json_proto [07:44:48]Method is POST - this is cgi request [07:44:48]url: /json_proto [07:44:48]query_string will be loaded in cgi processing [07:44:48]execute_cgi json_proto POST (null) [07:44:48]execute_cgi path=json_proto method=POST [07:44:48]POST find Content-Length [07:44:48]Host: 172.17.38.133:8080 [07:44:48]Content-Length: 682 [07:44:48]Content-Type: application/json [07:44:48] [07:44:48]POST finish read [07:44:48]Found Content-Length = 682 [07:44:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673485", "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" ] } } [07:44:48]execute_script... [07:44:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673485", "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" ] } } [07:44:48]POST & json_proto [07:44:48]process_json_proto [07:44:48]json parsed OK: [07:44:48]protocol is kg_v1.0 [07:44:48]action value=close_receipt [07:44:48]process_action close_receipt [07:44:48]cmd_close_receipt [07:44:48]MH_GetDate [07:44:48]Write to MH i2c: F0 00 00 49 10 48 [07:44:48]Write i2c OK [07:44:48]MH_I2C_Read... [07:44:48]Read from MH i2c: F0 [07:44:48]MH_I2C_Read... [07:44:48]Read from MH i2c: F0 09 00 [07:44:48]MH_I2C_Read... [07:44:48]Read from MH i2c: F0 09 00 49 10 00 74 2F 75 66 BD 8F 7C 64 FB [07:44:48]GetLastDocTimeStamp 1718954899 [07:44:48]current date 1718955892 [07:44:48]FM_GetShiftState [07:44:48]SAM_PROTO_GetShiftState [07:44:48]wFMCommunicate request_size=4 [07:44:48]MH_SAM_APDU [07:44:48]CAPDU: 80 13 01 00 [07:44:48]Write to MH i2c: E2 08 00 4A 10 80 13 01 00 00 00 00 00 D7 [07:44:48]Write i2c OK [07:44:48]MH_I2C_Read... [07:44:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:44:48]Read from MH i2c: E2 [07:44:48]MH_I2C_Read... [07:44:48]Read from MH i2c: E2 0E 00 [07:44:48]MH_I2C_Read... [07:44:48]Read from MH i2c: E2 0E 00 4A 10 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 EA [07:44:48]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [07:44:48]wFMCommunicate OK [07:44:48]SAM_PROTO_GetShiftState done [07:44:48]FM_GetShiftState done [07:44:48]opened in 1718929509 [07:44:48]opened+sec_in_day 1719015909 [07:44:48]quantity*price = 100064 [07:44:48]sum+1 = 100066 [07:44:48]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 СНО: Общий режим Чек 18 21.06.2024 07:44 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104095 ФПД: 80484874312816 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T074452&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104095&fm=80484874312816&tin=02508201610067®Number=0000000000092785&sum=100000 [07:44:49]StoreToDocumentArchive [07:44:49]shift 355 fd 104095 [07:44:49]save to /storage/0355/doc_00104095 [07:44:49]save last doc name /storage/0355/doc_00104095 to /storage/kkm_last_doc_name [07:44:49]save OK [07:44:49]Clear old archive folders... [07:44:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:44:49]tlvbuf is 0111C7E0 [07:44:49]SAM_PROTO_ClearQueue [07:44:49]wFMCommunicate request_size=4 [07:44:49]MH_SAM_APDU [07:44:49]CAPDU: 80 09 00 00 [07:44:49]Write to MH i2c: E2 08 00 57 10 80 09 00 00 00 00 00 00 D9 [07:44:49]Write i2c OK [07:44:49]MH_I2C_Read... [07:44:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:44:49]Read from MH i2c: E2 [07:44:49]MH_I2C_Read... [07:44:49]Read from MH i2c: E2 03 00 [07:44:49]MH_I2C_Read... [07:44:49]Read from MH i2c: E2 03 00 57 10 00 90 00 DB [07:44:49]RAPDU: 90 00 [07:44:49]wFMCommunicate OK [07:44:49]SAM_PROTO_ClearQueue done [07:44:49]KKMCreateOFDPacket [07:44:49]OFDProtocolAddRootSTLVToBuf [07:44:49]FM_MakeSignedData [07:44:49]FM_MakeSignedData [07:44:49]SAM_PROTO_SignData [07:44:49]wFMCommunicate request_size=4 [07:44:49]MH_SAM_APDU [07:44:49]CAPDU: 80 0D 01 02 [07:44:49]Write to MH i2c: E2 08 00 58 10 80 0D 01 02 00 00 00 00 E1 [07:44:49]Write i2c OK [07:44:49]MH_I2C_Read... [07:44:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:44:50]Read from MH i2c: E2 [07:44:50]MH_I2C_Read... [07:44:50]Read from MH i2c: E2 03 00 [07:44:50]MH_I2C_Read... [07:44:50]Read from MH i2c: E2 03 00 58 10 00 90 00 DC [07:44:50]RAPDU: 90 00 [07:44:50]wFMCommunicate OK [07:44:50]wFMCommunicate request_size=255 [07:44:50]MH_SAM_APDU [07:44: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 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 12 00 00 00 F4 03 04 00 74 2F 75 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 9F 96 01 00 35 04 06 00 49 [07:44:50]Write to MH i2c: E2 02 01 59 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 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 12 00 00 00 F4 03 04 00 74 2F 75 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 9F 96 01 00 35 04 06 00 49 00 00 5E [07:44:50]Write i2c OK [07:44:50]MH_I2C_Read... [07:44:50]OFD Sender: No OFD packet to send [07:44:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:44:50]Read from MH i2c: E2 [07:44:50]MH_I2C_Read... [07:44:50]Read from MH i2c: E2 03 00 [07:44:50]MH_I2C_Read... [07:44:50]Read from MH i2c: E2 03 00 59 10 00 90 00 DD [07:44:50]RAPDU: 90 00 [07:44:50]wFMCommunicate OK [07:44:50]wFMCommunicate request_size=10 [07:44:50]MH_SAM_APDU [07:44:50]CAPDU: 80 0D 02 02 05 33 58 57 DC 70 [07:44:50]Write to MH i2c: E2 0D 00 5A 10 80 0D 02 02 05 00 33 58 57 DC 70 00 00 1C [07:44:50]Write i2c OK [07:44:50]MH_I2C_Read... [07:44:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:44:50]Read from MH i2c: E2 [07:44:50]MH_I2C_Read... [07:44:50]Read from MH i2c: E2 03 00 [07:44:50]MH_I2C_Read... [07:44:50]Read from MH i2c: E2 03 00 5A 10 00 90 00 DE [07:44:50]RAPDU: 90 00 [07:44:50]wFMCommunicate OK [07:44:50]wFMCommunicate request_size=4 [07:44:50]MH_SAM_APDU [07:44:50]CAPDU: 80 0D 03 02 [07:44:50]Write to MH i2c: E2 08 00 5B 10 80 0D 03 02 00 00 00 00 E6 [07:44:50]Write i2c OK [07:44:50]MH_I2C_Read... [07:44:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:44:50]Read from MH i2c: E2 [07:44:50]MH_I2C_Read... [07:44:50]Read from MH i2c: E2 0B 00 [07:44:50]MH_I2C_Read... [07:44:50]Read from MH i2c: E2 0B 00 5B 10 00 23 A4 8E 37 BB 8F 2D A5 90 00 8F [07:44:50]RAPDU: 23 A4 8E 37 BB 8F 2D A5 90 00 [07:44:50]wFMCommunicate OK [07:44:50]SAM_PROTO_SignData done [07:44:50]FM_MakeSignedData done [07:44:50]CreateOFDProtocolMessage [07:44:50]wFMCommunicate request_size=4 [07:44:50]MH_SAM_APDU [07:44:50]CAPDU: 80 11 00 00 [07:44:50]Write to MH i2c: E2 08 00 5C 10 80 11 00 00 00 00 00 00 E6 [07:44:50]Write i2c OK [07:44:50]MH_I2C_Read... [07:44:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:44:50]Read from MH i2c: E2 [07:44:50]MH_I2C_Read... [07:44:50]Read from MH i2c: E2 17 00 [07:44:50]MH_I2C_Read... [07:44:50]Read from MH i2c: E2 17 00 5C 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 39 [07:44:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [07:44:50]wFMCommunicate OK [07:44:50]CreateOFDProtocolMessage done [07:44:50]OFDSenderStorePacket 104095 [07:44:50]StoreOFDPacket docnum=104095 [07:44: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 80 51 07 01 0B DE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 12 00 00 00 F4 03 04 00 74 2F 75 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 9F 96 01 00 35 04 06 00 49 33 58 57 DC 70 23 A4 8E 37 BB 8F 2D A5 [07:44:50]CheckFolder [07:44:50]dirname=/storage/ofd_packets [07:44:50]CheckFolder done [07:44:50]ProducePacketName [07:44:50]name=ofd_packets/00104095 [07:44:50]NVStorageSaveData ofd_packets/00104095 [07:44:50]File name is /storage/ofd_packets/00104095 [07:44:50]Write 301 bytes [07:44:50]NVStorageSaveData done [07:44:50]OFDSenderStorePacket done [07:44:50]KKMCreateOFDPacket done [07:44:50]NVStorageSaveData kkm_last_timestamp [07:44:50]File name is /storage/kkm_last_timestamp [07:44:50]Write 4 bytes [07:44:50]NVStorageSaveData done [07:44:50]ExternCall_PrintAddStr [07:44:50]wPrintStart [07:44:50]Write to MH i2c: 01 00 00 5D 10 6D [07:44:50]Write i2c OK [07:44:50]MH_I2C_Read... [07:44:50]Read from MH i2c: 01 [07:44:50]MH_I2C_Read... [07:44:50]Read from MH i2c: 01 07 00 [07:44:50]MH_I2C_Read... [07:44:50]Read from MH i2c: 01 07 00 5D 10 00 00 00 00 00 FF 0F 82 [07:44:50]RasterBufferAndPrint [07:44:50]line Счет N : (1)673485 [07:44:50]line ИНН: 02508201610067 [07:44:50]line Контрольно-Кассовый Чек [07:44:50]line ПРОДАЖА [07:44:50]line ТРК (МРК, ГНК) : 42 [07:44:50]line Товар: 2710124130 [07:44:50]line Аи-92-К-5 [07:44:50]line 15.070 * 66.40 [07:44:50]line = 1000.65 [07:44:50]line НДС 12% НСП 1% [07:44:50]line > о реализуемом товаре [07:44:50]line ОКРУГЛЕНИЕ: -0.65 [07:44:50]line ИТОГО: 1000.00 [07:44:50]line Внесено: 1000.00 [07:44:50]line СДАЧА: 0.00 [07:44:50]line НСП 1% : 8.85 [07:44:50]line НДС 12% : 106.26 [07:44:50]line Наличными: 1000.00 [07:44:50]line Безнал.: 0.00 [07:44:50]line Место: АЗС № 120 "Партнер Нефть" [07:44:50]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [07:44:50]line СНО: Общий режим [07:44:50]line Чек 18 21.06.2024 07:44 [07:44:50]line Смена: 355 ФФД: 1.0 [07:44:50]line ЗНМ: 0300000164 [07:44:50]line РНМ: 0000000000092785 [07:44:50]line Версия ККМ: 001 [07:44:50]line ФМ: 0000000000875093 [07:44:50]line ФД: 104095 [07:44:50]line ФПД: 80484874312816 [07:44:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T074452&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104095&fm=80484874312816&tin=02508201610067®Number=0000000000092785&sum=100000 [07:44:50]OFD Sender: Processing packet 104095 [packets to send 17, broken 16] [07:44:50]ProducePacketName [07:44:50]name=ofd_packets/00104095 [07:44:50]OFD Sender: To server: pG, [07:44:50]CommunicateWithHost lk.salyk.kg:30040 [07:44:50]ConnectInit lk.salyk.kg [07:44:50]written 0, free lines is 4095 [07:44:50]Connected sock=10 [07:44: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 80 51 07 01 0B DE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 12 00 00 00 F4 03 04 00 74 2F 75 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 9F 96 01 00 35 04 06 00 49 33 58 57 DC 70 23 A4 8E 37 BB 8F 2D A5 [07:44: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 91 75 47 00 81 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 9F 96 01 00 F4 03 04 00 F7 D5 74 66 B6 04 01 00 00 65 C2 B7 29 4A 5C 6C D8 [07:44:51]CommunicateWithHost err = 0 [07:44:51]CheckOFDResponse [07:44:51]1017 (14) - 77093643461234 [07:44:51]1041 (16) - 0000000000875093 [07:44:51]1040 (4) - 104095 [07:44:51]1012 (4) - 21.06.2024 01:23 [07:44:51]1206 (1) - 0 [07:44:51]OFD Sender: Remove packet 104095 [07:44:51]ProducePacketName [07:44:51]name=ofd_packets/00104095 [07:44:51]NVStorageDeleteData [07:44:51]Write to MH i2c: 01 00 00 88 10 98 [07:44:51]Write i2c OK [07:44:51]MH_I2C_Read... [07:44:51]Read from MH i2c: 01 [07:44:51]MH_I2C_Read... [07:44:51]Read from MH i2c: 01 07 00 [07:44:51]MH_I2C_Read... [07:44:51]Read from MH i2c: 01 07 00 88 10 00 00 00 00 00 DD 0C 88 [07:44:51]RasterBufferAndPrint [07:44:51]line [07:44:51]line [07:44:51]line [07:44:51]line [07:44:51]line [07:44:51]written 0, free lines is 3299 [07:44:51]MH_Cut [07:44:51]Write to MH i2c: D1 01 00 8F 10 01 71 [07:44:51]Write i2c OK [07:44:51]MH_I2C_Read... [07:44:51]Read from MH i2c: D1 [07:44:51]MH_I2C_Read... [07:44:51]Read from MH i2c: D1 01 00 [07:44:51]MH_I2C_Read... [07:44:51]Read from MH i2c: D1 01 00 8F 10 00 70 [07:44:51]Write to MH i2c: 01 00 00 90 10 A0 [07:44:51]Write i2c OK [07:44:51]MH_I2C_Read... [07:44:51]OFD Sender: No OFD packet to send [07:44:51]*** Cut start [07:44:51]*** Partial cut [07:44:51]*** CUTSNS_PIN = 1 [07:44:52]*** CUTSNS_PIN = 0 [07:44:52]*** Brake cut motor [07:44:52]Read from MH i2c: 01 [07:44:52]MH_I2C_Read... [07:44:52]*** Stop cut motor [07:44:52]*** Cut end [07:44:52]Read from MH i2c: 01 07 00 [07:44:52]MH_I2C_Read... [07:44:52]Read from MH i2c: 01 07 00 90 10 00 00 00 00 00 FF 0F B5 [07:44:52]process_action close_receipt done [07:44:52]requested_data is exist [07:44:52]produce_requested_data [07:44:52]requested_item fm.sn is exist - process it [07:44:52]wFMCommunicate request_size=4 [07:44:52]MH_SAM_APDU [07:44:52]CAPDU: 80 11 00 00 [07:44:52]Write to MH i2c: E2 08 00 91 10 80 11 00 00 00 00 00 00 1B [07:44:52]Write i2c OK [07:44:52]MH_I2C_Read... [07:44:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:44:52]Read from MH i2c: E2 [07:44:52]MH_I2C_Read... [07:44:52]Read from MH i2c: E2 17 00 [07:44:52]MH_I2C_Read... [07:44:52]Read from MH i2c: E2 17 00 91 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 6E [07:44:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [07:44:52]wFMCommunicate OK [07:44:52]requested_item fd.num is exist - process it [07:44:52]SAM_PROTO_GetFieldsCounters [07:44:52]wFMCommunicate request_size=4 [07:44:52]MH_SAM_APDU [07:44:52]CAPDU: 80 13 00 00 [07:44:52]Write to MH i2c: E2 08 00 92 10 80 13 00 00 00 00 00 00 1E [07:44:52]Write i2c OK [07:44:52]MH_I2C_Read... [07:44:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:44:52]Read from MH i2c: E2 [07:44:52]MH_I2C_Read... [07:44:52]Read from MH i2c: E2 62 00 [07:44:52]MH_I2C_Read... [07:44:52]Read from MH i2c: E2 62 00 92 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 9F 96 01 00 0E 04 04 00 63 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 15 [07:44: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 9F 96 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:44:52]wFMCommunicate OK [07:44:52]SAM_PROTO_GetFieldsCounters done [07:44:52]requested_item shift.num is exist - process it [07:44:52]requested_item shift.opened is exist - process it [07:44:52]req_shift_opened [07:44:52]FM_GetShiftState [07:44:52]SAM_PROTO_GetShiftState [07:44:52]wFMCommunicate request_size=4 [07:44:52]MH_SAM_APDU [07:44:52]CAPDU: 80 13 01 00 [07:44:52]Write to MH i2c: E2 08 00 93 10 80 13 01 00 00 00 00 00 20 [07:44:52]Write i2c OK [07:44:52]MH_I2C_Read... [07:44:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:44:52]Read from MH i2c: E2 [07:44:52]MH_I2C_Read... [07:44:52]Read from MH i2c: E2 0E 00 [07:44:52]MH_I2C_Read... [07:44:52]Read from MH i2c: E2 0E 00 93 10 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 33 [07:44:52]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [07:44:52]wFMCommunicate OK [07:44:52]SAM_PROTO_GetShiftState done [07:44:52]FM_GetShiftState done [07:44:52]req_shift_opened done [07:44:52]requested_item shift.open_date is exist - process it [07:44:52]req_shift_open_date [07:44:52]req_shift_open_date done [07:44:52]produce_requested_data done [07:44:52]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104095,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [07:44:52]process_action_free close_receipt [07:44:52]json_value_free [07:44:52]json_value_free done [07:44:52]process_json_proto returns [07:44:52]Send response to host [07:44:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104095,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [07:44:52]free response buf [07:44:52]execute_script done [07:44:52]execute_script returns [07:44:52]free content buf [07:44:52]Sock 7.Close socket [07:44:52]Sock 7.Thread stoped [07:44:56]OFD Sender: No OFD packet to send [07:45:01]OFD Sender: No OFD packet to send [07:45:03]accept exits with 9 [07:45:03]New connection [07:45:03]New thread 3066858852 created [07:45:03]Thread 3066715492 joined [07:45:03]Waiting for new connection... [07:45:03] Sock 9.Parse request [07:45:03]Sock 9.Check first char [07:45:03]Sock 9.First char is OK [07:45:03]request: POST /json_proto HTTP/1.0 [07:45:03]Method: POST [07:45:03]URL: /json_proto [07:45:03]Method is POST - this is cgi request [07:45:03]url: /json_proto [07:45:03]query_string will be loaded in cgi processing [07:45:03]execute_cgi json_proto POST (null) [07:45:03]execute_cgi path=json_proto method=POST [07:45:03]POST find Content-Length [07:45:03]Host: 172.17.38.133:8080 [07:45:03]Content-Length: 678 [07:45:03]Content-Type: application/json [07:45:03] [07:45:03]POST finish read [07:45:03]Found Content-Length = 678 [07:45:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673486", "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" ] } } [07:45:03]execute_script... [07:45: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)673486", "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" ] } } [07:45:03]POST & json_proto [07:45:03]process_json_proto [07:45:03]json parsed OK: [07:45:03]protocol is kg_v1.0 [07:45:03]action value=close_receipt [07:45:03]process_action close_receipt [07:45:03]cmd_close_receipt [07:45:03]MH_GetDate [07:45:03]Write to MH i2c: F0 00 00 94 10 93 [07:45:03]Write i2c OK [07:45:03]MH_I2C_Read... [07:45:03]Read from MH i2c: F0 [07:45:03]MH_I2C_Read... [07:45:03]Read from MH i2c: F0 09 00 [07:45:03]MH_I2C_Read... [07:45:03]Read from MH i2c: F0 09 00 94 10 00 82 2F 75 66 BD 8F 7C 64 54 [07:45:03]GetLastDocTimeStamp 1718955892 [07:45:03]current date 1718955906 [07:45:03]FM_GetShiftState [07:45:03]SAM_PROTO_GetShiftState [07:45:03]wFMCommunicate request_size=4 [07:45:03]MH_SAM_APDU [07:45:03]CAPDU: 80 13 01 00 [07:45:03]Write to MH i2c: E2 08 00 95 10 80 13 01 00 00 00 00 00 22 [07:45:03]Write i2c OK [07:45:03]MH_I2C_Read... [07:45:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:45:03]Read from MH i2c: E2 [07:45:03]MH_I2C_Read... [07:45:03]Read from MH i2c: E2 0E 00 [07:45:03]MH_I2C_Read... [07:45:03]Read from MH i2c: E2 0E 00 95 10 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 35 [07:45:03]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [07:45:03]wFMCommunicate OK [07:45:03]SAM_PROTO_GetShiftState done [07:45:03]FM_GetShiftState done [07:45:03]opened in 1718929509 [07:45:03]opened+sec_in_day 1719015909 [07:45:03]quantity*price = 80012 [07:45:03]sum+1 = 80013 [07:45:03]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 СНО: Общий режим Чек 19 21.06.2024 07:45 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104096 ФПД: 174886025782819 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T074506&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104096&fm=174886025782819&tin=02508201610067®Number=0000000000092785&sum=80000 [07:45:04]StoreToDocumentArchive [07:45:04]shift 355 fd 104096 [07:45:04]save to /storage/0355/doc_00104096 [07:45:04]save last doc name /storage/0355/doc_00104096 to /storage/kkm_last_doc_name [07:45:04]save OK [07:45:04]Clear old archive folders... [07:45:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:45:04]tlvbuf is 0110CB00 [07:45:04]SAM_PROTO_ClearQueue [07:45:04]wFMCommunicate request_size=4 [07:45:04]MH_SAM_APDU [07:45:04]CAPDU: 80 09 00 00 [07:45:04]Write to MH i2c: E2 08 00 A2 10 80 09 00 00 00 00 00 00 24 [07:45:04]Write i2c OK [07:45:04]MH_I2C_Read... [07:45:04]Read from MH i2c: E2 [07:45:04]MH_I2C_Read... [07:45:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:45:04]Read from MH i2c: E2 03 00 [07:45:04]MH_I2C_Read... [07:45:04]Read from MH i2c: E2 03 00 A2 10 00 90 00 26 [07:45:04]RAPDU: 90 00 [07:45:04]wFMCommunicate OK [07:45:04]SAM_PROTO_ClearQueue done [07:45:04]KKMCreateOFDPacket [07:45:04]OFDProtocolAddRootSTLVToBuf [07:45:04]FM_MakeSignedData [07:45:04]FM_MakeSignedData [07:45:04]SAM_PROTO_SignData [07:45:04]wFMCommunicate request_size=4 [07:45:04]MH_SAM_APDU [07:45:04]CAPDU: 80 0D 01 02 [07:45:04]Write to MH i2c: E2 08 00 A3 10 80 0D 01 02 00 00 00 00 2C [07:45:04]Write i2c OK [07:45:04]MH_I2C_Read... [07:45:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:45:04]Read from MH i2c: E2 [07:45:04]MH_I2C_Read... [07:45:04]Read from MH i2c: E2 03 00 [07:45:04]MH_I2C_Read... [07:45:04]Read from MH i2c: E2 03 00 A3 10 00 90 00 27 [07:45:04]RAPDU: 90 00 [07:45:04]wFMCommunicate OK [07:45:04]wFMCommunicate request_size=255 [07:45:04]MH_SAM_APDU [07:45: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 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 13 00 00 00 F4 03 04 00 82 2F 75 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 A0 96 01 00 35 04 06 00 9F [07:45:04]Write to MH i2c: E2 02 01 A4 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 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 13 00 00 00 F4 03 04 00 82 2F 75 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 A0 96 01 00 35 04 06 00 9F 00 00 AE [07:45:04]Write i2c OK [07:45:04]MH_I2C_Read... [07:45:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:45:04]Read from MH i2c: E2 [07:45:04]MH_I2C_Read... [07:45:04]Read from MH i2c: E2 03 00 [07:45:04]MH_I2C_Read... [07:45:04]Read from MH i2c: E2 03 00 A4 10 00 90 00 28 [07:45:04]RAPDU: 90 00 [07:45:04]wFMCommunicate OK [07:45:04]wFMCommunicate request_size=10 [07:45:04]MH_SAM_APDU [07:45:04]CAPDU: 80 0D 02 02 05 0E D3 71 66 23 [07:45:04]Write to MH i2c: E2 0D 00 A5 10 80 0D 02 02 05 00 0E D3 71 66 23 00 00 14 [07:45:04]Write i2c OK [07:45:04]MH_I2C_Read... [07:45:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:45:04]Read from MH i2c: E2 [07:45:04]MH_I2C_Read... [07:45:04]Read from MH i2c: E2 03 00 [07:45:04]MH_I2C_Read... [07:45:04]Read from MH i2c: E2 03 00 A5 10 00 90 00 29 [07:45:04]RAPDU: 90 00 [07:45:04]wFMCommunicate OK [07:45:04]wFMCommunicate request_size=4 [07:45:04]MH_SAM_APDU [07:45:04]CAPDU: 80 0D 03 02 [07:45:04]Write to MH i2c: E2 08 00 A6 10 80 0D 03 02 00 00 00 00 31 [07:45:04]Write i2c OK [07:45:04]MH_I2C_Read... [07:45:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:45:04]Read from MH i2c: E2 [07:45:04]MH_I2C_Read... [07:45:04]Read from MH i2c: E2 0B 00 [07:45:04]MH_I2C_Read... [07:45:04]Read from MH i2c: E2 0B 00 A6 10 00 78 63 30 2E 0E 15 7F EA 90 00 F7 [07:45:04]RAPDU: 78 63 30 2E 0E 15 7F EA 90 00 [07:45:04]wFMCommunicate OK [07:45:04]SAM_PROTO_SignData done [07:45:04]FM_MakeSignedData done [07:45:04]CreateOFDProtocolMessage [07:45:04]wFMCommunicate request_size=4 [07:45:04]MH_SAM_APDU [07:45:04]CAPDU: 80 11 00 00 [07:45:04]Write to MH i2c: E2 08 00 A7 10 80 11 00 00 00 00 00 00 31 [07:45:04]Write i2c OK [07:45:04]MH_I2C_Read... [07:45:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:45:04]Read from MH i2c: E2 [07:45:04]MH_I2C_Read... [07:45:04]Read from MH i2c: E2 17 00 [07:45:04]MH_I2C_Read... [07:45:04]Read from MH i2c: E2 17 00 A7 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 84 [07:45:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [07:45:04]wFMCommunicate OK [07:45:04]CreateOFDProtocolMessage done [07:45:04]OFDSenderStorePacket 104096 [07:45:04]StoreOFDPacket docnum=104096 [07:45: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 52 20 07 01 BB 68 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 13 00 00 00 F4 03 04 00 82 2F 75 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 A0 96 01 00 35 04 06 00 9F 0E D3 71 66 23 78 63 30 2E 0E 15 7F EA [07:45:04]CheckFolder [07:45:04]dirname=/storage/ofd_packets [07:45:04]CheckFolder done [07:45:04]ProducePacketName [07:45:04]name=ofd_packets/00104096 [07:45:04]NVStorageSaveData ofd_packets/00104096 [07:45:04]File name is /storage/ofd_packets/00104096 [07:45:04]Write 301 bytes [07:45:04]NVStorageSaveData done [07:45:04]OFDSenderStorePacket done [07:45:04]KKMCreateOFDPacket done [07:45:04]NVStorageSaveData kkm_last_timestamp [07:45:04]File name is /storage/kkm_last_timestamp [07:45:04]Write 4 bytes [07:45:04]NVStorageSaveData done [07:45:04]ExternCall_PrintAddStr [07:45:04]wPrintStart [07:45:04]Write to MH i2c: 01 00 00 A8 10 B8 [07:45:04]Write i2c OK [07:45:04]MH_I2C_Read... [07:45:04]Read from MH i2c: 01 [07:45:04]MH_I2C_Read... [07:45:04]Read from MH i2c: 01 07 00 [07:45:04]MH_I2C_Read... [07:45:04]Read from MH i2c: 01 07 00 A8 10 00 00 00 00 00 FF 0F CD [07:45:04]RasterBufferAndPrint [07:45:04]line Счет N : (1)673486 [07:45:04]line ИНН: 02508201610067 [07:45:04]line Контрольно-Кассовый Чек [07:45:04]line ПРОДАЖА [07:45:04]line ТРК (МРК, ГНК) : 32 [07:45:04]line Товар: 2710124130 [07:45:04]line Аи-92-К-5 [07:45:04]line 12.050 * 66.40 [07:45:04]line = 800.12 [07:45:04]line НДС 12% НСП 1% [07:45:04]line > о реализуемом товаре [07:45:04]line ОКРУГЛЕНИЕ: -0.12 [07:45:04]line ИТОГО: 800.00 [07:45:04]line Внесено: 800.00 [07:45:04]line СДАЧА: 0.00 [07:45:04]line НСП 1% : 7.08 [07:45:04]line НДС 12% : 84.97 [07:45:04]line Наличными: 800.00 [07:45:04]line Безнал.: 0.00 [07:45:04]line Место: АЗС № 120 "Партнер Нефть" [07:45:04]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [07:45:04]line СНО: Общий режим [07:45:04]line Чек 19 21.06.2024 07:45 [07:45:04]line Смена: 355 ФФД: 1.0 [07:45:04]line ЗНМ: 0300000164 [07:45:04]line РНМ: 0000000000092785 [07:45:04]line Версия ККМ: 001 [07:45:04]line ФМ: 0000000000875093 [07:45:04]line ФД: 104096 [07:45:04]line ФПД: 174886025782819 [07:45:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T074506&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104096&fm=174886025782819&tin=02508201610067®Number=0000000000092785&sum=80000 [07:45:05]OFD Sender: Processing packet 104096 [packets to send 17, broken 16] [07:45:05]ProducePacketName [07:45:05]name=ofd_packets/00104096 [07:45:05]OFD Sender: To server: pG, [07:45:05]CommunicateWithHost lk.salyk.kg:30040 [07:45:05]ConnectInit lk.salyk.kg [07:45:05]written 0, free lines is 4095 [07:45:05]Connected sock=10 [07:45: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 52 20 07 01 BB 68 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 13 00 00 00 F4 03 04 00 82 2F 75 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 A0 96 01 00 35 04 06 00 9F 0E D3 71 66 23 78 63 30 2E 0E 15 7F EA [07:45: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 1A 26 47 00 37 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 A0 96 01 00 F4 03 04 00 05 D6 74 66 B6 04 01 00 00 63 38 59 88 A9 41 ED D5 [07:45:05]CommunicateWithHost err = 0 [07:45:05]CheckOFDResponse [07:45:05]1017 (14) - 77093643461234 [07:45:05]1041 (16) - 0000000000875093 [07:45:05]1040 (4) - 104096 [07:45:05]1012 (4) - 21.06.2024 01:23 [07:45:05]1206 (1) - 0 [07:45:05]OFD Sender: Remove packet 104096 [07:45:05]ProducePacketName [07:45:05]name=ofd_packets/00104096 [07:45:05]NVStorageDeleteData [07:45:05]Write to MH i2c: 01 00 00 D3 10 E3 [07:45:05]Write i2c OK [07:45:05]MH_I2C_Read... [07:45:05]Read from MH i2c: 01 [07:45:05]MH_I2C_Read... [07:45:05]Read from MH i2c: 01 07 00 [07:45:05]MH_I2C_Read... [07:45:05]Read from MH i2c: 01 07 00 D3 10 00 00 00 00 00 EA 0C E0 [07:45:05]RasterBufferAndPrint [07:45:05]line [07:45:05]line [07:45:05]line [07:45:05]line [07:45:05]line [07:45:05]written 0, free lines is 3313 [07:45:05]MH_Cut [07:45:05]Write to MH i2c: D1 01 00 DA 10 01 BC [07:45:05]Write i2c OK [07:45:05]MH_I2C_Read... [07:45:05]Read from MH i2c: D1 [07:45:05]MH_I2C_Read... [07:45:05]Read from MH i2c: D1 01 00 [07:45:05]MH_I2C_Read... [07:45:05]Read from MH i2c: D1 01 00 DA 10 00 BB [07:45:05]Write to MH i2c: 01 00 00 DB 10 EB [07:45:05]Write i2c OK [07:45:05]MH_I2C_Read... [07:45:06]OFD Sender: No OFD packet to send [07:45:06]*** Cut start [07:45:06]*** Partial cut [07:45:06]*** CUTSNS_PIN = 1 [07:45:06]*** CUTSNS_PIN = 0 [07:45:06]*** Brake cut motor [07:45:07]Read from MH i2c: 01 [07:45:07]MH_I2C_Read... [07:45:07]*** Stop cut motor [07:45:07]*** Cut end [07:45:07]Read from MH i2c: 01 07 00 [07:45:07]MH_I2C_Read... [07:45:07]Read from MH i2c: 01 07 00 DB 10 00 00 00 00 00 FF 0F 00 [07:45:07]process_action close_receipt done [07:45:07]requested_data is exist [07:45:07]produce_requested_data [07:45:07]requested_item fm.sn is exist - process it [07:45:07]wFMCommunicate request_size=4 [07:45:07]MH_SAM_APDU [07:45:07]CAPDU: 80 11 00 00 [07:45:07]Write to MH i2c: E2 08 00 DC 10 80 11 00 00 00 00 00 00 66 [07:45:07]Write i2c OK [07:45:07]MH_I2C_Read... [07:45:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:45:07]Read from MH i2c: E2 [07:45:07]MH_I2C_Read... [07:45:07]Read from MH i2c: E2 17 00 [07:45:07]MH_I2C_Read... [07:45:07]Read from MH i2c: E2 17 00 DC 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 B9 [07:45:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [07:45:07]wFMCommunicate OK [07:45:07]requested_item fd.num is exist - process it [07:45:07]SAM_PROTO_GetFieldsCounters [07:45:07]wFMCommunicate request_size=4 [07:45:07]MH_SAM_APDU [07:45:07]CAPDU: 80 13 00 00 [07:45:07]Write to MH i2c: E2 08 00 DD 10 80 13 00 00 00 00 00 00 69 [07:45:07]Write i2c OK [07:45:07]MH_I2C_Read... [07:45:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:45:07]Read from MH i2c: E2 [07:45:07]MH_I2C_Read... [07:45:07]Read from MH i2c: E2 62 00 [07:45:07]MH_I2C_Read... [07:45:07]Read from MH i2c: E2 62 00 DD 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 A0 96 01 00 0E 04 04 00 63 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 64 [07:45: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 A0 96 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:45:07]wFMCommunicate OK [07:45:07]SAM_PROTO_GetFieldsCounters done [07:45:07]requested_item shift.num is exist - process it [07:45:07]requested_item shift.opened is exist - process it [07:45:07]req_shift_opened [07:45:07]FM_GetShiftState [07:45:07]SAM_PROTO_GetShiftState [07:45:07]wFMCommunicate request_size=4 [07:45:07]MH_SAM_APDU [07:45:07]CAPDU: 80 13 01 00 [07:45:07]Write to MH i2c: E2 08 00 DE 10 80 13 01 00 00 00 00 00 6B [07:45:07]Write i2c OK [07:45:07]MH_I2C_Read... [07:45:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:45:07]Read from MH i2c: E2 [07:45:07]MH_I2C_Read... [07:45:07]Read from MH i2c: E2 0E 00 [07:45:07]MH_I2C_Read... [07:45:07]Read from MH i2c: E2 0E 00 DE 10 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 7E [07:45:07]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [07:45:07]wFMCommunicate OK [07:45:07]SAM_PROTO_GetShiftState done [07:45:07]FM_GetShiftState done [07:45:07]req_shift_opened done [07:45:07]requested_item shift.open_date is exist - process it [07:45:07]req_shift_open_date [07:45:07]req_shift_open_date done [07:45:07]produce_requested_data done [07:45:07]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104096,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [07:45:07]process_action_free close_receipt [07:45:07]json_value_free [07:45:07]json_value_free done [07:45:07]process_json_proto returns [07:45:07]Send response to host [07:45:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104096,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [07:45:07]free response buf [07:45:07]execute_script done [07:45:07]execute_script returns [07:45:07]free content buf [07:45:07]Sock 9.Close socket [07:45:07]Sock 9.Thread stoped [07:45:11]OFD Sender: No OFD packet to send [07:45:16]OFD Sender: No OFD packet to send [07:45:21]OFD Sender: No OFD packet to send [07:45:26]OFD Sender: No OFD packet to send [07:45:31]OFD Sender: No OFD packet to send [07:45:36]OFD Sender: No OFD packet to send [07:45:41]OFD Sender: No OFD packet to send [07:45:46]OFD Sender: No OFD packet to send [07:45:51]OFD Sender: No OFD packet to send [07:45:56]OFD Sender: No OFD packet to send [07:46:01]OFD Sender: No OFD packet to send [07:46:06]OFD Sender: No OFD packet to send [07:46:11]OFD Sender: No OFD packet to send [07:46:16]OFD Sender: No OFD packet to send [07:46:21]OFD Sender: No OFD packet to send [07:46:26]OFD Sender: No OFD packet to send [07:46:31]OFD Sender: No OFD packet to send [07:46:36]OFD Sender: No OFD packet to send [07:46:41]OFD Sender: No OFD packet to send [07:46:46]OFD Sender: No OFD packet to send [07:46:51]OFD Sender: No OFD packet to send [07:46:56]OFD Sender: No OFD packet to send [07:47:01]OFD Sender: No OFD packet to send [07:47:06]OFD Sender: No OFD packet to send [07:47:11]OFD Sender: No OFD packet to send [07:47:16]OFD Sender: No OFD packet to send [07:47:21]OFD Sender: No OFD packet to send [07:47:26]OFD Sender: No OFD packet to send [07:47:31]OFD Sender: No OFD packet to send [07:47:36]OFD Sender: No OFD packet to send [07:47:41]OFD Sender: No OFD packet to send [07:47:46]OFD Sender: No OFD packet to send [07:47:51]OFD Sender: No OFD packet to send [07:47:56]OFD Sender: No OFD packet to send [07:48:01]OFD Sender: No OFD packet to send [07:48:06]OFD Sender: No OFD packet to send [07:48:11]OFD Sender: No OFD packet to send [07:48:16]OFD Sender: No OFD packet to send [07:48:21]OFD Sender: No OFD packet to send [07:48:26]OFD Sender: No OFD packet to send [07:48:31]OFD Sender: No OFD packet to send [07:48:36]OFD Sender: No OFD packet to send [07:48:41]OFD Sender: No OFD packet to send [07:48:46]OFD Sender: No OFD packet to send [07:48:51]OFD Sender: No OFD packet to send [07:48:56]OFD Sender: No OFD packet to send [07:49:01]OFD Sender: No OFD packet to send [07:49:06]OFD Sender: No OFD packet to send [07:49:11]OFD Sender: No OFD packet to send [07:49:16]OFD Sender: No OFD packet to send [07:49:21]OFD Sender: No OFD packet to send [07:49:26]OFD Sender: No OFD packet to send [07:49:31]OFD Sender: No OFD packet to send [07:49:36]OFD Sender: No OFD packet to send [07:49:41]OFD Sender: No OFD packet to send [07:49:46]OFD Sender: No OFD packet to send [07:49:51]OFD Sender: No OFD packet to send [07:49:56]OFD Sender: No OFD packet to send [07:50:01]OFD Sender: No OFD packet to send [07:50:06]OFD Sender: No OFD packet to send [07:50:11]OFD Sender: No OFD packet to send [07:50:16]OFD Sender: No OFD packet to send [07:50:21]OFD Sender: No OFD packet to send [07:50:26]OFD Sender: No OFD packet to send [07:50:31]OFD Sender: No OFD packet to send [07:50:36]OFD Sender: No OFD packet to send [07:50:41]OFD Sender: No OFD packet to send [07:50:46]OFD Sender: No OFD packet to send [07:50:51]OFD Sender: No OFD packet to send [07:50:56]OFD Sender: No OFD packet to send [07:51:01]OFD Sender: No OFD packet to send [07:51:06]OFD Sender: No OFD packet to send [07:51:11]OFD Sender: No OFD packet to send [07:51:16]OFD Sender: No OFD packet to send [07:51:21]OFD Sender: No OFD packet to send [07:51:26]OFD Sender: No OFD packet to send [07:51:31]OFD Sender: No OFD packet to send [07:51:36]OFD Sender: No OFD packet to send [07:51:41]OFD Sender: No OFD packet to send [07:51:46]OFD Sender: No OFD packet to send [07:51:51]OFD Sender: No OFD packet to send [07:51:56]OFD Sender: No OFD packet to send [07:52:01]OFD Sender: No OFD packet to send [07:52:06]accept exits with 7 [07:52:06]New connection [07:52:06]New thread 3066715492 created [07:52:06]Thread 3066858852 joined [07:52:06]Waiting for new connection... [07:52:06] Sock 7.Parse request [07:52:06]Sock 7.Check first char [07:52:06]Sock 7.First char is OK [07:52:06]request: POST /json_proto HTTP/1.0 [07:52:06]Method: POST [07:52:06]URL: /json_proto [07:52:06]Method is POST - this is cgi request [07:52:06]url: /json_proto [07:52:06]query_string will be loaded in cgi processing [07:52:06]execute_cgi json_proto POST (null) [07:52:06]execute_cgi path=json_proto method=POST [07:52:06]POST find Content-Length [07:52:06]Host: 172.17.38.133:8080 [07:52:06]Content-Length: 677 [07:52:06]Content-Type: application/json [07:52:06] [07:52:06]POST finish read [07:52:06]Found Content-Length = 677 [07:52:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673488", "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.620, "sum" : 240.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 240.00, "total" : 240.00, "payments": [ { "type": 0, "sum" : 240.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:52:06]execute_script... [07:52:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673488", "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.620, "sum" : 240.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 240.00, "total" : 240.00, "payments": [ { "type": 0, "sum" : 240.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:52:06]POST & json_proto [07:52:06]process_json_proto [07:52:06]json parsed OK: [07:52:06]protocol is kg_v1.0 [07:52:06]action value=close_receipt [07:52:06]process_action close_receipt [07:52:06]cmd_close_receipt [07:52:06]MH_GetDate [07:52:06]Write to MH i2c: F0 00 00 DF 10 DE [07:52:06]Write i2c OK [07:52:06]MH_I2C_Read... [07:52:06]Read from MH i2c: F0 [07:52:06]MH_I2C_Read... [07:52:06]Read from MH i2c: F0 09 00 [07:52:06]MH_I2C_Read... [07:52:06]Read from MH i2c: F0 09 00 DF 10 00 29 31 75 66 BD 8F 7C 64 48 [07:52:06]GetLastDocTimeStamp 1718955906 [07:52:06]current date 1718956329 [07:52:06]FM_GetShiftState [07:52:06]SAM_PROTO_GetShiftState [07:52:06]wFMCommunicate request_size=4 [07:52:06]MH_SAM_APDU [07:52:06]CAPDU: 80 13 01 00 [07:52:06]Write to MH i2c: E2 08 00 E0 10 80 13 01 00 00 00 00 00 6D [07:52:06]Write i2c OK [07:52:06]MH_I2C_Read... [07:52:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:52:06]Read from MH i2c: E2 [07:52:06]MH_I2C_Read... [07:52:06]Read from MH i2c: E2 0E 00 [07:52:06]MH_I2C_Read... [07:52:06]Read from MH i2c: E2 0E 00 E0 10 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 80 [07:52:06]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [07:52:06]wFMCommunicate OK [07:52:06]SAM_PROTO_GetShiftState done [07:52:06]FM_GetShiftState done [07:52:06]opened in 1718929509 [07:52:06]opened+sec_in_day 1719015909 [07:52:06]quantity*price = 24036 [07:52:06]sum+1 = 24038 [07:52:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 240.00 Внесено: 240.00 СДАЧА: 0.00 НСП 1% : 2.13 НДС 12% : 25.53 Наличными: 240.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 20 21.06.2024 07:52 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104097 ФПД: 44028618896038 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T075209&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104097&fm=44028618896038&tin=02508201610067®Number=0000000000092785&sum=24000 [07:52:07]StoreToDocumentArchive [07:52:07]shift 355 fd 104097 [07:52:07]save to /storage/0355/doc_00104097 [07:52:07]save last doc name /storage/0355/doc_00104097 to /storage/kkm_last_doc_name [07:52:07]save OK [07:52:07]Clear old archive folders... [07:52:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:52:07]tlvbuf is 0110CC30 [07:52:07]SAM_PROTO_ClearQueue [07:52:07]wFMCommunicate request_size=4 [07:52:07]MH_SAM_APDU [07:52:07]CAPDU: 80 09 00 00 [07:52:07]Write to MH i2c: E2 08 00 ED 10 80 09 00 00 00 00 00 00 6F [07:52:07]Write i2c OK [07:52:07]MH_I2C_Read... [07:52:07]Read from MH i2c: E2 [07:52:07]MH_I2C_Read... [07:52:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:52:07]Read from MH i2c: E2 03 00 [07:52:07]MH_I2C_Read... [07:52:07]Read from MH i2c: E2 03 00 ED 10 00 90 00 71 [07:52:07]RAPDU: 90 00 [07:52:07]wFMCommunicate OK [07:52:07]SAM_PROTO_ClearQueue done [07:52:07]KKMCreateOFDPacket [07:52:07]OFDProtocolAddRootSTLVToBuf [07:52:07]FM_MakeSignedData [07:52:07]FM_MakeSignedData [07:52:07]SAM_PROTO_SignData [07:52:07]wFMCommunicate request_size=4 [07:52:07]MH_SAM_APDU [07:52:07]CAPDU: 80 0D 01 02 [07:52:07]Write to MH i2c: E2 08 00 EE 10 80 0D 01 02 00 00 00 00 77 [07:52:07]Write i2c OK [07:52:07]MH_I2C_Read... [07:52:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:52:07]Read from MH i2c: E2 [07:52:07]MH_I2C_Read... [07:52:07]Read from MH i2c: E2 03 00 [07:52:07]MH_I2C_Read... [07:52:07]Read from MH i2c: E2 03 00 EE 10 00 90 00 72 [07:52:07]RAPDU: 90 00 [07:52:07]wFMCommunicate OK [07:52:07]wFMCommunicate request_size=255 [07:52:07]MH_SAM_APDU [07:52:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 0E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E5 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 29 31 75 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 A1 96 01 00 35 04 06 00 28 [07:52:07]Write to MH i2c: E2 02 01 EF 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 24 0E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E5 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 29 31 75 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 A1 96 01 00 35 04 06 00 28 00 00 22 [07:52:07]Write i2c OK [07:52:07]MH_I2C_Read... [07:52:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:52:07]Read from MH i2c: E2 [07:52:07]MH_I2C_Read... [07:52:07]Read from MH i2c: E2 03 00 [07:52:07]MH_I2C_Read... [07:52:07]Read from MH i2c: E2 03 00 EF 10 00 90 00 73 [07:52:07]RAPDU: 90 00 [07:52:07]wFMCommunicate OK [07:52:07]wFMCommunicate request_size=10 [07:52:07]MH_SAM_APDU [07:52:07]CAPDU: 80 0D 02 02 05 0B 36 30 72 A6 [07:52:07]Write to MH i2c: E2 0D 00 F0 10 80 0D 02 02 05 00 0B 36 30 72 A6 00 00 0D [07:52:07]Write i2c OK [07:52:07]MH_I2C_Read... [07:52:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:52:07]Read from MH i2c: E2 [07:52:07]MH_I2C_Read... [07:52:07]Read from MH i2c: E2 03 00 [07:52:07]MH_I2C_Read... [07:52:07]Read from MH i2c: E2 03 00 F0 10 00 90 00 74 [07:52:07]RAPDU: 90 00 [07:52:07]wFMCommunicate OK [07:52:07]wFMCommunicate request_size=4 [07:52:07]MH_SAM_APDU [07:52:07]CAPDU: 80 0D 03 02 [07:52:07]Write to MH i2c: E2 08 00 F1 10 80 0D 03 02 00 00 00 00 7C [07:52:07]Write i2c OK [07:52:07]MH_I2C_Read... [07:52:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:52:07]Read from MH i2c: E2 [07:52:07]MH_I2C_Read... [07:52:07]Read from MH i2c: E2 0B 00 [07:52:07]MH_I2C_Read... [07:52:07]Read from MH i2c: E2 0B 00 F1 10 00 F9 A3 FA 23 DA 52 61 2D 90 00 F0 [07:52:07]RAPDU: F9 A3 FA 23 DA 52 61 2D 90 00 [07:52:07]wFMCommunicate OK [07:52:07]SAM_PROTO_SignData done [07:52:07]FM_MakeSignedData done [07:52:07]CreateOFDProtocolMessage [07:52:07]wFMCommunicate request_size=4 [07:52:07]MH_SAM_APDU [07:52:07]CAPDU: 80 11 00 00 [07:52:07]Write to MH i2c: E2 08 00 F2 10 80 11 00 00 00 00 00 00 7C [07:52:07]Write i2c OK [07:52:07]MH_I2C_Read... [07:52:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:52:07]Read from MH i2c: E2 [07:52:07]MH_I2C_Read... [07:52:07]Read from MH i2c: E2 17 00 [07:52:07]MH_I2C_Read... [07:52:07]Read from MH i2c: E2 17 00 F2 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 CF [07:52:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [07:52:07]wFMCommunicate OK [07:52:07]CreateOFDProtocolMessage done [07:52:07]OFDSenderStorePacket 104097 [07:52:07]StoreOFDPacket docnum=104097 [07:52: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 A7 64 07 01 ED 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 24 0E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E5 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 29 31 75 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 A1 96 01 00 35 04 06 00 28 0B 36 30 72 A6 F9 A3 FA 23 DA 52 61 2D [07:52:07]CheckFolder [07:52:07]dirname=/storage/ofd_packets [07:52:07]CheckFolder done [07:52:07]ProducePacketName [07:52:07]name=ofd_packets/00104097 [07:52:07]NVStorageSaveData ofd_packets/00104097 [07:52:07]File name is /storage/ofd_packets/00104097 [07:52:07]Write 301 bytes [07:52:07]NVStorageSaveData done [07:52:07]OFDSenderStorePacket done [07:52:07]KKMCreateOFDPacket done [07:52:07]NVStorageSaveData kkm_last_timestamp [07:52:07]File name is /storage/kkm_last_timestamp [07:52:07]Write 4 bytes [07:52:07]NVStorageSaveData done [07:52:07]ExternCall_PrintAddStr [07:52:07]wPrintStart [07:52:07]Write to MH i2c: 01 00 00 F3 10 03 [07:52:07]Write i2c OK [07:52:07]MH_I2C_Read... [07:52:07]Read from MH i2c: 01 [07:52:07]MH_I2C_Read... [07:52:07]Read from MH i2c: 01 07 00 [07:52:07]MH_I2C_Read... [07:52:07]Read from MH i2c: 01 07 00 F3 10 00 00 00 00 00 FF 0F 18 [07:52:07]RasterBufferAndPrint [07:52:07]line Счет N : (1)673488 [07:52:07]line ИНН: 02508201610067 [07:52:07]line Контрольно-Кассовый Чек [07:52:07]line ПРОДАЖА [07:52:07]line ТРК (МРК, ГНК) : 32 [07:52:07]line Товар: 2710124130 [07:52:07]line Аи-92-К-5 [07:52:07]line 3.620 * 66.40 [07:52:07]line = 240.37 [07:52:07]line НДС 12% НСП 1% [07:52:07]line > о реализуемом товаре [07:52:07]line ОКРУГЛЕНИЕ: -0.37 [07:52:07]line ИТОГО: 240.00 [07:52:07]line Внесено: 240.00 [07:52:07]line СДАЧА: 0.00 [07:52:07]line НСП 1% : 2.13 [07:52:07]line НДС 12% : 25.53 [07:52:07]line Наличными: 240.00 [07:52:07]line Безнал.: 0.00 [07:52:07]line Место: АЗС № 120 "Партнер Нефть" [07:52:07]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [07:52:07]line СНО: Общий режим [07:52:07]line Чек 20 21.06.2024 07:52 [07:52:07]line Смена: 355 ФФД: 1.0 [07:52:07]line ЗНМ: 0300000164 [07:52:07]line РНМ: 0000000000092785 [07:52:07]line Версия ККМ: 001 [07:52:07]line ФМ: 0000000000875093 [07:52:07]line ФД: 104097 [07:52:07]line ФПД: 44028618896038 [07:52:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T075209&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104097&fm=44028618896038&tin=02508201610067®Number=0000000000092785&sum=24000 [07:52:08]written 0, free lines is 4095 [07:52:08]OFD Sender: Processing packet 104097 [packets to send 17, broken 16] [07:52:08]ProducePacketName [07:52:08]name=ofd_packets/00104097 [07:52:08]OFD Sender: To server: pG, [07:52:08]CommunicateWithHost lk.salyk.kg:30040 [07:52:08]ConnectInit lk.salyk.kg [07:52:08]Connected sock=10 [07:52:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 A7 64 07 01 ED 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 24 0E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E5 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 29 31 75 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 A1 96 01 00 35 04 06 00 28 0B 36 30 72 A6 F9 A3 FA 23 DA 52 61 2D [07:52: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 EA 57 47 00 BD 36 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 A1 96 01 00 F4 03 04 00 AC D7 74 66 B6 04 01 00 00 50 40 CF 6B F2 BA A3 88 [07:52:08]CommunicateWithHost err = 0 [07:52:08]CheckOFDResponse [07:52:08]1017 (14) - 77093643461234 [07:52:08]1041 (16) - 0000000000875093 [07:52:08]1040 (4) - 104097 [07:52:08]1012 (4) - 21.06.2024 01:30 [07:52:08]1206 (1) - 0 [07:52:08]OFD Sender: Remove packet 104097 [07:52:08]ProducePacketName [07:52:08]name=ofd_packets/00104097 [07:52:08]NVStorageDeleteData [07:52:08]Write to MH i2c: 01 00 00 1E 11 2F [07:52:08]Write i2c OK [07:52:08]MH_I2C_Read... [07:52:08]Read from MH i2c: 01 [07:52:08]MH_I2C_Read... [07:52:08]Read from MH i2c: 01 07 00 [07:52:08]MH_I2C_Read... [07:52:08]Read from MH i2c: 01 07 00 1E 11 00 00 00 00 00 DA 0C 1C [07:52:08]RasterBufferAndPrint [07:52:08]line [07:52:08]line [07:52:08]line [07:52:08]line [07:52:08]line [07:52:08]written 0, free lines is 3298 [07:52:08]MH_Cut [07:52:08]Write to MH i2c: D1 01 00 25 11 01 08 [07:52:08]Write i2c OK [07:52:08]MH_I2C_Read... [07:52:08]Read from MH i2c: D1 [07:52:08]MH_I2C_Read... [07:52:08]Read from MH i2c: D1 01 00 [07:52:08]MH_I2C_Read... [07:52:08]Read from MH i2c: D1 01 00 25 11 00 07 [07:52:08]Write to MH i2c: 01 00 00 26 11 37 [07:52:08]Write i2c OK [07:52:08]MH_I2C_Read... [07:52:09]OFD Sender: No OFD packet to send [07:52:09]*** Cut start [07:52:09]*** Partial cut [07:52:09]*** CUTSNS_PIN = 1 [07:52:09]*** CUTSNS_PIN = 0 [07:52:09]*** Brake cut motor [07:52:09]Read from MH i2c: 01 [07:52:09]MH_I2C_Read... [07:52:09]*** Stop cut motor [07:52:09]*** Cut end [07:52:09]Read from MH i2c: 01 07 00 [07:52:09]MH_I2C_Read... [07:52:09]Read from MH i2c: 01 07 00 26 11 00 00 00 00 00 FF 0F 4C [07:52:09]process_action close_receipt done [07:52:09]requested_data is exist [07:52:09]produce_requested_data [07:52:09]requested_item fm.sn is exist - process it [07:52:09]wFMCommunicate request_size=4 [07:52:09]MH_SAM_APDU [07:52:09]CAPDU: 80 11 00 00 [07:52:09]Write to MH i2c: E2 08 00 27 11 80 11 00 00 00 00 00 00 B2 [07:52:09]Write i2c OK [07:52:09]MH_I2C_Read... [07:52:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:52:10]Read from MH i2c: E2 [07:52:10]MH_I2C_Read... [07:52:10]Read from MH i2c: E2 17 00 [07:52:10]MH_I2C_Read... [07:52:10]Read from MH i2c: E2 17 00 27 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 05 [07:52:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [07:52:10]wFMCommunicate OK [07:52:10]requested_item fd.num is exist - process it [07:52:10]SAM_PROTO_GetFieldsCounters [07:52:10]wFMCommunicate request_size=4 [07:52:10]MH_SAM_APDU [07:52:10]CAPDU: 80 13 00 00 [07:52:10]Write to MH i2c: E2 08 00 28 11 80 13 00 00 00 00 00 00 B5 [07:52:10]Write i2c OK [07:52:10]MH_I2C_Read... [07:52:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:52:10]Read from MH i2c: E2 [07:52:10]MH_I2C_Read... [07:52:10]Read from MH i2c: E2 62 00 [07:52:10]MH_I2C_Read... [07:52:10]Read from MH i2c: E2 62 00 28 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 A1 96 01 00 0E 04 04 00 63 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 B4 [07:52: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 A1 96 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:52:10]wFMCommunicate OK [07:52:10]SAM_PROTO_GetFieldsCounters done [07:52:10]requested_item shift.num is exist - process it [07:52:10]requested_item shift.opened is exist - process it [07:52:10]req_shift_opened [07:52:10]FM_GetShiftState [07:52:10]SAM_PROTO_GetShiftState [07:52:10]wFMCommunicate request_size=4 [07:52:10]MH_SAM_APDU [07:52:10]CAPDU: 80 13 01 00 [07:52:10]Write to MH i2c: E2 08 00 29 11 80 13 01 00 00 00 00 00 B7 [07:52:10]Write i2c OK [07:52:10]MH_I2C_Read... [07:52:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:52:10]Read from MH i2c: E2 [07:52:10]MH_I2C_Read... [07:52:10]Read from MH i2c: E2 0E 00 [07:52:10]MH_I2C_Read... [07:52:10]Read from MH i2c: E2 0E 00 29 11 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 CA [07:52:10]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [07:52:10]wFMCommunicate OK [07:52:10]SAM_PROTO_GetShiftState done [07:52:10]FM_GetShiftState done [07:52:10]req_shift_opened done [07:52:10]requested_item shift.open_date is exist - process it [07:52:10]req_shift_open_date [07:52:10]req_shift_open_date done [07:52:10]produce_requested_data done [07:52:10]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104097,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [07:52:10]process_action_free close_receipt [07:52:10]json_value_free [07:52:10]json_value_free done [07:52:10]process_json_proto returns [07:52:10]Send response to host [07:52:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104097,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [07:52:10]free response buf [07:52:10]execute_script done [07:52:10]execute_script returns [07:52:10]free content buf [07:52:10]Sock 7.Close socket [07:52:10]Sock 7.Thread stoped [07:52:10]accept exits with 9 [07:52:10]New connection [07:52:10]New thread 3066858852 created [07:52:10]Thread 3066715492 joined [07:52:10]Waiting for new connection... [07:52:10] Sock 9.Parse request [07:52:10]Sock 9.Check first char [07:52:10]Sock 9.First char is OK [07:52:10]request: POST /json_proto HTTP/1.0 [07:52:10]Method: POST [07:52:10]URL: /json_proto [07:52:10]Method is POST - this is cgi request [07:52:10]url: /json_proto [07:52:10]query_string will be loaded in cgi processing [07:52:10]execute_cgi json_proto POST (null) [07:52:10]execute_cgi path=json_proto method=POST [07:52:10]POST find Content-Length [07:52:10]Host: 172.17.38.133:8080 [07:52:10]Content-Length: 682 [07:52:10]Content-Type: application/json [07:52:10] [07:52:10]POST finish read [07:52:10]Found Content-Length = 682 [07:52:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673487", "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" ] } } [07:52:10]execute_script... [07:52:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673487", "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" ] } } [07:52:10]POST & json_proto [07:52:10]process_json_proto [07:52:10]json parsed OK: [07:52:10]protocol is kg_v1.0 [07:52:10]action value=close_receipt [07:52:10]process_action close_receipt [07:52:10]cmd_close_receipt [07:52:10]MH_GetDate [07:52:10]Write to MH i2c: F0 00 00 2A 11 2A [07:52:10]Write i2c OK [07:52:10]MH_I2C_Read... [07:52:10]Read from MH i2c: F0 [07:52:10]MH_I2C_Read... [07:52:10]Read from MH i2c: F0 09 00 [07:52:10]MH_I2C_Read... [07:52:10]Read from MH i2c: F0 09 00 2A 11 00 2D 31 75 66 BD 8F 7C 64 98 [07:52:10]GetLastDocTimeStamp 1718956329 [07:52:10]current date 1718956333 [07:52:10]FM_GetShiftState [07:52:10]SAM_PROTO_GetShiftState [07:52:10]wFMCommunicate request_size=4 [07:52:10]MH_SAM_APDU [07:52:10]CAPDU: 80 13 01 00 [07:52:10]Write to MH i2c: E2 08 00 2B 11 80 13 01 00 00 00 00 00 B9 [07:52:10]Write i2c OK [07:52:10]MH_I2C_Read... [07:52:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:52:10]Read from MH i2c: E2 [07:52:10]MH_I2C_Read... [07:52:10]Read from MH i2c: E2 0E 00 [07:52:10]MH_I2C_Read... [07:52:10]Read from MH i2c: E2 0E 00 2B 11 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 CC [07:52:10]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [07:52:10]wFMCommunicate OK [07:52:10]SAM_PROTO_GetShiftState done [07:52:10]FM_GetShiftState done [07:52:10]opened in 1718929509 [07:52:10]opened+sec_in_day 1719015909 [07:52:10]quantity*price = 300061 [07:52:10]sum+1 = 300063 [07:52:10]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 СНО: Общий режим Чек 21 21.06.2024 07:52 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104098 ФПД: 265300623545498 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T075213&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104098&fm=265300623545498&tin=02508201610067®Number=0000000000092785&sum=300000 [07:52:11]StoreToDocumentArchive [07:52:11]shift 355 fd 104098 [07:52:11]save to /storage/0355/doc_00104098 [07:52:11]save last doc name /storage/0355/doc_00104098 to /storage/kkm_last_doc_name [07:52:11]save OK [07:52:11]Clear old archive folders... [07:52:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:52:11]tlvbuf is 01167230 [07:52:11]SAM_PROTO_ClearQueue [07:52:11]wFMCommunicate request_size=4 [07:52:11]MH_SAM_APDU [07:52:11]CAPDU: 80 09 00 00 [07:52:11]Write to MH i2c: E2 08 00 38 11 80 09 00 00 00 00 00 00 BB [07:52:11]Write i2c OK [07:52:11]MH_I2C_Read... [07:52:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:52:11]Read from MH i2c: E2 [07:52:11]MH_I2C_Read... [07:52:11]Read from MH i2c: E2 03 00 [07:52:11]MH_I2C_Read... [07:52:11]Read from MH i2c: E2 03 00 38 11 00 90 00 BD [07:52:11]RAPDU: 90 00 [07:52:11]wFMCommunicate OK [07:52:11]SAM_PROTO_ClearQueue done [07:52:11]KKMCreateOFDPacket [07:52:11]OFDProtocolAddRootSTLVToBuf [07:52:11]FM_MakeSignedData [07:52:11]FM_MakeSignedData [07:52:11]SAM_PROTO_SignData [07:52:11]wFMCommunicate request_size=4 [07:52:11]MH_SAM_APDU [07:52:11]CAPDU: 80 0D 01 02 [07:52:11]Write to MH i2c: E2 08 00 39 11 80 0D 01 02 00 00 00 00 C3 [07:52:11]Write i2c OK [07:52:11]MH_I2C_Read... [07:52:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:52:11]Read from MH i2c: E2 [07:52:11]MH_I2C_Read... [07:52:11]Read from MH i2c: E2 03 00 [07:52:11]MH_I2C_Read... [07:52:11]Read from MH i2c: E2 03 00 39 11 00 90 00 BE [07:52:11]RAPDU: 90 00 [07:52:11]wFMCommunicate OK [07:52:11]wFMCommunicate request_size=255 [07:52:11]MH_SAM_APDU [07:52:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 15 00 00 00 F4 03 04 00 2D 31 75 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 A2 96 01 00 35 04 06 00 F1 [07:52:11]Write to MH i2c: E2 02 01 3A 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 15 00 00 00 F4 03 04 00 2D 31 75 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 A2 96 01 00 35 04 06 00 F1 00 00 F0 [07:52:11]Write i2c OK [07:52:11]MH_I2C_Read... [07:52:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:52:12]Read from MH i2c: E2 [07:52:12]MH_I2C_Read... [07:52:12]Read from MH i2c: E2 03 00 [07:52:12]MH_I2C_Read... [07:52:12]Read from MH i2c: E2 03 00 3A 11 00 90 00 BF [07:52:12]RAPDU: 90 00 [07:52:12]wFMCommunicate OK [07:52:12]wFMCommunicate request_size=10 [07:52:12]MH_SAM_APDU [07:52:12]CAPDU: 80 0D 02 02 05 4A 1D 6C D4 9A [07:52:12]Write to MH i2c: E2 0D 00 3B 11 80 0D 02 02 05 00 4A 1D 6C D4 9A 00 00 11 [07:52:12]Write i2c OK [07:52:12]MH_I2C_Read... [07:52:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:52:12]Read from MH i2c: E2 [07:52:12]MH_I2C_Read... [07:52:12]Read from MH i2c: E2 03 00 [07:52:12]MH_I2C_Read... [07:52:12]Read from MH i2c: E2 03 00 3B 11 00 90 00 C0 [07:52:12]RAPDU: 90 00 [07:52:12]wFMCommunicate OK [07:52:12]wFMCommunicate request_size=4 [07:52:12]MH_SAM_APDU [07:52:12]CAPDU: 80 0D 03 02 [07:52:12]Write to MH i2c: E2 08 00 3C 11 80 0D 03 02 00 00 00 00 C8 [07:52:12]Write i2c OK [07:52:12]MH_I2C_Read... [07:52:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:52:12]Read from MH i2c: E2 [07:52:12]MH_I2C_Read... [07:52:12]Read from MH i2c: E2 0B 00 [07:52:12]MH_I2C_Read... [07:52:12]Read from MH i2c: E2 0B 00 3C 11 00 50 42 E5 4A 7E 74 B4 37 90 00 67 [07:52:12]RAPDU: 50 42 E5 4A 7E 74 B4 37 90 00 [07:52:12]wFMCommunicate OK [07:52:12]SAM_PROTO_SignData done [07:52:12]FM_MakeSignedData done [07:52:12]CreateOFDProtocolMessage [07:52:12]wFMCommunicate request_size=4 [07:52:12]MH_SAM_APDU [07:52:12]CAPDU: 80 11 00 00 [07:52:12]Write to MH i2c: E2 08 00 3D 11 80 11 00 00 00 00 00 00 C8 [07:52:12]Write i2c OK [07:52:12]MH_I2C_Read... [07:52:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:52:12]Read from MH i2c: E2 [07:52:12]MH_I2C_Read... [07:52:12]Read from MH i2c: E2 17 00 [07:52:12]MH_I2C_Read... [07:52:12]Read from MH i2c: E2 17 00 3D 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 1B [07: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 [07:52:12]wFMCommunicate OK [07:52:12]CreateOFDProtocolMessage done [07:52:12]OFDSenderStorePacket 104098 [07:52:12]StoreOFDPacket docnum=104098 [07: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 47 1E 07 01 32 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 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 15 00 00 00 F4 03 04 00 2D 31 75 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 A2 96 01 00 35 04 06 00 F1 4A 1D 6C D4 9A 50 42 E5 4A 7E 74 B4 37 [07:52:12]CheckFolder [07:52:12]dirname=/storage/ofd_packets [07:52:12]CheckFolder done [07:52:12]ProducePacketName [07:52:12]name=ofd_packets/00104098 [07:52:12]NVStorageSaveData ofd_packets/00104098 [07:52:12]File name is /storage/ofd_packets/00104098 [07:52:12]Write 301 bytes [07:52:12]NVStorageSaveData done [07:52:12]OFDSenderStorePacket done [07:52:12]KKMCreateOFDPacket done [07:52:12]NVStorageSaveData kkm_last_timestamp [07:52:12]File name is /storage/kkm_last_timestamp [07:52:12]Write 4 bytes [07:52:12]NVStorageSaveData done [07:52:12]ExternCall_PrintAddStr [07:52:12]wPrintStart [07:52:12]Write to MH i2c: 01 00 00 3E 11 4F [07:52:12]Write i2c OK [07:52:12]MH_I2C_Read... [07:52:12]Read from MH i2c: 01 [07:52:12]MH_I2C_Read... [07:52:12]Read from MH i2c: 01 07 00 [07:52:12]MH_I2C_Read... [07:52:12]Read from MH i2c: 01 07 00 3E 11 00 00 00 00 00 FF 0F 64 [07:52:12]RasterBufferAndPrint [07:52:12]line Счет N : (1)673487 [07:52:12]line ИНН: 02508201610067 [07:52:12]line Контрольно-Кассовый Чек [07:52:12]line ПРОДАЖА [07:52:12]line ТРК (МРК, ГНК) : 42 [07:52:12]line Товар: 2710124130 [07:52:12]line Аи-92-К-5 [07:52:12]line 45.190 * 66.40 [07:52:12]line = 3000.62 [07:52:12]line НДС 12% НСП 1% [07:52:12]line > о реализуемом товаре [07:52:12]line ОКРУГЛЕНИЕ: -0.62 [07:52:12]line ИТОГО: 3000.00 [07:52:12]line Внесено: 3000.00 [07:52:12]line СДАЧА: 0.00 [07:52:12]line НСП 1% : 26.55 [07:52:12]line НДС 12% : 318.65 [07:52:12]line Наличными: 3000.00 [07:52:12]line Безнал.: 0.00 [07:52:13]line Место: АЗС № 120 "Партнер Нефть" [07:52:13]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [07:52:13]line СНО: Общий режим [07:52:13]line Чек 21 21.06.2024 07:52 [07:52:13]line Смена: 355 ФФД: 1.0 [07:52:13]line ЗНМ: 0300000164 [07:52:13]line РНМ: 0000000000092785 [07:52:13]line Версия ККМ: 001 [07:52:13]line ФМ: 0000000000875093 [07:52:13]line ФД: 104098 [07:52:13]line ФПД: 265300623545498 [07:52:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T075213&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104098&fm=265300623545498&tin=02508201610067®Number=0000000000092785&sum=300000 [07:52:13]OFD Sender: Processing packet 104098 [packets to send 17, broken 16] [07:52:13]ProducePacketName [07:52:13]name=ofd_packets/00104098 [07:52:13]OFD Sender: To server: pG, [07:52:13]CommunicateWithHost lk.salyk.kg:30040 [07:52:13]ConnectInit lk.salyk.kg [07:52:13]written 0, free lines is 4095 [07:52:13]Connected sock=11 [07: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 47 1E 07 01 32 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 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 15 00 00 00 F4 03 04 00 2D 31 75 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 A2 96 01 00 35 04 06 00 F1 4A 1D 6C D4 9A 50 42 E5 4A 7E 74 B4 37 [07: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 0A 8D 47 00 6D C7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 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 96 01 00 F4 03 04 00 B1 D7 74 66 B6 04 01 00 00 5C 67 66 41 6A 68 95 90 [07:52:13]CommunicateWithHost err = 0 [07:52:13]CheckOFDResponse [07:52:13]1017 (14) - 77093643461234 [07:52:13]1041 (16) - 0000000000875093 [07:52:13]1040 (4) - 104098 [07:52:13]1012 (4) - 21.06.2024 01:30 [07:52:13]1206 (1) - 0 [07:52:13]OFD Sender: Remove packet 104098 [07:52:13]ProducePacketName [07:52:13]name=ofd_packets/00104098 [07:52:13]NVStorageDeleteData [07:52:13]Write to MH i2c: 01 00 00 69 11 7A [07:52:13]Write i2c OK [07:52:13]MH_I2C_Read... [07:52:13]Read from MH i2c: 01 [07:52:13]MH_I2C_Read... [07:52:13]Read from MH i2c: 01 07 00 [07:52:13]MH_I2C_Read... [07:52:13]Read from MH i2c: 01 07 00 69 11 00 00 00 00 00 F4 0C 81 [07:52:13]RasterBufferAndPrint [07:52:13]line [07:52:13]line [07:52:13]line [07:52:13]line [07:52:13]line [07:52:13]written 0, free lines is 3326 [07:52:13]MH_Cut [07:52:13]Write to MH i2c: D1 01 00 70 11 01 53 [07:52:13]Write i2c OK [07:52:13]MH_I2C_Read... [07:52:13]Read from MH i2c: D1 [07:52:13]MH_I2C_Read... [07:52:13]Read from MH i2c: D1 01 00 [07:52:13]MH_I2C_Read... [07:52:13]Read from MH i2c: D1 01 00 70 11 00 52 [07:52:13]Write to MH i2c: 01 00 00 71 11 82 [07:52:13]Write i2c OK [07:52:13]MH_I2C_Read... [07:52:13]OFD Sender: No OFD packet to send [07:52:14]*** Cut start [07:52:14]*** Partial cut [07:52:14]*** CUTSNS_PIN = 1 [07:52:14]*** CUTSNS_PIN = 0 [07:52:14]*** Brake cut motor [07:52:14]Read from MH i2c: 01 [07:52:14]*** Stop cut motor [07:52:14]MH_I2C_Read... [07:52:14]*** Cut end [07:52:14]Read from MH i2c: 01 07 00 [07:52:14]MH_I2C_Read... [07:52:14]Read from MH i2c: 01 07 00 71 11 00 00 00 00 00 FF 0F 97 [07:52:14]process_action close_receipt done [07:52:14]requested_data is exist [07:52:14]produce_requested_data [07:52:14]requested_item fm.sn is exist - process it [07:52:14]wFMCommunicate request_size=4 [07:52:14]MH_SAM_APDU [07:52:14]CAPDU: 80 11 00 00 [07:52:14]Write to MH i2c: E2 08 00 72 11 80 11 00 00 00 00 00 00 FD [07:52:14]Write i2c OK [07:52:14]MH_I2C_Read... [07:52:14]Read from MH i2c: E2 *** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:52:14] [07:52:14]MH_I2C_Read... [07:52:14]Read from MH i2c: E2 17 00 [07:52:14]MH_I2C_Read... [07:52:14]Read from MH i2c: E2 17 00 72 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 50 [07:52: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:52:14]wFMCommunicate OK [07:52:14]requested_item fd.num is exist - process it [07:52:14]SAM_PROTO_GetFieldsCounters [07:52:14]wFMCommunicate request_size=4 [07:52:14]MH_SAM_APDU [07:52:14]CAPDU: 80 13 00 00 [07:52:14]Write to MH i2c: E2 08 00 73 11 80 13 00 00 00 00 00 00 00 [07:52:14]Write i2c OK [07:52:14]MH_I2C_Read... [07:52:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:52:14]Read from MH i2c: E2 [07:52:14]MH_I2C_Read... [07:52:15]Read from MH i2c: E2 62 00 [07:52:15]MH_I2C_Read... [07:52:15]Read from MH i2c: E2 62 00 73 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 A2 96 01 00 0E 04 04 00 63 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 03 [07: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 A2 96 01 00 0E 04 04 00 63 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:52:15]wFMCommunicate OK [07:52:15]SAM_PROTO_GetFieldsCounters done [07:52:15]requested_item shift.num is exist - process it [07:52:15]requested_item shift.opened is exist - process it [07:52:15]req_shift_opened [07:52:15]FM_GetShiftState [07:52:15]SAM_PROTO_GetShiftState [07:52:15]wFMCommunicate request_size=4 [07:52:15]MH_SAM_APDU [07:52:15]CAPDU: 80 13 01 00 [07:52:15]Write to MH i2c: E2 08 00 74 11 80 13 01 00 00 00 00 00 02 [07:52:15]Write i2c OK [07:52:15]MH_I2C_Read... [07:52:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:52:15]Read from MH i2c: E2 [07:52:15]MH_I2C_Read... [07:52:15]Read from MH i2c: E2 0E 00 [07:52:15]MH_I2C_Read... [07:52:15]Read from MH i2c: E2 0E 00 74 11 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 15 [07:52:15]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [07:52:15]wFMCommunicate OK [07:52:15]SAM_PROTO_GetShiftState done [07:52:15]FM_GetShiftState done [07:52:15]req_shift_opened done [07:52:15]requested_item shift.open_date is exist - process it [07:52:15]req_shift_open_date [07:52:15]req_shift_open_date done [07:52:15]produce_requested_data done [07:52:15]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104098,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [07:52:15]process_action_free close_receipt [07:52:15]json_value_free [07:52:15]json_value_free done [07:52:15]process_json_proto returns [07:52:15]Send response to host [07:52:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104098,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [07:52:15]free response buf [07:52:15]execute_script done [07:52:15]execute_script returns [07:52:15]free content buf [07:52:15]Sock 9.Close socket [07:52:15]Sock 9.Thread stoped [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:29]OFD Sender: No OFD packet to send [07:57:34]OFD Sender: No OFD packet to send [07:57:39]OFD Sender: No OFD packet to send [07:57:44]OFD Sender: No OFD packet to send [07:57:49]OFD Sender: No OFD packet to send [07:57:54]OFD Sender: No OFD packet to send [07:57:59]OFD Sender: No OFD packet to send [07:58:04]OFD Sender: No OFD packet to send [07:58:09]OFD Sender: No OFD packet to send [07:58:14]OFD Sender: No OFD packet to send [07:58:19]OFD Sender: No OFD packet to send [07:58:24]OFD Sender: No OFD packet to send [07:58:29]OFD Sender: No OFD packet to send [07:58:34]OFD Sender: No OFD packet to send [07:58:39]OFD Sender: No OFD packet to send [07:58:44]OFD Sender: No OFD packet to send [07:58:49]OFD Sender: No OFD packet to send [07:58:54]OFD Sender: No OFD packet to send [07:58:59]OFD Sender: No OFD packet to send [07:59:04]OFD Sender: No OFD packet to send [07:59:09]OFD Sender: No OFD packet to send [07:59:14]OFD Sender: No OFD packet to send [07:59:19]OFD Sender: No OFD packet to send [07:59:24]OFD Sender: No OFD packet to send [07:59:29]OFD Sender: No OFD packet to send [07:59:34]OFD Sender: No OFD packet to send [07:59:39]OFD Sender: No OFD packet to send [07:59:44]OFD Sender: No OFD packet to send [07:59:49]OFD Sender: No OFD packet to send [07:59:54]OFD Sender: No OFD packet to send [07:59:59]OFD Sender: No OFD packet to send [08:00:04]OFD Sender: No OFD packet to send [08:00:09]OFD Sender: No OFD packet to send [08:00:14]OFD Sender: No OFD packet to send [08:00:19]OFD Sender: No OFD packet to send [08:00:24]OFD Sender: No OFD packet to send [08:00:29]OFD Sender: No OFD packet to send [08:00:34]OFD Sender: No OFD packet to send [08:00:39]OFD Sender: No OFD packet to send [08:00:44]OFD Sender: No OFD packet to send [08:00:49]OFD Sender: No OFD packet to send [08:00:54]OFD Sender: No OFD packet to send [08:00:59]OFD Sender: No OFD packet to send [08:01:04]OFD Sender: No OFD packet to send [08:01:09]OFD Sender: No OFD packet to send [08:01:14]OFD Sender: No OFD packet to send [08:01:19]OFD Sender: No OFD packet to send [08:01:24]OFD Sender: No OFD packet to send [08:01:29]OFD Sender: No OFD packet to send [08:01:34]OFD Sender: No OFD packet to send [08:01:39]OFD Sender: No OFD packet to send [08:01:44]OFD Sender: No OFD packet to send [08:01:49]OFD Sender: No OFD packet to send [08:01:54]OFD Sender: No OFD packet to send [08:01:59]OFD Sender: No OFD packet to send [08:02:04]OFD Sender: No OFD packet to send [08:02:09]OFD Sender: No OFD packet to send [08:02:14]OFD Sender: No OFD packet to send [08:02:19]OFD Sender: No OFD packet to send [08:02:24]OFD Sender: No OFD packet to send [08:02:29]OFD Sender: No OFD packet to send [08:02:34]OFD Sender: No OFD packet to send [08:02:39]OFD Sender: No OFD packet to send [08:02:44]OFD Sender: No OFD packet to send [08:02:49]OFD Sender: No OFD packet to send [08:02:54]OFD Sender: No OFD packet to send [08:02:59]OFD Sender: No OFD packet to send [08:03:04]OFD Sender: No OFD packet to send [08:03:09]OFD Sender: No OFD packet to send [08:03:14]OFD Sender: No OFD packet to send [08:03:19]OFD Sender: No OFD packet to send [08:03:24]OFD Sender: No OFD packet to send [08:03:29]OFD Sender: No OFD packet to send [08:03:34]OFD Sender: No OFD packet to send [08:03:39]OFD Sender: No OFD packet to send [08:03:44]OFD Sender: No OFD packet to send [08:03:49]OFD Sender: No OFD packet to send [08:03:54]OFD Sender: No OFD packet to send [08:03:59]OFD Sender: No OFD packet to send [08:04:04]OFD Sender: No OFD packet to send [08:04:09]OFD Sender: No OFD packet to send [08:04:14]OFD Sender: No OFD packet to send [08:04:19]OFD Sender: No OFD packet to send [08:04:24]OFD Sender: No OFD packet to send [08:04:29]OFD Sender: No OFD packet to send [08:04:34]OFD Sender: No OFD packet to send [08:04:39]OFD Sender: No OFD packet to send [08:04:44]OFD Sender: No OFD packet to send [08:04:49]OFD Sender: No OFD packet to send [08:04:54]OFD Sender: No OFD packet to send [08:04:59]OFD Sender: No OFD packet to send [08:05:04]OFD Sender: No OFD packet to send [08:05:09]OFD Sender: No OFD packet to send [08:05:14]OFD Sender: No OFD packet to send [08:05:19]OFD Sender: No OFD packet to send [08:05:24]OFD Sender: No OFD packet to send [08:05:29]OFD Sender: No OFD packet to send [08:05:34]OFD Sender: No OFD packet to send [08:05:39]OFD Sender: No OFD packet to send [08:05:44]OFD Sender: No OFD packet to send [08:05:49]OFD Sender: No OFD packet to send [08:05:54]OFD Sender: No OFD packet to send [08:05:55]accept exits with 7 [08:05:55]New connection [08:05:55]New thread 3066715492 created [08:05:55]Thread 3066858852 joined [08:05:55]Waiting for new connection... [08:05:55] Sock 7.Parse request [08:05:55]Sock 7.Check first char [08:05:55]Sock 7.First char is OK [08:05:55]request: POST /json_proto HTTP/1.0 [08:05:55]Method: POST [08:05:55]URL: /json_proto [08:05:55]Method is POST - this is cgi request [08:05:55]url: /json_proto [08:05:55]query_string will be loaded in cgi processing [08:05:55]execute_cgi json_proto POST (null) [08:05:55]execute_cgi path=json_proto method=POST [08:05:55]POST find Content-Length [08:05:55]Host: 172.17.38.133:8080 [08:05:55]Content-Length: 1195 [08:05:55]Content-Type: application/json [08:05:55] [08:05:55]POST finish read [08:05:55]Found Content-Length = 1195 [08:05: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 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)673489\u000A21.06.2024 07:43\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\u000A00562\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:05:55]execute_script... [08:05: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 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)673489\u000A21.06.2024 07:43\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\u000A00562\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:05:55]POST & json_proto [08:05:55]process_json_proto [08:05:55]json parsed OK: [08:05:55]protocol is kg_v1.0 [08:05:55]action value=print_text [08:05:55]process_action print_text [08:05:55]cmd_print_text [08:05:55]ExternCall_PrintAddStr [08:05:55]wPrintStart [08:05:55]Write to MH i2c: 01 00 00 75 11 86 [08:05:55]Write i2c OK [08:05:55]MH_I2C_Read... [08:05:55]Read from MH i2c: 01 [08:05:55]MH_I2C_Read... [08:05:55]Read from MH i2c: 01 07 00 [08:05:55]MH_I2C_Read... [08:05:55]Read from MH i2c: 01 07 00 75 11 00 00 00 00 00 FF 0F 9B [08:05:55]RasterBufferAndPrint [08:05:55]line *****ТОВАРНЫЙ ЧЕК***** [08:05:55]line АЗС 120 [08:05:55]line Партнер нефть [08:05:55]line 02508201610067 [08:05:55]line Кассир : Асанбаев Н. [08:05:55]line Счет N : (1)673489 [08:05:55]line 21.06.2024 07:43 [08:05:55]line ПРОДАЖА [08:05:55]line ТРК (МРК, ГНК): 42 [08:05:55]line Вид ГСМ : 2710124130 [08:05:55]line Аи-92-К-5 [08:05:55]line 40.000 x 66.40 [08:05:55]line ИТОГ: 2656.00 [08:05:55]line Тип оплаты: Талоны: Топливная Карта [08:05:55]line 00562 [08:05:55]line ______________________ [08:05:55]line (подпись) [08:05:55]written 0, free lines is 4095 [08:05:56]Write to MH i2c: 01 00 00 89 11 9A [08:05:56]Write i2c OK [08:05:56]MH_I2C_Read... [08:05:56]Read from MH i2c: 01 [08:05:56]MH_I2C_Read... [08:05:56]Read from MH i2c: 01 07 00 [08:05:56]MH_I2C_Read... [08:05:56]Read from MH i2c: 01 07 00 89 11 00 00 00 00 00 13 0E C2 [08:05:56]RasterBufferAndPrint [08:05:56]line [08:05:56]line [08:05:56]line [08:05:56]line [08:05:56]line [08:05:56]written 0, free lines is 3604 [08:05:56]MH_Cut [08:05:56]Write to MH i2c: D1 01 00 90 11 01 73 [08:05:56]Write i2c OK [08:05:56]MH_I2C_Read... [08:05:56]Read from MH i2c: D1 [08:05:56]MH_I2C_Read... [08:05:56]Read from MH i2c: D1 01 00 [08:05:56]MH_I2C_Read... [08:05:56]Read from MH i2c: D1 01 00 90 11 00 72 [08:05:56]Write to MH i2c: 01 00 00 91 11 A2 [08:05:56]Write i2c OK [08:05:56]MH_I2C_Read... [08:05:56]*** Cut start [08:05:56]*** Partial cut [08:05:56]*** CUTSNS_PIN = 1 [08:05:56]*** CUTSNS_PIN = 0 [08:05:56]*** Brake cut motor [08:05:57]Read from MH i2c: 01 [08:05:57]MH_I2C_Read... [08:05:57]*** Stop cut motor [08:05:57]*** Cut end [08:05:57]Read from MH i2c: 01 07 00 [08:05:57]MH_I2C_Read... [08:05:57]Read from MH i2c: 01 07 00 91 11 00 00 00 00 00 FF 0F B7 [08:05:57]process_action print_text done [08:05:57]requested_data is exist [08:05:57]produce_requested_data [08:05:57]requested_item fm.sn is exist - process it [08:05:57]wFMCommunicate request_size=4 [08:05:57]MH_SAM_APDU [08:05:57]CAPDU: 80 11 00 00 [08:05:57]Write to MH i2c: E2 08 00 92 11 80 11 00 00 00 00 00 00 1D [08:05:57]Write i2c OK [08:05:57]MH_I2C_Read... [08:05:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:05:57]Read from MH i2c: E2 [08:05:57]MH_I2C_Read... [08:05:57]Read from MH i2c: E2 17 00 [08:05:57]MH_I2C_Read... [08:05:57]Read from MH i2c: E2 17 00 92 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 70 [08:05: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:05:57]wFMCommunicate OK [08:05:57]requested_item fd.num is exist - process it [08:05:57]SAM_PROTO_GetFieldsCounters [08:05:57]wFMCommunicate request_size=4 [08:05:57]MH_SAM_APDU [08:05:57]CAPDU: 80 13 00 00 [08:05:57]Write to MH i2c: E2 08 00 93 11 80 13 00 00 00 00 00 00 20 [08:05:57]Write i2c OK [08:05:57]MH_I2C_Read... [08:05:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:05:57]Read from MH i2c: E2 [08:05:57]MH_I2C_Read... [08:05:57]Read from MH i2c: E2 62 00 [08:05:57]MH_I2C_Read... [08:05:57]Read from MH i2c: E2 62 00 93 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 A2 96 01 00 0E 04 04 00 63 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 23 [08:05: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 A2 96 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:05:57]wFMCommunicate OK [08:05:57]SAM_PROTO_GetFieldsCounters done [08:05:57]requested_item shift.num is exist - process it [08:05:57]requested_item shift.opened is exist - process it [08:05:57]req_shift_opened [08:05:57]FM_GetShiftState [08:05:57]SAM_PROTO_GetShiftState [08:05:57]wFMCommunicate request_size=4 [08:05:57]MH_SAM_APDU [08:05:57]CAPDU: 80 13 01 00 [08:05:57]Write to MH i2c: E2 08 00 94 11 80 13 01 00 00 00 00 00 22 [08:05:57]Write i2c OK [08:05:57]MH_I2C_Read... [08:05:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:05:57]Read from MH i2c: E2 [08:05:57]MH_I2C_Read... [08:05:57]Read from MH i2c: E2 0E 00 [08:05:57]MH_I2C_Read... [08:05:57]Read from MH i2c: E2 0E 00 94 11 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 35 [08:05:57]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [08:05:57]wFMCommunicate OK [08:05:57]SAM_PROTO_GetShiftState done [08:05:57]FM_GetShiftState done [08:05:57]req_shift_opened done [08:05:57]requested_item shift.open_date is exist - process it [08:05:57]req_shift_open_date [08:05:57]req_shift_open_date done [08:05:57]produce_requested_data done [08:05:57]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104098,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [08:05:57]process_action_free print_text [08:05:57]json_value_free [08:05:57]json_value_free done [08:05:57]process_json_proto returns [08:05:57]Send response to host [08:05:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104098,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [08:05:57]free response buf [08:05:57]execute_script done [08:05:57]execute_script returns [08:05:57]free content buf [08:05:57]Sock 7.Close socket [08:05:57]Sock 7.Thread stoped [08:05:59]OFD Sender: No OFD packet to send [08:06:04]OFD Sender: No OFD packet to send [08:06:09]OFD Sender: No OFD packet to send [08:06:14]OFD Sender: No OFD packet to send [08:06:19]OFD Sender: No OFD packet to send [08:06:24]OFD Sender: No OFD packet to send [08:06:29]OFD Sender: No OFD packet to send [08:06:34]OFD Sender: No OFD packet to send [08:06:39]OFD Sender: No OFD packet to send [08:06:44]OFD Sender: No OFD packet to send [08:06:49]OFD Sender: No OFD packet to send [08:06:54]OFD Sender: No OFD packet to send [08:06:59]OFD Sender: No OFD packet to send [08:07:04]OFD Sender: No OFD packet to send [08:07:09]OFD Sender: No OFD packet to send [08:07:14]OFD Sender: No OFD packet to send [08:07:19]OFD Sender: No OFD packet to send [08:07:24]OFD Sender: No OFD packet to send [08:07:29]OFD Sender: No OFD packet to send [08:07:34]OFD Sender: No OFD packet to send [08:07:39]OFD Sender: No OFD packet to send [08:07:44]OFD Sender: No OFD packet to send [08:07:49]OFD Sender: No OFD packet to send [08:07:54]OFD Sender: No OFD packet to send [08:07:59]OFD Sender: No OFD packet to send [08:08:04]OFD Sender: No OFD packet to send [08:08:09]OFD Sender: No OFD packet to send [08:08:14]OFD Sender: No OFD packet to send [08:08:19]OFD Sender: No OFD packet to send [08:08:24]OFD Sender: No OFD packet to send [08:08:29]OFD Sender: No OFD packet to send [08:08:34]OFD Sender: No OFD packet to send [08:08:39]OFD Sender: No OFD packet to send [08:08:44]OFD Sender: No OFD packet to send [08:08:49]OFD Sender: No OFD packet to send [08:08:54]OFD Sender: No OFD packet to send [08:08:59]OFD Sender: No OFD packet to send [08:09:04]OFD Sender: No OFD packet to send [08:09:09]OFD Sender: No OFD packet to send [08:09:14]OFD Sender: No OFD packet to send [08:09:19]OFD Sender: No OFD packet to send [08:09:24]OFD Sender: No OFD packet to send [08:09:29]OFD Sender: No OFD packet to send [08:09:34]OFD Sender: No OFD packet to send [08:09:39]OFD Sender: No OFD packet to send [08:09:44]OFD Sender: No OFD packet to send [08:09:49]OFD Sender: No OFD packet to send [08:09:54]OFD Sender: No OFD packet to send [08:09:59]OFD Sender: No OFD packet to send [08:10:04]OFD Sender: No OFD packet to send [08:10:09]OFD Sender: No OFD packet to send [08:10:14]OFD Sender: No OFD packet to send [08:10:19]OFD Sender: No OFD packet to send [08:10:24]OFD Sender: No OFD packet to send [08:10:29]OFD Sender: No OFD packet to send [08:10:34]OFD Sender: No OFD packet to send [08:10:39]OFD Sender: No OFD packet to send [08:10:44]OFD Sender: No OFD packet to send [08:10:49]OFD Sender: No OFD packet to send [08:10:54]OFD Sender: No OFD packet to send [08:10:59]OFD Sender: No OFD packet to send [08:11:04]OFD Sender: No OFD packet to send [08:11:09]OFD Sender: No OFD packet to send [08:11:14]OFD Sender: No OFD packet to send [08:11:19]OFD Sender: No OFD packet to send [08:11:24]OFD Sender: No OFD packet to send [08:11:29]OFD Sender: No OFD packet to send [08:11:34]OFD Sender: No OFD packet to send [08:11:39]OFD Sender: No OFD packet to send [08:11:43]accept exits with 9 [08:11:43]New connection [08:11:43]New thread 3066858852 created [08:11:43]Thread 3066715492 joined [08:11:43]Waiting for new connection... [08:11:43] Sock 9.Parse request [08:11:43]Sock 9.Check first char [08:11:43]Sock 9.First char is OK [08:11:43]request: POST /json_proto HTTP/1.0 [08:11:43]Method: POST [08:11:43]URL: /json_proto [08:11:43]Method is POST - this is cgi request [08:11:43]url: /json_proto [08:11:43]query_string will be loaded in cgi processing [08:11:43]execute_cgi json_proto POST (null) [08:11:43]execute_cgi path=json_proto method=POST [08:11:43]POST find Content-Length [08:11:43]Host: 172.17.38.133:8080 [08:11:43]Content-Length: 687 [08:11:43]Content-Type: application/json [08:11:43] [08:11:43]POST finish read [08:11:43]Found Content-Length = 687 [08:11:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673490", "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" ] } } [08:11:43]execute_script... [08:11: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)673490", "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" ] } } [08:11:43]POST & json_proto [08:11:43]process_json_proto [08:11:43]json parsed OK: [08:11:43]protocol is kg_v1.0 [08:11:43]action value=close_receipt [08:11:43]process_action close_receipt [08:11:43]cmd_close_receipt [08:11:43]MH_GetDate [08:11:43]Write to MH i2c: F0 00 00 95 11 95 [08:11:43]Write i2c OK [08:11:43]MH_I2C_Read... [08:11:43]Read from MH i2c: F0 [08:11:43]MH_I2C_Read... [08:11:43]Read from MH i2c: F0 09 00 [08:11:43]MH_I2C_Read... [08:11:43]Read from MH i2c: F0 09 00 95 11 00 C3 35 75 66 BD 8F 7C 64 9D [08:11:43]GetLastDocTimeStamp 1718956333 [08:11:43]current date 1718957507 [08:11:43]FM_GetShiftState [08:11:43]SAM_PROTO_GetShiftState [08:11:43]wFMCommunicate request_size=4 [08:11:43]MH_SAM_APDU [08:11:43]CAPDU: 80 13 01 00 [08:11:43]Write to MH i2c: E2 08 00 96 11 80 13 01 00 00 00 00 00 24 [08:11:43]Write i2c OK [08:11:43]MH_I2C_Read... [08:11:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:11:43]Read from MH i2c: E2 [08:11:43]MH_I2C_Read... [08:11:43]Read from MH i2c: E2 0E 00 [08:11:43]MH_I2C_Read... [08:11:43]Read from MH i2c: E2 0E 00 96 11 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 37 [08:11:43]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [08:11:43]wFMCommunicate OK [08:11:43]SAM_PROTO_GetShiftState done [08:11:43]FM_GetShiftState done [08:11:43]opened in 1718929509 [08:11:43]opened+sec_in_day 1719015909 [08:11:43]quantity*price = 300056 [08:11:43]sum+1 = 300057 [08:11:43]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 СНО: Общий режим Чек 22 21.06.2024 08:11 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104099 ФПД: 85755045585469 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T081147&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104099&fm=85755045585469&tin=02508201610067®Number=0000000000092785&sum=300000 [08:11:45]StoreToDocumentArchive [08:11:45]shift 355 fd 104099 [08:11:45]save to /storage/0355/doc_00104099 [08:11:45]save last doc name /storage/0355/doc_00104099 to /storage/kkm_last_doc_name [08:11:45]save OK [08:11:45]Clear old archive folders... [08:11:45]ProcessDocumentItem done err = 0, tmpTLVsize=252 [08:11:45]tlvbuf is 0110D310 [08:11:45]SAM_PROTO_ClearQueue [08:11:45]wFMCommunicate request_size=4 [08:11:45]MH_SAM_APDU [08:11:45]CAPDU: 80 09 00 00 [08:11:45]Write to MH i2c: E2 08 00 A3 11 80 09 00 00 00 00 00 00 26 [08:11:45]Write i2c OK [08:11:45]MH_I2C_Read... [08:11:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:11:45]Read from MH i2c: E2 [08:11:45]MH_I2C_Read... [08:11:45]Read from MH i2c: E2 03 00 [08:11:45]MH_I2C_Read... [08:11:45]Read from MH i2c: E2 03 00 A3 11 00 90 00 28 [08:11:45]RAPDU: 90 00 [08:11:45]wFMCommunicate OK [08:11:45]SAM_PROTO_ClearQueue done [08:11:45]KKMCreateOFDPacket [08:11:45]OFDProtocolAddRootSTLVToBuf [08:11:45]FM_MakeSignedData [08:11:45]FM_MakeSignedData [08:11:45]SAM_PROTO_SignData [08:11:45]wFMCommunicate request_size=4 [08:11:45]MH_SAM_APDU [08:11:45]CAPDU: 80 0D 01 02 [08:11:45]Write to MH i2c: E2 08 00 A4 11 80 0D 01 02 00 00 00 00 2E [08:11:45]Write i2c OK [08:11:45]MH_I2C_Read... [08:11:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:11:45]Read from MH i2c: E2 [08:11:45]MH_I2C_Read... [08:11:45]Read from MH i2c: E2 03 00 [08:11:45]MH_I2C_Read... [08:11:45]Read from MH i2c: E2 03 00 A4 11 00 90 00 29 [08:11:45]RAPDU: 90 00 [08:11:45]wFMCommunicate OK [08:11:45]wFMCommunicate request_size=255 [08:11:45]MH_SAM_APDU [08:11: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 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 16 00 00 00 F4 03 04 00 C3 35 75 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 A3 96 01 00 35 04 06 00 [08:11:45]Write to MH i2c: E2 02 01 A5 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 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 16 00 00 00 F4 03 04 00 C3 35 75 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 A3 96 01 00 35 04 06 00 00 00 F9 [08:11:45]Write i2c OK [08:11:45]MH_I2C_Read... [08:11:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:11:45]Read from MH i2c: E2 [08:11:45]MH_I2C_Read... [08:11:45]Read from MH i2c: E2 03 00 [08:11:45]MH_I2C_Read... [08:11:45]Read from MH i2c: E2 03 00 A5 11 00 90 00 2A [08:11:45]RAPDU: 90 00 [08:11:45]wFMCommunicate OK [08:11:45]wFMCommunicate request_size=11 [08:11:45]MH_SAM_APDU [08:11:45]CAPDU: 80 0D 02 02 06 4D FE 67 07 A2 3D [08:11:45]Write to MH i2c: E2 0E 00 A6 11 80 0D 02 02 06 00 4D FE 67 07 A2 3D 00 00 D5 [08:11:45]Write i2c OK [08:11:45]MH_I2C_Read... [08:11:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:11:45]Read from MH i2c: E2 [08:11:45]MH_I2C_Read... [08:11:45]Read from MH i2c: E2 03 00 [08:11:45]MH_I2C_Read... [08:11:45]Read from MH i2c: E2 03 00 A6 11 00 90 00 2B [08:11:45]RAPDU: 90 00 [08:11:45]wFMCommunicate OK [08:11:45]wFMCommunicate request_size=4 [08:11:45]MH_SAM_APDU [08:11:45]CAPDU: 80 0D 03 02 [08:11:45]Write to MH i2c: E2 08 00 A7 11 80 0D 03 02 00 00 00 00 33 [08:11:45]Write i2c OK [08:11:45]MH_I2C_Read... [08:11:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:11:45]Read from MH i2c: E2 [08:11:45]MH_I2C_Read... [08:11:45]Read from MH i2c: E2 0B 00 [08:11:45]MH_I2C_Read... [08:11:45]Read from MH i2c: E2 0B 00 A7 11 00 B5 40 18 D5 14 79 D3 EF 90 00 65 [08:11:45]RAPDU: B5 40 18 D5 14 79 D3 EF 90 00 [08:11:45]wFMCommunicate OK [08:11:45]SAM_PROTO_SignData done [08:11:45]FM_MakeSignedData done [08:11:45]CreateOFDProtocolMessage [08:11:45]wFMCommunicate request_size=4 [08:11:45]MH_SAM_APDU [08:11:45]CAPDU: 80 11 00 00 [08:11:45]Write to MH i2c: E2 08 00 A8 11 80 11 00 00 00 00 00 00 33 [08:11:45]Write i2c OK [08:11:45]MH_I2C_Read... [08:11:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:11:45]Read from MH i2c: E2 [08:11:45]MH_I2C_Read... [08:11:45]Read from MH i2c: E2 17 00 [08:11:45]MH_I2C_Read... [08:11:45]Read from MH i2c: E2 17 00 A8 11 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:11:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [08:11:45]wFMCommunicate OK [08:11:45]CreateOFDProtocolMessage done [08:11:45]OFDSenderStorePacket 104099 [08:11:45]StoreOFDPacket docnum=104099 [08:11: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 10 01 00 00 F4 9C 08 01 3E E7 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 16 00 00 00 F4 03 04 00 C3 35 75 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 A3 96 01 00 35 04 06 00 4D FE 67 07 A2 3D B5 40 18 D5 14 79 D3 EF [08:11:45]CheckFolder [08:11:45]dirname=/storage/ofd_packets [08:11:45]CheckFolder done [08:11:45]ProducePacketName [08:11:45]name=ofd_packets/00104099 [08:11:45]NVStorageSaveData ofd_packets/00104099 [08:11:45]File name is /storage/ofd_packets/00104099 [08:11:45]Write 302 bytes [08:11:45]NVStorageSaveData done [08:11:45]OFDSenderStorePacket done [08:11:45]KKMCreateOFDPacket done [08:11:45]NVStorageSaveData kkm_last_timestamp [08:11:45]File name is /storage/kkm_last_timestamp [08:11:45]Write 4 bytes [08:11:45]NVStorageSaveData done [08:11:45]ExternCall_PrintAddStr [08:11:45]wPrintStart [08:11:45]Write to MH i2c: 01 00 00 A9 11 BA [08:11:45]Write i2c OK [08:11:45]MH_I2C_Read... [08:11:45]Read from MH i2c: 01 [08:11:45]MH_I2C_Read... [08:11:45]Read from MH i2c: 01 07 00 [08:11:45]MH_I2C_Read... [08:11:45]Read from MH i2c: 01 07 00 A9 11 00 00 00 00 00 FF 0F CF [08:11:45]RasterBufferAndPrint [08:11:45]line Счет N : (1)673490 [08:11:45]line ИНН: 02508201610067 [08:11:45]line Контрольно-Кассовый Чек [08:11:45]line ПРОДАЖА [08:11:45]line ТРК (МРК, ГНК) : 11 [08:11:45]line Товар: 2710194210 [08:11:45]line ДТ(л)-К-5 [08:11:45]line 41.160 * 72.90 [08:11:45]line = 3000.56 [08:11:45]line НДС 12% НСП 1% [08:11:45]line > о реализуемом товаре [08:11:45]line ОКРУГЛЕНИЕ: -0.56 [08:11:45]line ИТОГО: 3000.00 [08:11:45]line Внесено: 3000.00 [08:11:45]line СДАЧА: 0.00 [08:11:45]line НСП 1% : 26.55 [08:11:45]line НДС 12% : 318.64 [08:11:45]line Наличными: 3000.00 [08:11:45]line Безнал.: 0.00 [08:11:45]line Место: АЗС № 120 "Партнер Нефть" [08:11:45]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [08:11:45]line СНО: Общий режим [08:11:45]line Чек 22 21.06.2024 08:11 [08:11:45]line Смена: 355 ФФД: 1.0 [08:11:45]line ЗНМ: 0300000164 [08:11:45]line РНМ: 0000000000092785 [08:11:45]line Версия ККМ: 001 [08:11:45]line ФМ: 0000000000875093 [08:11:45]line ФД: 104099 [08:11:45]line ФПД: 85755045585469 [08:11:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T081147&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104099&fm=85755045585469&tin=02508201610067®Number=0000000000092785&sum=300000 [08:11:45]OFD Sender: Processing packet 104099 [packets to send 17, broken 16] [08:11:45]ProducePacketName [08:11:45]name=ofd_packets/00104099 [08:11:45]OFD Sender: To server: pG, [08:11:45]CommunicateWithHost lk.salyk.kg:30040 [08:11:45]ConnectInit lk.salyk.kg [08:11:45]written 0, free lines is 4095 [08:11:46]Connected sock=10 [08:11: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 F4 9C 08 01 3E E7 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 16 00 00 00 F4 03 04 00 C3 35 75 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 A3 96 01 00 35 04 06 00 4D FE 67 07 A2 3D B5 40 18 D5 14 79 D3 EF [08:11: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 E5 46 47 00 FF 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 A3 96 01 00 F4 03 04 00 46 DC 74 66 B6 04 01 00 00 C5 2D 6D CF 86 C8 66 EA [08:11:46]CommunicateWithHost err = 0 [08:11:46]CheckOFDResponse [08:11:46]1017 (14) - 77093643461234 [08:11:46]1041 (16) - 0000000000875093 [08:11:46]1040 (4) - 104099 [08:11:46]1012 (4) - 21.06.2024 01:49 [08:11:46]1206 (1) - 0 [08:11:46]OFD Sender: Remove packet 104099 [08:11:46]ProducePacketName [08:11:46]name=ofd_packets/00104099 [08:11:46]NVStorageDeleteData [08:11:46]Write to MH i2c: 01 00 00 D4 11 E5 [08:11:46]Write i2c OK [08:11:46]MH_I2C_Read... [08:11:46]Read from MH i2c: 01 [08:11:46]MH_I2C_Read... [08:11:46]Read from MH i2c: 01 07 00 [08:11:46]MH_I2C_Read... [08:11:46]Read from MH i2c: 01 07 00 D4 11 00 00 00 00 00 E9 0C E1 [08:11:46]RasterBufferAndPrint [08:11:46]line [08:11:46]line [08:11:46]line [08:11:46]line [08:11:46]line [08:11:46]written 0, free lines is 3312 [08:11:46]MH_Cut [08:11:46]Write to MH i2c: D1 01 00 DB 11 01 BE [08:11:46]Write i2c OK [08:11:46]MH_I2C_Read... [08:11:46]Read from MH i2c: D1 [08:11:46]MH_I2C_Read... [08:11:46]Read from MH i2c: D1 01 00 [08:11:46]MH_I2C_Read... [08:11:46]Read from MH i2c: D1 01 00 DB 11 00 BD [08:11:46]Write to MH i2c: 01 00 00 DC 11 ED [08:11:46]Write i2c OK [08:11:46]MH_I2C_Read... [08:11:46]OFD Sender: No OFD packet to send [08:11:47]*** Cut start [08:11:47]*** Partial cut [08:11:47]*** CUTSNS_PIN = 1 [08:11:47]*** CUTSNS_PIN = 0 [08:11:47]*** Brake cut motor [08:11:47]Read from MH i2c: 01 [08:11:47]MH_I2C_Read... [08:11:47]*** Stop cut motor [08:11:47]*** Cut end [08:11:47]Read from MH i2c: 01 07 00 [08:11:47]MH_I2C_Read... [08:11:47]Read from MH i2c: 01 07 00 DC 11 00 00 00 00 00 FF 0F 02 [08:11:47]process_action close_receipt done [08:11:47]requested_data is exist [08:11:47]produce_requested_data [08:11:47]requested_item fm.sn is exist - process it [08:11:47]wFMCommunicate request_size=4 [08:11:47]MH_SAM_APDU [08:11:47]CAPDU: 80 11 00 00 [08:11:47]Write to MH i2c: E2 08 00 DD 11 80 11 00 00 00 00 00 00 68 [08:11:47]Write i2c OK [08:11:47]MH_I2C_Read... [08:11:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:11:47]Read from MH i2c: E2 [08:11:47]MH_I2C_Read... [08:11:47]Read from MH i2c: E2 17 00 [08:11:47]MH_I2C_Read... [08:11:47]Read from MH i2c: E2 17 00 DD 11 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:11:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [08:11:47]wFMCommunicate OK [08:11:47]requested_item fd.num is exist - process it [08:11:47]SAM_PROTO_GetFieldsCounters [08:11:47]wFMCommunicate request_size=4 [08:11:47]MH_SAM_APDU [08:11:47]CAPDU: 80 13 00 00 [08:11:47]Write to MH i2c: E2 08 00 DE 11 80 13 00 00 00 00 00 00 6B [08:11:47]Write i2c OK [08:11:47]MH_I2C_Read... [08:11:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:11:47]Read from MH i2c: E2 [08:11:47]MH_I2C_Read... [08:11:47]Read from MH i2c: E2 62 00 [08:11:47]MH_I2C_Read... [08:11:47]Read from MH i2c: E2 62 00 DE 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 A3 96 01 00 0E 04 04 00 63 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 72 [08:11: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 A3 96 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:11:47]wFMCommunicate OK [08:11:47]SAM_PROTO_GetFieldsCounters done [08:11:47]requested_item shift.num is exist - process it [08:11:47]requested_item shift.opened is exist - process it [08:11:47]req_shift_opened [08:11:47]FM_GetShiftState [08:11:47]SAM_PROTO_GetShiftState [08:11:47]wFMCommunicate request_size=4 [08:11:47]MH_SAM_APDU [08:11:47]CAPDU: 80 13 01 00 [08:11:47]Write to MH i2c: E2 08 00 DF 11 80 13 01 00 00 00 00 00 6D [08:11:47]Write i2c OK [08:11:47]MH_I2C_Read... [08:11:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:11:48]Read from MH i2c: E2 [08:11:48]MH_I2C_Read... [08:11:48]Read from MH i2c: E2 0E 00 [08:11:48]MH_I2C_Read... [08:11:48]Read from MH i2c: E2 0E 00 DF 11 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 80 [08:11:48]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [08:11:48]wFMCommunicate OK [08:11:48]SAM_PROTO_GetShiftState done [08:11:48]FM_GetShiftState done [08:11:48]req_shift_opened done [08:11:48]requested_item shift.open_date is exist - process it [08:11:48]req_shift_open_date [08:11:48]req_shift_open_date done [08:11:48]produce_requested_data done [08:11:48]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104099,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [08:11:48]process_action_free close_receipt [08:11:48]json_value_free [08:11:48]json_value_free done [08:11:48]process_json_proto returns [08:11:48]Send response to host [08:11:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104099,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [08:11:48]free response buf [08:11:48]execute_script done [08:11:48]execute_script returns [08:11:48]free content buf [08:11:48]Sock 9.Close socket [08:11:48]Sock 9.Thread stoped [08:11:51]OFD Sender: No OFD packet to send [08:11:56]OFD Sender: No OFD packet to send [08:12:01]OFD Sender: No OFD packet to send [08:12:06]OFD Sender: No OFD packet to send [08:12:11]OFD Sender: No OFD packet to send [08:12:16]OFD Sender: No OFD packet to send [08:12:21]OFD Sender: No OFD packet to send [08:12:26]OFD Sender: No OFD packet to send [08:12:31]OFD Sender: No OFD packet to send [08:12:36]OFD Sender: No OFD packet to send [08:12:41]OFD Sender: No OFD packet to send [08:12:46]OFD Sender: No OFD packet to send [08:12:51]OFD Sender: No OFD packet to send [08:12:56]OFD Sender: No OFD packet to send [08:13:01]OFD Sender: No OFD packet to send [08:13:06]OFD Sender: No OFD packet to send [08:13:11]OFD Sender: No OFD packet to send [08:13:16]OFD Sender: No OFD packet to send [08:13:21]OFD Sender: No OFD packet to send [08:13:26]OFD Sender: No OFD packet to send [08:13:31]OFD Sender: No OFD packet to send [08:13:36]OFD Sender: No OFD packet to send [08:13:41]OFD Sender: No OFD packet to send [08:13:46]OFD Sender: No OFD packet to send [08:13:51]OFD Sender: No OFD packet to send [08:13:56]OFD Sender: No OFD packet to send [08:14:01]OFD Sender: No OFD packet to send [08:14:06]OFD Sender: No OFD packet to send [08:14:11]OFD Sender: No OFD packet to send [08:14:16]OFD Sender: No OFD packet to send [08:14:21]OFD Sender: No OFD packet to send [08:14:26]OFD Sender: No OFD packet to send [08:14:31]OFD Sender: No OFD packet to send [08:14:36]OFD Sender: No OFD packet to send [08:14:41]accept exits with 7 [08:14:41]New connection [08:14:41]New thread 3066715492 created [08:14:41]Thread 3066858852 joined [08:14:41]Waiting for new connection... [08:14:41] Sock 7.Parse request [08:14:41]Sock 7.Check first char [08:14:41]Sock 7.First char is OK [08:14:41]request: POST /json_proto HTTP/1.0 [08:14:41]Method: POST [08:14:41]URL: /json_proto [08:14:41]Method is POST - this is cgi request [08:14:41]url: /json_proto [08:14:41]query_string will be loaded in cgi processing [08:14:41]execute_cgi json_proto POST (null) [08:14:41]execute_cgi path=json_proto method=POST [08:14:41]POST find Content-Length [08:14:41]Host: 172.17.38.133:8080 [08:14:41]Content-Length: 640 [08:14:41]Content-Type: application/json [08:14:41] [08:14:41]POST finish read [08:14:41]Found Content-Length = 640 [08:14:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673491", "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.000, "sum" : 739.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 739.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:14:41]execute_script... [08:14:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673491", "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.000, "sum" : 739.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 739.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:14:41]POST & json_proto [08:14:41]process_json_proto [08:14:41]json parsed OK: [08:14:41]protocol is kg_v1.0 [08:14:41]action value=close_receipt [08:14:41]process_action close_receipt [08:14:41]cmd_close_receipt [08:14:41]MH_GetDate [08:14:41]Write to MH i2c: F0 00 00 E0 11 E0 [08:14:41]Write i2c OK [08:14:41]MH_I2C_Read... [08:14:41]Read from MH i2c: F0 [08:14:41]MH_I2C_Read... [08:14:41]Read from MH i2c: F0 09 00 [08:14:41]MH_I2C_Read... [08:14:41]Read from MH i2c: F0 09 00 E0 11 00 75 36 75 66 BD 8F 7C 64 9B [08:14:41]GetLastDocTimeStamp 1718957507 [08:14:41]current date 1718957685 [08:14:41]FM_GetShiftState [08:14:41]SAM_PROTO_GetShiftState [08:14:41]wFMCommunicate request_size=4 [08:14:41]MH_SAM_APDU [08:14:41]CAPDU: 80 13 01 00 [08:14:41]Write to MH i2c: E2 08 00 E1 11 80 13 01 00 00 00 00 00 6F [08:14:41]Write i2c OK [08:14:41]MH_I2C_Read... [08:14:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:14:41]Read from MH i2c: E2 [08:14:41]MH_I2C_Read... [08:14:41]Read from MH i2c: E2 0E 00 [08:14:41]MH_I2C_Read... [08:14:41]Read from MH i2c: E2 0E 00 E1 11 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 82 [08:14:41]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [08:14:41]wFMCommunicate OK [08:14:41]SAM_PROTO_GetShiftState done [08:14:41]FM_GetShiftState done [08:14:41]opened in 1718929509 [08:14:41]opened+sec_in_day 1719015909 [08:14:41]quantity*price = 73900 [08:14:41]sum+1 = 73901 [08:14:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 739.00 НСП 1% : 6.54 НДС 12% : 78.48 Наличными: 739.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 23 21.06.2024 08:14 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104100 ФПД: 164233381962943 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T081445&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104100&fm=164233381962943&tin=02508201610067®Number=0000000000092785&sum=73900 [08:14:42]StoreToDocumentArchive [08:14:42]shift 355 fd 104100 [08:14:42]save to /storage/0355/doc_00104100 [08:14:42]save last doc name /storage/0355/doc_00104100 to /storage/kkm_last_doc_name [08:14:42]save OK [08:14:42]Clear old archive folders... [08:14:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:14:42]tlvbuf is 01127C60 [08:14:42]SAM_PROTO_ClearQueue [08:14:42]wFMCommunicate request_size=4 [08:14:42]MH_SAM_APDU [08:14:42]CAPDU: 80 09 00 00 [08:14:42]Write to MH i2c: E2 08 00 EE 11 80 09 00 00 00 00 00 00 71 [08:14:42]Write i2c OK [08:14:42]MH_I2C_Read... [08:14:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:14:42]Read from MH i2c: E2 [08:14:42]MH_I2C_Read... [08:14:42]Read from MH i2c: E2 03 00 [08:14:42]MH_I2C_Read... [08:14:42]Read from MH i2c: E2 03 00 EE 11 00 90 00 73 [08:14:42]RAPDU: 90 00 [08:14:42]wFMCommunicate OK [08:14:42]SAM_PROTO_ClearQueue done [08:14:42]KKMCreateOFDPacket [08:14:42]OFDProtocolAddRootSTLVToBuf [08:14:42]FM_MakeSignedData [08:14:42]FM_MakeSignedData [08:14:42]SAM_PROTO_SignData [08:14:42]wFMCommunicate request_size=4 [08:14:42]MH_SAM_APDU [08:14:42]CAPDU: 80 0D 01 02 [08:14:42]Write to MH i2c: E2 08 00 EF 11 80 0D 01 02 00 00 00 00 79 [08:14:42]Write i2c OK [08:14:42]MH_I2C_Read... [08:14:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:14:42]Read from MH i2c: E2 [08:14:42]MH_I2C_Read... [08:14:42]Read from MH i2c: E2 03 00 [08:14:42]MH_I2C_Read... [08:14:42]Read from MH i2c: E2 03 00 EF 11 00 90 00 74 [08:14:42]RAPDU: 90 00 [08:14:42]wFMCommunicate OK [08:14:42]wFMCommunicate request_size=255 [08:14:42]MH_SAM_APDU [08:14: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 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 AC 20 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 75 36 75 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 A4 96 01 00 35 04 06 00 95 [08:14:42]Write to MH i2c: E2 02 01 F0 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 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 AC 20 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 75 36 75 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 A4 96 01 00 35 04 06 00 95 00 00 4C [08:14:42]Write i2c OK [08:14:42]MH_I2C_Read... [08:14:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:14:43]Read from MH i2c: E2 [08:14:43]MH_I2C_Read... [08:14:43]Read from MH i2c: E2 03 00 [08:14:43]MH_I2C_Read... [08:14:43]Read from MH i2c: E2 03 00 F0 11 00 90 00 75 [08:14:43]RAPDU: 90 00 [08:14:43]wFMCommunicate OK [08:14:43]wFMCommunicate request_size=10 [08:14:43]MH_SAM_APDU [08:14:43]CAPDU: 80 0D 02 02 05 5E 90 64 64 BF [08:14:43]Write to MH i2c: E2 0D 00 F1 11 80 0D 02 02 05 00 5E 90 64 64 BF 00 00 FB [08:14:43]Write i2c OK [08:14:43]MH_I2C_Read... [08:14:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:14:43]Read from MH i2c: E2 [08:14:43]MH_I2C_Read... [08:14:43]Read from MH i2c: E2 03 00 [08:14:43]MH_I2C_Read... [08:14:43]Read from MH i2c: E2 03 00 F1 11 00 90 00 76 [08:14:43]RAPDU: 90 00 [08:14:43]wFMCommunicate OK [08:14:43]wFMCommunicate request_size=4 [08:14:43]MH_SAM_APDU [08:14:43]CAPDU: 80 0D 03 02 [08:14:43]Write to MH i2c: E2 08 00 F2 11 80 0D 03 02 00 00 00 00 7E [08:14:43]Write i2c OK [08:14:43]MH_I2C_Read... [08:14:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:14:43]Read from MH i2c: E2 [08:14:43]MH_I2C_Read... [08:14:43]Read from MH i2c: E2 0B 00 [08:14:43]MH_I2C_Read... [08:14:43]Read from MH i2c: E2 0B 00 F2 11 00 EF 1A A6 93 8F 71 48 ED 90 00 F6 [08:14:43]RAPDU: EF 1A A6 93 8F 71 48 ED 90 00 [08:14:43]wFMCommunicate OK [08:14:43]SAM_PROTO_SignData done [08:14:43]FM_MakeSignedData done [08:14:43]CreateOFDProtocolMessage [08:14:43]wFMCommunicate request_size=4 [08:14:43]MH_SAM_APDU [08:14:43]CAPDU: 80 11 00 00 [08:14:43]Write to MH i2c: E2 08 00 F3 11 80 11 00 00 00 00 00 00 7E [08:14:43]Write i2c OK [08:14:43]MH_I2C_Read... [08:14:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:14:43]Read from MH i2c: E2 [08:14:43]MH_I2C_Read... [08:14:43]Read from MH i2c: E2 17 00 [08:14:43]MH_I2C_Read... [08:14:43]Read from MH i2c: E2 17 00 F3 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 D1 [08:14:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [08:14:43]wFMCommunicate OK [08:14:43]CreateOFDProtocolMessage done [08:14:43]OFDSenderStorePacket 104100 [08:14:43]StoreOFDPacket docnum=104100 [08:14: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 C3 F5 07 01 F5 D6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 AC 20 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 75 36 75 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 A4 96 01 00 35 04 06 00 95 5E 90 64 64 BF EF 1A A6 93 8F 71 48 ED [08:14:43]CheckFolder [08:14:43]dirname=/storage/ofd_packets [08:14:43]CheckFolder done [08:14:43]ProducePacketName [08:14:43]name=ofd_packets/00104100 [08:14:43]NVStorageSaveData ofd_packets/00104100 [08:14:43]File name is /storage/ofd_packets/00104100 [08:14:43]Write 301 bytes [08:14:43]NVStorageSaveData done [08:14:43]OFDSenderStorePacket done [08:14:43]KKMCreateOFDPacket done [08:14:43]NVStorageSaveData kkm_last_timestamp [08:14:43]File name is /storage/kkm_last_timestamp [08:14:43]Write 4 bytes [08:14:43]NVStorageSaveData done [08:14:43]ExternCall_PrintAddStr [08:14:43]wPrintStart [08:14:43]Write to MH i2c: 01 00 00 F4 11 05 [08:14:43]OFD Sender: Processing packet 104100 [packets to send 17, broken 16] [08:14:43]ProducePacketName [08:14:43]name=ofd_packets/00104100 [08:14:43]OFD Sender: To server: pG, [08:14:43]CommunicateWithHost lk.salyk.kg:30040 [08:14:43]ConnectInit lk.salyk.kg [08:14:43]Write i2c OK [08:14:43]MH_I2C_Read... [08:14:43]Read from MH i2c: 01 [08:14:43]MH_I2C_Read... [08:14:43]Read from MH i2c: 01 07 00 [08:14:43]MH_I2C_Read... [08:14:43]Read from MH i2c: 01 07 00 F4 11 00 00 00 00 00 FF 0F 1A [08:14:43]RasterBufferAndPrint [08:14:43]line Счет N : (1)673491 [08:14:43]line ИНН: 02508201610067 [08:14:43]line Контрольно-Кассовый Чек [08:14:43]line ПРОДАЖА [08:14:43]line ТРК (МРК, ГНК) : 41 [08:14:43]line Товар: 2710124500 [08:14:43]line Аи-95-К-5 [08:14:43]line 10.000 * 73.90 [08:14:43]line = 739.00 [08:14:43]line НДС 12% НСП 1% [08:14:43]line > о реализуемом товаре [08:14:43]line ИТОГО: 739.00 [08:14:43]line НСП 1% : 6.54 [08:14:43]line НДС 12% : 78.48 [08:14:43]line Наличными: 739.00 [08:14:43]line Безнал.: 0.00 [08:14:43]line Место: АЗС № 120 "Партнер Нефть" [08:14:43]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [08:14:43]line СНО: Общий режим [08:14:43]line Чек 23 21.06.2024 08:14 [08:14:43]line Смена: 355 ФФД: 1.0 [08:14:43]line ЗНМ: 0300000164 [08:14:43]line РНМ: 0000000000092785 [08:14:43]line Версия ККМ: 001 [08:14:43]line ФМ: 0000000000875093 [08:14:43]line ФД: 104100 [08:14:43]line ФПД: 164233381962943 [08:14:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T081445&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104100&fm=164233381962943&tin=02508201610067®Number=0000000000092785&sum=73900 [08:14:43]Connected sock=10 [08:14:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 C3 F5 07 01 F5 D6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 AC 20 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 75 36 75 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 A4 96 01 00 35 04 06 00 95 5E 90 64 64 BF EF 1A A6 93 8F 71 48 ED [08:14:43]written 0, free lines is 4095 [08:14: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 EF 62 47 00 02 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 A4 96 01 00 F4 03 04 00 F7 DC 74 66 B6 04 01 00 00 61 BA BD 0F 19 C8 6E A1 [08:14:43]CommunicateWithHost err = 0 [08:14:43]CheckOFDResponse [08:14:43]1017 (14) - 77093643461234 [08:14:43]1041 (16) - 0000000000875093 [08:14:43]1040 (4) - 104100 [08:14:43]1012 (4) - 21.06.2024 01:52 [08:14:43]1206 (1) - 0 [08:14:43]OFD Sender: Remove packet 104100 [08:14:43]ProducePacketName [08:14:43]name=ofd_packets/00104100 [08:14:43]NVStorageDeleteData [08:14:44]Write to MH i2c: 01 00 00 1C 12 2E [08:14:44]Write i2c OK [08:14:44]MH_I2C_Read... [08:14:44]Read from MH i2c: 01 [08:14:44]MH_I2C_Read... [08:14:44]Read from MH i2c: 01 07 00 [08:14:44]MH_I2C_Read... [08:14:44]Read from MH i2c: 01 07 00 1C 12 00 00 00 00 00 11 0D 53 [08:14:44]RasterBufferAndPrint [08:14:44]line [08:14:44]line [08:14:44]line [08:14:44]line [08:14:44]line [08:14:44]written 0, free lines is 3352 [08:14:44]MH_Cut [08:14:44]Write to MH i2c: D1 01 00 23 12 01 07 [08:14:44]Write i2c OK [08:14:44]MH_I2C_Read... [08:14:44]Read from MH i2c: D1 [08:14:44]MH_I2C_Read... [08:14:44]Read from MH i2c: D1 01 00 [08:14:44]MH_I2C_Read... [08:14:44]Read from MH i2c: D1 01 00 23 12 00 06 [08:14:44]Write to MH i2c: 01 00 00 24 12 36 [08:14:44]Write i2c OK [08:14:44]MH_I2C_Read... [08:14:44]OFD Sender: No OFD packet to send [08:14:44]*** Cut start [08:14:44]*** Partial cut [08:14:44]*** CUTSNS_PIN = 1 [08:14:44]*** CUTSNS_PIN = 0 [08:14:45]*** Brake cut motor [08:14:45]Read from MH i2c: 01 [08:14:45]MH_I2C_Read... [08:14:45]*** Stop cut motor [08:14:45]*** Cut end [08:14:45]Read from MH i2c: 01 07 00 [08:14:45]MH_I2C_Read... [08:14:45]Read from MH i2c: 01 07 00 24 12 00 00 00 00 00 FF 0F 4B [08:14:45]process_action close_receipt done [08:14:45]requested_data is exist [08:14:45]produce_requested_data [08:14:45]requested_item fm.sn is exist - process it [08:14:45]wFMCommunicate request_size=4 [08:14:45]MH_SAM_APDU [08:14:45]CAPDU: 80 11 00 00 [08:14:45]Write to MH i2c: E2 08 00 25 12 80 11 00 00 00 00 00 00 B1 [08:14:45]Write i2c OK [08:14:45]MH_I2C_Read... [08:14:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:14:45]Read from MH i2c: E2 [08:14:45]MH_I2C_Read... [08:14:45]Read from MH i2c: E2 17 00 [08:14:45]MH_I2C_Read... [08:14:45]Read from MH i2c: E2 17 00 25 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 04 [08:14:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [08:14:45]wFMCommunicate OK [08:14:45]requested_item fd.num is exist - process it [08:14:45]SAM_PROTO_GetFieldsCounters [08:14:45]wFMCommunicate request_size=4 [08:14:45]MH_SAM_APDU [08:14:45]CAPDU: 80 13 00 00 [08:14:45]Write to MH i2c: E2 08 00 26 12 80 13 00 00 00 00 00 00 B4 [08:14:45]Write i2c OK [08:14:45]MH_I2C_Read... [08:14:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:14:45]Read from MH i2c: E2 [08:14:45]MH_I2C_Read... [08:14:45]Read from MH i2c: E2 62 00 [08:14:45]MH_I2C_Read... [08:14:45]Read from MH i2c: E2 62 00 26 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 A4 96 01 00 0E 04 04 00 63 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 BF [08:14:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 96 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:14:45]wFMCommunicate OK [08:14:45]SAM_PROTO_GetFieldsCounters done [08:14:45]requested_item shift.num is exist - process it [08:14:45]requested_item shift.opened is exist - process it [08:14:45]req_shift_opened [08:14:45]FM_GetShiftState [08:14:45]SAM_PROTO_GetShiftState [08:14:45]wFMCommunicate request_size=4 [08:14:45]MH_SAM_APDU [08:14:45]CAPDU: 80 13 01 00 [08:14:45]Write to MH i2c: E2 08 00 27 12 80 13 01 00 00 00 00 00 B6 [08:14:45]Write i2c OK [08:14:45]MH_I2C_Read... [08:14:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:14:45]Read from MH i2c: E2 [08:14:45]MH_I2C_Read... [08:14:45]Read from MH i2c: E2 0E 00 [08:14:45]MH_I2C_Read... [08:14:45]Read from MH i2c: E2 0E 00 27 12 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 C9 [08:14:45]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [08:14:45]wFMCommunicate OK [08:14:45]SAM_PROTO_GetShiftState done [08:14:45]FM_GetShiftState done [08:14:45]req_shift_opened done [08:14:45]requested_item shift.open_date is exist - process it [08:14:45]req_shift_open_date [08:14:45]req_shift_open_date done [08:14:45]produce_requested_data done [08:14:45]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104100,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [08:14:45]process_action_free close_receipt [08:14:45]json_value_free [08:14:45]json_value_free done [08:14:45]process_json_proto returns [08:14:45]Send response to host [08:14:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104100,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [08:14:45]free response buf [08:14:45]execute_script done [08:14:45]execute_script returns [08:14:45]free content buf [08:14:45]Sock 7.Close socket [08:14:45]Sock 7.Thread stoped [08:14:49]OFD Sender: No OFD packet to send [08:14:54]OFD Sender: No OFD packet to send [08:14:59]OFD Sender: No OFD packet to send [08:15:04]OFD Sender: No OFD packet to send [08:15:09]OFD Sender: No OFD packet to send [08:15:14]OFD Sender: No OFD packet to send [08:15:19]OFD Sender: No OFD packet to send [08:15:24]OFD Sender: No OFD packet to send [08:15:29]OFD Sender: No OFD packet to send [08:15:34]OFD Sender: No OFD packet to send [08:15:39]OFD Sender: No OFD packet to send [08:15:44]OFD Sender: No OFD packet to send [08:15:49]OFD Sender: No OFD packet to send [08:15:54]OFD Sender: No OFD packet to send [08:15:59]OFD Sender: No OFD packet to send [08:16:04]OFD Sender: No OFD packet to send [08:16:09]OFD Sender: No OFD packet to send [08:16:14]OFD Sender: No OFD packet to send [08:16:17]accept exits with 9 [08:16:17]New connection [08:16:17]New thread 3066858852 created [08:16:17]Thread 3066715492 joined [08:16:17]Waiting for new connection... [08:16:17] Sock 9.Parse request [08:16:17]Sock 9.Check first char [08:16:17]Sock 9.First char is OK [08:16:17]request: POST /json_proto HTTP/1.0 [08:16:17]Method: POST [08:16:17]URL: /json_proto [08:16:17]Method is POST - this is cgi request [08:16:17]url: /json_proto [08:16:17]query_string will be loaded in cgi processing [08:16:17]execute_cgi json_proto POST (null) [08:16:17]execute_cgi path=json_proto method=POST [08:16:17]POST find Content-Length [08:16:17]Host: 172.17.38.133:8080 [08:16:17]Content-Length: 819 [08:16:17]Content-Type: application/json [08:16:17] [08:16:17]POST finish read [08:16:17]Found Content-Length = 819 [08:16:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673492", "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" : 40.090, "sum" : 2661.98, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 2661.98 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:16:17]execute_script... [08:16: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)673492", "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" : 40.090, "sum" : 2661.98, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 2661.98 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:16:17]POST & json_proto [08:16:17]process_json_proto [08:16:17]json parsed OK: [08:16:17]protocol is kg_v1.0 [08:16:17]action value=close_receipt [08:16:17]process_action close_receipt [08:16:17]cmd_close_receipt [08:16:17]MH_GetDate [08:16:17]Write to MH i2c: F0 00 00 28 12 29 [08:16:17]Write i2c OK [08:16:17]MH_I2C_Read... [08:16:17]Read from MH i2c: F0 [08:16:17]MH_I2C_Read... [08:16:17]Read from MH i2c: F0 09 00 [08:16:17]MH_I2C_Read... [08:16:17]Read from MH i2c: F0 09 00 28 12 00 D5 36 75 66 BD 8F 7C 64 44 [08:16:17]GetLastDocTimeStamp 1718957685 [08:16:17]current date 1718957781 [08:16:17]FM_GetShiftState [08:16:17]SAM_PROTO_GetShiftState [08:16:17]wFMCommunicate request_size=4 [08:16:17]MH_SAM_APDU [08:16:17]CAPDU: 80 13 01 00 [08:16:17]Write to MH i2c: E2 08 00 29 12 80 13 01 00 00 00 00 00 B8 [08:16:17]Write i2c OK [08:16:17]MH_I2C_Read... [08:16:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:16:17]Read from MH i2c: E2 [08:16:17]MH_I2C_Read... [08:16:17]Read from MH i2c: E2 0E 00 [08:16:17]MH_I2C_Read... [08:16:17]Read from MH i2c: E2 0E 00 29 12 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 CB [08:16:17]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [08:16:17]wFMCommunicate OK [08:16:17]SAM_PROTO_GetShiftState done [08:16:17]FM_GetShiftState done [08:16:17]opened in 1718929509 [08:16:17]opened+sec_in_day 1719015909 [08:16:17]quantity*price = 266197 [08:16:17]sum+1 = 266199 [08:16:17]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2661.98 НСП 1% : 23.56 НДС 12% : 282.69 Наличными: 0.00 Безнал.: 2661.98 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 24 21.06.2024 08:16 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875093 ФД: 104101 ФПД: 73540398949098 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T081621&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104101&fm=73540398949098&tin=02508201610067®Number=0000000000092785&sum=266198 [08:16:18]StoreToDocumentArchive [08:16:18]shift 355 fd 104101 [08:16:18]save to /storage/0355/doc_00104101 [08:16:18]save last doc name /storage/0355/doc_00104101 to /storage/kkm_last_doc_name [08:16:18]save OK [08:16:18]Clear old archive folders... [08:16:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:16:18]tlvbuf is 01127980 [08:16:18]SAM_PROTO_ClearQueue [08:16:18]wFMCommunicate request_size=4 [08:16:18]MH_SAM_APDU [08:16:18]CAPDU: 80 09 00 00 [08:16:18]Write to MH i2c: E2 08 00 36 12 80 09 00 00 00 00 00 00 BA [08:16:18]Write i2c OK [08:16:18]MH_I2C_Read... [08:16:18]Read from MH i2c: E2 [08:16:18]MH_I2C_Read... [08:16:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:16:18]Read from MH i2c: E2 03 00 [08:16:18]MH_I2C_Read... [08:16:18]Read from MH i2c: E2 03 00 36 12 00 90 00 BC [08:16:18]RAPDU: 90 00 [08:16:18]wFMCommunicate OK [08:16:18]SAM_PROTO_ClearQueue done [08:16:18]KKMCreateOFDPacket [08:16:18]OFDProtocolAddRootSTLVToBuf [08:16:18]FM_MakeSignedData [08:16:18]FM_MakeSignedData [08:16:18]SAM_PROTO_SignData [08:16:18]wFMCommunicate request_size=4 [08:16:18]MH_SAM_APDU [08:16:18]CAPDU: 80 0D 01 02 [08:16:18]Write to MH i2c: E2 08 00 37 12 80 0D 01 02 00 00 00 00 C2 [08:16:18]Write i2c OK [08:16:18]MH_I2C_Read... [08:16:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:16:19]Read from MH i2c: E2 [08:16:19]MH_I2C_Read... [08:16:19]Read from MH i2c: E2 03 00 [08:16:19]MH_I2C_Read... [08:16:19]Read from MH i2c: E2 03 00 37 12 00 90 00 BD [08:16:19]RAPDU: 90 00 [08:16:19]wFMCommunicate OK [08:16:19]wFMCommunicate request_size=255 [08:16:19]MH_SAM_APDU [08:16: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 9A 9C 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 D6 0F 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D6 0F 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 34 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6D 6E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D6 0F 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 D5 36 75 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 A5 96 01 00 35 04 06 00 42 [08:16:19]Write to MH i2c: E2 02 01 38 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 9A 9C 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 D6 0F 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D6 0F 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 34 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6D 6E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D6 0F 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 D5 36 75 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 A5 96 01 00 35 04 06 00 42 00 00 C4 [08:16:19]Write i2c OK [08:16:19]MH_I2C_Read... [08:16:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:16:19]Read from MH i2c: E2 [08:16:19]MH_I2C_Read... [08:16:19]Read from MH i2c: E2 03 00 [08:16:19]MH_I2C_Read... [08:16:19]Read from MH i2c: E2 03 00 38 12 00 90 00 BE [08:16:19]RAPDU: 90 00 [08:16:19]wFMCommunicate OK [08:16:19]wFMCommunicate request_size=10 [08:16:19]MH_SAM_APDU [08:16:19]CAPDU: 80 0D 02 02 05 E2 75 5B 22 EA [08:16:19]Write to MH i2c: E2 0D 00 39 12 80 0D 02 02 05 00 E2 75 5B 22 EA 00 00 8D [08:16:19]Write i2c OK [08:16:19]MH_I2C_Read... [08:16:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:16:19]Read from MH i2c: E2 [08:16:19]MH_I2C_Read... [08:16:19]Read from MH i2c: E2 03 00 [08:16:19]MH_I2C_Read... [08:16:19]Read from MH i2c: E2 03 00 39 12 00 90 00 BF [08:16:19]RAPDU: 90 00 [08:16:19]wFMCommunicate OK [08:16:19]wFMCommunicate request_size=4 [08:16:19]MH_SAM_APDU [08:16:19]CAPDU: 80 0D 03 02 [08:16:19]Write to MH i2c: E2 08 00 3A 12 80 0D 03 02 00 00 00 00 C7 [08:16:19]Write i2c OK [08:16:19]MH_I2C_Read... [08:16:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:16:19]Read from MH i2c: E2 [08:16:19]MH_I2C_Read... [08:16:19]Read from MH i2c: E2 0B 00 [08:16:19]MH_I2C_Read... [08:16:19]Read from MH i2c: E2 0B 00 3A 12 00 1F 2F 7F 13 BE BA DB 8D 90 00 88 [08:16:19]RAPDU: 1F 2F 7F 13 BE BA DB 8D 90 00 [08:16:19]wFMCommunicate OK [08:16:19]SAM_PROTO_SignData done [08:16:19]FM_MakeSignedData done [08:16:19]CreateOFDProtocolMessage [08:16:19]wFMCommunicate request_size=4 [08:16:19]MH_SAM_APDU [08:16:19]CAPDU: 80 11 00 00 [08:16:19]Write to MH i2c: E2 08 00 3B 12 80 11 00 00 00 00 00 00 C7 [08:16:19]Write i2c OK [08:16:19]MH_I2C_Read... [08:16:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:16:19]Read from MH i2c: E2 [08:16:19]MH_I2C_Read... [08:16:19]Read from MH i2c: E2 17 00 [08:16:19]MH_I2C_Read... [08:16:19]Read from MH i2c: E2 17 00 3B 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 1A [08:16:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [08:16:19]wFMCommunicate OK [08:16:19]CreateOFDProtocolMessage done [08:16:19]OFDSenderStorePacket 104101 [08:16:19]StoreOFDPacket docnum=104101 [08:16: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 AB 29 07 01 A4 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 9A 9C 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 D6 0F 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D6 0F 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 34 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6D 6E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D6 0F 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 D5 36 75 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 A5 96 01 00 35 04 06 00 42 E2 75 5B 22 EA 1F 2F 7F 13 BE BA DB 8D [08:16:19]CheckFolder [08:16:19]dirname=/storage/ofd_packets [08:16:19]CheckFolder done [08:16:19]ProducePacketName [08:16:19]name=ofd_packets/00104101 [08:16:19]NVStorageSaveData ofd_packets/00104101 [08:16:19]File name is /storage/ofd_packets/00104101 [08:16:19]Write 301 bytes [08:16:19]NVStorageSaveData done [08:16:19]OFDSenderStorePacket done [08:16:19]KKMCreateOFDPacket done [08:16:19]NVStorageSaveData kkm_last_timestamp [08:16:19]File name is /storage/kkm_last_timestamp [08:16:19]Write 4 bytes [08:16:19]NVStorageSaveData done [08:16:19]ExternCall_PrintAddStr [08:16:19]wPrintStart [08:16:19]Write to MH i2c: 01 00 00 3C 12 4E [08:16:19]Write i2c OK [08:16:19]MH_I2C_Read... [08:16:19]Read from MH i2c: 01 [08:16:19]MH_I2C_Read... [08:16:19]Read from MH i2c: 01 07 00 [08:16:19]MH_I2C_Read... [08:16:19]Read from MH i2c: 01 07 00 3C 12 00 00 00 00 00 FF 0F 63 [08:16:19]RasterBufferAndPrint [08:16:19]line Счет N : (1)673492 [08:16:19]line ИНН: 02508201610067 [08:16:19]line Контрольно-Кассовый Чек [08:16:19]line ПРОДАЖА [08:16:19]line ТРК (МРК, ГНК) : 32 [08:16:19]line Товар: 2710124130 [08:16:19]line Аи-92-К-5 [08:16:19]line 40.090 * 66.40 [08:16:19]line = 2661.98 [08:16:19]line НДС 12% НСП 1% [08:16:19]line > о реализуемом товаре [08:16:19]line ИТОГО: 2661.98 [08:16:19]line НСП 1% : 23.56 [08:16:19]line НДС 12% : 282.69 [08:16:19]line Наличными: 0.00 [08:16:19]line Безнал.: 2661.98 [08:16:19]line Место: АЗС № 120 "Партнер Нефть" [08:16:19]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [08:16:19]line СНО: Общий режим [08:16:19]line Чек 24 21.06.2024 08:16 [08:16:19]line Смена: 355 ФФД: 1.0 [08:16:19]line ЗНМ: 0300000164 [08:16:19]line РНМ: 0000000000092785 [08:16:19]line Версия ККМ: 001 [08:16:19]line Платежная система: Бакай Банк [08:16:19]line ФМ: 0000000000875093 [08:16:19]line ФД: 104101 [08:16:19]line ФПД: 73540398949098 [08:16:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T081621&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104101&fm=73540398949098&tin=02508201610067®Number=0000000000092785&sum=266198 [08:16:19]written 0, free lines is 4095 [08:16:19]OFD Sender: Processing packet 104101 [packets to send 17, broken 16] [08:16:19]ProducePacketName [08:16:19]name=ofd_packets/00104101 [08:16:19]OFD Sender: To server: pG, [08:16:19]CommunicateWithHost lk.salyk.kg:30040 [08:16:19]ConnectInit lk.salyk.kg [08:16:19]Connected sock=10 [08:16: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 AB 29 07 01 A4 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 9A 9C 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 D6 0F 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D6 0F 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 34 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6D 6E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D6 0F 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 D5 36 75 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 A5 96 01 00 35 04 06 00 42 E2 75 5B 22 EA 1F 2F 7F 13 BE BA DB 8D [08:16:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 67 49 47 00 B8 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 A5 96 01 00 F4 03 04 00 58 DD 74 66 B6 04 01 00 00 13 56 71 66 BE 07 AF 7B [08:16:20]CommunicateWithHost err = 0 [08:16:20]CheckOFDResponse [08:16:20]1017 (14) - 77093643461234 [08:16:20]1041 (16) - 0000000000875093 [08:16:20]1040 (4) - 104101 [08:16:20]1012 (4) - 21.06.2024 01:54 [08:16:20]1206 (1) - 0 [08:16:20]OFD Sender: Remove packet 104101 [08:16:20]ProducePacketName [08:16:20]name=ofd_packets/00104101 [08:16:20]NVStorageDeleteData [08:16:20]Write to MH i2c: 01 00 00 66 12 78 [08:16:20]Write i2c OK [08:16:20]MH_I2C_Read... [08:16:20]Read from MH i2c: 01 [08:16:20]MH_I2C_Read... [08:16:20]Read from MH i2c: 01 07 00 [08:16:20]MH_I2C_Read... [08:16:20]Read from MH i2c: 01 07 00 66 12 00 00 00 00 00 0D 0D 99 [08:16:20]RasterBufferAndPrint [08:16:20]line [08:16:20]line [08:16:20]line [08:16:20]line [08:16:20]line [08:16:20]written 0, free lines is 3348 [08:16:20]MH_Cut [08:16:20]Write to MH i2c: D1 01 00 6D 12 01 51 [08:16:20]Write i2c OK [08:16:20]MH_I2C_Read... [08:16:20]Read from MH i2c: D1 [08:16:20]MH_I2C_Read... [08:16:20]Read from MH i2c: D1 01 00 [08:16:20]MH_I2C_Read... [08:16:20]Read from MH i2c: D1 01 00 6D 12 00 50 [08:16:20]Write to MH i2c: 01 00 00 6E 12 80 [08:16:20]Write i2c OK [08:16:20]MH_I2C_Read... [08:16:20]OFD Sender: No OFD packet to send [08:16:20]*** Cut start [08:16:20]*** Partial cut [08:16:20]*** CUTSNS_PIN = 1 [08:16:21]*** CUTSNS_PIN = 0 [08:16:21]*** Brake cut motor [08:16:21]Read from MH i2c: 01 [08:16:21]MH_I2C_Read... [08:16:21]*** Stop cut motor [08:16:21]*** Cut end [08:16:21]Read from MH i2c: 01 07 00 [08:16:21]MH_I2C_Read... [08:16:21]Read from MH i2c: 01 07 00 6E 12 00 00 00 00 00 FF 0F 95 [08:16:21]process_action close_receipt done [08:16:21]requested_data is exist [08:16:21]produce_requested_data [08:16:21]requested_item fm.sn is exist - process it [08:16:21]wFMCommunicate request_size=4 [08:16:21]MH_SAM_APDU [08:16:21]CAPDU: 80 11 00 00 [08:16:21]Write to MH i2c: E2 08 00 6F 12 80 11 00 00 00 00 00 00 FB [08:16:21]Write i2c OK [08:16:21]MH_I2C_Read... [08:16:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:16:21]Read from MH i2c: E2 [08:16:21]MH_I2C_Read... [08:16:21]Read from MH i2c: E2 17 00 [08:16:21]MH_I2C_Read... [08:16:21]Read from MH i2c: E2 17 00 6F 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 4E [08:16:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [08:16:21]wFMCommunicate OK [08:16:21]requested_item fd.num is exist - process it [08:16:21]SAM_PROTO_GetFieldsCounters [08:16:21]wFMCommunicate request_size=4 [08:16:21]MH_SAM_APDU [08:16:21]CAPDU: 80 13 00 00 [08:16:21]Write to MH i2c: E2 08 00 70 12 80 13 00 00 00 00 00 00 FE [08:16:21]Write i2c OK [08:16:21]MH_I2C_Read... [08:16:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:16:21]Read from MH i2c: E2 [08:16:21]MH_I2C_Read... [08:16:21]Read from MH i2c: E2 62 00 [08:16:21]MH_I2C_Read... [08:16:21]Read from MH i2c: E2 62 00 70 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 A5 96 01 00 0E 04 04 00 63 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 0D [08:16: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 A5 96 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:16:21]wFMCommunicate OK [08:16:21]SAM_PROTO_GetFieldsCounters done [08:16:21]requested_item shift.num is exist - process it [08:16:21]requested_item shift.opened is exist - process it [08:16:21]req_shift_opened [08:16:21]FM_GetShiftState [08:16:21]SAM_PROTO_GetShiftState [08:16:21]wFMCommunicate request_size=4 [08:16:21]MH_SAM_APDU [08:16:21]CAPDU: 80 13 01 00 [08:16:21]Write to MH i2c: E2 08 00 71 12 80 13 01 00 00 00 00 00 00 [08:16:21]Write i2c OK [08:16:21]MH_I2C_Read... [08:16:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:16:21]Read from MH i2c: E2 [08:16:21]MH_I2C_Read... [08:16:21]Read from MH i2c: E2 0E 00 [08:16:21]MH_I2C_Read... [08:16:21]Read from MH i2c: E2 0E 00 71 12 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 13 [08:16:21]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [08:16:21]wFMCommunicate OK [08:16:21]SAM_PROTO_GetShiftState done [08:16:21]FM_GetShiftState done [08:16:21]req_shift_opened done [08:16:21]requested_item shift.open_date is exist - process it [08:16:21]req_shift_open_date [08:16:21]req_shift_open_date done [08:16:21]produce_requested_data done [08:16:21]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104101,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [08:16:21]process_action_free close_receipt [08:16:21]json_value_free [08:16:21]json_value_free done [08:16:21]process_json_proto returns [08:16:21]Send response to host [08:16:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104101,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [08:16:21]free response buf [08:16:21]execute_script done [08:16:21]execute_script returns [08:16:21]free content buf [08:16:21]Sock 9.Close socket [08:16:21]Sock 9.Thread stoped [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:48]accept exits with 7 [08:16:48]New connection [08:16:48]New thread 3066715492 created [08:16:48]Thread 3066858852 joined [08:16:48]Waiting for new connection... [08:16:48] Sock 7.Parse request [08:16:48]Sock 7.Check first char [08:16:48]Sock 7.First char is OK [08:16:48]request: POST /json_proto HTTP/1.0 [08:16:48]Method: POST [08:16:48]URL: /json_proto [08:16:48]Method is POST - this is cgi request [08:16:48]url: /json_proto [08:16:48]query_string will be loaded in cgi processing [08:16:48]execute_cgi json_proto POST (null) [08:16:48]execute_cgi path=json_proto method=POST [08:16:48]POST find Content-Length [08:16:48]Host: 172.17.38.133:8080 [08:16:48]Content-Length: 678 [08:16:48]Content-Type: application/json [08:16:48] [08:16:48]POST finish read [08:16:48]Found Content-Length = 678 [08:16:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673493", "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" ] } } [08:16:48]execute_script... [08:16: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)673493", "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" ] } } [08:16:48]POST & json_proto [08:16:48]process_json_proto [08:16:48]json parsed OK: [08:16:48]protocol is kg_v1.0 [08:16:48]action value=close_receipt [08:16:48]process_action close_receipt [08:16:48]cmd_close_receipt [08:16:48]MH_GetDate [08:16:48]Write to MH i2c: F0 00 00 72 12 73 [08:16:48]Write i2c OK [08:16:48]MH_I2C_Read... [08:16:48]Read from MH i2c: F0 [08:16:48]MH_I2C_Read... [08:16:48]Read from MH i2c: F0 09 00 [08:16:48]MH_I2C_Read... [08:16:48]Read from MH i2c: F0 09 00 72 12 00 F4 36 75 66 BD 8F 7C 64 AD [08:16:48]GetLastDocTimeStamp 1718957781 [08:16:48]current date 1718957812 [08:16:48]FM_GetShiftState [08:16:48]SAM_PROTO_GetShiftState [08:16:48]wFMCommunicate request_size=4 [08:16:48]MH_SAM_APDU [08:16:48]CAPDU: 80 13 01 00 [08:16:48]Write to MH i2c: E2 08 00 73 12 80 13 01 00 00 00 00 00 02 [08:16:48]Write i2c OK [08:16:48]MH_I2C_Read... [08:16:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:16:48]Read from MH i2c: E2 [08:16:48]MH_I2C_Read... [08:16:48]Read from MH i2c: E2 0E 00 [08:16:48]MH_I2C_Read... [08:16:48]Read from MH i2c: E2 0E 00 73 12 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 15 [08:16:48]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [08:16:48]wFMCommunicate OK [08:16:48]SAM_PROTO_GetShiftState done [08:16:48]FM_GetShiftState done [08:16:48]opened in 1718929509 [08:16:48]opened+sec_in_day 1719015909 [08:16:48]quantity*price = 80012 [08:16:48]sum+1 = 80013 [08:16:48]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 СНО: Общий режим Чек 25 21.06.2024 08:16 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104102 ФПД: 37841815886557 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T081652&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104102&fm=37841815886557&tin=02508201610067®Number=0000000000092785&sum=80000 [08:16:49]StoreToDocumentArchive [08:16:49]shift 355 fd 104102 [08:16:49]save to /storage/0355/doc_00104102 [08:16:49]save last doc name /storage/0355/doc_00104102 to /storage/kkm_last_doc_name [08:16:49]save OK [08:16:49]Clear old archive folders... [08:16:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:16:49]tlvbuf is 010F05B0 [08:16:49]SAM_PROTO_ClearQueue [08:16:49]wFMCommunicate request_size=4 [08:16:49]MH_SAM_APDU [08:16:49]CAPDU: 80 09 00 00 [08:16:49]Write to MH i2c: E2 08 00 80 12 80 09 00 00 00 00 00 00 04 [08:16:49]Write i2c OK [08:16:49]MH_I2C_Read... [08:16:50]Read from MH i2c: E2 [08:16:50]MH_I2C_Read... [08:16:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:16:50]Read from MH i2c: E2 03 00 [08:16:50]MH_I2C_Read... [08:16:50]Read from MH i2c: E2 03 00 80 12 00 90 00 06 [08:16:50]RAPDU: 90 00 [08:16:50]wFMCommunicate OK [08:16:50]SAM_PROTO_ClearQueue done [08:16:50]KKMCreateOFDPacket [08:16:50]OFDProtocolAddRootSTLVToBuf [08:16:50]FM_MakeSignedData [08:16:50]FM_MakeSignedData [08:16:50]SAM_PROTO_SignData [08:16:50]wFMCommunicate request_size=4 [08:16:50]MH_SAM_APDU [08:16:50]CAPDU: 80 0D 01 02 [08:16:50]Write to MH i2c: E2 08 00 81 12 80 0D 01 02 00 00 00 00 0C [08:16:50]Write i2c OK [08:16:50]MH_I2C_Read... [08:16:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:16:50]Read from MH i2c: E2 [08:16:50]MH_I2C_Read... [08:16:50]Read from MH i2c: E2 03 00 [08:16:50]MH_I2C_Read... [08:16:50]Read from MH i2c: E2 03 00 81 12 00 90 00 07 [08:16:50]RAPDU: 90 00 [08:16:50]wFMCommunicate OK [08:16:50]wFMCommunicate request_size=255 [08:16:50]MH_SAM_APDU [08:16: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 19 00 00 00 F4 03 04 00 F4 36 75 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 A6 96 01 00 35 04 06 00 22 [08:16:50]Write to MH i2c: E2 02 01 82 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 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 19 00 00 00 F4 03 04 00 F4 36 75 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 A6 96 01 00 35 04 06 00 22 00 00 96 [08:16:50]Write i2c OK [08:16:50]MH_I2C_Read... [08:16:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:16:50]Read from MH i2c: E2 [08:16:50]MH_I2C_Read... [08:16:50]Read from MH i2c: E2 03 00 [08:16:50]MH_I2C_Read... [08:16:50]Read from MH i2c: E2 03 00 82 12 00 90 00 08 [08:16:50]RAPDU: 90 00 [08:16:50]wFMCommunicate OK [08:16:50]wFMCommunicate request_size=10 [08:16:50]MH_SAM_APDU [08:16:50]CAPDU: 80 0D 02 02 05 6A BB FE 5A DD [08:16:50]Write to MH i2c: E2 0D 00 83 12 80 0D 02 02 05 00 6A BB FE 5A DD 00 00 73 [08:16:50]Write i2c OK [08:16:50]MH_I2C_Read... [08:16:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:16:50]Read from MH i2c: E2 [08:16:50]MH_I2C_Read... [08:16:50]Read from MH i2c: E2 03 00 [08:16:50]MH_I2C_Read... [08:16:50]Read from MH i2c: E2 03 00 83 12 00 90 00 09 [08:16:50]RAPDU: 90 00 [08:16:50]wFMCommunicate OK [08:16:50]wFMCommunicate request_size=4 [08:16:50]MH_SAM_APDU [08:16:50]CAPDU: 80 0D 03 02 [08:16:50]Write to MH i2c: E2 08 00 84 12 80 0D 03 02 00 00 00 00 11 [08:16:50]Write i2c OK [08:16:50]MH_I2C_Read... [08:16:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:16:50]Read from MH i2c: E2 [08:16:50]MH_I2C_Read... [08:16:50]Read from MH i2c: E2 0B 00 [08:16:50]MH_I2C_Read... [08:16:50]Read from MH i2c: E2 0B 00 84 12 00 BF 2E 13 66 7B A5 25 BD 90 00 7A [08:16:50]RAPDU: BF 2E 13 66 7B A5 25 BD 90 00 [08:16:50]wFMCommunicate OK [08:16:50]SAM_PROTO_SignData done [08:16:50]FM_MakeSignedData done [08:16:50]CreateOFDProtocolMessage [08:16:50]wFMCommunicate request_size=4 [08:16:50]MH_SAM_APDU [08:16:50]CAPDU: 80 11 00 00 [08:16:50]Write to MH i2c: E2 08 00 85 12 80 11 00 00 00 00 00 00 11 [08:16:50]Write i2c OK [08:16:50]MH_I2C_Read... [08:16:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:16:50]Read from MH i2c: E2 [08:16:50]MH_I2C_Read... [08:16:50]Read from MH i2c: E2 17 00 [08:16:50]MH_I2C_Read... [08:16:50]Read from MH i2c: E2 17 00 85 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 64 [08:16:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [08:16:50]wFMCommunicate OK [08:16:50]CreateOFDProtocolMessage done [08:16:50]OFDSenderStorePacket 104102 [08:16:50]StoreOFDPacket docnum=104102 [08:16: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 91 AE 07 01 8E 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 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 19 00 00 00 F4 03 04 00 F4 36 75 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 A6 96 01 00 35 04 06 00 22 6A BB FE 5A DD BF 2E 13 66 7B A5 25 BD [08:16:50]CheckFolder [08:16:50]dirname=/storage/ofd_packets [08:16:50]CheckFolder done [08:16:50]ProducePacketName [08:16:50]name=ofd_packets/00104102 [08:16:50]NVStorageSaveData ofd_packets/00104102 [08:16:50]File name is /storage/ofd_packets/00104102 [08:16:50]Write 301 bytes [08:16:50]NVStorageSaveData done [08:16:50]OFDSenderStorePacket done [08:16:50]KKMCreateOFDPacket done [08:16:50]NVStorageSaveData kkm_last_timestamp [08:16:50]File name is /storage/kkm_last_timestamp [08:16:50]Write 4 bytes [08:16:50]NVStorageSaveData done [08:16:50]ExternCall_PrintAddStr [08:16:50]wPrintStart [08:16:50]Write to MH i2c: 01 00 00 86 12 98 [08:16:50]Write i2c OK [08:16:50]MH_I2C_Read... [08:16:50]Read from MH i2c: 01 [08:16:50]MH_I2C_Read... [08:16:50]Read from MH i2c: 01 07 00 [08:16:50]MH_I2C_Read... [08:16:50]Read from MH i2c: 01 07 00 86 12 00 00 00 00 00 FF 0F AD [08:16:50]RasterBufferAndPrint [08:16:50]line Счет N : (1)673493 [08:16:50]line ИНН: 02508201610067 [08:16:50]line Контрольно-Кассовый Чек [08:16:50]line ПРОДАЖА [08:16:50]line ТРК (МРК, ГНК) : 42 [08:16:50]line Товар: 2710124130 [08:16:50]line Аи-92-К-5 [08:16:50]line 12.050 * 66.40 [08:16:50]line = 800.12 [08:16:50]line НДС 12% НСП 1% [08:16:50]line > о реализуемом товаре [08:16:50]line ОКРУГЛЕНИЕ: -0.12 [08:16:50]line ИТОГО: 800.00 [08:16:50]line Внесено: 800.00 [08:16:50]line СДАЧА: 0.00 [08:16:50]line НСП 1% : 7.08 [08:16:50]line НДС 12% : 84.97 [08:16:50]line Наличными: 800.00 [08:16:50]line Безнал.: 0.00 [08:16:50]line Место: АЗС № 120 "Партнер Нефть" [08:16:50]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [08:16:50]line СНО: Общий режим [08:16:50]line Чек 25 21.06.2024 08:16 [08:16:50]line Смена: 355 ФФД: 1.0 [08:16:50]line ЗНМ: 0300000164 [08:16:50]line РНМ: 0000000000092785 [08:16:50]line Версия ККМ: 001 [08:16:50]line ФМ: 0000000000875093 [08:16:50]line ФД: 104102 [08:16:50]line ФПД: 37841815886557 [08:16:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T081652&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104102&fm=37841815886557&tin=02508201610067®Number=0000000000092785&sum=80000 [08:16:50]OFD Sender: Processing packet 104102 [packets to send 17, broken 16] [08:16:50]ProducePacketName [08:16:50]name=ofd_packets/00104102 [08:16:50]OFD Sender: To server: pG, [08:16:50]CommunicateWithHost lk.salyk.kg:30040 [08:16:50]ConnectInit lk.salyk.kg [08:16:50]written 0, free lines is 4095 [08:16:50]Connected sock=10 [08:16: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 91 AE 07 01 8E 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 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 19 00 00 00 F4 03 04 00 F4 36 75 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 A6 96 01 00 35 04 06 00 22 6A BB FE 5A DD BF 2E 13 66 7B A5 25 BD [08:16: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 33 06 47 00 CE 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 A6 96 01 00 F4 03 04 00 77 DD 74 66 B6 04 01 00 00 24 93 BE 1F 7A EC F0 67 [08:16:51]CommunicateWithHost err = 0 [08:16:51]CheckOFDResponse [08:16:51]1017 (14) - 77093643461234 [08:16:51]1041 (16) - 0000000000875093 [08:16:51]1040 (4) - 104102 [08:16:51]1012 (4) - 21.06.2024 01:55 [08:16:51]1206 (1) - 0 [08:16:51]OFD Sender: Remove packet 104102 [08:16:51]ProducePacketName [08:16:51]name=ofd_packets/00104102 [08:16:51]NVStorageDeleteData [08:16:51]Write to MH i2c: 01 00 00 B1 12 C3 [08:16:51]Write i2c OK [08:16:51]MH_I2C_Read... [08:16:51]Read from MH i2c: 01 [08:16:51]MH_I2C_Read... [08:16:51]Read from MH i2c: 01 07 00 [08:16:51]MH_I2C_Read... [08:16:51]Read from MH i2c: 01 07 00 B1 12 00 00 00 00 00 F1 0C C7 [08:16:51]RasterBufferAndPrint [08:16:51]line [08:16:51]line [08:16:51]line [08:16:51]line [08:16:51]line [08:16:51]written 0, free lines is 3319 [08:16:51]MH_Cut [08:16:51]Write to MH i2c: D1 01 00 B8 12 01 9C [08:16:51]Write i2c OK [08:16:51]MH_I2C_Read... [08:16:51]Read from MH i2c: D1 [08:16:51]MH_I2C_Read... [08:16:51]Read from MH i2c: D1 01 00 [08:16:51]MH_I2C_Read... [08:16:51]Read from MH i2c: D1 01 00 B8 12 00 9B [08:16:51]Write to MH i2c: 01 00 00 B9 12 CB [08:16:51]Write i2c OK [08:16:51]MH_I2C_Read... [08:16:51]OFD Sender: No OFD packet to send [08:16:52]*** Cut start [08:16:52]*** Partial cut [08:16:52]*** CUTSNS_PIN = 1 [08:16:52]*** CUTSNS_PIN = 0 [08:16:52]*** Brake cut motor [08:16:52]Read from MH i2c: 01 [08:16:52]MH_I2C_Read... [08:16:52]*** Stop cut motor [08:16:52]*** Cut end [08:16:52]Read from MH i2c: 01 07 00 [08:16:52]MH_I2C_Read... [08:16:52]Read from MH i2c: 01 07 00 B9 12 00 00 00 00 00 FF 0F E0 [08:16:52]process_action close_receipt done [08:16:52]requested_data is exist [08:16:52]produce_requested_data [08:16:52]requested_item fm.sn is exist - process it [08:16:52]wFMCommunicate request_size=4 [08:16:52]MH_SAM_APDU [08:16:52]CAPDU: 80 11 00 00 [08:16:52]Write to MH i2c: E2 08 00 BA 12 80 11 00 00 00 00 00 00 46 [08:16:52]Write i2c OK [08:16:52]MH_I2C_Read... [08:16:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:16:52]Read from MH i2c: E2 [08:16:52]MH_I2C_Read... [08:16:52]Read from MH i2c: E2 17 00 [08:16:52]MH_I2C_Read... [08:16:52]Read from MH i2c: E2 17 00 BA 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 99 [08:16:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [08:16:52]wFMCommunicate OK [08:16:52]requested_item fd.num is exist - process it [08:16:52]SAM_PROTO_GetFieldsCounters [08:16:52]wFMCommunicate request_size=4 [08:16:52]MH_SAM_APDU [08:16:52]CAPDU: 80 13 00 00 [08:16:52]Write to MH i2c: E2 08 00 BB 12 80 13 00 00 00 00 00 00 49 [08:16:52]Write i2c OK [08:16:52]MH_I2C_Read... [08:16:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:16:52]Read from MH i2c: E2 [08:16:52]MH_I2C_Read... [08:16:52]Read from MH i2c: E2 62 00 [08:16:52]MH_I2C_Read... [08:16:52]Read from MH i2c: E2 62 00 BB 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 A6 96 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 5C [08:16: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 A6 96 01 00 0E 04 04 00 63 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:16:52]wFMCommunicate OK [08:16:52]SAM_PROTO_GetFieldsCounters done [08:16:52]requested_item shift.num is exist - process it [08:16:52]requested_item shift.opened is exist - process it [08:16:52]req_shift_opened [08:16:52]FM_GetShiftState [08:16:52]SAM_PROTO_GetShiftState [08:16:52]wFMCommunicate request_size=4 [08:16:52]MH_SAM_APDU [08:16:52]CAPDU: 80 13 01 00 [08:16:52]Write to MH i2c: E2 08 00 BC 12 80 13 01 00 00 00 00 00 4B [08:16:52]Write i2c OK [08:16:52]MH_I2C_Read... [08:16:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:16:52]Read from MH i2c: E2 [08:16:52]MH_I2C_Read... [08:16:52]Read from MH i2c: E2 0E 00 [08:16:52]MH_I2C_Read... [08:16:52]Read from MH i2c: E2 0E 00 BC 12 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 5E [08:16:52]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [08:16:52]wFMCommunicate OK [08:16:52]SAM_PROTO_GetShiftState done [08:16:52]FM_GetShiftState done [08:16:52]req_shift_opened done [08:16:52]requested_item shift.open_date is exist - process it [08:16:52]req_shift_open_date [08:16:52]req_shift_open_date done [08:16:52]produce_requested_data done [08:16:52]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104102,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [08:16:52]process_action_free close_receipt [08:16:52]json_value_free [08:16:52]json_value_free done [08:16:52]process_json_proto returns [08:16:52]Send response to host [08:16:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104102,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [08:16:52]free response buf [08:16:52]execute_script done [08:16:52]execute_script returns [08:16:52]free content buf [08:16:52]Sock 7.Close socket [08:16:52]Sock 7.Thread stoped [08:16:56]OFD Sender: No OFD packet to send [08:17:01]OFD Sender: No OFD packet to send [08:17:06]OFD Sender: No OFD packet to send [08:17:11]OFD Sender: No OFD packet to send [08:17:16]OFD Sender: No OFD packet to send [08:17:21]OFD Sender: No OFD packet to send [08:17:26]OFD Sender: No OFD packet to send [08:17:31]OFD Sender: No OFD packet to send [08:17:36]OFD Sender: No OFD packet to send [08:17:41]OFD Sender: No OFD packet to send [08:17:46]OFD Sender: No OFD packet to send [08:17:51]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:32]OFD Sender: No OFD packet to send [08:22:37]OFD Sender: No OFD packet to send [08:22:42]OFD Sender: No OFD packet to send [08:22:47]OFD Sender: No OFD packet to send [08:22:52]OFD Sender: No OFD packet to send [08:22:57]OFD Sender: No OFD packet to send [08:23:02]OFD Sender: No OFD packet to send [08:23:07]OFD Sender: No OFD packet to send [08:23:12]OFD Sender: No OFD packet to send [08:23:17]OFD Sender: No OFD packet to send [08:23:22]OFD Sender: No OFD packet to send [08:23:27]OFD Sender: No OFD packet to send [08:23:32]OFD Sender: No OFD packet to send [08:23:37]OFD Sender: No OFD packet to send [08:23:42]OFD Sender: No OFD packet to send [08:23:47]OFD Sender: No OFD packet to send [08:23:52]OFD Sender: No OFD packet to send [08:23:57]OFD Sender: No OFD packet to send [08:24:02]OFD Sender: No OFD packet to send [08:24:07]OFD Sender: No OFD packet to send [08:24:12]OFD Sender: No OFD packet to send [08:24:17]OFD Sender: No OFD packet to send [08:24:22]OFD Sender: No OFD packet to send [08:24:27]OFD Sender: No OFD packet to send [08:24:32]OFD Sender: No OFD packet to send [08:24:37]OFD Sender: No OFD packet to send [08:24:42]OFD Sender: No OFD packet to send [08:24:47]OFD Sender: No OFD packet to send [08:24:52]OFD Sender: No OFD packet to send [08:24:57]OFD Sender: No OFD packet to send [08:25:02]OFD Sender: No OFD packet to send [08:25:07]OFD Sender: No OFD packet to send [08:25:12]OFD Sender: No OFD packet to send [08:25:17]OFD Sender: No OFD packet to send [08:25:22]OFD Sender: No OFD packet to send [08:25:27]OFD Sender: No OFD packet to send [08:25:32]OFD Sender: No OFD packet to send [08:25:37]OFD Sender: No OFD packet to send [08:25:42]OFD Sender: No OFD packet to send [08:25:47]OFD Sender: No OFD packet to send [08:25:52]OFD Sender: No OFD packet to send [08:25:55]accept exits with 9 [08:25:55]New connection [08:25:55]New thread 3066858852 created [08:25:55]Thread 3066715492 joined [08:25:55]Waiting for new connection... [08:25:55] Sock 9.Parse request [08:25:55]Sock 9.Check first char [08:25:55]Sock 9.First char is OK [08:25:55]request: POST /json_proto HTTP/1.0 [08:25:55]Method: POST [08:25:55]URL: /json_proto [08:25:55]Method is POST - this is cgi request [08:25:55]url: /json_proto [08:25:55]query_string will be loaded in cgi processing [08:25:55]execute_cgi json_proto POST (null) [08:25:55]execute_cgi path=json_proto method=POST [08:25:55]POST find Content-Length [08:25:55]Host: 172.17.38.133:8080 [08:25:55]Content-Length: 1184 [08:25:55]Content-Type: application/json [08:25:55] [08:25:55]POST finish read [08:25:55]Found Content-Length = 1184 [08:25: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 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)673494\u000A21.06.2024 08:03\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\u000A3889032\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:25:55]execute_script... [08:25: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 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)673494\u000A21.06.2024 08:03\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\u000A3889032\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:25:55]POST & json_proto [08:25:55]process_json_proto [08:25:55]json parsed OK: [08:25:55]protocol is kg_v1.0 [08:25:55]action value=print_text [08:25:55]process_action print_text [08:25:55]cmd_print_text [08:25:55]ExternCall_PrintAddStr [08:25:55]wPrintStart [08:25:55]Write to MH i2c: 01 00 00 BD 12 CF [08:25:55]Write i2c OK [08:25:55]MH_I2C_Read... [08:25:55]Read from MH i2c: 01 [08:25:55]MH_I2C_Read... [08:25:55]Read from MH i2c: 01 07 00 [08:25:55]MH_I2C_Read... [08:25:55]Read from MH i2c: 01 07 00 BD 12 00 00 00 00 00 FF 0F E4 [08:25:55]RasterBufferAndPrint [08:25:55]line *****ТОВАРНЫЙ ЧЕК***** [08:25:55]line АЗС 120 [08:25:55]line Партнер нефть [08:25:55]line 02508201610067 [08:25:55]line Кассир : Асанбаев Н. [08:25:55]line Счет N : (1)673494 [08:25:55]line 21.06.2024 08:03 [08:25:55]line ПРОДАЖА [08:25:55]line ТРК (МРК, ГНК): 32 [08:25:55]line Вид ГСМ : 2710124130 [08:25:55]line Аи-92-К-5 [08:25:55]line 10.000 x 66.40 [08:25:55]line ИТОГ: 664.00 [08:25:55]line Тип оплаты: Талоны: Партнер нефть [08:25:55]line 3889032 [08:25:55]line ______________________ [08:25:55]line (подпись) [08:25:55]written 0, free lines is 4095 [08:25:55]Write to MH i2c: 01 00 00 D1 12 E3 [08:25:55]Write i2c OK [08:25:55]MH_I2C_Read... [08:25:55]Read from MH i2c: 01 [08:25:55]MH_I2C_Read... [08:25:55]Read from MH i2c: 01 07 00 [08:25:55]MH_I2C_Read... [08:25:55]Read from MH i2c: 01 07 00 D1 12 00 00 00 00 00 13 0E 0B [08:25:55]RasterBufferAndPrint [08:25:55]line [08:25:55]line [08:25:55]line [08:25:55]line [08:25:55]line [08:25:55]written 0, free lines is 3605 [08:25:55]MH_Cut [08:25:55]Write to MH i2c: D1 01 00 D8 12 01 BC [08:25:55]Write i2c OK [08:25:55]MH_I2C_Read... [08:25:55]Read from MH i2c: D1 [08:25:55]MH_I2C_Read... [08:25:55]Read from MH i2c: D1 01 00 [08:25:55]MH_I2C_Read... [08:25:55]Read from MH i2c: D1 01 00 D8 12 00 BB [08:25:55]Write to MH i2c: 01 00 00 D9 12 EB [08:25:55]Write i2c OK [08:25:55]MH_I2C_Read... [08:25:56]*** Cut start [08:25:56]*** Partial cut [08:25:56]*** CUTSNS_PIN = 1 [08:25:56]*** CUTSNS_PIN = 0 [08:25:56]*** Brake cut motor [08:25:56]Read from MH i2c: 01 [08:25:56]MH_I2C_Read... [08:25:56]*** Stop cut motor [08:25:56]*** Cut end [08:25:56]Read from MH i2c: 01 07 00 [08:25:56]MH_I2C_Read... [08:25:56]Read from MH i2c: 01 07 00 D9 12 00 00 00 00 00 FF 0F 00 [08:25:56]process_action print_text done [08:25:56]requested_data is exist [08:25:56]produce_requested_data [08:25:56]requested_item fm.sn is exist - process it [08:25:56]wFMCommunicate request_size=4 [08:25:56]MH_SAM_APDU [08:25:56]CAPDU: 80 11 00 00 [08:25:56]Write to MH i2c: E2 08 00 DA 12 80 11 00 00 00 00 00 00 66 [08:25:56]Write i2c OK [08:25:56]MH_I2C_Read... [08:25:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:25:56]Read from MH i2c: E2 [08:25:56]MH_I2C_Read... [08:25:56]Read from MH i2c: E2 17 00 [08:25:56]MH_I2C_Read... [08:25:56]Read from MH i2c: E2 17 00 DA 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 B9 [08:25:56]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:56]wFMCommunicate OK [08:25:56]requested_item fd.num is exist - process it [08:25:56]SAM_PROTO_GetFieldsCounters [08:25:56]wFMCommunicate request_size=4 [08:25:56]MH_SAM_APDU [08:25:56]CAPDU: 80 13 00 00 [08:25:56]Write to MH i2c: E2 08 00 DB 12 80 13 00 00 00 00 00 00 69 [08:25:56]Write i2c OK [08:25:56]MH_I2C_Read... [08:25:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:25:57]Read from MH i2c: E2 [08:25:57]MH_I2C_Read... [08:25:57]Read from MH i2c: E2 62 00 [08:25:57]MH_I2C_Read... [08:25:57]Read from MH i2c: E2 62 00 DB 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 A6 96 01 00 0E 04 04 00 63 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 7C [08: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 A6 96 01 00 0E 04 04 00 63 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:25:57]wFMCommunicate OK [08:25:57]SAM_PROTO_GetFieldsCounters done [08:25:57]requested_item shift.num is exist - process it [08:25:57]requested_item shift.opened is exist - process it [08:25:57]req_shift_opened [08:25:57]FM_GetShiftState [08:25:57]SAM_PROTO_GetShiftState [08:25:57]wFMCommunicate request_size=4 [08:25:57]MH_SAM_APDU [08:25:57]CAPDU: 80 13 01 00 [08:25:57]Write to MH i2c: E2 08 00 DC 12 80 13 01 00 00 00 00 00 6B [08:25:57]Write i2c OK [08:25:57]MH_I2C_Read... [08:25:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:25:57]Read from MH i2c: E2 [08:25:57]MH_I2C_Read... [08:25:57]Read from MH i2c: E2 0E 00 [08:25:57]MH_I2C_Read... [08:25:57]Read from MH i2c: E2 0E 00 DC 12 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 7E [08:25:57]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [08:25:57]wFMCommunicate OK [08:25:57]SAM_PROTO_GetShiftState done [08:25:57]FM_GetShiftState done [08:25:57]req_shift_opened done [08:25:57]requested_item shift.open_date is exist - process it [08:25:57]req_shift_open_date [08:25:57]req_shift_open_date done [08:25:57]produce_requested_data done [08:25:57]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104102,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [08:25:57]process_action_free print_text [08:25:57]json_value_free [08:25:57]json_value_free done [08:25:57]process_json_proto returns [08:25:57]Send response to host [08:25:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104102,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [08:25:57]free response buf [08:25:57]execute_script done [08:25:57]execute_script returns [08:25:57]free content buf [08:25:57]Sock 9.Close socket [08:25:57]Sock 9.Thread stoped [08:25:57]OFD Sender: No OFD packet to send [08:26:02]OFD Sender: No OFD packet to send [08:26:07]OFD Sender: No OFD packet to send [08:26:12]OFD Sender: No OFD packet to send [08:26:17]OFD Sender: No OFD packet to send [08:26:22]OFD Sender: No OFD packet to send [08:26:27]OFD Sender: No OFD packet to send [08:26:32]OFD Sender: No OFD packet to send [08:26:37]OFD Sender: No OFD packet to send [08:26:42]OFD Sender: No OFD packet to send [08:26:47]OFD Sender: No OFD packet to send [08:26:52]OFD Sender: No OFD packet to send [08:26:57]OFD Sender: No OFD packet to send [08:27:02]OFD Sender: No OFD packet to send [08:27:07]OFD Sender: No OFD packet to send [08:27:12]OFD Sender: No OFD packet to send [08:27:17]OFD Sender: No OFD packet to send [08:27:22]OFD Sender: No OFD packet to send [08:27:27]OFD Sender: No OFD packet to send [08:27:32]OFD Sender: No OFD packet to send [08:27:37]OFD Sender: No OFD packet to send [08:27:42]OFD Sender: No OFD packet to send [08:27:47]OFD Sender: No OFD packet to send [08:27:52]OFD Sender: No OFD packet to send [08:27:57]OFD Sender: No OFD packet to send [08:28:02]OFD Sender: No OFD packet to send [08:28:07]OFD Sender: No OFD packet to send [08:28:12]OFD Sender: No OFD packet to send [08:28:17]OFD Sender: No OFD packet to send [08:28:22]OFD Sender: No OFD packet to send [08:28:27]OFD Sender: No OFD packet to send [08:28:32]OFD Sender: No OFD packet to send [08:28:37]OFD Sender: No OFD packet to send [08:28:42]OFD Sender: No OFD packet to send [08:28:47]OFD Sender: No OFD packet to send [08:28:52]OFD Sender: No OFD packet to send [08:28:57]OFD Sender: No OFD packet to send [08:29:02]OFD Sender: No OFD packet to send [08:29:07]OFD Sender: No OFD packet to send [08:29:12]OFD Sender: No OFD packet to send [08:29:17]OFD Sender: No OFD packet to send [08:29:22]OFD Sender: No OFD packet to send [08:29:27]OFD Sender: No OFD packet to send [08:29:32]OFD Sender: No OFD packet to send [08:29:37]OFD Sender: No OFD packet to send [08:29:42]OFD Sender: No OFD packet to send [08:29:47]OFD Sender: No OFD packet to send [08:29:52]OFD Sender: No OFD packet to send [08:29:57]OFD Sender: No OFD packet to send [08:30:02]OFD Sender: No OFD packet to send [08:30:07]OFD Sender: No OFD packet to send [08:30:08]accept exits with 7 [08:30:08]New connection [08:30:08]New thread 3066715492 created [08:30:08]Thread 3066858852 joined [08:30:08]Waiting for new connection... [08:30:08] Sock 7.Parse request [08:30:08]Sock 7.Check first char [08:30:08]Sock 7.First char is OK [08:30:08]request: POST /json_proto HTTP/1.0 [08:30:08]Method: POST [08:30:08]URL: /json_proto [08:30:08]Method is POST - this is cgi request [08:30:08]url: /json_proto [08:30:08]query_string will be loaded in cgi processing [08:30:08]execute_cgi json_proto POST (null) [08:30:08]execute_cgi path=json_proto method=POST [08:30:08]POST find Content-Length [08:30:08]Host: 172.17.38.133:8080 [08:30:08]Content-Length: 687 [08:30:08]Content-Type: application/json [08:30:08] [08:30:08]POST finish read [08:30:08]Found Content-Length = 687 [08:30:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673495", "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" : 54.870, "sum" : 4000.02, "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" ] } } [08:30:08]execute_script... [08: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)673495", "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" : 54.870, "sum" : 4000.02, "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" ] } } [08:30:08]POST & json_proto [08:30:08]process_json_proto [08:30:08]json parsed OK: [08:30:08]protocol is kg_v1.0 [08:30:08]action value=close_receipt [08:30:08]process_action close_receipt [08:30:08]cmd_close_receipt [08:30:08]MH_GetDate [08:30:08]Write to MH i2c: F0 00 00 DD 12 DE [08:30:08]Write i2c OK [08:30:08]MH_I2C_Read... [08:30:08]Read from MH i2c: F0 [08:30:08]MH_I2C_Read... [08:30:08]Read from MH i2c: F0 09 00 [08:30:08]MH_I2C_Read... [08:30:08]Read from MH i2c: F0 09 00 DD 12 00 13 3A 75 66 BD 8F 7C 64 3B [08:30:08]GetLastDocTimeStamp 1718957812 [08:30:08]current date 1718958611 [08:30:08]FM_GetShiftState [08:30:08]SAM_PROTO_GetShiftState [08:30:08]wFMCommunicate request_size=4 [08:30:08]MH_SAM_APDU [08:30:08]CAPDU: 80 13 01 00 [08:30:08]Write to MH i2c: E2 08 00 DE 12 80 13 01 00 00 00 00 00 6D [08:30:08]Write i2c OK [08:30:08]MH_I2C_Read... [08:30:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:30:08]Read from MH i2c: E2 [08:30:08]MH_I2C_Read... [08:30:08]Read from MH i2c: E2 0E 00 [08:30:08]MH_I2C_Read... [08:30:08]Read from MH i2c: E2 0E 00 DE 12 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 80 [08:30:08]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [08:30:08]wFMCommunicate OK [08:30:08]SAM_PROTO_GetShiftState done [08:30:08]FM_GetShiftState done [08:30:08]opened in 1718929509 [08:30:08]opened+sec_in_day 1719015909 [08:30:08]quantity*price = 400002 [08:30:08]sum+1 = 400003 [08:30:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 4000.00 Внесено: 4000.00 СДАЧА: 0.00 НСП 1% : 35.40 НДС 12% : 424.78 Наличными: 4000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 26 21.06.2024 08:30 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104103 ФПД: 172400568283131 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T083011&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104103&fm=172400568283131&tin=02508201610067®Number=0000000000092785&sum=400000 [08:30:09]StoreToDocumentArchive [08:30:09]shift 355 fd 104103 [08:30:09]save to /storage/0355/doc_00104103 [08:30:09]save last doc name /storage/0355/doc_00104103 to /storage/kkm_last_doc_name [08:30:09]save OK [08:30:09]Clear old archive folders... [08:30:09]ProcessDocumentItem done err = 0, tmpTLVsize=252 [08:30:09]tlvbuf is 01136950 [08:30:09]SAM_PROTO_ClearQueue [08:30:09]wFMCommunicate request_size=4 [08:30:09]MH_SAM_APDU [08:30:09]CAPDU: 80 09 00 00 [08:30:09]Write to MH i2c: E2 08 00 EB 12 80 09 00 00 00 00 00 00 6F [08:30:09]Write i2c OK [08:30:09]MH_I2C_Read... [08:30:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:30:09]Read from MH i2c: E2 [08:30:09]MH_I2C_Read... [08:30:09]Read from MH i2c: E2 03 00 [08:30:09]MH_I2C_Read... [08:30:09]Read from MH i2c: E2 03 00 EB 12 00 90 00 71 [08:30:09]RAPDU: 90 00 [08:30:09]wFMCommunicate OK [08:30:09]SAM_PROTO_ClearQueue done [08:30:09]KKMCreateOFDPacket [08:30:09]OFDProtocolAddRootSTLVToBuf [08:30:09]FM_MakeSignedData [08:30:09]FM_MakeSignedData [08:30:09]SAM_PROTO_SignData [08:30:09]wFMCommunicate request_size=4 [08:30:09]MH_SAM_APDU [08:30:09]CAPDU: 80 0D 01 02 [08:30:09]Write to MH i2c: E2 08 00 EC 12 80 0D 01 02 00 00 00 00 77 [08:30:09]Write i2c OK [08:30:09]MH_I2C_Read... [08:30:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:30:09]Read from MH i2c: E2 [08:30:09]MH_I2C_Read... [08:30:09]Read from MH i2c: E2 03 00 [08:30:09]MH_I2C_Read... [08:30:09]Read from MH i2c: E2 03 00 EC 12 00 90 00 72 [08:30:09]RAPDU: 90 00 [08:30:09]wFMCommunicate OK [08:30:09]wFMCommunicate request_size=255 [08:30:09]MH_SAM_APDU [08:30:09]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 D6 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 82 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 EE 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 1A 00 00 00 F4 03 04 00 13 3A 75 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 A7 96 01 00 35 04 06 00 [08:30:09]Write to MH i2c: E2 02 01 ED 12 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 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 D6 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 82 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 EE 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 1A 00 00 00 F4 03 04 00 13 3A 75 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 A7 96 01 00 35 04 06 00 00 00 BE [08:30:09]Write i2c OK [08:30:09]MH_I2C_Read... [08:30:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:30:09]Read from MH i2c: E2 [08:30:09]MH_I2C_Read... [08:30:09]Read from MH i2c: E2 03 00 [08:30:09]MH_I2C_Read... [08:30:09]Read from MH i2c: E2 03 00 ED 12 00 90 00 73 [08:30:09]RAPDU: 90 00 [08:30:09]wFMCommunicate OK [08:30:09]wFMCommunicate request_size=11 [08:30:09]MH_SAM_APDU [08:30:09]CAPDU: 80 0D 02 02 06 9C CC 22 A1 AF FB [08:30:09]Write to MH i2c: E2 0E 00 EE 12 80 0D 02 02 06 00 9C CC 22 A1 AF FB 00 00 5B [08:30:09]Write i2c OK [08:30:09]MH_I2C_Read... [08:30:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:30:09]Read from MH i2c: E2 [08:30:09]MH_I2C_Read... [08:30:09]Read from MH i2c: E2 03 00 [08:30:09]MH_I2C_Read... [08:30:09]Read from MH i2c: E2 03 00 EE 12 00 90 00 74 [08:30:09]RAPDU: 90 00 [08:30:09]wFMCommunicate OK [08:30:09]wFMCommunicate request_size=4 [08:30:09]MH_SAM_APDU [08:30:09]CAPDU: 80 0D 03 02 [08:30:09]Write to MH i2c: E2 08 00 EF 12 80 0D 03 02 00 00 00 00 7C [08:30:09]Write i2c OK [08:30:09]MH_I2C_Read... [08:30:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:30:09]Read from MH i2c: E2 [08:30:09]MH_I2C_Read... [08:30:09]Read from MH i2c: E2 0B 00 [08:30:09]MH_I2C_Read... [08:30:09]Read from MH i2c: E2 0B 00 EF 12 00 96 C9 0D 1D 4B 62 E2 7A 90 00 0F [08:30:09]RAPDU: 96 C9 0D 1D 4B 62 E2 7A 90 00 [08:30:09]wFMCommunicate OK [08:30:09]SAM_PROTO_SignData done [08:30:09]FM_MakeSignedData done [08:30:09]CreateOFDProtocolMessage [08:30:09]wFMCommunicate request_size=4 [08:30:09]MH_SAM_APDU [08:30:09]CAPDU: 80 11 00 00 [08:30:09]Write to MH i2c: E2 08 00 F0 12 80 11 00 00 00 00 00 00 7C [08:30:09]Write i2c OK [08:30:09]MH_I2C_Read... [08:30:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:30:09]Read from MH i2c: E2 [08:30:09]MH_I2C_Read... [08:30:09]Read from MH i2c: E2 17 00 [08:30:09]MH_I2C_Read... [08:30:09]Read from MH i2c: E2 17 00 F0 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 CF [08:30:09]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:09]wFMCommunicate OK [08:30:09]CreateOFDProtocolMessage done [08:30:09]OFDSenderStorePacket 104103 [08:30:09]StoreOFDPacket docnum=104103 [08:30: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 10 01 00 00 18 AB 08 01 4B F9 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 D6 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 82 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 EE 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 1A 00 00 00 F4 03 04 00 13 3A 75 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 A7 96 01 00 35 04 06 00 9C CC 22 A1 AF FB 96 C9 0D 1D 4B 62 E2 7A [08:30:09]CheckFolder [08:30:09]dirname=/storage/ofd_packets [08:30:09]CheckFolder done [08:30:09]ProducePacketName [08:30:09]name=ofd_packets/00104103 [08:30:09]NVStorageSaveData ofd_packets/00104103 [08:30:09]File name is /storage/ofd_packets/00104103 [08:30:09]Write 302 bytes [08:30:09]NVStorageSaveData done [08:30:09]OFDSenderStorePacket done [08:30:09]KKMCreateOFDPacket done [08:30:09]NVStorageSaveData kkm_last_timestamp [08:30:09]File name is /storage/kkm_last_timestamp [08:30:09]Write 4 bytes [08:30:09]NVStorageSaveData done [08:30:09]ExternCall_PrintAddStr [08:30:09]wPrintStart [08:30:09]Write to MH i2c: 01 00 00 F1 12 03 [08:30:09]Write i2c OK [08:30:09]MH_I2C_Read... [08:30:09]Read from MH i2c: 01 [08:30:09]MH_I2C_Read... [08:30:09]Read from MH i2c: 01 07 00 [08:30:09]MH_I2C_Read... [08:30:09]Read from MH i2c: 01 07 00 F1 12 00 00 00 00 00 FF 0F 18 [08:30:09]RasterBufferAndPrint [08:30:09]line Счет N : (1)673495 [08:30:09]line ИНН: 02508201610067 [08:30:09]line Контрольно-Кассовый Чек [08:30:09]line ПРОДАЖА [08:30:09]line ТРК (МРК, ГНК) : 11 [08:30:09]line Товар: 2710194210 [08:30:09]line ДТ(л)-К-5 [08:30:09]line 54.870 * 72.90 [08:30:09]line = 4000.02 [08:30:09]line НДС 12% НСП 1% [08:30:09]line > о реализуемом товаре [08:30:09]line ОКРУГЛЕНИЕ: -0.02 [08:30:09]line ИТОГО: 4000.00 [08:30:09]line Внесено: 4000.00 [08:30:09]line СДАЧА: 0.00 [08:30:09]line НСП 1% : 35.40 [08:30:09]line НДС 12% : 424.78 [08:30:09]line Наличными: 4000.00 [08:30:09]line Безнал.: 0.00 [08:30:09]line Место: АЗС № 120 "Партнер Нефть" [08:30:09]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [08:30:09]line СНО: Общий режим [08:30:09]line Чек 26 21.06.2024 08:30 [08:30:09]line Смена: 355 ФФД: 1.0 [08:30:09]line ЗНМ: 0300000164 [08:30:09]line РНМ: 0000000000092785 [08:30:09]line Версия ККМ: 001 [08:30:09]line ФМ: 0000000000875093 [08:30:10]line ФД: 104103 [08:30:10]line ФПД: 172400568283131 [08:30:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T083011&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104103&fm=172400568283131&tin=02508201610067®Number=0000000000092785&sum=400000 [08:30:10]OFD Sender: Processing packet 104103 [packets to send 17, broken 16] [08:30:10]ProducePacketName [08:30:10]name=ofd_packets/00104103 [08:30:10]OFD Sender: To server: pG, [08:30:10]CommunicateWithHost lk.salyk.kg:30040 [08:30:10]ConnectInit lk.salyk.kg [08:30:10]written 0, free lines is 4095 [08:30:10]Connected sock=10 [08: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 10 01 00 00 18 AB 08 01 4B F9 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 D6 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 82 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 EE 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 1A 00 00 00 F4 03 04 00 13 3A 75 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 A7 96 01 00 35 04 06 00 9C CC 22 A1 AF FB 96 C9 0D 1D 4B 62 E2 7A [08: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 B9 54 47 00 6B 10 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 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 96 01 00 F4 03 04 00 96 E0 74 66 B6 04 01 00 00 CD 7C 8D 41 22 99 73 17 [08:30:10]CommunicateWithHost err = 0 [08:30:10]CheckOFDResponse [08:30:10]1017 (14) - 77093643461234 [08:30:10]1041 (16) - 0000000000875093 [08:30:10]1040 (4) - 104103 [08:30:10]1012 (4) - 21.06.2024 02:08 [08:30:10]1206 (1) - 0 [08:30:10]OFD Sender: Remove packet 104103 [08:30:10]ProducePacketName [08:30:10]name=ofd_packets/00104103 [08:30:10]NVStorageDeleteData [08:30:10]Write to MH i2c: 01 00 00 1C 13 2F [08:30:10]Write i2c OK [08:30:10]MH_I2C_Read... [08:30:10]Read from MH i2c: 01 [08:30:10]MH_I2C_Read... [08:30:10]Read from MH i2c: 01 07 00 [08:30:10]MH_I2C_Read... [08:30:10]Read from MH i2c: 01 07 00 1C 13 00 00 00 00 00 EA 0C 2C [08:30:10]RasterBufferAndPrint [08:30:10]line [08:30:10]line [08:30:10]line [08:30:10]line [08:30:10]line [08:30:10]written 0, free lines is 3312 [08:30:10]MH_Cut [08:30:10]Write to MH i2c: D1 01 00 23 13 01 08 [08:30:10]Write i2c OK [08:30:10]MH_I2C_Read... [08:30:10]Read from MH i2c: D1 [08:30:10]MH_I2C_Read... [08:30:10]Read from MH i2c: D1 01 00 [08:30:10]MH_I2C_Read... [08:30:10]Read from MH i2c: D1 01 00 23 13 00 07 [08:30:10]Write to MH i2c: 01 00 00 24 13 37 [08:30:10]Write i2c OK [08:30:10]MH_I2C_Read... [08:30:11]OFD Sender: No OFD packet to send [08:30:11]*** Cut start [08:30:11]*** Partial cut [08:30:11]*** CUTSNS_PIN = 1 [08:30:11]*** CUTSNS_PIN = 0 [08:30:11]*** Brake cut motor [08:30:11]Read from MH i2c: 01 [08:30:11]MH_I2C_Read... [08:30:11]*** Stop cut motor [08:30:11]*** Cut end [08:30:11]Read from MH i2c: 01 07 00 [08:30:11]MH_I2C_Read... [08:30:11]Read from MH i2c: 01 07 00 24 13 00 00 00 00 00 FF 0F 4C [08:30:11]process_action close_receipt done [08:30:11]requested_data is exist [08:30:11]produce_requested_data [08:30:11]requested_item fm.sn is exist - process it [08:30:11]wFMCommunicate request_size=4 [08:30:11]MH_SAM_APDU [08:30:11]CAPDU: 80 11 00 00 [08:30:11]Write to MH i2c: E2 08 00 25 13 80 11 00 00 00 00 00 00 B2 [08:30:11]Write i2c OK [08:30:11]MH_I2C_Read... [08:30:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:30:12]Read from MH i2c: E2 [08:30:12]MH_I2C_Read... [08:30:12]Read from MH i2c: E2 17 00 [08:30:12]MH_I2C_Read... [08:30:12]Read from MH i2c: E2 17 00 25 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 05 [08: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 [08:30:12]wFMCommunicate OK [08:30:12]requested_item fd.num is exist - process it [08:30:12]SAM_PROTO_GetFieldsCounters [08:30:12]wFMCommunicate request_size=4 [08:30:12]MH_SAM_APDU [08:30:12]CAPDU: 80 13 00 00 [08:30:12]Write to MH i2c: E2 08 00 26 13 80 13 00 00 00 00 00 00 B5 [08:30:12]Write i2c OK [08:30:12]MH_I2C_Read... [08:30:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:30:12]Read from MH i2c: E2 [08:30:12]MH_I2C_Read... [08:30:12]Read from MH i2c: E2 62 00 [08:30:12]MH_I2C_Read... [08:30:12]Read from MH i2c: E2 62 00 26 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 A7 96 01 00 0E 04 04 00 63 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 CC [08: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 A7 96 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:30:12]wFMCommunicate OK [08:30:12]SAM_PROTO_GetFieldsCounters done [08:30:12]requested_item shift.num is exist - process it [08:30:12]requested_item shift.opened is exist - process it [08:30:12]req_shift_opened [08:30:12]FM_GetShiftState [08:30:12]SAM_PROTO_GetShiftState [08:30:12]wFMCommunicate request_size=4 [08:30:12]MH_SAM_APDU [08:30:12]CAPDU: 80 13 01 00 [08:30:12]Write to MH i2c: E2 08 00 27 13 80 13 01 00 00 00 00 00 B7 [08:30:12]Write i2c OK [08:30:12]MH_I2C_Read... [08:30:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:30:12]Read from MH i2c: E2 [08:30:12]MH_I2C_Read... [08:30:12]Read from MH i2c: E2 0E 00 [08:30:12]MH_I2C_Read... [08:30:12]Read from MH i2c: E2 0E 00 27 13 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 CA [08:30:12]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [08:30:12]wFMCommunicate OK [08:30:12]SAM_PROTO_GetShiftState done [08:30:12]FM_GetShiftState done [08:30:12]req_shift_opened done [08:30:12]requested_item shift.open_date is exist - process it [08:30:12]req_shift_open_date [08:30:12]req_shift_open_date done [08:30:12]produce_requested_data done [08:30:12]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104103,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [08:30:12]process_action_free close_receipt [08:30:12]json_value_free [08:30:12]json_value_free done [08:30:12]process_json_proto returns [08:30:12]Send response to host [08:30:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104103,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [08:30:12]free response buf [08:30:12]execute_script done [08:30:12]execute_script returns [08:30:12]free content buf [08:30:12]Sock 7.Close socket [08:30:12]Sock 7.Thread stoped [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:31]accept exits with 9 [08:30:31]New connection [08:30:31]New thread 3066858852 created [08:30:31]Thread 3066715492 joined [08:30:31]Waiting for new connection... [08:30:31] Sock 9.Parse request [08:30:31]Sock 9.Check first char [08:30:31]Sock 9.First char is OK [08:30:31]request: POST /json_proto HTTP/1.0 [08:30:31]Method: POST [08:30:31]URL: /json_proto [08:30:31]Method is POST - this is cgi request [08:30:31]url: /json_proto [08:30:31]query_string will be loaded in cgi processing [08:30:31]execute_cgi json_proto POST (null) [08:30:31]execute_cgi path=json_proto method=POST [08:30:31]POST find Content-Length [08:30:31]Host: 172.17.38.133:8080 [08:30:31]Content-Length: 1196 [08:30:31]Content-Type: application/json [08:30:31] [08:30:31]POST finish read [08:30:31]Found Content-Length = 1196 [08:30: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 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)673496\u000A21.06.2024 08:07\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.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\u000A103801\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:30:31]execute_script... [08:30: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 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)673496\u000A21.06.2024 08:07\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.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\u000A103801\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:30:31]POST & json_proto [08:30:31]process_json_proto [08:30:31]json parsed OK: [08:30:31]protocol is kg_v1.0 [08:30:31]action value=print_text [08:30:31]process_action print_text [08:30:31]cmd_print_text [08:30:31]ExternCall_PrintAddStr [08:30:31]wPrintStart [08:30:31]Write to MH i2c: 01 00 00 28 13 3B [08:30:31]Write i2c OK [08:30:31]MH_I2C_Read... [08:30:31]Read from MH i2c: 01 [08:30:31]MH_I2C_Read... [08:30:31]Read from MH i2c: 01 07 00 [08:30:31]MH_I2C_Read... [08:30:31]Read from MH i2c: 01 07 00 28 13 00 00 00 00 00 FF 0F 50 [08:30:31]RasterBufferAndPrint [08:30:31]line *****ТОВАРНЫЙ ЧЕК***** [08:30:31]line АЗС 120 [08:30:31]line Партнер нефть [08:30:31]line 02508201610067 [08:30:31]line Кассир : Асанбаев Н. [08:30:31]line Счет N : (1)673496 [08:30:31]line 21.06.2024 08:07 [08:30:31]line ПРОДАЖА [08:30:31]line ТРК (МРК, ГНК): 42 [08:30:31]line Вид ГСМ : 2710124130 [08:30:31]line Аи-92-К-5 [08:30:31]line 30.130 x 66.40 [08:30:31]line ИТОГ: 2000.63 [08:30:31]line Тип оплаты: Талоны: Топливная Карта [08:30:31]line 103801 [08:30:31]line ______________________ [08:30:31]line (подпись) [08:30:31]written 0, free lines is 4095 [08:30:31]Write to MH i2c: 01 00 00 3C 13 4F [08:30:31]Write i2c OK [08:30:31]MH_I2C_Read... [08:30:31]Read from MH i2c: 01 [08:30:31]MH_I2C_Read... [08:30:31]Read from MH i2c: 01 07 00 [08:30:31]MH_I2C_Read... [08:30:31]Read from MH i2c: 01 07 00 3C 13 00 00 00 00 00 12 0E 76 [08:30:31]RasterBufferAndPrint [08:30:31]line [08:30:31]line [08:30:31]line [08:30:31]line [08:30:31]line [08:30:31]written 0, free lines is 3604 [08:30:31]MH_Cut [08:30:31]Write to MH i2c: D1 01 00 43 13 01 28 [08:30:31]Write i2c OK [08:30:31]MH_I2C_Read... [08:30:31]Read from MH i2c: D1 [08:30:31]MH_I2C_Read... [08:30:31]Read from MH i2c: D1 01 00 [08:30:31]MH_I2C_Read... [08:30:31]Read from MH i2c: D1 01 00 43 13 00 27 [08:30:31]Write to MH i2c: 01 00 00 44 13 57 [08:30:31]Write i2c OK [08:30:31]MH_I2C_Read... [08:30:32]*** Cut start [08:30:32]*** Partial cut [08:30:32]*** CUTSNS_PIN = 1 [08:30:32]*** CUTSNS_PIN = 0 [08:30:32]*** Brake cut motor [08:30:32]Read from MH i2c: 01 [08:30:32]MH_I2C_Read... [08:30:32]Read from MH i2c: 01 07 00 [08:30:32]MH_I2C_Read... [08:30:32]*** Stop cut motor [08:30:32]*** Cut end [08:30:32]Read from MH i2c: 01 07 00 44 13 00 00 00 00 00 FF 0F 6C [08:30:32]process_action print_text done [08:30:32]requested_data is exist [08:30:32]produce_requested_data [08:30:32]requested_item fm.sn is exist - process it [08:30:32]wFMCommunicate request_size=4 [08:30:32]MH_SAM_APDU [08:30:32]CAPDU: 80 11 00 00 [08:30:32]Write to MH i2c: E2 08 00 45 13 80 11 00 00 00 00 00 00 D2 [08:30:32]Write i2c OK [08:30:32]MH_I2C_Read... [08:30:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:30:32]Read from MH i2c: E2 [08:30:32]MH_I2C_Read... [08:30:32]Read from MH i2c: E2 17 00 [08:30:32]MH_I2C_Read... [08:30:32]Read from MH i2c: E2 17 00 45 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 25 [08:30:32]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:32]wFMCommunicate OK [08:30:32]requested_item fd.num is exist - process it [08:30:32]SAM_PROTO_GetFieldsCounters [08:30:32]wFMCommunicate request_size=4 [08:30:32]MH_SAM_APDU [08:30:32]CAPDU: 80 13 00 00 [08:30:32]Write to MH i2c: E2 08 00 46 13 80 13 00 00 00 00 00 00 D5 [08:30:32]Write i2c OK [08:30:32]MH_I2C_Read... [08:30:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:30:32]Read from MH i2c: E2 [08:30:32]MH_I2C_Read... [08:30:32]Read from MH i2c: E2 62 00 [08:30:32]MH_I2C_Read... [08:30:32]Read from MH i2c: E2 62 00 46 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 A7 96 01 00 0E 04 04 00 63 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 EC [08:30: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 A7 96 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:30:32]wFMCommunicate OK [08:30:32]SAM_PROTO_GetFieldsCounters done [08:30:32]requested_item shift.num is exist - process it [08:30:32]requested_item shift.opened is exist - process it [08:30:32]req_shift_opened [08:30:32]FM_GetShiftState [08:30:32]SAM_PROTO_GetShiftState [08:30:32]wFMCommunicate request_size=4 [08:30:32]MH_SAM_APDU [08:30:32]CAPDU: 80 13 01 00 [08:30:32]Write to MH i2c: E2 08 00 47 13 80 13 01 00 00 00 00 00 D7 [08:30:32]Write i2c OK [08:30:32]MH_I2C_Read... [08:30:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:30:32]Read from MH i2c: E2 [08:30:32]MH_I2C_Read... [08:30:32]Read from MH i2c: E2 0E 00 [08:30:32]MH_I2C_Read... [08:30:32]Read from MH i2c: E2 0E 00 47 13 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 EA [08:30:32]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [08:30:32]wFMCommunicate OK [08:30:32]SAM_PROTO_GetShiftState done [08:30:32]FM_GetShiftState done [08:30:32]req_shift_opened done [08:30:32]requested_item shift.open_date is exist - process it [08:30:32]req_shift_open_date [08:30:32]req_shift_open_date done [08:30:32]produce_requested_data done [08:30:32]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104103,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [08:30:32]process_action_free print_text [08:30:32]json_value_free [08:30:32]json_value_free done [08:30:32]process_json_proto returns [08:30:32]Send response to host [08:30:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104103,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [08:30:32]free response buf [08:30:32]execute_script done [08:30:32]execute_script returns [08:30:32]free content buf [08:30:32]Sock 9.Close socket [08:30:32]Sock 9.Thread stoped [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:56]OFD Sender: No OFD packet to send [08:31:01]OFD Sender: No OFD packet to send [08:31:06]OFD Sender: No OFD packet to send [08:31:11]OFD Sender: No OFD packet to send [08:31:16]OFD Sender: No OFD packet to send [08:31:21]OFD Sender: No OFD packet to send [08:31:26]OFD Sender: No OFD packet to send [08:31:31]OFD Sender: No OFD packet to send [08:31:36]OFD Sender: No OFD packet to send [08:31:41]OFD Sender: No OFD packet to send [08:31:46]OFD Sender: No OFD packet to send [08:31:51]OFD Sender: No OFD packet to send [08:31:56]OFD Sender: No OFD packet to send [08:32:01]OFD Sender: No OFD packet to send [08:32:06]OFD Sender: No OFD packet to send [08:32:11]OFD Sender: No OFD packet to send [08:32:16]OFD Sender: No OFD packet to send [08:32:21]OFD Sender: No OFD packet to send [08:32:26]OFD Sender: No OFD packet to send [08:32:31]OFD Sender: No OFD packet to send [08:32:36]OFD Sender: No OFD packet to send [08:32:41]OFD Sender: No OFD packet to send [08:32:46]OFD Sender: No OFD packet to send [08:32:51]OFD Sender: No OFD packet to send [08:32:56]OFD Sender: No OFD packet to send [08:33:01]OFD Sender: No OFD packet to send [08:33:06]OFD Sender: No OFD packet to send [08:33:11]OFD Sender: No OFD packet to send [08:33:16]OFD Sender: No OFD packet to send [08:33:21]OFD Sender: No OFD packet to send [08:33:26]OFD Sender: No OFD packet to send [08:33:31]OFD Sender: No OFD packet to send [08:33:36]OFD Sender: No OFD packet to send [08:33:41]OFD Sender: No OFD packet to send [08:33:46]OFD Sender: No OFD packet to send [08:33:51]OFD Sender: No OFD packet to send [08:33:56]OFD Sender: No OFD packet to send [08:34:01]OFD Sender: No OFD packet to send [08:34:06]OFD Sender: No OFD packet to send [08:34:11]OFD Sender: No OFD packet to send [08:34:16]OFD Sender: No OFD packet to send [08:34:21]OFD Sender: No OFD packet to send [08:34:26]OFD Sender: No OFD packet to send [08:34:31]OFD Sender: No OFD packet to send [08:34:36]OFD Sender: No OFD packet to send [08:34:41]OFD Sender: No OFD packet to send [08:34:46]OFD Sender: No OFD packet to send [08:34:51]OFD Sender: No OFD packet to send [08:34:56]OFD Sender: No OFD packet to send [08:35:01]OFD Sender: No OFD packet to send [08:35:06]OFD Sender: No OFD packet to send [08:35:08]accept exits with 7 [08:35:08]New connection [08:35:08]New thread 3066715492 created [08:35:08]Thread 3066858852 joined [08:35:08]Waiting for new connection... [08:35:08] Sock 7.Parse request [08:35:08]Sock 7.Check first char [08:35:08]Sock 7.First char is OK [08:35:08]request: POST /json_proto HTTP/1.0 [08:35:08]Method: POST [08:35:08]URL: /json_proto [08:35:08]Method is POST - this is cgi request [08:35:08]url: /json_proto [08:35:08]query_string will be loaded in cgi processing [08:35:08]execute_cgi json_proto POST (null) [08:35:08]execute_cgi path=json_proto method=POST [08:35:08]POST find Content-Length [08:35:08]Host: 172.17.38.133:8080 [08:35:08]Content-Length: 677 [08:35:08]Content-Type: application/json [08:35:08] [08:35:08]POST finish read [08:35:08]Found Content-Length = 677 [08:35:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673497", "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" ] } } [08:35:08]execute_script... [08:35: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)673497", "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" ] } } [08:35:08]POST & json_proto [08:35:08]process_json_proto [08:35:08]json parsed OK: [08:35:08]protocol is kg_v1.0 [08:35:08]action value=close_receipt [08:35:08]process_action close_receipt [08:35:08]cmd_close_receipt [08:35:08]MH_GetDate [08:35:08]Write to MH i2c: F0 00 00 48 13 4A [08:35:08]Write i2c OK [08:35:08]MH_I2C_Read... [08:35:08]Read from MH i2c: F0 [08:35:08]MH_I2C_Read... [08:35:08]Read from MH i2c: F0 09 00 [08:35:08]MH_I2C_Read... [08:35:08]Read from MH i2c: F0 09 00 48 13 00 3F 3B 75 66 BD 8F 7C 64 D4 [08:35:08]GetLastDocTimeStamp 1718958611 [08:35:08]current date 1718958911 [08:35:08]FM_GetShiftState [08:35:08]SAM_PROTO_GetShiftState [08:35:08]wFMCommunicate request_size=4 [08:35:08]MH_SAM_APDU [08:35:08]CAPDU: 80 13 01 00 [08:35:08]Write to MH i2c: E2 08 00 49 13 80 13 01 00 00 00 00 00 D9 [08:35:08]Write i2c OK [08:35:08]MH_I2C_Read... [08:35:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:35:08]Read from MH i2c: E2 [08:35:08]MH_I2C_Read... [08:35:08]Read from MH i2c: E2 0E 00 [08:35:08]MH_I2C_Read... [08:35:08]Read from MH i2c: E2 0E 00 49 13 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 EC [08:35:08]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [08:35:08]wFMCommunicate OK [08:35:08]SAM_PROTO_GetShiftState done [08:35:08]FM_GetShiftState done [08:35:08]opened in 1718929509 [08:35:08]opened+sec_in_day 1719015909 [08:35:08]quantity*price = 50065 [08:35:08]sum+1 = 50067 [08:35: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 СНО: Общий режим Чек 27 21.06.2024 08:35 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104104 ФПД: 152373029759981 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T083511&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104104&fm=152373029759981&tin=02508201610067®Number=0000000000092785&sum=50000 [08:35:09]StoreToDocumentArchive [08:35:09]shift 355 fd 104104 [08:35:09]save to /storage/0355/doc_00104104 [08:35:09]save last doc name /storage/0355/doc_00104104 to /storage/kkm_last_doc_name [08:35:09]save OK [08:35:09]Clear old archive folders... [08:35:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:35:09]tlvbuf is 0110D650 [08:35:09]SAM_PROTO_ClearQueue [08:35:09]wFMCommunicate request_size=4 [08:35:09]MH_SAM_APDU [08:35:09]CAPDU: 80 09 00 00 [08:35:09]Write to MH i2c: E2 08 00 56 13 80 09 00 00 00 00 00 00 DB [08:35:09]Write i2c OK [08:35:09]MH_I2C_Read... [08:35:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:35:09]Read from MH i2c: E2 [08:35:09]MH_I2C_Read... [08:35:09]Read from MH i2c: E2 03 00 [08:35:09]MH_I2C_Read... [08:35:09]Read from MH i2c: E2 03 00 56 13 00 90 00 DD [08:35:09]RAPDU: 90 00 [08:35:09]wFMCommunicate OK [08:35:09]SAM_PROTO_ClearQueue done [08:35:09]KKMCreateOFDPacket [08:35:09]OFDProtocolAddRootSTLVToBuf [08:35:09]FM_MakeSignedData [08:35:09]FM_MakeSignedData [08:35:09]SAM_PROTO_SignData [08:35:09]wFMCommunicate request_size=4 [08:35:09]MH_SAM_APDU [08:35:09]CAPDU: 80 0D 01 02 [08:35:09]Write to MH i2c: E2 08 00 57 13 80 0D 01 02 00 00 00 00 E3 [08:35:09]Write i2c OK [08:35:09]MH_I2C_Read... [08:35:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:35:09]Read from MH i2c: E2 [08:35:09]MH_I2C_Read... [08:35:09]Read from MH i2c: E2 03 00 [08:35:09]MH_I2C_Read... [08:35:09]Read from MH i2c: E2 03 00 57 13 00 90 00 DE [08:35:09]RAPDU: 90 00 [08:35:09]wFMCommunicate OK [08:35:09]wFMCommunicate request_size=255 [08:35:09]MH_SAM_APDU [08:35: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 1B 00 00 00 F4 03 04 00 3F 3B 75 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 A8 96 01 00 35 04 06 00 8A [08:35:09]Write to MH i2c: E2 02 01 58 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 1B 00 00 00 F4 03 04 00 3F 3B 75 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 A8 96 01 00 35 04 06 00 8A 00 00 3A [08:35:09]Write i2c OK [08:35:09]MH_I2C_Read... [08:35:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:35:09]Read from MH i2c: E2 [08:35:09]MH_I2C_Read... [08:35:09]Read from MH i2c: E2 03 00 [08:35:09]MH_I2C_Read... [08:35:09]Read from MH i2c: E2 03 00 58 13 00 90 00 DF [08:35:09]RAPDU: 90 00 [08:35:09]wFMCommunicate OK [08:35:09]wFMCommunicate request_size=10 [08:35:09]MH_SAM_APDU [08:35:09]CAPDU: 80 0D 02 02 05 95 1C 4F EB ED [08:35:09]Write to MH i2c: E2 0D 00 59 13 80 0D 02 02 05 00 95 1C 4F EB ED 00 00 C8 [08:35:09]Write i2c OK [08:35:09]MH_I2C_Read... [08:35:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:35:09]Read from MH i2c: E2 [08:35:09]MH_I2C_Read... [08:35:09]Read from MH i2c: E2 03 00 [08:35:09]MH_I2C_Read... [08:35:09]Read from MH i2c: E2 03 00 59 13 00 90 00 E0 [08:35:09]RAPDU: 90 00 [08:35:09]wFMCommunicate OK [08:35:09]wFMCommunicate request_size=4 [08:35:09]MH_SAM_APDU [08:35:09]CAPDU: 80 0D 03 02 [08:35:09]Write to MH i2c: E2 08 00 5A 13 80 0D 03 02 00 00 00 00 E8 [08:35:09]Write i2c OK [08:35:09]MH_I2C_Read... [08:35:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:35:09]Read from MH i2c: E2 [08:35:09]MH_I2C_Read... [08:35:09]Read from MH i2c: E2 0B 00 [08:35:09]MH_I2C_Read... [08:35:09]Read from MH i2c: E2 0B 00 5A 13 00 00 6B 72 10 8D 8B 63 8E 90 00 DF [08:35:09]RAPDU: 00 6B 72 10 8D 8B 63 8E 90 00 [08:35:09]wFMCommunicate OK [08:35:09]SAM_PROTO_SignData done [08:35:09]FM_MakeSignedData done [08:35:09]CreateOFDProtocolMessage [08:35:09]wFMCommunicate request_size=4 [08:35:09]MH_SAM_APDU [08:35:09]CAPDU: 80 11 00 00 [08:35:09]Write to MH i2c: E2 08 00 5B 13 80 11 00 00 00 00 00 00 E8 [08:35:09]Write i2c OK [08:35:09]MH_I2C_Read... [08:35:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:35:09]Read from MH i2c: E2 [08:35:09]MH_I2C_Read... [08:35:09]Read from MH i2c: E2 17 00 [08:35:09]MH_I2C_Read... [08:35:09]Read from MH i2c: E2 17 00 5B 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 3B [08:35:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [08:35:09]wFMCommunicate OK [08:35:09]CreateOFDProtocolMessage done [08:35:09]OFDSenderStorePacket 104104 [08:35:09]StoreOFDPacket docnum=104104 [08:35: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 70 E3 07 01 A2 86 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 1B 00 00 00 F4 03 04 00 3F 3B 75 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 A8 96 01 00 35 04 06 00 8A 95 1C 4F EB ED 00 6B 72 10 8D 8B 63 8E [08:35:09]CheckFolder [08:35:09]dirname=/storage/ofd_packets [08:35:09]CheckFolder done [08:35:09]ProducePacketName [08:35:09]name=ofd_packets/00104104 [08:35:09]NVStorageSaveData ofd_packets/00104104 [08:35:09]File name is /storage/ofd_packets/00104104 [08:35:09]Write 301 bytes [08:35:09]NVStorageSaveData done [08:35:09]OFDSenderStorePacket done [08:35:09]KKMCreateOFDPacket done [08:35:09]NVStorageSaveData kkm_last_timestamp [08:35:09]File name is /storage/kkm_last_timestamp [08:35:09]Write 4 bytes [08:35:09]NVStorageSaveData done [08:35:09]ExternCall_PrintAddStr [08:35:09]wPrintStart [08:35:09]Write to MH i2c: 01 00 00 5C 13 6F [08:35:09]Write i2c OK [08:35:09]MH_I2C_Read... [08:35:09]Read from MH i2c: 01 [08:35:09]MH_I2C_Read... [08:35:09]Read from MH i2c: 01 07 00 [08:35:09]MH_I2C_Read... [08:35:09]Read from MH i2c: 01 07 00 5C 13 00 00 00 00 00 FF 0F 84 [08:35:09]RasterBufferAndPrint [08:35:09]line Счет N : (1)673497 [08:35:09]line ИНН: 02508201610067 [08:35:09]line Контрольно-Кассовый Чек [08:35:09]line ПРОДАЖА [08:35:09]line ТРК (МРК, ГНК) : 42 [08:35:09]line Товар: 2710124130 [08:35:09]line Аи-92-К-5 [08:35:09]line 7.540 * 66.40 [08:35:09]line = 500.66 [08:35:09]line НДС 12% НСП 1% [08:35:09]line > о реализуемом товаре [08:35:09]line ОКРУГЛЕНИЕ: -0.66 [08:35:09]line ИТОГО: 500.00 [08:35:09]line Внесено: 500.00 [08:35:09]line СДАЧА: 0.00 [08:35:09]line НСП 1% : 4.43 [08:35:09]line НДС 12% : 53.17 [08:35:09]line Наличными: 500.00 [08:35:09]line Безнал.: 0.00 [08:35:09]line Место: АЗС № 120 "Партнер Нефть" [08:35:09]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [08:35:09]line СНО: Общий режим [08:35:09]line Чек 27 21.06.2024 08:35 [08:35:09]line Смена: 355 ФФД: 1.0 [08:35:09]line ЗНМ: 0300000164 [08:35:09]line РНМ: 0000000000092785 [08:35:09]line Версия ККМ: 001 [08:35:09]line ФМ: 0000000000875093 [08:35:09]line ФД: 104104 [08:35:09]line ФПД: 152373029759981 [08:35:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T083511&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104104&fm=152373029759981&tin=02508201610067®Number=0000000000092785&sum=50000 [08:35:10]OFD Sender: Processing packet 104104 [packets to send 17, broken 16] [08:35:10]ProducePacketName [08:35:10]name=ofd_packets/00104104 [08:35:10]OFD Sender: To server: pG, [08:35:10]CommunicateWithHost lk.salyk.kg:30040 [08:35:10]ConnectInit lk.salyk.kg [08:35:10]written 0, free lines is 4095 [08:35:10]Connected sock=10 [08:35: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 70 E3 07 01 A2 86 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 1B 00 00 00 F4 03 04 00 3F 3B 75 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 A8 96 01 00 35 04 06 00 8A 95 1C 4F EB ED 00 6B 72 10 8D 8B 63 8E [08:35: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 A5 14 47 00 DB 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 A8 96 01 00 F4 03 04 00 C2 E1 74 66 B6 04 01 00 00 AD 3B D0 D6 5A 72 E0 BC [08:35:10]CommunicateWithHost err = 0 [08:35:10]CheckOFDResponse [08:35:10]1017 (14) - 77093643461234 [08:35:10]1041 (16) - 0000000000875093 [08:35:10]1040 (4) - 104104 [08:35:10]1012 (4) - 21.06.2024 02:13 [08:35:10]1206 (1) - 0 [08:35:10]OFD Sender: Remove packet 104104 [08:35:10]ProducePacketName [08:35:10]name=ofd_packets/00104104 [08:35:10]NVStorageDeleteData [08:35:10]Write to MH i2c: 01 00 00 87 13 9A [08:35:10]Write i2c OK [08:35:10]MH_I2C_Read... [08:35:10]Read from MH i2c: 01 [08:35:10]MH_I2C_Read... [08:35:10]Read from MH i2c: 01 07 00 [08:35:10]MH_I2C_Read... [08:35:10]Read from MH i2c: 01 07 00 87 13 00 00 00 00 00 E4 0C 91 [08:35:10]RasterBufferAndPrint [08:35:10]line [08:35:10]line [08:35:10]line [08:35:10]line [08:35:10]line [08:35:10]written 0, free lines is 3306 [08:35:10]MH_Cut [08:35:10]Write to MH i2c: D1 01 00 8E 13 01 73 [08:35:10]Write i2c OK [08:35:10]MH_I2C_Read... [08:35:10]Read from MH i2c: D1 [08:35:10]MH_I2C_Read... [08:35:10]Read from MH i2c: D1 01 00 [08:35:10]MH_I2C_Read... [08:35:10]Read from MH i2c: D1 01 00 8E 13 00 72 [08:35:10]Write to MH i2c: 01 00 00 8F 13 A2 [08:35:10]Write i2c OK [08:35:10]MH_I2C_Read... [08:35:10]OFD Sender: No OFD packet to send [08:35:11]*** Cut start [08:35:11]*** Partial cut [08:35:11]*** CUTSNS_PIN = 1 [08:35:11]*** CUTSNS_PIN = 0 [08:35:11]*** Brake cut motor [08:35:11]Read from MH i2c: 01 [08:35:11]MH_I2C_Read... [08:35:11]*** Stop cut motor [08:35:11]*** Cut end [08:35:11]Read from MH i2c: 01 07 00 [08:35:11]MH_I2C_Read... [08:35:11]Read from MH i2c: 01 07 00 8F 13 00 00 00 00 00 FF 0F B7 [08:35:11]process_action close_receipt done [08:35:11]requested_data is exist [08:35:11]produce_requested_data [08:35:11]requested_item fm.sn is exist - process it [08:35:11]wFMCommunicate request_size=4 [08:35:11]MH_SAM_APDU [08:35:11]CAPDU: 80 11 00 00 [08:35:11]Write to MH i2c: E2 08 00 90 13 80 11 00 00 00 00 00 00 1D [08:35:11]Write i2c OK [08:35:11]MH_I2C_Read... [08:35:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:35:11]Read from MH i2c: E2 [08:35:11]MH_I2C_Read... [08:35:11]Read from MH i2c: E2 17 00 [08:35:11]MH_I2C_Read... [08:35:11]Read from MH i2c: E2 17 00 90 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 70 [08:35:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [08:35:11]wFMCommunicate OK [08:35:11]requested_item fd.num is exist - process it [08:35:11]SAM_PROTO_GetFieldsCounters [08:35:11]wFMCommunicate request_size=4 [08:35:11]MH_SAM_APDU [08:35:11]CAPDU: 80 13 00 00 [08:35:11]Write to MH i2c: E2 08 00 91 13 80 13 00 00 00 00 00 00 20 [08:35:11]Write i2c OK [08:35:11]MH_I2C_Read... [08:35:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:35:12]Read from MH i2c: E2 [08:35:12]MH_I2C_Read... [08:35:12]Read from MH i2c: E2 62 00 [08:35:12]MH_I2C_Read... [08:35:12]Read from MH i2c: E2 62 00 91 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 A8 96 01 00 0E 04 04 00 63 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 3B [08:35: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 A8 96 01 00 0E 04 04 00 63 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:35:12]wFMCommunicate OK [08:35:12]SAM_PROTO_GetFieldsCounters done [08:35:12]requested_item shift.num is exist - process it [08:35:12]requested_item shift.opened is exist - process it [08:35:12]req_shift_opened [08:35:12]FM_GetShiftState [08:35:12]SAM_PROTO_GetShiftState [08:35:12]wFMCommunicate request_size=4 [08:35:12]MH_SAM_APDU [08:35:12]CAPDU: 80 13 01 00 [08:35:12]Write to MH i2c: E2 08 00 92 13 80 13 01 00 00 00 00 00 22 [08:35:12]Write i2c OK [08:35:12]MH_I2C_Read... [08:35:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:35:12]Read from MH i2c: E2 [08:35:12]MH_I2C_Read... [08:35:12]Read from MH i2c: E2 0E 00 [08:35:12]MH_I2C_Read... [08:35:12]Read from MH i2c: E2 0E 00 92 13 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 35 [08:35:12]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [08:35:12]wFMCommunicate OK [08:35:12]SAM_PROTO_GetShiftState done [08:35:12]FM_GetShiftState done [08:35:12]req_shift_opened done [08:35:12]requested_item shift.open_date is exist - process it [08:35:12]req_shift_open_date [08:35:12]req_shift_open_date done [08:35:12]produce_requested_data done [08:35:12]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104104,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [08:35:12]process_action_free close_receipt [08:35:12]json_value_free [08:35:12]json_value_free done [08:35:12]process_json_proto returns [08:35:12]Send response to host [08:35:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104104,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [08:35:12]free response buf [08:35:12]execute_script done [08:35:12]execute_script returns [08:35:12]free content buf [08:35:12]Sock 7.Close socket [08:35:12]Sock 7.Thread stoped [08:35:15]OFD Sender: No OFD packet to send [08:35:20]OFD Sender: No OFD packet to send [08:35:25]OFD Sender: No OFD packet to send [08:35:30]OFD Sender: No OFD packet to send [08:35:35]OFD Sender: No OFD packet to send [08:35:41]OFD Sender: No OFD packet to send [08:35:46]OFD Sender: No OFD packet to send [08:35:51]OFD Sender: No OFD packet to send [08:35:56]OFD Sender: No OFD packet to send [08:36:01]OFD Sender: No OFD packet to send [08:36:06]OFD Sender: No OFD packet to send [08:36:11]OFD Sender: No OFD packet to send [08:36:16]OFD Sender: No OFD packet to send [08:36:21]OFD Sender: No OFD packet to send [08:36:26]OFD Sender: No OFD packet to send [08:36:31]OFD Sender: No OFD packet to send [08:36:36]OFD Sender: No OFD packet to send [08:36:41]OFD Sender: No OFD packet to send [08:36:46]OFD Sender: No OFD packet to send [08:36:51]OFD Sender: No OFD packet to send [08:36:56]OFD Sender: No OFD packet to send [08:37:01]OFD Sender: No OFD packet to send [08:37:06]OFD Sender: No OFD packet to send [08:37:11]OFD Sender: No OFD packet to send [08:37:16]OFD Sender: No OFD packet to send [08:37:21]OFD Sender: No OFD packet to send [08:37:26]OFD Sender: No OFD packet to send [08:37:31]OFD Sender: No OFD packet to send [08:37:36]OFD Sender: No OFD packet to send [08:37:41]OFD Sender: No OFD packet to send [08:37:46]OFD Sender: No OFD packet to send [08:37:51]OFD Sender: No OFD packet to send [08:37:56]OFD Sender: No OFD packet to send [08:38:01]OFD Sender: No OFD packet to send [08:38:06]OFD Sender: No OFD packet to send [08:38:11]OFD Sender: No OFD packet to send [08:38:16]OFD Sender: No OFD packet to send [08:38:21]OFD Sender: No OFD packet to send [08:38:26]OFD Sender: No OFD packet to send [08:38:31]OFD Sender: No OFD packet to send [08:38:36]OFD Sender: No OFD packet to send [08:38:41]OFD Sender: No OFD packet to send [08:38:46]OFD Sender: No OFD packet to send [08:38:49]accept exits with 9 [08:38:49]New connection [08:38:49]New thread 3066858852 created [08:38:49]Thread 3066715492 joined [08:38:49]Waiting for new connection... [08:38:49] Sock 9.Parse request [08:38:49]Sock 9.Check first char [08:38:49]Sock 9.First char is OK [08:38:49]request: POST /json_proto HTTP/1.0 [08:38:49]Method: POST [08:38:49]URL: /json_proto [08:38:49]Method is POST - this is cgi request [08:38:49]url: /json_proto [08:38:49]query_string will be loaded in cgi processing [08:38:49]execute_cgi json_proto POST (null) [08:38:49]execute_cgi path=json_proto method=POST [08:38:49]POST find Content-Length [08:38:49]Host: 172.17.38.133:8080 [08:38:49]Content-Length: 642 [08:38:49]Content-Type: application/json [08:38:49] [08:38:49]POST finish read [08:38:49]Found Content-Length = 642 [08:38:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673498", "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.000, "sum" : 2217.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 2217.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:38:49]execute_script... [08:38:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673498", "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.000, "sum" : 2217.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 2217.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:38:49]POST & json_proto [08:38:49]process_json_proto [08:38:49]json parsed OK: [08:38:49]protocol is kg_v1.0 [08:38:49]action value=close_receipt [08:38:49]process_action close_receipt [08:38:49]cmd_close_receipt [08:38:49]MH_GetDate [08:38:49]Write to MH i2c: F0 00 00 93 13 95 [08:38:49]Write i2c OK [08:38:49]MH_I2C_Read... [08:38:49]Read from MH i2c: F0 [08:38:49]MH_I2C_Read... [08:38:49]Read from MH i2c: F0 09 00 [08:38:49]MH_I2C_Read... [08:38:49]Read from MH i2c: F0 09 00 93 13 00 1D 3C 75 66 BD 8F 7C 64 FE [08:38:49]GetLastDocTimeStamp 1718958911 [08:38:49]current date 1718959133 [08:38:49]FM_GetShiftState [08:38:49]SAM_PROTO_GetShiftState [08:38:49]wFMCommunicate request_size=4 [08:38:49]MH_SAM_APDU [08:38:49]CAPDU: 80 13 01 00 [08:38:49]Write to MH i2c: E2 08 00 94 13 80 13 01 00 00 00 00 00 24 [08:38:49]Write i2c OK [08:38:49]MH_I2C_Read... [08:38:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:38:49]Read from MH i2c: E2 [08:38:49]MH_I2C_Read... [08:38:49]Read from MH i2c: E2 0E 00 [08:38:49]MH_I2C_Read... [08:38:49]Read from MH i2c: E2 0E 00 94 13 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 37 [08:38:49]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [08:38:49]wFMCommunicate OK [08:38:49]SAM_PROTO_GetShiftState done [08:38:49]FM_GetShiftState done [08:38:49]opened in 1718929509 [08:38:49]opened+sec_in_day 1719015909 [08:38:49]quantity*price = 221700 [08:38:49]sum+1 = 221701 [08:38:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2217.00 НСП 1% : 19.62 НДС 12% : 235.43 Наличными: 2217.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 28 21.06.2024 08:38 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104105 ФПД: 258195083586834 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T083853&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104105&fm=258195083586834&tin=02508201610067®Number=0000000000092785&sum=221700 [08:38:50]StoreToDocumentArchive [08:38:50]shift 355 fd 104105 [08:38:50]save to /storage/0355/doc_00104105 [08:38:50]save last doc name /storage/0355/doc_00104105 to /storage/kkm_last_doc_name [08:38:50]save OK [08:38:50]Clear old archive folders... [08:38:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:38:50]tlvbuf is 010F0550 [08:38:50]SAM_PROTO_ClearQueue [08:38:50]wFMCommunicate request_size=4 [08:38:50]MH_SAM_APDU [08:38:50]CAPDU: 80 09 00 00 [08:38:50]Write to MH i2c: E2 08 00 A1 13 80 09 00 00 00 00 00 00 26 [08:38:50]Write i2c OK [08:38:50]MH_I2C_Read... [08:38:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:38:50]Read from MH i2c: E2 [08:38:50]MH_I2C_Read... [08:38:50]Read from MH i2c: E2 03 00 [08:38:50]MH_I2C_Read... [08:38:50]Read from MH i2c: E2 03 00 A1 13 00 90 00 28 [08:38:50]RAPDU: 90 00 [08:38:50]wFMCommunicate OK [08:38:50]SAM_PROTO_ClearQueue done [08:38:50]KKMCreateOFDPacket [08:38:50]OFDProtocolAddRootSTLVToBuf [08:38:50]FM_MakeSignedData [08:38:50]FM_MakeSignedData [08:38:50]SAM_PROTO_SignData [08:38:50]wFMCommunicate request_size=4 [08:38:50]MH_SAM_APDU [08:38:50]CAPDU: 80 0D 01 02 [08:38:50]Write to MH i2c: E2 08 00 A2 13 80 0D 01 02 00 00 00 00 2E [08:38:50]Write i2c OK [08:38:50]MH_I2C_Read... [08:38:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:38:50]Read from MH i2c: E2 [08:38:50]MH_I2C_Read... [08:38:50]Read from MH i2c: E2 03 00 [08:38:50]MH_I2C_Read... [08:38:50]Read from MH i2c: E2 03 00 A2 13 00 90 00 29 [08:38:50]RAPDU: 90 00 [08:38:50]wFMCommunicate OK [08:38:50]wFMCommunicate request_size=255 [08:38:50]MH_SAM_APDU [08:38: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 04 62 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 62 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AA 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 5B 00 00 00 00 07 04 06 00 04 62 03 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 1D 3C 75 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 A9 96 01 00 35 04 06 00 EA [08:38:50]Write to MH i2c: E2 02 01 A3 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 04 62 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 62 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AA 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 5B 00 00 00 00 07 04 06 00 04 62 03 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 1D 3C 75 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 A9 96 01 00 35 04 06 00 EA 00 00 FD [08:38:50]Write i2c OK [08:38:50]MH_I2C_Read... [08:38:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:38:51]Read from MH i2c: E2 [08:38:51]MH_I2C_Read... [08:38:51]Read from MH i2c: E2 03 00 [08:38:51]MH_I2C_Read... [08:38:51]Read from MH i2c: E2 03 00 A3 13 00 90 00 2A [08:38:51]RAPDU: 90 00 [08:38:51]wFMCommunicate OK [08:38:51]wFMCommunicate request_size=10 [08:38:51]MH_SAM_APDU [08:38:51]CAPDU: 80 0D 02 02 05 D3 BA 3D 6D 12 [08:38:51]Write to MH i2c: E2 0D 00 A4 13 80 0D 02 02 05 00 D3 BA 3D 6D 12 00 00 84 [08:38:51]OFD Sender: No OFD packet to send [08:38:51]Write i2c OK [08:38:51]MH_I2C_Read... [08:38:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:38:51]Read from MH i2c: E2 [08:38:51]MH_I2C_Read... [08:38:51]Read from MH i2c: E2 03 00 [08:38:51]MH_I2C_Read... [08:38:51]Read from MH i2c: E2 03 00 A4 13 00 90 00 2B [08:38:51]RAPDU: 90 00 [08:38:51]wFMCommunicate OK [08:38:51]wFMCommunicate request_size=4 [08:38:51]MH_SAM_APDU [08:38:51]CAPDU: 80 0D 03 02 [08:38:51]Write to MH i2c: E2 08 00 A5 13 80 0D 03 02 00 00 00 00 33 [08:38:51]Write i2c OK [08:38:51]MH_I2C_Read... [08:38:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:38:51]Read from MH i2c: E2 [08:38:51]MH_I2C_Read... [08:38:51]Read from MH i2c: E2 0B 00 [08:38:51]MH_I2C_Read... [08:38:51]Read from MH i2c: E2 0B 00 A5 13 00 7C 81 55 04 F9 A8 EF A2 90 00 BC [08:38:51]RAPDU: 7C 81 55 04 F9 A8 EF A2 90 00 [08:38:51]wFMCommunicate OK [08:38:51]SAM_PROTO_SignData done [08:38:51]FM_MakeSignedData done [08:38:51]CreateOFDProtocolMessage [08:38:51]wFMCommunicate request_size=4 [08:38:51]MH_SAM_APDU [08:38:51]CAPDU: 80 11 00 00 [08:38:51]Write to MH i2c: E2 08 00 A6 13 80 11 00 00 00 00 00 00 33 [08:38:51]Write i2c OK [08:38:51]MH_I2C_Read... [08:38:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:38:51]Read from MH i2c: E2 [08:38:51]MH_I2C_Read... [08:38:51]Read from MH i2c: E2 17 00 [08:38:51]MH_I2C_Read... [08:38:51]Read from MH i2c: E2 17 00 A6 13 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:38: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:38:51]wFMCommunicate OK [08:38:51]CreateOFDProtocolMessage done [08:38:51]OFDSenderStorePacket 104105 [08:38:51]StoreOFDPacket docnum=104105 [08:38: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 6B 73 07 01 A3 B2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 04 62 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 62 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AA 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 5B 00 00 00 00 07 04 06 00 04 62 03 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 1D 3C 75 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 A9 96 01 00 35 04 06 00 EA D3 BA 3D 6D 12 7C 81 55 04 F9 A8 EF A2 [08:38:51]CheckFolder [08:38:51]dirname=/storage/ofd_packets [08:38:51]CheckFolder done [08:38:51]ProducePacketName [08:38:51]name=ofd_packets/00104105 [08:38:51]NVStorageSaveData ofd_packets/00104105 [08:38:51]File name is /storage/ofd_packets/00104105 [08:38:51]Write 301 bytes [08:38:51]NVStorageSaveData done [08:38:51]OFDSenderStorePacket done [08:38:51]KKMCreateOFDPacket done [08:38:51]NVStorageSaveData kkm_last_timestamp [08:38:51]File name is /storage/kkm_last_timestamp [08:38:51]Write 4 bytes [08:38:51]NVStorageSaveData done [08:38:51]ExternCall_PrintAddStr [08:38:51]wPrintStart [08:38:51]Write to MH i2c: 01 00 00 A7 13 BA [08:38:51]Write i2c OK [08:38:51]MH_I2C_Read... [08:38:51]Read from MH i2c: 01 [08:38:51]MH_I2C_Read... [08:38:51]Read from MH i2c: 01 07 00 [08:38:51]MH_I2C_Read... [08:38:51]Read from MH i2c: 01 07 00 A7 13 00 00 00 00 00 FF 0F CF [08:38:51]RasterBufferAndPrint [08:38:51]line Счет N : (1)673498 [08:38:51]line ИНН: 02508201610067 [08:38:51]line Контрольно-Кассовый Чек [08:38:51]line ПРОДАЖА [08:38:51]line ТРК (МРК, ГНК) : 31 [08:38:51]line Товар: 2710124500 [08:38:51]line Аи-95-К-5 [08:38:51]line 30.000 * 73.90 [08:38:51]line = 2217.00 [08:38:51]line НДС 12% НСП 1% [08:38:51]line > о реализуемом товаре [08:38:51]line ИТОГО: 2217.00 [08:38:51]line НСП 1% : 19.62 [08:38:51]line НДС 12% : 235.43 [08:38:51]line Наличными: 2217.00 [08:38:51]line Безнал.: 0.00 [08:38:51]line Место: АЗС № 120 "Партнер Нефть" [08:38:51]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [08:38:51]line СНО: Общий режим [08:38:51]line Чек 28 21.06.2024 08:38 [08:38:51]line Смена: 355 ФФД: 1.0 [08:38:51]line ЗНМ: 0300000164 [08:38:51]line РНМ: 0000000000092785 [08:38:51]line Версия ККМ: 001 [08:38:51]line ФМ: 0000000000875093 [08:38:51]line ФД: 104105 [08:38:51]line ФПД: 258195083586834 [08:38:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T083853&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104105&fm=258195083586834&tin=02508201610067®Number=0000000000092785&sum=221700 [08:38:51]OFD Sender: Processing packet 104105 [packets to send 17, broken 16] [08:38:51]ProducePacketName [08:38:51]name=ofd_packets/00104105 [08:38:51]OFD Sender: To server: pG, [08:38:51]CommunicateWithHost lk.salyk.kg:30040 [08:38:51]ConnectInit lk.salyk.kg [08:38:51]written 0, free lines is 4095 [08:38:51]Connected sock=10 [08:38:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 6B 73 07 01 A3 B2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 04 62 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 62 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AA 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 5B 00 00 00 00 07 04 06 00 04 62 03 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 1D 3C 75 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 A9 96 01 00 35 04 06 00 EA D3 BA 3D 6D 12 7C 81 55 04 F9 A8 EF A2 [08:38:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 3E 3D 47 00 F0 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 A9 96 01 00 F4 03 04 00 A0 E2 74 66 B6 04 01 00 00 0D D8 C1 FB AB D7 95 95 [08:38:52]CommunicateWithHost err = 0 [08:38:52]CheckOFDResponse [08:38:52]1017 (14) - 77093643461234 [08:38:52]1041 (16) - 0000000000875093 [08:38:52]1040 (4) - 104105 [08:38:52]1012 (4) - 21.06.2024 02:17 [08:38:52]1206 (1) - 0 [08:38:52]OFD Sender: Remove packet 104105 [08:38:52]ProducePacketName [08:38:52]name=ofd_packets/00104105 [08:38:52]NVStorageDeleteData [08:38:52]Write to MH i2c: 01 00 00 CF 13 E2 [08:38:52]Write i2c OK [08:38:52]MH_I2C_Read... [08:38:52]Read from MH i2c: 01 [08:38:52]MH_I2C_Read... [08:38:52]Read from MH i2c: 01 07 00 [08:38:52]MH_I2C_Read... [08:38:52]Read from MH i2c: 01 07 00 CF 13 00 00 00 00 00 1A 0D 10 [08:38:52]RasterBufferAndPrint [08:38:52]line [08:38:52]line [08:38:52]line [08:38:52]line [08:38:52]line [08:38:52]written 0, free lines is 3363 [08:38:52]MH_Cut [08:38:52]Write to MH i2c: D1 01 00 D6 13 01 BB [08:38:52]Write i2c OK [08:38:52]MH_I2C_Read... [08:38:52]Read from MH i2c: D1 [08:38:52]MH_I2C_Read... [08:38:52]Read from MH i2c: D1 01 00 [08:38:52]MH_I2C_Read... [08:38:52]Read from MH i2c: D1 01 00 D6 13 00 BA [08:38:52]Write to MH i2c: 01 00 00 D7 13 EA [08:38:52]Write i2c OK [08:38:52]MH_I2C_Read... [08:38:52]OFD Sender: No OFD packet to send [08:38:52]*** Cut start [08:38:52]*** Partial cut [08:38:52]*** CUTSNS_PIN = 1 [08:38:52]*** CUTSNS_PIN = 0 [08:38:53]*** Brake cut motor [08:38:53]Read from MH i2c: 01 [08:38:53]MH_I2C_Read... [08:38:53]*** Stop cut motor [08:38:53]*** Cut end [08:38:53]Read from MH i2c: 01 07 00 [08:38:53]MH_I2C_Read... [08:38:53]Read from MH i2c: 01 07 00 D7 13 00 00 00 00 00 FF 0F FF [08:38:53]process_action close_receipt done [08:38:53]requested_data is exist [08:38:53]produce_requested_data [08:38:53]requested_item fm.sn is exist - process it [08:38:53]wFMCommunicate request_size=4 [08:38:53]MH_SAM_APDU [08:38:53]CAPDU: 80 11 00 00 [08:38:53]Write to MH i2c: E2 08 00 D8 13 80 11 00 00 00 00 00 00 65 [08:38:53]Write i2c OK [08:38:53]MH_I2C_Read... [08:38:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:38:53]Read from MH i2c: E2 [08:38:53]MH_I2C_Read... [08:38:53]Read from MH i2c: E2 17 00 [08:38:53]MH_I2C_Read... [08:38:53]Read from MH i2c: E2 17 00 D8 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 B8 [08:38:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [08:38:53]wFMCommunicate OK [08:38:53]requested_item fd.num is exist - process it [08:38:53]SAM_PROTO_GetFieldsCounters [08:38:53]wFMCommunicate request_size=4 [08:38:53]MH_SAM_APDU [08:38:53]CAPDU: 80 13 00 00 [08:38:53]Write to MH i2c: E2 08 00 D9 13 80 13 00 00 00 00 00 00 68 [08:38:53]Write i2c OK [08:38:53]MH_I2C_Read... [08:38:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:38:53]Read from MH i2c: E2 [08:38:53]MH_I2C_Read... [08:38:53]Read from MH i2c: E2 62 00 [08:38:53]MH_I2C_Read... [08:38:53]Read from MH i2c: E2 62 00 D9 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 96 01 00 0E 04 04 00 63 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 87 [08:38:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 96 01 00 0E 04 04 00 63 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:38:53]wFMCommunicate OK [08:38:53]SAM_PROTO_GetFieldsCounters done [08:38:53]requested_item shift.num is exist - process it [08:38:53]requested_item shift.opened is exist - process it [08:38:53]req_shift_opened [08:38:53]FM_GetShiftState [08:38:53]SAM_PROTO_GetShiftState [08:38:53]wFMCommunicate request_size=4 [08:38:53]MH_SAM_APDU [08:38:53]CAPDU: 80 13 01 00 [08:38:53]Write to MH i2c: E2 08 00 DA 13 80 13 01 00 00 00 00 00 6A [08:38:53]Write i2c OK [08:38:53]MH_I2C_Read... [08:38:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:38:53]Read from MH i2c: E2 [08:38:53]MH_I2C_Read... [08:38:53]Read from MH i2c: E2 0E 00 [08:38:53]MH_I2C_Read... [08:38:53]Read from MH i2c: E2 0E 00 DA 13 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 7D [08:38:53]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [08:38:53]wFMCommunicate OK [08:38:53]SAM_PROTO_GetShiftState done [08:38:53]FM_GetShiftState done [08:38:53]req_shift_opened done [08:38:53]requested_item shift.open_date is exist - process it [08:38:53]req_shift_open_date [08:38:53]req_shift_open_date done [08:38:53]produce_requested_data done [08:38:53]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104105,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [08:38:53]process_action_free close_receipt [08:38:53]json_value_free [08:38:53]json_value_free done [08:38:53]process_json_proto returns [08:38:53]Send response to host [08:38:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104105,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [08:38:53]free response buf [08:38:53]execute_script done [08:38:53]execute_script returns [08:38:53]free content buf [08:38:53]Sock 9.Close socket [08:38:53]Sock 9.Thread stoped [08:38:57]OFD Sender: No OFD packet to send [08:39:02]OFD Sender: No OFD packet to send [08:39:07]OFD Sender: No OFD packet to send [08:39:12]OFD Sender: No OFD packet to send [08:39:17]OFD Sender: No OFD packet to send [08:39:22]OFD Sender: No OFD packet to send [08:39:27]OFD Sender: No OFD packet to send [08:39:32]OFD Sender: No OFD packet to send [08:39:37]OFD Sender: No OFD packet to send [08:39:42]OFD Sender: No OFD packet to send [08:39:47]OFD Sender: No OFD packet to send [08:39:52]OFD Sender: No OFD packet to send [08:39:57]OFD Sender: No OFD packet to send [08:40:02]OFD Sender: No OFD packet to send [08:40:07]OFD Sender: No OFD packet to send [08:40:12]OFD Sender: No OFD packet to send [08:40:17]OFD Sender: No OFD packet to send [08:40:22]OFD Sender: No OFD packet to send [08:40:27]OFD Sender: No OFD packet to send [08:40:32]OFD Sender: No OFD packet to send [08:40:37]OFD Sender: No OFD packet to send [08:40:42]OFD Sender: No OFD packet to send [08:40:47]OFD Sender: No OFD packet to send [08:40:52]OFD Sender: No OFD packet to send [08:40:57]OFD Sender: No OFD packet to send [08:41:02]OFD Sender: No OFD packet to send [08:41:07]OFD Sender: No OFD packet to send [08:41:12]OFD Sender: No OFD packet to send [08:41:17]OFD Sender: No OFD packet to send [08:41:22]OFD Sender: No OFD packet to send [08:41:27]OFD Sender: No OFD packet to send [08:41:32]OFD Sender: No OFD packet to send [08:41:37]OFD Sender: No OFD packet to send [08:41:42]OFD Sender: No OFD packet to send [08:41:47]OFD Sender: No OFD packet to send [08:41:52]OFD Sender: No OFD packet to send [08:41:57]OFD Sender: No OFD packet to send [08:42:02]OFD Sender: No OFD packet to send [08:42:07]OFD Sender: No OFD packet to send [08:42:12]OFD Sender: No OFD packet to send [08:42:17]OFD Sender: No OFD packet to send [08:42:22]OFD Sender: No OFD packet to send [08:42:27]OFD Sender: No OFD packet to send [08:42:32]OFD Sender: No OFD packet to send [08:42:37]OFD Sender: No OFD packet to send [08:42:42]OFD Sender: No OFD packet to send [08:42:47]OFD Sender: No OFD packet to send [08:42:52]OFD Sender: No OFD packet to send [08:42:57]OFD Sender: No OFD packet to send [08:43:02]OFD Sender: No OFD packet to send [08:43:07]OFD Sender: No OFD packet to send [08:43:12]OFD Sender: No OFD packet to send [08:43:17]OFD Sender: No OFD packet to send [08:43:22]OFD Sender: No OFD packet to send [08:43:27]OFD Sender: No OFD packet to send [08:43:32]OFD Sender: No OFD packet to send [08:43:37]OFD Sender: No OFD packet to send [08:43:42]OFD Sender: No OFD packet to send [08:43:47]OFD Sender: No OFD packet to send [08:43:52]OFD Sender: No OFD packet to send [08:43:57]OFD Sender: No OFD packet to send [08:44:02]OFD Sender: No OFD packet to send [08:44:07]OFD Sender: No OFD packet to send [08:44:12]OFD Sender: No OFD packet to send [08:44:17]OFD Sender: No OFD packet to send [08:44:22]OFD Sender: No OFD packet to send [08:44:27]OFD Sender: No OFD packet to send [08:44:32]OFD Sender: No OFD packet to send [08:44:37]OFD Sender: No OFD packet to send [08:44:42]OFD Sender: No OFD packet to send [08:44:47]OFD Sender: No OFD packet to send [08:44:52]OFD Sender: No OFD packet to send [08:44:57]OFD Sender: No OFD packet to send [08:45:02]OFD Sender: No OFD packet to send [08:45:07]OFD Sender: No OFD packet to send [08:45:12]OFD Sender: No OFD packet to send [08:45:17]OFD Sender: No OFD packet to send [08:45:22]OFD Sender: No OFD packet to send [08:45:27]OFD Sender: No OFD packet to send [08:45:32]OFD Sender: No OFD packet to send [08:45:37]OFD Sender: No OFD packet to send [08:45:42]OFD Sender: No OFD packet to send [08:45:47]OFD Sender: No OFD packet to send [08:45:52]OFD Sender: No OFD packet to send [08:45:57]OFD Sender: No OFD packet to send [08:46:02]OFD Sender: No OFD packet to send [08:46:07]OFD Sender: No OFD packet to send [08:46:12]OFD Sender: No OFD packet to send [08:46:17]OFD Sender: No OFD packet to send [08:46:22]OFD Sender: No OFD packet to send [08:46:27]OFD Sender: No OFD packet to send [08:46:32]OFD Sender: No OFD packet to send [08:46:37]OFD Sender: No OFD packet to send [08:46:42]OFD Sender: No OFD packet to send [08:46:47]OFD Sender: No OFD packet to send [08:46:52]OFD Sender: No OFD packet to send [08:46:57]OFD Sender: No OFD packet to send [08:47:02]OFD Sender: No OFD packet to send [08:47:07]OFD Sender: No OFD packet to send [08:47:12]OFD Sender: No OFD packet to send [08:47:17]OFD Sender: No OFD packet to send [08:47:22]OFD Sender: No OFD packet to send [08:47:27]OFD Sender: No OFD packet to send [08:47:32]OFD Sender: No OFD packet to send [08:47:37]OFD Sender: No OFD packet to send [08:47:42]OFD Sender: No OFD packet to send [08:47:47]OFD Sender: No OFD packet to send [08:47:52]OFD Sender: No OFD packet to send [08:47:57]OFD Sender: No OFD packet to send [08:48:02]OFD Sender: No OFD packet to send [08:48:08]OFD Sender: No OFD packet to send [08:48:13]OFD Sender: No OFD packet to send [08:48:18]OFD Sender: No OFD packet to send [08:48:23]OFD Sender: No OFD packet to send [08:48:28]OFD Sender: No OFD packet to send [08:48:33]OFD Sender: No OFD packet to send [08:48:38]OFD Sender: No OFD packet to send [08:48:43]OFD Sender: No OFD packet to send [08:48:48]OFD Sender: No OFD packet to send [08:48:53]OFD Sender: No OFD packet to send [08:48:58]OFD Sender: No OFD packet to send [08:49:03]OFD Sender: No OFD packet to send [08:49:08]OFD Sender: No OFD packet to send [08:49:13]OFD Sender: No OFD packet to send [08:49:18]OFD Sender: No OFD packet to send [08:49:23]OFD Sender: No OFD packet to send [08:49:28]OFD Sender: No OFD packet to send [08:49:33]OFD Sender: No OFD packet to send [08:49:38]OFD Sender: No OFD packet to send [08:49:43]OFD Sender: No OFD packet to send [08:49:48]OFD Sender: No OFD packet to send [08:49:53]OFD Sender: No OFD packet to send [08:49:58]OFD Sender: No OFD packet to send [08:50:03]OFD Sender: No OFD packet to send [08:50:06]accept exits with 7 [08:50:06]New connection [08:50:06]New thread 3066715492 created [08:50:06]Thread 3066858852 joined [08:50:06]Waiting for new connection... [08:50:06] Sock 7.Parse request [08:50:06]Sock 7.Check first char [08:50:06]Sock 7.First char is OK [08:50:06]request: POST /json_proto HTTP/1.0 [08:50:06]Method: POST [08:50:06]URL: /json_proto [08:50:06]Method is POST - this is cgi request [08:50:06]url: /json_proto [08:50:06]query_string will be loaded in cgi processing [08:50:06]execute_cgi json_proto POST (null) [08:50:06]execute_cgi path=json_proto method=POST [08:50:06]POST find Content-Length [08:50:06]Host: 172.17.38.133:8080 [08:50:06]Content-Length: 687 [08:50:06]Content-Type: application/json [08:50:06] [08:50:06]POST finish read [08:50:06]Found Content-Length = 687 [08:50:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673500", "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" ] } } [08:50:06]execute_script... [08:50: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)673500", "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" ] } } [08:50:06]POST & json_proto [08:50:06]process_json_proto [08:50:06]json parsed OK: [08:50:06]protocol is kg_v1.0 [08:50:06]action value=close_receipt [08:50:06]process_action close_receipt [08:50:06]cmd_close_receipt [08:50:06]MH_GetDate [08:50:06]Write to MH i2c: F0 00 00 DB 13 DD [08:50:06]Write i2c OK [08:50:06]MH_I2C_Read... [08:50:06]Read from MH i2c: F0 [08:50:06]MH_I2C_Read... [08:50:06]Read from MH i2c: F0 09 00 [08:50:06]MH_I2C_Read... [08:50:06]Read from MH i2c: F0 09 00 DB 13 00 C1 3E 75 66 BD 8F 7C 64 EC [08:50:06]GetLastDocTimeStamp 1718959133 [08:50:06]current date 1718959809 [08:50:06]FM_GetShiftState [08:50:06]SAM_PROTO_GetShiftState [08:50:06]wFMCommunicate request_size=4 [08:50:06]MH_SAM_APDU [08:50:06]CAPDU: 80 13 01 00 [08:50:06]Write to MH i2c: E2 08 00 DC 13 80 13 01 00 00 00 00 00 6C [08:50:06]Write i2c OK [08:50:06]MH_I2C_Read... [08:50:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:50:06]Read from MH i2c: E2 [08:50:06]MH_I2C_Read... [08:50:06]Read from MH i2c: E2 0E 00 [08:50:06]MH_I2C_Read... [08:50:06]Read from MH i2c: E2 0E 00 DC 13 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 7F [08:50:06]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [08:50:06]wFMCommunicate OK [08:50:06]SAM_PROTO_GetShiftState done [08:50:06]FM_GetShiftState done [08:50:06]opened in 1718929509 [08:50:06]opened+sec_in_day 1719015909 [08:50:06]quantity*price = 300056 [08:50:06]sum+1 = 300057 [08:50:06]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 СНО: Общий режим Чек 29 21.06.2024 08:50 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104106 ФПД: 120993755415528 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T085010&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104106&fm=120993755415528&tin=02508201610067®Number=0000000000092785&sum=300000 [08:50:07]StoreToDocumentArchive [08:50:07]shift 355 fd 104106 [08:50:07]save to /storage/0355/doc_00104106 [08:50:07]save last doc name /storage/0355/doc_00104106 to /storage/kkm_last_doc_name [08:50:07]save OK [08:50:07]Clear old archive folders... [08:50:07]ProcessDocumentItem done err = 0, tmpTLVsize=252 [08:50:07]tlvbuf is 01127B50 [08:50:07]SAM_PROTO_ClearQueue [08:50:07]wFMCommunicate request_size=4 [08:50:07]MH_SAM_APDU [08:50:07]CAPDU: 80 09 00 00 [08:50:07]Write to MH i2c: E2 08 00 E9 13 80 09 00 00 00 00 00 00 6E [08:50:07]Write i2c OK [08:50:07]MH_I2C_Read... [08:50:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:50:07]Read from MH i2c: E2 [08:50:07]MH_I2C_Read... [08:50:07]Read from MH i2c: E2 03 00 [08:50:07]MH_I2C_Read... [08:50:07]Read from MH i2c: E2 03 00 E9 13 00 90 00 70 [08:50:07]RAPDU: 90 00 [08:50:07]wFMCommunicate OK [08:50:07]SAM_PROTO_ClearQueue done [08:50:07]KKMCreateOFDPacket [08:50:07]OFDProtocolAddRootSTLVToBuf [08:50:07]FM_MakeSignedData [08:50:07]FM_MakeSignedData [08:50:07]SAM_PROTO_SignData [08:50:07]wFMCommunicate request_size=4 [08:50:07]MH_SAM_APDU [08:50:07]CAPDU: 80 0D 01 02 [08:50:07]Write to MH i2c: E2 08 00 EA 13 80 0D 01 02 00 00 00 00 76 [08:50:07]Write i2c OK [08:50:07]MH_I2C_Read... [08:50:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:50:07]Read from MH i2c: E2 [08:50:07]MH_I2C_Read... [08:50:07]Read from MH i2c: E2 03 00 [08:50:07]MH_I2C_Read... [08:50:07]Read from MH i2c: E2 03 00 EA 13 00 90 00 71 [08:50:07]RAPDU: 90 00 [08:50:07]wFMCommunicate OK [08:50:07]wFMCommunicate request_size=255 [08:50:07]MH_SAM_APDU [08:50: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 1D 00 00 00 F4 03 04 00 C2 3E 75 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 AA 96 01 00 35 04 06 00 [08:50:07]Write to MH i2c: E2 02 01 EB 13 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 1D 00 00 00 F4 03 04 00 C2 3E 75 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 AA 96 01 00 35 04 06 00 00 00 57 [08:50:07]Write i2c OK [08:50:07]MH_I2C_Read... [08:50:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:50:07]Read from MH i2c: E2 [08:50:07]MH_I2C_Read... [08:50:07]Read from MH i2c: E2 03 00 [08:50:07]MH_I2C_Read... [08:50:07]Read from MH i2c: E2 03 00 EB 13 00 90 00 72 [08:50:07]RAPDU: 90 00 [08:50:07]wFMCommunicate OK [08:50:07]wFMCommunicate request_size=11 [08:50:07]MH_SAM_APDU [08:50:07]CAPDU: 80 0D 02 02 06 6E 0B 0D CF C3 E8 [08:50:07]Write to MH i2c: E2 0E 00 EC 13 80 0D 02 02 06 00 6E 0B 0D CF C3 E8 00 00 85 [08:50:07]Write i2c OK [08:50:07]MH_I2C_Read... [08:50:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:50:07]Read from MH i2c: E2 [08:50:07]MH_I2C_Read... [08:50:07]Read from MH i2c: E2 03 00 [08:50:07]MH_I2C_Read... [08:50:07]Read from MH i2c: E2 03 00 EC 13 00 90 00 73 [08:50:07]RAPDU: 90 00 [08:50:07]wFMCommunicate OK [08:50:07]wFMCommunicate request_size=4 [08:50:07]MH_SAM_APDU [08:50:07]CAPDU: 80 0D 03 02 [08:50:07]Write to MH i2c: E2 08 00 ED 13 80 0D 03 02 00 00 00 00 7B [08:50:07]Write i2c OK [08:50:07]MH_I2C_Read... [08:50:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:50:07]Read from MH i2c: E2 [08:50:07]MH_I2C_Read... [08:50:07]Read from MH i2c: E2 0B 00 [08:50:07]MH_I2C_Read... [08:50:07]Read from MH i2c: E2 0B 00 ED 13 00 C7 7F ED 22 E8 7B 69 4C 90 00 E9 [08:50:07]RAPDU: C7 7F ED 22 E8 7B 69 4C 90 00 [08:50:07]wFMCommunicate OK [08:50:07]SAM_PROTO_SignData done [08:50:07]FM_MakeSignedData done [08:50:07]CreateOFDProtocolMessage [08:50:07]wFMCommunicate request_size=4 [08:50:07]MH_SAM_APDU [08:50:07]CAPDU: 80 11 00 00 [08:50:07]Write to MH i2c: E2 08 00 EE 13 80 11 00 00 00 00 00 00 7B [08:50:07]Write i2c OK [08:50:07]MH_I2C_Read... [08:50:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:50:08]Read from MH i2c: E2 [08:50:08]MH_I2C_Read... [08:50:08]Read from MH i2c: E2 17 00 [08:50:08]MH_I2C_Read... [08:50:08]Read from MH i2c: E2 17 00 EE 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 CE [08:50:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [08:50:08]wFMCommunicate OK [08:50:08]CreateOFDProtocolMessage done [08:50:08]OFDSenderStorePacket 104106 [08:50:08]StoreOFDPacket docnum=104106 [08:50: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 10 01 00 00 DC DB 08 01 C5 0B 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 1D 00 00 00 F4 03 04 00 C2 3E 75 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 AA 96 01 00 35 04 06 00 6E 0B 0D CF C3 E8 C7 7F ED 22 E8 7B 69 4C [08:50:08]CheckFolder [08:50:08]dirname=/storage/ofd_packets [08:50:08]CheckFolder done [08:50:08]ProducePacketName [08:50:08]name=ofd_packets/00104106 [08:50:08]NVStorageSaveData ofd_packets/00104106 [08:50:08]File name is /storage/ofd_packets/00104106 [08:50:08]Write 302 bytes [08:50:08]NVStorageSaveData done [08:50:08]OFDSenderStorePacket done [08:50:08]KKMCreateOFDPacket done [08:50:08]NVStorageSaveData kkm_last_timestamp [08:50:08]File name is /storage/kkm_last_timestamp [08:50:08]Write 4 bytes [08:50:08]NVStorageSaveData done [08:50:08]ExternCall_PrintAddStr [08:50:08]wPrintStart [08:50:08]Write to MH i2c: 01 00 00 EF 13 02 [08:50:08]Write i2c OK [08:50:08]MH_I2C_Read... [08:50:08]Read from MH i2c: 01 [08:50:08]MH_I2C_Read... [08:50:08]Read from MH i2c: 01 07 00 [08:50:08]MH_I2C_Read... [08:50:08]Read from MH i2c: 01 07 00 EF 13 00 00 00 00 00 FF 0F 17 [08:50:08]RasterBufferAndPrint [08:50:08]line Счет N : (1)673500 [08:50:08]line ИНН: 02508201610067 [08:50:08]line Контрольно-Кассовый Чек [08:50:08]line ПРОДАЖА [08:50:08]line ТРК (МРК, ГНК) : 11 [08:50:08]line Товар: 2710194210 [08:50:08]line ДТ(л)-К-5 [08:50:08]line 41.160 * 72.90 [08:50:08]line = 3000.56 [08:50:08]line НДС 12% НСП 1% [08:50:08]line > о реализуемом товаре [08:50:08]line ОКРУГЛЕНИЕ: -0.56 [08:50:08]line ИТОГО: 3000.00 [08:50:08]line Внесено: 3000.00 [08:50:08]line СДАЧА: 0.00 [08:50:08]line НСП 1% : 26.55 [08:50:08]line НДС 12% : 318.64 [08:50:08]line Наличными: 3000.00 [08:50:08]line Безнал.: 0.00 [08:50:08]line Место: АЗС № 120 "Партнер Нефть" [08:50:08]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [08:50:08]line СНО: Общий режим [08:50:08]line Чек 29 21.06.2024 08:50 [08:50:08]line Смена: 355 ФФД: 1.0 [08:50:08]line ЗНМ: 0300000164 [08:50:08]line РНМ: 0000000000092785 [08:50:08]line Версия ККМ: 001 [08:50:08]line ФМ: 0000000000875093 [08:50:08]line ФД: 104106 [08:50:08]line ФПД: 120993755415528 [08:50:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T085010&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104106&fm=120993755415528&tin=02508201610067®Number=0000000000092785&sum=300000 [08:50:08]OFD Sender: Processing packet 104106 [packets to send 17, broken 16] [08:50:08]ProducePacketName [08:50:08]name=ofd_packets/00104106 [08:50:08]OFD Sender: To server: pG, [08:50:08]CommunicateWithHost lk.salyk.kg:30040 [08:50:08]ConnectInit lk.salyk.kg [08:50:08]written 0, free lines is 4095 [08:50:08]Connected sock=10 [08:50: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 DC DB 08 01 C5 0B 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 1D 00 00 00 F4 03 04 00 C2 3E 75 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 AA 96 01 00 35 04 06 00 6E 0B 0D CF C3 E8 C7 7F ED 22 E8 7B 69 4C [08:50:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 9F D7 47 00 7D 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 AA 96 01 00 F4 03 04 00 44 E5 74 66 B6 04 01 00 00 74 20 8D ED 51 9E F8 62 [08:50:08]CommunicateWithHost err = 0 [08:50:08]CheckOFDResponse [08:50:08]1017 (14) - 77093643461234 [08:50:08]1041 (16) - 0000000000875093 [08:50:08]1040 (4) - 104106 [08:50:08]1012 (4) - 21.06.2024 02:28 [08:50:08]1206 (1) - 0 [08:50:08]OFD Sender: Remove packet 104106 [08:50:08]ProducePacketName [08:50:08]name=ofd_packets/00104106 [08:50:08]NVStorageDeleteData [08:50:08]Write to MH i2c: 01 00 00 1A 14 2E [08:50:08]Write i2c OK [08:50:08]MH_I2C_Read... [08:50:08]Read from MH i2c: 01 [08:50:08]MH_I2C_Read... [08:50:08]Read from MH i2c: 01 07 00 [08:50:08]MH_I2C_Read... [08:50:08]Read from MH i2c: 01 07 00 1A 14 00 00 00 00 00 D4 0C 15 [08:50:08]RasterBufferAndPrint [08:50:08]line [08:50:08]line [08:50:08]line [08:50:08]line [08:50:08]line [08:50:08]written 0, free lines is 3292 [08:50:08]MH_Cut [08:50:08]Write to MH i2c: D1 01 00 21 14 01 07 [08:50:08]Write i2c OK [08:50:08]MH_I2C_Read... [08:50:08]Read from MH i2c: D1 [08:50:08]MH_I2C_Read... [08:50:08]Read from MH i2c: D1 01 00 [08:50:08]MH_I2C_Read... [08:50:08]Read from MH i2c: D1 01 00 21 14 00 06 [08:50:08]Write to MH i2c: 01 00 00 22 14 36 [08:50:08]Write i2c OK [08:50:08]MH_I2C_Read... [08:50:09]OFD Sender: No OFD packet to send [08:50:09]*** Cut start [08:50:09]*** Partial cut [08:50:09]*** CUTSNS_PIN = 1 [08:50:09]*** CUTSNS_PIN = 0 [08:50:09]*** Brake cut motor [08:50:10]Read from MH i2c: 01 [08:50:10]MH_I2C_Read... [08:50:10]*** Stop cut motor [08:50:10]*** Cut end [08:50:10]Read from MH i2c: 01 07 00 [08:50:10]MH_I2C_Read... [08:50:10]Read from MH i2c: 01 07 00 22 14 00 00 00 00 00 FF 0F 4B [08:50:10]process_action close_receipt done [08:50:10]requested_data is exist [08:50:10]produce_requested_data [08:50:10]requested_item fm.sn is exist - process it [08:50:10]wFMCommunicate request_size=4 [08:50:10]MH_SAM_APDU [08:50:10]CAPDU: 80 11 00 00 [08:50:10]Write to MH i2c: E2 08 00 23 14 80 11 00 00 00 00 00 00 B1 [08:50:10]Write i2c OK [08:50:10]MH_I2C_Read... [08:50:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:50:10]Read from MH i2c: E2 [08:50:10]MH_I2C_Read... [08:50:10]Read from MH i2c: E2 17 00 [08:50:10]MH_I2C_Read... [08:50:10]Read from MH i2c: E2 17 00 23 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 04 [08:50: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:50:10]wFMCommunicate OK [08:50:10]requested_item fd.num is exist - process it [08:50:10]SAM_PROTO_GetFieldsCounters [08:50:10]wFMCommunicate request_size=4 [08:50:10]MH_SAM_APDU [08:50:10]CAPDU: 80 13 00 00 [08:50:10]Write to MH i2c: E2 08 00 24 14 80 13 00 00 00 00 00 00 B4 [08:50:10]Write i2c OK [08:50:10]MH_I2C_Read... [08:50:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:50:10]Read from MH i2c: E2 [08:50:10]MH_I2C_Read... [08:50:10]Read from MH i2c: E2 62 00 [08:50:10]MH_I2C_Read... [08:50:10]Read from MH i2c: E2 62 00 24 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 AA 96 01 00 0E 04 04 00 63 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 D7 [08:50: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 AA 96 01 00 0E 04 04 00 63 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:50:10]wFMCommunicate OK [08:50:10]SAM_PROTO_GetFieldsCounters done [08:50:10]requested_item shift.num is exist - process it [08:50:10]requested_item shift.opened is exist - process it [08:50:10]req_shift_opened [08:50:10]FM_GetShiftState [08:50:10]SAM_PROTO_GetShiftState [08:50:10]wFMCommunicate request_size=4 [08:50:10]MH_SAM_APDU [08:50:10]CAPDU: 80 13 01 00 [08:50:10]Write to MH i2c: E2 08 00 25 14 80 13 01 00 00 00 00 00 B6 [08:50:10]Write i2c OK [08:50:10]MH_I2C_Read... [08:50:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:50:10]Read from MH i2c: E2 [08:50:10]MH_I2C_Read... [08:50:10]Read from MH i2c: E2 0E 00 [08:50:10]MH_I2C_Read... [08:50:10]Read from MH i2c: E2 0E 00 25 14 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 C9 [08:50:10]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [08:50:10]wFMCommunicate OK [08:50:10]SAM_PROTO_GetShiftState done [08:50:10]FM_GetShiftState done [08:50:10]req_shift_opened done [08:50:10]requested_item shift.open_date is exist - process it [08:50:10]req_shift_open_date [08:50:10]req_shift_open_date done [08:50:10]produce_requested_data done [08:50:10]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104106,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [08:50:10]process_action_free close_receipt [08:50:10]json_value_free [08:50:10]json_value_free done [08:50:10]process_json_proto returns [08:50:10]Send response to host [08:50:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104106,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [08:50:10]free response buf [08:50:10]execute_script done [08:50:10]execute_script returns [08:50:10]free content buf [08:50:10]Sock 7.Close socket [08:50:10]Sock 7.Thread stoped [08:50:14]OFD Sender: No OFD packet to send [08:50:19]OFD Sender: No OFD packet to send [08:50:24]OFD Sender: No OFD packet to send [08:50:26]accept exits with 9 [08:50:26]New connection [08:50:26]New thread 3066858852 created [08:50:26]Thread 3066715492 joined [08:50:26]Waiting for new connection... [08:50:26] Sock 9.Parse request [08:50:26]Sock 9.Check first char [08:50:26]Sock 9.First char is OK [08:50:26]request: POST /json_proto HTTP/1.0 [08:50:26]Method: POST [08:50:26]URL: /json_proto [08:50:26]Method is POST - this is cgi request [08:50:26]url: /json_proto [08:50:26]query_string will be loaded in cgi processing [08:50:26]execute_cgi json_proto POST (null) [08:50:26]execute_cgi path=json_proto method=POST [08:50:26]POST find Content-Length [08:50:26]Host: 172.17.38.133:8080 [08:50:26]Content-Length: 687 [08:50:26]Content-Type: application/json [08:50:26] [08:50:26]POST finish read [08:50:26]Found Content-Length = 687 [08:50:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673499", "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" : 61.730, "sum" : 4500.12, "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" ] } } [08:50:26]execute_script... [08:50: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)673499", "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" : 61.730, "sum" : 4500.12, "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" ] } } [08:50:26]POST & json_proto [08:50:26]process_json_proto [08:50:26]json parsed OK: [08:50:26]protocol is kg_v1.0 [08:50:26]action value=close_receipt [08:50:26]process_action close_receipt [08:50:26]cmd_close_receipt [08:50:26]MH_GetDate [08:50:26]Write to MH i2c: F0 00 00 26 14 29 [08:50:26]Write i2c OK [08:50:26]MH_I2C_Read... [08:50:26]Read from MH i2c: F0 [08:50:26]MH_I2C_Read... [08:50:26]Read from MH i2c: F0 09 00 [08:50:26]MH_I2C_Read... [08:50:26]Read from MH i2c: F0 09 00 26 14 00 D6 3E 75 66 BD 8F 7C 64 4D [08:50:26]GetLastDocTimeStamp 1718959810 [08:50:26]current date 1718959830 [08:50:26]FM_GetShiftState [08:50:26]SAM_PROTO_GetShiftState [08:50:26]wFMCommunicate request_size=4 [08:50:26]MH_SAM_APDU [08:50:26]CAPDU: 80 13 01 00 [08:50:26]Write to MH i2c: E2 08 00 27 14 80 13 01 00 00 00 00 00 B8 [08:50:26]Write i2c OK [08:50:26]MH_I2C_Read... [08:50:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:50:26]Read from MH i2c: E2 [08:50:26]MH_I2C_Read... [08:50:26]Read from MH i2c: E2 0E 00 [08:50:26]MH_I2C_Read... [08:50:26]Read from MH i2c: E2 0E 00 27 14 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 CB [08:50:26]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [08:50:26]wFMCommunicate OK [08:50:26]SAM_PROTO_GetShiftState done [08:50:26]FM_GetShiftState done [08:50:26]opened in 1718929509 [08:50:26]opened+sec_in_day 1719015909 [08:50:26]quantity*price = 450011 [08:50:26]sum+1 = 450013 [08:50:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 4500.00 Внесено: 4500.00 СДАЧА: 0.00 НСП 1% : 39.82 НДС 12% : 477.89 Наличными: 4500.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 30 21.06.2024 08:50 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104107 ФПД: 216663940748800 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T085030&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104107&fm=216663940748800&tin=02508201610067®Number=0000000000092785&sum=450000 [08:50:27]StoreToDocumentArchive [08:50:27]shift 355 fd 104107 [08:50:27]save to /storage/0355/doc_00104107 [08:50:27]save last doc name /storage/0355/doc_00104107 to /storage/kkm_last_doc_name [08:50:27]save OK [08:50:27]Clear old archive folders... [08:50:27]ProcessDocumentItem done err = 0, tmpTLVsize=252 [08:50:27]tlvbuf is 010F0C90 [08:50:27]SAM_PROTO_ClearQueue [08:50:27]wFMCommunicate request_size=4 [08:50:27]MH_SAM_APDU [08:50:27]CAPDU: 80 09 00 00 [08:50:27]Write to MH i2c: E2 08 00 34 14 80 09 00 00 00 00 00 00 BA [08:50:27]Write i2c OK [08:50:27]MH_I2C_Read... [08:50:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:50:27]Read from MH i2c: E2 [08:50:27]MH_I2C_Read... [08:50:27]Read from MH i2c: E2 03 00 [08:50:27]MH_I2C_Read... [08:50:27]Read from MH i2c: E2 03 00 34 14 00 90 00 BC [08:50:27]RAPDU: 90 00 [08:50:27]wFMCommunicate OK [08:50:27]SAM_PROTO_ClearQueue done [08:50:27]KKMCreateOFDPacket [08:50:27]OFDProtocolAddRootSTLVToBuf [08:50:27]FM_MakeSignedData [08:50:27]FM_MakeSignedData [08:50:27]SAM_PROTO_SignData [08:50:27]wFMCommunicate request_size=4 [08:50:27]MH_SAM_APDU [08:50:27]CAPDU: 80 0D 01 02 [08:50:27]Write to MH i2c: E2 08 00 35 14 80 0D 01 02 00 00 00 00 C2 [08:50:27]Write i2c OK [08:50:27]MH_I2C_Read... [08:50:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:50:27]Read from MH i2c: E2 [08:50:27]MH_I2C_Read... [08:50:27]Read from MH i2c: E2 03 00 [08:50:27]MH_I2C_Read... [08:50:27]Read from MH i2c: E2 03 00 35 14 00 90 00 BD [08:50:27]RAPDU: 90 00 [08:50:27]wFMCommunicate OK [08:50:27]wFMCommunicate request_size=255 [08:50:27]MH_SAM_APDU [08:50: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 22 F1 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 DC DD 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 8E 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 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 1E 00 00 00 F4 03 04 00 D6 3E 75 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 AB 96 01 00 35 04 06 00 [08:50:27]Write to MH i2c: E2 02 01 36 14 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 22 F1 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 DC DD 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 8E 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 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 1E 00 00 00 F4 03 04 00 D6 3E 75 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 AB 96 01 00 35 04 06 00 00 00 92 [08:50:27]Write i2c OK [08:50:27]MH_I2C_Read... [08:50:28]Read from MH i2c: E2 [08:50:28]MH_I2C_Read... [08:50:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:50:28]Read from MH i2c: E2 03 00 [08:50:28]MH_I2C_Read... [08:50:28]Read from MH i2c: E2 03 00 36 14 00 90 00 BE [08:50:28]RAPDU: 90 00 [08:50:28]wFMCommunicate OK [08:50:28]wFMCommunicate request_size=11 [08:50:28]MH_SAM_APDU [08:50:28]CAPDU: 80 0D 02 02 06 C5 0E 01 39 56 00 [08:50:28]Write to MH i2c: E2 0E 00 37 14 80 0D 02 02 06 00 C5 0E 01 39 56 00 00 00 34 [08:50:28]Write i2c OK [08:50:28]MH_I2C_Read... [08:50:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:50:28]Read from MH i2c: E2 [08:50:28]MH_I2C_Read... [08:50:28]Read from MH i2c: E2 03 00 [08:50:28]MH_I2C_Read... [08:50:28]Read from MH i2c: E2 03 00 37 14 00 90 00 BF [08:50:28]RAPDU: 90 00 [08:50:28]wFMCommunicate OK [08:50:28]wFMCommunicate request_size=4 [08:50:28]MH_SAM_APDU [08:50:28]CAPDU: 80 0D 03 02 [08:50:28]Write to MH i2c: E2 08 00 38 14 80 0D 03 02 00 00 00 00 C7 [08:50:28]Write i2c OK [08:50:28]MH_I2C_Read... [08:50:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:50:28]Read from MH i2c: E2 [08:50:28]MH_I2C_Read... [08:50:28]Read from MH i2c: E2 0B 00 [08:50:28]MH_I2C_Read... [08:50:28]Read from MH i2c: E2 0B 00 38 14 00 55 08 1D 20 AE 0C 8F B1 90 00 5C [08:50:28]RAPDU: 55 08 1D 20 AE 0C 8F B1 90 00 [08:50:28]wFMCommunicate OK [08:50:28]SAM_PROTO_SignData done [08:50:28]FM_MakeSignedData done [08:50:28]CreateOFDProtocolMessage [08:50:28]wFMCommunicate request_size=4 [08:50:28]MH_SAM_APDU [08:50:28]CAPDU: 80 11 00 00 [08:50:28]Write to MH i2c: E2 08 00 39 14 80 11 00 00 00 00 00 00 C7 [08:50:28]Write i2c OK [08:50:28]MH_I2C_Read... [08:50:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:50:28]Read from MH i2c: E2 [08:50:28]MH_I2C_Read... [08:50:28]Read from MH i2c: E2 17 00 [08:50:28]MH_I2C_Read... [08:50:28]Read from MH i2c: E2 17 00 39 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 1A [08:50:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [08:50:28]wFMCommunicate OK [08:50:28]CreateOFDProtocolMessage done [08:50:28]OFDSenderStorePacket 104107 [08:50:28]StoreOFDPacket docnum=104107 [08:50: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 10 01 00 00 B8 F7 08 01 F3 C6 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 22 F1 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 DC DD 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 8E 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 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 1E 00 00 00 F4 03 04 00 D6 3E 75 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 AB 96 01 00 35 04 06 00 C5 0E 01 39 56 00 55 08 1D 20 AE 0C 8F B1 [08:50:28]CheckFolder [08:50:28]dirname=/storage/ofd_packets [08:50:28]CheckFolder done [08:50:28]ProducePacketName [08:50:28]name=ofd_packets/00104107 [08:50:28]NVStorageSaveData ofd_packets/00104107 [08:50:28]File name is /storage/ofd_packets/00104107 [08:50:28]Write 302 bytes [08:50:28]NVStorageSaveData done [08:50:28]OFDSenderStorePacket done [08:50:28]KKMCreateOFDPacket done [08:50:28]NVStorageSaveData kkm_last_timestamp [08:50:28]File name is /storage/kkm_last_timestamp [08:50:28]Write 4 bytes [08:50:28]NVStorageSaveData done [08:50:28]ExternCall_PrintAddStr [08:50:28]wPrintStart [08:50:28]Write to MH i2c: 01 00 00 3A 14 4E [08:50:28]Write i2c OK [08:50:28]MH_I2C_Read... [08:50:28]Read from MH i2c: 01 [08:50:28]MH_I2C_Read... [08:50:28]Read from MH i2c: 01 07 00 [08:50:28]MH_I2C_Read... [08:50:28]Read from MH i2c: 01 07 00 3A 14 00 00 00 00 00 FF 0F 63 [08:50:28]RasterBufferAndPrint [08:50:28]line Счет N : (1)673499 [08:50:28]line ИНН: 02508201610067 [08:50:28]line Контрольно-Кассовый Чек [08:50:28]line ПРОДАЖА [08:50:28]line ТРК (МРК, ГНК) : 21 [08:50:28]line Товар: 2710194210 [08:50:28]line ДТ(л)-К-5 [08:50:28]line 61.730 * 72.90 [08:50:28]line = 4500.12 [08:50:28]line НДС 12% НСП 1% [08:50:28]line > о реализуемом товаре [08:50:28]line ОКРУГЛЕНИЕ: -0.12 [08:50:28]line ИТОГО: 4500.00 [08:50:28]line Внесено: 4500.00 [08:50:28]line СДАЧА: 0.00 [08:50:28]line НСП 1% : 39.82 [08:50:28]line НДС 12% : 477.89 [08:50:28]line Наличными: 4500.00 [08:50:28]line Безнал.: 0.00 [08:50:28]line Место: АЗС № 120 "Партнер Нефть" [08:50:28]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [08:50:28]line СНО: Общий режим [08:50:28]line Чек 30 21.06.2024 08:50 [08:50:28]line Смена: 355 ФФД: 1.0 [08:50:28]line ЗНМ: 0300000164 [08:50:28]line РНМ: 0000000000092785 [08:50:28]line Версия ККМ: 001 [08:50:28]line ФМ: 0000000000875093 [08:50:28]line ФД: 104107 [08:50:28]line ФПД: 216663940748800 [08:50:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T085030&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104107&fm=216663940748800&tin=02508201610067®Number=0000000000092785&sum=450000 [08:50:28]OFD Sender: Processing packet 104107 [packets to send 17, broken 16] [08:50:28]ProducePacketName [08:50:28]name=ofd_packets/00104107 [08:50:28]OFD Sender: To server: pG, [08:50:28]CommunicateWithHost lk.salyk.kg:30040 [08:50:28]ConnectInit lk.salyk.kg [08:50:28]written 0, free lines is 4095 [08:50:28]Connected sock=10 [08:50: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 10 01 00 00 B8 F7 08 01 F3 C6 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 22 F1 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 DC DD 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 8E 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 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 1E 00 00 00 F4 03 04 00 D6 3E 75 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 AB 96 01 00 35 04 06 00 C5 0E 01 39 56 00 55 08 1D 20 AE 0C 8F B1 [08:50: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 AC 82 47 00 4A 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 AB 96 01 00 F4 03 04 00 59 E5 74 66 B6 04 01 00 00 79 E2 FD 32 48 96 E3 DC [08:50:28]CommunicateWithHost err = 0 [08:50:28]CheckOFDResponse [08:50:28]1017 (14) - 77093643461234 [08:50:28]1041 (16) - 0000000000875093 [08:50:28]1040 (4) - 104107 [08:50:28]1012 (4) - 21.06.2024 02:28 [08:50:28]1206 (1) - 0 [08:50:28]OFD Sender: Remove packet 104107 [08:50:28]ProducePacketName [08:50:28]name=ofd_packets/00104107 [08:50:28]NVStorageDeleteData [08:50:28]Write to MH i2c: 01 00 00 65 14 79 [08:50:28]Write i2c OK [08:50:28]MH_I2C_Read... [08:50:28]Read from MH i2c: 01 [08:50:28]MH_I2C_Read... [08:50:28]Read from MH i2c: 01 07 00 [08:50:28]MH_I2C_Read... [08:50:28]Read from MH i2c: 01 07 00 65 14 00 00 00 00 00 DD 0C 69 [08:50:28]RasterBufferAndPrint [08:50:28]line [08:50:28]line [08:50:28]line [08:50:28]line [08:50:28]line [08:50:28]written 0, free lines is 3299 [08:50:28]MH_Cut [08:50:28]Write to MH i2c: D1 01 00 6C 14 01 52 [08:50:29]Write i2c OK [08:50:29]MH_I2C_Read... [08:50:29]Read from MH i2c: D1 [08:50:29]MH_I2C_Read... [08:50:29]Read from MH i2c: D1 01 00 [08:50:29]MH_I2C_Read... [08:50:29]Read from MH i2c: D1 01 00 6C 14 00 51 [08:50:29]Write to MH i2c: 01 00 00 6D 14 81 [08:50:29]Write i2c OK [08:50:29]MH_I2C_Read... [08:50:29]OFD Sender: No OFD packet to send [08:50:29]*** Cut start [08:50:29]*** Partial cut [08:50:29]*** CUTSNS_PIN = 1 [08:50:29]*** CUTSNS_PIN = 0 [08:50:29]*** Brake cut motor [08:50:30]Read from MH i2c: 01 [08:50:30]MH_I2C_Read... [08:50:30]*** Stop cut motor [08:50:30]*** Cut end [08:50:30]Read from MH i2c: 01 07 00 [08:50:30]MH_I2C_Read... [08:50:30]Read from MH i2c: 01 07 00 6D 14 00 00 00 00 00 FF 0F 96 [08:50:30]process_action close_receipt done [08:50:30]requested_data is exist [08:50:30]produce_requested_data [08:50:30]requested_item fm.sn is exist - process it [08:50:30]wFMCommunicate request_size=4 [08:50:30]MH_SAM_APDU [08:50:30]CAPDU: 80 11 00 00 [08:50:30]Write to MH i2c: E2 08 00 6E 14 80 11 00 00 00 00 00 00 FC [08:50:30]Write i2c OK [08:50:30]MH_I2C_Read... [08:50:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:50:30]Read from MH i2c: E2 [08:50:30]MH_I2C_Read... [08:50:30]Read from MH i2c: E2 17 00 [08:50:30]MH_I2C_Read... [08:50:30]Read from MH i2c: E2 17 00 6E 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 4F [08:50:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [08:50:30]wFMCommunicate OK [08:50:30]requested_item fd.num is exist - process it [08:50:30]SAM_PROTO_GetFieldsCounters [08:50:30]wFMCommunicate request_size=4 [08:50:30]MH_SAM_APDU [08:50:30]CAPDU: 80 13 00 00 [08:50:30]Write to MH i2c: E2 08 00 6F 14 80 13 00 00 00 00 00 00 FF [08:50:30]Write i2c OK [08:50:30]MH_I2C_Read... [08:50:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:50:30]Read from MH i2c: E2 [08:50:30]MH_I2C_Read... [08:50:30]Read from MH i2c: E2 62 00 [08:50:30]MH_I2C_Read... [08:50:30]Read from MH i2c: E2 62 00 6F 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 AB 96 01 00 0E 04 04 00 63 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 26 [08:50: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 AB 96 01 00 0E 04 04 00 63 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:50:30]wFMCommunicate OK [08:50:30]SAM_PROTO_GetFieldsCounters done [08:50:30]requested_item shift.num is exist - process it [08:50:30]requested_item shift.opened is exist - process it [08:50:30]req_shift_opened [08:50:30]FM_GetShiftState [08:50:30]SAM_PROTO_GetShiftState [08:50:30]wFMCommunicate request_size=4 [08:50:30]MH_SAM_APDU [08:50:30]CAPDU: 80 13 01 00 [08:50:30]Write to MH i2c: E2 08 00 70 14 80 13 01 00 00 00 00 00 01 [08:50:30]Write i2c OK [08:50:30]MH_I2C_Read... [08:50:30]Read from MH i2c: E2 [08:50:30]MH_I2C_Read... [08:50:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:50:30]Read from MH i2c: E2 0E 00 [08:50:30]MH_I2C_Read... [08:50:30]Read from MH i2c: E2 0E 00 70 14 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 14 [08:50:30]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [08:50:30]wFMCommunicate OK [08:50:30]SAM_PROTO_GetShiftState done [08:50:30]FM_GetShiftState done [08:50:30]req_shift_opened done [08:50:30]requested_item shift.open_date is exist - process it [08:50:30]req_shift_open_date [08:50:30]req_shift_open_date done [08:50:30]produce_requested_data done [08:50:30]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104107,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [08:50:30]process_action_free close_receipt [08:50:30]json_value_free [08:50:30]json_value_free done [08:50:30]process_json_proto returns [08:50:30]Send response to host [08:50:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104107,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [08:50:30]free response buf [08:50:30]execute_script done [08:50:30]execute_script returns [08:50:30]free content buf [08:50:30]Sock 9.Close socket [08:50:30]Sock 9.Thread stoped [08:50:34]OFD Sender: No OFD packet to send [08:50:39]OFD Sender: No OFD packet to send [08:50:44]OFD Sender: No OFD packet to send [08:50:49]OFD Sender: No OFD packet to send [08:50:54]OFD Sender: No OFD packet to send [08:50:59]OFD Sender: No OFD packet to send [08:51:04]OFD Sender: No OFD packet to send [08:51:09]OFD Sender: No OFD packet to send [08:51:14]OFD Sender: No OFD packet to send [08:51:19]OFD Sender: No OFD packet to send [08:51:24]OFD Sender: No OFD packet to send [08:51:29]OFD Sender: No OFD packet to send [08:51:34]OFD Sender: No OFD packet to send [08:51:39]OFD Sender: No OFD packet to send [08:51:44]OFD Sender: No OFD packet to send [08:51:49]OFD Sender: No OFD packet to send [08:51:54]OFD Sender: No OFD packet to send [08:51:59]OFD Sender: No OFD packet to send [08:52:04]OFD Sender: No OFD packet to send [08:52:09]OFD Sender: No OFD packet to send [08:52:14]OFD Sender: No OFD packet to send [08:52:19]OFD Sender: No OFD packet to send [08:52:24]OFD Sender: No OFD packet to send [08:52:29]OFD Sender: No OFD packet to send [08:52:34]OFD Sender: No OFD packet to send [08:52:39]OFD Sender: No OFD packet to send [08:52:44]OFD Sender: No OFD packet to send [08:52:49]OFD Sender: No OFD packet to send [08:52:54]OFD Sender: No OFD packet to send [08:52:59]OFD Sender: No OFD packet to send [08:53:02]accept exits with 7 [08:53:02]New connection [08:53:02]New thread 3066715492 created [08:53:02]Thread 3066858852 joined [08:53:02]Waiting for new connection... [08:53:02] Sock 7.Parse request [08:53:02]Sock 7.Check first char [08:53:02]Sock 7.First char is OK [08:53:02]request: POST /json_proto HTTP/1.0 [08:53:02]Method: POST [08:53:02]URL: /json_proto [08:53:02]Method is POST - this is cgi request [08:53:02]url: /json_proto [08:53:02]query_string will be loaded in cgi processing [08:53:02]execute_cgi json_proto POST (null) [08:53:02]execute_cgi path=json_proto method=POST [08:53:02]POST find Content-Length [08:53:02]Host: 172.17.38.133:8080 [08:53:02]Content-Length: 682 [08:53:02]Content-Type: application/json [08:53:02] [08:53:02]POST finish read [08:53:02]Found Content-Length = 682 [08:53:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673501", "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" ] } } [08:53:02]execute_script... [08:53: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)673501", "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" ] } } [08:53:02]POST & json_proto [08:53:02]process_json_proto [08:53:02]json parsed OK: [08:53:02]protocol is kg_v1.0 [08:53:02]action value=close_receipt [08:53:02]process_action close_receipt [08:53:02]cmd_close_receipt [08:53:02]MH_GetDate [08:53:02]Write to MH i2c: F0 00 00 71 14 74 [08:53:02]Write i2c OK [08:53:02]MH_I2C_Read... [08:53:02]Read from MH i2c: F0 [08:53:02]MH_I2C_Read... [08:53:02]Read from MH i2c: F0 09 00 [08:53:02]MH_I2C_Read... [08:53:02]Read from MH i2c: F0 09 00 71 14 00 72 3F 75 66 BD 8F 7C 64 35 [08:53:02]GetLastDocTimeStamp 1718959830 [08:53:02]current date 1718959986 [08:53:02]FM_GetShiftState [08:53:02]SAM_PROTO_GetShiftState [08:53:02]wFMCommunicate request_size=4 [08:53:02]MH_SAM_APDU [08:53:02]CAPDU: 80 13 01 00 [08:53:02]Write to MH i2c: E2 08 00 72 14 80 13 01 00 00 00 00 00 03 [08:53:02]Write i2c OK [08:53:02]MH_I2C_Read... [08:53:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:53:02]Read from MH i2c: E2 [08:53:02]MH_I2C_Read... [08:53:02]Read from MH i2c: E2 0E 00 [08:53:02]MH_I2C_Read... [08:53:02]Read from MH i2c: E2 0E 00 72 14 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 16 [08:53:02]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [08:53:02]wFMCommunicate OK [08:53:02]SAM_PROTO_GetShiftState done [08:53:02]FM_GetShiftState done [08:53:02]opened in 1718929509 [08:53:02]opened+sec_in_day 1719015909 [08:53:02]quantity*price = 200063 [08:53:02]sum+1 = 200064 [08:53: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 СНО: Общий режим Чек 31 21.06.2024 08:53 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104108 ФПД: 213427084972878 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T085306&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104108&fm=213427084972878&tin=02508201610067®Number=0000000000092785&sum=200000 [08:53:03]StoreToDocumentArchive [08:53:03]shift 355 fd 104108 [08:53:03]save to /storage/0355/doc_00104108 [08:53:03]save last doc name /storage/0355/doc_00104108 to /storage/kkm_last_doc_name [08:53:03]save OK [08:53:03]Clear old archive folders... [08:53:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:53:03]tlvbuf is 010F0840 [08:53:03]SAM_PROTO_ClearQueue [08:53:03]wFMCommunicate request_size=4 [08:53:03]MH_SAM_APDU [08:53:03]CAPDU: 80 09 00 00 [08:53:03]Write to MH i2c: E2 08 00 7F 14 80 09 00 00 00 00 00 00 05 [08:53:03]Write i2c OK [08:53:03]MH_I2C_Read... [08:53:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:53:03]Read from MH i2c: E2 [08:53:03]MH_I2C_Read... [08:53:03]Read from MH i2c: E2 03 00 [08:53:03]MH_I2C_Read... [08:53:03]Read from MH i2c: E2 03 00 7F 14 00 90 00 07 [08:53:03]RAPDU: 90 00 [08:53:03]wFMCommunicate OK [08:53:03]SAM_PROTO_ClearQueue done [08:53:03]KKMCreateOFDPacket [08:53:03]OFDProtocolAddRootSTLVToBuf [08:53:03]FM_MakeSignedData [08:53:03]FM_MakeSignedData [08:53:03]SAM_PROTO_SignData [08:53:03]wFMCommunicate request_size=4 [08:53:03]MH_SAM_APDU [08:53:03]CAPDU: 80 0D 01 02 [08:53:03]Write to MH i2c: E2 08 00 80 14 80 0D 01 02 00 00 00 00 0D [08:53:03]Write i2c OK [08:53:03]MH_I2C_Read... [08:53:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:53:03]Read from MH i2c: E2 [08:53:03]MH_I2C_Read... [08:53:03]Read from MH i2c: E2 03 00 [08:53:03]MH_I2C_Read... [08:53:03]Read from MH i2c: E2 03 00 80 14 00 90 00 08 [08:53:03]RAPDU: 90 00 [08:53:03]wFMCommunicate OK [08:53:03]wFMCommunicate request_size=255 [08:53:03]MH_SAM_APDU [08:53: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 1F 00 00 00 F4 03 04 00 72 3F 75 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 AC 96 01 00 35 04 06 00 C2 [08:53:03]Write to MH i2c: E2 02 01 81 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 1F 00 00 00 F4 03 04 00 72 3F 75 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 AC 96 01 00 35 04 06 00 C2 00 00 D0 [08:53:04]Write i2c OK [08:53:04]MH_I2C_Read... [08:53:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:53:04]Read from MH i2c: E2 [08:53:04]MH_I2C_Read... [08:53:04]Read from MH i2c: E2 03 00 [08:53:04]MH_I2C_Read... [08:53:04]Read from MH i2c: E2 03 00 81 14 00 90 00 09 [08:53:04]RAPDU: 90 00 [08:53:04]wFMCommunicate OK [08:53:04]wFMCommunicate request_size=10 [08:53:04]MH_SAM_APDU [08:53:04]CAPDU: 80 0D 02 02 05 1C 5D 95 D3 4E [08:53:04]Write to MH i2c: E2 0D 00 82 14 80 0D 02 02 05 00 1C 5D 95 D3 4E 00 00 49 [08:53:04]Write i2c OK [08:53:04]MH_I2C_Read... [08:53:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:53:04]Read from MH i2c: E2 [08:53:04]MH_I2C_Read... [08:53:04]Read from MH i2c: E2 03 00 [08:53:04]MH_I2C_Read... [08:53:04]Read from MH i2c: E2 03 00 82 14 00 90 00 0A [08:53:04]RAPDU: 90 00 [08:53:04]wFMCommunicate OK [08:53:04]wFMCommunicate request_size=4 [08:53:04]MH_SAM_APDU [08:53:04]CAPDU: 80 0D 03 02 [08:53:04]Write to MH i2c: E2 08 00 83 14 80 0D 03 02 00 00 00 00 12 [08:53:04]Write i2c OK [08:53:04]MH_I2C_Read... [08:53:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:53:04]Read from MH i2c: E2 [08:53:04]MH_I2C_Read... [08:53:04]Read from MH i2c: E2 0B 00 [08:53:04]MH_I2C_Read... [08:53:04]Read from MH i2c: E2 0B 00 83 14 00 41 C6 E5 78 A8 0E BF 48 90 00 34 [08:53:04]RAPDU: 41 C6 E5 78 A8 0E BF 48 90 00 [08:53:04]wFMCommunicate OK [08:53:04]SAM_PROTO_SignData done [08:53:04]FM_MakeSignedData done [08:53:04]CreateOFDProtocolMessage [08:53:04]wFMCommunicate request_size=4 [08:53:04]MH_SAM_APDU [08:53:04]CAPDU: 80 11 00 00 [08:53:04]Write to MH i2c: E2 08 00 84 14 80 11 00 00 00 00 00 00 12 [08:53:04]Write i2c OK [08:53:04]MH_I2C_Read... [08:53:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:53:04]Read from MH i2c: E2 [08:53:04]MH_I2C_Read... [08:53:04]Read from MH i2c: E2 17 00 [08:53:04]MH_I2C_Read... [08:53:04]Read from MH i2c: E2 17 00 84 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 65 [08:53: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:53:04]wFMCommunicate OK [08:53:04]CreateOFDProtocolMessage done [08:53:04]OFDSenderStorePacket 104108 [08:53:04]StoreOFDPacket docnum=104108 [08:53: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 42 FF 07 01 A8 C4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1F 00 00 00 F4 03 04 00 72 3F 75 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 AC 96 01 00 35 04 06 00 C2 1C 5D 95 D3 4E 41 C6 E5 78 A8 0E BF 48 [08:53:04]CheckFolder [08:53:04]dirname=/storage/ofd_packets [08:53:04]CheckFolder done [08:53:04]ProducePacketName [08:53:04]name=ofd_packets/00104108 [08:53:04]NVStorageSaveData ofd_packets/00104108 [08:53:04]File name is /storage/ofd_packets/00104108 [08:53:04]Write 301 bytes [08:53:04]NVStorageSaveData done [08:53:04]OFDSenderStorePacket done [08:53:04]KKMCreateOFDPacket done [08:53:04]NVStorageSaveData kkm_last_timestamp [08:53:04]File name is /storage/kkm_last_timestamp [08:53:04]Write 4 bytes [08:53:04]NVStorageSaveData done [08:53:04]ExternCall_PrintAddStr [08:53:04]wPrintStart [08:53:04]Write to MH i2c: 01 00 00 85 14 99 [08:53:04]Write i2c OK [08:53:04]MH_I2C_Read... [08:53:04]Read from MH i2c: 01 [08:53:04]MH_I2C_Read... [08:53:04]Read from MH i2c: 01 07 00 [08:53:04]MH_I2C_Read... [08:53:04]Read from MH i2c: 01 07 00 85 14 00 00 00 00 00 FF 0F AE [08:53:04]RasterBufferAndPrint [08:53:04]line Счет N : (1)673501 [08:53:04]line ИНН: 02508201610067 [08:53:04]line Контрольно-Кассовый Чек [08:53:04]line ПРОДАЖА [08:53:04]line ТРК (МРК, ГНК) : 32 [08:53:04]line Товар: 2710124130 [08:53:04]line Аи-92-К-5 [08:53:04]line 30.130 * 66.40 [08:53:04]line = 2000.63 [08:53:04]line НДС 12% НСП 1% [08:53:04]line > о реализуемом товаре [08:53:04]line ОКРУГЛЕНИЕ: -0.63 [08:53:04]line ИТОГО: 2000.00 [08:53:04]line Внесено: 2000.00 [08:53:04]line СДАЧА: 0.00 [08:53:04]line НСП 1% : 17.70 [08:53:04]line НДС 12% : 212.46 [08:53:04]line Наличными: 2000.00 [08:53:04]line Безнал.: 0.00 [08:53:04]line Место: АЗС № 120 "Партнер Нефть" [08:53:04]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [08:53:04]line СНО: Общий режим [08:53:04]line Чек 31 21.06.2024 08:53 [08:53:04]line Смена: 355 ФФД: 1.0 [08:53:04]line ЗНМ: 0300000164 [08:53:04]line РНМ: 0000000000092785 [08:53:04]line Версия ККМ: 001 [08:53:04]line ФМ: 0000000000875093 [08:53:04]line ФД: 104108 [08:53:04]line ФПД: 213427084972878 [08:53:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T085306&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104108&fm=213427084972878&tin=02508201610067®Number=0000000000092785&sum=200000 [08:53:04]OFD Sender: Processing packet 104108 [packets to send 17, broken 16] [08:53:04]ProducePacketName [08:53:04]name=ofd_packets/00104108 [08:53:04]OFD Sender: To server: pG, [08:53:04]CommunicateWithHost lk.salyk.kg:30040 [08:53:04]ConnectInit lk.salyk.kg [08:53:04]written 0, free lines is 4095 [08:53:04]Connected sock=10 [08:53: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 42 FF 07 01 A8 C4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1F 00 00 00 F4 03 04 00 72 3F 75 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 AC 96 01 00 35 04 06 00 C2 1C 5D 95 D3 4E 41 C6 E5 78 A8 0E BF 48 [08:53: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 66 F9 47 00 97 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 AC 96 01 00 F4 03 04 00 F5 E5 74 66 B6 04 01 00 00 F2 47 36 D9 A8 08 66 A1 [08:53:05]CommunicateWithHost err = 0 [08:53:05]CheckOFDResponse [08:53:05]1017 (14) - 77093643461234 [08:53:05]1041 (16) - 0000000000875093 [08:53:05]1040 (4) - 104108 [08:53:05]1012 (4) - 21.06.2024 02:31 [08:53:05]1206 (1) - 0 [08:53:05]OFD Sender: Remove packet 104108 [08:53:05]ProducePacketName [08:53:05]name=ofd_packets/00104108 [08:53:05]NVStorageDeleteData [08:53:05]Write to MH i2c: 01 00 00 B0 14 C4 [08:53:05]Write i2c OK [08:53:05]MH_I2C_Read... [08:53:05]Read from MH i2c: 01 [08:53:05]MH_I2C_Read... [08:53:05]Read from MH i2c: 01 07 00 [08:53:05]MH_I2C_Read... [08:53:05]Read from MH i2c: 01 07 00 B0 14 00 00 00 00 00 EA 0C C1 [08:53:05]RasterBufferAndPrint [08:53:05]line [08:53:05]line [08:53:05]line [08:53:05]line [08:53:05]line [08:53:05]written 0, free lines is 3312 [08:53:05]MH_Cut [08:53:05]Write to MH i2c: D1 01 00 B7 14 01 9D [08:53:05]Write i2c OK [08:53:05]MH_I2C_Read... [08:53:05]Read from MH i2c: D1 [08:53:05]MH_I2C_Read... [08:53:05]Read from MH i2c: D1 01 00 [08:53:05]MH_I2C_Read... [08:53:05]Read from MH i2c: D1 01 00 B7 14 00 9C [08:53:05]Write to MH i2c: 01 00 00 B8 14 CC [08:53:05]Write i2c OK [08:53:05]MH_I2C_Read... [08:53:05]OFD Sender: No OFD packet to send [08:53:05]*** Cut start [08:53:05]*** Partial cut [08:53:05]*** CUTSNS_PIN = 1 [08:53:06]*** CUTSNS_PIN = 0 [08:53:06]*** Brake cut motor [08:53:06]Read from MH i2c: 01 [08:53:06]MH_I2C_Read... [08:53:06]*** Stop cut motor [08:53:06]*** Cut end [08:53:06]Read from MH i2c: 01 07 00 [08:53:06]MH_I2C_Read... [08:53:06]Read from MH i2c: 01 07 00 B8 14 00 00 00 00 00 FF 0F E1 [08:53:06]process_action close_receipt done [08:53:06]requested_data is exist [08:53:06]produce_requested_data [08:53:06]requested_item fm.sn is exist - process it [08:53:06]wFMCommunicate request_size=4 [08:53:06]MH_SAM_APDU [08:53:06]CAPDU: 80 11 00 00 [08:53:06]Write to MH i2c: E2 08 00 B9 14 80 11 00 00 00 00 00 00 47 [08:53:06]Write i2c OK [08:53:06]MH_I2C_Read... [08:53:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:53:06]Read from MH i2c: E2 [08:53:06]MH_I2C_Read... [08:53:06]Read from MH i2c: E2 17 00 [08:53:06]MH_I2C_Read... [08:53:06]Read from MH i2c: E2 17 00 B9 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 9A [08:53: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:53:06]wFMCommunicate OK [08:53:06]requested_item fd.num is exist - process it [08:53:06]SAM_PROTO_GetFieldsCounters [08:53:06]wFMCommunicate request_size=4 [08:53:06]MH_SAM_APDU [08:53:06]CAPDU: 80 13 00 00 [08:53:06]Write to MH i2c: E2 08 00 BA 14 80 13 00 00 00 00 00 00 4A [08:53:06]Write i2c OK [08:53:06]MH_I2C_Read... [08:53:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:53:06]Read from MH i2c: E2 [08:53:06]MH_I2C_Read... [08:53:06]Read from MH i2c: E2 62 00 [08:53:06]MH_I2C_Read... [08:53:06]Read from MH i2c: E2 62 00 BA 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 AC 96 01 00 0E 04 04 00 63 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 75 [08:53: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 AC 96 01 00 0E 04 04 00 63 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:53:06]wFMCommunicate OK [08:53:06]SAM_PROTO_GetFieldsCounters done [08:53:06]requested_item shift.num is exist - process it [08:53:06]requested_item shift.opened is exist - process it [08:53:06]req_shift_opened [08:53:06]FM_GetShiftState [08:53:06]SAM_PROTO_GetShiftState [08:53:06]wFMCommunicate request_size=4 [08:53:06]MH_SAM_APDU [08:53:06]CAPDU: 80 13 01 00 [08:53:06]Write to MH i2c: E2 08 00 BB 14 80 13 01 00 00 00 00 00 4C [08:53:06]Write i2c OK [08:53:06]MH_I2C_Read... [08:53:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:53:06]Read from MH i2c: E2 [08:53:06]MH_I2C_Read... [08:53:06]Read from MH i2c: E2 0E 00 [08:53:06]MH_I2C_Read... [08:53:06]Read from MH i2c: E2 0E 00 BB 14 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 5F [08:53:06]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [08:53:06]wFMCommunicate OK [08:53:06]SAM_PROTO_GetShiftState done [08:53:06]FM_GetShiftState done [08:53:06]req_shift_opened done [08:53:06]requested_item shift.open_date is exist - process it [08:53:06]req_shift_open_date [08:53:06]req_shift_open_date done [08:53:06]produce_requested_data done [08:53:06]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104108,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [08:53:06]process_action_free close_receipt [08:53:06]json_value_free [08:53:06]json_value_free done [08:53:06]process_json_proto returns [08:53:06]Send response to host [08:53:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104108,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [08:53:06]free response buf [08:53:06]execute_script done [08:53:06]execute_script returns [08:53:06]free content buf [08:53:06]Sock 7.Close socket [08:53:06]Sock 7.Thread stoped [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]accept exits with 9 [08:54:00]New connection [08:54:00]New thread 3066858852 created [08:54:00]Thread 3066715492 joined [08:54:00]Waiting for new connection... [08:54:00] Sock 9.Parse request [08:54:00]Sock 9.Check first char [08:54:00]Sock 9.First char is OK [08:54:00]request: POST /json_proto HTTP/1.0 [08:54:00]Method: POST [08:54:00]URL: /json_proto [08:54:00]Method is POST - this is cgi request [08:54:00]url: /json_proto [08:54:00]query_string will be loaded in cgi processing [08:54:00]execute_cgi json_proto POST (null) [08:54:00]execute_cgi path=json_proto method=POST [08:54:00]POST find Content-Length [08:54:00]Host: 172.17.38.133:8080 [08:54:00]Content-Length: 824 [08:54:00]Content-Type: application/json [08:54:00] [08:54:00]POST finish read [08:54:00]Found Content-Length = 824 [08:54:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673502", "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" : 27.440, "sum" : 2000.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 2000.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:54:00]execute_script... [08:54:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673502", "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" : 27.440, "sum" : 2000.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 2000.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:54:00]POST & json_proto [08:54:00]process_json_proto [08:54:00]json parsed OK: [08:54:00]protocol is kg_v1.0 [08:54:00]action value=close_receipt [08:54:00]process_action close_receipt [08:54:00]cmd_close_receipt [08:54:00]MH_GetDate [08:54:00]Write to MH i2c: F0 00 00 BC 14 BF [08:54:00]Write i2c OK [08:54:00]MH_I2C_Read... [08:54:00]Read from MH i2c: F0 [08:54:00]MH_I2C_Read... [08:54:00]Read from MH i2c: F0 09 00 [08:54:00]MH_I2C_Read... [08:54:00]Read from MH i2c: F0 09 00 BC 14 00 AB 3F 75 66 BD 8F 7C 64 B9 [08:54:00]GetLastDocTimeStamp 1718959986 [08:54:00]current date 1718960043 [08:54:00]FM_GetShiftState [08:54:00]SAM_PROTO_GetShiftState [08:54:00]wFMCommunicate request_size=4 [08:54:00]MH_SAM_APDU [08:54:00]CAPDU: 80 13 01 00 [08:54:00]Write to MH i2c: E2 08 00 BD 14 80 13 01 00 00 00 00 00 4E [08:54:00]Write i2c OK [08:54:00]MH_I2C_Read... [08:54:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:54:00]Read from MH i2c: E2 [08:54:00]MH_I2C_Read... [08:54:00]Read from MH i2c: E2 0E 00 [08:54:00]MH_I2C_Read... [08:54:00]Read from MH i2c: E2 0E 00 BD 14 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 61 [08:54:00]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [08:54:00]wFMCommunicate OK [08:54:00]SAM_PROTO_GetShiftState done [08:54:00]FM_GetShiftState done [08:54:00]opened in 1718929509 [08:54:00]opened+sec_in_day 1719015909 [08:54:00]quantity*price = 200037 [08:54:00]sum+1 = 200039 [08:54:00]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.38 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 0.00 Безнал.: 2000.38 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 32 21.06.2024 08:54 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875093 ФД: 104109 ФПД: 281182765224936 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T085403&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104109&fm=281182765224936&tin=02508201610067®Number=0000000000092785&sum=200038 [08:54:01]StoreToDocumentArchive [08:54:01]shift 355 fd 104109 [08:54:01]save to /storage/0355/doc_00104109 [08:54:01]save last doc name /storage/0355/doc_00104109 to /storage/kkm_last_doc_name [08:54:01]save OK [08:54:01]Clear old archive folders... [08:54:01]ProcessDocumentItem done err = 0, tmpTLVsize=252 [08:54:01]tlvbuf is 01127850 [08:54:01]SAM_PROTO_ClearQueue [08:54:01]wFMCommunicate request_size=4 [08:54:01]MH_SAM_APDU [08:54:01]CAPDU: 80 09 00 00 [08:54:01]Write to MH i2c: E2 08 00 CA 14 80 09 00 00 00 00 00 00 50 [08:54:01]Write i2c OK [08:54:01]MH_I2C_Read... [08:54:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:54:01]Read from MH i2c: E2 [08:54:01]MH_I2C_Read... [08:54:01]Read from MH i2c: E2 03 00 [08:54:01]MH_I2C_Read... [08:54:01]Read from MH i2c: E2 03 00 CA 14 00 90 00 52 [08:54:01]RAPDU: 90 00 [08:54:01]wFMCommunicate OK [08:54:01]SAM_PROTO_ClearQueue done [08:54:01]KKMCreateOFDPacket [08:54:01]OFDProtocolAddRootSTLVToBuf [08:54:01]FM_MakeSignedData [08:54:01]FM_MakeSignedData [08:54:01]SAM_PROTO_SignData [08:54:01]wFMCommunicate request_size=4 [08:54:01]MH_SAM_APDU [08:54:01]CAPDU: 80 0D 01 02 [08:54:01]Write to MH i2c: E2 08 00 CB 14 80 0D 01 02 00 00 00 00 58 [08:54:01]Write i2c OK [08:54:01]MH_I2C_Read... [08:54:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:54:01]Read from MH i2c: E2 [08:54:01]MH_I2C_Read... [08:54:01]Read from MH i2c: E2 03 00 [08:54:01]MH_I2C_Read... [08:54:01]Read from MH i2c: E2 03 00 CB 14 00 90 00 53 [08:54:01]RAPDU: 90 00 [08:54:01]wFMCommunicate OK [08:54:01]wFMCommunicate request_size=255 [08:54:01]MH_SAM_APDU [08:54:01]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 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 66 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 00 00 00 00 00 00 39 04 06 00 66 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 AB 3F 75 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 AD 96 01 00 35 04 06 00 [08:54:01]Write to MH i2c: E2 02 01 CC 14 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 66 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 00 00 00 00 00 00 39 04 06 00 66 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 AB 3F 75 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 AD 96 01 00 35 04 06 00 00 00 00 [08:54:01]Write i2c OK [08:54:01]MH_I2C_Read... [08:54:01]Read from MH i2c: E2 [08:54:01]MH_I2C_Read... [08:54:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:54:01]Read from MH i2c: E2 03 00 [08:54:01]MH_I2C_Read... [08:54:01]Read from MH i2c: E2 03 00 CC 14 00 90 00 54 [08:54:01]RAPDU: 90 00 [08:54:01]wFMCommunicate OK [08:54:01]wFMCommunicate request_size=11 [08:54:01]MH_SAM_APDU [08:54:01]CAPDU: 80 0D 02 02 06 FF BB F6 D6 93 E8 [08:54:01]Write to MH i2c: E2 0E 00 CD 14 80 0D 02 02 06 00 FF BB F6 D6 93 E8 00 00 68 [08:54:01]Write i2c OK [08:54:01]MH_I2C_Read... [08:54:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:54:01]Read from MH i2c: E2 [08:54:01]MH_I2C_Read... [08:54:01]Read from MH i2c: E2 03 00 [08:54:01]MH_I2C_Read... [08:54:01]Read from MH i2c: E2 03 00 CD 14 00 90 00 55 [08:54:01]RAPDU: 90 00 [08:54:01]wFMCommunicate OK [08:54:01]wFMCommunicate request_size=4 [08:54:01]MH_SAM_APDU [08:54:01]CAPDU: 80 0D 03 02 [08:54:01]Write to MH i2c: E2 08 00 CE 14 80 0D 03 02 00 00 00 00 5D [08:54:01]Write i2c OK [08:54:01]MH_I2C_Read... [08:54:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:54:01]Read from MH i2c: E2 [08:54:01]MH_I2C_Read... [08:54:01]Read from MH i2c: E2 0B 00 [08:54:01]MH_I2C_Read... [08:54:01]Read from MH i2c: E2 0B 00 CE 14 00 64 52 5F 6F 83 66 0E 05 90 00 DE [08:54:01]RAPDU: 64 52 5F 6F 83 66 0E 05 90 00 [08:54:01]wFMCommunicate OK [08:54:01]SAM_PROTO_SignData done [08:54:01]FM_MakeSignedData done [08:54:01]CreateOFDProtocolMessage [08:54:01]wFMCommunicate request_size=4 [08:54:01]MH_SAM_APDU [08:54:01]CAPDU: 80 11 00 00 [08:54:01]Write to MH i2c: E2 08 00 CF 14 80 11 00 00 00 00 00 00 5D [08:54:01]Write i2c OK [08:54:01]MH_I2C_Read... [08:54:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:54:01]Read from MH i2c: E2 [08:54:01]MH_I2C_Read... [08:54:01]Read from MH i2c: E2 17 00 [08:54:01]MH_I2C_Read... [08:54:01]Read from MH i2c: E2 17 00 CF 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 B0 [08:54:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [08:54:01]wFMCommunicate OK [08:54:01]CreateOFDProtocolMessage done [08:54:01]OFDSenderStorePacket 104109 [08:54:01]StoreOFDPacket docnum=104109 [08:54: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 10 01 00 00 83 CA 08 01 17 2E 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 66 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 00 00 00 00 00 00 39 04 06 00 66 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 AB 3F 75 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 AD 96 01 00 35 04 06 00 FF BB F6 D6 93 E8 64 52 5F 6F 83 66 0E 05 [08:54:01]CheckFolder [08:54:01]dirname=/storage/ofd_packets [08:54:01]CheckFolder done [08:54:01]ProducePacketName [08:54:01]name=ofd_packets/00104109 [08:54:01]NVStorageSaveData ofd_packets/00104109 [08:54:01]File name is /storage/ofd_packets/00104109 [08:54:01]Write 302 bytes [08:54:01]NVStorageSaveData done [08:54:01]OFDSenderStorePacket done [08:54:01]KKMCreateOFDPacket done [08:54:01]NVStorageSaveData kkm_last_timestamp [08:54:01]File name is /storage/kkm_last_timestamp [08:54:01]Write 4 bytes [08:54:01]NVStorageSaveData done [08:54:01]ExternCall_PrintAddStr [08:54:01]wPrintStart [08:54:01]Write to MH i2c: 01 00 00 D0 14 E4 [08:54:01]Write i2c OK [08:54:01]MH_I2C_Read... [08:54:01]Read from MH i2c: 01 [08:54:01]MH_I2C_Read... [08:54:01]Read from MH i2c: 01 07 00 [08:54:01]MH_I2C_Read... [08:54:01]Read from MH i2c: 01 07 00 D0 14 00 00 00 00 00 FF 0F F9 [08:54:01]RasterBufferAndPrint [08:54:01]line Счет N : (1)673502 [08:54:01]line ИНН: 02508201610067 [08:54:01]line Контрольно-Кассовый Чек [08:54:01]line ПРОДАЖА [08:54:01]line ТРК (МРК, ГНК) : 11 [08:54:01]line Товар: 2710194210 [08:54:01]line ДТ(л)-К-5 [08:54:01]line 27.440 * 72.90 [08:54:01]line = 2000.38 [08:54:01]line НДС 12% НСП 1% [08:54:01]line > о реализуемом товаре [08:54:01]line ИТОГО: 2000.38 [08:54:01]line НСП 1% : 17.70 [08:54:01]line НДС 12% : 212.43 [08:54:01]line Наличными: 0.00 [08:54:01]line Безнал.: 2000.38 [08:54:01]line Место: АЗС № 120 "Партнер Нефть" [08:54:01]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [08:54:01]line СНО: Общий режим [08:54:01]line Чек 32 21.06.2024 08:54 [08:54:01]line Смена: 355 ФФД: 1.0 [08:54:01]line ЗНМ: 0300000164 [08:54:01]line РНМ: 0000000000092785 [08:54:01]line Версия ККМ: 001 [08:54:01]line Платежная система: Бакай Банк [08:54:01]line ФМ: 0000000000875093 [08:54:01]line ФД: 104109 [08:54:01]line ФПД: 281182765224936 [08:54:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T085403&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104109&fm=281182765224936&tin=02508201610067®Number=0000000000092785&sum=200038 [08:54:02]OFD Sender: Processing packet 104109 [packets to send 17, broken 16] [08:54:02]ProducePacketName [08:54:02]name=ofd_packets/00104109 [08:54:02]OFD Sender: To server: pG, [08:54:02]CommunicateWithHost lk.salyk.kg:30040 [08:54:02]ConnectInit lk.salyk.kg [08:54:02]written 0, free lines is 4095 [08:54:02]Connected sock=10 [08:54: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 10 01 00 00 83 CA 08 01 17 2E 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 66 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 00 00 00 00 00 00 39 04 06 00 66 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 AB 3F 75 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 AD 96 01 00 35 04 06 00 FF BB F6 D6 93 E8 64 52 5F 6F 83 66 0E 05 [08:54:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 67 46 47 00 57 CD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 AD 96 01 00 F4 03 04 00 2E E6 74 66 B6 04 01 00 00 A9 BC A7 6D E1 93 60 84 [08:54:02]CommunicateWithHost err = 0 [08:54:02]CheckOFDResponse [08:54:02]1017 (14) - 77093643461234 [08:54:02]1041 (16) - 0000000000875093 [08:54:02]1040 (4) - 104109 [08:54:02]1012 (4) - 21.06.2024 02:32 [08:54:02]1206 (1) - 0 [08:54:02]OFD Sender: Remove packet 104109 [08:54:02]ProducePacketName [08:54:02]name=ofd_packets/00104109 [08:54:02]NVStorageDeleteData [08:54:02]Write to MH i2c: 01 00 00 FA 14 0E [08:54:02]Write i2c OK [08:54:02]MH_I2C_Read... [08:54:02]Read from MH i2c: 01 [08:54:02]MH_I2C_Read... [08:54:02]Read from MH i2c: 01 07 00 [08:54:02]MH_I2C_Read... [08:54:02]Read from MH i2c: 01 07 00 FA 14 00 00 00 00 00 EE 0C 0F [08:54:02]RasterBufferAndPrint [08:54:02]line [08:54:02]line [08:54:02]line [08:54:02]line [08:54:02]line [08:54:02]written 0, free lines is 3316 [08:54:02]MH_Cut [08:54:02]Write to MH i2c: D1 01 00 01 15 01 E8 [08:54:02]Write i2c OK [08:54:02]MH_I2C_Read... [08:54:02]Read from MH i2c: D1 [08:54:02]MH_I2C_Read... [08:54:02]Read from MH i2c: D1 01 00 [08:54:02]MH_I2C_Read... [08:54:02]Read from MH i2c: D1 01 00 01 15 00 E7 [08:54:02]Write to MH i2c: 01 00 00 02 15 17 [08:54:02]Write i2c OK [08:54:02]MH_I2C_Read... [08:54:03]OFD Sender: No OFD packet to send [08:54:03]*** Cut start [08:54:03]*** Partial cut [08:54:03]*** CUTSNS_PIN = 1 [08:54:03]*** CUTSNS_PIN = 0 [08:54:03]*** Brake cut motor [08:54:04]Read from MH i2c: 01 [08:54:04]MH_I2C_Read... [08:54:04]*** Stop cut motor [08:54:04]*** Cut end [08:54:04]Read from MH i2c: 01 07 00 [08:54:04]MH_I2C_Read... [08:54:04]Read from MH i2c: 01 07 00 02 15 00 00 00 00 00 FF 0F 2C [08:54:04]process_action close_receipt done [08:54:04]requested_data is exist [08:54:04]produce_requested_data [08:54:04]requested_item fm.sn is exist - process it [08:54:04]wFMCommunicate request_size=4 [08:54:04]MH_SAM_APDU [08:54:04]CAPDU: 80 11 00 00 [08:54:04]Write to MH i2c: E2 08 00 03 15 80 11 00 00 00 00 00 00 92 [08:54:04]Write i2c OK [08:54:04]MH_I2C_Read... [08:54:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:54:04]Read from MH i2c: E2 [08:54:04]MH_I2C_Read... [08:54:04]Read from MH i2c: E2 17 00 [08:54:04]MH_I2C_Read... [08:54:04]Read from MH i2c: E2 17 00 03 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 E5 [08:54: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:54:04]wFMCommunicate OK [08:54:04]requested_item fd.num is exist - process it [08:54:04]SAM_PROTO_GetFieldsCounters [08:54:04]wFMCommunicate request_size=4 [08:54:04]MH_SAM_APDU [08:54:04]CAPDU: 80 13 00 00 [08:54:04]Write to MH i2c: E2 08 00 04 15 80 13 00 00 00 00 00 00 95 [08:54:04]Write i2c OK [08:54:04]MH_I2C_Read... [08:54:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:54:04]Read from MH i2c: E2 [08:54:04]MH_I2C_Read... [08:54:04]Read from MH i2c: E2 62 00 [08:54:04]MH_I2C_Read... [08:54:04]Read from MH i2c: E2 62 00 04 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 AD 96 01 00 0E 04 04 00 63 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 C4 [08:54: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 AD 96 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:54:04]wFMCommunicate OK [08:54:04]SAM_PROTO_GetFieldsCounters done [08:54:04]requested_item shift.num is exist - process it [08:54:04]requested_item shift.opened is exist - process it [08:54:04]req_shift_opened [08:54:04]FM_GetShiftState [08:54:04]SAM_PROTO_GetShiftState [08:54:04]wFMCommunicate request_size=4 [08:54:04]MH_SAM_APDU [08:54:04]CAPDU: 80 13 01 00 [08:54:04]Write to MH i2c: E2 08 00 05 15 80 13 01 00 00 00 00 00 97 [08:54:04]Write i2c OK [08:54:04]MH_I2C_Read... [08:54:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:54:04]Read from MH i2c: E2 [08:54:04]MH_I2C_Read... [08:54:04]Read from MH i2c: E2 0E 00 [08:54:04]MH_I2C_Read... [08:54:04]Read from MH i2c: E2 0E 00 05 15 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 AA [08:54:04]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [08:54:04]wFMCommunicate OK [08:54:04]SAM_PROTO_GetShiftState done [08:54:04]FM_GetShiftState done [08:54:04]req_shift_opened done [08:54:04]requested_item shift.open_date is exist - process it [08:54:04]req_shift_open_date [08:54:04]req_shift_open_date done [08:54:04]produce_requested_data done [08:54:04]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104109,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [08:54:04]process_action_free close_receipt [08:54:04]json_value_free [08:54:04]json_value_free done [08:54:04]process_json_proto returns [08:54:04]Send response to host [08:54:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104109,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [08:54:04]free response buf [08:54:04]execute_script done [08:54:04]execute_script returns [08:54:04]free content buf [08:54:04]Sock 9.Close socket [08:54:04]Sock 9.Thread stoped [08:54:08]OFD Sender: No OFD packet to send [08:54:13]OFD Sender: No OFD packet to send [08:54:18]OFD Sender: No OFD packet to send [08:54:23]OFD Sender: No OFD packet to send [08:54:28]OFD Sender: No OFD packet to send [08:54:33]OFD Sender: No OFD packet to send [08:54:38]OFD Sender: No OFD packet to send [08:54:43]OFD Sender: No OFD packet to send [08:54:48]OFD Sender: No OFD packet to send [08:54:53]OFD Sender: No OFD packet to send [08:54:58]OFD Sender: No OFD packet to send [08:55:03]OFD Sender: No OFD packet to send [08:55:08]OFD Sender: No OFD packet to send [08:55:13]OFD Sender: No OFD packet to send [08:55:18]OFD Sender: No OFD packet to send [08:55:23]OFD Sender: No OFD packet to send [08:55:28]OFD Sender: No OFD packet to send [08:55:33]OFD Sender: No OFD packet to send [08:55:38]OFD Sender: No OFD packet to send [08:55:43]OFD Sender: No OFD packet to send [08:55:48]OFD Sender: No OFD packet to send [08:55:53]OFD Sender: No OFD packet to send [08:55:58]OFD Sender: No OFD packet to send [08:56:03]OFD Sender: No OFD packet to send [08:56:08]OFD Sender: No OFD packet to send [08:56:13]OFD Sender: No OFD packet to send [08:56:18]OFD Sender: No OFD packet to send [08:56:23]OFD Sender: No OFD packet to send [08:56:28]OFD Sender: No OFD packet to send [08:56:33]OFD Sender: No OFD packet to send [08:56:38]OFD Sender: No OFD packet to send [08:56:43]OFD Sender: No OFD packet to send [08:56:48]OFD Sender: No OFD packet to send [08:56:53]OFD Sender: No OFD packet to send [08:56:58]OFD Sender: No OFD packet to send [08:57:03]OFD Sender: No OFD packet to send [08:57:08]OFD Sender: No OFD packet to send [08:57:13]OFD Sender: No OFD packet to send [08:57:18]OFD Sender: No OFD packet to send [08:57:23]OFD Sender: No OFD packet to send [08:57:28]OFD Sender: No OFD packet to send [08:57:33]OFD Sender: No OFD packet to send [08:57:38]OFD Sender: No OFD packet to send [08:57:43]OFD Sender: No OFD packet to send [08:57:48]OFD Sender: No OFD packet to send [08:57:53]OFD Sender: No OFD packet to send [08:57:58]OFD Sender: No OFD packet to send [08:58:03]OFD Sender: No OFD packet to send [08:58:08]OFD Sender: No OFD packet to send [08:58:13]OFD Sender: No OFD packet to send [08:58:18]OFD Sender: No OFD packet to send [08:58:23]OFD Sender: No OFD packet to send [08:58:28]OFD Sender: No OFD packet to send [08:58:33]OFD Sender: No OFD packet to send [08:58:38]OFD Sender: No OFD packet to send [08:58:43]OFD Sender: No OFD packet to send [08:58:48]OFD Sender: No OFD packet to send [08:58:53]OFD Sender: No OFD packet to send [08:58:58]OFD Sender: No OFD packet to send [08:59:03]OFD Sender: No OFD packet to send [08:59:08]OFD Sender: No OFD packet to send [08:59:13]OFD Sender: No OFD packet to send [08:59:18]OFD Sender: No OFD packet to send [08:59:23]OFD Sender: No OFD packet to send [08:59:28]OFD Sender: No OFD packet to send [08:59:33]OFD Sender: No OFD packet to send [08:59:38]OFD Sender: No OFD packet to send [08:59:43]OFD Sender: No OFD packet to send [08:59:48]OFD Sender: No OFD packet to send [08:59:53]OFD Sender: No OFD packet to send [08:59:58]OFD Sender: No OFD packet to send [09:00:03]OFD Sender: No OFD packet to send [09:00:08]OFD Sender: No OFD packet to send [09:00:13]OFD Sender: No OFD packet to send [09:00:18]OFD Sender: No OFD packet to send [09:00:23]OFD Sender: No OFD packet to send [09:00:28]OFD Sender: No OFD packet to send [09:00:33]OFD Sender: No OFD packet to send [09:00:38]OFD Sender: No OFD packet to send [09:00:43]OFD Sender: No OFD packet to send [09:00:48]OFD Sender: No OFD packet to send [09:00:53]OFD Sender: No OFD packet to send [09:00:58]OFD Sender: No OFD packet to send [09:01:03]OFD Sender: No OFD packet to send [09:01:08]OFD Sender: No OFD packet to send [09:01:13]OFD Sender: No OFD packet to send [09:01:18]OFD Sender: No OFD packet to send [09:01:23]OFD Sender: No OFD packet to send [09:01:28]OFD Sender: No OFD packet to send [09:01:33]OFD Sender: No OFD packet to send [09:01:38]OFD Sender: No OFD packet to send [09:01:43]OFD Sender: No OFD packet to send [09:01:48]OFD Sender: No OFD packet to send [09:01:53]OFD Sender: No OFD packet to send [09:01:58]OFD Sender: No OFD packet to send [09:02:03]OFD Sender: No OFD packet to send [09:02:08]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:12]accept exits with 7 [09:04:12]New connection [09:04:12]New thread 3066715492 created [09:04:12]Thread 3066858852 joined [09:04:12]Waiting for new connection... [09:04:12] Sock 7.Parse request [09:04:12]Sock 7.Check first char [09:04:12]Sock 7.First char is OK [09:04:12]request: POST /json_proto HTTP/1.0 [09:04:12]Method: POST [09:04:12]URL: /json_proto [09:04:12]Method is POST - this is cgi request [09:04:12]url: /json_proto [09:04:12]query_string will be loaded in cgi processing [09:04:12]execute_cgi json_proto POST (null) [09:04:12]execute_cgi path=json_proto method=POST [09:04:12]POST find Content-Length [09:04:12]Host: 172.17.38.133:8080 [09:04:12]Content-Length: 682 [09:04:12]Content-Type: application/json [09:04:12] [09:04:12]POST finish read [09:04:12]Found Content-Length = 682 [09:04:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673503", "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" : 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" ] } } [09:04:12]execute_script... [09:04: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)673503", "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" : 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" ] } } [09:04:12]POST & json_proto [09:04:12]process_json_proto [09:04:12]json parsed OK: [09:04:12]protocol is kg_v1.0 [09:04:12]action value=close_receipt [09:04:12]process_action close_receipt [09:04:12]cmd_close_receipt [09:04:12]MH_GetDate [09:04:12]Write to MH i2c: F0 00 00 06 15 0A [09:04:12]Write i2c OK [09:04:12]MH_I2C_Read... [09:04:12]Read from MH i2c: F0 [09:04:12]MH_I2C_Read... [09:04:12]Read from MH i2c: F0 09 00 [09:04:12]MH_I2C_Read... [09:04:12]Read from MH i2c: F0 09 00 06 15 00 0F 42 75 66 BD 8F 7C 64 6B [09:04:12]GetLastDocTimeStamp 1718960043 [09:04:12]current date 1718960655 [09:04:12]FM_GetShiftState [09:04:12]SAM_PROTO_GetShiftState [09:04:12]wFMCommunicate request_size=4 [09:04:12]MH_SAM_APDU [09:04:12]CAPDU: 80 13 01 00 [09:04:12]Write to MH i2c: E2 08 00 07 15 80 13 01 00 00 00 00 00 99 [09:04:12]Write i2c OK [09:04:12]MH_I2C_Read... [09:04:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:04:12]Read from MH i2c: E2 [09:04:12]MH_I2C_Read... [09:04:12]Read from MH i2c: E2 0E 00 [09:04:12]MH_I2C_Read... [09:04:12]Read from MH i2c: E2 0E 00 07 15 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 AC [09:04:12]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [09:04:12]wFMCommunicate OK [09:04:12]SAM_PROTO_GetShiftState done [09:04:12]FM_GetShiftState done [09:04:12]opened in 1718929509 [09:04:12]opened+sec_in_day 1719015909 [09:04:12]quantity*price = 70056 [09:04:12]sum+1 = 70058 [09:04:12]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 СНО: Общий режим Чек 33 21.06.2024 09:04 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104110 ФПД: 261072663542935 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T090415&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104110&fm=261072663542935&tin=02508201610067®Number=0000000000092785&sum=70000 [09:04:13]StoreToDocumentArchive [09:04:13]shift 355 fd 104110 [09:04:13]save to /storage/0355/doc_00104110 [09:04:13]save last doc name /storage/0355/doc_00104110 to /storage/kkm_last_doc_name [09:04:13]save OK [09:04:13]Clear old archive folders... [09:04:13]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:04:13]tlvbuf is B6EAA370 [09:04:13]SAM_PROTO_ClearQueue [09:04:13]wFMCommunicate request_size=4 [09:04:13]MH_SAM_APDU [09:04:13]CAPDU: 80 09 00 00 [09:04:13]Write to MH i2c: E2 08 00 14 15 80 09 00 00 00 00 00 00 9B [09:04:13]Write i2c OK [09:04:13]MH_I2C_Read... [09:04:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:04:13]Read from MH i2c: E2 [09:04:13]MH_I2C_Read... [09:04:13]Read from MH i2c: E2 03 00 [09:04:13]MH_I2C_Read... [09:04:13]Read from MH i2c: E2 03 00 14 15 00 90 00 9D [09:04:13]RAPDU: 90 00 [09:04:13]wFMCommunicate OK [09:04:13]SAM_PROTO_ClearQueue done [09:04:13]KKMCreateOFDPacket [09:04:13]OFDProtocolAddRootSTLVToBuf [09:04:13]FM_MakeSignedData [09:04:13]FM_MakeSignedData [09:04:13]SAM_PROTO_SignData [09:04:13]wFMCommunicate request_size=4 [09:04:13]MH_SAM_APDU [09:04:13]CAPDU: 80 0D 01 02 [09:04:13]Write to MH i2c: E2 08 00 15 15 80 0D 01 02 00 00 00 00 A3 [09:04:13]Write i2c OK [09:04:13]MH_I2C_Read... [09:04:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:04:13]Read from MH i2c: E2 [09:04:13]MH_I2C_Read... [09:04:13]Read from MH i2c: E2 03 00 [09:04:13]MH_I2C_Read... [09:04:13]Read from MH i2c: E2 03 00 15 15 00 90 00 9E [09:04:13]RAPDU: 90 00 [09:04:13]wFMCommunicate OK [09:04:13]wFMCommunicate request_size=255 [09:04:13]MH_SAM_APDU [09:04:13]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 21 00 00 00 F4 03 04 00 0F 42 75 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 AE 96 01 00 35 04 06 00 [09:04:13]Write to MH i2c: E2 02 01 16 15 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 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 21 00 00 00 F4 03 04 00 0F 42 75 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 AE 96 01 00 35 04 06 00 00 00 83 [09:04:13]Write i2c OK [09:04:13]MH_I2C_Read... [09:04:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:04:13]Read from MH i2c: E2 [09:04:13]MH_I2C_Read... [09:04:13]Read from MH i2c: E2 03 00 [09:04:13]MH_I2C_Read... [09:04:13]Read from MH i2c: E2 03 00 16 15 00 90 00 9F [09:04:13]RAPDU: 90 00 [09:04:13]wFMCommunicate OK [09:04:13]wFMCommunicate request_size=11 [09:04:13]MH_SAM_APDU [09:04:13]CAPDU: 80 0D 02 02 06 ED 71 B7 5E FC 97 [09:04:13]Write to MH i2c: E2 0E 00 17 15 80 0D 02 02 06 00 ED 71 B7 5E FC 97 00 00 B8 [09:04:13]Write i2c OK [09:04:13]MH_I2C_Read... [09:04:13]OFD Sender: No OFD packet to send [09:04:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:04:13]Read from MH i2c: E2 [09:04:13]MH_I2C_Read... [09:04:13]Read from MH i2c: E2 03 00 [09:04:13]MH_I2C_Read... [09:04:13]Read from MH i2c: E2 03 00 17 15 00 90 00 A0 [09:04:13]RAPDU: 90 00 [09:04:13]wFMCommunicate OK [09:04:13]wFMCommunicate request_size=4 [09:04:13]MH_SAM_APDU [09:04:13]CAPDU: 80 0D 03 02 [09:04:13]Write to MH i2c: E2 08 00 18 15 80 0D 03 02 00 00 00 00 A8 [09:04:13]Write i2c OK [09:04:13]MH_I2C_Read... [09:04:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:04:13]Read from MH i2c: E2 [09:04:13]MH_I2C_Read... [09:04:13]Read from MH i2c: E2 0B 00 [09:04:13]MH_I2C_Read... [09:04:13]Read from MH i2c: E2 0B 00 18 15 00 0A A1 45 A8 9B 5A 49 AF 90 00 2E [09:04:13]RAPDU: 0A A1 45 A8 9B 5A 49 AF 90 00 [09:04:13]wFMCommunicate OK [09:04:13]SAM_PROTO_SignData done [09:04:13]FM_MakeSignedData done [09:04:13]CreateOFDProtocolMessage [09:04:13]wFMCommunicate request_size=4 [09:04:13]MH_SAM_APDU [09:04:13]CAPDU: 80 11 00 00 [09:04:13]Write to MH i2c: E2 08 00 19 15 80 11 00 00 00 00 00 00 A8 [09:04:13]Write i2c OK [09:04:13]MH_I2C_Read... [09:04:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:04:13]Read from MH i2c: E2 [09:04:13]MH_I2C_Read... [09:04:13]Read from MH i2c: E2 17 00 [09:04:13]MH_I2C_Read... [09:04:13]Read from MH i2c: E2 17 00 19 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 FB [09:04:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [09:04:13]wFMCommunicate OK [09:04:13]CreateOFDProtocolMessage done [09:04:13]OFDSenderStorePacket 104110 [09:04:13]StoreOFDPacket docnum=104110 [09:04: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 10 01 00 00 64 ED 08 01 B7 FC 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 21 00 00 00 F4 03 04 00 0F 42 75 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 AE 96 01 00 35 04 06 00 ED 71 B7 5E FC 97 0A A1 45 A8 9B 5A 49 AF [09:04:13]CheckFolder [09:04:13]dirname=/storage/ofd_packets [09:04:13]CheckFolder done [09:04:13]ProducePacketName [09:04:13]name=ofd_packets/00104110 [09:04:13]NVStorageSaveData ofd_packets/00104110 [09:04:13]File name is /storage/ofd_packets/00104110 [09:04:13]Write 302 bytes [09:04:13]NVStorageSaveData done [09:04:13]OFDSenderStorePacket done [09:04:13]KKMCreateOFDPacket done [09:04:13]NVStorageSaveData kkm_last_timestamp [09:04:13]File name is /storage/kkm_last_timestamp [09:04:13]Write 4 bytes [09:04:13]NVStorageSaveData done [09:04:13]ExternCall_PrintAddStr [09:04:13]wPrintStart [09:04:13]Write to MH i2c: 01 00 00 1A 15 2F [09:04:13]Write i2c OK [09:04:13]MH_I2C_Read... [09:04:13]Read from MH i2c: 01 [09:04:13]MH_I2C_Read... [09:04:13]Read from MH i2c: 01 07 00 [09:04:13]MH_I2C_Read... [09:04:13]Read from MH i2c: 01 07 00 1A 15 00 00 00 00 00 FF 0F 44 [09:04:13]RasterBufferAndPrint [09:04:13]line Счет N : (1)673503 [09:04:13]line ИНН: 02508201610067 [09:04:13]line Контрольно-Кассовый Чек [09:04:13]line ПРОДАЖА [09:04:13]line ТРК (МРК, ГНК) : 11 [09:04:13]line Товар: 2710194210 [09:04:13]line ДТ(л)-К-5 [09:04:13]line 9.610 * 72.90 [09:04:13]line = 700.57 [09:04:13]line НДС 12% НСП 1% [09:04:13]line > о реализуемом товаре [09:04:13]line ОКРУГЛЕНИЕ: -0.57 [09:04:13]line ИТОГО: 700.00 [09:04:13]line Внесено: 700.00 [09:04:13]line СДАЧА: 0.00 [09:04:13]line НСП 1% : 6.20 [09:04:13]line НДС 12% : 74.40 [09:04:13]line Наличными: 700.00 [09:04:13]line Безнал.: 0.00 [09:04:13]line Место: АЗС № 120 "Партнер Нефть" [09:04:13]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [09:04:13]line СНО: Общий режим [09:04:13]line Чек 33 21.06.2024 09:04 [09:04:13]line Смена: 355 ФФД: 1.0 [09:04:13]line ЗНМ: 0300000164 [09:04:13]line РНМ: 0000000000092785 [09:04:13]line Версия ККМ: 001 [09:04:13]line ФМ: 0000000000875093 [09:04:13]line ФД: 104110 [09:04:13]line ФПД: 261072663542935 [09:04:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T090415&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104110&fm=261072663542935&tin=02508201610067®Number=0000000000092785&sum=70000 [09:04:14]OFD Sender: Processing packet 104110 [packets to send 17, broken 16] [09:04:14]ProducePacketName [09:04:14]name=ofd_packets/00104110 [09:04:14]OFD Sender: To server: pG, [09:04:14]CommunicateWithHost lk.salyk.kg:30040 [09:04:14]ConnectInit lk.salyk.kg [09:04:14]written 0, free lines is 4095 [09:04:14]Connected sock=10 [09:04: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 10 01 00 00 64 ED 08 01 B7 FC 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 21 00 00 00 F4 03 04 00 0F 42 75 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 AE 96 01 00 35 04 06 00 ED 71 B7 5E FC 97 0A A1 45 A8 9B 5A 49 AF [09:04: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 F3 9C 47 00 27 1B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 AE 96 01 00 F4 03 04 00 92 E8 74 66 B6 04 01 00 00 5F A0 1D A5 2A 00 3D 76 [09:04:14]CommunicateWithHost err = 0 [09:04:14]CheckOFDResponse [09:04:14]1017 (14) - 77093643461234 [09:04:14]1041 (16) - 0000000000875093 [09:04:14]1040 (4) - 104110 [09:04:14]1012 (4) - 21.06.2024 02:42 [09:04:14]1206 (1) - 0 [09:04:14]OFD Sender: Remove packet 104110 [09:04:14]ProducePacketName [09:04:14]name=ofd_packets/00104110 [09:04:14]NVStorageDeleteData [09:04:14]Write to MH i2c: 01 00 00 45 15 5A [09:04:14]Write i2c OK [09:04:14]MH_I2C_Read... [09:04:14]Read from MH i2c: 01 [09:04:14]MH_I2C_Read... [09:04:14]Read from MH i2c: 01 07 00 [09:04:14]MH_I2C_Read... [09:04:14]Read from MH i2c: 01 07 00 45 15 00 00 00 00 00 CA 0C 37 [09:04:14]RasterBufferAndPrint [09:04:14]line [09:04:14]line [09:04:14]line [09:04:14]line [09:04:14]line [09:04:14]written 0, free lines is 3280 [09:04:14]MH_Cut [09:04:14]Write to MH i2c: D1 01 00 4C 15 01 33 [09:04:14]Write i2c OK [09:04:14]MH_I2C_Read... [09:04:14]Read from MH i2c: D1 [09:04:14]MH_I2C_Read... [09:04:14]Read from MH i2c: D1 01 00 [09:04:14]MH_I2C_Read... [09:04:14]Read from MH i2c: D1 01 00 4C 15 00 32 [09:04:14]Write to MH i2c: 01 00 00 4D 15 62 [09:04:14]Write i2c OK [09:04:14]MH_I2C_Read... [09:04:15]OFD Sender: No OFD packet to send [09:04:15]*** Cut start [09:04:15]*** Partial cut [09:04:15]*** CUTSNS_PIN = 1 [09:04:15]*** CUTSNS_PIN = 0 [09:04:15]*** Brake cut motor [09:04:15]Read from MH i2c: 01 [09:04:15]MH_I2C_Read... [09:04:15]*** Stop cut motor [09:04:15]*** Cut end [09:04:15]Read from MH i2c: 01 07 00 [09:04:15]MH_I2C_Read... [09:04:15]Read from MH i2c: 01 07 00 4D 15 00 00 00 00 00 FF 0F 77 [09:04:15]process_action close_receipt done [09:04:15]requested_data is exist [09:04:15]produce_requested_data [09:04:15]requested_item fm.sn is exist - process it [09:04:15]wFMCommunicate request_size=4 [09:04:15]MH_SAM_APDU [09:04:15]CAPDU: 80 11 00 00 [09:04:15]Write to MH i2c: E2 08 00 4E 15 80 11 00 00 00 00 00 00 DD [09:04:15]Write i2c OK [09:04:15]MH_I2C_Read... [09:04:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:04:16]Read from MH i2c: E2 [09:04:16]MH_I2C_Read... [09:04:16]Read from MH i2c: E2 17 00 [09:04:16]MH_I2C_Read... [09:04:16]Read from MH i2c: E2 17 00 4E 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 30 [09:04:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [09:04:16]wFMCommunicate OK [09:04:16]requested_item fd.num is exist - process it [09:04:16]SAM_PROTO_GetFieldsCounters [09:04:16]wFMCommunicate request_size=4 [09:04:16]MH_SAM_APDU [09:04:16]CAPDU: 80 13 00 00 [09:04:16]Write to MH i2c: E2 08 00 4F 15 80 13 00 00 00 00 00 00 E0 [09:04:16]Write i2c OK [09:04:16]MH_I2C_Read... [09:04:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:04:16]Read from MH i2c: E2 [09:04:16]MH_I2C_Read... [09:04:16]Read from MH i2c: E2 62 00 [09:04:16]MH_I2C_Read... [09:04:16]Read from MH i2c: E2 62 00 4F 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 AE 96 01 00 0E 04 04 00 63 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 13 [09:04: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 AE 96 01 00 0E 04 04 00 63 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:04:16]wFMCommunicate OK [09:04:16]SAM_PROTO_GetFieldsCounters done [09:04:16]requested_item shift.num is exist - process it [09:04:16]requested_item shift.opened is exist - process it [09:04:16]req_shift_opened [09:04:16]FM_GetShiftState [09:04:16]SAM_PROTO_GetShiftState [09:04:16]wFMCommunicate request_size=4 [09:04:16]MH_SAM_APDU [09:04:16]CAPDU: 80 13 01 00 [09:04:16]Write to MH i2c: E2 08 00 50 15 80 13 01 00 00 00 00 00 E2 [09:04:16]Write i2c OK [09:04:16]MH_I2C_Read... [09:04:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:04:16]Read from MH i2c: E2 [09:04:16]MH_I2C_Read... [09:04:16]Read from MH i2c: E2 0E 00 [09:04:16]MH_I2C_Read... [09:04:16]Read from MH i2c: E2 0E 00 50 15 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 F5 [09:04:16]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [09:04:16]wFMCommunicate OK [09:04:16]SAM_PROTO_GetShiftState done [09:04:16]FM_GetShiftState done [09:04:16]req_shift_opened done [09:04:16]requested_item shift.open_date is exist - process it [09:04:16]req_shift_open_date [09:04:16]req_shift_open_date done [09:04:16]produce_requested_data done [09:04:16]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104110,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [09:04:16]process_action_free close_receipt [09:04:16]json_value_free [09:04:16]json_value_free done [09:04:16]process_json_proto returns [09:04:16]Send response to host [09:04:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104110,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [09:04:16]free response buf [09:04:16]execute_script done [09:04:16]execute_script returns [09:04:16]free content buf [09:04:16]Sock 7.Close socket [09:04:16]Sock 7.Thread stoped [09:04:20]OFD Sender: No OFD packet to send [09:04:25]OFD Sender: No OFD packet to send [09:04:30]OFD Sender: No OFD packet to send [09:04:35]OFD Sender: No OFD packet to send [09:04:40]OFD Sender: No OFD packet to send [09:04:45]OFD Sender: No OFD packet to send [09:04:50]OFD Sender: No OFD packet to send [09:04:55]OFD Sender: No OFD packet to send [09:05:00]OFD Sender: No OFD packet to send [09:05:05]OFD Sender: No OFD packet to send [09:05:10]OFD Sender: No OFD packet to send [09:05:15]OFD Sender: No OFD packet to send [09:05:20]OFD Sender: No OFD packet to send [09:05:25]OFD Sender: No OFD packet to send [09:05:30]OFD Sender: No OFD packet to send [09:05:35]OFD Sender: No OFD packet to send [09:05:40]OFD Sender: No OFD packet to send [09:05:45]OFD Sender: No OFD packet to send [09:05:50]OFD Sender: No OFD packet to send [09:05:55]OFD Sender: No OFD packet to send [09:06:00]OFD Sender: No OFD packet to send [09:06:05]OFD Sender: No OFD packet to send [09:06:10]OFD Sender: No OFD packet to send [09:06:15]OFD Sender: No OFD packet to send [09:06:20]OFD Sender: No OFD packet to send [09:06:25]OFD Sender: No OFD packet to send [09:06:30]OFD Sender: No OFD packet to send [09:06:35]OFD Sender: No OFD packet to send [09:06:40]OFD Sender: No OFD packet to send [09:06:40]accept exits with 9 [09:06:40]New connection [09:06:40]New thread 3066858852 created [09:06:40]Thread 3066715492 joined [09:06:40]Waiting for new connection... [09:06:40] Sock 9.Parse request [09:06:40]Sock 9.Check first char [09:06:40]Sock 9.First char is OK [09:06:40]request: POST /json_proto HTTP/1.0 [09:06:40]Method: POST [09:06:40]URL: /json_proto [09:06:40]Method is POST - this is cgi request [09:06:40]url: /json_proto [09:06:40]query_string will be loaded in cgi processing [09:06:40]execute_cgi json_proto POST (null) [09:06:40]execute_cgi path=json_proto method=POST [09:06:40]POST find Content-Length [09:06:40]Host: 172.17.38.133:8080 [09:06:40]Content-Length: 1157 [09:06:40]Content-Type: application/json [09:06:40] [09:06:40]POST finish read [09:06:40]Found Content-Length = 1157 [09:06:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 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)673504\u000A21.06.2024 08:43\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\u000A30095592\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:06:40]execute_script... [09:06:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 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)673504\u000A21.06.2024 08:43\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\u000A30095592\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:06:40]POST & json_proto [09:06:40]process_json_proto [09:06:40]json parsed OK: [09:06:40]protocol is kg_v1.0 [09:06:40]action value=print_text [09:06:40]process_action print_text [09:06:40]cmd_print_text [09:06:40]ExternCall_PrintAddStr [09:06:40]wPrintStart [09:06:40]Write to MH i2c: 01 00 00 51 15 66 [09:06:40]Write i2c OK [09:06:40]MH_I2C_Read... [09:06:40]Read from MH i2c: 01 [09:06:40]MH_I2C_Read... [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 51 15 00 00 00 00 00 FF 0F 7B [09:06:40]RasterBufferAndPrint [09:06:40]line *****ТОВАРНЫЙ ЧЕК***** [09:06:40]line АЗС 120 [09:06:40]line Партнер нефть [09:06:40]line 02508201610067 [09:06:40]line Кассир : Асанбаев Н. [09:06:40]line Счет N : (1)673504 [09:06:40]line 21.06.2024 08:43 [09:06:40]line ПРОДАЖА [09:06:40]line ТРК (МРК, ГНК): 32 [09:06:40]line Вид ГСМ : 2710124130 [09:06:40]line Аи-92-К-5 [09:06:40]line 20.000 x 66.40 [09:06:40]line ИТОГ: 1328.00 [09:06:40]line Тип оплаты: Талоны: ТК ГПНА Online [09:06:40]line 30095592 [09:06:40]line ______________________ [09:06:40]line (подпись) [09:06:40]written 0, free lines is 4095 [09:06:40]Write to MH i2c: 01 00 00 65 15 7A [09:06:40]Write i2c OK [09:06:40]MH_I2C_Read... [09:06:40]Read from MH i2c: 01 [09:06:40]MH_I2C_Read... [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 65 15 00 00 00 00 00 10 0E 9F [09:06:40]RasterBufferAndPrint [09:06:40]line [09:06:40]line [09:06:40]line [09:06:40]line [09:06:40]line [09:06:41]written 0, free lines is 3602 [09:06:41]MH_Cut [09:06:41]Write to MH i2c: D1 01 00 6C 15 01 53 [09:06:41]Write i2c OK [09:06:41]MH_I2C_Read... [09:06:41]Read from MH i2c: D1 [09:06:41]MH_I2C_Read... [09:06:41]Read from MH i2c: D1 01 00 [09:06:41]MH_I2C_Read... [09:06:41]Read from MH i2c: D1 01 00 6C 15 00 52 [09:06:41]Write to MH i2c: 01 00 00 6D 15 82 [09:06:41]Write i2c OK [09:06:41]MH_I2C_Read... [09:06:41]*** Cut start [09:06:41]*** Partial cut [09:06:41]*** CUTSNS_PIN = 1 [09:06:41]*** CUTSNS_PIN = 0 [09:06:41]*** Brake cut motor [09:06:42]Read from MH i2c: 01 [09:06:42]MH_I2C_Read... [09:06:42]*** Stop cut motor [09:06:42]*** Cut end [09:06:42]Read from MH i2c: 01 07 00 [09:06:42]MH_I2C_Read... [09:06:42]Read from MH i2c: 01 07 00 6D 15 00 00 00 00 00 FF 0F 97 [09:06:42]process_action print_text done [09:06:42]requested_data is exist [09:06:42]produce_requested_data [09:06:42]requested_item fm.sn is exist - process it [09:06:42]wFMCommunicate request_size=4 [09:06:42]MH_SAM_APDU [09:06:42]CAPDU: 80 11 00 00 [09:06:42]Write to MH i2c: E2 08 00 6E 15 80 11 00 00 00 00 00 00 FD [09:06:42]Write i2c OK [09:06:42]MH_I2C_Read... [09:06:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:06:42]Read from MH i2c: E2 [09:06:42]MH_I2C_Read... [09:06:42]Read from MH i2c: E2 17 00 [09:06:42]MH_I2C_Read... [09:06:42]Read from MH i2c: E2 17 00 6E 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 50 [09:06: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:06:42]wFMCommunicate OK [09:06:42]requested_item fd.num is exist - process it [09:06:42]SAM_PROTO_GetFieldsCounters [09:06:42]wFMCommunicate request_size=4 [09:06:42]MH_SAM_APDU [09:06:42]CAPDU: 80 13 00 00 [09:06:42]Write to MH i2c: E2 08 00 6F 15 80 13 00 00 00 00 00 00 00 [09:06:42]Write i2c OK [09:06:42]MH_I2C_Read... [09:06:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:06:42]Read from MH i2c: E2 [09:06:42]MH_I2C_Read... [09:06:42]Read from MH i2c: E2 62 00 [09:06:42]MH_I2C_Read... [09:06:42]Read from MH i2c: E2 62 00 6F 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 AE 96 01 00 0E 04 04 00 63 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 33 [09:06:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 96 01 00 0E 04 04 00 63 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:06:42]wFMCommunicate OK [09:06:42]SAM_PROTO_GetFieldsCounters done [09:06:42]requested_item shift.num is exist - process it [09:06:42]requested_item shift.opened is exist - process it [09:06:42]req_shift_opened [09:06:42]FM_GetShiftState [09:06:42]SAM_PROTO_GetShiftState [09:06:42]wFMCommunicate request_size=4 [09:06:42]MH_SAM_APDU [09:06:42]CAPDU: 80 13 01 00 [09:06:42]Write to MH i2c: E2 08 00 70 15 80 13 01 00 00 00 00 00 02 [09:06:42]Write i2c OK [09:06:42]MH_I2C_Read... [09:06:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:06:42]Read from MH i2c: E2 [09:06:42]MH_I2C_Read... [09:06:42]Read from MH i2c: E2 0E 00 [09:06:42]MH_I2C_Read... [09:06:42]Read from MH i2c: E2 0E 00 70 15 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 15 [09:06:42]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [09:06:42]wFMCommunicate OK [09:06:42]SAM_PROTO_GetShiftState done [09:06:42]FM_GetShiftState done [09:06:42]req_shift_opened done [09:06:42]requested_item shift.open_date is exist - process it [09:06:42]req_shift_open_date [09:06:42]req_shift_open_date done [09:06:42]produce_requested_data done [09:06:42]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104110,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [09:06:42]process_action_free print_text [09:06:42]json_value_free [09:06:42]json_value_free done [09:06:42]process_json_proto returns [09:06:42]Send response to host [09:06:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104110,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [09:06:42]free response buf [09:06:42]execute_script done [09:06:42]execute_script returns [09:06:42]free content buf [09:06:42]Sock 9.Close socket [09:06:42]Sock 9.Thread stoped [09:06:45]OFD Sender: No OFD packet to send [09:06:50]OFD Sender: No OFD packet to send [09:06:55]OFD Sender: No OFD packet to send [09:07:00]OFD Sender: No OFD packet to send [09:07:05]OFD Sender: No OFD packet to send [09:07:10]OFD Sender: No OFD packet to send [09:07:15]OFD Sender: No OFD packet to send [09:07:20]OFD Sender: No OFD packet to send [09:07:25]OFD Sender: No OFD packet to send [09:07:30]OFD Sender: No OFD packet to send [09:07:35]OFD Sender: No OFD packet to send [09:07: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:55]OFD Sender: No OFD packet to send [09:10:00]OFD Sender: No OFD packet to send [09:10:05]OFD Sender: No OFD packet to send [09:10:10]OFD Sender: No OFD packet to send [09:10:15]OFD Sender: No OFD packet to send [09:10:20]OFD Sender: No OFD packet to send [09:10:25]OFD Sender: No OFD packet to send [09:10:30]OFD Sender: No OFD packet to send [09:10:35]OFD Sender: No OFD packet to send [09:10:40]OFD Sender: No OFD packet to send [09:10:45]OFD Sender: No OFD packet to send [09:10:50]OFD Sender: No OFD packet to send [09:10:55]OFD Sender: No OFD packet to send [09:11:00]OFD Sender: No OFD packet to send [09:11:05]OFD Sender: No OFD packet to send [09:11:10]OFD Sender: No OFD packet to send [09:11:15]OFD Sender: No OFD packet to send [09:11:20]OFD Sender: No OFD packet to send [09:11:25]OFD Sender: No OFD packet to send [09:11:30]OFD Sender: No OFD packet to send [09:11:35]OFD Sender: No OFD packet to send [09:11:40]OFD Sender: No OFD packet to send [09:11:45]OFD Sender: No OFD packet to send [09:11:50]OFD Sender: No OFD packet to send [09:11:55]OFD Sender: No OFD packet to send [09:12:00]OFD Sender: No OFD packet to send [09:12:05]OFD Sender: No OFD packet to send [09:12:10]OFD Sender: No OFD packet to send [09:12:15]OFD Sender: No OFD packet to send [09:12:20]OFD Sender: No OFD packet to send [09:12:25]OFD Sender: No OFD packet to send [09:12:28]accept exits with 7 [09:12:28]New connection [09:12:28]New thread 3066715492 created [09:12:28]Thread 3066858852 joined [09:12:28]Waiting for new connection... [09:12:28] Sock 7.Parse request [09:12:28]Sock 7.Check first char [09:12:28]Sock 7.First char is OK [09:12:28]request: POST /json_proto HTTP/1.0 [09:12:28]Method: POST [09:12:28]URL: /json_proto [09:12:28]Method is POST - this is cgi request [09:12:28]url: /json_proto [09:12:28]query_string will be loaded in cgi processing [09:12:28]execute_cgi json_proto POST (null) [09:12:28]execute_cgi path=json_proto method=POST [09:12:28]POST find Content-Length [09:12:28]Host: 172.17.38.133:8080 [09:12:28]Content-Length: 819 [09:12:28]Content-Type: application/json [09:12:28] [09:12:28]POST finish read [09:12:28]Found Content-Length = 819 [09:12:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673505", "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" ] } } [09:12:28]execute_script... [09:12: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)673505", "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" ] } } [09:12:28]POST & json_proto [09:12:28]process_json_proto [09:12:28]json parsed OK: [09:12:28]protocol is kg_v1.0 [09:12:28]action value=close_receipt [09:12:28]process_action close_receipt [09:12:28]cmd_close_receipt [09:12:28]MH_GetDate [09:12:28]Write to MH i2c: F0 00 00 71 15 75 [09:12:28]Write i2c OK [09:12:28]MH_I2C_Read... [09:12:28]Read from MH i2c: F0 [09:12:28]MH_I2C_Read... [09:12:28]Read from MH i2c: F0 09 00 [09:12:28]MH_I2C_Read... [09:12:28]Read from MH i2c: F0 09 00 71 15 00 00 44 75 66 BD 8F 7C 64 C9 [09:12:28]GetLastDocTimeStamp 1718960655 [09:12:28]current date 1718961152 [09:12:28]FM_GetShiftState [09:12:28]SAM_PROTO_GetShiftState [09:12:28]wFMCommunicate request_size=4 [09:12:28]MH_SAM_APDU [09:12:28]CAPDU: 80 13 01 00 [09:12:28]Write to MH i2c: E2 08 00 72 15 80 13 01 00 00 00 00 00 04 [09:12:28]Write i2c OK [09:12:28]MH_I2C_Read... [09:12:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:12:28]Read from MH i2c: E2 [09:12:28]MH_I2C_Read... [09:12:28]Read from MH i2c: E2 0E 00 [09:12:28]MH_I2C_Read... [09:12:28]Read from MH i2c: E2 0E 00 72 15 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 17 [09:12:28]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [09:12:28]wFMCommunicate OK [09:12:28]SAM_PROTO_GetShiftState done [09:12:28]FM_GetShiftState done [09:12:28]opened in 1718929509 [09:12:28]opened+sec_in_day 1719015909 [09:12:28]quantity*price = 100060 [09:12:28]sum+1 = 100062 [09:12:28]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 СНО: Общий режим Чек 34 21.06.2024 09:12 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875093 ФД: 104111 ФПД: 113151083604543 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T091232&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104111&fm=113151083604543&tin=02508201610067®Number=0000000000092785&sum=100061 [09:12:29]StoreToDocumentArchive [09:12:29]shift 355 fd 104111 [09:12:29]save to /storage/0355/doc_00104111 [09:12:29]save last doc name /storage/0355/doc_00104111 to /storage/kkm_last_doc_name [09:12:29]save OK [09:12:29]Clear old archive folders... [09:12:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:12:29]tlvbuf is 01127950 [09:12:29]SAM_PROTO_ClearQueue [09:12:29]wFMCommunicate request_size=4 [09:12:29]MH_SAM_APDU [09:12:29]CAPDU: 80 09 00 00 [09:12:29]Write to MH i2c: E2 08 00 7F 15 80 09 00 00 00 00 00 00 06 [09:12:29]Write i2c OK [09:12:29]MH_I2C_Read... [09:12:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:12:29]Read from MH i2c: E2 [09:12:29]MH_I2C_Read... [09:12:29]Read from MH i2c: E2 03 00 [09:12:29]MH_I2C_Read... [09:12:29]Read from MH i2c: E2 03 00 7F 15 00 90 00 08 [09:12:29]RAPDU: 90 00 [09:12:29]wFMCommunicate OK [09:12:29]SAM_PROTO_ClearQueue done [09:12:29]KKMCreateOFDPacket [09:12:29]OFDProtocolAddRootSTLVToBuf [09:12:29]FM_MakeSignedData [09:12:29]FM_MakeSignedData [09:12:29]SAM_PROTO_SignData [09:12:29]wFMCommunicate request_size=4 [09:12:29]MH_SAM_APDU [09:12:29]CAPDU: 80 0D 01 02 [09:12:29]Write to MH i2c: E2 08 00 80 15 80 0D 01 02 00 00 00 00 0E [09:12:29]Write i2c OK [09:12:29]MH_I2C_Read... [09:12:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:12:30]Read from MH i2c: E2 [09:12:30]MH_I2C_Read... [09:12:30]Read from MH i2c: E2 03 00 [09:12:30]MH_I2C_Read... [09:12:30]Read from MH i2c: E2 03 00 80 15 00 90 00 09 [09:12:30]RAPDU: 90 00 [09:12:30]wFMCommunicate OK [09:12:30]wFMCommunicate request_size=255 [09:12:30]MH_SAM_APDU [09:12: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 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 22 00 00 00 F4 03 04 00 00 44 75 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 AF 96 01 00 35 04 06 00 66 [09:12:30]Write to MH i2c: E2 02 01 81 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 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 22 00 00 00 F4 03 04 00 00 44 75 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 AF 96 01 00 35 04 06 00 66 00 00 D4 [09:12:30]Write i2c OK [09:12:30]MH_I2C_Read... [09:12:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:12:30]Read from MH i2c: E2 [09:12:30]MH_I2C_Read... [09:12:30]Read from MH i2c: E2 03 00 [09:12:30]MH_I2C_Read... [09:12:30]Read from MH i2c: E2 03 00 81 15 00 90 00 0A [09:12:30]RAPDU: 90 00 [09:12:30]wFMCommunicate OK [09:12:30]wFMCommunicate request_size=10 [09:12:30]MH_SAM_APDU [09:12:30]CAPDU: 80 0D 02 02 05 E9 0A 24 EA 3F [09:12:30]Write to MH i2c: E2 0D 00 82 15 80 0D 02 02 05 00 E9 0A 24 EA 3F 00 00 5B [09:12:30]Write i2c OK [09:12:30]MH_I2C_Read... [09:12:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:12:30]Read from MH i2c: E2 [09:12:30]MH_I2C_Read... [09:12:30]Read from MH i2c: E2 03 00 [09:12:30]MH_I2C_Read... [09:12:30]Read from MH i2c: E2 03 00 82 15 00 90 00 0B [09:12:30]RAPDU: 90 00 [09:12:30]wFMCommunicate OK [09:12:30]wFMCommunicate request_size=4 [09:12:30]MH_SAM_APDU [09:12:30]CAPDU: 80 0D 03 02 [09:12:30]Write to MH i2c: E2 08 00 83 15 80 0D 03 02 00 00 00 00 13 [09:12:30]Write i2c OK [09:12:30]MH_I2C_Read... [09:12:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:12:30]Read from MH i2c: E2 [09:12:30]MH_I2C_Read... [09:12:30]Read from MH i2c: E2 0B 00 [09:12:30]MH_I2C_Read... [09:12:30]Read from MH i2c: E2 0B 00 83 15 00 CB CD F3 A5 F4 B7 11 83 90 00 83 [09:12:30]RAPDU: CB CD F3 A5 F4 B7 11 83 90 00 [09:12:30]wFMCommunicate OK [09:12:30]SAM_PROTO_SignData done [09:12:30]FM_MakeSignedData done [09:12:30]CreateOFDProtocolMessage [09:12:30]wFMCommunicate request_size=4 [09:12:30]MH_SAM_APDU [09:12:30]CAPDU: 80 11 00 00 [09:12:30]Write to MH i2c: E2 08 00 84 15 80 11 00 00 00 00 00 00 13 [09:12:30]Write i2c OK [09:12:30]MH_I2C_Read... [09:12:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:12:30]Read from MH i2c: E2 [09:12:30]MH_I2C_Read... [09:12:30]Read from MH i2c: E2 17 00 [09:12:30]MH_I2C_Read... [09:12:30]Read from MH i2c: E2 17 00 84 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 66 [09: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 [09:12:30]wFMCommunicate OK [09:12:30]CreateOFDProtocolMessage done [09:12:30]OFDSenderStorePacket 104111 [09:12:30]StoreOFDPacket docnum=104111 [09:12: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 79 3B 07 01 C2 DC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 22 00 00 00 F4 03 04 00 00 44 75 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 AF 96 01 00 35 04 06 00 66 E9 0A 24 EA 3F CB CD F3 A5 F4 B7 11 83 [09:12:30]CheckFolder [09:12:30]dirname=/storage/ofd_packets [09:12:30]CheckFolder done [09:12:30]ProducePacketName [09:12:30]name=ofd_packets/00104111 [09:12:30]NVStorageSaveData ofd_packets/00104111 [09:12:30]File name is /storage/ofd_packets/00104111 [09:12:30]Write 301 bytes [09:12:30]NVStorageSaveData done [09:12:30]OFDSenderStorePacket done [09:12:30]KKMCreateOFDPacket done [09:12:30]NVStorageSaveData kkm_last_timestamp [09:12:30]File name is /storage/kkm_last_timestamp [09:12:30]Write 4 bytes [09:12:30]NVStorageSaveData done [09:12:30]ExternCall_PrintAddStr [09:12:30]wPrintStart [09:12:30]Write to MH i2c: 01 00 00 85 15 9A [09:12:30]Write i2c OK [09:12:30]MH_I2C_Read... [09:12:30]Read from MH i2c: 01 [09:12:30]MH_I2C_Read... [09:12:30]Read from MH i2c: 01 07 00 [09:12:30]MH_I2C_Read... [09:12:30]Read from MH i2c: 01 07 00 85 15 00 00 00 00 00 FF 0F AF [09:12:30]RasterBufferAndPrint [09:12:30]line Счет N : (1)673505 [09:12:30]line ИНН: 02508201610067 [09:12:30]line Контрольно-Кассовый Чек [09:12:30]line ПРОДАЖА [09:12:30]line ТРК (МРК, ГНК) : 41 [09:12:30]line Товар: 2710124500 [09:12:30]line Аи-95-К-5 [09:12:30]line 13.540 * 73.90 [09:12:30]line = 1000.61 [09:12:30]line НДС 12% НСП 1% [09:12:30]line > о реализуемом товаре [09:12:30]line ИТОГО: 1000.61 [09:12:30]line НСП 1% : 8.85 [09:12:30]line НДС 12% : 106.26 [09:12:30]line Наличными: 0.00 [09:12:30]line Безнал.: 1000.61 [09:12:30]line Место: АЗС № 120 "Партнер Нефть" [09:12:30]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [09:12:30]line СНО: Общий режим [09:12:30]line Чек 34 21.06.2024 09:12 [09:12:30]line Смена: 355 ФФД: 1.0 [09:12:30]line ЗНМ: 0300000164 [09:12:30]line РНМ: 0000000000092785 [09:12:30]line Версия ККМ: 001 [09:12:30]line Платежная система: Бакай Банк [09:12:30]line ФМ: 0000000000875093 [09:12:30]line ФД: 104111 [09:12:30]line ФПД: 113151083604543 [09:12:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T091232&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104111&fm=113151083604543&tin=02508201610067®Number=0000000000092785&sum=100061 [09:12:30]OFD Sender: Processing packet 104111 [packets to send 17, broken 16] [09:12:30]ProducePacketName [09:12:30]name=ofd_packets/00104111 [09:12:30]OFD Sender: To server: pG, [09:12:30]CommunicateWithHost lk.salyk.kg:30040 [09:12:30]ConnectInit lk.salyk.kg [09:12:30]written 0, free lines is 4095 [09:12:30]Connected sock=10 [09:12: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 79 3B 07 01 C2 DC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 22 00 00 00 F4 03 04 00 00 44 75 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 AF 96 01 00 35 04 06 00 66 E9 0A 24 EA 3F CB CD F3 A5 F4 B7 11 83 [09:12: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 62 B5 47 00 D5 1A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 AF 96 01 00 F4 03 04 00 83 EA 74 66 B6 04 01 00 00 FB CF 56 3C EF 4C F9 74 [09:12:31]CommunicateWithHost err = 0 [09:12:31]CheckOFDResponse [09:12:31]1017 (14) - 77093643461234 [09:12:31]1041 (16) - 0000000000875093 [09:12:31]1040 (4) - 104111 [09:12:31]1012 (4) - 21.06.2024 02:50 [09:12:31]1206 (1) - 0 [09:12:31]OFD Sender: Remove packet 104111 [09:12:31]ProducePacketName [09:12:31]name=ofd_packets/00104111 [09:12:31]NVStorageDeleteData [09:12:31]Write to MH i2c: 01 00 00 AF 15 C4 [09:12:31]Write i2c OK [09:12:31]MH_I2C_Read... [09:12:31]Read from MH i2c: 01 [09:12:31]MH_I2C_Read... [09:12:31]Read from MH i2c: 01 07 00 [09:12:31]MH_I2C_Read... [09:12:31]Read from MH i2c: 01 07 00 AF 15 00 00 00 00 00 DE 0C B5 [09:12:31]RasterBufferAndPrint [09:12:31]line [09:12:31]line [09:12:31]line [09:12:31]line [09:12:31]line [09:12:31]written 0, free lines is 3300 [09:12:31]MH_Cut [09:12:31]Write to MH i2c: D1 01 00 B6 15 01 9D [09:12:31]Write i2c OK [09:12:31]MH_I2C_Read... [09:12:31]Read from MH i2c: D1 [09:12:31]MH_I2C_Read... [09:12:31]Read from MH i2c: D1 01 00 [09:12:31]MH_I2C_Read... [09:12:31]Read from MH i2c: D1 01 00 B6 15 00 9C [09:12:31]Write to MH i2c: 01 00 00 B7 15 CC [09:12:31]Write i2c OK [09:12:31]MH_I2C_Read... [09:12:31]OFD Sender: No OFD packet to send [09:12:31]*** Cut start [09:12:31]*** Partial cut [09:12:31]*** CUTSNS_PIN = 1 [09:12:32]*** CUTSNS_PIN = 0 [09:12:32]*** Brake cut motor [09:12:32]Read from MH i2c: 01 [09:12:32]MH_I2C_Read... [09:12:32]*** Stop cut motor [09:12:32]*** Cut end [09:12:32]Read from MH i2c: 01 07 00 [09:12:32]MH_I2C_Read... [09:12:32]Read from MH i2c: 01 07 00 B7 15 00 00 00 00 00 FF 0F E1 [09:12:32]process_action close_receipt done [09:12:32]requested_data is exist [09:12:32]produce_requested_data [09:12:32]requested_item fm.sn is exist - process it [09:12:32]wFMCommunicate request_size=4 [09:12:32]MH_SAM_APDU [09:12:32]CAPDU: 80 11 00 00 [09:12:32]Write to MH i2c: E2 08 00 B8 15 80 11 00 00 00 00 00 00 47 [09:12:32]Write i2c OK [09:12:32]MH_I2C_Read... [09:12:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:12:32]Read from MH i2c: E2 [09:12:32]MH_I2C_Read... [09:12:32]Read from MH i2c: E2 17 00 [09:12:32]MH_I2C_Read... [09:12:32]Read from MH i2c: E2 17 00 B8 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 9A [09:12:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [09:12:32]wFMCommunicate OK [09:12:32]requested_item fd.num is exist - process it [09:12:32]SAM_PROTO_GetFieldsCounters [09:12:32]wFMCommunicate request_size=4 [09:12:32]MH_SAM_APDU [09:12:32]CAPDU: 80 13 00 00 [09:12:32]Write to MH i2c: E2 08 00 B9 15 80 13 00 00 00 00 00 00 4A [09:12:32]Write i2c OK [09:12:32]MH_I2C_Read... [09:12:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:12:32]Read from MH i2c: E2 [09:12:32]MH_I2C_Read... [09:12:32]Read from MH i2c: E2 62 00 [09:12:32]MH_I2C_Read... [09:12:32]Read from MH i2c: E2 62 00 B9 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 AF 96 01 00 0E 04 04 00 63 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 81 [09:12: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 AF 96 01 00 0E 04 04 00 63 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:12:32]wFMCommunicate OK [09:12:32]SAM_PROTO_GetFieldsCounters done [09:12:32]requested_item shift.num is exist - process it [09:12:32]requested_item shift.opened is exist - process it [09:12:32]req_shift_opened [09:12:32]FM_GetShiftState [09:12:32]SAM_PROTO_GetShiftState [09:12:32]wFMCommunicate request_size=4 [09:12:32]MH_SAM_APDU [09:12:32]CAPDU: 80 13 01 00 [09:12:32]Write to MH i2c: E2 08 00 BA 15 80 13 01 00 00 00 00 00 4C [09:12:32]Write i2c OK [09:12:32]MH_I2C_Read... [09:12:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:12:32]Read from MH i2c: E2 [09:12:32]MH_I2C_Read... [09:12:32]Read from MH i2c: E2 0E 00 [09:12:32]MH_I2C_Read... [09:12:32]Read from MH i2c: E2 0E 00 BA 15 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 5F [09:12:32]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [09:12:32]wFMCommunicate OK [09:12:32]SAM_PROTO_GetShiftState done [09:12:32]FM_GetShiftState done [09:12:32]req_shift_opened done [09:12:32]requested_item shift.open_date is exist - process it [09:12:32]req_shift_open_date [09:12:32]req_shift_open_date done [09:12:32]produce_requested_data done [09:12:32]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104111,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [09:12:32]process_action_free close_receipt [09:12:32]json_value_free [09:12:32]json_value_free done [09:12:32]process_json_proto returns [09:12:32]Send response to host [09:12:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104111,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [09:12:32]free response buf [09:12:32]execute_script done [09:12:32]execute_script returns [09:12:32]free content buf [09:12:32]Sock 7.Close socket [09:12:32]Sock 7.Thread stoped [09:12:36]OFD Sender: No OFD packet to send [09:12:41]OFD Sender: No OFD packet to send [09:12:46]OFD Sender: No OFD packet to send [09:12:51]OFD Sender: No OFD packet to send [09:12:56]OFD Sender: No OFD packet to send [09:13:01]OFD Sender: No OFD packet to send [09:13:06]OFD Sender: No OFD packet to send [09:13:11]OFD Sender: No OFD packet to send [09:13:16]OFD Sender: No OFD packet to send [09:13:21]OFD Sender: No OFD packet to send [09:13:26]OFD Sender: No OFD packet to send [09:13:31]OFD Sender: No OFD packet to send [09:13:36]OFD Sender: No OFD packet to send [09:13:41]OFD Sender: No OFD packet to send [09:13:46]OFD Sender: No OFD packet to send [09:13:51]OFD Sender: No OFD packet to send [09:13:56]OFD Sender: No OFD packet to send [09:14:01]OFD Sender: No OFD packet to send [09:14:06]OFD Sender: No OFD packet to send [09:14:11]OFD Sender: No OFD packet to send [09:14:16]OFD Sender: No OFD packet to send [09:14:21]OFD Sender: No OFD packet to send [09:14:26]OFD Sender: No OFD packet to send [09:14:31]OFD Sender: No OFD packet to send [09:14:36]OFD Sender: No OFD packet to send [09:14:41]OFD Sender: No OFD packet to send [09:14:46]OFD Sender: No OFD packet to send [09:14:51]OFD Sender: No OFD packet to send [09:14:56]OFD Sender: No OFD packet to send [09:15:01]OFD Sender: No OFD packet to send [09:15:06]OFD Sender: No OFD packet to send [09:15:11]OFD Sender: No OFD packet to send [09:15:16]OFD Sender: No OFD packet to send [09:15:21]OFD Sender: No OFD packet to send [09:15:26]OFD Sender: No OFD packet to send [09:15:31]OFD Sender: No OFD packet to send [09:15:36]OFD Sender: No OFD packet to send [09:15:41]OFD Sender: No OFD packet to send [09:15:46]OFD Sender: No OFD packet to send [09:15:51]OFD Sender: No OFD packet to send [09:15:56]OFD Sender: No OFD packet to send [09:16:01]OFD Sender: No OFD packet to send [09:16:06]OFD Sender: No OFD packet to send [09:16:11]OFD Sender: No OFD packet to send [09:16:16]OFD Sender: No OFD packet to send [09:16:21]OFD Sender: No OFD packet to send [09:16:26]OFD Sender: No OFD packet to send [09:16:31]OFD Sender: No OFD packet to send [09:16:36]OFD Sender: No OFD packet to send [09:16:41]OFD Sender: No OFD packet to send [09:16:46]OFD Sender: No OFD packet to send [09:16:51]OFD Sender: No OFD packet to send [09:16:56]OFD Sender: No OFD packet to send [09:17:01]OFD Sender: No OFD packet to send [09:17:06]OFD Sender: No OFD packet to send [09:17:11]OFD Sender: No OFD packet to send [09:17:16]OFD Sender: No OFD packet to send [09:17:21]OFD Sender: No OFD packet to send [09:17:26]OFD Sender: No OFD packet to send [09:17:31]OFD Sender: No OFD packet to send [09:17:36]OFD Sender: No OFD packet to send [09:17:37]accept exits with 9 [09:17:37]New connection [09:17:37]New thread 3066858852 created [09:17:37]Thread 3066715492 joined [09:17:37]Waiting for new connection... [09:17:37] Sock 9.Parse request [09:17:37]Sock 9.Check first char [09:17:37]Sock 9.First char is OK [09:17:37]request: POST /json_proto HTTP/1.0 [09:17:37]Method: POST [09:17:37]URL: /json_proto [09:17:37]Method is POST - this is cgi request [09:17:37]url: /json_proto [09:17:37]query_string will be loaded in cgi processing [09:17:37]execute_cgi json_proto POST (null) [09:17:37]execute_cgi path=json_proto method=POST [09:17:37]POST find Content-Length [09:17:37]Host: 172.17.38.133:8080 [09:17:37]Content-Length: 1157 [09:17:37]Content-Type: application/json [09:17:37] [09:17:37]POST finish read [09:17:37]Found Content-Length = 1157 [09:17: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 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)673506\u000A21.06.2024 08:54\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\u000A30085544\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:17:37]execute_script... [09:17: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 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)673506\u000A21.06.2024 08:54\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\u000A30085544\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:17:37]POST & json_proto [09:17:37]process_json_proto [09:17:37]json parsed OK: [09:17:37]protocol is kg_v1.0 [09:17:37]action value=print_text [09:17:37]process_action print_text [09:17:37]cmd_print_text [09:17:37]ExternCall_PrintAddStr [09:17:37]wPrintStart [09:17:37]Write to MH i2c: 01 00 00 BB 15 D0 [09:17:37]Write i2c OK [09:17:37]MH_I2C_Read... [09:17:37]Read from MH i2c: 01 [09:17:37]MH_I2C_Read... [09:17:37]Read from MH i2c: 01 07 00 [09:17:37]MH_I2C_Read... [09:17:37]Read from MH i2c: 01 07 00 BB 15 00 00 00 00 00 FF 0F E5 [09:17:37]RasterBufferAndPrint [09:17:37]line *****ТОВАРНЫЙ ЧЕК***** [09:17:37]line АЗС 120 [09:17:37]line Партнер нефть [09:17:37]line 02508201610067 [09:17:37]line Кассир : Асанбаев Н. [09:17:37]line Счет N : (1)673506 [09:17:37]line 21.06.2024 08:54 [09:17:37]line ПРОДАЖА [09:17:37]line ТРК (МРК, ГНК): 31 [09:17:37]line Вид ГСМ : 2710124500 [09:17:37]line Аи-95-К-5 [09:17:37]line 50.000 x 73.90 [09:17:37]line ИТОГ: 3695.00 [09:17:37]line Тип оплаты: Талоны: ТК ГПНА Online [09:17:37]line 30085544 [09:17:37]line ______________________ [09:17:37]line (подпись) [09:17:37]written 0, free lines is 4095 [09:17:38]Write to MH i2c: 01 00 00 CF 15 E4 [09:17:38]Write i2c OK [09:17:38]MH_I2C_Read... [09:17:38]Read from MH i2c: 01 [09:17:38]MH_I2C_Read... [09:17:38]Read from MH i2c: 01 07 00 [09:17:38]MH_I2C_Read... [09:17:38]Read from MH i2c: 01 07 00 CF 15 00 00 00 00 00 10 0E 09 [09:17:38]RasterBufferAndPrint [09:17:38]line [09:17:38]line [09:17:38]line [09:17:38]line [09:17:38]line [09:17:38]written 0, free lines is 3601 [09:17:38]MH_Cut [09:17:38]Write to MH i2c: D1 01 00 D6 15 01 BD [09:17:38]Write i2c OK [09:17:38]MH_I2C_Read... [09:17:38]Read from MH i2c: D1 [09:17:38]MH_I2C_Read... [09:17:38]Read from MH i2c: D1 01 00 [09:17:38]MH_I2C_Read... [09:17:38]Read from MH i2c: D1 01 00 D6 15 00 BC [09:17:38]Write to MH i2c: 01 00 00 D7 15 EC [09:17:38]Write i2c OK [09:17:38]MH_I2C_Read... [09:17:38]*** Cut start [09:17:38]*** Partial cut [09:17:38]*** CUTSNS_PIN = 1 [09:17:38]*** CUTSNS_PIN = 0 [09:17:38]*** Brake cut motor [09:17:39]Read from MH i2c: 01 [09:17:39]MH_I2C_Read... [09:17:39]Read from MH i2c: 01 07 00 [09:17:39]MH_I2C_Read... [09:17:39]*** Stop cut motor [09:17:39]*** Cut end [09:17:39]Read from MH i2c: 01 07 00 D7 15 00 00 00 00 00 FF 0F 01 [09:17:39]process_action print_text done [09:17:39]requested_data is exist [09:17:39]produce_requested_data [09:17:39]requested_item fm.sn is exist - process it [09:17:39]wFMCommunicate request_size=4 [09:17:39]MH_SAM_APDU [09:17:39]CAPDU: 80 11 00 00 [09:17:39]Write to MH i2c: E2 08 00 D8 15 80 11 00 00 00 00 00 00 67 [09:17:39]Write i2c OK [09:17:39]MH_I2C_Read... [09:17:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:17:39]Read from MH i2c: E2 [09:17:39]MH_I2C_Read... [09:17:39]Read from MH i2c: E2 17 00 [09:17:39]MH_I2C_Read... [09:17:39]Read from MH i2c: E2 17 00 D8 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 BA [09:17: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:17:39]wFMCommunicate OK [09:17:39]requested_item fd.num is exist - process it [09:17:39]SAM_PROTO_GetFieldsCounters [09:17:39]wFMCommunicate request_size=4 [09:17:39]MH_SAM_APDU [09:17:39]CAPDU: 80 13 00 00 [09:17:39]Write to MH i2c: E2 08 00 D9 15 80 13 00 00 00 00 00 00 6A [09:17:39]Write i2c OK [09:17:39]MH_I2C_Read... [09:17:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:17:39]Read from MH i2c: E2 [09:17:39]MH_I2C_Read... [09:17:39]Read from MH i2c: E2 62 00 [09:17:39]MH_I2C_Read... [09:17:39]Read from MH i2c: E2 62 00 D9 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 AF 96 01 00 0E 04 04 00 63 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 A1 [09:17:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 96 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:17:39]wFMCommunicate OK [09:17:39]SAM_PROTO_GetFieldsCounters done [09:17:39]requested_item shift.num is exist - process it [09:17:39]requested_item shift.opened is exist - process it [09:17:39]req_shift_opened [09:17:39]FM_GetShiftState [09:17:39]SAM_PROTO_GetShiftState [09:17:39]wFMCommunicate request_size=4 [09:17:39]MH_SAM_APDU [09:17:39]CAPDU: 80 13 01 00 [09:17:39]Write to MH i2c: E2 08 00 DA 15 80 13 01 00 00 00 00 00 6C [09:17:39]Write i2c OK [09:17:39]MH_I2C_Read... [09:17:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:17:39]Read from MH i2c: E2 [09:17:39]MH_I2C_Read... [09:17:39]Read from MH i2c: E2 0E 00 [09:17:39]MH_I2C_Read... [09:17:39]Read from MH i2c: E2 0E 00 DA 15 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 7F [09:17:39]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [09:17:39]wFMCommunicate OK [09:17:39]SAM_PROTO_GetShiftState done [09:17:39]FM_GetShiftState done [09:17:39]req_shift_opened done [09:17:39]requested_item shift.open_date is exist - process it [09:17:39]req_shift_open_date [09:17:39]req_shift_open_date done [09:17:39]produce_requested_data done [09:17:39]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104111,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [09:17:39]process_action_free print_text [09:17:39]json_value_free [09:17:39]json_value_free done [09:17:39]process_json_proto returns [09:17:39]Send response to host [09:17:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104111,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [09:17:39]free response buf [09:17:39]execute_script done [09:17:39]execute_script returns [09:17:39]free content buf [09:17:39]Sock 9.Close socket [09:17:39]Sock 9.Thread stoped [09:17:41]OFD Sender: No OFD packet to send [09:17:46]OFD Sender: No OFD packet to send [09:17:51]OFD Sender: No OFD packet to send [09:17:56]OFD Sender: No OFD packet to send [09:18:01]OFD Sender: No OFD packet to send [09:18:06]OFD Sender: No OFD packet to send [09:18:11]OFD Sender: No OFD packet to send [09:18:16]OFD Sender: No OFD packet to send [09:18:21]OFD Sender: No OFD packet to send [09:18:26]OFD Sender: No OFD packet to send [09:18:31]OFD Sender: No OFD packet to send [09:18:36]OFD Sender: No OFD packet to send [09:18:41]OFD Sender: No OFD packet to send [09:18:46]OFD Sender: No OFD packet to send [09:18:51]OFD Sender: No OFD packet to send [09:18:56]OFD Sender: No OFD packet to send [09:19:02]OFD Sender: No OFD packet to send [09:19:07]OFD Sender: No OFD packet to send [09:19:12]OFD Sender: No OFD packet to send [09:19:17]OFD Sender: No OFD packet to send [09:19:22]OFD Sender: No OFD packet to send [09:19:27]OFD Sender: No OFD packet to send [09:19:32]OFD Sender: No OFD packet to send [09:19:37]OFD Sender: No OFD packet to send [09:19:42]OFD Sender: No OFD packet to send [09:19:47]OFD Sender: No OFD packet to send [09:19:52]OFD Sender: No OFD packet to send [09:19:57]OFD Sender: No OFD packet to send [09:20:02]OFD Sender: No OFD packet to send [09:20:07]OFD Sender: No OFD packet to send [09:20:10]accept exits with 7 [09:20:10]New connection [09:20:10]New thread 3066715492 created [09:20:10]Thread 3066858852 joined [09:20:10]Waiting for new connection... [09:20:10] Sock 7.Parse request [09:20:10]Sock 7.Check first char [09:20:10]Sock 7.First char is OK [09:20:10]request: POST /json_proto HTTP/1.0 [09:20:10]Method: POST [09:20:10]URL: /json_proto [09:20:10]Method is POST - this is cgi request [09:20:10]url: /json_proto [09:20:10]query_string will be loaded in cgi processing [09:20:10]execute_cgi json_proto POST (null) [09:20:10]execute_cgi path=json_proto method=POST [09:20:10]POST find Content-Length [09:20:10]Host: 172.17.38.133:8080 [09:20:10]Content-Length: 687 [09:20:10]Content-Type: application/json [09:20:10] [09:20:10]POST finish read [09:20:10]Found Content-Length = 687 [09:20:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673507", "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" : 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" ] } } [09:20:10]execute_script... [09:20: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)673507", "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" : 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" ] } } [09:20:10]POST & json_proto [09:20:10]process_json_proto [09:20:10]json parsed OK: [09:20:10]protocol is kg_v1.0 [09:20:10]action value=close_receipt [09:20:10]process_action close_receipt [09:20:10]cmd_close_receipt [09:20:10]MH_GetDate [09:20:10]Write to MH i2c: F0 00 00 DB 15 DF [09:20:10]Write i2c OK [09:20:10]MH_I2C_Read... [09:20:10]Read from MH i2c: F0 [09:20:10]MH_I2C_Read... [09:20:10]Read from MH i2c: F0 09 00 [09:20:10]MH_I2C_Read... [09:20:10]Read from MH i2c: F0 09 00 DB 15 00 CE 45 75 66 BD 8F 7C 64 02 [09:20:10]GetLastDocTimeStamp 1718961152 [09:20:10]current date 1718961614 [09:20:10]FM_GetShiftState [09:20:10]SAM_PROTO_GetShiftState [09:20:10]wFMCommunicate request_size=4 [09:20:10]MH_SAM_APDU [09:20:10]CAPDU: 80 13 01 00 [09:20:10]Write to MH i2c: E2 08 00 DC 15 80 13 01 00 00 00 00 00 6E [09:20:10]Write i2c OK [09:20:10]MH_I2C_Read... [09:20:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:20:10]Read from MH i2c: E2 [09:20:10]MH_I2C_Read... [09:20:10]Read from MH i2c: E2 0E 00 [09:20:10]MH_I2C_Read... [09:20:10]Read from MH i2c: E2 0E 00 DC 15 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 81 [09:20:10]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [09:20:10]wFMCommunicate OK [09:20:10]SAM_PROTO_GetShiftState done [09:20:10]FM_GetShiftState done [09:20:10]opened in 1718929509 [09:20:10]opened+sec_in_day 1719015909 [09:20:10]quantity*price = 200037 [09:20:10]sum+1 = 200039 [09:20: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 СНО: Общий режим Чек 35 21.06.2024 09:20 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104112 ФПД: 221172342394811 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T092014&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104112&fm=221172342394811&tin=02508201610067®Number=0000000000092785&sum=200000 [09:20:12]StoreToDocumentArchive [09:20:12]shift 355 fd 104112 [09:20:12]save to /storage/0355/doc_00104112 [09:20:12]save last doc name /storage/0355/doc_00104112 to /storage/kkm_last_doc_name [09:20:12]save OK [09:20:12]Clear old archive folders... [09:20:12]OFD Sender: No OFD packet to send [09:20:12]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:20:12]tlvbuf is B6E91490 [09:20:12]SAM_PROTO_ClearQueue [09:20:12]wFMCommunicate request_size=4 [09:20:12]MH_SAM_APDU [09:20:12]CAPDU: 80 09 00 00 [09:20:12]Write to MH i2c: E2 08 00 E9 15 80 09 00 00 00 00 00 00 70 [09:20:12]Write i2c OK [09:20:12]MH_I2C_Read... [09:20:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:20:12]Read from MH i2c: E2 [09:20:12]MH_I2C_Read... [09:20:12]Read from MH i2c: E2 03 00 [09:20:12]MH_I2C_Read... [09:20:12]Read from MH i2c: E2 03 00 E9 15 00 90 00 72 [09:20:12]RAPDU: 90 00 [09:20:12]wFMCommunicate OK [09:20:12]SAM_PROTO_ClearQueue done [09:20:12]KKMCreateOFDPacket [09:20:12]OFDProtocolAddRootSTLVToBuf [09:20:12]FM_MakeSignedData [09:20:12]FM_MakeSignedData [09:20:12]SAM_PROTO_SignData [09:20:12]wFMCommunicate request_size=4 [09:20:12]MH_SAM_APDU [09:20:12]CAPDU: 80 0D 01 02 [09:20:12]Write to MH i2c: E2 08 00 EA 15 80 0D 01 02 00 00 00 00 78 [09:20:12]Write i2c OK [09:20:12]MH_I2C_Read... [09:20:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:20:12]Read from MH i2c: E2 [09:20:12]MH_I2C_Read... [09:20:12]Read from MH i2c: E2 03 00 [09:20:12]MH_I2C_Read... [09:20:12]Read from MH i2c: E2 03 00 EA 15 00 90 00 73 [09:20:12]RAPDU: 90 00 [09:20:12]wFMCommunicate OK [09:20:12]wFMCommunicate request_size=255 [09:20:12]MH_SAM_APDU [09:20:12]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 23 00 00 00 F4 03 04 00 CE 45 75 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 B0 96 01 00 35 04 06 00 [09:20:12]Write to MH i2c: E2 02 01 EB 15 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 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 23 00 00 00 F4 03 04 00 CE 45 75 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 B0 96 01 00 35 04 06 00 00 00 03 [09:20:12]Write i2c OK [09:20:12]MH_I2C_Read... [09:20:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:20:12]Read from MH i2c: E2 [09:20:12]MH_I2C_Read... [09:20:12]Read from MH i2c: E2 03 00 [09:20:12]MH_I2C_Read... [09:20:12]Read from MH i2c: E2 03 00 EB 15 00 90 00 74 [09:20:12]RAPDU: 90 00 [09:20:12]wFMCommunicate OK [09:20:12]wFMCommunicate request_size=11 [09:20:12]MH_SAM_APDU [09:20:12]CAPDU: 80 0D 02 02 06 C9 27 B2 E7 0F BB [09:20:12]Write to MH i2c: E2 0E 00 EC 15 80 0D 02 02 06 00 C9 27 B2 E7 0F BB 00 00 DA [09:20:12]Write i2c OK [09:20:12]MH_I2C_Read... [09:20:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:20:12]Read from MH i2c: E2 [09:20:12]MH_I2C_Read... [09:20:12]Read from MH i2c: E2 03 00 [09:20:12]MH_I2C_Read... [09:20:12]Read from MH i2c: E2 03 00 EC 15 00 90 00 75 [09:20:12]RAPDU: 90 00 [09:20:12]wFMCommunicate OK [09:20:12]wFMCommunicate request_size=4 [09:20:12]MH_SAM_APDU [09:20:12]CAPDU: 80 0D 03 02 [09:20:12]Write to MH i2c: E2 08 00 ED 15 80 0D 03 02 00 00 00 00 7D [09:20:12]Write i2c OK [09:20:12]MH_I2C_Read... [09:20:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:20:12]Read from MH i2c: E2 [09:20:12]MH_I2C_Read... [09:20:12]Read from MH i2c: E2 0B 00 [09:20:12]MH_I2C_Read... [09:20:12]Read from MH i2c: E2 0B 00 ED 15 00 DC 3F 99 30 9C F4 69 AE 90 00 09 [09:20:12]RAPDU: DC 3F 99 30 9C F4 69 AE 90 00 [09:20:12]wFMCommunicate OK [09:20:12]SAM_PROTO_SignData done [09:20:12]FM_MakeSignedData done [09:20:12]CreateOFDProtocolMessage [09:20:12]wFMCommunicate request_size=4 [09:20:12]MH_SAM_APDU [09:20:12]CAPDU: 80 11 00 00 [09:20:12]Write to MH i2c: E2 08 00 EE 15 80 11 00 00 00 00 00 00 7D [09:20:12]Write i2c OK [09:20:12]MH_I2C_Read... [09:20:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:20:12]Read from MH i2c: E2 [09:20:12]MH_I2C_Read... [09:20:12]Read from MH i2c: E2 17 00 [09:20:12]MH_I2C_Read... [09:20:12]Read from MH i2c: E2 17 00 EE 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 D0 [09:20: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:20:12]wFMCommunicate OK [09:20:12]CreateOFDProtocolMessage done [09:20:12]OFDSenderStorePacket 104112 [09:20:12]StoreOFDPacket docnum=104112 [09:20: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 DF BE 08 01 B3 2E 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 23 00 00 00 F4 03 04 00 CE 45 75 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 B0 96 01 00 35 04 06 00 C9 27 B2 E7 0F BB DC 3F 99 30 9C F4 69 AE [09:20:12]CheckFolder [09:20:12]dirname=/storage/ofd_packets [09:20:12]CheckFolder done [09:20:12]ProducePacketName [09:20:12]name=ofd_packets/00104112 [09:20:12]NVStorageSaveData ofd_packets/00104112 [09:20:12]File name is /storage/ofd_packets/00104112 [09:20:12]Write 302 bytes [09:20:12]NVStorageSaveData done [09:20:12]OFDSenderStorePacket done [09:20:12]KKMCreateOFDPacket done [09:20:12]NVStorageSaveData kkm_last_timestamp [09:20:12]File name is /storage/kkm_last_timestamp [09:20:12]Write 4 bytes [09:20:12]NVStorageSaveData done [09:20:12]ExternCall_PrintAddStr [09:20:12]wPrintStart [09:20:12]Write to MH i2c: 01 00 00 EF 15 04 [09:20:12]Write i2c OK [09:20:12]MH_I2C_Read... [09:20:12]Read from MH i2c: 01 [09:20:12]MH_I2C_Read... [09:20:12]Read from MH i2c: 01 07 00 [09:20:12]MH_I2C_Read... [09:20:12]Read from MH i2c: 01 07 00 EF 15 00 00 00 00 00 FF 0F 19 [09:20:12]RasterBufferAndPrint [09:20:12]line Счет N : (1)673507 [09:20:12]line ИНН: 02508201610067 [09:20:12]line Контрольно-Кассовый Чек [09:20:12]line ПРОДАЖА [09:20:12]line ТРК (МРК, ГНК) : 11 [09:20:12]line Товар: 2710194210 [09:20:12]line ДТ(л)-К-5 [09:20:12]line 27.440 * 72.90 [09:20:12]line = 2000.38 [09:20:12]line НДС 12% НСП 1% [09:20:12]line > о реализуемом товаре [09:20:12]line ОКРУГЛЕНИЕ: -0.38 [09:20:12]line ИТОГО: 2000.00 [09:20:12]line Внесено: 2000.00 [09:20:12]line СДАЧА: 0.00 [09:20:12]line НСП 1% : 17.70 [09:20:12]line НДС 12% : 212.43 [09:20:12]line Наличными: 2000.00 [09:20:12]line Безнал.: 0.00 [09:20:12]line Место: АЗС № 120 "Партнер Нефть" [09:20:12]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [09:20:12]line СНО: Общий режим [09:20:12]line Чек 35 21.06.2024 09:20 [09:20:12]line Смена: 355 ФФД: 1.0 [09:20:12]line ЗНМ: 0300000164 [09:20:12]line РНМ: 0000000000092785 [09:20:12]line Версия ККМ: 001 [09:20:12]line ФМ: 0000000000875093 [09:20:12]line ФД: 104112 [09:20:12]line ФПД: 221172342394811 [09:20:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T092014&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104112&fm=221172342394811&tin=02508201610067®Number=0000000000092785&sum=200000 [09:20:12]OFD Sender: Processing packet 104112 [packets to send 17, broken 16] [09:20:12]ProducePacketName [09:20:12]name=ofd_packets/00104112 [09:20:12]OFD Sender: To server: pG, [09:20:12]CommunicateWithHost lk.salyk.kg:30040 [09:20:12]ConnectInit lk.salyk.kg [09:20:12]written 0, free lines is 4095 [09:20:13]Connected sock=10 [09:20: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 10 01 00 00 DF BE 08 01 B3 2E 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 23 00 00 00 F4 03 04 00 CE 45 75 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 B0 96 01 00 35 04 06 00 C9 27 B2 E7 0F BB DC 3F 99 30 9C F4 69 AE [09:20: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 C4 4F 47 00 32 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 B0 96 01 00 F4 03 04 00 51 EC 74 66 B6 04 01 00 00 0D D4 12 A8 AC 22 3C 09 [09:20:13]CommunicateWithHost err = 0 [09:20:13]CheckOFDResponse [09:20:13]1017 (14) - 77093643461234 [09:20:13]1041 (16) - 0000000000875093 [09:20:13]1040 (4) - 104112 [09:20:13]1012 (4) - 21.06.2024 02:58 [09:20:13]1206 (1) - 0 [09:20:13]OFD Sender: Remove packet 104112 [09:20:13]ProducePacketName [09:20:13]name=ofd_packets/00104112 [09:20:13]NVStorageDeleteData [09:20:13]Write to MH i2c: 01 00 00 1A 16 30 [09:20:13]Write i2c OK [09:20:13]MH_I2C_Read... [09:20:13]Read from MH i2c: 01 [09:20:13]MH_I2C_Read... [09:20:13]Read from MH i2c: 01 07 00 [09:20:13]MH_I2C_Read... [09:20:13]Read from MH i2c: 01 07 00 1A 16 00 00 00 00 00 CF 0C 12 [09:20:13]RasterBufferAndPrint [09:20:13]line [09:20:13]line [09:20:13]line [09:20:13]line [09:20:13]line [09:20:13]written 0, free lines is 3285 [09:20:13]MH_Cut [09:20:13]Write to MH i2c: D1 01 00 21 16 01 09 [09:20:13]Write i2c OK [09:20:13]MH_I2C_Read... [09:20:13]Read from MH i2c: D1 [09:20:13]MH_I2C_Read... [09:20:13]Read from MH i2c: D1 01 00 [09:20:13]MH_I2C_Read... [09:20:13]Read from MH i2c: D1 01 00 21 16 00 08 [09:20:13]Write to MH i2c: 01 00 00 22 16 38 [09:20:13]Write i2c OK [09:20:13]MH_I2C_Read... [09:20:13]OFD Sender: No OFD packet to send [09:20:14]*** Cut start [09:20:14]*** Partial cut [09:20:14]*** CUTSNS_PIN = 1 [09:20:14]*** CUTSNS_PIN = 0 [09:20:14]*** Brake cut motor [09:20:14]Read from MH i2c: 01 [09:20:14]MH_I2C_Read... [09:20:14]*** Stop cut motor [09:20:14]*** Cut end [09:20:14]Read from MH i2c: 01 07 00 [09:20:14]MH_I2C_Read... [09:20:14]Read from MH i2c: 01 07 00 22 16 00 00 00 00 00 FF 0F 4D [09:20:14]process_action close_receipt done [09:20:14]requested_data is exist [09:20:14]produce_requested_data [09:20:14]requested_item fm.sn is exist - process it [09:20:14]wFMCommunicate request_size=4 [09:20:14]MH_SAM_APDU [09:20:14]CAPDU: 80 11 00 00 [09:20:14]Write to MH i2c: E2 08 00 23 16 80 11 00 00 00 00 00 00 B3 [09:20:14]Write i2c OK [09:20:14]MH_I2C_Read... [09:20:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:20:14]Read from MH i2c: E2 [09:20:14]MH_I2C_Read... [09:20:14]Read from MH i2c: E2 17 00 [09:20:14]MH_I2C_Read... [09:20:14]Read from MH i2c: E2 17 00 23 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 06 [09:20: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:20:14]wFMCommunicate OK [09:20:14]requested_item fd.num is exist - process it [09:20:14]SAM_PROTO_GetFieldsCounters [09:20:14]wFMCommunicate request_size=4 [09:20:14]MH_SAM_APDU [09:20:14]CAPDU: 80 13 00 00 [09:20:14]Write to MH i2c: E2 08 00 24 16 80 13 00 00 00 00 00 00 B6 [09:20:14]Write i2c OK [09:20:14]MH_I2C_Read... [09:20:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:20:14]Read from MH i2c: E2 [09:20:14]MH_I2C_Read... [09:20:14]Read from MH i2c: E2 62 00 [09:20:14]MH_I2C_Read... [09:20:14]Read from MH i2c: E2 62 00 24 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 B0 96 01 00 0E 04 04 00 63 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 F1 [09:20: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 B0 96 01 00 0E 04 04 00 63 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:20:14]wFMCommunicate OK [09:20:14]SAM_PROTO_GetFieldsCounters done [09:20:14]requested_item shift.num is exist - process it [09:20:14]requested_item shift.opened is exist - process it [09:20:14]req_shift_opened [09:20:14]FM_GetShiftState [09:20:14]SAM_PROTO_GetShiftState [09:20:14]wFMCommunicate request_size=4 [09:20:14]MH_SAM_APDU [09:20:14]CAPDU: 80 13 01 00 [09:20:14]Write to MH i2c: E2 08 00 25 16 80 13 01 00 00 00 00 00 B8 [09:20:14]Write i2c OK [09:20:14]MH_I2C_Read... [09:20:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:20:14]Read from MH i2c: E2 [09:20:14]MH_I2C_Read... [09:20:14]Read from MH i2c: E2 0E 00 [09:20:14]MH_I2C_Read... [09:20:14]Read from MH i2c: E2 0E 00 25 16 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 CB [09:20:14]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [09:20:15]wFMCommunicate OK [09:20:15]SAM_PROTO_GetShiftState done [09:20:15]FM_GetShiftState done [09:20:15]req_shift_opened done [09:20:15]requested_item shift.open_date is exist - process it [09:20:15]req_shift_open_date [09:20:15]req_shift_open_date done [09:20:15]produce_requested_data done [09:20:15]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104112,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [09:20:15]process_action_free close_receipt [09:20:15]json_value_free [09:20:15]json_value_free done [09:20:15]process_json_proto returns [09:20:15]Send response to host [09:20:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104112,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [09:20:15]free response buf [09:20:15]execute_script done [09:20:15]execute_script returns [09:20:15]free content buf [09:20:15]Sock 7.Close socket [09:20:15]Sock 7.Thread stoped [09:20:18]OFD Sender: No OFD packet to send [09:20:23]OFD Sender: No OFD packet to send [09:20:24]accept exits with 9 [09:20:24]New connection [09:20:24]New thread 3066858852 created [09:20:24]Thread 3066715492 joined [09:20:24]Waiting for new connection... [09:20:24] Sock 9.Parse request [09:20:24]Sock 9.Check first char [09:20:24]Sock 9.First char is OK [09:20:24]request: POST /json_proto HTTP/1.0 [09:20:24]Method: POST [09:20:24]URL: /json_proto [09:20:24]Method is POST - this is cgi request [09:20:24]url: /json_proto [09:20:24]query_string will be loaded in cgi processing [09:20:24]execute_cgi json_proto POST (null) [09:20:24]execute_cgi path=json_proto method=POST [09:20:24]POST find Content-Length [09:20:24]Host: 172.17.38.133:8080 [09:20:24]Content-Length: 682 [09:20:24]Content-Type: application/json [09:20:24] [09:20:24]POST finish read [09:20:24]Found Content-Length = 682 [09:20:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673508", "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" ] } } [09:20:24]execute_script... [09:20: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)673508", "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" ] } } [09:20:24]POST & json_proto [09:20:24]process_json_proto [09:20:24]json parsed OK: [09:20:24]protocol is kg_v1.0 [09:20:24]action value=close_receipt [09:20:24]process_action close_receipt [09:20:24]cmd_close_receipt [09:20:24]MH_GetDate [09:20:24]Write to MH i2c: F0 00 00 26 16 2B [09:20:24]Write i2c OK [09:20:24]MH_I2C_Read... [09:20:24]Read from MH i2c: F0 [09:20:24]MH_I2C_Read... [09:20:24]Read from MH i2c: F0 09 00 [09:20:24]MH_I2C_Read... [09:20:24]Read from MH i2c: F0 09 00 26 16 00 DC 45 75 66 BD 8F 7C 64 5C [09:20:24]GetLastDocTimeStamp 1718961614 [09:20:24]current date 1718961628 [09:20:24]FM_GetShiftState [09:20:24]SAM_PROTO_GetShiftState [09:20:24]wFMCommunicate request_size=4 [09:20:24]MH_SAM_APDU [09:20:24]CAPDU: 80 13 01 00 [09:20:24]Write to MH i2c: E2 08 00 27 16 80 13 01 00 00 00 00 00 BA [09:20:24]Write i2c OK [09:20:24]MH_I2C_Read... [09:20:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:20:24]Read from MH i2c: E2 [09:20:24]MH_I2C_Read... [09:20:24]Read from MH i2c: E2 0E 00 [09:20:24]MH_I2C_Read... [09:20:24]Read from MH i2c: E2 0E 00 27 16 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 CD [09:20:24]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [09:20:24]wFMCommunicate OK [09:20:24]SAM_PROTO_GetShiftState done [09:20:24]FM_GetShiftState done [09:20:24]opened in 1718929509 [09:20:24]opened+sec_in_day 1719015909 [09:20:24]quantity*price = 100064 [09:20:24]sum+1 = 100066 [09:20:24]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 СНО: Общий режим Чек 36 21.06.2024 09:20 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104113 ФПД: 85943443777019 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T092028&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104113&fm=85943443777019&tin=02508201610067®Number=0000000000092785&sum=100000 [09:20:25]StoreToDocumentArchive [09:20:25]shift 355 fd 104113 [09:20:25]save to /storage/0355/doc_00104113 [09:20:25]save last doc name /storage/0355/doc_00104113 to /storage/kkm_last_doc_name [09:20:25]save OK [09:20:25]Clear old archive folders... [09:20:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:20:25]tlvbuf is B6EAA330 [09:20:25]SAM_PROTO_ClearQueue [09:20:25]wFMCommunicate request_size=4 [09:20:25]MH_SAM_APDU [09:20:25]CAPDU: 80 09 00 00 [09:20:25]Write to MH i2c: E2 08 00 34 16 80 09 00 00 00 00 00 00 BC [09:20:25]Write i2c OK [09:20:25]MH_I2C_Read... [09:20:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:20:25]Read from MH i2c: E2 [09:20:25]MH_I2C_Read... [09:20:25]Read from MH i2c: E2 03 00 [09:20:25]MH_I2C_Read... [09:20:25]Read from MH i2c: E2 03 00 34 16 00 90 00 BE [09:20:25]RAPDU: 90 00 [09:20:25]wFMCommunicate OK [09:20:25]SAM_PROTO_ClearQueue done [09:20:25]KKMCreateOFDPacket [09:20:25]OFDProtocolAddRootSTLVToBuf [09:20:25]FM_MakeSignedData [09:20:25]FM_MakeSignedData [09:20:25]SAM_PROTO_SignData [09:20:25]wFMCommunicate request_size=4 [09:20:25]MH_SAM_APDU [09:20:25]CAPDU: 80 0D 01 02 [09:20:25]Write to MH i2c: E2 08 00 35 16 80 0D 01 02 00 00 00 00 C4 [09:20:25]Write i2c OK [09:20:25]MH_I2C_Read... [09:20:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:20:25]Read from MH i2c: E2 [09:20:25]MH_I2C_Read... [09:20:25]Read from MH i2c: E2 03 00 [09:20:25]MH_I2C_Read... [09:20:25]Read from MH i2c: E2 03 00 35 16 00 90 00 BF [09:20:25]RAPDU: 90 00 [09:20:25]wFMCommunicate OK [09:20:25]wFMCommunicate request_size=255 [09:20:25]MH_SAM_APDU [09:20: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 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 24 00 00 00 F4 03 04 00 DC 45 75 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 B1 96 01 00 35 04 06 00 4E [09:20:25]Write to MH i2c: E2 02 01 36 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 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 24 00 00 00 F4 03 04 00 DC 45 75 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 B1 96 01 00 35 04 06 00 4E 00 00 E8 [09:20:25]Write i2c OK [09:20:25]MH_I2C_Read... [09:20:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:20:25]Read from MH i2c: E2 [09:20:25]MH_I2C_Read... [09:20:25]Read from MH i2c: E2 03 00 [09:20:25]MH_I2C_Read... [09:20:25]Read from MH i2c: E2 03 00 36 16 00 90 00 C0 [09:20:25]RAPDU: 90 00 [09:20:25]wFMCommunicate OK [09:20:25]wFMCommunicate request_size=10 [09:20:25]MH_SAM_APDU [09:20:25]CAPDU: 80 0D 02 02 05 2A 44 6F E5 FB [09:20:25]Write to MH i2c: E2 0D 00 37 16 80 0D 02 02 05 00 2A 44 6F E5 FB 00 00 8E [09:20:25]Write i2c OK [09:20:25]MH_I2C_Read... [09:20:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:20:25]Read from MH i2c: E2 [09:20:25]MH_I2C_Read... [09:20:25]Read from MH i2c: E2 03 00 [09:20:25]MH_I2C_Read... [09:20:25]Read from MH i2c: E2 03 00 37 16 00 90 00 C1 [09:20:25]RAPDU: 90 00 [09:20:25]wFMCommunicate OK [09:20:25]wFMCommunicate request_size=4 [09:20:25]MH_SAM_APDU [09:20:25]CAPDU: 80 0D 03 02 [09:20:25]Write to MH i2c: E2 08 00 38 16 80 0D 03 02 00 00 00 00 C9 [09:20:25]Write i2c OK [09:20:25]MH_I2C_Read... [09:20:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:20:25]Read from MH i2c: E2 [09:20:25]MH_I2C_Read... [09:20:25]Read from MH i2c: E2 0B 00 [09:20:25]MH_I2C_Read... [09:20:25]Read from MH i2c: E2 0B 00 38 16 00 12 7F 24 87 5D 68 35 E1 90 00 E1 [09:20:25]RAPDU: 12 7F 24 87 5D 68 35 E1 90 00 [09:20:25]wFMCommunicate OK [09:20:25]SAM_PROTO_SignData done [09:20:25]FM_MakeSignedData done [09:20:25]CreateOFDProtocolMessage [09:20:25]wFMCommunicate request_size=4 [09:20:25]MH_SAM_APDU [09:20:25]CAPDU: 80 11 00 00 [09:20:25]Write to MH i2c: E2 08 00 39 16 80 11 00 00 00 00 00 00 C9 [09:20:25]Write i2c OK [09:20:25]MH_I2C_Read... [09:20:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:20:26]Read from MH i2c: E2 [09:20:26]MH_I2C_Read... [09:20:26]Read from MH i2c: E2 17 00 [09:20:26]MH_I2C_Read... [09:20:26]Read from MH i2c: E2 17 00 39 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 1C [09:20:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [09:20:26]wFMCommunicate OK [09:20:26]CreateOFDProtocolMessage done [09:20:26]OFDSenderStorePacket 104113 [09:20:26]StoreOFDPacket docnum=104113 [09:20: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 EE 27 07 01 B0 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 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 24 00 00 00 F4 03 04 00 DC 45 75 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 B1 96 01 00 35 04 06 00 4E 2A 44 6F E5 FB 12 7F 24 87 5D 68 35 E1 [09:20:26]CheckFolder [09:20:26]dirname=/storage/ofd_packets [09:20:26]CheckFolder done [09:20:26]ProducePacketName [09:20:26]name=ofd_packets/00104113 [09:20:26]NVStorageSaveData ofd_packets/00104113 [09:20:26]File name is /storage/ofd_packets/00104113 [09:20:26]Write 301 bytes [09:20:26]NVStorageSaveData done [09:20:26]OFDSenderStorePacket done [09:20:26]KKMCreateOFDPacket done [09:20:26]NVStorageSaveData kkm_last_timestamp [09:20:26]File name is /storage/kkm_last_timestamp [09:20:26]Write 4 bytes [09:20:26]NVStorageSaveData done [09:20:26]ExternCall_PrintAddStr [09:20:26]wPrintStart [09:20:26]Write to MH i2c: 01 00 00 3A 16 50 [09:20:26]Write i2c OK [09:20:26]MH_I2C_Read... [09:20:26]Read from MH i2c: 01 [09:20:26]MH_I2C_Read... [09:20:26]Read from MH i2c: 01 07 00 [09:20:26]MH_I2C_Read... [09:20:26]Read from MH i2c: 01 07 00 3A 16 00 00 00 00 00 FF 0F 65 [09:20:26]RasterBufferAndPrint [09:20:26]line Счет N : (1)673508 [09:20:26]line ИНН: 02508201610067 [09:20:26]line Контрольно-Кассовый Чек [09:20:26]line ПРОДАЖА [09:20:26]line ТРК (МРК, ГНК) : 32 [09:20:26]line Товар: 2710124130 [09:20:26]line Аи-92-К-5 [09:20:26]line 15.070 * 66.40 [09:20:26]line = 1000.65 [09:20:26]line НДС 12% НСП 1% [09:20:26]line > о реализуемом товаре [09:20:26]line ОКРУГЛЕНИЕ: -0.65 [09:20:26]line ИТОГО: 1000.00 [09:20:26]line Внесено: 1000.00 [09:20:26]line СДАЧА: 0.00 [09:20:26]line НСП 1% : 8.85 [09:20:26]line НДС 12% : 106.26 [09:20:26]line Наличными: 1000.00 [09:20:26]line Безнал.: 0.00 [09:20:26]line Место: АЗС № 120 "Партнер Нефть" [09:20:26]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [09:20:26]line СНО: Общий режим [09:20:26]line Чек 36 21.06.2024 09:20 [09:20:26]line Смена: 355 ФФД: 1.0 [09:20:26]line ЗНМ: 0300000164 [09:20:26]line РНМ: 0000000000092785 [09:20:26]line Версия ККМ: 001 [09:20:26]line ФМ: 0000000000875093 [09:20:26]line ФД: 104113 [09:20:26]line ФПД: 85943443777019 [09:20:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T092028&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104113&fm=85943443777019&tin=02508201610067®Number=0000000000092785&sum=100000 [09:20:26]OFD Sender: Processing packet 104113 [packets to send 17, broken 16] [09:20:26]ProducePacketName [09:20:26]name=ofd_packets/00104113 [09:20:26]OFD Sender: To server: pG, [09:20:26]CommunicateWithHost lk.salyk.kg:30040 [09:20:26]ConnectInit lk.salyk.kg [09:20:26]written 0, free lines is 4095 [09:20:26]Connected sock=10 [09:20: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 EE 27 07 01 B0 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 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 24 00 00 00 F4 03 04 00 DC 45 75 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 B1 96 01 00 35 04 06 00 4E 2A 44 6F E5 FB 12 7F 24 87 5D 68 35 E1 [09:20: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 6B 91 47 00 CA 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 96 01 00 F4 03 04 00 5E EC 74 66 B6 04 01 00 00 7A 91 41 8E 6D D6 8A E6 [09:20:26]CommunicateWithHost err = 0 [09:20:26]CheckOFDResponse [09:20:26]1017 (14) - 77093643461234 [09:20:26]1041 (16) - 0000000000875093 [09:20:26]1040 (4) - 104113 [09:20:26]1012 (4) - 21.06.2024 02:58 [09:20:26]1206 (1) - 0 [09:20:26]OFD Sender: Remove packet 104113 [09:20:26]ProducePacketName [09:20:26]name=ofd_packets/00104113 [09:20:26]NVStorageDeleteData [09:20:26]Write to MH i2c: 01 00 00 65 16 7B [09:20:26]Write i2c OK [09:20:26]MH_I2C_Read... [09:20:26]Read from MH i2c: 01 [09:20:26]MH_I2C_Read... [09:20:26]Read from MH i2c: 01 07 00 [09:20:26]MH_I2C_Read... [09:20:26]Read from MH i2c: 01 07 00 65 16 00 00 00 00 00 D4 0C 62 [09:20:26]RasterBufferAndPrint [09:20:26]line [09:20:26]line [09:20:26]line [09:20:26]line [09:20:26]line [09:20:26]written 0, free lines is 3290 [09:20:26]MH_Cut [09:20:26]Write to MH i2c: D1 01 00 6C 16 01 54 [09:20:26]Write i2c OK [09:20:26]MH_I2C_Read... [09:20:26]Read from MH i2c: D1 [09:20:26]MH_I2C_Read... [09:20:26]Read from MH i2c: D1 01 00 [09:20:26]MH_I2C_Read... [09:20:26]Read from MH i2c: D1 01 00 6C 16 00 53 [09:20:26]Write to MH i2c: 01 00 00 6D 16 83 [09:20:26]Write i2c OK [09:20:26]MH_I2C_Read... [09:20:27]OFD Sender: No OFD packet to send [09:20:27]*** Cut start [09:20:27]*** Partial cut [09:20:27]*** CUTSNS_PIN = 1 [09:20:27]*** CUTSNS_PIN = 0 [09:20:27]*** Brake cut motor [09:20:28]Read from MH i2c: 01 [09:20:28]MH_I2C_Read... [09:20:28]*** Stop cut motor [09:20:28]*** Cut end [09:20:28]Read from MH i2c: 01 07 00 [09:20:28]MH_I2C_Read... [09:20:28]Read from MH i2c: 01 07 00 6D 16 00 00 00 00 00 FF 0F 98 [09:20:28]process_action close_receipt done [09:20:28]requested_data is exist [09:20:28]produce_requested_data [09:20:28]requested_item fm.sn is exist - process it [09:20:28]wFMCommunicate request_size=4 [09:20:28]MH_SAM_APDU [09:20:28]CAPDU: 80 11 00 00 [09:20:28]Write to MH i2c: E2 08 00 6E 16 80 11 00 00 00 00 00 00 FE [09:20:28]Write i2c OK [09:20:28]MH_I2C_Read... [09:20:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:20:28]Read from MH i2c: E2 [09:20:28]MH_I2C_Read... [09:20:28]Read from MH i2c: E2 17 00 [09:20:28]MH_I2C_Read... [09:20:28]Read from MH i2c: E2 17 00 6E 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 51 [09:20:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [09:20:28]wFMCommunicate OK [09:20:28]requested_item fd.num is exist - process it [09:20:28]SAM_PROTO_GetFieldsCounters [09:20:28]wFMCommunicate request_size=4 [09:20:28]MH_SAM_APDU [09:20:28]CAPDU: 80 13 00 00 [09:20:28]Write to MH i2c: E2 08 00 6F 16 80 13 00 00 00 00 00 00 01 [09:20:28]Write i2c OK [09:20:28]MH_I2C_Read... [09:20:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:20:28]Read from MH i2c: E2 [09:20:28]MH_I2C_Read... [09:20:28]Read from MH i2c: E2 62 00 [09:20:28]MH_I2C_Read... [09:20:28]Read from MH i2c: E2 62 00 6F 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 B1 96 01 00 0E 04 04 00 63 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 40 [09:20: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 B1 96 01 00 0E 04 04 00 63 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:20:28]wFMCommunicate OK [09:20:28]SAM_PROTO_GetFieldsCounters done [09:20:28]requested_item shift.num is exist - process it [09:20:28]requested_item shift.opened is exist - process it [09:20:28]req_shift_opened [09:20:28]FM_GetShiftState [09:20:28]SAM_PROTO_GetShiftState [09:20:28]wFMCommunicate request_size=4 [09:20:28]MH_SAM_APDU [09:20:28]CAPDU: 80 13 01 00 [09:20:28]Write to MH i2c: E2 08 00 70 16 80 13 01 00 00 00 00 00 03 [09:20:28]Write i2c OK [09:20:28]MH_I2C_Read... [09:20:28]Read from MH i2c: E2 [09:20:28]MH_I2C_Read... [09:20:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:20:28]Read from MH i2c: E2 0E 00 [09:20:28]MH_I2C_Read... [09:20:28]Read from MH i2c: E2 0E 00 70 16 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 16 [09:20:28]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [09:20:28]wFMCommunicate OK [09:20:28]SAM_PROTO_GetShiftState done [09:20:28]FM_GetShiftState done [09:20:28]req_shift_opened done [09:20:28]requested_item shift.open_date is exist - process it [09:20:28]req_shift_open_date [09:20:28]req_shift_open_date done [09:20:28]produce_requested_data done [09:20:28]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104113,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [09:20:28]process_action_free close_receipt [09:20:28]json_value_free [09:20:28]json_value_free done [09:20:28]process_json_proto returns [09:20:28]Send response to host [09:20:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104113,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [09:20:28]free response buf [09:20:28]execute_script done [09:20:28]execute_script returns [09:20:28]free content buf [09:20:28]Sock 9.Close socket [09:20:28]Sock 9.Thread stoped [09:20:32]OFD Sender: No OFD packet to send [09:20:37]OFD Sender: No OFD packet to send [09:20:42]OFD Sender: No OFD packet to send [09:20:47]OFD Sender: No OFD packet to send [09:20:52]OFD Sender: No OFD packet to send [09:20:57]OFD Sender: No OFD packet to send [09:21:02]OFD Sender: No OFD packet to send [09:21:07]OFD Sender: No OFD packet to send [09:21:12]OFD Sender: No OFD packet to send [09:21:17]OFD Sender: No OFD packet to send [09:21:22]OFD Sender: No OFD packet to send [09:21:27]OFD Sender: No OFD packet to send [09:21:32]OFD Sender: No OFD packet to send [09:21:37]OFD Sender: No OFD packet to send [09:21:42]OFD Sender: No OFD packet to send [09:21:47]OFD Sender: No OFD packet to send [09:21:52]OFD Sender: No OFD packet to send [09:21:57]OFD Sender: No OFD packet to send [09:22:02]OFD Sender: No OFD packet to send [09:22:07]OFD Sender: No OFD packet to send [09:22:12]OFD Sender: No OFD packet to send [09:22:17]OFD Sender: No OFD packet to send [09:22:22]OFD Sender: No OFD packet to send [09:22:27]OFD Sender: No OFD packet to send [09:22:32]OFD Sender: No OFD packet to send [09:22:37]OFD Sender: No OFD packet to send [09:22:42]OFD Sender: No OFD packet to send [09:22:47]OFD Sender: No OFD packet to send [09:22:52]OFD Sender: No OFD packet to send [09:22:57]OFD Sender: No OFD packet to send [09:23:02]OFD Sender: No OFD packet to send [09:23:07]OFD Sender: No OFD packet to send [09:23:12]OFD Sender: No OFD packet to send [09:23:17]OFD Sender: No OFD packet to send [09:23:22]OFD Sender: No OFD packet to send [09:23:27]OFD Sender: No OFD packet to send [09:23:32]OFD Sender: No OFD packet to send [09:23:37]OFD Sender: No OFD packet to send [09:23:42]OFD Sender: No OFD packet to send [09:23:47]OFD Sender: No OFD packet to send [09:23:52]OFD Sender: No OFD packet to send [09:23:57]OFD Sender: No OFD packet to send [09:24:02]OFD Sender: No OFD packet to send [09:24:07]OFD Sender: No OFD packet to send [09:24:12]OFD Sender: No OFD packet to send [09:24:17]OFD Sender: No OFD packet to send [09:24:22]OFD Sender: No OFD packet to send [09:24:27]OFD Sender: No OFD packet to send [09:24:32]OFD Sender: No OFD packet to send [09:24:37]OFD Sender: No OFD packet to send [09:24:42]OFD Sender: No OFD packet to send [09:24:47]OFD Sender: No OFD packet to send [09:24:52]OFD Sender: No OFD packet to send [09:24:57]OFD Sender: No OFD packet to send [09:25:02]OFD Sender: No OFD packet to send [09:25:07]OFD Sender: No OFD packet to send [09:25:12]OFD Sender: No OFD packet to send [09:25:17]OFD Sender: No OFD packet to send [09:25:21]accept exits with 7 [09:25:21]New connection [09:25:21]New thread 3066715492 created [09:25:21]Thread 3066858852 joined [09:25:21]Waiting for new connection... [09:25:21] Sock 7.Parse request [09:25:21]Sock 7.Check first char [09:25:21]Sock 7.First char is OK [09:25:21]request: POST /json_proto HTTP/1.0 [09:25:21]Method: POST [09:25:21]URL: /json_proto [09:25:21]Method is POST - this is cgi request [09:25:21]url: /json_proto [09:25:21]query_string will be loaded in cgi processing [09:25:21]execute_cgi json_proto POST (null) [09:25:21]execute_cgi path=json_proto method=POST [09:25:21]POST find Content-Length [09:25:21]Host: 172.17.38.133:8080 [09:25:21]Content-Length: 682 [09:25:21]Content-Type: application/json [09:25:21] [09:25:21]POST finish read [09:25:21]Found Content-Length = 682 [09:25:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673510", "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" : 19.580, "sum" : 1300.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1300.00, "total" : 1300.00, "payments": [ { "type": 0, "sum" : 1300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:25:21]execute_script... [09:25: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)673510", "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" : 19.580, "sum" : 1300.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1300.00, "total" : 1300.00, "payments": [ { "type": 0, "sum" : 1300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:25:21]POST & json_proto [09:25:21]process_json_proto [09:25:21]json parsed OK: [09:25:21]protocol is kg_v1.0 [09:25:21]action value=close_receipt [09:25:21]process_action close_receipt [09:25:21]cmd_close_receipt [09:25:21]MH_GetDate [09:25:21]Write to MH i2c: F0 00 00 71 16 76 [09:25:21]Write i2c OK [09:25:21]MH_I2C_Read... [09:25:21]Read from MH i2c: F0 [09:25:21]MH_I2C_Read... [09:25:21]Read from MH i2c: F0 09 00 [09:25:21]MH_I2C_Read... [09:25:21]Read from MH i2c: F0 09 00 71 16 00 05 47 75 66 BD 8F 7C 64 D2 [09:25:21]GetLastDocTimeStamp 1718961628 [09:25:21]current date 1718961925 [09:25:21]FM_GetShiftState [09:25:21]SAM_PROTO_GetShiftState [09:25:21]wFMCommunicate request_size=4 [09:25:21]MH_SAM_APDU [09:25:21]CAPDU: 80 13 01 00 [09:25:21]Write to MH i2c: E2 08 00 72 16 80 13 01 00 00 00 00 00 05 [09:25:21]Write i2c OK [09:25:21]MH_I2C_Read... [09:25:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:25:21]Read from MH i2c: E2 [09:25:21]MH_I2C_Read... [09:25:21]Read from MH i2c: E2 0E 00 [09:25:21]MH_I2C_Read... [09:25:21]Read from MH i2c: E2 0E 00 72 16 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 18 [09:25:21]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [09:25:21]wFMCommunicate OK [09:25:21]SAM_PROTO_GetShiftState done [09:25:21]FM_GetShiftState done [09:25:21]opened in 1718929509 [09:25:21]opened+sec_in_day 1719015909 [09:25:21]quantity*price = 130011 [09:25:21]sum+1 = 130012 [09:25:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 1300.00 Внесено: 1300.00 СДАЧА: 0.00 НСП 1% : 11.50 НДС 12% : 138.06 Наличными: 1300.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 37 21.06.2024 09:25 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104114 ФПД: 257904389648572 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T092525&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104114&fm=257904389648572&tin=02508201610067®Number=0000000000092785&sum=130000 [09:25:22]StoreToDocumentArchive [09:25:22]shift 355 fd 104114 [09:25:22]save to /storage/0355/doc_00104114 [09:25:22]save last doc name /storage/0355/doc_00104114 to /storage/kkm_last_doc_name [09:25:22]save OK [09:25:22]Clear old archive folders... [09:25:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:25:22]tlvbuf is B6E91100 [09:25:22]SAM_PROTO_ClearQueue [09:25:22]wFMCommunicate request_size=4 [09:25:22]MH_SAM_APDU [09:25:22]CAPDU: 80 09 00 00 [09:25:22]Write to MH i2c: E2 08 00 7F 16 80 09 00 00 00 00 00 00 07 [09:25:22]Write i2c OK [09:25:22]MH_I2C_Read... [09:25:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:25:22]Read from MH i2c: E2 [09:25:22]MH_I2C_Read... [09:25:22]Read from MH i2c: E2 03 00 [09:25:22]MH_I2C_Read... [09:25:22]Read from MH i2c: E2 03 00 7F 16 00 90 00 09 [09:25:22]RAPDU: 90 00 [09:25:22]wFMCommunicate OK [09:25:22]SAM_PROTO_ClearQueue done [09:25:22]KKMCreateOFDPacket [09:25:22]OFDProtocolAddRootSTLVToBuf [09:25:22]FM_MakeSignedData [09:25:22]FM_MakeSignedData [09:25:22]SAM_PROTO_SignData [09:25:22]wFMCommunicate request_size=4 [09:25:22]MH_SAM_APDU [09:25:22]CAPDU: 80 0D 01 02 [09:25:22]Write to MH i2c: E2 08 00 80 16 80 0D 01 02 00 00 00 00 0F [09:25:22]Write i2c OK [09:25:22]MH_I2C_Read... [09:25:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:25:22]Read from MH i2c: E2 [09:25:22]MH_I2C_Read... [09:25:22]Read from MH i2c: E2 03 00 [09:25:22]MH_I2C_Read... [09:25:22]Read from MH i2c: E2 03 00 80 16 00 90 00 0A [09:25:22]RAPDU: 90 00 [09:25:22]wFMCommunicate OK [09:25:22]wFMCommunicate request_size=255 [09:25:22]MH_SAM_APDU [09:25: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 7C 4C 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 DB FB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EE 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 05 47 75 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 B2 96 01 00 35 04 06 00 EA [09:25:22]Write to MH i2c: E2 02 01 81 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 7C 4C 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 DB FB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EE 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 05 47 75 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 B2 96 01 00 35 04 06 00 EA 00 00 E7 [09:25:22]Write i2c OK [09:25:22]MH_I2C_Read... [09:25:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:25:23]Read from MH i2c: E2 [09:25:23]MH_I2C_Read... [09:25:23]Read from MH i2c: E2 03 00 [09:25:23]MH_I2C_Read... [09:25:23]Read from MH i2c: E2 03 00 81 16 00 90 00 0B [09:25:23]RAPDU: 90 00 [09:25:23]wFMCommunicate OK [09:25:23]wFMCommunicate request_size=10 [09:25:23]MH_SAM_APDU [09:25:23]CAPDU: 80 0D 02 02 05 90 0B 87 F0 BC [09:25:23]Write to MH i2c: E2 0D 00 82 16 80 0D 02 02 05 00 90 0B 87 F0 BC 00 00 EA [09:25:23]Write i2c OK [09:25:23]MH_I2C_Read... [09:25:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:25:23]Read from MH i2c: E2 [09:25:23]MH_I2C_Read... [09:25:23]Read from MH i2c: E2 03 00 [09:25:23]MH_I2C_Read... [09:25:23]Read from MH i2c: E2 03 00 82 16 00 90 00 0C [09:25:23]RAPDU: 90 00 [09:25:23]wFMCommunicate OK [09:25:23]wFMCommunicate request_size=4 [09:25:23]MH_SAM_APDU [09:25:23]CAPDU: 80 0D 03 02 [09:25:23]Write to MH i2c: E2 08 00 83 16 80 0D 03 02 00 00 00 00 14 [09:25:23]Write i2c OK [09:25:23]MH_I2C_Read... [09:25:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:25:23]Read from MH i2c: E2 [09:25:23]MH_I2C_Read... [09:25:23]Read from MH i2c: E2 0B 00 [09:25:23]MH_I2C_Read... [09:25:23]Read from MH i2c: E2 0B 00 83 16 00 0D 14 5B D9 14 97 A9 D9 90 00 97 [09:25:23]RAPDU: 0D 14 5B D9 14 97 A9 D9 90 00 [09:25:23]wFMCommunicate OK [09:25:23]SAM_PROTO_SignData done [09:25:23]FM_MakeSignedData done [09:25:23]CreateOFDProtocolMessage [09:25:23]wFMCommunicate request_size=4 [09:25:23]MH_SAM_APDU [09:25:23]CAPDU: 80 11 00 00 [09:25:23]Write to MH i2c: E2 08 00 84 16 80 11 00 00 00 00 00 00 14 [09:25:23]Write i2c OK [09:25:23]MH_I2C_Read... [09:25:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:25:23]Read from MH i2c: E2 [09:25:23]MH_I2C_Read... [09:25:23]Read from MH i2c: E2 17 00 [09:25:23]MH_I2C_Read... [09:25:23]Read from MH i2c: E2 17 00 84 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 67 [09:25:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [09:25:23]wFMCommunicate OK [09:25:23]CreateOFDProtocolMessage done [09:25:23]OFDSenderStorePacket 104114 [09:25:23]StoreOFDPacket docnum=104114 [09:25: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 8A D6 07 01 60 A4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7C 4C 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 DB FB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EE 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 05 47 75 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 B2 96 01 00 35 04 06 00 EA 90 0B 87 F0 BC 0D 14 5B D9 14 97 A9 D9 [09:25:23]CheckFolder [09:25:23]dirname=/storage/ofd_packets [09:25:23]CheckFolder done [09:25:23]ProducePacketName [09:25:23]name=ofd_packets/00104114 [09:25:23]NVStorageSaveData ofd_packets/00104114 [09:25:23]File name is /storage/ofd_packets/00104114 [09:25:23]Write 301 bytes [09:25:23]NVStorageSaveData done [09:25:23]OFDSenderStorePacket done [09:25:23]KKMCreateOFDPacket done [09:25:23]NVStorageSaveData kkm_last_timestamp [09:25:23]File name is /storage/kkm_last_timestamp [09:25:23]Write 4 bytes [09:25:23]NVStorageSaveData done [09:25:23]ExternCall_PrintAddStr [09:25:23]wPrintStart [09:25:23]Write to MH i2c: 01 00 00 85 16 9B [09:25:23]OFD Sender: Processing packet 104114 [packets to send 17, broken 16] [09:25:23]ProducePacketName [09:25:23]name=ofd_packets/00104114 [09:25:23]OFD Sender: To server: pG, [09:25:23]CommunicateWithHost lk.salyk.kg:30040 [09:25:23]ConnectInit lk.salyk.kg [09:25:23]Write i2c OK [09:25:23]MH_I2C_Read... [09:25:23]Read from MH i2c: 01 [09:25:23]MH_I2C_Read... [09:25:23]Read from MH i2c: 01 07 00 [09:25:23]MH_I2C_Read... [09:25:23]Read from MH i2c: 01 07 00 85 16 00 00 00 00 00 FF 0F B0 [09:25:23]RasterBufferAndPrint [09:25:23]line Счет N : (1)673510 [09:25:23]line ИНН: 02508201610067 [09:25:23]line Контрольно-Кассовый Чек [09:25:23]line ПРОДАЖА [09:25:23]line ТРК (МРК, ГНК) : 32 [09:25:23]line Товар: 2710124130 [09:25:23]line Аи-92-К-5 [09:25:23]line 19.580 * 66.40 [09:25:23]line = 1300.11 [09:25:23]line НДС 12% НСП 1% [09:25:23]line > о реализуемом товаре [09:25:23]line ОКРУГЛЕНИЕ: -0.11 [09:25:23]line ИТОГО: 1300.00 [09:25:23]line Внесено: 1300.00 [09:25:23]line СДАЧА: 0.00 [09:25:23]line НСП 1% : 11.50 [09:25:23]line НДС 12% : 138.06 [09:25:23]line Наличными: 1300.00 [09:25:23]line Безнал.: 0.00 [09:25:23]line Место: АЗС № 120 "Партнер Нефть" [09:25:23]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [09:25:23]line СНО: Общий режим [09:25:23]line Чек 37 21.06.2024 09:25 [09:25:23]line Смена: 355 ФФД: 1.0 [09:25:23]line ЗНМ: 0300000164 [09:25:23]line РНМ: 0000000000092785 [09:25:23]line Версия ККМ: 001 [09:25:23]line ФМ: 0000000000875093 [09:25:23]line ФД: 104114 [09:25:23]line ФПД: 257904389648572 [09:25:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T092525&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104114&fm=257904389648572&tin=02508201610067®Number=0000000000092785&sum=130000 [09:25:23]Connected sock=11 [09:25: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 8A D6 07 01 60 A4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7C 4C 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 DB FB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EE 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 05 47 75 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 B2 96 01 00 35 04 06 00 EA 90 0B 87 F0 BC 0D 14 5B D9 14 97 A9 D9 [09:25:23]written 0, free lines is 4095 [09:25: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 9B 0E 47 00 04 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 B2 96 01 00 F4 03 04 00 88 ED 74 66 B6 04 01 00 00 1E 37 50 A3 87 11 4D 87 [09:25:23]CommunicateWithHost err = 0 [09:25:23]CheckOFDResponse [09:25:23]1017 (14) - 77093643461234 [09:25:23]1041 (16) - 0000000000875093 [09:25:23]1040 (4) - 104114 [09:25:23]1012 (4) - 21.06.2024 03:03 [09:25:23]1206 (1) - 0 [09:25:23]OFD Sender: Remove packet 104114 [09:25:23]ProducePacketName [09:25:23]name=ofd_packets/00104114 [09:25:23]NVStorageDeleteData [09:25:24]Write to MH i2c: 01 00 00 B0 16 C6 [09:25:24]Write i2c OK [09:25:24]MH_I2C_Read... [09:25:24]Read from MH i2c: 01 [09:25:24]MH_I2C_Read... [09:25:24]Read from MH i2c: 01 07 00 [09:25:24]MH_I2C_Read... [09:25:24]Read from MH i2c: 01 07 00 B0 16 00 00 00 00 00 D9 0C B2 [09:25:24]RasterBufferAndPrint [09:25:24]line [09:25:24]line [09:25:24]line [09:25:24]line [09:25:24]line [09:25:24]written 0, free lines is 3297 [09:25:24]MH_Cut [09:25:24]Write to MH i2c: D1 01 00 B7 16 01 9F [09:25:24]Write i2c OK [09:25:24]MH_I2C_Read... [09:25:24]Read from MH i2c: D1 [09:25:24]MH_I2C_Read... [09:25:24]Read from MH i2c: D1 01 00 [09:25:24]MH_I2C_Read... [09:25:24]Read from MH i2c: D1 01 00 B7 16 00 9E [09:25:24]Write to MH i2c: 01 00 00 B8 16 CE [09:25:24]Write i2c OK [09:25:24]MH_I2C_Read... [09:25:24]OFD Sender: No OFD packet to send [09:25:24]*** Cut start [09:25:24]*** Partial cut [09:25:24]*** CUTSNS_PIN = 1 [09:25:24]*** CUTSNS_PIN = 0 [09:25:25]*** Brake cut motor [09:25:25]Read from MH i2c: 01 [09:25:25]MH_I2C_Read... [09:25:25]*** Stop cut motor [09:25:25]*** Cut end [09:25:25]Read from MH i2c: 01 07 00 [09:25:25]MH_I2C_Read... [09:25:25]Read from MH i2c: 01 07 00 B8 16 00 00 00 00 00 FF 0F E3 [09:25:25]process_action close_receipt done [09:25:25]requested_data is exist [09:25:25]produce_requested_data [09:25:25]requested_item fm.sn is exist - process it [09:25:25]wFMCommunicate request_size=4 [09:25:25]MH_SAM_APDU [09:25:25]CAPDU: 80 11 00 00 [09:25:25]Write to MH i2c: E2 08 00 B9 16 80 11 00 00 00 00 00 00 49 [09:25:25]Write i2c OK [09:25:25]MH_I2C_Read... [09:25:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:25:25]Read from MH i2c: E2 [09:25:25]MH_I2C_Read... [09:25:25]Read from MH i2c: E2 17 00 [09:25:25]MH_I2C_Read... [09:25:25]Read from MH i2c: E2 17 00 B9 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 9C [09:25:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [09:25:25]wFMCommunicate OK [09:25:25]requested_item fd.num is exist - process it [09:25:25]SAM_PROTO_GetFieldsCounters [09:25:25]wFMCommunicate request_size=4 [09:25:25]MH_SAM_APDU [09:25:25]CAPDU: 80 13 00 00 [09:25:25]Write to MH i2c: E2 08 00 BA 16 80 13 00 00 00 00 00 00 4C [09:25:25]Write i2c OK [09:25:25]MH_I2C_Read... [09:25:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:25:25]Read from MH i2c: E2 [09:25:25]MH_I2C_Read... [09:25:25]Read from MH i2c: E2 62 00 [09:25:25]MH_I2C_Read... [09:25:25]Read from MH i2c: E2 62 00 BA 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 96 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 8F [09:25: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 B2 96 01 00 0E 04 04 00 63 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:25:25]wFMCommunicate OK [09:25:25]SAM_PROTO_GetFieldsCounters done [09:25:25]requested_item shift.num is exist - process it [09:25:25]requested_item shift.opened is exist - process it [09:25:25]req_shift_opened [09:25:25]FM_GetShiftState [09:25:25]SAM_PROTO_GetShiftState [09:25:25]wFMCommunicate request_size=4 [09:25:25]MH_SAM_APDU [09:25:25]CAPDU: 80 13 01 00 [09:25:25]Write to MH i2c: E2 08 00 BB 16 80 13 01 00 00 00 00 00 4E [09:25:25]Write i2c OK [09:25:25]MH_I2C_Read... [09:25:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:25:25]Read from MH i2c: E2 [09:25:25]MH_I2C_Read... [09:25:25]Read from MH i2c: E2 0E 00 [09:25:25]MH_I2C_Read... [09:25:25]Read from MH i2c: E2 0E 00 BB 16 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 61 [09:25:25]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [09:25:25]wFMCommunicate OK [09:25:25]SAM_PROTO_GetShiftState done [09:25:25]FM_GetShiftState done [09:25:25]req_shift_opened done [09:25:25]requested_item shift.open_date is exist - process it [09:25:25]req_shift_open_date [09:25:25]req_shift_open_date done [09:25:25]produce_requested_data done [09:25:25]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104114,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [09:25:25]process_action_free close_receipt [09:25:25]json_value_free [09:25:25]json_value_free done [09:25:25]process_json_proto returns [09:25:25]Send response to host [09:25:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104114,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [09:25:25]free response buf [09:25:25]execute_script done [09:25:25]execute_script returns [09:25:25]free content buf [09:25:25]Sock 7.Close socket [09:25:25]Sock 7.Thread stoped [09:25:29]OFD Sender: No OFD packet to send [09:25:34]OFD Sender: No OFD packet to send [09:25:39]OFD Sender: No OFD packet to send [09:25:41]accept exits with 9 [09:25:41]New connection [09:25:41]New thread 3066858852 created [09:25:41]Thread 3066715492 joined [09:25:41]Waiting for new connection... [09:25:41] Sock 9.Parse request [09:25:41]Sock 9.Check first char [09:25:41]Sock 9.First char is OK [09:25:41]request: POST /json_proto HTTP/1.0 [09:25:41]Method: POST [09:25:41]URL: /json_proto [09:25:41]Method is POST - this is cgi request [09:25:41]url: /json_proto [09:25:41]query_string will be loaded in cgi processing [09:25:41]execute_cgi json_proto POST (null) [09:25:41]execute_cgi path=json_proto method=POST [09:25:41]POST find Content-Length [09:25:41]Host: 172.17.38.133:8080 [09:25:41]Content-Length: 687 [09:25:41]Content-Type: application/json [09:25:41] [09:25:41]POST finish read [09:25:41]Found Content-Length = 687 [09:25:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673509", "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" : 48.020, "sum" : 3500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3500.00, "total" : 3500.00, "payments": [ { "type": 0, "sum" : 3500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:25:41]execute_script... [09:25: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)673509", "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" : 48.020, "sum" : 3500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3500.00, "total" : 3500.00, "payments": [ { "type": 0, "sum" : 3500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:25:41]POST & json_proto [09:25:41]process_json_proto [09:25:41]json parsed OK: [09:25:41]protocol is kg_v1.0 [09:25:41]action value=close_receipt [09:25:41]process_action close_receipt [09:25:41]cmd_close_receipt [09:25:41]MH_GetDate [09:25:41]Write to MH i2c: F0 00 00 BC 16 C1 [09:25:41]Write i2c OK [09:25:41]MH_I2C_Read... [09:25:41]Read from MH i2c: F0 [09:25:41]MH_I2C_Read... [09:25:41]Read from MH i2c: F0 09 00 [09:25:41]MH_I2C_Read... [09:25:41]Read from MH i2c: F0 09 00 BC 16 00 19 47 75 66 BD 8F 7C 64 31 [09:25:41]GetLastDocTimeStamp 1718961925 [09:25:41]current date 1718961945 [09:25:41]FM_GetShiftState [09:25:41]SAM_PROTO_GetShiftState [09:25:41]wFMCommunicate request_size=4 [09:25:41]MH_SAM_APDU [09:25:41]CAPDU: 80 13 01 00 [09:25:41]Write to MH i2c: E2 08 00 BD 16 80 13 01 00 00 00 00 00 50 [09:25:41]Write i2c OK [09:25:41]MH_I2C_Read... [09:25:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:25:41]Read from MH i2c: E2 [09:25:41]MH_I2C_Read... [09:25:41]Read from MH i2c: E2 0E 00 [09:25:41]MH_I2C_Read... [09:25:41]Read from MH i2c: E2 0E 00 BD 16 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 63 [09:25:41]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [09:25:41]wFMCommunicate OK [09:25:41]SAM_PROTO_GetShiftState done [09:25:41]FM_GetShiftState done [09:25:41]opened in 1718929509 [09:25:41]opened+sec_in_day 1719015909 [09:25:41]quantity*price = 350065 [09:25:41]sum+1 = 350067 [09:25:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 3500.00 Внесено: 3500.00 СДАЧА: 0.00 НСП 1% : 30.98 НДС 12% : 371.75 Наличными: 3500.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 38 21.06.2024 09:25 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104115 ФПД: 100150131923416 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T092545&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104115&fm=100150131923416&tin=02508201610067®Number=0000000000092785&sum=350000 [09:25:42]StoreToDocumentArchive [09:25:42]shift 355 fd 104115 [09:25:42]save to /storage/0355/doc_00104115 [09:25:42]save last doc name /storage/0355/doc_00104115 to /storage/kkm_last_doc_name [09:25:42]save OK [09:25:42]Clear old archive folders... [09:25:42]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:25:42]tlvbuf is B6E910C0 [09:25:42]SAM_PROTO_ClearQueue [09:25:42]wFMCommunicate request_size=4 [09:25:42]MH_SAM_APDU [09:25:42]CAPDU: 80 09 00 00 [09:25:42]Write to MH i2c: E2 08 00 CA 16 80 09 00 00 00 00 00 00 52 [09:25:42]Write i2c OK [09:25:42]MH_I2C_Read... [09:25:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:25:43]Read from MH i2c: E2 [09:25:43]MH_I2C_Read... [09:25:43]Read from MH i2c: E2 03 00 [09:25:43]MH_I2C_Read... [09:25:43]Read from MH i2c: E2 03 00 CA 16 00 90 00 54 [09:25:43]RAPDU: 90 00 [09:25:43]wFMCommunicate OK [09:25:43]SAM_PROTO_ClearQueue done [09:25:43]KKMCreateOFDPacket [09:25:43]OFDProtocolAddRootSTLVToBuf [09:25:43]FM_MakeSignedData [09:25:43]FM_MakeSignedData [09:25:43]SAM_PROTO_SignData [09:25:43]wFMCommunicate request_size=4 [09:25:43]MH_SAM_APDU [09:25:43]CAPDU: 80 0D 01 02 [09:25:43]Write to MH i2c: E2 08 00 CB 16 80 0D 01 02 00 00 00 00 5A [09:25:43]Write i2c OK [09:25:43]MH_I2C_Read... [09:25:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:25:43]Read from MH i2c: E2 [09:25:43]MH_I2C_Read... [09:25:43]Read from MH i2c: E2 03 00 [09:25:43]MH_I2C_Read... [09:25:43]Read from MH i2c: E2 03 00 CB 16 00 90 00 55 [09:25:43]RAPDU: 90 00 [09:25:43]wFMCommunicate OK [09:25:43]wFMCommunicate request_size=255 [09:25:43]MH_SAM_APDU [09:25: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 94 BB 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 72 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 91 00 00 00 00 07 04 06 00 30 57 05 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 19 47 75 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 B3 96 01 00 35 04 06 00 [09:25:43]Write to MH i2c: E2 02 01 CC 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 94 BB 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 72 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 91 00 00 00 00 07 04 06 00 30 57 05 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 19 47 75 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 B3 96 01 00 35 04 06 00 00 00 6D [09:25:43]Write i2c OK [09:25:43]MH_I2C_Read... [09:25:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:25:43]Read from MH i2c: E2 [09:25:43]MH_I2C_Read... [09:25:43]Read from MH i2c: E2 03 00 [09:25:43]MH_I2C_Read... [09:25:43]Read from MH i2c: E2 03 00 CC 16 00 90 00 56 [09:25:43]RAPDU: 90 00 [09:25:43]wFMCommunicate OK [09:25:43]wFMCommunicate request_size=11 [09:25:43]MH_SAM_APDU [09:25:43]CAPDU: 80 0D 02 02 06 5B 16 05 09 99 D8 [09:25:43]Write to MH i2c: E2 0E 00 CD 16 80 0D 02 02 06 00 5B 16 05 09 99 D8 00 00 59 [09:25:43]Write i2c OK [09:25:43]MH_I2C_Read... [09:25:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:25:43]Read from MH i2c: E2 [09:25:43]MH_I2C_Read... [09:25:43]Read from MH i2c: E2 03 00 [09:25:43]MH_I2C_Read... [09:25:43]Read from MH i2c: E2 03 00 CD 16 00 90 00 57 [09:25:43]RAPDU: 90 00 [09:25:43]wFMCommunicate OK [09:25:43]wFMCommunicate request_size=4 [09:25:43]MH_SAM_APDU [09:25:43]CAPDU: 80 0D 03 02 [09:25:43]Write to MH i2c: E2 08 00 CE 16 80 0D 03 02 00 00 00 00 5F [09:25:43]Write i2c OK [09:25:43]MH_I2C_Read... [09:25:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:25:43]Read from MH i2c: E2 [09:25:43]MH_I2C_Read... [09:25:43]Read from MH i2c: E2 0B 00 [09:25:43]MH_I2C_Read... [09:25:43]Read from MH i2c: E2 0B 00 CE 16 00 C6 0B 99 79 0C 23 2F 62 90 00 03 [09:25:43]RAPDU: C6 0B 99 79 0C 23 2F 62 90 00 [09:25:43]wFMCommunicate OK [09:25:43]SAM_PROTO_SignData done [09:25:43]FM_MakeSignedData done [09:25:43]CreateOFDProtocolMessage [09:25:43]wFMCommunicate request_size=4 [09:25:43]MH_SAM_APDU [09:25:43]CAPDU: 80 11 00 00 [09:25:43]Write to MH i2c: E2 08 00 CF 16 80 11 00 00 00 00 00 00 5F [09:25:43]Write i2c OK [09:25:43]MH_I2C_Read... [09:25:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:25:43]Read from MH i2c: E2 [09:25:43]MH_I2C_Read... [09:25:43]Read from MH i2c: E2 17 00 [09:25:43]MH_I2C_Read... [09:25:43]Read from MH i2c: E2 17 00 CF 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 B2 [09:25:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [09:25:43]wFMCommunicate OK [09:25:43]CreateOFDProtocolMessage done [09:25:43]OFDSenderStorePacket 104115 [09:25:43]StoreOFDPacket docnum=104115 [09:25: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 D7 FD 08 01 1F 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 94 BB 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 72 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 91 00 00 00 00 07 04 06 00 30 57 05 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 19 47 75 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 B3 96 01 00 35 04 06 00 5B 16 05 09 99 D8 C6 0B 99 79 0C 23 2F 62 [09:25:43]CheckFolder [09:25:43]dirname=/storage/ofd_packets [09:25:43]CheckFolder done [09:25:43]ProducePacketName [09:25:43]name=ofd_packets/00104115 [09:25:43]NVStorageSaveData ofd_packets/00104115 [09:25:43]File name is /storage/ofd_packets/00104115 [09:25:43]Write 302 bytes [09:25:43]NVStorageSaveData done [09:25:43]OFDSenderStorePacket done [09:25:43]KKMCreateOFDPacket done [09:25:43]NVStorageSaveData kkm_last_timestamp [09:25:43]File name is /storage/kkm_last_timestamp [09:25:43]Write 4 bytes [09:25:43]NVStorageSaveData done [09:25:43]ExternCall_PrintAddStr [09:25:43]wPrintStart [09:25:43]Write to MH i2c: 01 00 00 D0 16 E6 [09:25:43]Write i2c OK [09:25:43]MH_I2C_Read... [09:25:43]Read from MH i2c: 01 [09:25:43]MH_I2C_Read... [09:25:43]Read from MH i2c: 01 07 00 [09:25:43]MH_I2C_Read... [09:25:43]Read from MH i2c: 01 07 00 D0 16 00 00 00 00 00 FF 0F FB [09:25:43]RasterBufferAndPrint [09:25:43]line Счет N : (1)673509 [09:25:43]line ИНН: 02508201610067 [09:25:43]line Контрольно-Кассовый Чек [09:25:43]line ПРОДАЖА [09:25:43]line ТРК (МРК, ГНК) : 11 [09:25:43]line Товар: 2710194210 [09:25:43]line ДТ(л)-К-5 [09:25:43]line 48.020 * 72.90 [09:25:43]line = 3500.66 [09:25:43]line НДС 12% НСП 1% [09:25:43]line > о реализуемом товаре [09:25:43]line ОКРУГЛЕНИЕ: -0.66 [09:25:43]line ИТОГО: 3500.00 [09:25:43]line Внесено: 3500.00 [09:25:43]line СДАЧА: 0.00 [09:25:43]line НСП 1% : 30.98 [09:25:43]line НДС 12% : 371.75 [09:25:43]line Наличными: 3500.00 [09:25:43]line Безнал.: 0.00 [09:25:43]line Место: АЗС № 120 "Партнер Нефть" [09:25:43]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [09:25:43]line СНО: Общий режим [09:25:43]line Чек 38 21.06.2024 09:25 [09:25:43]line Смена: 355 ФФД: 1.0 [09:25:43]line ЗНМ: 0300000164 [09:25:43]line РНМ: 0000000000092785 [09:25:43]line Версия ККМ: 001 [09:25:43]line ФМ: 0000000000875093 [09:25:43]line ФД: 104115 [09:25:43]line ФПД: 100150131923416 [09:25:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T092545&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104115&fm=100150131923416&tin=02508201610067®Number=0000000000092785&sum=350000 [09:25:43]OFD Sender: Processing packet 104115 [packets to send 17, broken 16] [09:25:43]ProducePacketName [09:25:43]name=ofd_packets/00104115 [09:25:43]OFD Sender: To server: pG, [09:25:43]CommunicateWithHost lk.salyk.kg:30040 [09:25:43]ConnectInit lk.salyk.kg [09:25:43]written 0, free lines is 4095 [09:25:43]Connected sock=10 [09:25: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 D7 FD 08 01 1F 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 94 BB 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 72 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 91 00 00 00 00 07 04 06 00 30 57 05 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 19 47 75 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 B3 96 01 00 35 04 06 00 5B 16 05 09 99 D8 C6 0B 99 79 0C 23 2F 62 [09:25: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 87 E7 47 00 F8 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 B3 96 01 00 F4 03 04 00 9C ED 74 66 B6 04 01 00 00 EE 00 2A 82 3B 89 E5 94 [09:25:44]CommunicateWithHost err = 0 [09:25:44]CheckOFDResponse [09:25:44]1017 (14) - 77093643461234 [09:25:44]1041 (16) - 0000000000875093 [09:25:44]1040 (4) - 104115 [09:25:44]1012 (4) - 21.06.2024 03:03 [09:25:44]1206 (1) - 0 [09:25:44]OFD Sender: Remove packet 104115 [09:25:44]ProducePacketName [09:25:44]name=ofd_packets/00104115 [09:25:44]NVStorageDeleteData [09:25:44]Write to MH i2c: 01 00 00 FB 16 11 [09:25:44]Write i2c OK [09:25:44]MH_I2C_Read... [09:25:44]Read from MH i2c: 01 [09:25:44]MH_I2C_Read... [09:25:44]Read from MH i2c: 01 07 00 [09:25:44]MH_I2C_Read... [09:25:44]Read from MH i2c: 01 07 00 FB 16 00 00 00 00 00 DA 0C FE [09:25:44]RasterBufferAndPrint [09:25:44]line [09:25:44]line [09:25:44]line [09:25:44]line [09:25:44]line [09:25:44]written 0, free lines is 3297 [09:25:44]MH_Cut [09:25:44]Write to MH i2c: D1 01 00 02 17 01 EB [09:25:44]Write i2c OK [09:25:44]MH_I2C_Read... [09:25:44]Read from MH i2c: D1 [09:25:44]MH_I2C_Read... [09:25:44]Read from MH i2c: D1 01 00 [09:25:44]MH_I2C_Read... [09:25:44]Read from MH i2c: D1 01 00 02 17 00 EA [09:25:44]Write to MH i2c: 01 00 00 03 17 1A [09:25:44]Write i2c OK [09:25:44]MH_I2C_Read... [09:25:44]OFD Sender: No OFD packet to send [09:25:45]*** Cut start [09:25:45]*** Partial cut [09:25:45]*** CUTSNS_PIN = 1 [09:25:45]*** CUTSNS_PIN = 0 [09:25:45]*** Brake cut motor [09:25:45]Read from MH i2c: 01 [09:25:45]MH_I2C_Read... [09:25:45]*** Stop cut motor [09:25:45]*** Cut end [09:25:45]Read from MH i2c: 01 07 00 [09:25:45]MH_I2C_Read... [09:25:45]Read from MH i2c: 01 07 00 03 17 00 00 00 00 00 FF 0F 2F [09:25:45]process_action close_receipt done [09:25:45]requested_data is exist [09:25:45]produce_requested_data [09:25:45]requested_item fm.sn is exist - process it [09:25:45]wFMCommunicate request_size=4 [09:25:45]MH_SAM_APDU [09:25:45]CAPDU: 80 11 00 00 [09:25:45]Write to MH i2c: E2 08 00 04 17 80 11 00 00 00 00 00 00 95 [09:25:45]Write i2c OK [09:25:45]MH_I2C_Read... [09:25:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:25:45]Read from MH i2c: E2 [09:25:45]MH_I2C_Read... [09:25:45]Read from MH i2c: E2 17 00 [09:25:45]MH_I2C_Read... [09:25:45]Read from MH i2c: E2 17 00 04 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 E8 [09:25:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [09:25:45]wFMCommunicate OK [09:25:45]requested_item fd.num is exist - process it [09:25:45]SAM_PROTO_GetFieldsCounters [09:25:45]wFMCommunicate request_size=4 [09:25:45]MH_SAM_APDU [09:25:45]CAPDU: 80 13 00 00 [09:25:45]Write to MH i2c: E2 08 00 05 17 80 13 00 00 00 00 00 00 98 [09:25:45]Write i2c OK [09:25:45]MH_I2C_Read... [09:25:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:25:45]Read from MH i2c: E2 [09:25:45]MH_I2C_Read... [09:25:45]Read from MH i2c: E2 62 00 [09:25:45]MH_I2C_Read... [09:25:45]Read from MH i2c: E2 62 00 05 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 B3 96 01 00 0E 04 04 00 63 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 DF [09:25: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 B3 96 01 00 0E 04 04 00 63 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:25:45]wFMCommunicate OK [09:25:45]SAM_PROTO_GetFieldsCounters done [09:25:45]requested_item shift.num is exist - process it [09:25:45]requested_item shift.opened is exist - process it [09:25:45]req_shift_opened [09:25:45]FM_GetShiftState [09:25:45]SAM_PROTO_GetShiftState [09:25:45]wFMCommunicate request_size=4 [09:25:45]MH_SAM_APDU [09:25:45]CAPDU: 80 13 01 00 [09:25:45]Write to MH i2c: E2 08 00 06 17 80 13 01 00 00 00 00 00 9A [09:25:45]Write i2c OK [09:25:45]MH_I2C_Read... [09:25:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:25:45]Read from MH i2c: E2 [09:25:45]MH_I2C_Read... [09:25:45]Read from MH i2c: E2 0E 00 [09:25:45]MH_I2C_Read... [09:25:45]Read from MH i2c: E2 0E 00 06 17 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 AD [09:25:45]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [09:25:45]wFMCommunicate OK [09:25:45]SAM_PROTO_GetShiftState done [09:25:45]FM_GetShiftState done [09:25:45]req_shift_opened done [09:25:45]requested_item shift.open_date is exist - process it [09:25:45]req_shift_open_date [09:25:45]req_shift_open_date done [09:25:45]produce_requested_data done [09:25:45]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104115,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [09:25:45]process_action_free close_receipt [09:25:45]json_value_free [09:25:45]json_value_free done [09:25:45]process_json_proto returns [09:25:45]Send response to host [09:25:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104115,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [09:25:45]free response buf [09:25:45]execute_script done [09:25:45]execute_script returns [09:25:45]free content buf [09:25:45]Sock 9.Close socket [09:25:45]Sock 9.Thread stoped [09:25:49]OFD Sender: No OFD packet to send [09:25:54]OFD Sender: No OFD packet to send [09:25:59]OFD Sender: No OFD packet to send [09:26:04]OFD Sender: No OFD packet to send [09:26:09]OFD Sender: No OFD packet to send [09:26:14]OFD Sender: No OFD packet to send [09:26:19]OFD Sender: No OFD packet to send [09:26:24]OFD Sender: No OFD packet to send [09:26:29]OFD Sender: No OFD packet to send [09:26:34]OFD Sender: No OFD packet to send [09:26:39]OFD Sender: No OFD packet to send [09:26:44]OFD Sender: No OFD packet to send [09:26:49]OFD Sender: No OFD packet to send [09:26:54]OFD Sender: No OFD packet to send [09:26:59]OFD Sender: No OFD packet to send [09:27:04]OFD Sender: No OFD packet to send [09:27:09]OFD Sender: No OFD packet to send [09:27:11]accept exits with 7 [09:27:11]New connection [09:27:11]New thread 3066715492 created [09:27:11]Thread 3066858852 joined [09:27:11]Waiting for new connection... [09:27:11] Sock 7.Parse request [09:27:11]Sock 7.Check first char [09:27:11]Sock 7.First char is OK [09:27:11]request: POST /json_proto HTTP/1.0 [09:27:11]Method: POST [09:27:11]URL: /json_proto [09:27:11]Method is POST - this is cgi request [09:27:11]url: /json_proto [09:27:11]query_string will be loaded in cgi processing [09:27:11]execute_cgi json_proto POST (null) [09:27:11]execute_cgi path=json_proto method=POST [09:27:11]POST find Content-Length [09:27:11]Host: 172.17.38.133:8080 [09:27:11]Content-Length: 678 [09:27:11]Content-Type: application/json [09:27:11] [09:27:11]POST finish read [09:27:11]Found Content-Length = 678 [09:27:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673511", "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" ] } } [09:27:11]execute_script... [09:27: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)673511", "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" ] } } [09:27:11]POST & json_proto [09:27:11]process_json_proto [09:27:11]json parsed OK: [09:27:11]protocol is kg_v1.0 [09:27:11]action value=close_receipt [09:27:11]process_action close_receipt [09:27:11]cmd_close_receipt [09:27:11]MH_GetDate [09:27:11]Write to MH i2c: F0 00 00 07 17 0D [09:27:11]Write i2c OK [09:27:11]MH_I2C_Read... [09:27:11]Read from MH i2c: F0 [09:27:11]MH_I2C_Read... [09:27:11]Read from MH i2c: F0 09 00 [09:27:11]MH_I2C_Read... [09:27:11]Read from MH i2c: F0 09 00 07 17 00 73 47 75 66 BD 8F 7C 64 D7 [09:27:11]GetLastDocTimeStamp 1718961945 [09:27:11]current date 1718962035 [09:27:11]FM_GetShiftState [09:27:11]SAM_PROTO_GetShiftState [09:27:11]wFMCommunicate request_size=4 [09:27:11]MH_SAM_APDU [09:27:11]CAPDU: 80 13 01 00 [09:27:11]Write to MH i2c: E2 08 00 08 17 80 13 01 00 00 00 00 00 9C [09:27:11]Write i2c OK [09:27:11]MH_I2C_Read... [09:27:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:27:11]Read from MH i2c: E2 [09:27:11]MH_I2C_Read... [09:27:11]Read from MH i2c: E2 0E 00 [09:27:11]MH_I2C_Read... [09:27:11]Read from MH i2c: E2 0E 00 08 17 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 AF [09:27:11]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [09:27:11]wFMCommunicate OK [09:27:11]SAM_PROTO_GetShiftState done [09:27:11]FM_GetShiftState done [09:27:11]opened in 1718929509 [09:27:11]opened+sec_in_day 1719015909 [09:27:11]quantity*price = 70052 [09:27:11]sum+1 = 70053 [09:27:11]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 СНО: Общий режим Чек 39 21.06.2024 09:27 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104116 ФПД: 230707333914250 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T092715&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104116&fm=230707333914250&tin=02508201610067®Number=0000000000092785&sum=70000 [09:27:12]StoreToDocumentArchive [09:27:12]shift 355 fd 104116 [09:27:12]save to /storage/0355/doc_00104116 [09:27:12]save last doc name /storage/0355/doc_00104116 to /storage/kkm_last_doc_name [09:27:12]save OK [09:27:12]Clear old archive folders... [09:27:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:27:12]tlvbuf is B6E91090 [09:27:12]SAM_PROTO_ClearQueue [09:27:12]wFMCommunicate request_size=4 [09:27:12]MH_SAM_APDU [09:27:12]CAPDU: 80 09 00 00 [09:27:12]Write to MH i2c: E2 08 00 15 17 80 09 00 00 00 00 00 00 9E [09:27:12]Write i2c OK [09:27:12]MH_I2C_Read... [09:27:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:27:12]Read from MH i2c: E2 [09:27:12]MH_I2C_Read... [09:27:12]Read from MH i2c: E2 03 00 [09:27:12]MH_I2C_Read... [09:27:12]Read from MH i2c: E2 03 00 15 17 00 90 00 A0 [09:27:12]RAPDU: 90 00 [09:27:12]wFMCommunicate OK [09:27:12]SAM_PROTO_ClearQueue done [09:27:12]KKMCreateOFDPacket [09:27:12]OFDProtocolAddRootSTLVToBuf [09:27:12]FM_MakeSignedData [09:27:12]FM_MakeSignedData [09:27:12]SAM_PROTO_SignData [09:27:12]wFMCommunicate request_size=4 [09:27:12]MH_SAM_APDU [09:27:12]CAPDU: 80 0D 01 02 [09:27:12]Write to MH i2c: E2 08 00 16 17 80 0D 01 02 00 00 00 00 A6 [09:27:12]Write i2c OK [09:27:12]MH_I2C_Read... [09:27:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:27:12]Read from MH i2c: E2 [09:27:12]MH_I2C_Read... [09:27:12]Read from MH i2c: E2 03 00 [09:27:12]MH_I2C_Read... [09:27:12]Read from MH i2c: E2 03 00 16 17 00 90 00 A1 [09:27:12]RAPDU: 90 00 [09:27:12]wFMCommunicate OK [09:27:12]wFMCommunicate request_size=255 [09:27:12]MH_SAM_APDU [09:27: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 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 27 00 00 00 F4 03 04 00 73 47 75 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 B4 96 01 00 35 04 06 00 D1 [09:27:12]Write to MH i2c: E2 02 01 17 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 27 00 00 00 F4 03 04 00 73 47 75 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 B4 96 01 00 35 04 06 00 D1 00 00 AE [09:27:12]Write i2c OK [09:27:12]MH_I2C_Read... [09:27:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:27:13]Read from MH i2c: E2 [09:27:13]MH_I2C_Read... [09:27:13]Read from MH i2c: E2 03 00 [09:27:13]MH_I2C_Read... [09:27:13]Read from MH i2c: E2 03 00 17 17 00 90 00 A2 [09:27:13]RAPDU: 90 00 [09:27:13]wFMCommunicate OK [09:27:13]wFMCommunicate request_size=10 [09:27:13]MH_SAM_APDU [09:27:13]CAPDU: 80 0D 02 02 05 D3 BC AF 5E 8A [09:27:13]Write to MH i2c: E2 0D 00 18 17 80 0D 02 02 05 00 D3 BC AF 5E 8A 00 00 D9 [09:27:13]Write i2c OK [09:27:13]MH_I2C_Read... [09:27:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:27:13]Read from MH i2c: E2 [09:27:13]MH_I2C_Read... [09:27:13]Read from MH i2c: E2 03 00 [09:27:13]MH_I2C_Read... [09:27:13]Read from MH i2c: E2 03 00 18 17 00 90 00 A3 [09:27:13]RAPDU: 90 00 [09:27:13]wFMCommunicate OK [09:27:13]wFMCommunicate request_size=4 [09:27:13]MH_SAM_APDU [09:27:13]CAPDU: 80 0D 03 02 [09:27:13]Write to MH i2c: E2 08 00 19 17 80 0D 03 02 00 00 00 00 AB [09:27:13]Write i2c OK [09:27:13]MH_I2C_Read... [09:27:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:27:13]Read from MH i2c: E2 [09:27:13]MH_I2C_Read... [09:27:13]Read from MH i2c: E2 0B 00 [09:27:13]MH_I2C_Read... [09:27:13]Read from MH i2c: E2 0B 00 19 17 00 51 94 35 DF DD 24 B3 85 90 00 DE [09:27:13]RAPDU: 51 94 35 DF DD 24 B3 85 90 00 [09:27:13]wFMCommunicate OK [09:27:13]SAM_PROTO_SignData done [09:27:13]FM_MakeSignedData done [09:27:13]CreateOFDProtocolMessage [09:27:13]wFMCommunicate request_size=4 [09:27:13]MH_SAM_APDU [09:27:13]CAPDU: 80 11 00 00 [09:27:13]Write to MH i2c: E2 08 00 1A 17 80 11 00 00 00 00 00 00 AB [09:27:13]Write i2c OK [09:27:13]MH_I2C_Read... [09:27:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:27:13]Read from MH i2c: E2 [09:27:13]MH_I2C_Read... [09:27:13]Read from MH i2c: E2 17 00 [09:27:13]MH_I2C_Read... [09:27:13]Read from MH i2c: E2 17 00 1A 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 FE [09: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 [09:27:13]wFMCommunicate OK [09:27:13]CreateOFDProtocolMessage done [09:27:13]OFDSenderStorePacket 104116 [09:27:13]StoreOFDPacket docnum=104116 [09:27: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 09 A0 07 01 BE C2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 27 00 00 00 F4 03 04 00 73 47 75 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 B4 96 01 00 35 04 06 00 D1 D3 BC AF 5E 8A 51 94 35 DF DD 24 B3 85 [09:27:13]CheckFolder [09:27:13]dirname=/storage/ofd_packets [09:27:13]CheckFolder done [09:27:13]ProducePacketName [09:27:13]name=ofd_packets/00104116 [09:27:13]NVStorageSaveData ofd_packets/00104116 [09:27:13]File name is /storage/ofd_packets/00104116 [09:27:13]Write 301 bytes [09:27:13]NVStorageSaveData done [09:27:13]OFDSenderStorePacket done [09:27:13]KKMCreateOFDPacket done [09:27:13]NVStorageSaveData kkm_last_timestamp [09:27:13]File name is /storage/kkm_last_timestamp [09:27:13]Write 4 bytes [09:27:13]NVStorageSaveData done [09:27:13]ExternCall_PrintAddStr [09:27:13]wPrintStart [09:27:13]Write to MH i2c: 01 00 00 1B 17 32 [09:27:13]Write i2c OK [09:27:13]MH_I2C_Read... [09:27:13]Read from MH i2c: 01 [09:27:13]MH_I2C_Read... [09:27:13]Read from MH i2c: 01 07 00 [09:27:13]MH_I2C_Read... [09:27:13]Read from MH i2c: 01 07 00 1B 17 00 00 00 00 00 FF 0F 47 [09:27:13]RasterBufferAndPrint [09:27:13]line Счет N : (1)673511 [09:27:13]line ИНН: 02508201610067 [09:27:13]line Контрольно-Кассовый Чек [09:27:13]line ПРОДАЖА [09:27:13]line ТРК (МРК, ГНК) : 42 [09:27:13]line Товар: 2710124130 [09:27:13]line Аи-92-К-5 [09:27:13]line 10.550 * 66.40 [09:27:13]line = 700.52 [09:27:13]line НДС 12% НСП 1% [09:27:13]line > о реализуемом товаре [09:27:13]line ОКРУГЛЕНИЕ: -0.52 [09:27:13]line ИТОГО: 700.00 [09:27:13]line Внесено: 700.00 [09:27:13]line СДАЧА: 0.00 [09:27:13]line НСП 1% : 6.20 [09:27:13]line НДС 12% : 74.39 [09:27:13]line Наличными: 700.00 [09:27:13]line Безнал.: 0.00 [09:27:13]line Место: АЗС № 120 "Партнер Нефть" [09:27:13]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [09:27:13]line СНО: Общий режим [09:27:13]line Чек 39 21.06.2024 09:27 [09:27:13]line Смена: 355 ФФД: 1.0 [09:27:13]line ЗНМ: 0300000164 [09:27:13]line РНМ: 0000000000092785 [09:27:13]line Версия ККМ: 001 [09:27:13]line ФМ: 0000000000875093 [09:27:13]line ФД: 104116 [09:27:13]line ФПД: 230707333914250 [09:27:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T092715&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104116&fm=230707333914250&tin=02508201610067®Number=0000000000092785&sum=70000 [09:27:13]OFD Sender: Processing packet 104116 [packets to send 17, broken 16] [09:27:13]ProducePacketName [09:27:13]name=ofd_packets/00104116 [09:27:13]OFD Sender: To server: pG, [09:27:13]CommunicateWithHost lk.salyk.kg:30040 [09:27:13]ConnectInit lk.salyk.kg [09:27:13]written 0, free lines is 4095 [09:27:13]Connected sock=10 [09:27: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 09 A0 07 01 BE C2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 27 00 00 00 F4 03 04 00 73 47 75 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 B4 96 01 00 35 04 06 00 D1 D3 BC AF 5E 8A 51 94 35 DF DD 24 B3 85 [09:27: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 2E 6C 47 00 A6 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 B4 96 01 00 F4 03 04 00 F6 ED 74 66 B6 04 01 00 00 28 C5 FF 4B 34 5B C8 C9 [09:27:13]CommunicateWithHost err = 0 [09:27:13]CheckOFDResponse [09:27:13]1017 (14) - 77093643461234 [09:27:13]1041 (16) - 0000000000875093 [09:27:13]1040 (4) - 104116 [09:27:13]1012 (4) - 21.06.2024 03:05 [09:27:13]1206 (1) - 0 [09:27:13]OFD Sender: Remove packet 104116 [09:27:13]ProducePacketName [09:27:13]name=ofd_packets/00104116 [09:27:13]NVStorageDeleteData [09:27:13]Write to MH i2c: 01 00 00 46 17 5D [09:27:13]Write i2c OK [09:27:13]MH_I2C_Read... [09:27:13]Read from MH i2c: 01 [09:27:13]MH_I2C_Read... [09:27:13]Read from MH i2c: 01 07 00 [09:27:13]MH_I2C_Read... [09:27:13]Read from MH i2c: 01 07 00 46 17 00 00 00 00 00 D0 0C 40 [09:27:13]RasterBufferAndPrint [09:27:13]line [09:27:13]line [09:27:13]line [09:27:13]line [09:27:13]line [09:27:13]written 0, free lines is 3288 [09:27:13]MH_Cut [09:27:13]Write to MH i2c: D1 01 00 4D 17 01 36 [09:27:13]Write i2c OK [09:27:13]MH_I2C_Read... [09:27:13]Read from MH i2c: D1 [09:27:13]MH_I2C_Read... [09:27:13]Read from MH i2c: D1 01 00 [09:27:13]MH_I2C_Read... [09:27:13]Read from MH i2c: D1 01 00 4D 17 00 35 [09:27:13]Write to MH i2c: 01 00 00 4E 17 65 [09:27:13]Write i2c OK [09:27:13]MH_I2C_Read... [09:27:14]OFD Sender: No OFD packet to send [09:27:14]*** Cut start [09:27:14]*** Partial cut [09:27:14]*** CUTSNS_PIN = 1 [09:27:14]*** CUTSNS_PIN = 0 [09:27:14]*** Brake cut motor [09:27:15]Read from MH i2c: 01 [09:27:15]MH_I2C_Read... [09:27:15]*** Stop cut motor [09:27:15]*** Cut end [09:27:15]Read from MH i2c: 01 07 00 [09:27:15]MH_I2C_Read... [09:27:15]Read from MH i2c: 01 07 00 4E 17 00 00 00 00 00 FF 0F 7A [09:27:15]process_action close_receipt done [09:27:15]requested_data is exist [09:27:15]produce_requested_data [09:27:15]requested_item fm.sn is exist - process it [09:27:15]wFMCommunicate request_size=4 [09:27:15]MH_SAM_APDU [09:27:15]CAPDU: 80 11 00 00 [09:27:15]Write to MH i2c: E2 08 00 4F 17 80 11 00 00 00 00 00 00 E0 [09:27:15]Write i2c OK [09:27:15]MH_I2C_Read... [09:27:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:27:15]Read from MH i2c: E2 [09:27:15]MH_I2C_Read... [09:27:15]Read from MH i2c: E2 17 00 [09:27:15]MH_I2C_Read... [09:27:15]Read from MH i2c: E2 17 00 4F 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 33 [09:27:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [09:27:15]wFMCommunicate OK [09:27:15]requested_item fd.num is exist - process it [09:27:15]SAM_PROTO_GetFieldsCounters [09:27:15]wFMCommunicate request_size=4 [09:27:15]MH_SAM_APDU [09:27:15]CAPDU: 80 13 00 00 [09:27:15]Write to MH i2c: E2 08 00 50 17 80 13 00 00 00 00 00 00 E3 [09:27:15]Write i2c OK [09:27:15]MH_I2C_Read... [09:27:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:27:15]Read from MH i2c: E2 [09:27:15]MH_I2C_Read... [09:27:15]Read from MH i2c: E2 62 00 [09:27:15]MH_I2C_Read... [09:27:15]Read from MH i2c: E2 62 00 50 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 B4 96 01 00 0E 04 04 00 63 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 2E [09:27: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 B4 96 01 00 0E 04 04 00 63 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:27:15]wFMCommunicate OK [09:27:15]SAM_PROTO_GetFieldsCounters done [09:27:15]requested_item shift.num is exist - process it [09:27:15]requested_item shift.opened is exist - process it [09:27:15]req_shift_opened [09:27:15]FM_GetShiftState [09:27:15]SAM_PROTO_GetShiftState [09:27:15]wFMCommunicate request_size=4 [09:27:15]MH_SAM_APDU [09:27:15]CAPDU: 80 13 01 00 [09:27:15]Write to MH i2c: E2 08 00 51 17 80 13 01 00 00 00 00 00 E5 [09:27:15]Write i2c OK [09:27:15]MH_I2C_Read... [09:27:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:27:15]Read from MH i2c: E2 [09:27:15]MH_I2C_Read... [09:27:15]Read from MH i2c: E2 0E 00 [09:27:15]MH_I2C_Read... [09:27:15]Read from MH i2c: E2 0E 00 51 17 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 F8 [09:27:15]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [09:27:15]wFMCommunicate OK [09:27:15]SAM_PROTO_GetShiftState done [09:27:15]FM_GetShiftState done [09:27:15]req_shift_opened done [09:27:15]requested_item shift.open_date is exist - process it [09:27:15]req_shift_open_date [09:27:15]req_shift_open_date done [09:27:15]produce_requested_data done [09:27:15]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104116,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [09:27:15]process_action_free close_receipt [09:27:15]json_value_free [09:27:15]json_value_free done [09:27:15]process_json_proto returns [09:27:15]Send response to host [09:27:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104116,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [09:27:15]free response buf [09:27:15]execute_script done [09:27:15]execute_script returns [09:27:15]free content buf [09:27:15]Sock 7.Close socket [09:27:15]Sock 7.Thread stoped [09:27:19]OFD Sender: No OFD packet to send [09:27:24]OFD Sender: No OFD packet to send [09:27:29]OFD Sender: No OFD packet to send [09:27:34]OFD Sender: No OFD packet to send [09:27:39]OFD Sender: No OFD packet to send [09:27:44]OFD Sender: No OFD packet to send [09:27:49]OFD Sender: No OFD packet to send [09:27:54]OFD Sender: No OFD packet to send [09:27:59]OFD Sender: No OFD packet to send [09:28:04]OFD Sender: No OFD packet to send [09:28:09]OFD Sender: No OFD packet to send [09:28:14]OFD Sender: No OFD packet to send [09:28:19]OFD Sender: No OFD packet to send [09:28:24]OFD Sender: No OFD packet to send [09:28:29]OFD Sender: No OFD packet to send [09:28:34]OFD Sender: No OFD packet to send [09:28:39]OFD Sender: No OFD packet to send [09:28:44]OFD Sender: No OFD packet to send [09:28:49]OFD Sender: No OFD packet to send [09:28:54]OFD Sender: No OFD packet to send [09:28:59]OFD Sender: No OFD packet to send [09:29:04]OFD Sender: No OFD packet to send [09:29:09]OFD Sender: No OFD packet to send [09:29:14]OFD Sender: No OFD packet to send [09:29:19]OFD Sender: No OFD packet to send [09:29:24]OFD Sender: No OFD packet to send [09:29:29]OFD Sender: No OFD packet to send [09:29:34]OFD Sender: No OFD packet to send [09:29:39]OFD Sender: No OFD packet to send [09:29:44]OFD Sender: No OFD packet to send [09:29:49]OFD Sender: No OFD packet to send [09:29:54]OFD Sender: No OFD packet to send [09:29:59]OFD Sender: No OFD packet to send [09:30:04]OFD Sender: No OFD packet to send [09:30:09]OFD Sender: No OFD packet to send [09:30:14]OFD Sender: No OFD packet to send [09:30:19]OFD Sender: No OFD packet to send [09:30:24]OFD Sender: No OFD packet to send [09:30:29]OFD Sender: No OFD packet to send [09:30:34]OFD Sender: No OFD packet to send [09:30:39]OFD Sender: No OFD packet to send [09:30:44]OFD Sender: No OFD packet to send [09:30:49]OFD Sender: No OFD packet to send [09:30:54]OFD Sender: No OFD packet to send [09:30:59]OFD Sender: No OFD packet to send [09:31:04]OFD Sender: No OFD packet to send [09:31:09]OFD Sender: No OFD packet to send [09:31:14]OFD Sender: No OFD packet to send [09:31:19]OFD Sender: No OFD packet to send [09:31:24]OFD Sender: No OFD packet to send [09:31:29]OFD Sender: No OFD packet to send [09:31:34]OFD Sender: No OFD packet to send [09:31:39]OFD Sender: No OFD packet to send [09:31:44]OFD Sender: No OFD packet to send [09:31:49]OFD Sender: No OFD packet to send [09:31:54]OFD Sender: No OFD packet to send [09:31:59]OFD Sender: No OFD packet to send [09:32:04]OFD Sender: No OFD packet to send [09:32:09]OFD Sender: No OFD packet to send [09:32:14]OFD Sender: No OFD packet to send [09:32:19]OFD Sender: No OFD packet to send [09:32:24]OFD Sender: No OFD packet to send [09:32:29]OFD Sender: No OFD packet to send [09:32:34]OFD Sender: No OFD packet to send [09:32:39]OFD Sender: No OFD packet to send [09:32:44]OFD Sender: No OFD packet to send [09:32:49]OFD Sender: No OFD packet to send [09:32:54]OFD Sender: No OFD packet to send [09:32:59]OFD Sender: No OFD packet to send [09:33:04]OFD Sender: No OFD packet to send [09:33:09]OFD Sender: No OFD packet to send [09:33:14]OFD Sender: No OFD packet to send [09:33:19]OFD Sender: No OFD packet to send [09:33:24]OFD Sender: No OFD packet to send [09:33:29]OFD Sender: No OFD packet to send [09:33:34]OFD Sender: No OFD packet to send [09:33:39]OFD Sender: No OFD packet to send [09:33:44]OFD Sender: No OFD packet to send [09:33:49]OFD Sender: No OFD packet to send [09:33:54]OFD Sender: No OFD packet to send [09:33:59]OFD Sender: No OFD packet to send [09:34:04]OFD Sender: No OFD packet to send [09:34:09]OFD Sender: No OFD packet to send [09:34:14]OFD Sender: No OFD packet to send [09:34:19]OFD Sender: No OFD packet to send [09:34:24]OFD Sender: No OFD packet to send [09:34:29]OFD Sender: No OFD packet to send [09:34:34]OFD Sender: No OFD packet to send [09:34:39]OFD Sender: No OFD packet to send [09:34:44]OFD Sender: No OFD packet to send [09:34:49]OFD Sender: No OFD packet to send [09:34:54]OFD Sender: No OFD packet to send [09:34:59]OFD Sender: No OFD packet to send [09:35:04]OFD Sender: No OFD packet to send [09:35:06]accept exits with 9 [09:35:06]New connection [09:35:06]New thread 3066858852 created [09:35:06]Thread 3066715492 joined [09:35:06]Waiting for new connection... [09:35:06] Sock 9.Parse request [09:35:06]Sock 9.Check first char [09:35:06]Sock 9.First char is OK [09:35:06]request: POST /json_proto HTTP/1.0 [09:35:06]Method: POST [09:35:06]URL: /json_proto [09:35:06]Method is POST - this is cgi request [09:35:06]url: /json_proto [09:35:06]query_string will be loaded in cgi processing [09:35:06]execute_cgi json_proto POST (null) [09:35:06]execute_cgi path=json_proto method=POST [09:35:06]POST find Content-Length [09:35:06]Host: 172.17.38.133:8080 [09:35:06]Content-Length: 687 [09:35:06]Content-Type: application/json [09:35:06] [09:35:06]POST finish read [09:35:06]Found Content-Length = 687 [09:35:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673513", "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" : 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" ] } } [09:35:06]execute_script... [09:35: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)673513", "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" : 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" ] } } [09:35:06]POST & json_proto [09:35:06]process_json_proto [09:35:06]json parsed OK: [09:35:06]protocol is kg_v1.0 [09:35:06]action value=close_receipt [09:35:06]process_action close_receipt [09:35:06]cmd_close_receipt [09:35:06]MH_GetDate [09:35:06]Write to MH i2c: F0 00 00 52 17 58 [09:35:06]Write i2c OK [09:35:06]MH_I2C_Read... [09:35:06]Read from MH i2c: F0 [09:35:06]MH_I2C_Read... [09:35:06]Read from MH i2c: F0 09 00 [09:35:06]MH_I2C_Read... [09:35:06]Read from MH i2c: F0 09 00 52 17 00 4E 49 75 66 BD 8F 7C 64 FF [09:35:06]GetLastDocTimeStamp 1718962035 [09:35:06]current date 1718962510 [09:35:06]FM_GetShiftState [09:35:06]SAM_PROTO_GetShiftState [09:35:06]wFMCommunicate request_size=4 [09:35:06]MH_SAM_APDU [09:35:06]CAPDU: 80 13 01 00 [09:35:06]Write to MH i2c: E2 08 00 53 17 80 13 01 00 00 00 00 00 E7 [09:35:06]Write i2c OK [09:35:06]MH_I2C_Read... [09:35:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:35:06]Read from MH i2c: E2 [09:35:06]MH_I2C_Read... [09:35:06]Read from MH i2c: E2 0E 00 [09:35:06]MH_I2C_Read... [09:35:06]Read from MH i2c: E2 0E 00 53 17 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 FA [09:35:06]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [09:35:06]wFMCommunicate OK [09:35:06]SAM_PROTO_GetShiftState done [09:35:06]FM_GetShiftState done [09:35:06]opened in 1718929509 [09:35:06]opened+sec_in_day 1719015909 [09:35:06]quantity*price = 200037 [09:35:06]sum+1 = 200039 [09:35:06]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 СНО: Общий режим Чек 40 21.06.2024 09:35 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104117 ФПД: 77565176076732 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T093510&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104117&fm=77565176076732&tin=02508201610067®Number=0000000000092785&sum=200000 [09:35:07]StoreToDocumentArchive [09:35:07]shift 355 fd 104117 [09:35:07]save to /storage/0355/doc_00104117 [09:35:07]save last doc name /storage/0355/doc_00104117 to /storage/kkm_last_doc_name [09:35:07]save OK [09:35:07]Clear old archive folders... [09:35:07]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:35:07]tlvbuf is 0113F0B0 [09:35:07]SAM_PROTO_ClearQueue [09:35:07]wFMCommunicate request_size=4 [09:35:07]MH_SAM_APDU [09:35:07]CAPDU: 80 09 00 00 [09:35:07]Write to MH i2c: E2 08 00 60 17 80 09 00 00 00 00 00 00 E9 [09:35:07]Write i2c OK [09:35:07]MH_I2C_Read... [09:35:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:35:07]Read from MH i2c: E2 [09:35:07]MH_I2C_Read... [09:35:07]Read from MH i2c: E2 03 00 [09:35:07]MH_I2C_Read... [09:35:07]Read from MH i2c: E2 03 00 60 17 00 90 00 EB [09:35:07]RAPDU: 90 00 [09:35:07]wFMCommunicate OK [09:35:07]SAM_PROTO_ClearQueue done [09:35:07]KKMCreateOFDPacket [09:35:07]OFDProtocolAddRootSTLVToBuf [09:35:07]FM_MakeSignedData [09:35:07]FM_MakeSignedData [09:35:07]SAM_PROTO_SignData [09:35:07]wFMCommunicate request_size=4 [09:35:07]MH_SAM_APDU [09:35:07]CAPDU: 80 0D 01 02 [09:35:07]Write to MH i2c: E2 08 00 61 17 80 0D 01 02 00 00 00 00 F1 [09:35:07]Write i2c OK [09:35:07]MH_I2C_Read... [09:35:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:35:07]Read from MH i2c: E2 [09:35:07]MH_I2C_Read... [09:35:07]Read from MH i2c: E2 03 00 [09:35:07]MH_I2C_Read... [09:35:07]Read from MH i2c: E2 03 00 61 17 00 90 00 EC [09:35:07]RAPDU: 90 00 [09:35:07]wFMCommunicate OK [09:35:07]wFMCommunicate request_size=255 [09:35:07]MH_SAM_APDU [09:35: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 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 28 00 00 00 F4 03 04 00 4E 49 75 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 B5 96 01 00 35 04 06 00 [09:35:07]Write to MH i2c: E2 02 01 62 17 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 28 00 00 00 F4 03 04 00 4E 49 75 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 B5 96 01 00 35 04 06 00 00 00 0A [09:35:07]Write i2c OK [09:35:07]MH_I2C_Read... [09:35:08]Read from MH i2c: E2 [09:35:08]MH_I2C_Read... [09:35:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:35:08]Read from MH i2c: E2 03 00 [09:35:08]MH_I2C_Read... [09:35:08]Read from MH i2c: E2 03 00 62 17 00 90 00 ED [09:35:08]RAPDU: 90 00 [09:35:08]wFMCommunicate OK [09:35:08]wFMCommunicate request_size=11 [09:35:08]MH_SAM_APDU [09:35:08]CAPDU: 80 0D 02 02 06 46 8B 8C C4 59 BC [09:35:08]Write to MH i2c: E2 0E 00 63 17 80 0D 02 02 06 00 46 8B 8C C4 59 BC 00 00 36 [09:35:08]Write i2c OK [09:35:08]MH_I2C_Read... [09:35:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:35:08]Read from MH i2c: E2 [09:35:08]MH_I2C_Read... [09:35:08]Read from MH i2c: E2 03 00 [09:35:08]MH_I2C_Read... [09:35:08]Read from MH i2c: E2 03 00 63 17 00 90 00 EE [09:35:08]RAPDU: 90 00 [09:35:08]wFMCommunicate OK [09:35:08]wFMCommunicate request_size=4 [09:35:08]MH_SAM_APDU [09:35:08]CAPDU: 80 0D 03 02 [09:35:08]Write to MH i2c: E2 08 00 64 17 80 0D 03 02 00 00 00 00 F6 [09:35:08]Write i2c OK [09:35:08]MH_I2C_Read... [09:35:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:35:08]Read from MH i2c: E2 [09:35:08]MH_I2C_Read... [09:35:08]Read from MH i2c: E2 0B 00 [09:35:08]MH_I2C_Read... [09:35:08]Read from MH i2c: E2 0B 00 64 17 00 64 FF 12 D4 84 03 73 0E 90 00 48 [09:35:08]RAPDU: 64 FF 12 D4 84 03 73 0E 90 00 [09:35:08]wFMCommunicate OK [09:35:08]SAM_PROTO_SignData done [09:35:08]FM_MakeSignedData done [09:35:08]CreateOFDProtocolMessage [09:35:08]wFMCommunicate request_size=4 [09:35:08]MH_SAM_APDU [09:35:08]CAPDU: 80 11 00 00 [09:35:08]Write to MH i2c: E2 08 00 65 17 80 11 00 00 00 00 00 00 F6 [09:35:08]Write i2c OK [09:35:08]MH_I2C_Read... [09:35:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:35:08]Read from MH i2c: E2 [09:35:08]MH_I2C_Read... [09:35:08]Read from MH i2c: E2 17 00 [09:35:08]MH_I2C_Read... [09:35:08]Read from MH i2c: E2 17 00 65 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 49 [09:35:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [09:35:08]wFMCommunicate OK [09:35:08]CreateOFDProtocolMessage done [09:35:08]OFDSenderStorePacket 104117 [09:35:08]StoreOFDPacket docnum=104117 [09:35: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 10 01 00 00 34 D8 08 01 46 06 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 28 00 00 00 F4 03 04 00 4E 49 75 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 B5 96 01 00 35 04 06 00 46 8B 8C C4 59 BC 64 FF 12 D4 84 03 73 0E [09:35:08]CheckFolder [09:35:08]dirname=/storage/ofd_packets [09:35:08]CheckFolder done [09:35:08]ProducePacketName [09:35:08]name=ofd_packets/00104117 [09:35:08]NVStorageSaveData ofd_packets/00104117 [09:35:08]File name is /storage/ofd_packets/00104117 [09:35:08]Write 302 bytes [09:35:08]NVStorageSaveData done [09:35:08]OFDSenderStorePacket done [09:35:08]KKMCreateOFDPacket done [09:35:08]NVStorageSaveData kkm_last_timestamp [09:35:08]File name is /storage/kkm_last_timestamp [09:35:08]Write 4 bytes [09:35:08]NVStorageSaveData done [09:35:08]ExternCall_PrintAddStr [09:35:08]wPrintStart [09:35:08]Write to MH i2c: 01 00 00 66 17 7D [09:35:08]Write i2c OK [09:35:08]MH_I2C_Read... [09:35:08]Read from MH i2c: 01 [09:35:08]MH_I2C_Read... [09:35:08]Read from MH i2c: 01 07 00 [09:35:08]MH_I2C_Read... [09:35:08]Read from MH i2c: 01 07 00 66 17 00 00 00 00 00 FF 0F 92 [09:35:08]RasterBufferAndPrint [09:35:08]line Счет N : (1)673513 [09:35:08]line ИНН: 02508201610067 [09:35:08]line Контрольно-Кассовый Чек [09:35:08]line ПРОДАЖА [09:35:08]line ТРК (МРК, ГНК) : 11 [09:35:08]line Товар: 2710194210 [09:35:08]line ДТ(л)-К-5 [09:35:08]line 27.440 * 72.90 [09:35:08]line = 2000.38 [09:35:08]line НДС 12% НСП 1% [09:35:08]line > о реализуемом товаре [09:35:08]line ОКРУГЛЕНИЕ: -0.38 [09:35:08]line ИТОГО: 2000.00 [09:35:08]line Внесено: 2000.00 [09:35:08]line СДАЧА: 0.00 [09:35:08]line НСП 1% : 17.70 [09:35:08]line НДС 12% : 212.43 [09:35:08]line Наличными: 2000.00 [09:35:08]line Безнал.: 0.00 [09:35:08]line Место: АЗС № 120 "Партнер Нефть" [09:35:08]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [09:35:08]line СНО: Общий режим [09:35:08]line Чек 40 21.06.2024 09:35 [09:35:08]line Смена: 355 ФФД: 1.0 [09:35:08]line ЗНМ: 0300000164 [09:35:08]line РНМ: 0000000000092785 [09:35:08]line Версия ККМ: 001 [09:35:08]line ФМ: 0000000000875093 [09:35:08]line ФД: 104117 [09:35:08]line ФПД: 77565176076732 [09:35:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T093510&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104117&fm=77565176076732&tin=02508201610067®Number=0000000000092785&sum=200000 [09:35:08]written 0, free lines is 4095 [09:35:08]OFD Sender: Processing packet 104117 [packets to send 17, broken 16] [09:35:08]ProducePacketName [09:35:08]name=ofd_packets/00104117 [09:35:08]OFD Sender: To server: pG, [09:35:08]CommunicateWithHost lk.salyk.kg:30040 [09:35:08]ConnectInit lk.salyk.kg [09:35:08]Connected sock=10 [09:35: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 34 D8 08 01 46 06 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 28 00 00 00 F4 03 04 00 4E 49 75 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 B5 96 01 00 35 04 06 00 46 8B 8C C4 59 BC 64 FF 12 D4 84 03 73 0E [09:35: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 B2 6A 47 00 22 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 B5 96 01 00 F4 03 04 00 D0 EF 74 66 B6 04 01 00 00 38 C2 C2 7B 43 6A 34 8A [09:35:08]CommunicateWithHost err = 0 [09:35:08]CheckOFDResponse [09:35:08]1017 (14) - 77093643461234 [09:35:08]1041 (16) - 0000000000875093 [09:35:08]1040 (4) - 104117 [09:35:08]1012 (4) - 21.06.2024 03:13 [09:35:08]1206 (1) - 0 [09:35:08]OFD Sender: Remove packet 104117 [09:35:08]ProducePacketName [09:35:08]name=ofd_packets/00104117 [09:35:08]NVStorageDeleteData [09:35:08]Write to MH i2c: 01 00 00 91 17 A8 [09:35:08]Write i2c OK [09:35:08]MH_I2C_Read... [09:35:08]Read from MH i2c: 01 [09:35:08]MH_I2C_Read... [09:35:08]Read from MH i2c: 01 07 00 [09:35:08]MH_I2C_Read... [09:35:08]Read from MH i2c: 01 07 00 91 17 00 00 00 00 00 D5 0C 90 [09:35:08]RasterBufferAndPrint [09:35:08]line [09:35:08]line [09:35:08]line [09:35:08]line [09:35:08]line [09:35:08]written 0, free lines is 3293 [09:35:08]MH_Cut [09:35:08]Write to MH i2c: D1 01 00 98 17 01 81 [09:35:08]Write i2c OK [09:35:08]MH_I2C_Read... [09:35:08]Read from MH i2c: D1 [09:35:08]MH_I2C_Read... [09:35:08]Read from MH i2c: D1 01 00 [09:35:08]MH_I2C_Read... [09:35:08]Read from MH i2c: D1 01 00 98 17 00 80 [09:35:08]Write to MH i2c: 01 00 00 99 17 B0 [09:35:08]Write i2c OK [09:35:08]MH_I2C_Read... [09:35:09]OFD Sender: No OFD packet to send [09:35:09]*** Cut start [09:35:09]*** Partial cut [09:35:09]*** CUTSNS_PIN = 1 [09:35:09]*** CUTSNS_PIN = 0 [09:35:09]*** Brake cut motor [09:35:09]Read from MH i2c: 01 [09:35:09]MH_I2C_Read... [09:35:09]*** Stop cut motor [09:35:09]*** Cut end [09:35:09]Read from MH i2c: 01 07 00 [09:35:09]MH_I2C_Read... [09:35:09]Read from MH i2c: 01 07 00 99 17 00 00 00 00 00 FF 0F C5 [09:35:09]process_action close_receipt done [09:35:09]requested_data is exist [09:35:09]produce_requested_data [09:35:09]requested_item fm.sn is exist - process it [09:35:09]wFMCommunicate request_size=4 [09:35:09]MH_SAM_APDU [09:35:09]CAPDU: 80 11 00 00 [09:35:09]Write to MH i2c: E2 08 00 9A 17 80 11 00 00 00 00 00 00 2B [09:35:09]Write i2c OK [09:35:09]MH_I2C_Read... [09:35:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:35:10]Read from MH i2c: E2 [09:35:10]MH_I2C_Read... [09:35:10]Read from MH i2c: E2 17 00 [09:35:10]MH_I2C_Read... [09:35:10]Read from MH i2c: E2 17 00 9A 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 7E [09:35:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [09:35:10]wFMCommunicate OK [09:35:10]requested_item fd.num is exist - process it [09:35:10]SAM_PROTO_GetFieldsCounters [09:35:10]wFMCommunicate request_size=4 [09:35:10]MH_SAM_APDU [09:35:10]CAPDU: 80 13 00 00 [09:35:10]Write to MH i2c: E2 08 00 9B 17 80 13 00 00 00 00 00 00 2E [09:35:10]Write i2c OK [09:35:10]MH_I2C_Read... [09:35:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:35:10]Read from MH i2c: E2 [09:35:10]MH_I2C_Read... [09:35:10]Read from MH i2c: E2 62 00 [09:35:10]MH_I2C_Read... [09:35:10]Read from MH i2c: E2 62 00 9B 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 B5 96 01 00 0E 04 04 00 63 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 7D [09:35:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 96 01 00 0E 04 04 00 63 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:35:10]wFMCommunicate OK [09:35:10]SAM_PROTO_GetFieldsCounters done [09:35:10]requested_item shift.num is exist - process it [09:35:10]requested_item shift.opened is exist - process it [09:35:10]req_shift_opened [09:35:10]FM_GetShiftState [09:35:10]SAM_PROTO_GetShiftState [09:35:10]wFMCommunicate request_size=4 [09:35:10]MH_SAM_APDU [09:35:10]CAPDU: 80 13 01 00 [09:35:10]Write to MH i2c: E2 08 00 9C 17 80 13 01 00 00 00 00 00 30 [09:35:10]Write i2c OK [09:35:10]MH_I2C_Read... [09:35:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:35:10]Read from MH i2c: E2 [09:35:10]MH_I2C_Read... [09:35:10]Read from MH i2c: E2 0E 00 [09:35:10]MH_I2C_Read... [09:35:10]Read from MH i2c: E2 0E 00 9C 17 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 43 [09:35:10]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [09:35:10]wFMCommunicate OK [09:35:10]SAM_PROTO_GetShiftState done [09:35:10]FM_GetShiftState done [09:35:10]req_shift_opened done [09:35:10]requested_item shift.open_date is exist - process it [09:35:10]req_shift_open_date [09:35:10]req_shift_open_date done [09:35:10]produce_requested_data done [09:35:10]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104117,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [09:35:10]process_action_free close_receipt [09:35:10]json_value_free [09:35:10]json_value_free done [09:35:10]process_json_proto returns [09:35:10]Send response to host [09:35:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104117,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [09:35:10]free response buf [09:35:10]execute_script done [09:35:10]execute_script returns [09:35:10]free content buf [09:35:10]Sock 9.Close socket [09:35:10]Sock 9.Thread stoped [09:35:14]OFD Sender: No OFD packet to send [09:35:19]OFD Sender: No OFD packet to send [09:35:24]OFD Sender: No OFD packet to send [09:35:29]OFD Sender: No OFD packet to send [09:35:34]OFD Sender: No OFD packet to send [09:35:38]accept exits with 7 [09:35:38]New connection [09:35:38]New thread 3066715492 created [09:35:38]Thread 3066858852 joined [09:35:38]Waiting for new connection... [09:35:38] Sock 7.Parse request [09:35:38]Sock 7.Check first char [09:35:38]Sock 7.First char is OK [09:35:38]request: POST /json_proto HTTP/1.0 [09:35:38]Method: POST [09:35:38]URL: /json_proto [09:35:38]Method is POST - this is cgi request [09:35:38]url: /json_proto [09:35:38]query_string will be loaded in cgi processing [09:35:38]execute_cgi json_proto POST (null) [09:35:38]execute_cgi path=json_proto method=POST [09:35:38]POST find Content-Length [09:35:38]Host: 172.17.38.133:8080 [09:35:38]Content-Length: 816 [09:35:38]Content-Type: application/json [09:35:38] [09:35:38]POST finish read [09:35:38]Found Content-Length = 816 [09:35:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673514", "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 }]} ], "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" ] } } [09:35:38]execute_script... [09:35: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)673514", "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 }]} ], "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" ] } } [09:35:38]POST & json_proto [09:35:38]process_json_proto [09:35:38]json parsed OK: [09:35:38]protocol is kg_v1.0 [09:35:38]action value=close_receipt [09:35:38]process_action close_receipt [09:35:38]cmd_close_receipt [09:35:38]MH_GetDate [09:35:38]Write to MH i2c: F0 00 00 9D 17 A3 [09:35:38]Write i2c OK [09:35:38]MH_I2C_Read... [09:35:38]Read from MH i2c: F0 [09:35:38]MH_I2C_Read... [09:35:38]Read from MH i2c: F0 09 00 [09:35:38]MH_I2C_Read... [09:35:38]Read from MH i2c: F0 09 00 9D 17 00 6E 49 75 66 BD 8F 7C 64 6A [09:35:38]GetLastDocTimeStamp 1718962510 [09:35:38]current date 1718962542 [09:35:38]FM_GetShiftState [09:35:38]SAM_PROTO_GetShiftState [09:35:38]wFMCommunicate request_size=4 [09:35:38]MH_SAM_APDU [09:35:38]CAPDU: 80 13 01 00 [09:35:38]Write to MH i2c: E2 08 00 9E 17 80 13 01 00 00 00 00 00 32 [09:35:38]Write i2c OK [09:35:38]MH_I2C_Read... [09:35:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:35:38]Read from MH i2c: E2 [09:35:38]MH_I2C_Read... [09:35:38]Read from MH i2c: E2 0E 00 [09:35:38]MH_I2C_Read... [09:35:38]Read from MH i2c: E2 0E 00 9E 17 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 45 [09:35:38]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [09:35:38]wFMCommunicate OK [09:35:38]SAM_PROTO_GetShiftState done [09:35:38]FM_GetShiftState done [09:35:38]opened in 1718929509 [09:35:38]opened+sec_in_day 1719015909 [09:35:38]quantity*price = 50065 [09:35:38]sum+1 = 50067 [09:35:38]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 СНО: Общий режим Чек 41 21.06.2024 09:35 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875093 ФД: 104118 ФПД: 19047861036171 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T093542&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104118&fm=19047861036171&tin=02508201610067®Number=0000000000092785&sum=50066 [09:35:39]StoreToDocumentArchive [09:35:39]shift 355 fd 104118 [09:35:39]save to /storage/0355/doc_00104118 [09:35:39]save last doc name /storage/0355/doc_00104118 to /storage/kkm_last_doc_name [09:35:39]save OK [09:35:39]Clear old archive folders... [09:35:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:35:39]tlvbuf is 0113ECC0 [09:35:39]SAM_PROTO_ClearQueue [09:35:39]wFMCommunicate request_size=4 [09:35:39]MH_SAM_APDU [09:35:39]CAPDU: 80 09 00 00 [09:35:39]Write to MH i2c: E2 08 00 AB 17 80 09 00 00 00 00 00 00 34 [09:35:39]Write i2c OK [09:35:39]MH_I2C_Read... [09:35:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:35:39]Read from MH i2c: E2 [09:35:39]MH_I2C_Read... [09:35:39]Read from MH i2c: E2 03 00 [09:35:39]MH_I2C_Read... [09:35:39]Read from MH i2c: E2 03 00 AB 17 00 90 00 36 [09:35:39]RAPDU: 90 00 [09:35:39]wFMCommunicate OK [09:35:39]SAM_PROTO_ClearQueue done [09:35:39]KKMCreateOFDPacket [09:35:39]OFDProtocolAddRootSTLVToBuf [09:35:39]FM_MakeSignedData [09:35:39]FM_MakeSignedData [09:35:39]SAM_PROTO_SignData [09:35:39]wFMCommunicate request_size=4 [09:35:39]MH_SAM_APDU [09:35:39]CAPDU: 80 0D 01 02 [09:35:39]Write to MH i2c: E2 08 00 AC 17 80 0D 01 02 00 00 00 00 3C [09:35:39]Write i2c OK [09:35:39]MH_I2C_Read... [09:35:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:35:39]Read from MH i2c: E2 [09:35:39]MH_I2C_Read... [09:35:39]Read from MH i2c: E2 03 00 [09:35:39]MH_I2C_Read... [09:35:39]Read from MH i2c: E2 03 00 AC 17 00 90 00 37 [09:35:39]RAPDU: 90 00 [09:35:39]wFMCommunicate OK [09:35:39]wFMCommunicate request_size=255 [09:35:39]MH_SAM_APDU [09:35:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 29 00 00 00 F4 03 04 00 6E 49 75 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 B6 96 01 00 35 04 06 00 11 [09:35:39]Write to MH i2c: E2 02 01 AD 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 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 29 00 00 00 F4 03 04 00 6E 49 75 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 B6 96 01 00 35 04 06 00 11 00 00 F7 [09:35:39]Write i2c OK [09:35:39]MH_I2C_Read... [09:35:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:35:40]Read from MH i2c: E2 [09:35:40]MH_I2C_Read... [09:35:40]Read from MH i2c: E2 03 00 [09:35:40]MH_I2C_Read... [09:35:40]Read from MH i2c: E2 03 00 AD 17 00 90 00 38 [09:35:40]RAPDU: 90 00 [09:35:40]wFMCommunicate OK [09:35:40]wFMCommunicate request_size=10 [09:35:40]MH_SAM_APDU [09:35:40]CAPDU: 80 0D 02 02 05 52 EC FD A4 8B [09:35:40]Write to MH i2c: E2 0D 00 AE 17 80 0D 02 02 05 00 52 EC FD A4 8B 00 00 B3 [09:35:40]Write i2c OK [09:35:40]MH_I2C_Read... [09:35:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:35:40]Read from MH i2c: E2 [09:35:40]MH_I2C_Read... [09:35:40]Read from MH i2c: E2 03 00 [09:35:40]MH_I2C_Read... [09:35:40]Read from MH i2c: E2 03 00 AE 17 00 90 00 39 [09:35:40]RAPDU: 90 00 [09:35:40]wFMCommunicate OK [09:35:40]wFMCommunicate request_size=4 [09:35:40]MH_SAM_APDU [09:35:40]CAPDU: 80 0D 03 02 [09:35:40]Write to MH i2c: E2 08 00 AF 17 80 0D 03 02 00 00 00 00 41 [09:35:40]Write i2c OK [09:35:40]MH_I2C_Read... [09:35:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:35:40]Read from MH i2c: E2 [09:35:40]MH_I2C_Read... [09:35:40]Read from MH i2c: E2 0B 00 [09:35:40]MH_I2C_Read... [09:35:40]Read from MH i2c: E2 0B 00 AF 17 00 9B A7 A1 21 A4 31 56 0E 90 00 7F [09:35:40]RAPDU: 9B A7 A1 21 A4 31 56 0E 90 00 [09:35:40]wFMCommunicate OK [09:35:40]SAM_PROTO_SignData done [09:35:40]FM_MakeSignedData done [09:35:40]CreateOFDProtocolMessage [09:35:40]wFMCommunicate request_size=4 [09:35:40]MH_SAM_APDU [09:35:40]CAPDU: 80 11 00 00 [09:35:40]Write to MH i2c: E2 08 00 B0 17 80 11 00 00 00 00 00 00 41 [09:35:40]Write i2c OK [09:35:40]MH_I2C_Read... [09:35:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:35:40]Read from MH i2c: E2 [09:35:40]MH_I2C_Read... [09:35:40]Read from MH i2c: E2 17 00 [09:35:40]MH_I2C_Read... [09:35:40]Read from MH i2c: E2 17 00 B0 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 94 [09:35: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:35:40]wFMCommunicate OK [09:35:40]CreateOFDProtocolMessage done [09:35:40]OFDSenderStorePacket 104118 [09:35:40]StoreOFDPacket docnum=104118 [09:35: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 0F 01 00 00 2B CA 07 01 2C 8B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 29 00 00 00 F4 03 04 00 6E 49 75 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 B6 96 01 00 35 04 06 00 11 52 EC FD A4 8B 9B A7 A1 21 A4 31 56 0E [09:35:40]CheckFolder [09:35:40]dirname=/storage/ofd_packets [09:35:40]CheckFolder done [09:35:40]ProducePacketName [09:35:40]name=ofd_packets/00104118 [09:35:40]NVStorageSaveData ofd_packets/00104118 [09:35:40]File name is /storage/ofd_packets/00104118 [09:35:40]Write 301 bytes [09:35:40]NVStorageSaveData done [09:35:40]OFDSenderStorePacket done [09:35:40]KKMCreateOFDPacket done [09:35:40]NVStorageSaveData kkm_last_timestamp [09:35:40]File name is /storage/kkm_last_timestamp [09:35:40]Write 4 bytes [09:35:40]NVStorageSaveData done [09:35:40]ExternCall_PrintAddStr [09:35:40]wPrintStart [09:35:40]Write to MH i2c: 01 00 00 B1 17 C8 [09:35:40]Write i2c OK [09:35:40]MH_I2C_Read... [09:35:40]Read from MH i2c: 01 [09:35:40]MH_I2C_Read... [09:35:40]Read from MH i2c: 01 07 00 [09:35:40]MH_I2C_Read... [09:35:40]Read from MH i2c: 01 07 00 B1 17 00 00 00 00 00 FF 0F DD [09:35:40]RasterBufferAndPrint [09:35:40]line Счет N : (1)673514 [09:35:40]line ИНН: 02508201610067 [09:35:40]line Контрольно-Кассовый Чек [09:35:40]line ПРОДАЖА [09:35:40]line ТРК (МРК, ГНК) : 42 [09:35:40]line Товар: 2710124130 [09:35:40]line Аи-92-К-5 [09:35:40]line 7.540 * 66.40 [09:35:40]line = 500.66 [09:35:40]line НДС 12% НСП 1% [09:35:40]line > о реализуемом товаре [09:35:40]line ИТОГО: 500.66 [09:35:40]line НСП 1% : 4.43 [09:35:40]line НДС 12% : 53.17 [09:35:40]line Наличными: 0.00 [09:35:40]line Безнал.: 500.66 [09:35:40]line Место: АЗС № 120 "Партнер Нефть" [09:35:40]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [09:35:40]line СНО: Общий режим [09:35:40]line Чек 41 21.06.2024 09:35 [09:35:40]line Смена: 355 ФФД: 1.0 [09:35:40]line ЗНМ: 0300000164 [09:35:40]line РНМ: 0000000000092785 [09:35:40]line Версия ККМ: 001 [09:35:40]line Платежная система: Бакай Банк [09:35:40]line ФМ: 0000000000875093 [09:35:40]line ФД: 104118 [09:35:40]line ФПД: 19047861036171 [09:35:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T093542&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104118&fm=19047861036171&tin=02508201610067®Number=0000000000092785&sum=50066 [09:35:40]OFD Sender: Processing packet 104118 [packets to send 17, broken 16] [09:35:40]ProducePacketName [09:35:40]name=ofd_packets/00104118 [09:35:40]OFD Sender: To server: pG, [09:35:40]CommunicateWithHost lk.salyk.kg:30040 [09:35:40]ConnectInit lk.salyk.kg [09:35:40]written 0, free lines is 4095 [09:35:40]Connected sock=10 [09:35: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 0F 01 00 00 2B CA 07 01 2C 8B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 29 00 00 00 F4 03 04 00 6E 49 75 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 B6 96 01 00 35 04 06 00 11 52 EC FD A4 8B 9B A7 A1 21 A4 31 56 0E [09:35: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 BD 48 47 00 DB 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 B6 96 01 00 F4 03 04 00 F1 EF 74 66 B6 04 01 00 00 EA 55 CF 86 75 EA 30 65 [09:35:40]CommunicateWithHost err = 0 [09:35:40]CheckOFDResponse [09:35:40]1017 (14) - 77093643461234 [09:35:40]1041 (16) - 0000000000875093 [09:35:40]1040 (4) - 104118 [09:35:40]1012 (4) - 21.06.2024 03:13 [09:35:40]1206 (1) - 0 [09:35:40]OFD Sender: Remove packet 104118 [09:35:40]ProducePacketName [09:35:40]name=ofd_packets/00104118 [09:35:40]NVStorageDeleteData [09:35:41]Write to MH i2c: 01 00 00 DB 17 F2 [09:35:41]Write i2c OK [09:35:41]MH_I2C_Read... [09:35:41]Read from MH i2c: 01 [09:35:41]MH_I2C_Read... [09:35:41]Read from MH i2c: 01 07 00 [09:35:41]MH_I2C_Read... [09:35:41]Read from MH i2c: 01 07 00 DB 17 00 00 00 00 00 E3 0C E8 [09:35:41]RasterBufferAndPrint [09:35:41]line [09:35:41]line [09:35:41]line [09:35:41]line [09:35:41]line [09:35:41]written 0, free lines is 3306 [09:35:41]MH_Cut [09:35:41]Write to MH i2c: D1 01 00 E2 17 01 CB [09:35:41]Write i2c OK [09:35:41]MH_I2C_Read... [09:35:41]Read from MH i2c: D1 [09:35:41]MH_I2C_Read... [09:35:41]Read from MH i2c: D1 01 00 [09:35:41]MH_I2C_Read... [09:35:41]Read from MH i2c: D1 01 00 E2 17 00 CA [09:35:41]Write to MH i2c: 01 00 00 E3 17 FA [09:35:41]Write i2c OK [09:35:41]MH_I2C_Read... [09:35:41]OFD Sender: No OFD packet to send [09:35:41]*** Cut start [09:35:41]*** Partial cut [09:35:41]*** CUTSNS_PIN = 1 [09:35:41]*** CUTSNS_PIN = 0 [09:35:42]*** Brake cut motor [09:35:42]Read from MH i2c: 01 [09:35:42]MH_I2C_Read... [09:35:42]*** Stop cut motor [09:35:42]*** Cut end [09:35:42]Read from MH i2c: 01 07 00 [09:35:42]MH_I2C_Read... [09:35:42]Read from MH i2c: 01 07 00 E3 17 00 00 00 00 00 FF 0F 0F [09:35:42]process_action close_receipt done [09:35:42]requested_data is exist [09:35:42]produce_requested_data [09:35:42]requested_item fm.sn is exist - process it [09:35:42]wFMCommunicate request_size=4 [09:35:42]MH_SAM_APDU [09:35:42]CAPDU: 80 11 00 00 [09:35:42]Write to MH i2c: E2 08 00 E4 17 80 11 00 00 00 00 00 00 75 [09:35:42]Write i2c OK [09:35:42]MH_I2C_Read... [09:35:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:35:42]Read from MH i2c: E2 [09:35:42]MH_I2C_Read... [09:35:42]Read from MH i2c: E2 17 00 [09:35:42]MH_I2C_Read... [09:35:42]Read from MH i2c: E2 17 00 E4 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 C8 [09:35: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:35:42]wFMCommunicate OK [09:35:42]requested_item fd.num is exist - process it [09:35:42]SAM_PROTO_GetFieldsCounters [09:35:42]wFMCommunicate request_size=4 [09:35:42]MH_SAM_APDU [09:35:42]CAPDU: 80 13 00 00 [09:35:42]Write to MH i2c: E2 08 00 E5 17 80 13 00 00 00 00 00 00 78 [09:35:42]Write i2c OK [09:35:42]MH_I2C_Read... [09:35:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:35:42]Read from MH i2c: E2 [09:35:42]MH_I2C_Read... [09:35:42]Read from MH i2c: E2 62 00 [09:35:42]MH_I2C_Read... [09:35:42]Read from MH i2c: E2 62 00 E5 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 B6 96 01 00 0E 04 04 00 63 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 CB [09:35: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 B6 96 01 00 0E 04 04 00 63 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:35:42]wFMCommunicate OK [09:35:42]SAM_PROTO_GetFieldsCounters done [09:35:42]requested_item shift.num is exist - process it [09:35:42]requested_item shift.opened is exist - process it [09:35:42]req_shift_opened [09:35:42]FM_GetShiftState [09:35:42]SAM_PROTO_GetShiftState [09:35:42]wFMCommunicate request_size=4 [09:35:42]MH_SAM_APDU [09:35:42]CAPDU: 80 13 01 00 [09:35:42]Write to MH i2c: E2 08 00 E6 17 80 13 01 00 00 00 00 00 7A [09:35:42]Write i2c OK [09:35:42]MH_I2C_Read... [09:35:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:35:42]Read from MH i2c: E2 [09:35:42]MH_I2C_Read... [09:35:42]Read from MH i2c: E2 0E 00 [09:35:42]MH_I2C_Read... [09:35:42]Read from MH i2c: E2 0E 00 E6 17 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 8D [09:35:42]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [09:35:42]wFMCommunicate OK [09:35:42]SAM_PROTO_GetShiftState done [09:35:42]FM_GetShiftState done [09:35:42]req_shift_opened done [09:35:42]requested_item shift.open_date is exist - process it [09:35:42]req_shift_open_date [09:35:42]req_shift_open_date done [09:35:42]produce_requested_data done [09:35:42]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104118,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [09:35:42]process_action_free close_receipt [09:35:42]json_value_free [09:35:42]json_value_free done [09:35:42]process_json_proto returns [09:35:42]Send response to host [09:35:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104118,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [09:35:42]free response buf [09:35:42]execute_script done [09:35:42]execute_script returns [09:35:42]free content buf [09:35:42]Sock 7.Close socket [09:35:42]Sock 7.Thread stoped [09:35:46]OFD Sender: No OFD packet to send [09:35:51]OFD Sender: No OFD packet to send [09:35:56]OFD Sender: No OFD packet to send [09:36:01]OFD Sender: No OFD packet to send [09:36:06]OFD Sender: No OFD packet to send [09:36:11]OFD Sender: No OFD packet to send [09:36:15]accept exits with 9 [09:36:15]New connection [09:36:15]New thread 3066858852 created [09:36:15]Thread 3066715492 joined [09:36:15]Waiting for new connection... [09:36:15] Sock 9.Parse request [09:36:15]Sock 9.Check first char [09:36:15]Sock 9.First char is OK [09:36:15]request: POST /json_proto HTTP/1.0 [09:36:15]Method: POST [09:36:15]URL: /json_proto [09:36:15]Method is POST - this is cgi request [09:36:15]url: /json_proto [09:36:15]query_string will be loaded in cgi processing [09:36:15]execute_cgi json_proto POST (null) [09:36:15]execute_cgi path=json_proto method=POST [09:36:15]POST find Content-Length [09:36:15]Host: 172.17.38.133:8080 [09:36:15]Content-Length: 1157 [09:36:15]Content-Type: application/json [09:36:15] [09:36:15]POST finish read [09:36:15]Found Content-Length = 1157 [09:36: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 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)673512\u000A21.06.2024 09:13\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 60.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 3984.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30072831\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:36:15]execute_script... [09:36: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 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)673512\u000A21.06.2024 09:13\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 60.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 3984.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30072831\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:36:15]POST & json_proto [09:36:15]process_json_proto [09:36:15]json parsed OK: [09:36:15]protocol is kg_v1.0 [09:36:15]action value=print_text [09:36:15]process_action print_text [09:36:15]cmd_print_text [09:36:15]ExternCall_PrintAddStr [09:36:15]wPrintStart [09:36:15]Write to MH i2c: 01 00 00 E7 17 FE [09:36:15]Write i2c OK [09:36:15]MH_I2C_Read... [09:36:15]Read from MH i2c: 01 [09:36:15]MH_I2C_Read... [09:36:15]Read from MH i2c: 01 07 00 [09:36:15]MH_I2C_Read... [09:36:15]Read from MH i2c: 01 07 00 E7 17 00 00 00 00 00 FF 0F 13 [09:36:15]RasterBufferAndPrint [09:36:15]line *****ТОВАРНЫЙ ЧЕК***** [09:36:15]line АЗС 120 [09:36:15]line Партнер нефть [09:36:15]line 02508201610067 [09:36:15]line Кассир : Асанбаев Н. [09:36:15]line Счет N : (1)673512 [09:36:15]line 21.06.2024 09:13 [09:36:15]line ПРОДАЖА [09:36:15]line ТРК (МРК, ГНК): 32 [09:36:15]line Вид ГСМ : 2710124130 [09:36:15]line Аи-92-К-5 [09:36:15]line 60.000 x 66.40 [09:36:15]line ИТОГ: 3984.00 [09:36:15]line Тип оплаты: Талоны: ТК ГПНА Online [09:36:15]line 30072831 [09:36:15]line ______________________ [09:36:15]line (подпись) [09:36:15]written 0, free lines is 4095 [09:36:15]Write to MH i2c: 01 00 00 FB 17 12 [09:36:15]Write i2c OK [09:36:15]MH_I2C_Read... [09:36:15]Read from MH i2c: 01 [09:36:15]MH_I2C_Read... [09:36:15]Read from MH i2c: 01 07 00 [09:36:15]MH_I2C_Read... [09:36:15]Read from MH i2c: 01 07 00 FB 17 00 00 00 00 00 10 0E 37 [09:36:15]RasterBufferAndPrint [09:36:15]line [09:36:15]line [09:36:15]line [09:36:15]line [09:36:15]line [09:36:15]written 0, free lines is 3601 [09:36:15]MH_Cut [09:36:15]Write to MH i2c: D1 01 00 02 18 01 EC [09:36:15]Write i2c OK [09:36:15]MH_I2C_Read... [09:36:15]Read from MH i2c: D1 [09:36:15]MH_I2C_Read... [09:36:15]Read from MH i2c: D1 01 00 [09:36:15]MH_I2C_Read... [09:36:15]Read from MH i2c: D1 01 00 02 18 00 EB [09:36:15]Write to MH i2c: 01 00 00 03 18 1B [09:36:15]Write i2c OK [09:36:15]MH_I2C_Read... [09:36:16]*** Cut start [09:36:16]*** Partial cut [09:36:16]*** CUTSNS_PIN = 1 [09:36:16]*** CUTSNS_PIN = 0 [09:36:16]*** Brake cut motor [09:36:16]OFD Sender: No OFD packet to send [09:36:16]Read from MH i2c: 01 [09:36:16]MH_I2C_Read... [09:36:16]Read from MH i2c: 01 07 00 [09:36:16]*** Stop cut motor [09:36:16]*** Cut end [09:36:16]MH_I2C_Read... [09:36:16]Read from MH i2c: 01 07 00 03 18 00 00 00 00 00 FF 0F 30 [09:36:16]process_action print_text done [09:36:16]requested_data is exist [09:36:16]produce_requested_data [09:36:16]requested_item fm.sn is exist - process it [09:36:16]wFMCommunicate request_size=4 [09:36:16]MH_SAM_APDU [09:36:16]CAPDU: 80 11 00 00 [09:36:16]Write to MH i2c: E2 08 00 04 18 80 11 00 00 00 00 00 00 96 [09:36:16]Write i2c OK [09:36:16]MH_I2C_Read... [09:36:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:36:16]Read from MH i2c: E2 [09:36:16]MH_I2C_Read... [09:36:16]Read from MH i2c: E2 17 00 [09:36:16]MH_I2C_Read... [09:36:16]Read from MH i2c: E2 17 00 04 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 E9 [09:36:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [09:36:16]wFMCommunicate OK [09:36:16]requested_item fd.num is exist - process it [09:36:16]SAM_PROTO_GetFieldsCounters [09:36:16]wFMCommunicate request_size=4 [09:36:16]MH_SAM_APDU [09:36:16]CAPDU: 80 13 00 00 [09:36:16]Write to MH i2c: E2 08 00 05 18 80 13 00 00 00 00 00 00 99 [09:36:16]Write i2c OK [09:36:16]MH_I2C_Read... [09:36:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:36:16]Read from MH i2c: E2 [09:36:16]MH_I2C_Read... [09:36:16]Read from MH i2c: E2 62 00 [09:36:16]MH_I2C_Read... [09:36:16]Read from MH i2c: E2 62 00 05 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 B6 96 01 00 0E 04 04 00 63 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:36:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 96 01 00 0E 04 04 00 63 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:36:16]wFMCommunicate OK [09:36:16]SAM_PROTO_GetFieldsCounters done [09:36:16]requested_item shift.num is exist - process it [09:36:16]requested_item shift.opened is exist - process it [09:36:16]req_shift_opened [09:36:16]FM_GetShiftState [09:36:16]SAM_PROTO_GetShiftState [09:36:16]wFMCommunicate request_size=4 [09:36:16]MH_SAM_APDU [09:36:16]CAPDU: 80 13 01 00 [09:36:16]Write to MH i2c: E2 08 00 06 18 80 13 01 00 00 00 00 00 9B [09:36:16]Write i2c OK [09:36:16]MH_I2C_Read... [09:36:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:36:16]Read from MH i2c: E2 [09:36:16]MH_I2C_Read... [09:36:16]Read from MH i2c: E2 0E 00 [09:36:16]MH_I2C_Read... [09:36:16]Read from MH i2c: E2 0E 00 06 18 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 AE [09:36:16]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [09:36:16]wFMCommunicate OK [09:36:16]SAM_PROTO_GetShiftState done [09:36:16]FM_GetShiftState done [09:36:16]req_shift_opened done [09:36:16]requested_item shift.open_date is exist - process it [09:36:16]req_shift_open_date [09:36:16]req_shift_open_date done [09:36:16]produce_requested_data done [09:36:16]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104118,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [09:36:16]process_action_free print_text [09:36:16]json_value_free [09:36:16]json_value_free done [09:36:16]process_json_proto returns [09:36:16]Send response to host [09:36:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104118,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [09:36:16]free response buf [09:36:16]execute_script done [09:36:16]execute_script returns [09:36:16]free content buf [09:36:16]Sock 9.Close socket [09:36:16]Sock 9.Thread stoped [09:36:21]OFD Sender: No OFD packet to send [09:36:26]OFD Sender: No OFD packet to send [09:36:31]OFD Sender: No OFD packet to send [09:36:36]OFD Sender: No OFD packet to send [09:36:41]OFD Sender: No OFD packet to send [09:36:46]OFD Sender: No OFD packet to send [09:36:51]OFD Sender: No OFD packet to send [09:36:56]OFD Sender: No OFD packet to send [09:37:01]OFD Sender: No OFD packet to send [09:37:06]OFD Sender: No OFD packet to send [09:37:11]OFD Sender: No OFD packet to send [09:37:16]OFD Sender: No OFD packet to send [09:37:21]OFD Sender: No OFD packet to send [09:37:26]OFD Sender: No OFD packet to send [09:37:31]OFD Sender: No OFD packet to send [09:37:36]OFD Sender: No OFD packet to send [09:37:41]OFD Sender: No OFD packet to send [09:37:46]OFD Sender: No OFD packet to send [09:37:51]OFD Sender: No OFD packet to send [09:37:56]OFD Sender: No OFD packet to send [09:38:01]OFD Sender: No OFD packet to send [09:38:06]OFD Sender: No OFD packet to send [09:38:11]OFD Sender: No OFD packet to send [09:38:16]OFD Sender: No OFD packet to send [09:38:21]OFD Sender: No OFD packet to send [09:38:26]OFD Sender: No OFD packet to send [09:38:31]OFD Sender: No OFD packet to send [09:38:36]OFD Sender: No OFD packet to send [09:38:41]OFD Sender: No OFD packet to send [09:38:46]OFD Sender: No OFD packet to send [09:38:51]OFD Sender: No OFD packet to send [09:38:56]OFD Sender: No OFD packet to send [09:39:01]OFD Sender: No OFD packet to send [09:39:06]OFD Sender: No OFD packet to send [09:39:11]OFD Sender: No OFD packet to send [09:39:16]OFD Sender: No OFD packet to send [09:39:21]OFD Sender: No OFD packet to send [09:39:26]OFD Sender: No OFD packet to send [09:39:31]OFD Sender: No OFD packet to send [09:39:36]OFD Sender: No OFD packet to send [09:39:41]OFD Sender: No OFD packet to send [09:39:46]OFD Sender: No OFD packet to send [09:39:51]OFD Sender: No OFD packet to send [09:39:56]OFD Sender: No OFD packet to send [09:40:01]OFD Sender: No OFD packet to send [09:40:06]OFD Sender: No OFD packet to send [09:40:11]OFD Sender: No OFD packet to send [09:40:16]OFD Sender: No OFD packet to send [09:40:21]OFD Sender: No OFD packet to send [09:40:26]OFD Sender: No OFD packet to send [09:40:31]OFD Sender: No OFD packet to send [09:40:36]OFD Sender: No OFD packet to send [09:40:41]OFD Sender: No OFD packet to send [09:40:46]OFD Sender: No OFD packet to send [09:40:51]OFD Sender: No OFD packet to send [09:40:56]OFD Sender: No OFD packet to send [09:41:01]OFD Sender: No OFD packet to send [09:41:06]OFD Sender: No OFD packet to send [09:41:11]OFD Sender: No OFD packet to send [09:41:16]OFD Sender: No OFD packet to send [09:41:21]OFD Sender: No OFD packet to send [09:41:26]OFD Sender: No OFD packet to send [09:41:31]OFD Sender: No OFD packet to send [09:41:36]OFD Sender: No OFD packet to send [09:41:41]OFD Sender: No OFD packet to send [09:41:46]OFD Sender: No OFD packet to send [09:41:51]OFD Sender: No OFD packet to send [09:41:56]OFD Sender: No OFD packet to send [09:42:01]OFD Sender: No OFD packet to send [09:42:06]OFD Sender: No OFD packet to send [09:42:11]OFD Sender: No OFD packet to send [09:42:16]OFD Sender: No OFD packet to send [09:42:21]OFD Sender: No OFD packet to send [09:42:26]OFD Sender: No OFD packet to send [09:42:31]OFD Sender: No OFD packet to send [09:42:36]OFD Sender: No OFD packet to send [09:42:41]OFD Sender: No OFD packet to send [09:42:46]OFD Sender: No OFD packet to send [09:42:51]OFD Sender: No OFD packet to send [09:42:56]OFD Sender: No OFD packet to send [09:43:01]OFD Sender: No OFD packet to send [09:43:06]OFD Sender: No OFD packet to send [09:43:11]OFD Sender: No OFD packet to send [09:43:16]OFD Sender: No OFD packet to send [09:43:21]OFD Sender: No OFD packet to send [09:43:26]OFD Sender: No OFD packet to send [09:43:31]OFD Sender: No OFD packet to send [09:43:36]OFD Sender: No OFD packet to send [09:43:41]accept exits with 7 [09:43:41]New connection [09:43:41]New thread 3066715492 created [09:43:41]Thread 3066858852 joined [09:43:41]Waiting for new connection... [09:43:41] Sock 7.Parse request [09:43:41]Sock 7.Check first char [09:43:41]Sock 7.First char is OK [09:43:41]request: POST /json_proto HTTP/1.0 [09:43:41]Method: POST [09:43:41]URL: /json_proto [09:43:41]Method is POST - this is cgi request [09:43:41]url: /json_proto [09:43:41]query_string will be loaded in cgi processing [09:43:41]execute_cgi json_proto POST (null) [09:43:41]execute_cgi path=json_proto method=POST [09:43:41]POST find Content-Length [09:43:41]Host: 172.17.38.133:8080 [09:43:41]Content-Length: 678 [09:43:41]Content-Type: application/json [09:43:41] [09:43:41]POST finish read [09:43:41]Found Content-Length = 678 [09:43:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673518", "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" ] } } [09:43:41]execute_script... [09:43:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673518", "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" ] } } [09:43:41]POST & json_proto [09:43:41]process_json_proto [09:43:41]json parsed OK: [09:43:41]protocol is kg_v1.0 [09:43:41]action value=close_receipt [09:43:41]process_action close_receipt [09:43:41]cmd_close_receipt [09:43:41]MH_GetDate [09:43:41]Write to MH i2c: F0 00 00 07 18 0E [09:43:41]Write i2c OK [09:43:41]MH_I2C_Read... [09:43:41]Read from MH i2c: F0 [09:43:41]MH_I2C_Read... [09:43:41]Read from MH i2c: F0 09 00 [09:43:41]MH_I2C_Read... [09:43:41]Read from MH i2c: F0 09 00 07 18 00 51 4B 75 66 BD 8F 7C 64 BA [09:43:41]GetLastDocTimeStamp 1718962542 [09:43:41]current date 1718963025 [09:43:41]FM_GetShiftState [09:43:41]SAM_PROTO_GetShiftState [09:43:41]wFMCommunicate request_size=4 [09:43:41]MH_SAM_APDU [09:43:41]CAPDU: 80 13 01 00 [09:43:41]Write to MH i2c: E2 08 00 08 18 80 13 01 00 00 00 00 00 9D [09:43:41]Write i2c OK [09:43:41]MH_I2C_Read... [09:43:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:43:41]Read from MH i2c: E2 [09:43:41]MH_I2C_Read... [09:43:41]Read from MH i2c: E2 0E 00 [09:43:41]MH_I2C_Read... [09:43:41]Read from MH i2c: E2 0E 00 08 18 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 B0 [09:43:41]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [09:43:41]wFMCommunicate OK [09:43:41]SAM_PROTO_GetShiftState done [09:43:41]FM_GetShiftState done [09:43:41]opened in 1718929509 [09:43:41]opened+sec_in_day 1719015909 [09:43:41]quantity*price = 70052 [09:43:41]sum+1 = 70053 [09:43:41]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 СНО: Общий режим Чек 42 21.06.2024 09:43 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104119 ФПД: 3144901979112 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T094345&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104119&fm=3144901979112&tin=02508201610067®Number=0000000000092785&sum=70000 [09:43:42]StoreToDocumentArchive [09:43:42]shift 355 fd 104119 [09:43:42]save to /storage/0355/doc_00104119 [09:43:42]save last doc name /storage/0355/doc_00104119 to /storage/kkm_last_doc_name [09:43:42]save OK [09:43:42]Clear old archive folders... [09:43:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:43:42]tlvbuf is 01107440 [09:43:42]SAM_PROTO_ClearQueue [09:43:42]wFMCommunicate request_size=4 [09:43:42]MH_SAM_APDU [09:43:42]CAPDU: 80 09 00 00 [09:43:42]Write to MH i2c: E2 08 00 15 18 80 09 00 00 00 00 00 00 9F [09:43:42]Write i2c OK [09:43:42]MH_I2C_Read... [09:43:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:43:42]Read from MH i2c: E2 [09:43:42]MH_I2C_Read... [09:43:42]Read from MH i2c: E2 03 00 [09:43:42]MH_I2C_Read... [09:43:42]Read from MH i2c: E2 03 00 15 18 00 90 00 A1 [09:43:42]RAPDU: 90 00 [09:43:42]wFMCommunicate OK [09:43:42]SAM_PROTO_ClearQueue done [09:43:42]KKMCreateOFDPacket [09:43:42]OFDProtocolAddRootSTLVToBuf [09:43:42]FM_MakeSignedData [09:43:42]FM_MakeSignedData [09:43:42]SAM_PROTO_SignData [09:43:42]wFMCommunicate request_size=4 [09:43:42]MH_SAM_APDU [09:43:42]CAPDU: 80 0D 01 02 [09:43:42]Write to MH i2c: E2 08 00 16 18 80 0D 01 02 00 00 00 00 A7 [09:43:42]Write i2c OK [09:43:42]MH_I2C_Read... [09:43:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:43:42]Read from MH i2c: E2 [09:43:42]MH_I2C_Read... [09:43:42]Read from MH i2c: E2 03 00 [09:43:42]MH_I2C_Read... [09:43:42]Read from MH i2c: E2 03 00 16 18 00 90 00 A2 [09:43:42]RAPDU: 90 00 [09:43:42]wFMCommunicate OK [09:43:42]wFMCommunicate request_size=255 [09:43:42]MH_SAM_APDU [09:43: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 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 2A 00 00 00 F4 03 04 00 51 4B 75 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 B7 96 01 00 35 04 06 00 02 [09:43:42]Write to MH i2c: E2 02 01 17 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 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 2A 00 00 00 F4 03 04 00 51 4B 75 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 B7 96 01 00 35 04 06 00 02 00 00 C8 [09:43:42]Write i2c OK [09:43:42]MH_I2C_Read... [09:43:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:43:42]Read from MH i2c: E2 [09:43:42]MH_I2C_Read... [09:43:42]Read from MH i2c: E2 03 00 [09:43:42]MH_I2C_Read... [09:43:42]Read from MH i2c: E2 03 00 17 18 00 90 00 A3 [09:43:42]RAPDU: 90 00 [09:43:42]wFMCommunicate OK [09:43:42]wFMCommunicate request_size=10 [09:43:42]MH_SAM_APDU [09:43:42]CAPDU: 80 0D 02 02 05 DC 3A C3 EB E8 [09:43:42]Write to MH i2c: E2 0D 00 18 18 80 0D 02 02 05 00 DC 3A C3 EB E8 00 00 60 [09:43:42]Write i2c OK [09:43:42]MH_I2C_Read... [09:43:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:43:42]Read from MH i2c: E2 [09:43:42]MH_I2C_Read... [09:43:42]Read from MH i2c: E2 03 00 [09:43:42]MH_I2C_Read... [09:43:42]Read from MH i2c: E2 03 00 18 18 00 90 00 A4 [09:43:42]RAPDU: 90 00 [09:43:42]wFMCommunicate OK [09:43:42]wFMCommunicate request_size=4 [09:43:42]MH_SAM_APDU [09:43:42]CAPDU: 80 0D 03 02 [09:43:42]Write to MH i2c: E2 08 00 19 18 80 0D 03 02 00 00 00 00 AC [09:43:42]Write i2c OK [09:43:42]MH_I2C_Read... [09:43:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:43:42]Read from MH i2c: E2 [09:43:42]MH_I2C_Read... [09:43:42]Read from MH i2c: E2 0B 00 [09:43:42]MH_I2C_Read... [09:43:42]Read from MH i2c: E2 0B 00 19 18 00 FB A5 3B 5C 5E FA 65 23 90 00 C4 [09:43:42]RAPDU: FB A5 3B 5C 5E FA 65 23 90 00 [09:43:42]wFMCommunicate OK [09:43:42]SAM_PROTO_SignData done [09:43:42]FM_MakeSignedData done [09:43:42]CreateOFDProtocolMessage [09:43:42]wFMCommunicate request_size=4 [09:43:42]MH_SAM_APDU [09:43:42]CAPDU: 80 11 00 00 [09:43:42]Write to MH i2c: E2 08 00 1A 18 80 11 00 00 00 00 00 00 AC [09:43:42]Write i2c OK [09:43:42]MH_I2C_Read... [09:43:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:43:43]Read from MH i2c: E2 [09:43:43]MH_I2C_Read... [09:43:43]Read from MH i2c: E2 17 00 [09:43:43]MH_I2C_Read... [09:43:43]Read from MH i2c: E2 17 00 1A 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 FF [09:43:43]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:43]wFMCommunicate OK [09:43:43]CreateOFDProtocolMessage done [09:43:43]OFDSenderStorePacket 104119 [09:43:43]StoreOFDPacket docnum=104119 [09:43: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 D3 73 07 01 2A EB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 2A 00 00 00 F4 03 04 00 51 4B 75 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 B7 96 01 00 35 04 06 00 02 DC 3A C3 EB E8 FB A5 3B 5C 5E FA 65 23 [09:43:43]CheckFolder [09:43:43]dirname=/storage/ofd_packets [09:43:43]CheckFolder done [09:43:43]ProducePacketName [09:43:43]name=ofd_packets/00104119 [09:43:43]NVStorageSaveData ofd_packets/00104119 [09:43:43]File name is /storage/ofd_packets/00104119 [09:43:43]Write 301 bytes [09:43:43]NVStorageSaveData done [09:43:43]OFDSenderStorePacket done [09:43:43]KKMCreateOFDPacket done [09:43:43]NVStorageSaveData kkm_last_timestamp [09:43:43]File name is /storage/kkm_last_timestamp [09:43:43]Write 4 bytes [09:43:43]NVStorageSaveData done [09:43:43]OFD Sender: Processing packet 104119 [packets to send 17, broken 16] [09:43:43]ProducePacketName [09:43:43]name=ofd_packets/00104119 [09:43:43]OFD Sender: To server: pG, [09:43:43]CommunicateWithHost lk.salyk.kg:30040 [09:43:43]ConnectInit lk.salyk.kg [09:43:43]ExternCall_PrintAddStr [09:43:43]wPrintStart [09:43:43]Write to MH i2c: 01 00 00 1B 18 33 [09:43:43]Write i2c OK [09:43:43]MH_I2C_Read... [09:43:43]Read from MH i2c: 01 [09:43:43]MH_I2C_Read... [09:43:43]Read from MH i2c: 01 07 00 [09:43:43]MH_I2C_Read... [09:43:43]Read from MH i2c: 01 07 00 1B 18 00 00 00 00 00 FF 0F 48 [09:43:43]RasterBufferAndPrint [09:43:43]line Счет N : (1)673518 [09:43:43]line ИНН: 02508201610067 [09:43:43]line Контрольно-Кассовый Чек [09:43:43]line ПРОДАЖА [09:43:43]line ТРК (МРК, ГНК) : 32 [09:43:43]line Товар: 2710124130 [09:43:43]line Аи-92-К-5 [09:43:43]line 10.550 * 66.40 [09:43:43]line = 700.52 [09:43:43]line НДС 12% НСП 1% [09:43:43]line > о реализуемом товаре [09:43:43]line ОКРУГЛЕНИЕ: -0.52 [09:43:43]line ИТОГО: 700.00 [09:43:43]line Внесено: 700.00 [09:43:43]line СДАЧА: 0.00 [09:43:43]line НСП 1% : 6.20 [09:43:43]line НДС 12% : 74.39 [09:43:43]line Наличными: 700.00 [09:43:43]line Безнал.: 0.00 [09:43:43]line Место: АЗС № 120 "Партнер Нефть" [09:43:43]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [09:43:43]line СНО: Общий режим [09:43:43]line Чек 42 21.06.2024 09:43 [09:43:43]line Смена: 355 ФФД: 1.0 [09:43:43]line ЗНМ: 0300000164 [09:43:43]line РНМ: 0000000000092785 [09:43:43]line Версия ККМ: 001 [09:43:43]line ФМ: 0000000000875093 [09:43:43]line ФД: 104119 [09:43:43]line ФПД: 3144901979112 [09:43:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T094345&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104119&fm=3144901979112&tin=02508201610067®Number=0000000000092785&sum=70000 [09:43:43]Connected sock=11 [09:43:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 D3 73 07 01 2A EB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 2A 00 00 00 F4 03 04 00 51 4B 75 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 B7 96 01 00 35 04 06 00 02 DC 3A C3 EB E8 FB A5 3B 5C 5E FA 65 23 [09:43:43]written 0, free lines is 4095 [09:43: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 7D 7B 47 00 38 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 B7 96 01 00 F4 03 04 00 D3 F1 74 66 B6 04 01 00 00 AA AB A3 F0 96 96 E8 A5 [09:43:43]CommunicateWithHost err = 0 [09:43:43]CheckOFDResponse [09:43:43]1017 (14) - 77093643461234 [09:43:43]1041 (16) - 0000000000875093 [09:43:43]1040 (4) - 104119 [09:43:43]1012 (4) - 21.06.2024 03:21 [09:43:43]1206 (1) - 0 [09:43:43]OFD Sender: Remove packet 104119 [09:43:43]ProducePacketName [09:43:43]name=ofd_packets/00104119 [09:43:43]NVStorageDeleteData [09:43:43]Write to MH i2c: 01 00 00 46 18 5E [09:43:43]Write i2c OK [09:43:43]MH_I2C_Read... [09:43:43]Read from MH i2c: 01 [09:43:43]MH_I2C_Read... [09:43:43]Read from MH i2c: 01 07 00 [09:43:43]MH_I2C_Read... [09:43:43]Read from MH i2c: 01 07 00 46 18 00 00 00 00 00 D7 0C 48 [09:43:43]RasterBufferAndPrint [09:43:43]line [09:43:43]line [09:43:43]line [09:43:43]line [09:43:43]line [09:43:43]written 0, free lines is 3294 [09:43:43]MH_Cut [09:43:43]Write to MH i2c: D1 01 00 4D 18 01 37 [09:43:43]Write i2c OK [09:43:43]MH_I2C_Read... [09:43:43]Read from MH i2c: D1 [09:43:43]MH_I2C_Read... [09:43:43]Read from MH i2c: D1 01 00 [09:43:43]MH_I2C_Read... [09:43:43]Read from MH i2c: D1 01 00 4D 18 00 36 [09:43:43]Write to MH i2c: 01 00 00 4E 18 66 [09:43:43]Write i2c OK [09:43:43]MH_I2C_Read... [09:43:44]OFD Sender: No OFD packet to send [09:43:44]*** Cut start [09:43:44]*** Partial cut [09:43:44]*** CUTSNS_PIN = 1 [09:43:44]*** CUTSNS_PIN = 0 [09:43:44]*** Brake cut motor [09:43:45]Read from MH i2c: 01 [09:43:45]MH_I2C_Read... [09:43:45]*** Stop cut motor [09:43:45]*** Cut end [09:43:45]Read from MH i2c: 01 07 00 [09:43:45]MH_I2C_Read... [09:43:45]Read from MH i2c: 01 07 00 4E 18 00 00 00 00 00 FF 0F 7B [09:43:45]process_action close_receipt done [09:43:45]requested_data is exist [09:43:45]produce_requested_data [09:43:45]requested_item fm.sn is exist - process it [09:43:45]wFMCommunicate request_size=4 [09:43:45]MH_SAM_APDU [09:43:45]CAPDU: 80 11 00 00 [09:43:45]Write to MH i2c: E2 08 00 4F 18 80 11 00 00 00 00 00 00 E1 [09:43:45]Write i2c OK [09:43:45]MH_I2C_Read... [09:43:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:43:45]Read from MH i2c: E2 [09:43:45]MH_I2C_Read... [09:43:45]Read from MH i2c: E2 17 00 [09:43:45]MH_I2C_Read... [09:43:45]Read from MH i2c: E2 17 00 4F 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 34 [09:43:45]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:45]wFMCommunicate OK [09:43:45]requested_item fd.num is exist - process it [09:43:45]SAM_PROTO_GetFieldsCounters [09:43:45]wFMCommunicate request_size=4 [09:43:45]MH_SAM_APDU [09:43:45]CAPDU: 80 13 00 00 [09:43:45]Write to MH i2c: E2 08 00 50 18 80 13 00 00 00 00 00 00 E4 [09:43:45]Write i2c OK [09:43:45]MH_I2C_Read... [09:43:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:43:45]Read from MH i2c: E2 [09:43:45]MH_I2C_Read... [09:43:45]Read from MH i2c: E2 62 00 [09:43:45]MH_I2C_Read... [09:43:45]Read from MH i2c: E2 62 00 50 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 B7 96 01 00 0E 04 04 00 63 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 3B [09:43:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 96 01 00 0E 04 04 00 63 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:43:45]wFMCommunicate OK [09:43:45]SAM_PROTO_GetFieldsCounters done [09:43:45]requested_item shift.num is exist - process it [09:43:45]requested_item shift.opened is exist - process it [09:43:45]req_shift_opened [09:43:45]FM_GetShiftState [09:43:45]SAM_PROTO_GetShiftState [09:43:45]wFMCommunicate request_size=4 [09:43:45]MH_SAM_APDU [09:43:45]CAPDU: 80 13 01 00 [09:43:45]Write to MH i2c: E2 08 00 51 18 80 13 01 00 00 00 00 00 E6 [09:43:45]Write i2c OK [09:43:45]MH_I2C_Read... [09:43:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:43:45]Read from MH i2c: E2 [09:43:45]MH_I2C_Read... [09:43:45]Read from MH i2c: E2 0E 00 [09:43:45]MH_I2C_Read... [09:43:45]Read from MH i2c: E2 0E 00 51 18 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 F9 [09:43:45]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [09:43:45]wFMCommunicate OK [09:43:45]SAM_PROTO_GetShiftState done [09:43:45]FM_GetShiftState done [09:43:45]req_shift_opened done [09:43:45]requested_item shift.open_date is exist - process it [09:43:45]req_shift_open_date [09:43:45]req_shift_open_date done [09:43:45]produce_requested_data done [09:43:45]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104119,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [09:43:45]process_action_free close_receipt [09:43:45]json_value_free [09:43:45]json_value_free done [09:43:45]process_json_proto returns [09:43:45]Send response to host [09:43:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104119,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [09:43:45]free response buf [09:43:45]execute_script done [09:43:45]execute_script returns [09:43:45]free content buf [09:43:45]Sock 7.Close socket [09:43:45]Sock 7.Thread stoped [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:19]OFD Sender: No OFD packet to send [09:45:24]OFD Sender: No OFD packet to send [09:45:29]OFD Sender: No OFD packet to send [09:45:34]OFD Sender: No OFD packet to send [09:45:39]OFD Sender: No OFD packet to send [09:45:44]OFD Sender: No OFD packet to send [09:45:49]OFD Sender: No OFD packet to send [09:45:54]OFD Sender: No OFD packet to send [09:45:59]OFD Sender: No OFD packet to send [09:46:04]OFD Sender: No OFD packet to send [09:46:09]OFD Sender: No OFD packet to send [09:46:14]OFD Sender: No OFD packet to send [09:46:19]OFD Sender: No OFD packet to send [09:46:24]OFD Sender: No OFD packet to send [09:46:29]OFD Sender: No OFD packet to send [09:46:34]OFD Sender: No OFD packet to send [09:46:39]OFD Sender: No OFD packet to send [09:46:44]OFD Sender: No OFD packet to send [09:46:49]OFD Sender: No OFD packet to send [09:46:54]OFD Sender: No OFD packet to send [09:46:59]OFD Sender: No OFD packet to send [09:47:04]OFD Sender: No OFD packet to send [09:47:09]OFD Sender: No OFD packet to send [09:47:14]OFD Sender: No OFD packet to send [09:47:19]OFD Sender: No OFD packet to send [09:47:24]OFD Sender: No OFD packet to send [09:47:29]OFD Sender: No OFD packet to send [09:47:31]recv_with_timeout no data received [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:38]accept exits with 9 [09:48:38]New connection [09:48:38]New thread 3066858852 created [09:48:38]Thread 3066715492 joined [09:48:38]Waiting for new connection... [09:48:38] Sock 9.Parse request [09:48:38]Sock 9.Check first char [09:48:38]Sock 9.First char is OK [09:48:38]request: POST /json_proto HTTP/1.0 [09:48:38]Method: POST [09:48:38]URL: /json_proto [09:48:38]Method is POST - this is cgi request [09:48:38]url: /json_proto [09:48:38]query_string will be loaded in cgi processing [09:48:38]execute_cgi json_proto POST (null) [09:48:38]execute_cgi path=json_proto method=POST [09:48:38]POST find Content-Length [09:48:38]Host: 172.17.38.133:8080 [09:48:38]Content-Length: 1204 [09:48:38]Content-Type: application/json [09:48:38] [09:48:38]POST finish read [09:48:38]Found Content-Length = 1204 [09:48:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 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)673521\u000A21.06.2024 09:25\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 3.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 218.70\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\u000A2136433;2136434;2136435\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:48:38]execute_script... [09:48:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 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)673521\u000A21.06.2024 09:25\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 3.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 218.70\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\u000A2136433;2136434;2136435\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:48:38]POST & json_proto [09:48:38]process_json_proto [09:48:38]json parsed OK: [09:48:38]protocol is kg_v1.0 [09:48:38]action value=print_text [09:48:38]process_action print_text [09:48:38]cmd_print_text [09:48:38]ExternCall_PrintAddStr [09:48:38]wPrintStart [09:48:38]Write to MH i2c: 01 00 00 52 18 6A [09:48:38]Write i2c OK [09:48:38]MH_I2C_Read... [09:48:38]Read from MH i2c: 01 [09:48:38]MH_I2C_Read... [09:48:38]Read from MH i2c: 01 07 00 [09:48:38]MH_I2C_Read... [09:48:38]Read from MH i2c: 01 07 00 52 18 00 00 00 00 00 FF 0F 7F [09:48:38]RasterBufferAndPrint [09:48:38]line *****ТОВАРНЫЙ ЧЕК***** [09:48:38]line АЗС 120 [09:48:38]line Партнер нефть [09:48:38]line 02508201610067 [09:48:38]line Кассир : Асанбаев Н. [09:48:38]line Счет N : (1)673521 [09:48:38]line 21.06.2024 09:25 [09:48:38]line ПРОДАЖА [09:48:38]line ТРК (МРК, ГНК): 11 [09:48:38]line Вид ГСМ : 2710194210 [09:48:38]line ДТ(л)-К-5 [09:48:38]line 3.000 x 72.90 [09:48:38]line ИТОГ: 218.70 [09:48:38]line Тип оплаты: Талоны: Партнер нефть [09:48:38]line 2136433;2136434;2136435 [09:48:38]line ______________________ [09:48:38]line (подпись) [09:48:38]written 0, free lines is 4095 [09:48:39]Write to MH i2c: 01 00 00 66 18 7E [09:48:39]Write i2c OK [09:48:39]MH_I2C_Read... [09:48:39]Read from MH i2c: 01 [09:48:39]MH_I2C_Read... [09:48:39]Read from MH i2c: 01 07 00 [09:48:39]MH_I2C_Read... [09:48:39]Read from MH i2c: 01 07 00 66 18 00 00 00 00 00 17 0E AA [09:48:39]RasterBufferAndPrint [09:48:39]line [09:48:39]line [09:48:39]line [09:48:39]line [09:48:39]line [09:48:39]written 0, free lines is 3609 [09:48:39]MH_Cut [09:48:39]Write to MH i2c: D1 01 00 6D 18 01 57 [09:48:39]Write i2c OK [09:48:39]MH_I2C_Read... [09:48:39]Read from MH i2c: D1 [09:48:39]MH_I2C_Read... [09:48:39]Read from MH i2c: D1 01 00 [09:48:39]MH_I2C_Read... [09:48:39]Read from MH i2c: D1 01 00 6D 18 00 56 [09:48:39]Write to MH i2c: 01 00 00 6E 18 86 [09:48:39]Write i2c OK [09:48:39]MH_I2C_Read... [09:48:39]OFD Sender: No OFD packet to send [09:48:39]*** Cut start [09:48:39]*** Partial cut [09:48:39]*** CUTSNS_PIN = 1 [09:48:39]*** CUTSNS_PIN = 0 [09:48:39]*** Brake cut motor [09:48:40]Read from MH i2c: 01 [09:48:40]MH_I2C_Read... [09:48:40]Read from MH i2c: 01 07 00 [09:48:40]MH_I2C_Read... [09:48:40]*** Stop cut motor [09:48:40]*** Cut end [09:48:40]Read from MH i2c: 01 07 00 6E 18 00 00 00 00 00 FF 0F 9B [09:48:40]process_action print_text done [09:48:40]requested_data is exist [09:48:40]produce_requested_data [09:48:40]requested_item fm.sn is exist - process it [09:48:40]wFMCommunicate request_size=4 [09:48:40]MH_SAM_APDU [09:48:40]CAPDU: 80 11 00 00 [09:48:40]Write to MH i2c: E2 08 00 6F 18 80 11 00 00 00 00 00 00 01 [09:48:40]Write i2c OK [09:48:40]MH_I2C_Read... [09:48:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:48:40]Read from MH i2c: E2 [09:48:40]MH_I2C_Read... [09:48:40]Read from MH i2c: E2 17 00 [09:48:40]MH_I2C_Read... [09:48:40]Read from MH i2c: E2 17 00 6F 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 54 [09: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 [09:48:40]wFMCommunicate OK [09:48:40]requested_item fd.num is exist - process it [09:48:40]SAM_PROTO_GetFieldsCounters [09:48:40]wFMCommunicate request_size=4 [09:48:40]MH_SAM_APDU [09:48:40]CAPDU: 80 13 00 00 [09:48:40]Write to MH i2c: E2 08 00 70 18 80 13 00 00 00 00 00 00 04 [09:48:40]Write i2c OK [09:48:40]MH_I2C_Read... [09:48:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:48:40]Read from MH i2c: E2 [09:48:40]MH_I2C_Read... [09:48:40]Read from MH i2c: E2 62 00 [09:48:40]MH_I2C_Read... [09:48:40]Read from MH i2c: E2 62 00 70 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 B7 96 01 00 0E 04 04 00 63 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:48: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 B7 96 01 00 0E 04 04 00 63 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:48:40]wFMCommunicate OK [09:48:40]SAM_PROTO_GetFieldsCounters done [09:48:40]requested_item shift.num is exist - process it [09:48:40]requested_item shift.opened is exist - process it [09:48:40]req_shift_opened [09:48:40]FM_GetShiftState [09:48:40]SAM_PROTO_GetShiftState [09:48:40]wFMCommunicate request_size=4 [09:48:40]MH_SAM_APDU [09:48:40]CAPDU: 80 13 01 00 [09:48:40]Write to MH i2c: E2 08 00 71 18 80 13 01 00 00 00 00 00 06 [09:48:40]Write i2c OK [09:48:40]MH_I2C_Read... [09:48:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:48:40]Read from MH i2c: E2 [09:48:40]MH_I2C_Read... [09:48:40]Read from MH i2c: E2 0E 00 [09:48:40]MH_I2C_Read... [09:48:40]Read from MH i2c: E2 0E 00 71 18 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 19 [09:48:40]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [09:48:40]wFMCommunicate OK [09:48:40]SAM_PROTO_GetShiftState done [09:48:40]FM_GetShiftState done [09:48:40]req_shift_opened done [09:48:40]requested_item shift.open_date is exist - process it [09:48:40]req_shift_open_date [09:48:40]req_shift_open_date done [09:48:40]produce_requested_data done [09:48:40]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104119,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [09:48:40]process_action_free print_text [09:48:40]json_value_free [09:48:40]json_value_free done [09:48:40]process_json_proto returns [09:48:40]Send response to host [09:48:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104119,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [09:48:40]free response buf [09:48:40]execute_script done [09:48:40]execute_script returns [09:48:40]free content buf [09:48:40]Sock 9.Close socket [09:48:40]Sock 9.Thread stoped [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:21]accept exits with 7 [09:50:21]New connection [09:50:21]New thread 3066715492 created [09:50:21]Thread 3066858852 joined [09:50:21]Waiting for new connection... [09:50:21] Sock 7.Parse request [09:50:21]Sock 7.Check first char [09:50:21]Sock 7.First char is OK [09:50:21]request: POST /json_proto HTTP/1.0 [09:50:21]Method: POST [09:50:21]URL: /json_proto [09:50:21]Method is POST - this is cgi request [09:50:21]url: /json_proto [09:50:21]query_string will be loaded in cgi processing [09:50:21]execute_cgi json_proto POST (null) [09:50:21]execute_cgi path=json_proto method=POST [09:50:21]POST find Content-Length [09:50:21]Host: 172.17.38.133:8080 [09:50:21]Content-Length: 1196 [09:50:21]Content-Type: application/json [09:50:21] [09:50:21]POST finish read [09:50:21]Found Content-Length = 1196 [09:50: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 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)673523\u000A21.06.2024 09:27\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 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: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A2146440;2136436\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:50:21]execute_script... [09:50: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 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)673523\u000A21.06.2024 09:27\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 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: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A2146440;2136436\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:50:21]POST & json_proto [09:50:21]process_json_proto [09:50:21]json parsed OK: [09:50:21]protocol is kg_v1.0 [09:50:21]action value=print_text [09:50:21]process_action print_text [09:50:21]cmd_print_text [09:50:21]ExternCall_PrintAddStr [09:50:21]wPrintStart [09:50:21]Write to MH i2c: 01 00 00 72 18 8A [09:50:21]Write i2c OK [09:50:21]MH_I2C_Read... [09:50:21]Read from MH i2c: 01 [09:50:21]MH_I2C_Read... [09:50:21]Read from MH i2c: 01 07 00 [09:50:21]MH_I2C_Read... [09:50:21]Read from MH i2c: 01 07 00 72 18 00 00 00 00 00 FF 0F 9F [09:50:21]RasterBufferAndPrint [09:50:21]line *****ТОВАРНЫЙ ЧЕК***** [09:50:21]line АЗС 120 [09:50:21]line Партнер нефть [09:50:21]line 02508201610067 [09:50:21]line Кассир : Асанбаев Н. [09:50:21]line Счет N : (1)673523 [09:50:21]line 21.06.2024 09:27 [09:50:21]line ПРОДАЖА [09:50:21]line ТРК (МРК, ГНК): 11 [09:50:21]line Вид ГСМ : 2710194210 [09:50:21]line ДТ(л)-К-5 [09:50:21]line 6.000 x 72.90 [09:50:21]line ИТОГ: 437.40 [09:50:21]line Тип оплаты: Талоны: Партнер нефть [09:50:21]line 2146440;2136436 [09:50:21]line ______________________ [09:50:21]line (подпись) [09:50:21]written 0, free lines is 4095 [09:50:21]Write to MH i2c: 01 00 00 86 18 9E [09:50:21]Write i2c OK [09:50:21]MH_I2C_Read... [09:50:21]Read from MH i2c: 01 [09:50:21]MH_I2C_Read... [09:50:21]Read from MH i2c: 01 07 00 [09:50:21]MH_I2C_Read... [09:50:21]Read from MH i2c: 01 07 00 86 18 00 00 00 00 00 13 0E C6 [09:50:21]RasterBufferAndPrint [09:50:21]line [09:50:21]line [09:50:21]line [09:50:21]line [09:50:21]line [09:50:21]written 0, free lines is 3605 [09:50:21]MH_Cut [09:50:21]Write to MH i2c: D1 01 00 8D 18 01 77 [09:50:21]Write i2c OK [09:50:21]MH_I2C_Read... [09:50:21]Read from MH i2c: D1 [09:50:21]MH_I2C_Read... [09:50:21]Read from MH i2c: D1 01 00 [09:50:21]MH_I2C_Read... [09:50:21]Read from MH i2c: D1 01 00 8D 18 00 76 [09:50:21]Write to MH i2c: 01 00 00 8E 18 A6 [09:50:21]Write i2c OK [09:50:21]MH_I2C_Read... [09:50:22]*** Cut start [09:50:22]*** Partial cut [09:50:22]*** CUTSNS_PIN = 1 [09:50:22]*** CUTSNS_PIN = 0 [09:50:22]*** Brake cut motor [09:50:22]Read from MH i2c: 01 [09:50:22]MH_I2C_Read... [09:50:22]*** Stop cut motor [09:50:22]*** Cut end [09:50:22]Read from MH i2c: 01 07 00 [09:50:22]MH_I2C_Read... [09:50:22]Read from MH i2c: 01 07 00 8E 18 00 00 00 00 00 FF 0F BB [09:50:22]process_action print_text done [09:50:22]requested_data is exist [09:50:22]produce_requested_data [09:50:22]requested_item fm.sn is exist - process it [09:50:22]wFMCommunicate request_size=4 [09:50:22]MH_SAM_APDU [09:50:22]CAPDU: 80 11 00 00 [09:50:22]Write to MH i2c: E2 08 00 8F 18 80 11 00 00 00 00 00 00 21 [09:50:22]Write i2c OK [09:50:22]MH_I2C_Read... [09:50:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:50:22]Read from MH i2c: E2 [09:50:22]MH_I2C_Read... [09:50:22]Read from MH i2c: E2 17 00 [09:50:22]MH_I2C_Read... [09:50:22]Read from MH i2c: E2 17 00 8F 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 74 [09:50: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:50:22]wFMCommunicate OK [09:50:22]requested_item fd.num is exist - process it [09:50:22]SAM_PROTO_GetFieldsCounters [09:50:22]wFMCommunicate request_size=4 [09:50:22]MH_SAM_APDU [09:50:22]CAPDU: 80 13 00 00 [09:50:22]Write to MH i2c: E2 08 00 90 18 80 13 00 00 00 00 00 00 24 [09:50:22]Write i2c OK [09:50:22]MH_I2C_Read... [09:50:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:50:23]Read from MH i2c: E2 [09:50:23]MH_I2C_Read... [09:50:23]Read from MH i2c: E2 62 00 [09:50:23]MH_I2C_Read... [09:50:23]Read from MH i2c: E2 62 00 90 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 B7 96 01 00 0E 04 04 00 63 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 7B [09:50:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 96 01 00 0E 04 04 00 63 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:50:23]wFMCommunicate OK [09:50:23]SAM_PROTO_GetFieldsCounters done [09:50:23]requested_item shift.num is exist - process it [09:50:23]requested_item shift.opened is exist - process it [09:50:23]req_shift_opened [09:50:23]FM_GetShiftState [09:50:23]SAM_PROTO_GetShiftState [09:50:23]wFMCommunicate request_size=4 [09:50:23]MH_SAM_APDU [09:50:23]CAPDU: 80 13 01 00 [09:50:23]Write to MH i2c: E2 08 00 91 18 80 13 01 00 00 00 00 00 26 [09:50:23]Write i2c OK [09:50:23]MH_I2C_Read... [09:50:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:50:23]Read from MH i2c: E2 [09:50:23]MH_I2C_Read... [09:50:23]Read from MH i2c: E2 0E 00 [09:50:23]MH_I2C_Read... [09:50:23]Read from MH i2c: E2 0E 00 91 18 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 39 [09:50:23]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [09:50:23]wFMCommunicate OK [09:50:23]SAM_PROTO_GetShiftState done [09:50:23]FM_GetShiftState done [09:50:23]req_shift_opened done [09:50:23]requested_item shift.open_date is exist - process it [09:50:23]req_shift_open_date [09:50:23]req_shift_open_date done [09:50:23]produce_requested_data done [09:50:23]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104119,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [09:50:23]process_action_free print_text [09:50:23]json_value_free [09:50:23]json_value_free done [09:50:23]process_json_proto returns [09:50:23]Send response to host [09:50:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104119,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [09:50:23]free response buf [09:50:23]execute_script done [09:50:23]execute_script returns [09:50:23]free content buf [09:50:23]Sock 7.Close socket [09:50:23]Sock 7.Thread stoped [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:39]OFD Sender: No OFD packet to send [09:51:44]OFD Sender: No OFD packet to send [09:51:49]OFD Sender: No OFD packet to send [09:51:54]OFD Sender: No OFD packet to send [09:51:59]OFD Sender: No OFD packet to send [09:52:04]OFD Sender: No OFD packet to send [09:52:09]OFD Sender: No OFD packet to send [09:52:14]OFD Sender: No OFD packet to send [09:52:19]OFD Sender: No OFD packet to send [09:52:24]OFD Sender: No OFD packet to send [09:52:29]OFD Sender: No OFD packet to send [09:52:34]OFD Sender: No OFD packet to send [09:52:39]OFD Sender: No OFD packet to send [09:52:44]OFD Sender: No OFD packet to send [09:52:49]OFD Sender: No OFD packet to send [09:52:54]OFD Sender: No OFD packet to send [09:52:59]OFD Sender: No OFD packet to send [09:53:04]OFD Sender: No OFD packet to send [09:53:09]OFD Sender: No OFD packet to send [09:53:14]OFD Sender: No OFD packet to send [09:53:19]OFD Sender: No OFD packet to send [09:53:24]OFD Sender: No OFD packet to send [09:53:29]OFD Sender: No OFD packet to send [09:53:34]OFD Sender: No OFD packet to send [09:53:39]OFD Sender: No OFD packet to send [09:53:44]OFD Sender: No OFD packet to send [09:53:49]OFD Sender: No OFD packet to send [09:53:54]OFD Sender: No OFD packet to send [09:53:59]OFD Sender: No OFD packet to send [09:54:03]accept exits with 9 [09:54:03]New connection [09:54:03]New thread 3066858852 created [09:54:03]Thread 3066715492 joined [09:54:03]Waiting for new connection... [09:54:03] Sock 9.Parse request [09:54:03]Sock 9.Check first char [09:54:03]Sock 9.First char is OK [09:54:03]request: POST /json_proto HTTP/1.0 [09:54:03]Method: POST [09:54:03]URL: /json_proto [09:54:03]Method is POST - this is cgi request [09:54:03]url: /json_proto [09:54:03]query_string will be loaded in cgi processing [09:54:03]execute_cgi json_proto POST (null) [09:54:03]execute_cgi path=json_proto method=POST [09:54:03]POST find Content-Length [09:54:03]Host: 172.17.38.133:8080 [09:54:03]Content-Length: 677 [09:54:03]Content-Type: application/json [09:54:03] [09:54:03]POST finish read [09:54:03]Found Content-Length = 677 [09:54:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673526", "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.220, "sum" : 479.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 479.00, "payments": [ { "type": 0, "sum" : 479.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:54:03]execute_script... [09:54: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)673526", "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.220, "sum" : 479.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 479.00, "payments": [ { "type": 0, "sum" : 479.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:54:03]POST & json_proto [09:54:03]process_json_proto [09:54:03]json parsed OK: [09:54:03]protocol is kg_v1.0 [09:54:03]action value=close_receipt [09:54:03]process_action close_receipt [09:54:03]cmd_close_receipt [09:54:03]MH_GetDate [09:54:03]Write to MH i2c: F0 00 00 92 18 99 [09:54:03]Write i2c OK [09:54:03]MH_I2C_Read... [09:54:03]Read from MH i2c: F0 [09:54:03]MH_I2C_Read... [09:54:03]Read from MH i2c: F0 09 00 [09:54:03]MH_I2C_Read... [09:54:03]Read from MH i2c: F0 09 00 92 18 00 BF 4D 75 66 BD 8F 7C 64 B5 [09:54:03]GetLastDocTimeStamp 1718963025 [09:54:03]current date 1718963647 [09:54:03]FM_GetShiftState [09:54:03]SAM_PROTO_GetShiftState [09:54:03]wFMCommunicate request_size=4 [09:54:03]MH_SAM_APDU [09:54:03]CAPDU: 80 13 01 00 [09:54:03]Write to MH i2c: E2 08 00 93 18 80 13 01 00 00 00 00 00 28 [09:54:03]Write i2c OK [09:54:03]MH_I2C_Read... [09:54:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:54:03]Read from MH i2c: E2 [09:54:03]MH_I2C_Read... [09:54:03]Read from MH i2c: E2 0E 00 [09:54:03]MH_I2C_Read... [09:54:03]Read from MH i2c: E2 0E 00 93 18 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 3B [09:54:03]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [09:54:03]wFMCommunicate OK [09:54:03]SAM_PROTO_GetShiftState done [09:54:03]FM_GetShiftState done [09:54:03]opened in 1718929509 [09:54:03]opened+sec_in_day 1719015909 [09:54:03]quantity*price = 47940 [09:54:03]sum+1 = 47942 [09:54:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 479.00 Внесено: 500.00 СДАЧА: 21.00 НСП 1% : 4.24 НДС 12% : 50.91 Наличными: 479.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 43 21.06.2024 09:54 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104120 ФПД: 199347669171953 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T095407&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104120&fm=199347669171953&tin=02508201610067®Number=0000000000092785&sum=47900 [09:54:04]StoreToDocumentArchive [09:54:04]shift 355 fd 104120 [09:54:04]save to /storage/0355/doc_00104120 [09:54:04]save last doc name /storage/0355/doc_00104120 to /storage/kkm_last_doc_name [09:54:04]save OK [09:54:04]Clear old archive folders... [09:54:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:54:04]tlvbuf is 010F0550 [09:54:04]SAM_PROTO_ClearQueue [09:54:04]wFMCommunicate request_size=4 [09:54:04]MH_SAM_APDU [09:54:04]CAPDU: 80 09 00 00 [09:54:04]Write to MH i2c: E2 08 00 A0 18 80 09 00 00 00 00 00 00 2A [09:54:04]Write i2c OK [09:54:04]MH_I2C_Read... [09:54:04]Read from MH i2c: E2 [09:54:04]MH_I2C_Read... [09:54:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:54:04]Read from MH i2c: E2 03 00 [09:54:04]MH_I2C_Read... [09:54:04]Read from MH i2c: E2 03 00 A0 18 00 90 00 2C [09:54:04]RAPDU: 90 00 [09:54:04]wFMCommunicate OK [09:54:04]SAM_PROTO_ClearQueue done [09:54:04]KKMCreateOFDPacket [09:54:04]OFDProtocolAddRootSTLVToBuf [09:54:04]FM_MakeSignedData [09:54:04]FM_MakeSignedData [09:54:04]SAM_PROTO_SignData [09:54:04]wFMCommunicate request_size=4 [09:54:04]MH_SAM_APDU [09:54:04]CAPDU: 80 0D 01 02 [09:54:04]Write to MH i2c: E2 08 00 A1 18 80 0D 01 02 00 00 00 00 32 [09:54:04]Write i2c OK [09:54:04]MH_I2C_Read... [09:54:04]Read from MH i2c: E2 [09:54:04]MH_I2C_Read... [09:54:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:54:04]Read from MH i2c: E2 03 00 [09:54:04]MH_I2C_Read... [09:54:04]Read from MH i2c: E2 03 00 A1 18 00 90 00 2D [09:54:04]RAPDU: 90 00 [09:54:04]wFMCommunicate OK [09:54:04]wFMCommunicate request_size=255 [09:54:04]MH_SAM_APDU [09:54: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 34 1C 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 45 BB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C BB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E3 13 00 00 00 00 07 04 06 00 1C BB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 BF 4D 75 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 B8 96 01 00 35 04 06 00 B5 [09:54:04]Write to MH i2c: E2 02 01 A2 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 34 1C 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 45 BB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C BB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E3 13 00 00 00 00 07 04 06 00 1C BB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 BF 4D 75 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 B8 96 01 00 35 04 06 00 B5 00 00 62 [09:54:04]Write i2c OK [09:54:04]MH_I2C_Read... [09:54:05]Read from MH i2c: E2 [09:54:05]MH_I2C_Read... [09:54:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:54:05]Read from MH i2c: E2 03 00 [09:54:05]MH_I2C_Read... [09:54:05]Read from MH i2c: E2 03 00 A2 18 00 90 00 2E [09:54:05]RAPDU: 90 00 [09:54:05]wFMCommunicate OK [09:54:05]wFMCommunicate request_size=10 [09:54:05]MH_SAM_APDU [09:54:05]CAPDU: 80 0D 02 02 05 4E 3F 01 FE F1 [09:54:05]Write to MH i2c: E2 0D 00 A3 18 80 0D 02 02 05 00 4E 3F 01 FE F1 00 00 BC [09:54:05]Write i2c OK [09:54:05]MH_I2C_Read... [09:54:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:54:05]Read from MH i2c: E2 [09:54:05]MH_I2C_Read... [09:54:05]Read from MH i2c: E2 03 00 [09:54:05]MH_I2C_Read... [09:54:05]Read from MH i2c: E2 03 00 A3 18 00 90 00 2F [09:54:05]RAPDU: 90 00 [09:54:05]wFMCommunicate OK [09:54:05]wFMCommunicate request_size=4 [09:54:05]MH_SAM_APDU [09:54:05]CAPDU: 80 0D 03 02 [09:54:05]Write to MH i2c: E2 08 00 A4 18 80 0D 03 02 00 00 00 00 37 [09:54:05]Write i2c OK [09:54:05]MH_I2C_Read... [09:54:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:54:05]Read from MH i2c: E2 [09:54:05]MH_I2C_Read... [09:54:05]Read from MH i2c: E2 0B 00 [09:54:05]MH_I2C_Read... [09:54:05]Read from MH i2c: E2 0B 00 A4 18 00 90 2B 51 82 BE DC 48 79 90 00 21 [09:54:05]RAPDU: 90 2B 51 82 BE DC 48 79 90 00 [09:54:05]wFMCommunicate OK [09:54:05]SAM_PROTO_SignData done [09:54:05]FM_MakeSignedData done [09:54:05]CreateOFDProtocolMessage [09:54:05]wFMCommunicate request_size=4 [09:54:05]MH_SAM_APDU [09:54:05]CAPDU: 80 11 00 00 [09:54:05]Write to MH i2c: E2 08 00 A5 18 80 11 00 00 00 00 00 00 37 [09:54:05]Write i2c OK [09:54:05]MH_I2C_Read... [09:54:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:54:05]Read from MH i2c: E2 [09:54:05]MH_I2C_Read... [09:54:05]Read from MH i2c: E2 17 00 [09:54:05]MH_I2C_Read... [09:54:05]Read from MH i2c: E2 17 00 A5 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 8A [09:54:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [09:54:05]wFMCommunicate OK [09:54:05]CreateOFDProtocolMessage done [09:54:05]OFDSenderStorePacket 104120 [09:54:05]StoreOFDPacket docnum=104120 [09:54: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 79 52 07 01 FB 8C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 34 1C 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 45 BB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C BB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E3 13 00 00 00 00 07 04 06 00 1C BB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 BF 4D 75 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 B8 96 01 00 35 04 06 00 B5 4E 3F 01 FE F1 90 2B 51 82 BE DC 48 79 [09:54:05]CheckFolder [09:54:05]dirname=/storage/ofd_packets [09:54:05]CheckFolder done [09:54:05]ProducePacketName [09:54:05]name=ofd_packets/00104120 [09:54:05]NVStorageSaveData ofd_packets/00104120 [09:54:05]File name is /storage/ofd_packets/00104120 [09:54:05]Write 301 bytes [09:54:05]NVStorageSaveData done [09:54:05]OFDSenderStorePacket done [09:54:05]KKMCreateOFDPacket done [09:54:05]NVStorageSaveData kkm_last_timestamp [09:54:05]File name is /storage/kkm_last_timestamp [09:54:05]Write 4 bytes [09:54:05]NVStorageSaveData done [09:54:05]ExternCall_PrintAddStr [09:54:05]wPrintStart [09:54:05]Write to MH i2c: 01 00 00 A6 18 BE [09:54:05]Write i2c OK [09:54:05]MH_I2C_Read... [09:54:05]Read from MH i2c: 01 [09:54:05]MH_I2C_Read... [09:54:05]Read from MH i2c: 01 07 00 [09:54:05]MH_I2C_Read... [09:54:05]Read from MH i2c: 01 07 00 A6 18 00 00 00 00 00 FF 0F D3 [09:54:05]RasterBufferAndPrint [09:54:05]line Счет N : (1)673526 [09:54:05]line ИНН: 02508201610067 [09:54:05]line Контрольно-Кассовый Чек [09:54:05]line ПРОДАЖА [09:54:05]line ТРК (МРК, ГНК) : 32 [09:54:05]line Товар: 2710124130 [09:54:05]line Аи-92-К-5 [09:54:05]line 7.220 * 66.40 [09:54:05]line = 479.41 [09:54:05]line НДС 12% НСП 1% [09:54:05]line > о реализуемом товаре [09:54:05]line ОКРУГЛЕНИЕ: -0.41 [09:54:05]line ИТОГО: 479.00 [09:54:05]line Внесено: 500.00 [09:54:05]line СДАЧА: 21.00 [09:54:05]line НСП 1% : 4.24 [09:54:05]line НДС 12% : 50.91 [09:54:05]line Наличными: 479.00 [09:54:05]line Безнал.: 0.00 [09:54:05]line Место: АЗС № 120 "Партнер Нефть" [09:54:05]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [09:54:05]line СНО: Общий режим [09:54:05]line Чек 43 21.06.2024 09:54 [09:54:05]line Смена: 355 ФФД: 1.0 [09:54:05]line ЗНМ: 0300000164 [09:54:05]line РНМ: 0000000000092785 [09:54:05]line Версия ККМ: 001 [09:54:05]line ФМ: 0000000000875093 [09:54:05]line ФД: 104120 [09:54:05]line ФПД: 199347669171953 [09:54:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T095407&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104120&fm=199347669171953&tin=02508201610067®Number=0000000000092785&sum=47900 [09:54:05]OFD Sender: Processing packet 104120 [packets to send 17, broken 16] [09:54:05]ProducePacketName [09:54:05]name=ofd_packets/00104120 [09:54:05]OFD Sender: To server: pG, [09:54:05]CommunicateWithHost lk.salyk.kg:30040 [09:54:05]ConnectInit lk.salyk.kg [09:54:05]written 0, free lines is 4095 [09:54:05]Connected sock=10 [09:54: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 79 52 07 01 FB 8C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 34 1C 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 45 BB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C BB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E3 13 00 00 00 00 07 04 06 00 1C BB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 BF 4D 75 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 B8 96 01 00 35 04 06 00 B5 4E 3F 01 FE F1 90 2B 51 82 BE DC 48 79 [09:54: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 E6 0D 47 00 0E 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 B8 96 01 00 F4 03 04 00 42 F4 74 66 B6 04 01 00 00 AC FE 22 AD C6 EF D8 4B [09:54:05]CommunicateWithHost err = 0 [09:54:05]CheckOFDResponse [09:54:05]1017 (14) - 77093643461234 [09:54:05]1041 (16) - 0000000000875093 [09:54:05]1040 (4) - 104120 [09:54:05]1012 (4) - 21.06.2024 03:32 [09:54:05]1206 (1) - 0 [09:54:05]OFD Sender: Remove packet 104120 [09:54:05]ProducePacketName [09:54:05]name=ofd_packets/00104120 [09:54:05]NVStorageDeleteData [09:54:05]Write to MH i2c: 01 00 00 D1 18 E9 [09:54:05]Write i2c OK [09:54:05]MH_I2C_Read... [09:54:05]Read from MH i2c: 01 [09:54:05]MH_I2C_Read... [09:54:05]Read from MH i2c: 01 07 00 [09:54:05]MH_I2C_Read... [09:54:05]Read from MH i2c: 01 07 00 D1 18 00 00 00 00 00 CA 0C C6 [09:54:05]RasterBufferAndPrint [09:54:05]line [09:54:05]line [09:54:05]line [09:54:05]line [09:54:05]line [09:54:05]written 0, free lines is 3280 [09:54:05]MH_Cut [09:54:05]Write to MH i2c: D1 01 00 D8 18 01 C2 [09:54:05]Write i2c OK [09:54:05]MH_I2C_Read... [09:54:05]Read from MH i2c: D1 [09:54:05]MH_I2C_Read... [09:54:05]Read from MH i2c: D1 01 00 [09:54:05]MH_I2C_Read... [09:54:05]Read from MH i2c: D1 01 00 D8 18 00 C1 [09:54:05]Write to MH i2c: 01 00 00 D9 18 F1 [09:54:05]Write i2c OK [09:54:05]MH_I2C_Read... [09:54:06]OFD Sender: No OFD packet to send [09:54:06]*** Cut start [09:54:06]*** Partial cut [09:54:06]*** CUTSNS_PIN = 1 [09:54:06]*** CUTSNS_PIN = 0 [09:54:06]*** Brake cut motor [09:54:07]Read from MH i2c: 01 [09:54:07]MH_I2C_Read... [09:54:07]*** Stop cut motor [09:54:07]*** Cut end [09:54:07]Read from MH i2c: 01 07 00 [09:54:07]MH_I2C_Read... [09:54:07]Read from MH i2c: 01 07 00 D9 18 00 00 00 00 00 FF 0F 06 [09:54:07]process_action close_receipt done [09:54:07]requested_data is exist [09:54:07]produce_requested_data [09:54:07]requested_item fm.sn is exist - process it [09:54:07]wFMCommunicate request_size=4 [09:54:07]MH_SAM_APDU [09:54:07]CAPDU: 80 11 00 00 [09:54:07]Write to MH i2c: E2 08 00 DA 18 80 11 00 00 00 00 00 00 6C [09:54:07]Write i2c OK [09:54:07]MH_I2C_Read... [09:54:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:54:07]Read from MH i2c: E2 [09:54:07]MH_I2C_Read... [09:54:07]Read from MH i2c: E2 17 00 [09:54:07]MH_I2C_Read... [09:54:07]Read from MH i2c: E2 17 00 DA 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 BF [09:54:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [09:54:07]wFMCommunicate OK [09:54:07]requested_item fd.num is exist - process it [09:54:07]SAM_PROTO_GetFieldsCounters [09:54:07]wFMCommunicate request_size=4 [09:54:07]MH_SAM_APDU [09:54:07]CAPDU: 80 13 00 00 [09:54:07]Write to MH i2c: E2 08 00 DB 18 80 13 00 00 00 00 00 00 6F [09:54:07]Write i2c OK [09:54:07]MH_I2C_Read... [09:54:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:54:07]Read from MH i2c: E2 [09:54:07]MH_I2C_Read... [09:54:07]Read from MH i2c: E2 62 00 [09:54:07]MH_I2C_Read... [09:54:07]Read from MH i2c: E2 62 00 DB 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 B8 96 01 00 0E 04 04 00 63 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 CA [09:54: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 B8 96 01 00 0E 04 04 00 63 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:54:07]wFMCommunicate OK [09:54:07]SAM_PROTO_GetFieldsCounters done [09:54:07]requested_item shift.num is exist - process it [09:54:07]requested_item shift.opened is exist - process it [09:54:07]req_shift_opened [09:54:07]FM_GetShiftState [09:54:07]SAM_PROTO_GetShiftState [09:54:07]wFMCommunicate request_size=4 [09:54:07]MH_SAM_APDU [09:54:07]CAPDU: 80 13 01 00 [09:54:07]Write to MH i2c: E2 08 00 DC 18 80 13 01 00 00 00 00 00 71 [09:54:07]Write i2c OK [09:54:07]MH_I2C_Read... [09:54:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:54:07]Read from MH i2c: E2 [09:54:07]MH_I2C_Read... [09:54:07]Read from MH i2c: E2 0E 00 [09:54:07]MH_I2C_Read... [09:54:07]Read from MH i2c: E2 0E 00 DC 18 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 84 [09:54:07]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [09:54:07]wFMCommunicate OK [09:54:07]SAM_PROTO_GetShiftState done [09:54:07]FM_GetShiftState done [09:54:07]req_shift_opened done [09:54:07]requested_item shift.open_date is exist - process it [09:54:07]req_shift_open_date [09:54:07]req_shift_open_date done [09:54:07]produce_requested_data done [09:54:07]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104120,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [09:54:07]process_action_free close_receipt [09:54:07]json_value_free [09:54:07]json_value_free done [09:54:07]process_json_proto returns [09:54:07]Send response to host [09:54:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104120,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [09:54:07]free response buf [09:54:07]execute_script done [09:54:07]execute_script returns [09:54:07]free content buf [09:54:07]Sock 9.Close socket [09:54:07]Sock 9.Thread stoped [09:54:11]OFD Sender: No OFD packet to send [09:54:16]OFD Sender: No OFD packet to send [09:54:21]OFD Sender: No OFD packet to send [09:54:26]OFD Sender: No OFD packet to send [09:54:31]OFD Sender: No OFD packet to send [09:54:36]OFD Sender: No OFD packet to send [09:54:41]OFD Sender: No OFD packet to send [09:54:46]OFD Sender: No OFD packet to send [09:54:51]OFD Sender: No OFD packet to send [09:54:56]OFD Sender: No OFD packet to send [09:55:01]OFD Sender: No OFD packet to send [09:55:06]OFD Sender: No OFD packet to send [09:55:11]OFD Sender: No OFD packet to send [09:55:16]OFD Sender: No OFD packet to send [09:55:21]OFD Sender: No OFD packet to send [09:55:26]OFD Sender: No OFD packet to send [09:55:31]OFD Sender: No OFD packet to send [09:55:36]OFD Sender: No OFD packet to send [09:55:41]OFD Sender: No OFD packet to send [09:55:46]OFD Sender: No OFD packet to send [09:55:51]OFD Sender: No OFD packet to send [09:55:52]accept exits with 7 [09:55:52]New connection [09:55:52]New thread 3066715492 created [09:55:52]Thread 3066858852 joined [09:55:52]Waiting for new connection... [09:55:52] Sock 7.Parse request [09:55:52]Sock 7.Check first char [09:55:52]Sock 7.First char is OK [09:55:52]request: POST /json_proto HTTP/1.0 [09:55:52]Method: POST [09:55:52]URL: /json_proto [09:55:52]Method is POST - this is cgi request [09:55:52]url: /json_proto [09:55:52]query_string will be loaded in cgi processing [09:55:52]execute_cgi json_proto POST (null) [09:55:52]execute_cgi path=json_proto method=POST [09:55:52]POST find Content-Length [09:55:52]Host: 172.17.38.133:8080 [09:55:52]Content-Length: 677 [09:55:52]Content-Type: application/json [09:55:52] [09:55:52]POST finish read [09:55:52]Found Content-Length = 677 [09:55:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673527", "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" ] } } [09:55:52]execute_script... [09:55: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)673527", "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" ] } } [09:55:52]POST & json_proto [09:55:52]process_json_proto [09:55:52]json parsed OK: [09:55:52]protocol is kg_v1.0 [09:55:52]action value=close_receipt [09:55:52]process_action close_receipt [09:55:52]cmd_close_receipt [09:55:52]MH_GetDate [09:55:52]Write to MH i2c: F0 00 00 DD 18 E4 [09:55:52]Write i2c OK [09:55:52]MH_I2C_Read... [09:55:52]Read from MH i2c: F0 [09:55:52]MH_I2C_Read... [09:55:52]Read from MH i2c: F0 09 00 [09:55:52]MH_I2C_Read... [09:55:52]Read from MH i2c: F0 09 00 DD 18 00 2C 4E 75 66 BD 8F 7C 64 6E [09:55:52]GetLastDocTimeStamp 1718963647 [09:55:52]current date 1718963756 [09:55:52]FM_GetShiftState [09:55:52]SAM_PROTO_GetShiftState [09:55:52]wFMCommunicate request_size=4 [09:55:52]MH_SAM_APDU [09:55:52]CAPDU: 80 13 01 00 [09:55:52]Write to MH i2c: E2 08 00 DE 18 80 13 01 00 00 00 00 00 73 [09:55:52]Write i2c OK [09:55:52]MH_I2C_Read... [09:55:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:55:52]Read from MH i2c: E2 [09:55:52]MH_I2C_Read... [09:55:52]Read from MH i2c: E2 0E 00 [09:55:52]MH_I2C_Read... [09:55:52]Read from MH i2c: E2 0E 00 DE 18 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 86 [09:55:52]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [09:55:52]wFMCommunicate OK [09:55:52]SAM_PROTO_GetShiftState done [09:55:52]FM_GetShiftState done [09:55:52]opened in 1718929509 [09:55:52]opened+sec_in_day 1719015909 [09:55:52]quantity*price = 35059 [09:55:52]sum+1 = 35060 [09:55:52]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 СНО: Общий режим Чек 44 21.06.2024 09:55 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104121 ФПД: 106089516651875 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T095556&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104121&fm=106089516651875&tin=02508201610067®Number=0000000000092785&sum=35000 [09:55:53]StoreToDocumentArchive [09:55:53]shift 355 fd 104121 [09:55:53]save to /storage/0355/doc_00104121 [09:55:53]save last doc name /storage/0355/doc_00104121 to /storage/kkm_last_doc_name [09:55:53]save OK [09:55:53]Clear old archive folders... [09:55:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:55:53]tlvbuf is 01132340 [09:55:53]SAM_PROTO_ClearQueue [09:55:53]wFMCommunicate request_size=4 [09:55:53]MH_SAM_APDU [09:55:53]CAPDU: 80 09 00 00 [09:55:53]Write to MH i2c: E2 08 00 EB 18 80 09 00 00 00 00 00 00 75 [09:55:53]Write i2c OK [09:55:53]MH_I2C_Read... [09:55:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:55:53]Read from MH i2c: E2 [09:55:53]MH_I2C_Read... [09:55:53]Read from MH i2c: E2 03 00 [09:55:53]MH_I2C_Read... [09:55:53]Read from MH i2c: E2 03 00 EB 18 00 90 00 77 [09:55:53]RAPDU: 90 00 [09:55:53]wFMCommunicate OK [09:55:53]SAM_PROTO_ClearQueue done [09:55:53]KKMCreateOFDPacket [09:55:53]OFDProtocolAddRootSTLVToBuf [09:55:53]FM_MakeSignedData [09:55:53]FM_MakeSignedData [09:55:53]SAM_PROTO_SignData [09:55:53]wFMCommunicate request_size=4 [09:55:53]MH_SAM_APDU [09:55:53]CAPDU: 80 0D 01 02 [09:55:53]Write to MH i2c: E2 08 00 EC 18 80 0D 01 02 00 00 00 00 7D [09:55:53]Write i2c OK [09:55:53]MH_I2C_Read... [09:55:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:55:53]Read from MH i2c: E2 [09:55:53]MH_I2C_Read... [09:55:53]Read from MH i2c: E2 03 00 [09:55:53]MH_I2C_Read... [09:55:53]Read from MH i2c: E2 03 00 EC 18 00 90 00 78 [09:55:53]RAPDU: 90 00 [09:55:53]wFMCommunicate OK [09:55:53]wFMCommunicate request_size=255 [09:55:53]MH_SAM_APDU [09:55: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 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 2C 00 00 00 F4 03 04 00 2C 4E 75 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 B9 96 01 00 35 04 06 00 60 [09:55:53]Write to MH i2c: E2 02 01 ED 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 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 2C 00 00 00 F4 03 04 00 2C 4E 75 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 B9 96 01 00 35 04 06 00 60 00 00 AA [09:55:53]Write i2c OK [09:55:53]MH_I2C_Read... [09:55:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:55:53]Read from MH i2c: E2 [09:55:53]MH_I2C_Read... [09:55:53]Read from MH i2c: E2 03 00 [09:55:53]MH_I2C_Read... [09:55:53]Read from MH i2c: E2 03 00 ED 18 00 90 00 79 [09:55:53]RAPDU: 90 00 [09:55:53]wFMCommunicate OK [09:55:53]wFMCommunicate request_size=10 [09:55:53]MH_SAM_APDU [09:55:53]CAPDU: 80 0D 02 02 05 7C E3 F4 55 63 [09:55:53]Write to MH i2c: E2 0D 00 EE 18 80 0D 02 02 05 00 7C E3 F4 55 63 00 00 95 [09:55:53]Write i2c OK [09:55:53]MH_I2C_Read... [09:55:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:55:53]Read from MH i2c: E2 [09:55:53]MH_I2C_Read... [09:55:53]Read from MH i2c: E2 03 00 [09:55:53]MH_I2C_Read... [09:55:53]Read from MH i2c: E2 03 00 EE 18 00 90 00 7A [09:55:53]RAPDU: 90 00 [09:55:53]wFMCommunicate OK [09:55:53]wFMCommunicate request_size=4 [09:55:53]MH_SAM_APDU [09:55:53]CAPDU: 80 0D 03 02 [09:55:53]Write to MH i2c: E2 08 00 EF 18 80 0D 03 02 00 00 00 00 82 [09:55:53]Write i2c OK [09:55:53]MH_I2C_Read... [09:55:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:55:53]Read from MH i2c: E2 [09:55:53]MH_I2C_Read... [09:55:53]Read from MH i2c: E2 0B 00 [09:55:53]MH_I2C_Read... [09:55:53]Read from MH i2c: E2 0B 00 EF 18 00 B7 CA 17 33 AB A4 29 81 90 00 47 [09:55:53]RAPDU: B7 CA 17 33 AB A4 29 81 90 00 [09:55:53]wFMCommunicate OK [09:55:53]SAM_PROTO_SignData done [09:55:53]FM_MakeSignedData done [09:55:53]CreateOFDProtocolMessage [09:55:53]wFMCommunicate request_size=4 [09:55:53]MH_SAM_APDU [09:55:53]CAPDU: 80 11 00 00 [09:55:53]Write to MH i2c: E2 08 00 F0 18 80 11 00 00 00 00 00 00 82 [09:55:53]Write i2c OK [09:55:53]MH_I2C_Read... [09:55:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:55:53]Read from MH i2c: E2 [09:55:53]MH_I2C_Read... [09:55:53]Read from MH i2c: E2 17 00 [09:55:53]MH_I2C_Read... [09:55:53]Read from MH i2c: E2 17 00 F0 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 D5 [09:55: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:55:53]wFMCommunicate OK [09:55:53]CreateOFDProtocolMessage done [09:55:53]OFDSenderStorePacket 104121 [09:55:53]StoreOFDPacket docnum=104121 [09:55: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 3B 46 07 01 1C 57 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 2C 00 00 00 F4 03 04 00 2C 4E 75 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 B9 96 01 00 35 04 06 00 60 7C E3 F4 55 63 B7 CA 17 33 AB A4 29 81 [09:55:53]CheckFolder [09:55:53]dirname=/storage/ofd_packets [09:55:53]CheckFolder done [09:55:53]ProducePacketName [09:55:53]name=ofd_packets/00104121 [09:55:53]NVStorageSaveData ofd_packets/00104121 [09:55:53]File name is /storage/ofd_packets/00104121 [09:55:53]Write 301 bytes [09:55:53]NVStorageSaveData done [09:55:53]OFDSenderStorePacket done [09:55:53]KKMCreateOFDPacket done [09:55:53]NVStorageSaveData kkm_last_timestamp [09:55:53]File name is /storage/kkm_last_timestamp [09:55:53]Write 4 bytes [09:55:53]NVStorageSaveData done [09:55:53]ExternCall_PrintAddStr [09:55:53]wPrintStart [09:55:53]Write to MH i2c: 01 00 00 F1 18 09 [09:55:53]Write i2c OK [09:55:53]MH_I2C_Read... [09:55:53]Read from MH i2c: 01 [09:55:53]MH_I2C_Read... [09:55:53]Read from MH i2c: 01 07 00 [09:55:53]MH_I2C_Read... [09:55:53]Read from MH i2c: 01 07 00 F1 18 00 00 00 00 00 FF 0F 1E [09:55:53]RasterBufferAndPrint [09:55:53]line Счет N : (1)673527 [09:55:53]line ИНН: 02508201610067 [09:55:53]line Контрольно-Кассовый Чек [09:55:53]line ПРОДАЖА [09:55:53]line ТРК (МРК, ГНК) : 42 [09:55:53]line Товар: 2710124130 [09:55:53]line Аи-92-К-5 [09:55:53]line 5.280 * 66.40 [09:55:53]line = 350.59 [09:55:53]line НДС 12% НСП 1% [09:55:53]line > о реализуемом товаре [09:55:53]line ОКРУГЛЕНИЕ: -0.59 [09:55:53]line ИТОГО: 350.00 [09:55:53]line Внесено: 350.00 [09:55:53]line СДАЧА: 0.00 [09:55:53]line НСП 1% : 3.10 [09:55:53]line НДС 12% : 37.23 [09:55:53]line Наличными: 350.00 [09:55:53]line Безнал.: 0.00 [09:55:53]line Место: АЗС № 120 "Партнер Нефть" [09:55:53]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [09:55:53]line СНО: Общий режим [09:55:53]line Чек 44 21.06.2024 09:55 [09:55:53]line Смена: 355 ФФД: 1.0 [09:55:53]line ЗНМ: 0300000164 [09:55:53]line РНМ: 0000000000092785 [09:55:53]line Версия ККМ: 001 [09:55:53]line ФМ: 0000000000875093 [09:55:53]line ФД: 104121 [09:55:53]line ФПД: 106089516651875 [09:55:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T095556&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104121&fm=106089516651875&tin=02508201610067®Number=0000000000092785&sum=35000 [09:55:54]OFD Sender: Processing packet 104121 [packets to send 17, broken 16] [09:55:54]ProducePacketName [09:55:54]name=ofd_packets/00104121 [09:55:54]OFD Sender: To server: pG, [09:55:54]CommunicateWithHost lk.salyk.kg:30040 [09:55:54]ConnectInit lk.salyk.kg [09:55:54]written 0, free lines is 4095 [09:55:54]Connected sock=11 [09:55: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 3B 46 07 01 1C 57 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 2C 00 00 00 F4 03 04 00 2C 4E 75 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 B9 96 01 00 35 04 06 00 60 7C E3 F4 55 63 B7 CA 17 33 AB A4 29 81 [09:55: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 97 0B 47 00 EC 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 B9 96 01 00 F4 03 04 00 AE F4 74 66 B6 04 01 00 00 A4 2A BA 0A 7F 28 CD 84 [09:55:54]CommunicateWithHost err = 0 [09:55:54]CheckOFDResponse [09:55:54]1017 (14) - 77093643461234 [09:55:54]1041 (16) - 0000000000875093 [09:55:54]1040 (4) - 104121 [09:55:54]1012 (4) - 21.06.2024 03:34 [09:55:54]1206 (1) - 0 [09:55:54]OFD Sender: Remove packet 104121 [09:55:54]ProducePacketName [09:55:54]name=ofd_packets/00104121 [09:55:54]NVStorageDeleteData [09:55:54]Write to MH i2c: 01 00 00 1C 19 35 [09:55:54]Write i2c OK [09:55:54]MH_I2C_Read... [09:55:54]Read from MH i2c: 01 [09:55:54]MH_I2C_Read... [09:55:54]Read from MH i2c: 01 07 00 [09:55:54]MH_I2C_Read... [09:55:54]Read from MH i2c: 01 07 00 1C 19 00 00 00 00 00 DD 0C 25 [09:55:54]RasterBufferAndPrint [09:55:54]line [09:55:54]line [09:55:54]line [09:55:54]line [09:55:54]line [09:55:54]written 0, free lines is 3298 [09:55:54]MH_Cut [09:55:54]Write to MH i2c: D1 01 00 23 19 01 0E [09:55:54]Write i2c OK [09:55:54]MH_I2C_Read... [09:55:54]Read from MH i2c: D1 [09:55:54]MH_I2C_Read... [09:55:54]Read from MH i2c: D1 01 00 [09:55:54]MH_I2C_Read... [09:55:54]Read from MH i2c: D1 01 00 23 19 00 0D [09:55:54]Write to MH i2c: 01 00 00 24 19 3D [09:55:54]Write i2c OK [09:55:54]MH_I2C_Read... [09:55:55]OFD Sender: No OFD packet to send [09:55:55]*** Cut start [09:55:55]*** Partial cut [09:55:55]*** CUTSNS_PIN = 1 [09:55:55]*** CUTSNS_PIN = 0 [09:55:55]*** Brake cut motor [09:55:56]Read from MH i2c: 01 [09:55:56]MH_I2C_Read... [09:55:56]*** Stop cut motor [09:55:56]*** Cut end [09:55:56]Read from MH i2c: 01 07 00 [09:55:56]MH_I2C_Read... [09:55:56]Read from MH i2c: 01 07 00 24 19 00 00 00 00 00 FF 0F 52 [09:55:56]process_action close_receipt done [09:55:56]requested_data is exist [09:55:56]produce_requested_data [09:55:56]requested_item fm.sn is exist - process it [09:55:56]wFMCommunicate request_size=4 [09:55:56]MH_SAM_APDU [09:55:56]CAPDU: 80 11 00 00 [09:55:56]Write to MH i2c: E2 08 00 25 19 80 11 00 00 00 00 00 00 B8 [09:55:56]Write i2c OK [09:55:56]MH_I2C_Read... [09:55:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:55:56]Read from MH i2c: E2 [09:55:56]MH_I2C_Read... [09:55:56]Read from MH i2c: E2 17 00 [09:55:56]MH_I2C_Read... [09:55:56]Read from MH i2c: E2 17 00 25 19 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:55: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:55:56]wFMCommunicate OK [09:55:56]requested_item fd.num is exist - process it [09:55:56]SAM_PROTO_GetFieldsCounters [09:55:56]wFMCommunicate request_size=4 [09:55:56]MH_SAM_APDU [09:55:56]CAPDU: 80 13 00 00 [09:55:56]Write to MH i2c: E2 08 00 26 19 80 13 00 00 00 00 00 00 BB [09:55:56]Write i2c OK [09:55:56]MH_I2C_Read... [09:55:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:55:56]Read from MH i2c: E2 [09:55:56]MH_I2C_Read... [09:55:56]Read from MH i2c: E2 62 00 [09:55:56]MH_I2C_Read... [09:55:56]Read from MH i2c: E2 62 00 26 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 B9 96 01 00 0E 04 04 00 63 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 1A [09:55: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 B9 96 01 00 0E 04 04 00 63 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:55:56]wFMCommunicate OK [09:55:56]SAM_PROTO_GetFieldsCounters done [09:55:56]requested_item shift.num is exist - process it [09:55:56]requested_item shift.opened is exist - process it [09:55:56]req_shift_opened [09:55:56]FM_GetShiftState [09:55:56]SAM_PROTO_GetShiftState [09:55:56]wFMCommunicate request_size=4 [09:55:56]MH_SAM_APDU [09:55:56]CAPDU: 80 13 01 00 [09:55:56]Write to MH i2c: E2 08 00 27 19 80 13 01 00 00 00 00 00 BD [09:55:56]Write i2c OK [09:55:56]MH_I2C_Read... [09:55:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:55:56]Read from MH i2c: E2 [09:55:56]MH_I2C_Read... [09:55:56]Read from MH i2c: E2 0E 00 [09:55:56]MH_I2C_Read... [09:55:56]Read from MH i2c: E2 0E 00 27 19 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 D0 [09:55:56]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [09:55:56]wFMCommunicate OK [09:55:56]SAM_PROTO_GetShiftState done [09:55:56]FM_GetShiftState done [09:55:56]req_shift_opened done [09:55:56]requested_item shift.open_date is exist - process it [09:55:56]req_shift_open_date [09:55:56]req_shift_open_date done [09:55:56]produce_requested_data done [09:55:56]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104121,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [09:55:56]process_action_free close_receipt [09:55:56]json_value_free [09:55:56]json_value_free done [09:55:56]process_json_proto returns [09:55:56]Send response to host [09:55:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104121,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [09:55:56]free response buf [09:55:56]execute_script done [09:55:56]execute_script returns [09:55:56]free content buf [09:55:56]Sock 7.Close socket [09:55:56]Sock 7.Thread stoped [09:56:00]OFD Sender: No OFD packet to send [09:56:05]OFD Sender: No OFD packet to send [09:56:10]OFD Sender: No OFD packet to send [09:56:15]OFD Sender: No OFD packet to send [09:56:20]OFD Sender: No OFD packet to send [09:56:25]OFD Sender: No OFD packet to send [09:56:30]OFD Sender: No OFD packet to send [09:56:35]OFD Sender: No OFD packet to send [09:56:40]OFD Sender: No OFD packet to send [09:56:43]accept exits with 9 [09:56:43]New connection [09:56:43]New thread 3066858852 created [09:56:43]Thread 3066715492 joined [09:56:43]Waiting for new connection... [09:56:43] Sock 9.Parse request [09:56:43]Sock 9.Check first char [09:56:43]Sock 9.First char is OK [09:56:43]request: POST /json_proto HTTP/1.0 [09:56:43]Method: POST [09:56:43]URL: /json_proto [09:56:43]Method is POST - this is cgi request [09:56:43]url: /json_proto [09:56:43]query_string will be loaded in cgi processing [09:56:43]execute_cgi json_proto POST (null) [09:56:43]execute_cgi path=json_proto method=POST [09:56:43]POST find Content-Length [09:56:43]Host: 172.17.38.133:8080 [09:56:43]Content-Length: 677 [09:56:43]Content-Type: application/json [09:56:43] [09:56:43]POST finish read [09:56:43]Found Content-Length = 677 [09:56:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673528", "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.480, "sum" : 430.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 430.00, "total" : 430.00, "payments": [ { "type": 0, "sum" : 430.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:56:43]execute_script... [09:56: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)673528", "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.480, "sum" : 430.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 430.00, "total" : 430.00, "payments": [ { "type": 0, "sum" : 430.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:56:43]POST & json_proto [09:56:43]process_json_proto [09:56:43]json parsed OK: [09:56:43]protocol is kg_v1.0 [09:56:43]action value=close_receipt [09:56:43]process_action close_receipt [09:56:43]cmd_close_receipt [09:56:43]MH_GetDate [09:56:43]Write to MH i2c: F0 00 00 28 19 30 [09:56:43]Write i2c OK [09:56:43]MH_I2C_Read... [09:56:43]Read from MH i2c: F0 [09:56:43]MH_I2C_Read... [09:56:43]Read from MH i2c: F0 09 00 [09:56:43]MH_I2C_Read... [09:56:43]Read from MH i2c: F0 09 00 28 19 00 5F 4E 75 66 BD 8F 7C 64 ED [09:56:43]GetLastDocTimeStamp 1718963756 [09:56:43]current date 1718963807 [09:56:43]FM_GetShiftState [09:56:43]SAM_PROTO_GetShiftState [09:56:43]wFMCommunicate request_size=4 [09:56:43]MH_SAM_APDU [09:56:43]CAPDU: 80 13 01 00 [09:56:43]Write to MH i2c: E2 08 00 29 19 80 13 01 00 00 00 00 00 BF [09:56:43]Write i2c OK [09:56:43]MH_I2C_Read... [09:56:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:56:43]Read from MH i2c: E2 [09:56:43]MH_I2C_Read... [09:56:43]Read from MH i2c: E2 0E 00 [09:56:43]MH_I2C_Read... [09:56:43]Read from MH i2c: E2 0E 00 29 19 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 D2 [09:56:43]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [09:56:43]wFMCommunicate OK [09:56:43]SAM_PROTO_GetShiftState done [09:56:43]FM_GetShiftState done [09:56:43]opened in 1718929509 [09:56:43]opened+sec_in_day 1719015909 [09:56:43]quantity*price = 43027 [09:56:43]sum+1 = 43028 [09:56:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.27 ИТОГО: 430.00 Внесено: 430.00 СДАЧА: 0.00 НСП 1% : 3.81 НДС 12% : 45.69 Наличными: 430.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 45 21.06.2024 09:56 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104122 ФПД: 164906577245752 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T095647&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104122&fm=164906577245752&tin=02508201610067®Number=0000000000092785&sum=43000 [09:56:44]StoreToDocumentArchive [09:56:44]shift 355 fd 104122 [09:56:44]save to /storage/0355/doc_00104122 [09:56:44]save last doc name /storage/0355/doc_00104122 to /storage/kkm_last_doc_name [09:56:44]save OK [09:56:44]Clear old archive folders... [09:56:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:56:44]tlvbuf is 010FE120 [09:56:44]SAM_PROTO_ClearQueue [09:56:44]wFMCommunicate request_size=4 [09:56:44]MH_SAM_APDU [09:56:44]CAPDU: 80 09 00 00 [09:56:44]Write to MH i2c: E2 08 00 36 19 80 09 00 00 00 00 00 00 C1 [09:56:44]Write i2c OK [09:56:44]MH_I2C_Read... [09:56:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:56:44]Read from MH i2c: E2 [09:56:44]MH_I2C_Read... [09:56:44]Read from MH i2c: E2 03 00 [09:56:44]MH_I2C_Read... [09:56:44]Read from MH i2c: E2 03 00 36 19 00 90 00 C3 [09:56:44]RAPDU: 90 00 [09:56:44]wFMCommunicate OK [09:56:44]SAM_PROTO_ClearQueue done [09:56:44]KKMCreateOFDPacket [09:56:44]OFDProtocolAddRootSTLVToBuf [09:56:44]FM_MakeSignedData [09:56:44]FM_MakeSignedData [09:56:44]SAM_PROTO_SignData [09:56:44]wFMCommunicate request_size=4 [09:56:44]MH_SAM_APDU [09:56:44]CAPDU: 80 0D 01 02 [09:56:44]Write to MH i2c: E2 08 00 37 19 80 0D 01 02 00 00 00 00 C9 [09:56:44]Write i2c OK [09:56:44]MH_I2C_Read... [09:56:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:56:44]Read from MH i2c: E2 [09:56:44]MH_I2C_Read... [09:56:44]Read from MH i2c: E2 03 00 [09:56:44]MH_I2C_Read... [09:56:44]Read from MH i2c: E2 03 00 37 19 00 90 00 C4 [09:56:44]RAPDU: 90 00 [09:56:44]wFMCommunicate OK [09:56:44]wFMCommunicate request_size=255 [09:56:44]MH_SAM_APDU [09:56: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 50 19 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 13 A8 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 A7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D9 11 00 00 00 00 07 04 06 00 F8 A7 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 5F 4E 75 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 BA 96 01 00 35 04 06 00 95 [09:56:44]Write to MH i2c: E2 02 01 38 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 19 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 13 A8 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 A7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D9 11 00 00 00 00 07 04 06 00 F8 A7 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 5F 4E 75 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 BA 96 01 00 35 04 06 00 95 00 00 AB [09:56:44]Write i2c OK [09:56:44]MH_I2C_Read... [09:56:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:56:45]Read from MH i2c: E2 [09:56:45]MH_I2C_Read... [09:56:45]Read from MH i2c: E2 03 00 [09:56:45]MH_I2C_Read... [09:56:45]Read from MH i2c: E2 03 00 38 19 00 90 00 C5 [09:56:45]RAPDU: 90 00 [09:56:45]wFMCommunicate OK [09:56:45]wFMCommunicate request_size=10 [09:56:45]MH_SAM_APDU [09:56:45]CAPDU: 80 0D 02 02 05 FB 4D F5 36 38 [09:56:45]Write to MH i2c: E2 0D 00 39 19 80 0D 02 02 05 00 FB 4D F5 36 38 00 00 81 [09:56:45]Write i2c OK [09:56:45]MH_I2C_Read... [09:56:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:56:45]Read from MH i2c: E2 [09:56:45]MH_I2C_Read... [09:56:45]Read from MH i2c: E2 03 00 [09:56:45]MH_I2C_Read... [09:56:45]Read from MH i2c: E2 03 00 39 19 00 90 00 C6 [09:56:45]RAPDU: 90 00 [09:56:45]wFMCommunicate OK [09:56:45]wFMCommunicate request_size=4 [09:56:45]MH_SAM_APDU [09:56:45]CAPDU: 80 0D 03 02 [09:56:45]Write to MH i2c: E2 08 00 3A 19 80 0D 03 02 00 00 00 00 CE [09:56:45]Write i2c OK [09:56:45]MH_I2C_Read... [09:56:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:56:45]Read from MH i2c: E2 [09:56:45]MH_I2C_Read... [09:56:45]Read from MH i2c: E2 0B 00 [09:56:45]MH_I2C_Read... [09:56:45]Read from MH i2c: E2 0B 00 3A 19 00 3F 48 6D 43 42 8A E6 16 90 00 CE [09:56:45]RAPDU: 3F 48 6D 43 42 8A E6 16 90 00 [09:56:45]wFMCommunicate OK [09:56:45]SAM_PROTO_SignData done [09:56:45]FM_MakeSignedData done [09:56:45]CreateOFDProtocolMessage [09:56:45]wFMCommunicate request_size=4 [09:56:45]MH_SAM_APDU [09:56:45]CAPDU: 80 11 00 00 [09:56:45]Write to MH i2c: E2 08 00 3B 19 80 11 00 00 00 00 00 00 CE [09:56:45]Write i2c OK [09:56:45]MH_I2C_Read... [09:56:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:56:45]Read from MH i2c: E2 [09:56:45]MH_I2C_Read... [09:56:45]Read from MH i2c: E2 17 00 [09:56:45]MH_I2C_Read... [09:56:45]Read from MH i2c: E2 17 00 3B 19 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:56:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [09:56:45]wFMCommunicate OK [09:56:45]CreateOFDProtocolMessage done [09:56:45]OFDSenderStorePacket 104122 [09:56:45]StoreOFDPacket docnum=104122 [09:56: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 8F 7C 07 01 F6 56 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 13 A8 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 A7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D9 11 00 00 00 00 07 04 06 00 F8 A7 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 5F 4E 75 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 BA 96 01 00 35 04 06 00 95 FB 4D F5 36 38 3F 48 6D 43 42 8A E6 16 [09:56:45]CheckFolder [09:56:45]dirname=/storage/ofd_packets [09:56:45]CheckFolder done [09:56:45]ProducePacketName [09:56:45]name=ofd_packets/00104122 [09:56:45]NVStorageSaveData ofd_packets/00104122 [09:56:45]File name is /storage/ofd_packets/00104122 [09:56:45]Write 301 bytes [09:56:45]NVStorageSaveData done [09:56:45]OFDSenderStorePacket done [09:56:45]KKMCreateOFDPacket done [09:56:45]NVStorageSaveData kkm_last_timestamp [09:56:45]File name is /storage/kkm_last_timestamp [09:56:45]Write 4 bytes [09:56:45]NVStorageSaveData done [09:56:45]ExternCall_PrintAddStr [09:56:45]wPrintStart [09:56:45]Write to MH i2c: 01 00 00 3C 19 55 [09:56:45]Write i2c OK [09:56:45]MH_I2C_Read... [09:56:45]Read from MH i2c: 01 [09:56:45]MH_I2C_Read... [09:56:45]Read from MH i2c: 01 07 00 [09:56:45]MH_I2C_Read... [09:56:45]Read from MH i2c: 01 07 00 3C 19 00 00 00 00 00 FF 0F 6A [09:56:45]RasterBufferAndPrint [09:56:45]line Счет N : (1)673528 [09:56:45]line ИНН: 02508201610067 [09:56:45]line Контрольно-Кассовый Чек [09:56:45]line ПРОДАЖА [09:56:45]line ТРК (МРК, ГНК) : 32 [09:56:45]line Товар: 2710124130 [09:56:45]line Аи-92-К-5 [09:56:45]line 6.480 * 66.40 [09:56:45]line = 430.27 [09:56:45]line НДС 12% НСП 1% [09:56:45]line > о реализуемом товаре [09:56:45]line ОКРУГЛЕНИЕ: -0.27 [09:56:45]line ИТОГО: 430.00 [09:56:45]line Внесено: 430.00 [09:56:45]line СДАЧА: 0.00 [09:56:45]line НСП 1% : 3.81 [09:56:45]line НДС 12% : 45.69 [09:56:45]line Наличными: 430.00 [09:56:45]line Безнал.: 0.00 [09:56:45]line Место: АЗС № 120 "Партнер Нефть" [09:56:45]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [09:56:45]line СНО: Общий режим [09:56:45]line Чек 45 21.06.2024 09:56 [09:56:45]line Смена: 355 ФФД: 1.0 [09:56:45]line ЗНМ: 0300000164 [09:56:45]line РНМ: 0000000000092785 [09:56:45]line Версия ККМ: 001 [09:56:45]line ФМ: 0000000000875093 [09:56:45]line ФД: 104122 [09:56:45]line ФПД: 164906577245752 [09:56:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T095647&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104122&fm=164906577245752&tin=02508201610067®Number=0000000000092785&sum=43000 [09:56:45]OFD Sender: Processing packet 104122 [packets to send 17, broken 16] [09:56:45]ProducePacketName [09:56:45]name=ofd_packets/00104122 [09:56:45]OFD Sender: To server: pG, [09:56:45]CommunicateWithHost lk.salyk.kg:30040 [09:56:45]ConnectInit lk.salyk.kg [09:56:45]written 0, free lines is 4095 [09:56:45]Connected sock=10 [09:56: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 8F 7C 07 01 F6 56 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 13 A8 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 A7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D9 11 00 00 00 00 07 04 06 00 F8 A7 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 5F 4E 75 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 BA 96 01 00 35 04 06 00 95 FB 4D F5 36 38 3F 48 6D 43 42 8A E6 16 [09:56: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 4B F5 47 00 91 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 BA 96 01 00 F4 03 04 00 E2 F4 74 66 B6 04 01 00 00 79 83 AD C0 99 F3 89 79 [09:56:45]CommunicateWithHost err = 0 [09:56:45]CheckOFDResponse [09:56:45]1017 (14) - 77093643461234 [09:56:45]1041 (16) - 0000000000875093 [09:56:45]1040 (4) - 104122 [09:56:45]1012 (4) - 21.06.2024 03:34 [09:56:45]1206 (1) - 0 [09:56:45]OFD Sender: Remove packet 104122 [09:56:45]ProducePacketName [09:56:45]name=ofd_packets/00104122 [09:56:45]NVStorageDeleteData [09:56:45]Write to MH i2c: 01 00 00 67 19 80 [09:56:45]Write i2c OK [09:56:45]MH_I2C_Read... [09:56:45]Read from MH i2c: 01 [09:56:45]MH_I2C_Read... [09:56:45]Read from MH i2c: 01 07 00 [09:56:45]MH_I2C_Read... [09:56:45]Read from MH i2c: 01 07 00 67 19 00 00 00 00 00 D4 0C 67 [09:56:45]RasterBufferAndPrint [09:56:45]line [09:56:45]line [09:56:45]line [09:56:45]line [09:56:45]line [09:56:45]written 0, free lines is 3292 [09:56:45]MH_Cut [09:56:45]Write to MH i2c: D1 01 00 6E 19 01 59 [09:56:45]Write i2c OK [09:56:45]MH_I2C_Read... [09:56:45]Read from MH i2c: D1 [09:56:45]MH_I2C_Read... [09:56:45]Read from MH i2c: D1 01 00 [09:56:45]MH_I2C_Read... [09:56:45]Read from MH i2c: D1 01 00 6E 19 00 58 [09:56:45]Write to MH i2c: 01 00 00 6F 19 88 [09:56:45]Write i2c OK [09:56:45]MH_I2C_Read... [09:56:46]OFD Sender: No OFD packet to send [09:56:46]*** Cut start [09:56:46]*** Partial cut [09:56:46]*** CUTSNS_PIN = 1 [09:56:46]*** CUTSNS_PIN = 0 [09:56:46]*** Brake cut motor [09:56:47]Read from MH i2c: 01 [09:56:47]MH_I2C_Read... [09:56:47]*** Stop cut motor [09:56:47]*** Cut end [09:56:47]Read from MH i2c: 01 07 00 [09:56:47]MH_I2C_Read... [09:56:47]Read from MH i2c: 01 07 00 6F 19 00 00 00 00 00 FF 0F 9D [09:56:47]process_action close_receipt done [09:56:47]requested_data is exist [09:56:47]produce_requested_data [09:56:47]requested_item fm.sn is exist - process it [09:56:47]wFMCommunicate request_size=4 [09:56:47]MH_SAM_APDU [09:56:47]CAPDU: 80 11 00 00 [09:56:47]Write to MH i2c: E2 08 00 70 19 80 11 00 00 00 00 00 00 03 [09:56:47]Write i2c OK [09:56:47]MH_I2C_Read... [09:56:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:56:47]Read from MH i2c: E2 [09:56:47]MH_I2C_Read... [09:56:47]Read from MH i2c: E2 17 00 [09:56:47]MH_I2C_Read... [09:56:47]Read from MH i2c: E2 17 00 70 19 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:56: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:56:47]wFMCommunicate OK [09:56:47]requested_item fd.num is exist - process it [09:56:47]SAM_PROTO_GetFieldsCounters [09:56:47]wFMCommunicate request_size=4 [09:56:47]MH_SAM_APDU [09:56:47]CAPDU: 80 13 00 00 [09:56:47]Write to MH i2c: E2 08 00 71 19 80 13 00 00 00 00 00 00 06 [09:56:47]Write i2c OK [09:56:47]MH_I2C_Read... [09:56:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:56:47]Read from MH i2c: E2 [09:56:47]MH_I2C_Read... [09:56:47]Read from MH i2c: E2 62 00 [09:56:47]MH_I2C_Read... [09:56:47]Read from MH i2c: E2 62 00 71 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 BA 96 01 00 0E 04 04 00 63 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 69 [09:56: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 BA 96 01 00 0E 04 04 00 63 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:56:47]wFMCommunicate OK [09:56:47]SAM_PROTO_GetFieldsCounters done [09:56:47]requested_item shift.num is exist - process it [09:56:47]requested_item shift.opened is exist - process it [09:56:47]req_shift_opened [09:56:47]FM_GetShiftState [09:56:47]SAM_PROTO_GetShiftState [09:56:47]wFMCommunicate request_size=4 [09:56:47]MH_SAM_APDU [09:56:47]CAPDU: 80 13 01 00 [09:56:47]Write to MH i2c: E2 08 00 72 19 80 13 01 00 00 00 00 00 08 [09:56:47]Write i2c OK [09:56:47]MH_I2C_Read... [09:56:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:56:47]Read from MH i2c: E2 [09:56:47]MH_I2C_Read... [09:56:47]Read from MH i2c: E2 0E 00 [09:56:47]MH_I2C_Read... [09:56:47]Read from MH i2c: E2 0E 00 72 19 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 1B [09:56:47]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [09:56:47]wFMCommunicate OK [09:56:47]SAM_PROTO_GetShiftState done [09:56:47]FM_GetShiftState done [09:56:47]req_shift_opened done [09:56:47]requested_item shift.open_date is exist - process it [09:56:47]req_shift_open_date [09:56:47]req_shift_open_date done [09:56:47]produce_requested_data done [09:56:47]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104122,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [09:56:47]process_action_free close_receipt [09:56:47]json_value_free [09:56:47]json_value_free done [09:56:47]process_json_proto returns [09:56:47]Send response to host [09:56:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104122,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [09:56:47]free response buf [09:56:47]execute_script done [09:56:47]execute_script returns [09:56:47]free content buf [09:56:47]Sock 9.Close socket [09:56:47]Sock 9.Thread stoped [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:07]accept exits with 7 [10:00:07]New connection [10:00:07]New thread 3066715492 created [10:00:07]Thread 3066858852 joined [10:00:07]Waiting for new connection... [10:00:07] Sock 7.Parse request [10:00:07]Sock 7.Check first char [10:00:07]Sock 7.First char is OK [10:00:07]request: POST /json_proto HTTP/1.0 [10:00:07]Method: POST [10:00:07]URL: /json_proto [10:00:07]Method is POST - this is cgi request [10:00:07]url: /json_proto [10:00:07]query_string will be loaded in cgi processing [10:00:07]execute_cgi json_proto POST (null) [10:00:07]execute_cgi path=json_proto method=POST [10:00:07]POST find Content-Length [10:00:07]Host: 172.17.38.133:8080 [10:00:07]Content-Length: 1156 [10:00:07]Content-Type: application/json [10:00:07] [10:00:07]POST finish read [10:00:07]Found Content-Length = 1156 [10:00: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 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)673529\u000A21.06.2024 09:37\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\u000A30115564\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:00:07]execute_script... [10:00: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 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)673529\u000A21.06.2024 09:37\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\u000A30115564\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:00:07]POST & json_proto [10:00:07]process_json_proto [10:00:07]json parsed OK: [10:00:07]protocol is kg_v1.0 [10:00:07]action value=print_text [10:00:07]process_action print_text [10:00:07]cmd_print_text [10:00:07]ExternCall_PrintAddStr [10:00:07]wPrintStart [10:00:07]Write to MH i2c: 01 00 00 73 19 8C [10:00:07]Write i2c OK [10:00:07]MH_I2C_Read... [10:00:07]Read from MH i2c: 01 [10:00:07]MH_I2C_Read... [10:00:07]Read from MH i2c: 01 07 00 [10:00:07]MH_I2C_Read... [10:00:07]Read from MH i2c: 01 07 00 73 19 00 00 00 00 00 FF 0F A1 [10:00:07]RasterBufferAndPrint [10:00:07]line *****ТОВАРНЫЙ ЧЕК***** [10:00:07]line АЗС 120 [10:00:07]line Партнер нефть [10:00:07]line 02508201610067 [10:00:07]line Кассир : Асанбаев Н. [10:00:07]line Счет N : (1)673529 [10:00:07]line 21.06.2024 09:37 [10:00:07]line ПРОДАЖА [10:00:07]line ТРК (МРК, ГНК): 42 [10:00:07]line Вид ГСМ : 2710124130 [10:00:07]line Аи-92-К-5 [10:00:07]line 10.000 x 66.40 [10:00:07]line ИТОГ: 664.00 [10:00:07]line Тип оплаты: Талоны: ТК ГПНА Online [10:00:07]line 30115564 [10:00:07]line ______________________ [10:00:07]line (подпись) [10:00:07]written 0, free lines is 4095 [10:00:07]Write to MH i2c: 01 00 00 87 19 A0 [10:00:07]Write i2c OK [10:00:07]MH_I2C_Read... [10:00:07]Read from MH i2c: 01 [10:00:07]MH_I2C_Read... [10:00:07]Read from MH i2c: 01 07 00 [10:00:07]MH_I2C_Read... [10:00:07]Read from MH i2c: 01 07 00 87 19 00 00 00 00 00 0F 0E C4 [10:00:07]RasterBufferAndPrint [10:00:07]line [10:00:07]line [10:00:07]line [10:00:07]line [10:00:07]line [10:00:07]written 0, free lines is 3601 [10:00:07]MH_Cut [10:00:07]Write to MH i2c: D1 01 00 8E 19 01 79 [10:00:07]Write i2c OK [10:00:07]MH_I2C_Read... [10:00:07]Read from MH i2c: D1 [10:00:07]MH_I2C_Read... [10:00:07]Read from MH i2c: D1 01 00 [10:00:07]MH_I2C_Read... [10:00:07]Read from MH i2c: D1 01 00 8E 19 00 78 [10:00:07]Write to MH i2c: 01 00 00 8F 19 A8 [10:00:07]Write i2c OK [10:00:07]MH_I2C_Read... [10:00:08]*** Cut start [10:00:08]*** Partial cut [10:00:08]*** CUTSNS_PIN = 1 [10:00:08]*** CUTSNS_PIN = 0 [10:00:08]*** Brake cut motor [10:00:08]Read from MH i2c: 01 [10:00:08]MH_I2C_Read... [10:00:08]Read from MH i2c: 01 07 00 [10:00:08]MH_I2C_Read... [10:00:08]*** Stop cut motor [10:00:08]*** Cut end [10:00:08]Read from MH i2c: 01 07 00 8F 19 00 00 00 00 00 FF 0F BD [10:00:08]process_action print_text done [10:00:08]requested_data is exist [10:00:08]produce_requested_data [10:00:08]requested_item fm.sn is exist - process it [10:00:08]wFMCommunicate request_size=4 [10:00:08]MH_SAM_APDU [10:00:08]CAPDU: 80 11 00 00 [10:00:08]Write to MH i2c: E2 08 00 90 19 80 11 00 00 00 00 00 00 23 [10:00:08]Write i2c OK [10:00:08]MH_I2C_Read... [10:00:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:00:08]Read from MH i2c: E2 [10:00:08]MH_I2C_Read... [10:00:08]Read from MH i2c: E2 17 00 [10:00:08]MH_I2C_Read... [10:00:08]Read from MH i2c: E2 17 00 90 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 76 [10:00:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [10:00:08]wFMCommunicate OK [10:00:08]requested_item fd.num is exist - process it [10:00:08]SAM_PROTO_GetFieldsCounters [10:00:08]wFMCommunicate request_size=4 [10:00:08]MH_SAM_APDU [10:00:08]CAPDU: 80 13 00 00 [10:00:08]Write to MH i2c: E2 08 00 91 19 80 13 00 00 00 00 00 00 26 [10:00:08]Write i2c OK [10:00:08]MH_I2C_Read... [10:00:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:00:08]Read from MH i2c: E2 [10:00:08]MH_I2C_Read... [10:00:08]Read from MH i2c: E2 62 00 [10:00:08]MH_I2C_Read... [10:00:08]Read from MH i2c: E2 62 00 91 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 BA 96 01 00 0E 04 04 00 63 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 89 [10:00:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 96 01 00 0E 04 04 00 63 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:00:08]wFMCommunicate OK [10:00:08]SAM_PROTO_GetFieldsCounters done [10:00:08]requested_item shift.num is exist - process it [10:00:08]requested_item shift.opened is exist - process it [10:00:08]req_shift_opened [10:00:08]FM_GetShiftState [10:00:08]SAM_PROTO_GetShiftState [10:00:08]wFMCommunicate request_size=4 [10:00:08]MH_SAM_APDU [10:00:08]CAPDU: 80 13 01 00 [10:00:08]Write to MH i2c: E2 08 00 92 19 80 13 01 00 00 00 00 00 28 [10:00:08]Write i2c OK [10:00:08]MH_I2C_Read... [10:00:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:00:08]Read from MH i2c: E2 [10:00:08]MH_I2C_Read... [10:00:08]Read from MH i2c: E2 0E 00 [10:00:08]MH_I2C_Read... [10:00:08]Read from MH i2c: E2 0E 00 92 19 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 3B [10:00:08]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [10:00:08]wFMCommunicate OK [10:00:08]SAM_PROTO_GetShiftState done [10:00:08]FM_GetShiftState done [10:00:08]req_shift_opened done [10:00:08]requested_item shift.open_date is exist - process it [10:00:08]req_shift_open_date [10:00:08]req_shift_open_date done [10:00:08]produce_requested_data done [10:00:08]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104122,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [10:00:08]process_action_free print_text [10:00:08]json_value_free [10:00:08]json_value_free done [10:00:08]process_json_proto returns [10:00:08]Send response to host [10:00:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104122,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [10:00:08]free response buf [10:00:08]execute_script done [10:00:08]execute_script returns [10:00:08]free content buf [10:00:08]Sock 7.Close socket [10:00:08]Sock 7.Thread stoped [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: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:42]accept exits with 9 [10:03:42]New connection [10:03:42]New thread 3066858852 created [10:03:42]Thread 3066715492 joined [10:03:42]Waiting for new connection... [10:03:42] Sock 9.Parse request [10:03:42]Sock 9.Check first char [10:03:42]Sock 9.First char is OK [10:03:42]request: POST /json_proto HTTP/1.0 [10:03:42]Method: POST [10:03:42]URL: /json_proto [10:03:42]Method is POST - this is cgi request [10:03:42]url: /json_proto [10:03:42]query_string will be loaded in cgi processing [10:03:42]execute_cgi json_proto POST (null) [10:03:42]execute_cgi path=json_proto method=POST [10:03:42]POST find Content-Length [10:03:42]Host: 172.17.38.133:8080 [10:03:42]Content-Length: 677 [10:03:42]Content-Type: application/json [10:03:42] [10:03:42]POST finish read [10:03:42]Found Content-Length = 677 [10:03:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673530", "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.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" ] } } [10:03:42]execute_script... [10:03: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)673530", "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.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" ] } } [10:03:42]POST & json_proto [10:03:42]process_json_proto [10:03:42]json parsed OK: [10:03:42]protocol is kg_v1.0 [10:03:42]action value=close_receipt [10:03:42]process_action close_receipt [10:03:42]cmd_close_receipt [10:03:42]MH_GetDate [10:03:42]Write to MH i2c: F0 00 00 93 19 9B [10:03:42]Write i2c OK [10:03:42]MH_I2C_Read... [10:03:42]Read from MH i2c: F0 [10:03:42]MH_I2C_Read... [10:03:42]Read from MH i2c: F0 09 00 [10:03:42]MH_I2C_Read... [10:03:42]Read from MH i2c: F0 09 00 93 19 00 02 50 75 66 BD 8F 7C 64 FD [10:03:42]GetLastDocTimeStamp 1718963807 [10:03:42]current date 1718964226 [10:03:42]FM_GetShiftState [10:03:42]SAM_PROTO_GetShiftState [10:03:42]wFMCommunicate request_size=4 [10:03:42]MH_SAM_APDU [10:03:42]CAPDU: 80 13 01 00 [10:03:42]Write to MH i2c: E2 08 00 94 19 80 13 01 00 00 00 00 00 2A [10:03:42]Write i2c OK [10:03:42]MH_I2C_Read... [10:03:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:03:42]Read from MH i2c: E2 [10:03:42]MH_I2C_Read... [10:03:42]Read from MH i2c: E2 0E 00 [10:03:42]MH_I2C_Read... [10:03:42]Read from MH i2c: E2 0E 00 94 19 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 3D [10:03:42]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [10:03:42]wFMCommunicate OK [10:03:42]SAM_PROTO_GetShiftState done [10:03:42]FM_GetShiftState done [10:03:42]opened in 1718929509 [10:03:42]opened+sec_in_day 1719015909 [10:03:42]quantity*price = 25032 [10:03:42]sum+1 = 25034 [10:03:42]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 СНО: Общий режим Чек 46 21.06.2024 10:03 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104123 ФПД: 69487842358459 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T100346&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104123&fm=69487842358459&tin=02508201610067®Number=0000000000092785&sum=25000 [10:03:44]StoreToDocumentArchive [10:03:44]shift 355 fd 104123 [10:03:44]save to /storage/0355/doc_00104123 [10:03:44]save last doc name /storage/0355/doc_00104123 to /storage/kkm_last_doc_name [10:03:44]save OK [10:03:44]Clear old archive folders... [10:03:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:03:44]tlvbuf is 01179130 [10:03:44]SAM_PROTO_ClearQueue [10:03:44]wFMCommunicate request_size=4 [10:03:44]MH_SAM_APDU [10:03:44]CAPDU: 80 09 00 00 [10:03:44]Write to MH i2c: E2 08 00 A1 19 80 09 00 00 00 00 00 00 2C [10:03:44]Write i2c OK [10:03:44]MH_I2C_Read... [10:03:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:03:44]Read from MH i2c: E2 [10:03:44]MH_I2C_Read... [10:03:44]Read from MH i2c: E2 03 00 [10:03:44]MH_I2C_Read... [10:03:44]Read from MH i2c: E2 03 00 A1 19 00 90 00 2E [10:03:44]RAPDU: 90 00 [10:03:44]wFMCommunicate OK [10:03:44]SAM_PROTO_ClearQueue done [10:03:44]KKMCreateOFDPacket [10:03:44]OFDProtocolAddRootSTLVToBuf [10:03:44]FM_MakeSignedData [10:03:44]FM_MakeSignedData [10:03:44]SAM_PROTO_SignData [10:03:44]wFMCommunicate request_size=4 [10:03:44]MH_SAM_APDU [10:03:44]CAPDU: 80 0D 01 02 [10:03:44]Write to MH i2c: E2 08 00 A2 19 80 0D 01 02 00 00 00 00 34 [10:03:44]Write i2c OK [10:03:44]MH_I2C_Read... [10:03:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:03:44]Read from MH i2c: E2 [10:03:44]MH_I2C_Read... [10:03:44]Read from MH i2c: E2 03 00 [10:03:44]MH_I2C_Read... [10:03:44]Read from MH i2c: E2 03 00 A2 19 00 90 00 2F [10:03:44]RAPDU: 90 00 [10:03:44]wFMCommunicate OK [10:03:44]wFMCommunicate request_size=255 [10:03:44]MH_SAM_APDU [10:03: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 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 2E 00 00 00 F4 03 04 00 02 50 75 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 BB 96 01 00 35 04 06 00 3F [10:03:44]Write to MH i2c: E2 02 01 A3 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 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 2E 00 00 00 F4 03 04 00 02 50 75 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 BB 96 01 00 35 04 06 00 3F 00 00 EA [10:03:44]Write i2c OK [10:03:44]MH_I2C_Read... [10:03:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:03:44]Read from MH i2c: E2 [10:03:44]MH_I2C_Read... [10:03:44]Read from MH i2c: E2 03 00 [10:03:44]MH_I2C_Read... [10:03:44]Read from MH i2c: E2 03 00 A3 19 00 90 00 30 [10:03:44]RAPDU: 90 00 [10:03:44]wFMCommunicate OK [10:03:44]wFMCommunicate request_size=10 [10:03:44]MH_SAM_APDU [10:03:44]CAPDU: 80 0D 02 02 05 32 E6 28 F4 BB [10:03:44]Write to MH i2c: E2 0D 00 A4 19 80 0D 02 02 05 00 32 E6 28 F4 BB 00 00 30 [10:03:44]Write i2c OK [10:03:44]MH_I2C_Read... [10:03:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:03:44]Read from MH i2c: E2 [10:03:44]MH_I2C_Read... [10:03:44]Read from MH i2c: E2 03 00 [10:03:44]MH_I2C_Read... [10:03:44]Read from MH i2c: E2 03 00 A4 19 00 90 00 31 [10:03:44]RAPDU: 90 00 [10:03:44]wFMCommunicate OK [10:03:44]wFMCommunicate request_size=4 [10:03:44]MH_SAM_APDU [10:03:44]CAPDU: 80 0D 03 02 [10:03:44]Write to MH i2c: E2 08 00 A5 19 80 0D 03 02 00 00 00 00 39 [10:03:44]Write i2c OK [10:03:44]MH_I2C_Read... [10:03:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:03:44]Read from MH i2c: E2 [10:03:44]MH_I2C_Read... [10:03:44]Read from MH i2c: E2 0B 00 [10:03:44]MH_I2C_Read... [10:03:44]Read from MH i2c: E2 0B 00 A5 19 00 49 9D 1F 96 17 F0 84 3A 90 00 9A [10:03:44]RAPDU: 49 9D 1F 96 17 F0 84 3A 90 00 [10:03:44]wFMCommunicate OK [10:03:44]SAM_PROTO_SignData done [10:03:44]FM_MakeSignedData done [10:03:44]CreateOFDProtocolMessage [10:03:44]wFMCommunicate request_size=4 [10:03:44]MH_SAM_APDU [10:03:44]CAPDU: 80 11 00 00 [10:03:44]Write to MH i2c: E2 08 00 A6 19 80 11 00 00 00 00 00 00 39 [10:03:44]Write i2c OK [10:03:44]MH_I2C_Read... [10:03:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:03:44]Read from MH i2c: E2 [10:03:44]MH_I2C_Read... [10:03:44]Read from MH i2c: E2 17 00 [10:03:44]MH_I2C_Read... [10:03:44]Read from MH i2c: E2 17 00 A6 19 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:03: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:03:44]wFMCommunicate OK [10:03:44]CreateOFDProtocolMessage done [10:03:44]OFDSenderStorePacket 104123 [10:03:44]StoreOFDPacket docnum=104123 [10:03: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 2B D4 07 01 3F F9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 2E 00 00 00 F4 03 04 00 02 50 75 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 BB 96 01 00 35 04 06 00 3F 32 E6 28 F4 BB 49 9D 1F 96 17 F0 84 3A [10:03:44]CheckFolder [10:03:44]dirname=/storage/ofd_packets [10:03:44]CheckFolder done [10:03:44]ProducePacketName [10:03:44]name=ofd_packets/00104123 [10:03:44]NVStorageSaveData ofd_packets/00104123 [10:03:44]File name is /storage/ofd_packets/00104123 [10:03:44]Write 301 bytes [10:03:44]NVStorageSaveData done [10:03:44]OFDSenderStorePacket done [10:03:44]KKMCreateOFDPacket done [10:03:44]NVStorageSaveData kkm_last_timestamp [10:03:44]File name is /storage/kkm_last_timestamp [10:03:44]Write 4 bytes [10:03:44]NVStorageSaveData done [10:03:44]ExternCall_PrintAddStr [10:03:44]wPrintStart [10:03:44]Write to MH i2c: 01 00 00 A7 19 C0 [10:03:44]Write i2c OK [10:03:44]MH_I2C_Read... [10:03:44]Read from MH i2c: 01 [10:03:44]MH_I2C_Read... [10:03:44]Read from MH i2c: 01 07 00 [10:03:44]MH_I2C_Read... [10:03:44]Read from MH i2c: 01 07 00 A7 19 00 00 00 00 00 FF 0F D5 [10:03:44]RasterBufferAndPrint [10:03:44]line Счет N : (1)673530 [10:03:44]line ИНН: 02508201610067 [10:03:44]line Контрольно-Кассовый Чек [10:03:44]line ПРОДАЖА [10:03:44]line ТРК (МРК, ГНК) : 42 [10:03:44]line Товар: 2710124130 [10:03:44]line Аи-92-К-5 [10:03:44]line 3.770 * 66.40 [10:03:44]line = 250.33 [10:03:44]line НДС 12% НСП 1% [10:03:44]line > о реализуемом товаре [10:03:44]line ОКРУГЛЕНИЕ: -0.33 [10:03:44]line ИТОГО: 250.00 [10:03:44]line Внесено: 250.00 [10:03:44]line СДАЧА: 0.00 [10:03:44]line НСП 1% : 2.21 [10:03:44]line НДС 12% : 26.58 [10:03:44]line Наличными: 250.00 [10:03:44]line Безнал.: 0.00 [10:03:44]line Место: АЗС № 120 "Партнер Нефть" [10:03:44]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [10:03:44]line СНО: Общий режим [10:03:44]line Чек 46 21.06.2024 10:03 [10:03:44]line Смена: 355 ФФД: 1.0 [10:03:44]line ЗНМ: 0300000164 [10:03:44]line РНМ: 0000000000092785 [10:03:44]line Версия ККМ: 001 [10:03:44]line ФМ: 0000000000875093 [10:03:44]line ФД: 104123 [10:03:44]line ФПД: 69487842358459 [10:03:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T100346&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104123&fm=69487842358459&tin=02508201610067®Number=0000000000092785&sum=25000 [10:03:44]OFD Sender: Processing packet 104123 [packets to send 17, broken 16] [10:03:44]ProducePacketName [10:03:44]name=ofd_packets/00104123 [10:03:44]OFD Sender: To server: pG, [10:03:44]CommunicateWithHost lk.salyk.kg:30040 [10:03:44]ConnectInit lk.salyk.kg [10:03:44]written 0, free lines is 4095 [10:03:45]Connected sock=10 [10:03: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 2B D4 07 01 3F F9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 2E 00 00 00 F4 03 04 00 02 50 75 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 BB 96 01 00 35 04 06 00 3F 32 E6 28 F4 BB 49 9D 1F 96 17 F0 84 3A [10:03: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 35 C5 47 00 A7 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 BB 96 01 00 F4 03 04 00 85 F6 74 66 B6 04 01 00 00 1A 2C DB DA B9 0C 94 F2 [10:03:45]CommunicateWithHost err = 0 [10:03:45]CheckOFDResponse [10:03:45]1017 (14) - 77093643461234 [10:03:45]1041 (16) - 0000000000875093 [10:03:45]1040 (4) - 104123 [10:03:45]1012 (4) - 21.06.2024 03:41 [10:03:45]1206 (1) - 0 [10:03:45]OFD Sender: Remove packet 104123 [10:03:45]ProducePacketName [10:03:45]name=ofd_packets/00104123 [10:03:45]NVStorageDeleteData [10:03:45]Write to MH i2c: 01 00 00 D2 19 EB [10:03:45]Write i2c OK [10:03:45]MH_I2C_Read... [10:03:45]Read from MH i2c: 01 [10:03:45]MH_I2C_Read... [10:03:45]Read from MH i2c: 01 07 00 [10:03:45]MH_I2C_Read... [10:03:45]Read from MH i2c: 01 07 00 D2 19 00 00 00 00 00 E5 0C E3 [10:03:45]RasterBufferAndPrint [10:03:45]line [10:03:45]line [10:03:45]line [10:03:45]line [10:03:45]line [10:03:45]written 0, free lines is 3307 [10:03:45]MH_Cut [10:03:45]Write to MH i2c: D1 01 00 D9 19 01 C4 [10:03:45]Write i2c OK [10:03:45]MH_I2C_Read... [10:03:45]Read from MH i2c: D1 [10:03:45]MH_I2C_Read... [10:03:45]Read from MH i2c: D1 01 00 [10:03:45]MH_I2C_Read... [10:03:45]Read from MH i2c: D1 01 00 D9 19 00 C3 [10:03:45]Write to MH i2c: 01 00 00 DA 19 F3 [10:03:45]Write i2c OK [10:03:45]MH_I2C_Read... [10:03:45]OFD Sender: No OFD packet to send [10:03:46]*** Cut start [10:03:46]*** Partial cut [10:03:46]*** CUTSNS_PIN = 1 [10:03:46]*** CUTSNS_PIN = 0 [10:03:46]*** Brake cut motor [10:03:46]Read from MH i2c: 01 [10:03:46]MH_I2C_Read... [10:03:46]*** Stop cut motor [10:03:46]*** Cut end [10:03:46]Read from MH i2c: 01 07 00 [10:03:46]MH_I2C_Read... [10:03:46]Read from MH i2c: 01 07 00 DA 19 00 00 00 00 00 FF 0F 08 [10:03:46]process_action close_receipt done [10:03:46]requested_data is exist [10:03:46]produce_requested_data [10:03:46]requested_item fm.sn is exist - process it [10:03:46]wFMCommunicate request_size=4 [10:03:46]MH_SAM_APDU [10:03:46]CAPDU: 80 11 00 00 [10:03:46]Write to MH i2c: E2 08 00 DB 19 80 11 00 00 00 00 00 00 6E [10:03:46]Write i2c OK [10:03:46]MH_I2C_Read... [10:03:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:03:46]Read from MH i2c: E2 [10:03:46]MH_I2C_Read... [10:03:46]Read from MH i2c: E2 17 00 [10:03:46]MH_I2C_Read... [10:03:46]Read from MH i2c: E2 17 00 DB 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 C1 [10: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 [10:03:46]wFMCommunicate OK [10:03:46]requested_item fd.num is exist - process it [10:03:46]SAM_PROTO_GetFieldsCounters [10:03:46]wFMCommunicate request_size=4 [10:03:46]MH_SAM_APDU [10:03:46]CAPDU: 80 13 00 00 [10:03:46]Write to MH i2c: E2 08 00 DC 19 80 13 00 00 00 00 00 00 71 [10:03:46]Write i2c OK [10:03:46]MH_I2C_Read... [10:03:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:03:46]Read from MH i2c: E2 [10:03:46]MH_I2C_Read... [10:03:46]Read from MH i2c: E2 62 00 [10:03:46]MH_I2C_Read... [10:03:46]Read from MH i2c: E2 62 00 DC 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 BB 96 01 00 0E 04 04 00 63 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 D8 [10: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 BB 96 01 00 0E 04 04 00 63 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:46]wFMCommunicate OK [10:03:46]SAM_PROTO_GetFieldsCounters done [10:03:46]requested_item shift.num is exist - process it [10:03:46]requested_item shift.opened is exist - process it [10:03:46]req_shift_opened [10:03:46]FM_GetShiftState [10:03:46]SAM_PROTO_GetShiftState [10:03:46]wFMCommunicate request_size=4 [10:03:46]MH_SAM_APDU [10:03:46]CAPDU: 80 13 01 00 [10:03:46]Write to MH i2c: E2 08 00 DD 19 80 13 01 00 00 00 00 00 73 [10:03:46]Write i2c OK [10:03:46]MH_I2C_Read... [10:03:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:03:47]Read from MH i2c: E2 [10:03:47]MH_I2C_Read... [10:03:47]Read from MH i2c: E2 0E 00 [10:03:47]MH_I2C_Read... [10:03:47]Read from MH i2c: E2 0E 00 DD 19 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 86 [10:03:47]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [10:03:47]wFMCommunicate OK [10:03:47]SAM_PROTO_GetShiftState done [10:03:47]FM_GetShiftState done [10:03:47]req_shift_opened done [10:03:47]requested_item shift.open_date is exist - process it [10:03:47]req_shift_open_date [10:03:47]req_shift_open_date done [10:03:47]produce_requested_data done [10:03:47]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104123,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [10:03:47]process_action_free close_receipt [10:03:47]json_value_free [10:03:47]json_value_free done [10:03:47]process_json_proto returns [10:03:47]Send response to host [10:03:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104123,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [10:03:47]free response buf [10:03:47]execute_script done [10:03:47]execute_script returns [10:03:47]free content buf [10:03:47]Sock 9.Close socket [10:03:47]Sock 9.Thread stoped [10:03:50]OFD Sender: No OFD packet to send [10:03:55]OFD Sender: No OFD packet to send [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:37]accept exits with 7 [10:05:37]New connection [10:05:37]New thread 3066715492 created [10:05:37]Thread 3066858852 joined [10:05:37]Waiting for new connection... [10:05:37] Sock 7.Parse request [10:05:37]Sock 7.Check first char [10:05:37]Sock 7.First char is OK [10:05:37]request: POST /json_proto HTTP/1.0 [10:05:37]Method: POST [10:05:37]URL: /json_proto [10:05:37]Method is POST - this is cgi request [10:05:37]url: /json_proto [10:05:37]query_string will be loaded in cgi processing [10:05:37]execute_cgi json_proto POST (null) [10:05:37]execute_cgi path=json_proto method=POST [10:05:37]POST find Content-Length [10:05:37]Host: 172.17.38.133:8080 [10:05:37]Content-Length: 677 [10:05:37]Content-Type: application/json [10:05:37] [10:05:37]POST finish read [10:05:37]Found Content-Length = 677 [10:05:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673531", "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.740, "sum" : 350.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:05:37]execute_script... [10: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)673531", "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.740, "sum" : 350.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:05:37]POST & json_proto [10:05:37]process_json_proto [10:05:37]json parsed OK: [10:05:37]protocol is kg_v1.0 [10:05:37]action value=close_receipt [10:05:37]process_action close_receipt [10:05:37]cmd_close_receipt [10:05:37]MH_GetDate [10:05:37]Write to MH i2c: F0 00 00 DE 19 E6 [10:05:37]Write i2c OK [10:05:37]MH_I2C_Read... [10:05:37]Read from MH i2c: F0 [10:05:37]MH_I2C_Read... [10:05:37]Read from MH i2c: F0 09 00 [10:05:37]MH_I2C_Read... [10:05:37]Read from MH i2c: F0 09 00 DE 19 00 75 50 75 66 BD 8F 7C 64 BB [10:05:37]GetLastDocTimeStamp 1718964226 [10:05:37]current date 1718964341 [10:05:37]FM_GetShiftState [10:05:37]SAM_PROTO_GetShiftState [10:05:37]wFMCommunicate request_size=4 [10:05:37]MH_SAM_APDU [10:05:37]CAPDU: 80 13 01 00 [10:05:37]Write to MH i2c: E2 08 00 DF 19 80 13 01 00 00 00 00 00 75 [10:05:37]Write i2c OK [10:05:37]MH_I2C_Read... [10:05:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:05:37]Read from MH i2c: E2 [10:05:37]MH_I2C_Read... [10:05:37]Read from MH i2c: E2 0E 00 [10:05:37]MH_I2C_Read... [10:05:37]Read from MH i2c: E2 0E 00 DF 19 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 88 [10:05:37]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [10:05:37]wFMCommunicate OK [10:05:37]SAM_PROTO_GetShiftState done [10:05:37]FM_GetShiftState done [10:05:37]opened in 1718929509 [10:05:37]opened+sec_in_day 1719015909 [10:05:37]quantity*price = 35028 [10:05:37]sum+1 = 35030 [10:05:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.29 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.20 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 47 21.06.2024 10:05 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104124 ФПД: 240884475556926 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T100541&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104124&fm=240884475556926&tin=02508201610067®Number=0000000000092785&sum=35000 [10:05:38]StoreToDocumentArchive [10:05:38]shift 355 fd 104124 [10:05:38]save to /storage/0355/doc_00104124 [10:05:38]save last doc name /storage/0355/doc_00104124 to /storage/kkm_last_doc_name [10:05:38]save OK [10:05:38]Clear old archive folders... [10:05:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:05:38]tlvbuf is 010EE290 [10:05:38]SAM_PROTO_ClearQueue [10:05:38]wFMCommunicate request_size=4 [10:05:38]MH_SAM_APDU [10:05:38]CAPDU: 80 09 00 00 [10:05:38]Write to MH i2c: E2 08 00 EC 19 80 09 00 00 00 00 00 00 77 [10:05:38]Write i2c OK [10:05:38]MH_I2C_Read... [10:05:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:05:38]Read from MH i2c: E2 [10:05:38]MH_I2C_Read... [10:05:38]Read from MH i2c: E2 03 00 [10:05:38]MH_I2C_Read... [10:05:38]Read from MH i2c: E2 03 00 EC 19 00 90 00 79 [10:05:38]RAPDU: 90 00 [10:05:38]wFMCommunicate OK [10:05:38]SAM_PROTO_ClearQueue done [10:05:38]KKMCreateOFDPacket [10:05:38]OFDProtocolAddRootSTLVToBuf [10:05:38]FM_MakeSignedData [10:05:38]FM_MakeSignedData [10:05:38]SAM_PROTO_SignData [10:05:38]wFMCommunicate request_size=4 [10:05:38]MH_SAM_APDU [10:05:38]CAPDU: 80 0D 01 02 [10:05:38]Write to MH i2c: E2 08 00 ED 19 80 0D 01 02 00 00 00 00 7F [10:05:38]Write i2c OK [10:05:38]MH_I2C_Read... [10:05:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:05:38]Read from MH i2c: E2 [10:05:38]MH_I2C_Read... [10:05:38]Read from MH i2c: E2 03 00 [10:05:38]MH_I2C_Read... [10:05:38]Read from MH i2c: E2 03 00 ED 19 00 90 00 7A [10:05:38]RAPDU: 90 00 [10:05:38]wFMCommunicate OK [10:05:38]wFMCommunicate request_size=255 [10:05:38]MH_SAM_APDU [10: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 84 12 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 D5 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 75 50 75 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 BC 96 01 00 35 04 06 00 DB [10:05:38]Write to MH i2c: E2 02 01 EE 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 84 12 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 D5 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 75 50 75 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 BC 96 01 00 35 04 06 00 DB 00 00 2E [10:05:38]Write i2c OK [10:05:38]MH_I2C_Read... [10:05:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:05:38]Read from MH i2c: E2 [10:05:38]MH_I2C_Read... [10:05:38]Read from MH i2c: E2 03 00 [10:05:38]MH_I2C_Read... [10:05:38]Read from MH i2c: E2 03 00 EE 19 00 90 00 7B [10:05:38]RAPDU: 90 00 [10:05:38]wFMCommunicate OK [10:05:38]wFMCommunicate request_size=10 [10:05:38]MH_SAM_APDU [10:05:38]CAPDU: 80 0D 02 02 05 15 49 98 F4 3E [10:05:38]Write to MH i2c: E2 0D 00 EF 19 80 0D 02 02 05 00 15 49 98 F4 3E 00 00 B4 [10:05:38]Write i2c OK [10:05:38]MH_I2C_Read... [10:05:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:05:38]Read from MH i2c: E2 [10:05:38]MH_I2C_Read... [10:05:38]Read from MH i2c: E2 03 00 [10:05:38]MH_I2C_Read... [10:05:38]Read from MH i2c: E2 03 00 EF 19 00 90 00 7C [10:05:38]RAPDU: 90 00 [10:05:38]wFMCommunicate OK [10:05:38]wFMCommunicate request_size=4 [10:05:38]MH_SAM_APDU [10:05:38]CAPDU: 80 0D 03 02 [10:05:38]Write to MH i2c: E2 08 00 F0 19 80 0D 03 02 00 00 00 00 84 [10:05:38]Write i2c OK [10:05:38]MH_I2C_Read... [10:05:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:05:38]Read from MH i2c: E2 [10:05:38]MH_I2C_Read... [10:05:38]Read from MH i2c: E2 0B 00 [10:05:38]MH_I2C_Read... [10:05:38]Read from MH i2c: E2 0B 00 F0 19 00 2C 65 23 AB C3 AC 77 AA 90 00 74 [10:05:38]RAPDU: 2C 65 23 AB C3 AC 77 AA 90 00 [10:05:38]wFMCommunicate OK [10:05:38]SAM_PROTO_SignData done [10:05:38]FM_MakeSignedData done [10:05:38]CreateOFDProtocolMessage [10:05:38]wFMCommunicate request_size=4 [10:05:38]MH_SAM_APDU [10:05:38]CAPDU: 80 11 00 00 [10:05:38]Write to MH i2c: E2 08 00 F1 19 80 11 00 00 00 00 00 00 84 [10:05:38]Write i2c OK [10:05:38]MH_I2C_Read... [10:05:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:05:38]Read from MH i2c: E2 [10:05:38]MH_I2C_Read... [10:05:38]Read from MH i2c: E2 17 00 [10:05:38]MH_I2C_Read... [10:05:38]Read from MH i2c: E2 17 00 F1 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 D7 [10: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 [10:05:38]wFMCommunicate OK [10:05:38]CreateOFDProtocolMessage done [10:05:38]OFDSenderStorePacket 104124 [10:05:38]StoreOFDPacket docnum=104124 [10: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 73 32 07 01 35 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 84 12 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 D5 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 75 50 75 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 BC 96 01 00 35 04 06 00 DB 15 49 98 F4 3E 2C 65 23 AB C3 AC 77 AA [10:05:38]CheckFolder [10:05:38]dirname=/storage/ofd_packets [10:05:38]CheckFolder done [10:05:38]ProducePacketName [10:05:38]name=ofd_packets/00104124 [10:05:38]NVStorageSaveData ofd_packets/00104124 [10:05:38]File name is /storage/ofd_packets/00104124 [10:05:38]Write 301 bytes [10:05:38]NVStorageSaveData done [10:05:38]OFDSenderStorePacket done [10:05:38]KKMCreateOFDPacket done [10:05:38]NVStorageSaveData kkm_last_timestamp [10:05:38]File name is /storage/kkm_last_timestamp [10:05:38]Write 4 bytes [10:05:38]NVStorageSaveData done [10:05:38]ExternCall_PrintAddStr [10:05:38]wPrintStart [10:05:38]Write to MH i2c: 01 00 00 F2 19 0B [10:05:38]Write i2c OK [10:05:38]MH_I2C_Read... [10:05:38]Read from MH i2c: 01 [10:05:38]MH_I2C_Read... [10:05:38]Read from MH i2c: 01 07 00 [10:05:38]MH_I2C_Read... [10:05:38]Read from MH i2c: 01 07 00 F2 19 00 00 00 00 00 FF 0F 20 [10:05:38]RasterBufferAndPrint [10:05:38]line Счет N : (1)673531 [10:05:38]line ИНН: 02508201610067 [10:05:38]line Контрольно-Кассовый Чек [10:05:38]line ПРОДАЖА [10:05:38]line ТРК (МРК, ГНК) : 31 [10:05:38]line Товар: 2710124500 [10:05:38]line Аи-95-К-5 [10:05:38]line 4.740 * 73.90 [10:05:38]line = 350.29 [10:05:38]line НДС 12% НСП 1% [10:05:38]line > о реализуемом товаре [10:05:38]line ОКРУГЛЕНИЕ: -0.29 [10:05:38]line ИТОГО: 350.00 [10:05:38]line Внесено: 350.00 [10:05:38]line СДАЧА: 0.00 [10:05:38]line НСП 1% : 3.10 [10:05:38]line НДС 12% : 37.20 [10:05:38]line Наличными: 350.00 [10:05:38]line Безнал.: 0.00 [10:05:38]line Место: АЗС № 120 "Партнер Нефть" [10:05:38]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [10:05:38]line СНО: Общий режим [10:05:38]line Чек 47 21.06.2024 10:05 [10:05:38]line Смена: 355 ФФД: 1.0 [10:05:38]line ЗНМ: 0300000164 [10:05:38]line РНМ: 0000000000092785 [10:05:38]line Версия ККМ: 001 [10:05:38]line ФМ: 0000000000875093 [10:05:38]line ФД: 104124 [10:05:38]line ФПД: 240884475556926 [10:05:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T100541&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104124&fm=240884475556926&tin=02508201610067®Number=0000000000092785&sum=35000 [10:05:39]OFD Sender: Processing packet 104124 [packets to send 17, broken 16] [10:05:39]ProducePacketName [10:05:39]name=ofd_packets/00104124 [10:05:39]OFD Sender: To server: pG, [10:05:39]CommunicateWithHost lk.salyk.kg:30040 [10:05:39]ConnectInit lk.salyk.kg [10:05:39]written 0, free lines is 4095 [10:05:39]Connected sock=10 [10: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 73 32 07 01 35 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 84 12 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 D5 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 75 50 75 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 BC 96 01 00 35 04 06 00 DB 15 49 98 F4 3E 2C 65 23 AB C3 AC 77 AA [10: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 E4 47 47 00 CF 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 BC 96 01 00 F4 03 04 00 F7 F6 74 66 B6 04 01 00 00 FD D1 B0 E6 03 81 0F 9E [10:05:39]CommunicateWithHost err = 0 [10:05:39]CheckOFDResponse [10:05:39]1017 (14) - 77093643461234 [10:05:39]1041 (16) - 0000000000875093 [10:05:39]1040 (4) - 104124 [10:05:39]1012 (4) - 21.06.2024 03:43 [10:05:39]1206 (1) - 0 [10:05:39]OFD Sender: Remove packet 104124 [10:05:39]ProducePacketName [10:05:39]name=ofd_packets/00104124 [10:05:39]NVStorageDeleteData [10:05:39]Write to MH i2c: 01 00 00 1D 1A 37 [10:05:39]Write i2c OK [10:05:39]MH_I2C_Read... [10:05:39]Read from MH i2c: 01 [10:05:39]MH_I2C_Read... [10:05:39]Read from MH i2c: 01 07 00 [10:05:39]MH_I2C_Read... [10:05:39]Read from MH i2c: 01 07 00 1D 1A 00 00 00 00 00 CE 0C 18 [10:05:39]RasterBufferAndPrint [10:05:39]line [10:05:39]line [10:05:39]line [10:05:39]line [10:05:39]line [10:05:39]written 0, free lines is 3286 [10:05:39]MH_Cut [10:05:39]Write to MH i2c: D1 01 00 24 1A 01 10 [10:05:39]Write i2c OK [10:05:39]MH_I2C_Read... [10:05:39]Read from MH i2c: D1 [10:05:39]MH_I2C_Read... [10:05:39]Read from MH i2c: D1 01 00 [10:05:39]MH_I2C_Read... [10:05:39]Read from MH i2c: D1 01 00 24 1A 00 0F [10:05:39]Write to MH i2c: 01 00 00 25 1A 3F [10:05:39]Write i2c OK [10:05:39]MH_I2C_Read... [10:05:40]OFD Sender: No OFD packet to send [10:05:40]*** Cut start [10:05:40]*** Partial cut [10:05:40]*** CUTSNS_PIN = 1 [10:05:40]*** CUTSNS_PIN = 0 [10:05:40]*** Brake cut motor [10:05:40]Read from MH i2c: 01 [10:05:40]MH_I2C_Read... [10:05:40]*** Stop cut motor [10:05:40]*** Cut end [10:05:40]Read from MH i2c: 01 07 00 [10:05:40]MH_I2C_Read... [10:05:40]Read from MH i2c: 01 07 00 25 1A 00 00 00 00 00 FF 0F 54 [10:05:40]process_action close_receipt done [10:05:40]requested_data is exist [10:05:40]produce_requested_data [10:05:40]requested_item fm.sn is exist - process it [10:05:40]wFMCommunicate request_size=4 [10:05:40]MH_SAM_APDU [10:05:40]CAPDU: 80 11 00 00 [10:05:40]Write to MH i2c: E2 08 00 26 1A 80 11 00 00 00 00 00 00 BA [10:05:40]Write i2c OK [10:05:40]MH_I2C_Read... [10:05:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:05:41]Read from MH i2c: E2 [10:05:41]MH_I2C_Read... [10:05:41]Read from MH i2c: E2 17 00 [10:05:41]MH_I2C_Read... [10:05:41]Read from MH i2c: E2 17 00 26 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 0D [10: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 [10:05:41]wFMCommunicate OK [10:05:41]requested_item fd.num is exist - process it [10:05:41]SAM_PROTO_GetFieldsCounters [10:05:41]wFMCommunicate request_size=4 [10:05:41]MH_SAM_APDU [10:05:41]CAPDU: 80 13 00 00 [10:05:41]Write to MH i2c: E2 08 00 27 1A 80 13 00 00 00 00 00 00 BD [10:05:41]Write i2c OK [10:05:41]MH_I2C_Read... [10:05:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:05:41]Read from MH i2c: E2 [10:05:41]MH_I2C_Read... [10:05:41]Read from MH i2c: E2 62 00 [10:05:41]MH_I2C_Read... [10:05:41]Read from MH i2c: E2 62 00 27 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 BC 96 01 00 0E 04 04 00 63 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 28 [10: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 BC 96 01 00 0E 04 04 00 63 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:05:41]wFMCommunicate OK [10:05:41]SAM_PROTO_GetFieldsCounters done [10:05:41]requested_item shift.num is exist - process it [10:05:41]requested_item shift.opened is exist - process it [10:05:41]req_shift_opened [10:05:41]FM_GetShiftState [10:05:41]SAM_PROTO_GetShiftState [10:05:41]wFMCommunicate request_size=4 [10:05:41]MH_SAM_APDU [10:05:41]CAPDU: 80 13 01 00 [10:05:41]Write to MH i2c: E2 08 00 28 1A 80 13 01 00 00 00 00 00 BF [10:05:41]Write i2c OK [10:05:41]MH_I2C_Read... [10:05:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:05:41]Read from MH i2c: E2 [10:05:41]MH_I2C_Read... [10:05:41]Read from MH i2c: E2 0E 00 [10:05:41]MH_I2C_Read... [10:05:41]Read from MH i2c: E2 0E 00 28 1A 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 D2 [10:05:41]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [10:05:41]wFMCommunicate OK [10:05:41]SAM_PROTO_GetShiftState done [10:05:41]FM_GetShiftState done [10:05:41]req_shift_opened done [10:05:41]requested_item shift.open_date is exist - process it [10:05:41]req_shift_open_date [10:05:41]req_shift_open_date done [10:05:41]produce_requested_data done [10:05:41]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104124,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [10:05:41]process_action_free close_receipt [10:05:41]json_value_free [10:05:41]json_value_free done [10:05:41]process_json_proto returns [10:05:41]Send response to host [10:05:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104124,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [10:05:41]free response buf [10:05:41]execute_script done [10:05:41]execute_script returns [10:05:41]free content buf [10:05:41]Sock 7.Close socket [10:05:41]Sock 7.Thread stoped [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:40]OFD Sender: No OFD packet to send [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:27]accept exits with 9 [10:09:27]New connection [10:09:27]New thread 3066858852 created [10:09:27]Thread 3066715492 joined [10:09:27]Waiting for new connection... [10:09:27] Sock 9.Parse request [10:09:27]Sock 9.Check first char [10:09:27]Sock 9.First char is OK [10:09:27]request: POST /json_proto HTTP/1.0 [10:09:27]Method: POST [10:09:27]URL: /json_proto [10:09:27]Method is POST - this is cgi request [10:09:27]url: /json_proto [10:09:27]query_string will be loaded in cgi processing [10:09:27]execute_cgi json_proto POST (null) [10:09:27]execute_cgi path=json_proto method=POST [10:09:27]POST find Content-Length [10:09:27]Host: 172.17.38.133:8080 [10:09:27]Content-Length: 682 [10:09:27]Content-Type: application/json [10:09:27] [10:09:27]POST finish read [10:09:27]Found Content-Length = 682 [10:09:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673532", "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" : 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:09:27]execute_script... [10:09:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673532", "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" : 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:09:27]POST & json_proto [10:09:27]process_json_proto [10:09:27]json parsed OK: [10:09:27]protocol is kg_v1.0 [10:09:27]action value=close_receipt [10:09:27]process_action close_receipt [10:09:27]cmd_close_receipt [10:09:27]MH_GetDate [10:09:27]Write to MH i2c: F0 00 00 29 1A 32 [10:09:27]Write i2c OK [10:09:27]MH_I2C_Read... [10:09:27]Read from MH i2c: F0 [10:09:27]MH_I2C_Read... [10:09:27]Read from MH i2c: F0 09 00 [10:09:27]MH_I2C_Read... [10:09:27]Read from MH i2c: F0 09 00 29 1A 00 5B 51 75 66 BD 8F 7C 64 EE [10:09:27]GetLastDocTimeStamp 1718964341 [10:09:27]current date 1718964571 [10:09:27]FM_GetShiftState [10:09:27]SAM_PROTO_GetShiftState [10:09:27]wFMCommunicate request_size=4 [10:09:27]MH_SAM_APDU [10:09:27]CAPDU: 80 13 01 00 [10:09:27]Write to MH i2c: E2 08 00 2A 1A 80 13 01 00 00 00 00 00 C1 [10:09:27]Write i2c OK [10:09:27]MH_I2C_Read... [10:09:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:09:27]Read from MH i2c: E2 [10:09:27]MH_I2C_Read... [10:09:27]Read from MH i2c: E2 0E 00 [10:09:27]MH_I2C_Read... [10:09:27]Read from MH i2c: E2 0E 00 2A 1A 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 D4 [10:09:27]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [10:09:27]wFMCommunicate OK [10:09:27]SAM_PROTO_GetShiftState done [10:09:27]FM_GetShiftState done [10:09:27]opened in 1718929509 [10:09:27]opened+sec_in_day 1719015909 [10:09:27]quantity*price = 160024 [10:09:27]sum+1 = 160025 [10:09:27]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 СНО: Общий режим Чек 48 21.06.2024 10:09 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104125 ФПД: 114199719247285 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T100931&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104125&fm=114199719247285&tin=02508201610067®Number=0000000000092785&sum=160000 [10:09:28]StoreToDocumentArchive [10:09:28]shift 355 fd 104125 [10:09:28]save to /storage/0355/doc_00104125 [10:09:28]save last doc name /storage/0355/doc_00104125 to /storage/kkm_last_doc_name [10:09:28]save OK [10:09:28]Clear old archive folders... [10:09:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:09:28]tlvbuf is B6F3E150 [10:09:28]SAM_PROTO_ClearQueue [10:09:28]wFMCommunicate request_size=4 [10:09:28]MH_SAM_APDU [10:09:28]CAPDU: 80 09 00 00 [10:09:28]Write to MH i2c: E2 08 00 37 1A 80 09 00 00 00 00 00 00 C3 [10:09:28]Write i2c OK [10:09:28]MH_I2C_Read... [10:09:28]Read from MH i2c: E2 [10:09:28]MH_I2C_Read... [10:09:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:09:28]Read from MH i2c: E2 03 00 [10:09:28]MH_I2C_Read... [10:09:28]Read from MH i2c: E2 03 00 37 1A 00 90 00 C5 [10:09:28]RAPDU: 90 00 [10:09:28]wFMCommunicate OK [10:09:28]SAM_PROTO_ClearQueue done [10:09:28]KKMCreateOFDPacket [10:09:28]OFDProtocolAddRootSTLVToBuf [10:09:28]FM_MakeSignedData [10:09:28]FM_MakeSignedData [10:09:28]SAM_PROTO_SignData [10:09:28]wFMCommunicate request_size=4 [10:09:28]MH_SAM_APDU [10:09:28]CAPDU: 80 0D 01 02 [10:09:28]Write to MH i2c: E2 08 00 38 1A 80 0D 01 02 00 00 00 00 CB [10:09:28]Write i2c OK [10:09:28]MH_I2C_Read... [10:09:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:09:28]Read from MH i2c: E2 [10:09:28]MH_I2C_Read... [10:09:28]Read from MH i2c: E2 03 00 [10:09:28]MH_I2C_Read... [10:09:28]Read from MH i2c: E2 03 00 38 1A 00 90 00 C6 [10:09:28]RAPDU: 90 00 [10:09:28]wFMCommunicate OK [10:09:28]wFMCommunicate request_size=255 [10:09:28]MH_SAM_APDU [10:09: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 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 30 00 00 00 F4 03 04 00 5B 51 75 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 BD 96 01 00 35 04 06 00 67 [10:09:28]Write to MH i2c: E2 02 01 39 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 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 30 00 00 00 F4 03 04 00 5B 51 75 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 BD 96 01 00 35 04 06 00 67 00 00 DE [10:09:28]Write i2c OK [10:09:28]MH_I2C_Read... [10:09:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:09:29]Read from MH i2c: E2 [10:09:29]MH_I2C_Read... [10:09:29]Read from MH i2c: E2 03 00 [10:09:29]MH_I2C_Read... [10:09:29]Read from MH i2c: E2 03 00 39 1A 00 90 00 C7 [10:09:29]RAPDU: 90 00 [10:09:29]wFMCommunicate OK [10:09:29]wFMCommunicate request_size=10 [10:09:29]MH_SAM_APDU [10:09:29]CAPDU: 80 0D 02 02 05 DD 31 B2 FD B5 [10:09:29]Write to MH i2c: E2 0D 00 3A 1A 80 0D 02 02 05 00 DD 31 B2 FD B5 00 00 4A [10:09:29]Write i2c OK [10:09:29]MH_I2C_Read... [10:09:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:09:29]Read from MH i2c: E2 [10:09:29]MH_I2C_Read... [10:09:29]Read from MH i2c: E2 03 00 [10:09:29]MH_I2C_Read... [10:09:29]Read from MH i2c: E2 03 00 3A 1A 00 90 00 C8 [10:09:29]RAPDU: 90 00 [10:09:29]wFMCommunicate OK [10:09:29]wFMCommunicate request_size=4 [10:09:29]MH_SAM_APDU [10:09:29]CAPDU: 80 0D 03 02 [10:09:29]Write to MH i2c: E2 08 00 3B 1A 80 0D 03 02 00 00 00 00 D0 [10:09:29]Write i2c OK [10:09:29]MH_I2C_Read... [10:09:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:09:29]Read from MH i2c: E2 [10:09:29]MH_I2C_Read... [10:09:29]Read from MH i2c: E2 0B 00 [10:09:29]MH_I2C_Read... [10:09:29]Read from MH i2c: E2 0B 00 3B 1A 00 5B 64 FA 50 68 79 46 3C 90 00 3D [10:09:29]RAPDU: 5B 64 FA 50 68 79 46 3C 90 00 [10:09:29]wFMCommunicate OK [10:09:29]SAM_PROTO_SignData done [10:09:29]FM_MakeSignedData done [10:09:29]CreateOFDProtocolMessage [10:09:29]wFMCommunicate request_size=4 [10:09:29]MH_SAM_APDU [10:09:29]CAPDU: 80 11 00 00 [10:09:29]Write to MH i2c: E2 08 00 3C 1A 80 11 00 00 00 00 00 00 D0 [10:09:29]Write i2c OK [10:09:29]MH_I2C_Read... [10:09:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:09:29]Read from MH i2c: E2 [10:09:29]MH_I2C_Read... [10:09:29]Read from MH i2c: E2 17 00 [10:09:29]MH_I2C_Read... [10:09:29]Read from MH i2c: E2 17 00 3C 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 23 [10:09: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:09:29]wFMCommunicate OK [10:09:29]CreateOFDProtocolMessage done [10:09:29]OFDSenderStorePacket 104125 [10:09:29]StoreOFDPacket docnum=104125 [10:09: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 67 85 07 01 26 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 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 30 00 00 00 F4 03 04 00 5B 51 75 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 BD 96 01 00 35 04 06 00 67 DD 31 B2 FD B5 5B 64 FA 50 68 79 46 3C [10:09:29]CheckFolder [10:09:29]dirname=/storage/ofd_packets [10:09:29]CheckFolder done [10:09:29]ProducePacketName [10:09:29]name=ofd_packets/00104125 [10:09:29]NVStorageSaveData ofd_packets/00104125 [10:09:29]File name is /storage/ofd_packets/00104125 [10:09:29]Write 301 bytes [10:09:29]NVStorageSaveData done [10:09:29]OFDSenderStorePacket done [10:09:29]KKMCreateOFDPacket done [10:09:29]NVStorageSaveData kkm_last_timestamp [10:09:29]File name is /storage/kkm_last_timestamp [10:09:29]Write 4 bytes [10:09:29]NVStorageSaveData done [10:09:29]ExternCall_PrintAddStr [10:09:29]wPrintStart [10:09:29]Write to MH i2c: 01 00 00 3D 1A 57 [10:09:29]Write i2c OK [10:09:29]MH_I2C_Read... [10:09:29]Read from MH i2c: 01 [10:09:29]MH_I2C_Read... [10:09:29]Read from MH i2c: 01 07 00 [10:09:29]MH_I2C_Read... [10:09:29]Read from MH i2c: 01 07 00 3D 1A 00 00 00 00 00 FF 0F 6C [10:09:29]RasterBufferAndPrint [10:09:29]line Счет N : (1)673532 [10:09:29]line ИНН: 02508201610067 [10:09:29]line Контрольно-Кассовый Чек [10:09:29]line ПРОДАЖА [10:09:29]line ТРК (МРК, ГНК) : 42 [10:09:29]line Товар: 2710124130 [10:09:29]line Аи-92-К-5 [10:09:29]line 24.100 * 66.40 [10:09:29]line = 1600.24 [10:09:29]line НДС 12% НСП 1% [10:09:29]line > о реализуемом товаре [10:09:29]line ОКРУГЛЕНИЕ: -0.24 [10:09:29]line ИТОГО: 1600.00 [10:09:29]line Внесено: 1600.00 [10:09:29]line СДАЧА: 0.00 [10:09:29]line НСП 1% : 14.16 [10:09:29]line НДС 12% : 169.94 [10:09:29]line Наличными: 1600.00 [10:09:29]line Безнал.: 0.00 [10:09:29]line Место: АЗС № 120 "Партнер Нефть" [10:09:29]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [10:09:29]line СНО: Общий режим [10:09:29]line Чек 48 21.06.2024 10:09 [10:09:29]line Смена: 355 ФФД: 1.0 [10:09:29]line ЗНМ: 0300000164 [10:09:29]line РНМ: 0000000000092785 [10:09:29]line Версия ККМ: 001 [10:09:29]line ФМ: 0000000000875093 [10:09:29]line ФД: 104125 [10:09:29]line ФПД: 114199719247285 [10:09:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T100931&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104125&fm=114199719247285&tin=02508201610067®Number=0000000000092785&sum=160000 [10:09:29]OFD Sender: Processing packet 104125 [packets to send 17, broken 16] [10:09:29]ProducePacketName [10:09:29]name=ofd_packets/00104125 [10:09:29]OFD Sender: To server: pG, [10:09:29]CommunicateWithHost lk.salyk.kg:30040 [10:09:29]ConnectInit lk.salyk.kg [10:09:29]written 0, free lines is 4095 [10:09:29]Connected sock=10 [10:09: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 67 85 07 01 26 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 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 30 00 00 00 F4 03 04 00 5B 51 75 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 BD 96 01 00 35 04 06 00 67 DD 31 B2 FD B5 5B 64 FA 50 68 79 46 3C [10:09: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 B7 EE 47 00 E7 AD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 BD 96 01 00 F4 03 04 00 DE F7 74 66 B6 04 01 00 00 94 3C 73 5E B5 EB 7D D0 [10:09:29]CommunicateWithHost err = 0 [10:09:29]CheckOFDResponse [10:09:29]1017 (14) - 77093643461234 [10:09:29]1041 (16) - 0000000000875093 [10:09:29]1040 (4) - 104125 [10:09:29]1012 (4) - 21.06.2024 03:47 [10:09:29]1206 (1) - 0 [10:09:29]OFD Sender: Remove packet 104125 [10:09:29]ProducePacketName [10:09:29]name=ofd_packets/00104125 [10:09:29]NVStorageDeleteData [10:09:29]Write to MH i2c: 01 00 00 68 1A 82 [10:09:29]Write i2c OK [10:09:29]MH_I2C_Read... [10:09:29]Read from MH i2c: 01 [10:09:29]MH_I2C_Read... [10:09:29]Read from MH i2c: 01 07 00 [10:09:29]MH_I2C_Read... [10:09:29]Read from MH i2c: 01 07 00 68 1A 00 00 00 00 00 E8 0C 7D [10:09:29]RasterBufferAndPrint [10:09:29]line [10:09:29]line [10:09:29]line [10:09:29]line [10:09:29]line [10:09:29]written 0, free lines is 3310 [10:09:30]MH_Cut [10:09:30]Write to MH i2c: D1 01 00 6F 1A 01 5B [10:09:30]Write i2c OK [10:09:30]MH_I2C_Read... [10:09:30]Read from MH i2c: D1 [10:09:30]MH_I2C_Read... [10:09:30]Read from MH i2c: D1 01 00 [10:09:30]MH_I2C_Read... [10:09:30]Read from MH i2c: D1 01 00 6F 1A 00 5A [10:09:30]Write to MH i2c: 01 00 00 70 1A 8A [10:09:30]Write i2c OK [10:09:30]MH_I2C_Read... [10:09:30]OFD Sender: No OFD packet to send [10:09:30]*** Cut start [10:09:30]*** Partial cut [10:09:30]*** CUTSNS_PIN = 1 [10:09:30]*** CUTSNS_PIN = 0 [10:09:30]*** Brake cut motor [10:09:31]Read from MH i2c: 01 [10:09:31]MH_I2C_Read... [10:09:31]*** Stop cut motor [10:09:31]*** Cut end [10:09:31]Read from MH i2c: 01 07 00 [10:09:31]MH_I2C_Read... [10:09:31]Read from MH i2c: 01 07 00 70 1A 00 00 00 00 00 FF 0F 9F [10:09:31]process_action close_receipt done [10:09:31]requested_data is exist [10:09:31]produce_requested_data [10:09:31]requested_item fm.sn is exist - process it [10:09:31]wFMCommunicate request_size=4 [10:09:31]MH_SAM_APDU [10:09:31]CAPDU: 80 11 00 00 [10:09:31]Write to MH i2c: E2 08 00 71 1A 80 11 00 00 00 00 00 00 05 [10:09:31]Write i2c OK [10:09:31]MH_I2C_Read... [10:09:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:09:31]Read from MH i2c: E2 [10:09:31]MH_I2C_Read... [10:09:31]Read from MH i2c: E2 17 00 [10:09:31]MH_I2C_Read... [10:09:31]Read from MH i2c: E2 17 00 71 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 58 [10:09:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [10:09:31]wFMCommunicate OK [10:09:31]requested_item fd.num is exist - process it [10:09:31]SAM_PROTO_GetFieldsCounters [10:09:31]wFMCommunicate request_size=4 [10:09:31]MH_SAM_APDU [10:09:31]CAPDU: 80 13 00 00 [10:09:31]Write to MH i2c: E2 08 00 72 1A 80 13 00 00 00 00 00 00 08 [10:09:31]Write i2c OK [10:09:31]MH_I2C_Read... [10:09:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:09:31]Read from MH i2c: E2 [10:09:31]MH_I2C_Read... [10:09:31]Read from MH i2c: E2 62 00 [10:09:31]MH_I2C_Read... [10:09:31]Read from MH i2c: E2 62 00 72 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 BD 96 01 00 0E 04 04 00 63 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 77 [10:09: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 BD 96 01 00 0E 04 04 00 63 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:09:31]wFMCommunicate OK [10:09:31]SAM_PROTO_GetFieldsCounters done [10:09:31]requested_item shift.num is exist - process it [10:09:31]requested_item shift.opened is exist - process it [10:09:31]req_shift_opened [10:09:31]FM_GetShiftState [10:09:31]SAM_PROTO_GetShiftState [10:09:31]wFMCommunicate request_size=4 [10:09:31]MH_SAM_APDU [10:09:31]CAPDU: 80 13 01 00 [10:09:31]Write to MH i2c: E2 08 00 73 1A 80 13 01 00 00 00 00 00 0A [10:09:31]Write i2c OK [10:09:31]MH_I2C_Read... [10:09:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:09:31]Read from MH i2c: E2 [10:09:31]MH_I2C_Read... [10:09:31]Read from MH i2c: E2 0E 00 [10:09:31]MH_I2C_Read... [10:09:31]Read from MH i2c: E2 0E 00 73 1A 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 1D [10:09:31]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [10:09:31]wFMCommunicate OK [10:09:31]SAM_PROTO_GetShiftState done [10:09:31]FM_GetShiftState done [10:09:31]req_shift_opened done [10:09:31]requested_item shift.open_date is exist - process it [10:09:31]req_shift_open_date [10:09:31]req_shift_open_date done [10:09:31]produce_requested_data done [10:09:31]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104125,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [10:09:31]process_action_free close_receipt [10:09:31]json_value_free [10:09:31]json_value_free done [10:09:31]process_json_proto returns [10:09:31]Send response to host [10:09:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104125,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [10:09:31]free response buf [10:09:31]execute_script done [10:09:31]execute_script returns [10:09:31]free content buf [10:09:31]Sock 9.Close socket [10:09:31]Sock 9.Thread stoped [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: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:20]OFD Sender: No OFD packet to send [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:50]OFD Sender: No OFD packet to send [10:12:55]OFD Sender: No OFD packet to send [10:13:00]OFD Sender: No OFD packet to send [10:13:05]OFD Sender: No OFD packet to send [10:13:10]OFD Sender: No OFD packet to send [10:13:15]OFD Sender: No OFD packet to send [10:13:20]OFD Sender: No OFD packet to send [10:13:25]OFD Sender: No OFD packet to send [10:13:30]OFD Sender: No OFD packet to send [10:13:35]OFD Sender: No OFD packet to send [10:13:40]OFD Sender: No OFD packet to send [10:13:45]OFD Sender: No OFD packet to send [10:13:50]OFD Sender: No OFD packet to send [10:13:55]OFD Sender: No OFD packet to send [10:14:00]OFD Sender: No OFD packet to send [10:14:05]OFD Sender: No OFD packet to send [10:14:10]OFD Sender: No OFD packet to send [10:14:15]OFD Sender: No OFD packet to send [10:14:20]OFD Sender: No OFD packet to send [10:14:25]OFD Sender: No OFD packet to send [10:14:30]OFD Sender: No OFD packet to send [10:14:35]OFD Sender: No OFD packet to send [10:14:40]OFD Sender: No OFD packet to send [10:14:45]OFD Sender: No OFD packet to send [10:14:50]OFD Sender: No OFD packet to send [10:14:55]OFD Sender: No OFD packet to send [10:15:00]OFD Sender: No OFD packet to send [10:15:05]OFD Sender: No OFD packet to send [10:15:10]OFD Sender: No OFD packet to send [10:15:15]OFD Sender: No OFD packet to send [10:15:20]OFD Sender: No OFD packet to send [10:15:25]OFD Sender: No OFD packet to send [10:15:30]OFD Sender: No OFD packet to send [10:15:35]OFD Sender: No OFD packet to send [10:15:40]OFD Sender: No OFD packet to send [10:15:42]accept exits with 7 [10:15:42]New connection [10:15:42]New thread 3066715492 created [10:15:42]Thread 3066858852 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)673533", "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" : 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" ] } } [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)673533", "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" : 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" ] } } [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 74 1A 7D [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 74 1A 00 D2 52 75 66 BD 8F 7C 64 B1 [10:15:42]GetLastDocTimeStamp 1718964571 [10:15:42]current date 1718964946 [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 75 1A 80 13 01 00 00 00 00 00 0C [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 75 1A 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 1F [10:15:42]RAPDU: 09 00 01 65 C8 74 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 1718929509 [10:15:42]opened+sec_in_day 1719015909 [10:15:42]quantity*price = 250062 [10:15:42]sum+1 = 250063 [10:15:42]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 СНО: Общий режим Чек 49 21.06.2024 10:15 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104126 ФПД: 79318434723741 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T101546&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104126&fm=79318434723741&tin=02508201610067®Number=0000000000092785&sum=250000 [10:15:43]StoreToDocumentArchive [10:15:43]shift 355 fd 104126 [10:15:43]save to /storage/0355/doc_00104126 [10:15:43]save last doc name /storage/0355/doc_00104126 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=251 [10:15:43]tlvbuf is B6F3E6E0 [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 82 1A 80 09 00 00 00 00 00 00 0E [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 82 1A 00 90 00 10 [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 83 1A 80 0D 01 02 00 00 00 00 16 [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 83 1A 00 90 00 11 [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 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 31 00 00 00 F4 03 04 00 D2 52 75 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 BE 96 01 00 35 04 06 00 48 [10:15:43]Write to MH i2c: E2 02 01 84 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 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 31 00 00 00 F4 03 04 00 D2 52 75 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 BE 96 01 00 35 04 06 00 48 00 00 45 [10:15:43]Write i2c OK [10:15:43]MH_I2C_Read... [10:15:43]*** iso7816_exchange 80 0D 02 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 84 1A 00 90 00 12 [10:15:43]RAPDU: 90 00 [10:15:43]wFMCommunicate OK [10:15:43]wFMCommunicate request_size=10 [10:15:43]MH_SAM_APDU [10:15:43]CAPDU: 80 0D 02 02 05 23 C3 20 37 9D [10:15:43]Write to MH i2c: E2 0D 00 85 1A 80 0D 02 02 05 00 23 C3 20 37 9D 00 00 FD [10:15:43]Write i2c OK [10:15:43]MH_I2C_Read... [10:15:43]*** iso7816_exchange 80 0D 02 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 85 1A 00 90 00 13 [10:15:43]RAPDU: 90 00 [10:15:43]wFMCommunicate OK [10:15:43]wFMCommunicate request_size=4 [10:15:43]MH_SAM_APDU [10:15:43]CAPDU: 80 0D 03 02 [10:15:43]Write to MH i2c: E2 08 00 86 1A 80 0D 03 02 00 00 00 00 1B [10:15:43]Write i2c OK [10:15:43]MH_I2C_Read... [10:15:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:15:43]Read from MH i2c: E2 [10:15:43]MH_I2C_Read... [10:15:43]Read from MH i2c: E2 0B 00 [10:15:43]MH_I2C_Read... [10:15:43]Read from MH i2c: E2 0B 00 86 1A 00 6A 7E A9 69 9B D9 9D DD 90 00 04 [10:15:43]RAPDU: 6A 7E A9 69 9B D9 9D DD 90 00 [10:15:43]wFMCommunicate OK [10:15:43]SAM_PROTO_SignData done [10:15:43]FM_MakeSignedData done [10:15:43]CreateOFDProtocolMessage [10:15:43]wFMCommunicate request_size=4 [10:15:43]MH_SAM_APDU [10:15:43]CAPDU: 80 11 00 00 [10:15:43]Write to MH i2c: E2 08 00 87 1A 80 11 00 00 00 00 00 00 1B [10:15:43]Write i2c OK [10:15:43]MH_I2C_Read... [10:15:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:15:43]Read from MH i2c: E2 [10:15:43]MH_I2C_Read... [10:15:43]Read from MH i2c: E2 17 00 [10:15:43]MH_I2C_Read... [10:15:43]Read from MH i2c: E2 17 00 87 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 6E [10:15:43]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:43]wFMCommunicate OK [10:15:43]CreateOFDProtocolMessage done [10:15:43]OFDSenderStorePacket 104126 [10:15:43]StoreOFDPacket docnum=104126 [10:15: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 D1 72 07 01 EB 08 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 31 00 00 00 F4 03 04 00 D2 52 75 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 BE 96 01 00 35 04 06 00 48 23 C3 20 37 9D 6A 7E A9 69 9B D9 9D DD [10:15:43]CheckFolder [10:15:43]dirname=/storage/ofd_packets [10:15:43]CheckFolder done [10:15:43]ProducePacketName [10:15:43]name=ofd_packets/00104126 [10:15:43]NVStorageSaveData ofd_packets/00104126 [10:15:43]File name is /storage/ofd_packets/00104126 [10:15:44]Write 301 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]ExternCall_PrintAddStr [10:15:44]wPrintStart [10:15:44]Write to MH i2c: 01 00 00 88 1A A2 [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 88 1A 00 00 00 00 00 FF 0F B7 [10:15:44]RasterBufferAndPrint [10:15:44]line Счет N : (1)673533 [10:15:44]line ИНН: 02508201610067 [10:15:44]line Контрольно-Кассовый Чек [10:15:44]line ПРОДАЖА [10:15:44]line ТРК (МРК, ГНК) : 32 [10:15:44]line Товар: 2710124130 [10:15:44]line Аи-92-К-5 [10:15:44]line 37.660 * 66.40 [10:15:44]line = 2500.62 [10:15:44]line НДС 12% НСП 1% [10:15:44]line > о реализуемом товаре [10:15:44]line ОКРУГЛЕНИЕ: -0.62 [10:15:44]line ИТОГО: 2500.00 [10:15:44]line Внесено: 2500.00 [10:15:44]line СДАЧА: 0.00 [10:15:44]line НСП 1% : 22.13 [10:15:44]line НДС 12% : 265.55 [10:15:44]line Наличными: 2500.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 Чек 49 21.06.2024 10:15 [10:15:44]line Смена: 355 ФФД: 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 ФД: 104126 [10:15:44]line ФПД: 79318434723741 [10:15:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T101546&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104126&fm=79318434723741&tin=02508201610067®Number=0000000000092785&sum=250000 [10:15:44]OFD Sender: Processing packet 104126 [packets to send 17, broken 16] [10:15:44]ProducePacketName [10:15:44]name=ofd_packets/00104126 [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]written 0, free lines is 4095 [10:15:44]Connected sock=10 [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 0F 01 00 00 D1 72 07 01 EB 08 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 31 00 00 00 F4 03 04 00 D2 52 75 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 BE 96 01 00 35 04 06 00 48 23 C3 20 37 9D 6A 7E A9 69 9B D9 9D DD [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 89 F8 47 00 46 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 BE 96 01 00 F4 03 04 00 55 F9 74 66 B6 04 01 00 00 CF 31 90 8B 8F 8F 77 4A [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) - 104126 [10:15:44]1012 (4) - 21.06.2024 03:53 [10:15:44]1206 (1) - 0 [10:15:44]OFD Sender: Remove packet 104126 [10:15:44]ProducePacketName [10:15:44]name=ofd_packets/00104126 [10:15:44]NVStorageDeleteData [10:15:44]Write to MH i2c: 01 00 00 B3 1A CD [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 B3 1A 00 00 00 00 00 EA 0C CA [10:15:44]RasterBufferAndPrint [10:15:44]line [10:15:44]line [10:15:44]line [10:15:44]line [10:15:44]line [10:15:44]written 0, free lines is 3312 [10:15:44]MH_Cut [10:15:44]Write to MH i2c: D1 01 00 BA 1A 01 A6 [10:15:44]Write i2c OK [10:15:44]MH_I2C_Read... [10:15:44]Read from MH i2c: D1 [10:15:44]MH_I2C_Read... [10:15:44]Read from MH i2c: D1 01 00 [10:15:44]MH_I2C_Read... [10:15:44]Read from MH i2c: D1 01 00 BA 1A 00 A5 [10:15:44]Write to MH i2c: 01 00 00 BB 1A D5 [10:15:44]Write i2c OK [10:15:44]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:45]*** CUTSNS_PIN = 0 [10:15:45]*** 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 BB 1A 00 00 00 00 00 FF 0F EA [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 BC 1A 80 11 00 00 00 00 00 00 50 [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 BC 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 A3 [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 BD 1A 80 13 00 00 00 00 00 00 53 [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 BD 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 BE 96 01 00 0E 04 04 00 63 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 C6 [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 BE 96 01 00 0E 04 04 00 63 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: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 BE 1A 80 13 01 00 00 00 00 00 55 [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 BE 1A 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 68 [10:15:46]RAPDU: 09 00 01 65 C8 74 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":104126,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [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":104126,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [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:50]OFD Sender: No OFD packet to send [10:15:55]OFD Sender: No OFD packet to send [10:16:00]OFD Sender: No OFD packet to send [10:16:05]OFD Sender: No OFD packet to send [10:16:07]accept exits with 9 [10:16:07]New connection [10:16:07]New thread 3066858852 created [10:16:07]Thread 3066715492 joined [10:16:07]Waiting for new connection... [10:16:07] Sock 9.Parse request [10:16:07]Sock 9.Check first char [10:16:07]Sock 9.First char is OK [10:16:07]request: POST /json_proto HTTP/1.0 [10:16:07]Method: POST [10:16:07]URL: /json_proto [10:16:07]Method is POST - this is cgi request [10:16:07]url: /json_proto [10:16:07]query_string will be loaded in cgi processing [10:16:07]execute_cgi json_proto POST (null) [10:16:07]execute_cgi path=json_proto method=POST [10:16:07]POST find Content-Length [10:16:07]Host: 172.17.38.133:8080 [10:16:07]Content-Length: 682 [10:16:07]Content-Type: application/json [10:16:07] [10:16:07]POST finish read [10:16:07]Found Content-Length = 682 [10:16:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673534", "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" ] } } [10:16:07]execute_script... [10:16: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)673534", "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" ] } } [10:16:07]POST & json_proto [10:16:07]process_json_proto [10:16:07]json parsed OK: [10:16:07]protocol is kg_v1.0 [10:16:07]action value=close_receipt [10:16:07]process_action close_receipt [10:16:07]cmd_close_receipt [10:16:07]MH_GetDate [10:16:07]Write to MH i2c: F0 00 00 BF 1A C8 [10:16:07]Write i2c OK [10:16:07]MH_I2C_Read... [10:16:07]Read from MH i2c: F0 [10:16:07]MH_I2C_Read... [10:16:07]Read from MH i2c: F0 09 00 [10:16:07]MH_I2C_Read... [10:16:07]Read from MH i2c: F0 09 00 BF 1A 00 EB 52 75 66 BD 8F 7C 64 15 [10:16:07]GetLastDocTimeStamp 1718964946 [10:16:07]current date 1718964971 [10:16:07]FM_GetShiftState [10:16:07]SAM_PROTO_GetShiftState [10:16:07]wFMCommunicate request_size=4 [10:16:07]MH_SAM_APDU [10:16:07]CAPDU: 80 13 01 00 [10:16:07]Write to MH i2c: E2 08 00 C0 1A 80 13 01 00 00 00 00 00 57 [10:16:07]Write i2c OK [10:16:07]MH_I2C_Read... [10:16:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:16:07]Read from MH i2c: E2 [10:16:07]MH_I2C_Read... [10:16:07]Read from MH i2c: E2 0E 00 [10:16:07]MH_I2C_Read... [10:16:07]Read from MH i2c: E2 0E 00 C0 1A 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 6A [10:16:07]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [10:16:07]wFMCommunicate OK [10:16:07]SAM_PROTO_GetShiftState done [10:16:07]FM_GetShiftState done [10:16:07]opened in 1718929509 [10:16:07]opened+sec_in_day 1719015909 [10:16:07]quantity*price = 100064 [10:16:07]sum+1 = 100066 [10:16:07]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 СНО: Общий режим Чек 50 21.06.2024 10:16 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104127 ФПД: 248015861651337 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T101611&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104127&fm=248015861651337&tin=02508201610067®Number=0000000000092785&sum=100000 [10:16:08]StoreToDocumentArchive [10:16:08]shift 355 fd 104127 [10:16:08]save to /storage/0355/doc_00104127 [10:16:08]save last doc name /storage/0355/doc_00104127 to /storage/kkm_last_doc_name [10:16:08]save OK [10:16:08]Clear old archive folders... [10:16:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:16:08]tlvbuf is 01174DE0 [10:16:08]SAM_PROTO_ClearQueue [10:16:08]wFMCommunicate request_size=4 [10:16:08]MH_SAM_APDU [10:16:08]CAPDU: 80 09 00 00 [10:16:08]Write to MH i2c: E2 08 00 CD 1A 80 09 00 00 00 00 00 00 59 [10:16:08]Write i2c OK [10:16:08]MH_I2C_Read... [10:16:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:16:08]Read from MH i2c: E2 [10:16:08]MH_I2C_Read... [10:16:08]Read from MH i2c: E2 03 00 [10:16:08]MH_I2C_Read... [10:16:08]Read from MH i2c: E2 03 00 CD 1A 00 90 00 5B [10:16:08]RAPDU: 90 00 [10:16:08]wFMCommunicate OK [10:16:08]SAM_PROTO_ClearQueue done [10:16:08]KKMCreateOFDPacket [10:16:08]OFDProtocolAddRootSTLVToBuf [10:16:08]FM_MakeSignedData [10:16:08]FM_MakeSignedData [10:16:08]SAM_PROTO_SignData [10:16:08]wFMCommunicate request_size=4 [10:16:08]MH_SAM_APDU [10:16:08]CAPDU: 80 0D 01 02 [10:16:08]Write to MH i2c: E2 08 00 CE 1A 80 0D 01 02 00 00 00 00 61 [10:16:08]Write i2c OK [10:16:08]MH_I2C_Read... [10:16:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:16:08]Read from MH i2c: E2 [10:16:08]MH_I2C_Read... [10:16:08]Read from MH i2c: E2 03 00 [10:16:08]MH_I2C_Read... [10:16:08]Read from MH i2c: E2 03 00 CE 1A 00 90 00 5C [10:16:08]RAPDU: 90 00 [10:16:08]wFMCommunicate OK [10:16:08]wFMCommunicate request_size=255 [10:16:08]MH_SAM_APDU [10:16: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 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 32 00 00 00 F4 03 04 00 EB 52 75 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 BF 96 01 00 35 04 06 00 E1 [10:16:08]Write to MH i2c: E2 02 01 CF 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 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 32 00 00 00 F4 03 04 00 EB 52 75 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 BF 96 01 00 35 04 06 00 E1 00 00 50 [10:16:08]Write i2c OK [10:16:08]MH_I2C_Read... [10:16:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:16:08]Read from MH i2c: E2 [10:16:08]MH_I2C_Read... [10:16:08]Read from MH i2c: E2 03 00 [10:16:08]MH_I2C_Read... [10:16:08]Read from MH i2c: E2 03 00 CF 1A 00 90 00 5D [10:16:08]RAPDU: 90 00 [10:16:08]wFMCommunicate OK [10:16:08]wFMCommunicate request_size=10 [10:16:08]MH_SAM_APDU [10:16:08]CAPDU: 80 0D 02 02 05 91 B1 55 17 89 [10:16:08]Write to MH i2c: E2 0D 00 D0 1A 80 0D 02 02 05 00 91 B1 55 17 89 00 00 A5 [10:16:08]Write i2c OK [10:16:08]MH_I2C_Read... [10:16:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:16:08]Read from MH i2c: E2 [10:16:08]MH_I2C_Read... [10:16:08]Read from MH i2c: E2 03 00 [10:16:08]MH_I2C_Read... [10:16:08]Read from MH i2c: E2 03 00 D0 1A 00 90 00 5E [10:16:08]RAPDU: 90 00 [10:16:08]wFMCommunicate OK [10:16:08]wFMCommunicate request_size=4 [10:16:08]MH_SAM_APDU [10:16:08]CAPDU: 80 0D 03 02 [10:16:08]Write to MH i2c: E2 08 00 D1 1A 80 0D 03 02 00 00 00 00 66 [10:16:08]Write i2c OK [10:16:08]MH_I2C_Read... [10:16:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:16:08]Read from MH i2c: E2 [10:16:08]MH_I2C_Read... [10:16:08]Read from MH i2c: E2 0B 00 [10:16:08]MH_I2C_Read... [10:16:08]Read from MH i2c: E2 0B 00 D1 1A 00 41 2F 0D FF 52 86 5D 2B 90 00 43 [10:16:08]RAPDU: 41 2F 0D FF 52 86 5D 2B 90 00 [10:16:08]wFMCommunicate OK [10:16:08]SAM_PROTO_SignData done [10:16:08]FM_MakeSignedData done [10:16:08]CreateOFDProtocolMessage [10:16:08]wFMCommunicate request_size=4 [10:16:08]MH_SAM_APDU [10:16:08]CAPDU: 80 11 00 00 [10:16:08]Write to MH i2c: E2 08 00 D2 1A 80 11 00 00 00 00 00 00 66 [10:16:08]Write i2c OK [10:16:08]MH_I2C_Read... [10:16:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:16:08]Read from MH i2c: E2 [10:16:08]MH_I2C_Read... [10:16:08]Read from MH i2c: E2 17 00 [10:16:08]MH_I2C_Read... [10:16:08]Read from MH i2c: E2 17 00 D2 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 B9 [10:16:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [10:16:08]wFMCommunicate OK [10:16:08]CreateOFDProtocolMessage done [10:16:08]OFDSenderStorePacket 104127 [10:16:08]StoreOFDPacket docnum=104127 [10:16: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 F2 1A 07 01 DA E1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 32 00 00 00 F4 03 04 00 EB 52 75 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 BF 96 01 00 35 04 06 00 E1 91 B1 55 17 89 41 2F 0D FF 52 86 5D 2B [10:16:08]CheckFolder [10:16:08]dirname=/storage/ofd_packets [10:16:08]CheckFolder done [10:16:08]ProducePacketName [10:16:08]name=ofd_packets/00104127 [10:16:08]NVStorageSaveData ofd_packets/00104127 [10:16:08]File name is /storage/ofd_packets/00104127 [10:16:08]Write 301 bytes [10:16:08]NVStorageSaveData done [10:16:08]OFDSenderStorePacket done [10:16:08]KKMCreateOFDPacket done [10:16:08]NVStorageSaveData kkm_last_timestamp [10:16:08]File name is /storage/kkm_last_timestamp [10:16:08]Write 4 bytes [10:16:08]NVStorageSaveData done [10:16:08]ExternCall_PrintAddStr [10:16:08]wPrintStart [10:16:08]Write to MH i2c: 01 00 00 D3 1A ED [10:16:08]Write i2c OK [10:16:08]MH_I2C_Read... [10:16:08]Read from MH i2c: 01 [10:16:08]MH_I2C_Read... [10:16:08]Read from MH i2c: 01 07 00 [10:16:08]MH_I2C_Read... [10:16:08]Read from MH i2c: 01 07 00 D3 1A 00 00 00 00 00 FF 0F 02 [10:16:08]RasterBufferAndPrint [10:16:08]line Счет N : (1)673534 [10:16:08]line ИНН: 02508201610067 [10:16:08]line Контрольно-Кассовый Чек [10:16:08]line ПРОДАЖА [10:16:08]line ТРК (МРК, ГНК) : 42 [10:16:08]line Товар: 2710124130 [10:16:08]line Аи-92-К-5 [10:16:08]line 15.070 * 66.40 [10:16:08]line = 1000.65 [10:16:08]line НДС 12% НСП 1% [10:16:08]line > о реализуемом товаре [10:16:08]line ОКРУГЛЕНИЕ: -0.65 [10:16:08]line ИТОГО: 1000.00 [10:16:08]line Внесено: 1000.00 [10:16:08]line СДАЧА: 0.00 [10:16:08]line НСП 1% : 8.85 [10:16:08]line НДС 12% : 106.26 [10:16:08]line Наличными: 1000.00 [10:16:08]line Безнал.: 0.00 [10:16:08]line Место: АЗС № 120 "Партнер Нефть" [10:16:08]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [10:16:08]line СНО: Общий режим [10:16:08]line Чек 50 21.06.2024 10:16 [10:16:08]line Смена: 355 ФФД: 1.0 [10:16:08]line ЗНМ: 0300000164 [10:16:08]line РНМ: 0000000000092785 [10:16:08]line Версия ККМ: 001 [10:16:08]line ФМ: 0000000000875093 [10:16:08]line ФД: 104127 [10:16:08]line ФПД: 248015861651337 [10:16:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T101611&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104127&fm=248015861651337&tin=02508201610067®Number=0000000000092785&sum=100000 [10:16:09]OFD Sender: Processing packet 104127 [packets to send 17, broken 16] [10:16:09]ProducePacketName [10:16:09]name=ofd_packets/00104127 [10:16:09]OFD Sender: To server: pG, [10:16:09]CommunicateWithHost lk.salyk.kg:30040 [10:16:09]ConnectInit lk.salyk.kg [10:16:09]written 0, free lines is 4095 [10:16:09]Connected sock=10 [10:16: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 F2 1A 07 01 DA E1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 32 00 00 00 F4 03 04 00 EB 52 75 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 BF 96 01 00 35 04 06 00 E1 91 B1 55 17 89 41 2F 0D FF 52 86 5D 2B [10:16: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 E9 23 47 00 89 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 BF 96 01 00 F4 03 04 00 6D F9 74 66 B6 04 01 00 00 2C 40 56 0E 15 D9 25 1A [10:16:09]CommunicateWithHost err = 0 [10:16:09]CheckOFDResponse [10:16:09]1017 (14) - 77093643461234 [10:16:09]1041 (16) - 0000000000875093 [10:16:09]1040 (4) - 104127 [10:16:09]1012 (4) - 21.06.2024 03:54 [10:16:09]1206 (1) - 0 [10:16:09]OFD Sender: Remove packet 104127 [10:16:09]ProducePacketName [10:16:09]name=ofd_packets/00104127 [10:16:09]NVStorageDeleteData [10:16:09]Write to MH i2c: 01 00 00 FE 1A 18 [10:16:09]Write i2c OK [10:16:09]MH_I2C_Read... [10:16:09]Read from MH i2c: 01 [10:16:09]MH_I2C_Read... [10:16:09]Read from MH i2c: 01 07 00 [10:16:09]MH_I2C_Read... [10:16:09]Read from MH i2c: 01 07 00 FE 1A 00 00 00 00 00 DD 0C 08 [10:16:09]RasterBufferAndPrint [10:16:09]line [10:16:09]line [10:16:09]line [10:16:09]line [10:16:09]line [10:16:09]written 0, free lines is 3302 [10:16:09]MH_Cut [10:16:09]Write to MH i2c: D1 01 00 05 1B 01 F2 [10:16:09]Write i2c OK [10:16:09]MH_I2C_Read... [10:16:09]Read from MH i2c: D1 [10:16:09]MH_I2C_Read... [10:16:09]Read from MH i2c: D1 01 00 [10:16:09]MH_I2C_Read... [10:16:09]Read from MH i2c: D1 01 00 05 1B 00 F1 [10:16:09]Write to MH i2c: 01 00 00 06 1B 21 [10:16:09]Write i2c OK [10:16:09]MH_I2C_Read... [10:16:09]OFD Sender: No OFD packet to send [10:16:10]*** Cut start [10:16:10]*** Partial cut [10:16:10]*** CUTSNS_PIN = 1 [10:16:10]*** CUTSNS_PIN = 0 [10:16:10]*** Brake cut motor [10:16:10]Read from MH i2c: 01 [10:16:10]MH_I2C_Read... [10:16:10]*** Stop cut motor [10:16:10]*** Cut end [10:16:10]Read from MH i2c: 01 07 00 [10:16:10]MH_I2C_Read... [10:16:10]Read from MH i2c: 01 07 00 06 1B 00 00 00 00 00 FF 0F 36 [10:16:10]process_action close_receipt done [10:16:10]requested_data is exist [10:16:10]produce_requested_data [10:16:10]requested_item fm.sn is exist - process it [10:16:10]wFMCommunicate request_size=4 [10:16:10]MH_SAM_APDU [10:16:10]CAPDU: 80 11 00 00 [10:16:10]Write to MH i2c: E2 08 00 07 1B 80 11 00 00 00 00 00 00 9C [10:16:10]Write i2c OK [10:16:10]MH_I2C_Read... [10:16:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:16:10]Read from MH i2c: E2 [10:16:10]MH_I2C_Read... [10:16:10]Read from MH i2c: E2 17 00 [10:16:10]MH_I2C_Read... [10:16:10]Read from MH i2c: E2 17 00 07 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 EF [10:16:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [10:16:10]wFMCommunicate OK [10:16:10]requested_item fd.num is exist - process it [10:16:10]SAM_PROTO_GetFieldsCounters [10:16:10]wFMCommunicate request_size=4 [10:16:10]MH_SAM_APDU [10:16:10]CAPDU: 80 13 00 00 [10:16:10]Write to MH i2c: E2 08 00 08 1B 80 13 00 00 00 00 00 00 9F [10:16:10]Write i2c OK [10:16:10]MH_I2C_Read... [10:16:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:16:11]Read from MH i2c: E2 [10:16:11]MH_I2C_Read... [10:16:11]Read from MH i2c: E2 62 00 [10:16:11]MH_I2C_Read... [10:16:11]Read from MH i2c: E2 62 00 08 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 BF 96 01 00 0E 04 04 00 63 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 16 [10:16: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 BF 96 01 00 0E 04 04 00 63 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:16:11]wFMCommunicate OK [10:16:11]SAM_PROTO_GetFieldsCounters done [10:16:11]requested_item shift.num is exist - process it [10:16:11]requested_item shift.opened is exist - process it [10:16:11]req_shift_opened [10:16:11]FM_GetShiftState [10:16:11]SAM_PROTO_GetShiftState [10:16:11]wFMCommunicate request_size=4 [10:16:11]MH_SAM_APDU [10:16:11]CAPDU: 80 13 01 00 [10:16:11]Write to MH i2c: E2 08 00 09 1B 80 13 01 00 00 00 00 00 A1 [10:16:11]Write i2c OK [10:16:11]MH_I2C_Read... [10:16:11]Read from MH i2c: E2 [10:16:11]MH_I2C_Read... [10:16:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:16:11]Read from MH i2c: E2 0E 00 [10:16:11]MH_I2C_Read... [10:16:11]Read from MH i2c: E2 0E 00 09 1B 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 B4 [10:16:11]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [10:16:11]wFMCommunicate OK [10:16:11]SAM_PROTO_GetShiftState done [10:16:11]FM_GetShiftState done [10:16:11]req_shift_opened done [10:16:11]requested_item shift.open_date is exist - process it [10:16:11]req_shift_open_date [10:16:11]req_shift_open_date done [10:16:11]produce_requested_data done [10:16:11]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104127,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [10:16:11]process_action_free close_receipt [10:16:11]json_value_free [10:16:11]json_value_free done [10:16:11]process_json_proto returns [10:16:11]Send response to host [10:16:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104127,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [10:16:11]free response buf [10:16:11]execute_script done [10:16:11]execute_script returns [10:16:11]free content buf [10:16:11]Sock 9.Close socket [10:16:11]Sock 9.Thread stoped [10:16:15]OFD Sender: No OFD packet to send [10:16:20]OFD Sender: No OFD packet to send [10:16:25]OFD Sender: No OFD packet to send [10:16:30]OFD Sender: No OFD packet to send [10:16:32]accept exits with 7 [10:16:32]New connection [10:16:32]New thread 3066715492 created [10:16:32]Thread 3066858852 joined [10:16:32]Waiting for new connection... [10:16:32] Sock 7.Parse request [10:16:32]Sock 7.Check first char [10:16:32]Sock 7.First char is OK [10:16:32]request: POST /json_proto HTTP/1.0 [10:16:32]Method: POST [10:16:32]URL: /json_proto [10:16:32]Method is POST - this is cgi request [10:16:32]url: /json_proto [10:16:32]query_string will be loaded in cgi processing [10:16:32]execute_cgi json_proto POST (null) [10:16:32]execute_cgi path=json_proto method=POST [10:16:32]POST find Content-Length [10:16:32]Host: 172.17.38.133:8080 [10:16:32]Content-Length: 687 [10:16:32]Content-Type: application/json [10:16:32] [10:16:32]POST finish read [10:16:32]Found Content-Length = 687 [10:16:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673535", "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" ] } } [10:16:32]execute_script... [10:16: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)673535", "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" ] } } [10:16:32]POST & json_proto [10:16:32]process_json_proto [10:16:32]json parsed OK: [10:16:32]protocol is kg_v1.0 [10:16:32]action value=close_receipt [10:16:32]process_action close_receipt [10:16:32]cmd_close_receipt [10:16:32]MH_GetDate [10:16:32]Write to MH i2c: F0 00 00 0A 1B 14 [10:16:32]Write i2c OK [10:16:32]MH_I2C_Read... [10:16:32]Read from MH i2c: F0 [10:16:32]MH_I2C_Read... [10:16:32]Read from MH i2c: F0 09 00 [10:16:32]MH_I2C_Read... [10:16:32]Read from MH i2c: F0 09 00 0A 1B 00 04 53 75 66 BD 8F 7C 64 7B [10:16:32]GetLastDocTimeStamp 1718964971 [10:16:32]current date 1718964996 [10:16:32]FM_GetShiftState [10:16:32]SAM_PROTO_GetShiftState [10:16:32]wFMCommunicate request_size=4 [10:16:32]MH_SAM_APDU [10:16:32]CAPDU: 80 13 01 00 [10:16:32]Write to MH i2c: E2 08 00 0B 1B 80 13 01 00 00 00 00 00 A3 [10:16:32]Write i2c OK [10:16:32]MH_I2C_Read... [10:16:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:16:32]Read from MH i2c: E2 [10:16:32]MH_I2C_Read... [10:16:32]Read from MH i2c: E2 0E 00 [10:16:32]MH_I2C_Read... [10:16:32]Read from MH i2c: E2 0E 00 0B 1B 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 B6 [10:16:32]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [10:16:32]wFMCommunicate OK [10:16:32]SAM_PROTO_GetShiftState done [10:16:32]FM_GetShiftState done [10:16:32]opened in 1718929509 [10:16:32]opened+sec_in_day 1719015909 [10:16:32]quantity*price = 100018 [10:16:32]sum+1 = 100020 [10:16:32]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 СНО: Общий режим Чек 51 21.06.2024 10:16 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104128 ФПД: 272312043064506 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T101636&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104128&fm=272312043064506&tin=02508201610067®Number=0000000000092785&sum=100000 [10:16:33]StoreToDocumentArchive [10:16:33]shift 355 fd 104128 [10:16:33]save to /storage/0355/doc_00104128 [10:16:33]save last doc name /storage/0355/doc_00104128 to /storage/kkm_last_doc_name [10:16:33]save OK [10:16:33]Clear old archive folders... [10:16:33]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:16:33]tlvbuf is 01174B70 [10:16:33]SAM_PROTO_ClearQueue [10:16:33]wFMCommunicate request_size=4 [10:16:33]MH_SAM_APDU [10:16:33]CAPDU: 80 09 00 00 [10:16:33]Write to MH i2c: E2 08 00 18 1B 80 09 00 00 00 00 00 00 A5 [10:16:33]Write i2c OK [10:16:33]MH_I2C_Read... [10:16:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:16:33]Read from MH i2c: E2 [10:16:33]MH_I2C_Read... [10:16:33]Read from MH i2c: E2 03 00 [10:16:33]MH_I2C_Read... [10:16:33]Read from MH i2c: E2 03 00 18 1B 00 90 00 A7 [10:16:33]RAPDU: 90 00 [10:16:33]wFMCommunicate OK [10:16:33]SAM_PROTO_ClearQueue done [10:16:33]KKMCreateOFDPacket [10:16:33]OFDProtocolAddRootSTLVToBuf [10:16:33]FM_MakeSignedData [10:16:33]FM_MakeSignedData [10:16:33]SAM_PROTO_SignData [10:16:33]wFMCommunicate request_size=4 [10:16:33]MH_SAM_APDU [10:16:33]CAPDU: 80 0D 01 02 [10:16:33]Write to MH i2c: E2 08 00 19 1B 80 0D 01 02 00 00 00 00 AD [10:16:33]Write i2c OK [10:16:33]MH_I2C_Read... [10:16:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:16:33]Read from MH i2c: E2 [10:16:33]MH_I2C_Read... [10:16:33]Read from MH i2c: E2 03 00 [10:16:33]MH_I2C_Read... [10:16:33]Read from MH i2c: E2 03 00 19 1B 00 90 00 A8 [10:16:33]RAPDU: 90 00 [10:16:33]wFMCommunicate OK [10:16:33]wFMCommunicate request_size=255 [10:16:33]MH_SAM_APDU [10:16:33]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 33 00 00 00 F4 03 04 00 04 53 75 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 C0 96 01 00 35 04 06 00 [10:16:33]Write to MH i2c: E2 02 01 1A 1B 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 33 00 00 00 F4 03 04 00 04 53 75 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 C0 96 01 00 35 04 06 00 00 00 21 [10:16:33]Write i2c OK [10:16:33]MH_I2C_Read... [10:16:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:16:33]Read from MH i2c: E2 [10:16:33]MH_I2C_Read... [10:16:33]Read from MH i2c: E2 03 00 [10:16:33]MH_I2C_Read... [10:16:33]Read from MH i2c: E2 03 00 1A 1B 00 90 00 A9 [10:16:33]RAPDU: 90 00 [10:16:33]wFMCommunicate OK [10:16:33]wFMCommunicate request_size=11 [10:16:33]MH_SAM_APDU [10:16:33]CAPDU: 80 0D 02 02 06 F7 AA 96 98 4C BA [10:16:33]Write to MH i2c: E2 0E 00 1B 1B 80 0D 02 02 06 00 F7 AA 96 98 4C BA 00 00 91 [10:16:33]Write i2c OK [10:16:33]MH_I2C_Read... [10:16:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:16:33]Read from MH i2c: E2 [10:16:33]MH_I2C_Read... [10:16:33]Read from MH i2c: E2 03 00 [10:16:33]MH_I2C_Read... [10:16:33]Read from MH i2c: E2 03 00 1B 1B 00 90 00 AA [10:16:33]RAPDU: 90 00 [10:16:33]wFMCommunicate OK [10:16:33]wFMCommunicate request_size=4 [10:16:33]MH_SAM_APDU [10:16:33]CAPDU: 80 0D 03 02 [10:16:33]Write to MH i2c: E2 08 00 1C 1B 80 0D 03 02 00 00 00 00 B2 [10:16:33]Write i2c OK [10:16:33]MH_I2C_Read... [10:16:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:16:33]Read from MH i2c: E2 [10:16:33]MH_I2C_Read... [10:16:33]Read from MH i2c: E2 0B 00 [10:16:33]MH_I2C_Read... [10:16:33]Read from MH i2c: E2 0B 00 1C 1B 00 F5 E0 96 EB 06 E2 5E E6 90 00 35 [10:16:33]RAPDU: F5 E0 96 EB 06 E2 5E E6 90 00 [10:16:33]wFMCommunicate OK [10:16:33]SAM_PROTO_SignData done [10:16:33]FM_MakeSignedData done [10:16:33]CreateOFDProtocolMessage [10:16:33]wFMCommunicate request_size=4 [10:16:33]MH_SAM_APDU [10:16:33]CAPDU: 80 11 00 00 [10:16:33]Write to MH i2c: E2 08 00 1D 1B 80 11 00 00 00 00 00 00 B2 [10:16:33]Write i2c OK [10:16:33]MH_I2C_Read... [10:16:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:16:33]Read from MH i2c: E2 [10:16:33]MH_I2C_Read... [10:16:33]Read from MH i2c: E2 17 00 [10:16:33]MH_I2C_Read... [10:16:33]Read from MH i2c: E2 17 00 1D 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 05 [10:16: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:16:33]wFMCommunicate OK [10:16:33]CreateOFDProtocolMessage done [10:16:33]OFDSenderStorePacket 104128 [10:16:33]StoreOFDPacket docnum=104128 [10:16: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 10 01 00 00 21 3D 08 01 D4 9D 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 33 00 00 00 F4 03 04 00 04 53 75 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 C0 96 01 00 35 04 06 00 F7 AA 96 98 4C BA F5 E0 96 EB 06 E2 5E E6 [10:16:33]CheckFolder [10:16:33]dirname=/storage/ofd_packets [10:16:33]CheckFolder done [10:16:33]ProducePacketName [10:16:33]name=ofd_packets/00104128 [10:16:33]NVStorageSaveData ofd_packets/00104128 [10:16:33]File name is /storage/ofd_packets/00104128 [10:16:33]Write 302 bytes [10:16:33]NVStorageSaveData done [10:16:33]OFDSenderStorePacket done [10:16:33]KKMCreateOFDPacket done [10:16:33]NVStorageSaveData kkm_last_timestamp [10:16:33]File name is /storage/kkm_last_timestamp [10:16:33]Write 4 bytes [10:16:33]NVStorageSaveData done [10:16:33]ExternCall_PrintAddStr [10:16:33]wPrintStart [10:16:33]Write to MH i2c: 01 00 00 1E 1B 39 [10:16:33]Write i2c OK [10:16:33]MH_I2C_Read... [10:16:33]Read from MH i2c: 01 [10:16:33]MH_I2C_Read... [10:16:33]Read from MH i2c: 01 07 00 [10:16:33]MH_I2C_Read... [10:16:33]Read from MH i2c: 01 07 00 1E 1B 00 00 00 00 00 FF 0F 4E [10:16:33]RasterBufferAndPrint [10:16:33]line Счет N : (1)673535 [10:16:33]line ИНН: 02508201610067 [10:16:33]line Контрольно-Кассовый Чек [10:16:33]line ПРОДАЖА [10:16:33]line ТРК (МРК, ГНК) : 21 [10:16:33]line Товар: 2710194210 [10:16:33]line ДТ(л)-К-5 [10:16:33]line 13.720 * 72.90 [10:16:33]line = 1000.19 [10:16:33]line НДС 12% НСП 1% [10:16:33]line > о реализуемом товаре [10:16:33]line ОКРУГЛЕНИЕ: -0.19 [10:16:33]line ИТОГО: 1000.00 [10:16:33]line Внесено: 1000.00 [10:16:33]line СДАЧА: 0.00 [10:16:33]line НСП 1% : 8.85 [10:16:33]line НДС 12% : 106.21 [10:16:33]line Наличными: 1000.00 [10:16:33]line Безнал.: 0.00 [10:16:33]line Место: АЗС № 120 "Партнер Нефть" [10:16:33]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [10:16:33]line СНО: Общий режим [10:16:33]line Чек 51 21.06.2024 10:16 [10:16:33]line Смена: 355 ФФД: 1.0 [10:16:33]line ЗНМ: 0300000164 [10:16:33]line РНМ: 0000000000092785 [10:16:33]line Версия ККМ: 001 [10:16:33]line ФМ: 0000000000875093 [10:16:33]line ФД: 104128 [10:16:33]line ФПД: 272312043064506 [10:16:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T101636&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104128&fm=272312043064506&tin=02508201610067®Number=0000000000092785&sum=100000 [10:16:34]OFD Sender: Processing packet 104128 [packets to send 17, broken 16] [10:16:34]ProducePacketName [10:16:34]name=ofd_packets/00104128 [10:16:34]OFD Sender: To server: pG, [10:16:34]CommunicateWithHost lk.salyk.kg:30040 [10:16:34]ConnectInit lk.salyk.kg [10:16:34]written 0, free lines is 4095 [10:16:34]Connected sock=11 [10:16: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 10 01 00 00 21 3D 08 01 D4 9D 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 33 00 00 00 F4 03 04 00 04 53 75 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 C0 96 01 00 35 04 06 00 F7 AA 96 98 4C BA F5 E0 96 EB 06 E2 5E E6 [10:16:34]Write to MH i2c: 01 00 00 49 1B 64 [10:16:34]Write i2c OK [10:16:34]MH_I2C_Read... [10:16:34]Read from MH i2c: 01 [10:16:34]MH_I2C_Read... [10:16:34]Read from MH i2c: 01 07 00 [10:16:34]MH_I2C_Read... [10:16:34]Read from MH i2c: 01 07 00 49 1B 00 00 00 00 00 E1 0C 58 [10:16:34]RasterBufferAndPrint [10:16:34]line [10:16:34]line [10:16:34]line [10:16:34]line [10:16:34]line [10:16:34]written 0, free lines is 3302 [10:16:34]MH_Cut [10:16:34]Write to MH i2c: D1 01 00 50 1B 01 3D [10:16:34]Write i2c OK [10:16:34]MH_I2C_Read... [10:16:34]Read from MH i2c: D1 [10:16:34]MH_I2C_Read... [10:16:34]Read from MH i2c: D1 01 00 [10:16:34]MH_I2C_Read... [10:16:34]Read from MH i2c: D1 01 00 50 1B 00 3C [10:16:34]Write to MH i2c: 01 00 00 51 1B 6C [10:16:34]Write i2c OK [10:16:34]MH_I2C_Read... [10:16: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 22 E7 47 00 B7 85 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 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 96 01 00 F4 03 04 00 87 F9 74 66 B6 04 01 00 00 B3 5A 4A 72 E8 B5 BA 11 [10:16:34]CommunicateWithHost err = 0 [10:16:34]CheckOFDResponse [10:16:34]1017 (14) - 77093643461234 [10:16:34]1041 (16) - 0000000000875093 [10:16:34]1040 (4) - 104128 [10:16:34]1012 (4) - 21.06.2024 03:54 [10:16:34]1206 (1) - 0 [10:16:34]OFD Sender: Remove packet 104128 [10:16:34]ProducePacketName [10:16:34]name=ofd_packets/00104128 [10:16:34]NVStorageDeleteData [10:16:35]OFD Sender: No OFD packet to send [10:16:35]*** Cut start [10:16:35]*** Partial cut [10:16:35]*** CUTSNS_PIN = 1 [10:16:35]*** CUTSNS_PIN = 0 [10:16:35]*** Brake cut motor [10:16:36]Read from MH i2c: 01 [10:16:36]MH_I2C_Read... [10:16:36]*** Stop cut motor [10:16:36]*** Cut end [10:16:36]Read from MH i2c: 01 07 00 [10:16:36]MH_I2C_Read... [10:16:36]Read from MH i2c: 01 07 00 51 1B 00 00 00 00 00 FF 0F 81 [10:16:36]process_action close_receipt done [10:16:36]requested_data is exist [10:16:36]produce_requested_data [10:16:36]requested_item fm.sn is exist - process it [10:16:36]wFMCommunicate request_size=4 [10:16:36]MH_SAM_APDU [10:16:36]CAPDU: 80 11 00 00 [10:16:36]Write to MH i2c: E2 08 00 52 1B 80 11 00 00 00 00 00 00 E7 [10:16:36]Write i2c OK [10:16:36]MH_I2C_Read... [10:16:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:16:36]Read from MH i2c: E2 [10:16:36]MH_I2C_Read... [10:16:36]Read from MH i2c: E2 17 00 [10:16:36]MH_I2C_Read... [10:16:36]Read from MH i2c: E2 17 00 52 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 3A [10:16: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:16:36]wFMCommunicate OK [10:16:36]requested_item fd.num is exist - process it [10:16:36]SAM_PROTO_GetFieldsCounters [10:16:36]wFMCommunicate request_size=4 [10:16:36]MH_SAM_APDU [10:16:36]CAPDU: 80 13 00 00 [10:16:36]Write to MH i2c: E2 08 00 53 1B 80 13 00 00 00 00 00 00 EA [10:16:36]Write i2c OK [10:16:36]MH_I2C_Read... [10:16:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:16:36]Read from MH i2c: E2 [10:16:36]MH_I2C_Read... [10:16:36]Read from MH i2c: E2 62 00 [10:16:36]MH_I2C_Read... [10:16:36]Read from MH i2c: E2 62 00 53 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 C0 96 01 00 0E 04 04 00 63 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 65 [10:16: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 C0 96 01 00 0E 04 04 00 63 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:16:36]wFMCommunicate OK [10:16:36]SAM_PROTO_GetFieldsCounters done [10:16:36]requested_item shift.num is exist - process it [10:16:36]requested_item shift.opened is exist - process it [10:16:36]req_shift_opened [10:16:36]FM_GetShiftState [10:16:36]SAM_PROTO_GetShiftState [10:16:36]wFMCommunicate request_size=4 [10:16:36]MH_SAM_APDU [10:16:36]CAPDU: 80 13 01 00 [10:16:36]Write to MH i2c: E2 08 00 54 1B 80 13 01 00 00 00 00 00 EC [10:16:36]Write i2c OK [10:16:36]MH_I2C_Read... [10:16:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:16:36]Read from MH i2c: E2 [10:16:36]MH_I2C_Read... [10:16:36]Read from MH i2c: E2 0E 00 [10:16:36]MH_I2C_Read... [10:16:36]Read from MH i2c: E2 0E 00 54 1B 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 FF [10:16:36]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [10:16:36]wFMCommunicate OK [10:16:36]SAM_PROTO_GetShiftState done [10:16:36]FM_GetShiftState done [10:16:36]req_shift_opened done [10:16:36]requested_item shift.open_date is exist - process it [10:16:36]req_shift_open_date [10:16:36]req_shift_open_date done [10:16:36]produce_requested_data done [10:16:36]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104128,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [10:16:36]process_action_free close_receipt [10:16:36]json_value_free [10:16:36]json_value_free done [10:16:36]process_json_proto returns [10:16:36]Send response to host [10:16:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104128,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [10:16:36]free response buf [10:16:36]execute_script done [10:16:36]execute_script returns [10:16:36]free content buf [10:16:36]Sock 7.Close socket [10:16:36]Sock 7.Thread stoped [10:16:40]OFD Sender: No OFD packet to send [10:16:45]OFD Sender: No OFD packet to send [10:16:50]OFD Sender: No OFD packet to send [10:16:55]OFD Sender: No OFD packet to send [10:17:00]OFD Sender: No OFD packet to send [10:17:05]OFD Sender: No OFD packet to send [10:17:10]OFD Sender: No OFD packet to send [10:17:15]OFD Sender: No OFD packet to send [10:17:20]OFD Sender: No OFD packet to send [10:17:25]OFD Sender: No OFD packet to send [10:17:30]OFD Sender: No OFD packet to send [10:17:35]OFD Sender: No OFD packet to send [10:17:40]OFD Sender: No OFD packet to send [10:17:45]OFD Sender: No OFD packet to send [10:17:50]OFD Sender: No OFD packet to send [10:17:55]OFD Sender: No OFD packet to send [10:18:00]OFD Sender: No OFD packet to send [10:18:05]OFD Sender: No OFD packet to send [10:18:10]OFD Sender: No OFD packet to send [10:18:15]OFD Sender: No OFD packet to send [10:18:20]OFD Sender: No OFD packet to send [10:18:25]OFD Sender: No OFD packet to send [10:18:30]OFD Sender: No OFD packet to send [10:18:35]OFD Sender: No OFD packet to send [10:18:40]OFD Sender: No OFD packet to send [10:18:45]OFD Sender: No OFD packet to send [10:18:50]OFD Sender: No OFD packet to send [10:18:55]OFD Sender: No OFD packet to send [10:19:00]OFD Sender: No OFD packet to send [10:19:05]OFD Sender: No OFD packet to send [10:19:10]OFD Sender: No OFD packet to send [10:19:15]OFD Sender: No OFD packet to send [10:19:20]OFD Sender: No OFD packet to send [10:19:25]OFD Sender: No OFD packet to send [10:19:30]OFD Sender: No OFD packet to send [10:19:35]OFD Sender: No OFD packet to send [10:19:40]OFD Sender: No OFD packet to send [10:19:45]OFD Sender: No OFD packet to send [10:19:50]OFD Sender: No OFD packet to send [10:19:55]OFD Sender: No OFD packet to send [10:20:00]OFD Sender: No OFD packet to send [10:20:05]OFD Sender: No OFD packet to send [10:20:10]OFD Sender: No OFD packet to send [10:20:15]OFD Sender: No OFD packet to send [10:20:20]OFD Sender: No OFD packet to send [10:20:25]OFD Sender: No OFD packet to send [10:20:30]OFD Sender: No OFD packet to send [10:20:35]OFD Sender: No OFD packet to send [10:20:40]OFD Sender: No OFD packet to send [10:20:45]OFD Sender: No OFD packet to send [10:20:50]OFD Sender: No OFD packet to send [10:20:55]OFD Sender: No OFD packet to send [10:21:00]OFD Sender: No OFD packet to send [10:21:05]OFD Sender: No OFD packet to send [10:21:10]OFD Sender: No OFD packet to send [10:21:15]OFD Sender: No OFD packet to send [10:21:20]OFD Sender: No OFD packet to send [10:21:25]OFD Sender: No OFD packet to send [10:21:30]OFD Sender: No OFD packet to send [10:21:35]OFD Sender: No OFD packet to send [10:21:40]OFD Sender: No OFD packet to send [10:21:45]OFD Sender: No OFD packet to send [10:21:50]OFD Sender: No OFD packet to send [10:21:55]OFD Sender: No OFD packet to send [10:22:00]OFD Sender: No OFD packet to send [10:22:05]OFD Sender: No OFD packet to send [10:22:10]OFD Sender: No OFD packet to send [10:22:15]OFD Sender: No OFD packet to send [10:22:20]OFD Sender: No OFD packet to send [10:22:25]OFD Sender: No OFD packet to send [10:22:30]OFD Sender: No OFD packet to send [10:22:35]OFD Sender: No OFD packet to send [10:22:40]accept exits with 9 [10:22:40]New connection [10:22:40]New thread 3066858852 created [10:22:40]Thread 3066715492 joined [10:22:40]Waiting for new connection... [10:22:40] Sock 9.Parse request [10:22:40]Sock 9.Check first char [10:22:40]Sock 9.First char is OK [10:22:40]request: POST /json_proto HTTP/1.0 [10:22:40]Method: POST [10:22:40]URL: /json_proto [10:22:40]Method is POST - this is cgi request [10:22:40]url: /json_proto [10:22:40]query_string will be loaded in cgi processing [10:22:40]execute_cgi json_proto POST (null) [10:22:40]execute_cgi path=json_proto method=POST [10:22:40]POST find Content-Length [10:22:40]Host: 172.17.38.133:8080 [10:22:40]Content-Length: 1195 [10:22:40]Content-Type: application/json [10:22:40] [10:22:40]POST finish read [10:22:40]Found Content-Length = 1195 [10:22:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 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)673536\u000A21.06.2024 09:59\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\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A32172\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:22:40]execute_script... [10:22:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 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)673536\u000A21.06.2024 09:59\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\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A32172\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:22:40]POST & json_proto [10:22:40]process_json_proto [10:22:40]json parsed OK: [10:22:40]protocol is kg_v1.0 [10:22:40]action value=print_text [10:22:40]process_action print_text [10:22:40]cmd_print_text [10:22:40]ExternCall_PrintAddStr [10:22:40]wPrintStart [10:22:40]Write to MH i2c: 01 00 00 55 1B 70 [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 55 1B 00 00 00 00 00 FF 0F 85 [10:22:40]RasterBufferAndPrint [10:22:40]line *****ТОВАРНЫЙ ЧЕК***** [10:22:40]line АЗС 120 [10:22:40]line Партнер нефть [10:22:40]line 02508201610067 [10:22:40]line Кассир : Асанбаев Н. [10:22:40]line Счет N : (1)673536 [10:22:40]line 21.06.2024 09:59 [10:22:40]line ПРОДАЖА [10:22:40]line ТРК (МРК, ГНК): 31 [10:22:40]line Вид ГСМ : 2710124500 [10:22:40]line Аи-95-К-5 [10:22:40]line 50.000 x 73.90 [10:22:40]line ИТОГ: 3695.00 [10:22:40]line Тип оплаты: Талоны: Топливная Карта [10:22:40]line 32172 [10:22:40]line ______________________ [10:22:40]line (подпись) [10:22:40]written 0, free lines is 4095 [10:22:40]Write to MH i2c: 01 00 00 69 1B 84 [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 69 1B 00 00 00 00 00 10 0E A9 [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 3601 [10:22:40]MH_Cut [10:22:40]Write to MH i2c: D1 01 00 70 1B 01 5D [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 70 1B 00 5C [10:22:40]Write to MH i2c: 01 00 00 71 1B 8C [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 71 1B 00 00 00 00 00 FF 0F A1 [10:22:41]process_action print_text 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 72 1B 80 11 00 00 00 00 00 00 07 [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 72 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 5A [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 73 1B 80 13 00 00 00 00 00 00 0A [10:22:41]Write i2c OK [10:22:41]MH_I2C_Read... [10:22:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:22:41]Read from MH i2c: E2 [10:22:41]MH_I2C_Read... [10:22:41]Read from MH i2c: E2 62 00 [10:22:41]MH_I2C_Read... [10:22:41]Read from MH i2c: E2 62 00 73 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 C0 96 01 00 0E 04 04 00 63 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 85 [10:22:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 96 01 00 0E 04 04 00 63 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:22:41]wFMCommunicate OK [10:22:41]SAM_PROTO_GetFieldsCounters done [10:22:41]requested_item shift.num is exist - process it [10:22:41]requested_item shift.opened is exist - process it [10:22:41]req_shift_opened [10:22:41]FM_GetShiftState [10:22:41]SAM_PROTO_GetShiftState [10:22:41]wFMCommunicate request_size=4 [10:22:41]MH_SAM_APDU [10:22:41]CAPDU: 80 13 01 00 [10:22:41]Write to MH i2c: E2 08 00 74 1B 80 13 01 00 00 00 00 00 0C [10:22:41]Write i2c OK [10:22:41]MH_I2C_Read... [10:22:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:22:41]Read from MH i2c: E2 [10:22:41]MH_I2C_Read... [10:22:41]Read from MH i2c: E2 0E 00 [10:22:41]MH_I2C_Read... [10:22:41]Read from MH i2c: E2 0E 00 74 1B 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 1F [10:22:41]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [10:22:41]wFMCommunicate OK [10:22:41]SAM_PROTO_GetShiftState done [10:22:41]FM_GetShiftState done [10:22:41]req_shift_opened done [10:22:41]requested_item shift.open_date is exist - process it [10:22:41]req_shift_open_date [10:22:41]req_shift_open_date done [10:22:41]produce_requested_data done [10:22:41]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104128,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [10:22:41]process_action_free print_text [10:22:41]json_value_free [10:22:41]json_value_free done [10:22:41]process_json_proto returns [10:22:41]Send response to host [10:22:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104128,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [10:22:41]free response buf [10:22:41]execute_script done [10:22:41]execute_script returns [10:22:41]free content buf [10:22:41]Sock 9.Close socket [10:22:41]Sock 9.Thread stoped [10:22:45]OFD Sender: No OFD packet to send [10:22:50]OFD Sender: No OFD packet to send [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:42]accept exits with 7 [10:23:42]New connection [10:23:42]New thread 3066715492 created [10:23:42]Thread 3066858852 joined [10:23:42]Waiting for new connection... [10:23:42] Sock 7.Parse request [10:23:42]Sock 7.Check first char [10:23:42]Sock 7.First char is OK [10:23:42]request: POST /json_proto HTTP/1.0 [10:23:42]Method: POST [10:23:42]URL: /json_proto [10:23:42]Method is POST - this is cgi request [10:23:42]url: /json_proto [10:23:42]query_string will be loaded in cgi processing [10:23:42]execute_cgi json_proto POST (null) [10:23:42]execute_cgi path=json_proto method=POST [10:23:42]POST find Content-Length [10:23:42]Host: 172.17.38.133:8080 [10:23:42]Content-Length: 682 [10:23:42]Content-Type: application/json [10:23:42] [10:23:42]POST finish read [10:23:42]Found Content-Length = 682 [10:23:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673537", "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" ] } } [10:23:42]execute_script... [10:23: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)673537", "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" ] } } [10:23:42]POST & json_proto [10:23:42]process_json_proto [10:23:42]json parsed OK: [10:23:42]protocol is kg_v1.0 [10:23:42]action value=close_receipt [10:23:42]process_action close_receipt [10:23:42]cmd_close_receipt [10:23:42]MH_GetDate [10:23:42]Write to MH i2c: F0 00 00 75 1B 7F [10:23:42]Write i2c OK [10:23:42]MH_I2C_Read... [10:23:42]Read from MH i2c: F0 [10:23:42]MH_I2C_Read... [10:23:42]Read from MH i2c: F0 09 00 [10:23:42]MH_I2C_Read... [10:23:42]Read from MH i2c: F0 09 00 75 1B 00 B2 54 75 66 BD 8F 7C 64 95 [10:23:42]GetLastDocTimeStamp 1718964996 [10:23:42]current date 1718965426 [10:23:42]FM_GetShiftState [10:23:42]SAM_PROTO_GetShiftState [10:23:42]wFMCommunicate request_size=4 [10:23:42]MH_SAM_APDU [10:23:42]CAPDU: 80 13 01 00 [10:23:42]Write to MH i2c: E2 08 00 76 1B 80 13 01 00 00 00 00 00 0E [10:23:42]Write i2c OK [10:23:42]MH_I2C_Read... [10:23:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:23:42]Read from MH i2c: E2 [10:23:42]MH_I2C_Read... [10:23:42]Read from MH i2c: E2 0E 00 [10:23:42]MH_I2C_Read... [10:23:42]Read from MH i2c: E2 0E 00 76 1B 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 21 [10:23:42]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [10:23:42]wFMCommunicate OK [10:23:42]SAM_PROTO_GetShiftState done [10:23:42]FM_GetShiftState done [10:23:42]opened in 1718929509 [10:23:42]opened+sec_in_day 1719015909 [10:23:42]quantity*price = 100064 [10:23:42]sum+1 = 100066 [10:23:42]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 СНО: Общий режим Чек 52 21.06.2024 10:23 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104129 ФПД: 74800062525934 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T102346&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104129&fm=74800062525934&tin=02508201610067®Number=0000000000092785&sum=100000 [10:23:43]StoreToDocumentArchive [10:23:43]shift 355 fd 104129 [10:23:43]save to /storage/0355/doc_00104129 [10:23:43]save last doc name /storage/0355/doc_00104129 to /storage/kkm_last_doc_name [10:23:43]save OK [10:23:43]Clear old archive folders... [10:23:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:23:43]tlvbuf is 011411E0 [10:23:43]SAM_PROTO_ClearQueue [10:23:43]wFMCommunicate request_size=4 [10:23:43]MH_SAM_APDU [10:23:43]CAPDU: 80 09 00 00 [10:23:43]Write to MH i2c: E2 08 00 83 1B 80 09 00 00 00 00 00 00 10 [10:23:43]Write i2c OK [10:23:43]MH_I2C_Read... [10:23:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:23:43]Read from MH i2c: E2 [10:23:43]MH_I2C_Read... [10:23:43]Read from MH i2c: E2 03 00 [10:23:43]MH_I2C_Read... [10:23:43]Read from MH i2c: E2 03 00 83 1B 00 90 00 12 [10:23:43]RAPDU: 90 00 [10:23:43]wFMCommunicate OK [10:23:43]SAM_PROTO_ClearQueue done [10:23:43]KKMCreateOFDPacket [10:23:43]OFDProtocolAddRootSTLVToBuf [10:23:43]FM_MakeSignedData [10:23:43]FM_MakeSignedData [10:23:43]SAM_PROTO_SignData [10:23:43]wFMCommunicate request_size=4 [10:23:43]MH_SAM_APDU [10:23:43]CAPDU: 80 0D 01 02 [10:23:43]Write to MH i2c: E2 08 00 84 1B 80 0D 01 02 00 00 00 00 18 [10:23:43]Write i2c OK [10:23:43]MH_I2C_Read... [10:23:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:23:43]Read from MH i2c: E2 [10:23:43]MH_I2C_Read... [10:23:43]Read from MH i2c: E2 03 00 [10:23:43]MH_I2C_Read... [10:23:43]Read from MH i2c: E2 03 00 84 1B 00 90 00 13 [10:23:43]RAPDU: 90 00 [10:23:43]wFMCommunicate OK [10:23:43]wFMCommunicate request_size=255 [10:23:43]MH_SAM_APDU [10:23:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 34 00 00 00 F4 03 04 00 B2 54 75 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 C1 96 01 00 35 04 06 00 44 [10:23:43]Write to MH i2c: E2 02 01 85 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 34 00 00 00 F4 03 04 00 B2 54 75 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 C1 96 01 00 35 04 06 00 44 00 00 37 [10:23:44]Write i2c OK [10:23:44]MH_I2C_Read... [10:23:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:23:44]Read from MH i2c: E2 [10:23:44]MH_I2C_Read... [10:23:44]Read from MH i2c: E2 03 00 [10:23:44]MH_I2C_Read... [10:23:44]Read from MH i2c: E2 03 00 85 1B 00 90 00 14 [10:23:44]RAPDU: 90 00 [10:23:44]wFMCommunicate OK [10:23:44]wFMCommunicate request_size=10 [10:23:44]MH_SAM_APDU [10:23:44]CAPDU: 80 0D 02 02 05 07 BF 27 F1 EE [10:23:44]Write to MH i2c: E2 0D 00 86 1B 80 0D 02 02 05 00 07 BF 27 F1 EE 00 00 F1 [10:23:44]Write i2c OK [10:23:44]MH_I2C_Read... [10:23:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:23:44]Read from MH i2c: E2 [10:23:44]MH_I2C_Read... [10:23:44]Read from MH i2c: E2 03 00 [10:23:44]MH_I2C_Read... [10:23:44]Read from MH i2c: E2 03 00 86 1B 00 90 00 15 [10:23:44]RAPDU: 90 00 [10:23:44]wFMCommunicate OK [10:23:44]wFMCommunicate request_size=4 [10:23:44]MH_SAM_APDU [10:23:44]CAPDU: 80 0D 03 02 [10:23:44]Write to MH i2c: E2 08 00 87 1B 80 0D 03 02 00 00 00 00 1D [10:23:44]Write i2c OK [10:23:44]MH_I2C_Read... [10:23:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:23:44]Read from MH i2c: E2 [10:23:44]MH_I2C_Read... [10:23:44]Read from MH i2c: E2 0B 00 [10:23:44]MH_I2C_Read... [10:23:44]Read from MH i2c: E2 0B 00 87 1B 00 16 05 11 6E 8A 5F 09 48 90 00 F2 [10:23:44]RAPDU: 16 05 11 6E 8A 5F 09 48 90 00 [10:23:44]wFMCommunicate OK [10:23:44]SAM_PROTO_SignData done [10:23:44]FM_MakeSignedData done [10:23:44]CreateOFDProtocolMessage [10:23:44]wFMCommunicate request_size=4 [10:23:44]MH_SAM_APDU [10:23:44]CAPDU: 80 11 00 00 [10:23:44]Write to MH i2c: E2 08 00 88 1B 80 11 00 00 00 00 00 00 1D [10:23:44]Write i2c OK [10:23:44]MH_I2C_Read... [10:23:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:23:44]Read from MH i2c: E2 [10:23:44]MH_I2C_Read... [10:23:44]Read from MH i2c: E2 17 00 [10:23:44]MH_I2C_Read... [10:23:44]Read from MH i2c: E2 17 00 88 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 70 [10:23: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:23:44]wFMCommunicate OK [10:23:44]CreateOFDProtocolMessage done [10:23:44]OFDSenderStorePacket 104129 [10:23:44]StoreOFDPacket docnum=104129 [10:23: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 CF 33 07 01 02 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 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 34 00 00 00 F4 03 04 00 B2 54 75 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 C1 96 01 00 35 04 06 00 44 07 BF 27 F1 EE 16 05 11 6E 8A 5F 09 48 [10:23:44]CheckFolder [10:23:44]dirname=/storage/ofd_packets [10:23:44]CheckFolder done [10:23:44]ProducePacketName [10:23:44]name=ofd_packets/00104129 [10:23:44]NVStorageSaveData ofd_packets/00104129 [10:23:44]File name is /storage/ofd_packets/00104129 [10:23:44]Write 301 bytes [10:23:44]NVStorageSaveData done [10:23:44]OFDSenderStorePacket done [10:23:44]KKMCreateOFDPacket done [10:23:44]NVStorageSaveData kkm_last_timestamp [10:23:44]File name is /storage/kkm_last_timestamp [10:23:44]Write 4 bytes [10:23:44]NVStorageSaveData done [10:23:44]ExternCall_PrintAddStr [10:23:44]wPrintStart [10:23:44]Write to MH i2c: 01 00 00 89 1B A4 [10:23:44]Write i2c OK [10:23:44]MH_I2C_Read... [10:23:44]Read from MH i2c: 01 [10:23:44]MH_I2C_Read... [10:23:44]Read from MH i2c: 01 07 00 [10:23:44]MH_I2C_Read... [10:23:44]Read from MH i2c: 01 07 00 89 1B 00 00 00 00 00 FF 0F B9 [10:23:44]RasterBufferAndPrint [10:23:44]line Счет N : (1)673537 [10:23:44]line ИНН: 02508201610067 [10:23:44]line Контрольно-Кассовый Чек [10:23:44]line ПРОДАЖА [10:23:44]line ТРК (МРК, ГНК) : 42 [10:23:44]line Товар: 2710124130 [10:23:44]line Аи-92-К-5 [10:23:44]line 15.070 * 66.40 [10:23:44]line = 1000.65 [10:23:44]line НДС 12% НСП 1% [10:23:44]line > о реализуемом товаре [10:23:44]line ОКРУГЛЕНИЕ: -0.65 [10:23:44]line ИТОГО: 1000.00 [10:23:44]line Внесено: 1000.00 [10:23:44]line СДАЧА: 0.00 [10:23:44]line НСП 1% : 8.85 [10:23:44]line НДС 12% : 106.26 [10:23:44]line Наличными: 1000.00 [10:23:44]line Безнал.: 0.00 [10:23:44]line Место: АЗС № 120 "Партнер Нефть" [10:23:44]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [10:23:44]line СНО: Общий режим [10:23:44]line Чек 52 21.06.2024 10:23 [10:23:44]line Смена: 355 ФФД: 1.0 [10:23:44]line ЗНМ: 0300000164 [10:23:44]line РНМ: 0000000000092785 [10:23:44]line Версия ККМ: 001 [10:23:44]line ФМ: 0000000000875093 [10:23:44]line ФД: 104129 [10:23:44]line ФПД: 74800062525934 [10:23:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T102346&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104129&fm=74800062525934&tin=02508201610067®Number=0000000000092785&sum=100000 [10:23:44]OFD Sender: Processing packet 104129 [packets to send 17, broken 16] [10:23:44]ProducePacketName [10:23:44]name=ofd_packets/00104129 [10:23:44]OFD Sender: To server: pG, [10:23:44]CommunicateWithHost lk.salyk.kg:30040 [10:23:44]ConnectInit lk.salyk.kg [10:23:44]written 0, free lines is 4095 [10:23:44]Connected sock=10 [10:23: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 CF 33 07 01 02 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 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 34 00 00 00 F4 03 04 00 B2 54 75 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 C1 96 01 00 35 04 06 00 44 07 BF 27 F1 EE 16 05 11 6E 8A 5F 09 48 [10:23: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 43 61 47 00 A1 80 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 C1 96 01 00 F4 03 04 00 35 FB 74 66 B6 04 01 00 00 93 B2 4D D5 D2 57 27 8F [10:23:45]CommunicateWithHost err = 0 [10:23:45]CheckOFDResponse [10:23:45]1017 (14) - 77093643461234 [10:23:45]1041 (16) - 0000000000875093 [10:23:45]1040 (4) - 104129 [10:23:45]1012 (4) - 21.06.2024 04:01 [10:23:45]1206 (1) - 0 [10:23:45]OFD Sender: Remove packet 104129 [10:23:45]ProducePacketName [10:23:45]name=ofd_packets/00104129 [10:23:45]NVStorageDeleteData [10:23:45]Write to MH i2c: 01 00 00 B4 1B CF [10:23:45]Write i2c OK [10:23:45]MH_I2C_Read... [10:23:45]Read from MH i2c: 01 [10:23:45]MH_I2C_Read... [10:23:45]Read from MH i2c: 01 07 00 [10:23:45]MH_I2C_Read... [10:23:45]Read from MH i2c: 01 07 00 B4 1B 00 00 00 00 00 E1 0C C3 [10:23:45]RasterBufferAndPrint [10:23:45]line [10:23:45]line [10:23:45]line [10:23:45]line [10:23:45]line [10:23:45]written 0, free lines is 3302 [10:23:45]MH_Cut [10:23:45]Write to MH i2c: D1 01 00 BB 1B 01 A8 [10:23:45]Write i2c OK [10:23:45]MH_I2C_Read... [10:23:45]Read from MH i2c: D1 [10:23:45]MH_I2C_Read... [10:23:45]Read from MH i2c: D1 01 00 [10:23:45]MH_I2C_Read... [10:23:45]Read from MH i2c: D1 01 00 BB 1B 00 A7 [10:23:45]Write to MH i2c: 01 00 00 BC 1B D7 [10:23:45]Write i2c OK [10:23:45]MH_I2C_Read... [10:23:45]OFD Sender: No OFD packet to send [10:23:45]*** Cut start [10:23:45]*** Partial cut [10:23:45]*** CUTSNS_PIN = 1 [10:23:46]*** CUTSNS_PIN = 0 [10:23:46]*** Brake cut motor [10:23:46]Read from MH i2c: 01 [10:23:46]MH_I2C_Read... [10:23:46]*** Stop cut motor [10:23:46]*** Cut end [10:23:46]Read from MH i2c: 01 07 00 [10:23:46]MH_I2C_Read... [10:23:46]Read from MH i2c: 01 07 00 BC 1B 00 00 00 00 00 FF 0F EC [10:23:46]process_action close_receipt done [10:23:46]requested_data is exist [10:23:46]produce_requested_data [10:23:46]requested_item fm.sn is exist - process it [10:23:46]wFMCommunicate request_size=4 [10:23:46]MH_SAM_APDU [10:23:46]CAPDU: 80 11 00 00 [10:23:46]Write to MH i2c: E2 08 00 BD 1B 80 11 00 00 00 00 00 00 52 [10:23:46]Write i2c OK [10:23:46]MH_I2C_Read... [10:23:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:23:46]Read from MH i2c: E2 [10:23:46]MH_I2C_Read... [10:23:46]Read from MH i2c: E2 17 00 [10:23:46]MH_I2C_Read... [10:23:46]Read from MH i2c: E2 17 00 BD 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 A5 [10:23: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:23:46]wFMCommunicate OK [10:23:46]requested_item fd.num is exist - process it [10:23:46]SAM_PROTO_GetFieldsCounters [10:23:46]wFMCommunicate request_size=4 [10:23:46]MH_SAM_APDU [10:23:46]CAPDU: 80 13 00 00 [10:23:46]Write to MH i2c: E2 08 00 BE 1B 80 13 00 00 00 00 00 00 55 [10:23:46]Write i2c OK [10:23:46]MH_I2C_Read... [10:23:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:23:46]Read from MH i2c: E2 [10:23:46]MH_I2C_Read... [10:23:46]Read from MH i2c: E2 62 00 [10:23:46]MH_I2C_Read... [10:23:46]Read from MH i2c: E2 62 00 BE 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 C1 96 01 00 0E 04 04 00 63 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 D4 [10:23: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 C1 96 01 00 0E 04 04 00 63 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:23:46]wFMCommunicate OK [10:23:46]SAM_PROTO_GetFieldsCounters done [10:23:46]requested_item shift.num is exist - process it [10:23:46]requested_item shift.opened is exist - process it [10:23:46]req_shift_opened [10:23:46]FM_GetShiftState [10:23:46]SAM_PROTO_GetShiftState [10:23:46]wFMCommunicate request_size=4 [10:23:46]MH_SAM_APDU [10:23:46]CAPDU: 80 13 01 00 [10:23:46]Write to MH i2c: E2 08 00 BF 1B 80 13 01 00 00 00 00 00 57 [10:23:46]Write i2c OK [10:23:46]MH_I2C_Read... [10:23:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:23:46]Read from MH i2c: E2 [10:23:46]MH_I2C_Read... [10:23:46]Read from MH i2c: E2 0E 00 [10:23:46]MH_I2C_Read... [10:23:46]Read from MH i2c: E2 0E 00 BF 1B 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 6A [10:23:46]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [10:23:46]wFMCommunicate OK [10:23:46]SAM_PROTO_GetShiftState done [10:23:46]FM_GetShiftState done [10:23:46]req_shift_opened done [10:23:46]requested_item shift.open_date is exist - process it [10:23:46]req_shift_open_date [10:23:46]req_shift_open_date done [10:23:46]produce_requested_data done [10:23:46]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104129,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [10:23:46]process_action_free close_receipt [10:23:46]json_value_free [10:23:46]json_value_free done [10:23:46]process_json_proto returns [10:23:46]Send response to host [10:23:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104129,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [10:23:46]free response buf [10:23:46]execute_script done [10:23:46]execute_script returns [10:23:46]free content buf [10:23:46]Sock 7.Close socket [10:23:46]Sock 7.Thread stoped [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:24:55]accept exits with 9 [10:24:55]New connection [10:24:55]New thread 3066858852 created [10:24:55]Thread 3066715492 joined [10:24:55]Waiting for new connection... [10:24:55] Sock 9.Parse request [10:24:55]Sock 9.Check first char [10:24:55]Sock 9.First char is OK [10:24:55]request: POST /json_proto HTTP/1.0 [10:24:55]Method: POST [10:24:55]URL: /json_proto [10:24:55]Method is POST - this is cgi request [10:24:55]url: /json_proto [10:24:55]query_string will be loaded in cgi processing [10:24:55]execute_cgi json_proto POST (null) [10:24:55]execute_cgi path=json_proto method=POST [10:24:55]POST find Content-Length [10:24:55]Host: 172.17.38.133:8080 [10:24:55]Content-Length: 682 [10:24:55]Content-Type: application/json [10:24:55] [10:24:55]POST finish read [10:24:55]Found Content-Length = 682 [10:24:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673538", "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" ] } } [10:24:55]execute_script... [10:24: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)673538", "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" ] } } [10:24:55]POST & json_proto [10:24:55]process_json_proto [10:24:55]json parsed OK: [10:24:55]protocol is kg_v1.0 [10:24:55]action value=close_receipt [10:24:55]process_action close_receipt [10:24:55]cmd_close_receipt [10:24:55]MH_GetDate [10:24:55]Write to MH i2c: F0 00 00 C0 1B CA [10:24:55]Write i2c OK [10:24:55]MH_I2C_Read... [10:24:55]Read from MH i2c: F0 [10:24:55]MH_I2C_Read... [10:24:55]Read from MH i2c: F0 09 00 [10:24:55]MH_I2C_Read... [10:24:55]Read from MH i2c: F0 09 00 C0 1B 00 FB 54 75 66 BD 8F 7C 64 29 [10:24:55]GetLastDocTimeStamp 1718965426 [10:24:55]current date 1718965499 [10:24:55]FM_GetShiftState [10:24:55]SAM_PROTO_GetShiftState [10:24:55]wFMCommunicate request_size=4 [10:24:55]MH_SAM_APDU [10:24:55]CAPDU: 80 13 01 00 [10:24:55]Write to MH i2c: E2 08 00 C1 1B 80 13 01 00 00 00 00 00 59 [10:24:55]Write i2c OK [10:24:55]MH_I2C_Read... [10:24:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:24:55]Read from MH i2c: E2 [10:24:55]MH_I2C_Read... [10:24:55]Read from MH i2c: E2 0E 00 [10:24:55]MH_I2C_Read... [10:24:55]Read from MH i2c: E2 0E 00 C1 1B 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 6C [10:24:55]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [10:24:55]wFMCommunicate OK [10:24:55]SAM_PROTO_GetShiftState done [10:24:55]FM_GetShiftState done [10:24:55]opened in 1718929509 [10:24:55]opened+sec_in_day 1719015909 [10:24:55]quantity*price = 100064 [10:24:55]sum+1 = 100066 [10:24: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 СНО: Общий режим Чек 53 21.06.2024 10:24 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104130 ФПД: 11990580934677 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T102459&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104130&fm=11990580934677&tin=02508201610067®Number=0000000000092785&sum=100000 [10:24:56]StoreToDocumentArchive [10:24:56]shift 355 fd 104130 [10:24:56]save to /storage/0355/doc_00104130 [10:24:56]save last doc name /storage/0355/doc_00104130 to /storage/kkm_last_doc_name [10:24:56]save OK [10:24:56]Clear old archive folders... [10:24:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:24:56]tlvbuf is B6F41670 [10:24:56]SAM_PROTO_ClearQueue [10:24:56]wFMCommunicate request_size=4 [10:24:56]MH_SAM_APDU [10:24:56]CAPDU: 80 09 00 00 [10:24:56]Write to MH i2c: E2 08 00 CE 1B 80 09 00 00 00 00 00 00 5B [10:24:56]Write i2c OK [10:24:56]MH_I2C_Read... [10:24:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:24:56]Read from MH i2c: E2 [10:24:56]MH_I2C_Read... [10:24:56]Read from MH i2c: E2 03 00 [10:24:56]MH_I2C_Read... [10:24:56]Read from MH i2c: E2 03 00 CE 1B 00 90 00 5D [10:24:56]RAPDU: 90 00 [10:24:56]wFMCommunicate OK [10:24:56]SAM_PROTO_ClearQueue done [10:24:56]KKMCreateOFDPacket [10:24:56]OFDProtocolAddRootSTLVToBuf [10:24:56]FM_MakeSignedData [10:24:56]FM_MakeSignedData [10:24:56]SAM_PROTO_SignData [10:24:56]wFMCommunicate request_size=4 [10:24:56]MH_SAM_APDU [10:24:56]CAPDU: 80 0D 01 02 [10:24:56]Write to MH i2c: E2 08 00 CF 1B 80 0D 01 02 00 00 00 00 63 [10:24:56]Write i2c OK [10:24:56]MH_I2C_Read... [10:24:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:24:57]Read from MH i2c: E2 [10:24:57]MH_I2C_Read... [10:24:57]Read from MH i2c: E2 03 00 [10:24:57]MH_I2C_Read... [10:24:57]Read from MH i2c: E2 03 00 CF 1B 00 90 00 5E [10:24:57]RAPDU: 90 00 [10:24:57]wFMCommunicate OK [10:24:57]wFMCommunicate request_size=255 [10:24:57]MH_SAM_APDU [10: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 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 35 00 00 00 F4 03 04 00 FB 54 75 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 C2 96 01 00 35 04 06 00 0A [10:24:57]Write to MH i2c: E2 02 01 D0 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 35 00 00 00 F4 03 04 00 FB 54 75 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 C2 96 01 00 35 04 06 00 0A 00 00 93 [10:24:57]Write i2c OK [10:24:57]MH_I2C_Read... [10:24:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:24:57]Read from MH i2c: E2 [10:24:57]MH_I2C_Read... [10:24:57]Read from MH i2c: E2 03 00 [10:24:57]MH_I2C_Read... [10:24:57]Read from MH i2c: E2 03 00 D0 1B 00 90 00 5F [10:24:57]RAPDU: 90 00 [10:24:57]wFMCommunicate OK [10:24:57]wFMCommunicate request_size=10 [10:24:57]MH_SAM_APDU [10:24:57]CAPDU: 80 0D 02 02 05 E7 C6 51 38 15 [10:24:57]Write to MH i2c: E2 0D 00 D1 1B 80 0D 02 02 05 00 E7 C6 51 38 15 00 00 BB [10:24:57]Write i2c OK [10:24:57]MH_I2C_Read... [10:24:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:24:57]Read from MH i2c: E2 [10:24:57]MH_I2C_Read... [10:24:57]Read from MH i2c: E2 03 00 [10:24:57]MH_I2C_Read... [10:24:57]Read from MH i2c: E2 03 00 D1 1B 00 90 00 60 [10:24:57]RAPDU: 90 00 [10:24:57]wFMCommunicate OK [10:24:57]wFMCommunicate request_size=4 [10:24:57]MH_SAM_APDU [10:24:57]CAPDU: 80 0D 03 02 [10:24:57]Write to MH i2c: E2 08 00 D2 1B 80 0D 03 02 00 00 00 00 68 [10:24:57]Write i2c OK [10:24:57]MH_I2C_Read... [10:24:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:24:57]Read from MH i2c: E2 [10:24:57]MH_I2C_Read... [10:24:57]Read from MH i2c: E2 0B 00 [10:24:57]MH_I2C_Read... [10:24:57]Read from MH i2c: E2 0B 00 D2 1B 00 35 1B 87 BF B6 57 D0 02 90 00 DE [10:24:57]RAPDU: 35 1B 87 BF B6 57 D0 02 90 00 [10:24:57]wFMCommunicate OK [10:24:57]SAM_PROTO_SignData done [10:24:57]FM_MakeSignedData done [10:24:57]CreateOFDProtocolMessage [10:24:57]wFMCommunicate request_size=4 [10:24:57]MH_SAM_APDU [10:24:57]CAPDU: 80 11 00 00 [10:24:57]Write to MH i2c: E2 08 00 D3 1B 80 11 00 00 00 00 00 00 68 [10:24:57]Write i2c OK [10:24:57]MH_I2C_Read... [10:24:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:24:57]Read from MH i2c: E2 [10:24:57]MH_I2C_Read... [10:24:57]Read from MH i2c: E2 17 00 [10:24:57]MH_I2C_Read... [10:24:57]Read from MH i2c: E2 17 00 D3 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 BB [10:24:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [10:24:57]wFMCommunicate OK [10:24:57]CreateOFDProtocolMessage done [10:24:57]OFDSenderStorePacket 104130 [10:24:57]StoreOFDPacket docnum=104130 [10:24: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 D6 43 07 01 5B 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 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 35 00 00 00 F4 03 04 00 FB 54 75 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 C2 96 01 00 35 04 06 00 0A E7 C6 51 38 15 35 1B 87 BF B6 57 D0 02 [10:24:57]CheckFolder [10:24:57]dirname=/storage/ofd_packets [10:24:57]CheckFolder done [10:24:57]ProducePacketName [10:24:57]name=ofd_packets/00104130 [10:24:57]NVStorageSaveData ofd_packets/00104130 [10:24:57]File name is /storage/ofd_packets/00104130 [10:24:57]Write 301 bytes [10:24:57]NVStorageSaveData done [10:24:57]OFDSenderStorePacket done [10:24:57]KKMCreateOFDPacket done [10:24:57]NVStorageSaveData kkm_last_timestamp [10:24:57]File name is /storage/kkm_last_timestamp [10:24:57]Write 4 bytes [10:24:57]NVStorageSaveData done [10:24:57]ExternCall_PrintAddStr [10:24:57]wPrintStart [10:24:57]Write to MH i2c: 01 00 00 D4 1B EF [10:24:57]Write i2c OK [10:24:57]MH_I2C_Read... [10:24:57]Read from MH i2c: 01 [10:24:57]MH_I2C_Read... [10:24:57]Read from MH i2c: 01 07 00 [10:24:57]MH_I2C_Read... [10:24:57]Read from MH i2c: 01 07 00 D4 1B 00 00 00 00 00 FF 0F 04 [10:24:57]RasterBufferAndPrint [10:24:57]line Счет N : (1)673538 [10:24:57]line ИНН: 02508201610067 [10:24:57]line Контрольно-Кассовый Чек [10:24:57]line ПРОДАЖА [10:24:57]line ТРК (МРК, ГНК) : 42 [10:24:57]line Товар: 2710124130 [10:24:57]line Аи-92-К-5 [10:24:57]line 15.070 * 66.40 [10:24:57]line = 1000.65 [10:24:57]line НДС 12% НСП 1% [10:24:57]line > о реализуемом товаре [10:24:57]line ОКРУГЛЕНИЕ: -0.65 [10:24:57]line ИТОГО: 1000.00 [10:24:57]line Внесено: 1000.00 [10:24:57]line СДАЧА: 0.00 [10:24:57]line НСП 1% : 8.85 [10:24:57]line НДС 12% : 106.26 [10:24:57]line Наличными: 1000.00 [10:24:57]line Безнал.: 0.00 [10:24:57]line Место: АЗС № 120 "Партнер Нефть" [10:24:57]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [10:24:57]line СНО: Общий режим [10:24:57]line Чек 53 21.06.2024 10:24 [10:24:57]line Смена: 355 ФФД: 1.0 [10:24:57]line ЗНМ: 0300000164 [10:24:57]line РНМ: 0000000000092785 [10:24:57]line Версия ККМ: 001 [10:24:57]line ФМ: 0000000000875093 [10:24:57]line ФД: 104130 [10:24:57]line ФПД: 11990580934677 [10:24:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T102459&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104130&fm=11990580934677&tin=02508201610067®Number=0000000000092785&sum=100000 [10:24:57]OFD Sender: Processing packet 104130 [packets to send 17, broken 16] [10:24:57]ProducePacketName [10:24:57]name=ofd_packets/00104130 [10:24:57]OFD Sender: To server: pG, [10:24:57]CommunicateWithHost lk.salyk.kg:30040 [10:24:57]ConnectInit lk.salyk.kg [10:24:57]written 0, free lines is 4095 [10:24:57]Connected sock=10 [10:24:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 D6 43 07 01 5B 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 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 35 00 00 00 F4 03 04 00 FB 54 75 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 C2 96 01 00 35 04 06 00 0A E7 C6 51 38 15 35 1B 87 BF B6 57 D0 02 [10:24:58]Write to MH i2c: 01 00 00 FF 1B 1A [10:24:58]Write i2c OK [10:24:58]MH_I2C_Read... [10:24:58]Read from MH i2c: 01 [10:24:58]MH_I2C_Read... [10:24:58]Read from MH i2c: 01 07 00 [10:24:58]MH_I2C_Read... [10:24:58]Read from MH i2c: 01 07 00 FF 1B 00 00 00 00 00 D9 0C 06 [10:24:58]RasterBufferAndPrint [10:24:58]line [10:24:58]line [10:24:58]line [10:24:58]line [10:24:58]line [10:24:58]written 0, free lines is 3296 [10:24:58]MH_Cut [10:24:58]Write to MH i2c: D1 01 00 06 1C 01 F4 [10:24:58]Write i2c OK [10:24:58]MH_I2C_Read... [10:24:58]Read from MH i2c: D1 [10:24:58]MH_I2C_Read... [10:24:58]Read from MH i2c: D1 01 00 [10:24:58]MH_I2C_Read... [10:24:58]Read from MH i2c: D1 01 00 06 1C 00 F3 [10:24:58]Write to MH i2c: 01 00 00 07 1C 23 [10:24:58]Write i2c OK [10:24:58]MH_I2C_Read... [10: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 61 38 47 00 5F A1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 C2 96 01 00 F4 03 04 00 7E FB 74 66 B6 04 01 00 00 E7 5E D5 0E A1 EA 6E F9 [10:24:58]CommunicateWithHost err = 0 [10:24:58]CheckOFDResponse [10:24:58]1017 (14) - 77093643461234 [10:24:58]1041 (16) - 0000000000875093 [10:24:58]1040 (4) - 104130 [10:24:58]1012 (4) - 21.06.2024 04:03 [10:24:58]1206 (1) - 0 [10:24:58]OFD Sender: Remove packet 104130 [10:24:58]ProducePacketName [10:24:58]name=ofd_packets/00104130 [10:24:58]NVStorageDeleteData [10:24:58]OFD Sender: No OFD packet to send [10:24:58]*** Cut start [10:24:58]*** Partial cut [10:24:58]*** CUTSNS_PIN = 1 [10:24:59]*** CUTSNS_PIN = 0 [10:24:59]*** Brake cut motor [10:24:59]Read from MH i2c: 01 [10:24:59]MH_I2C_Read... [10:24:59]*** Stop cut motor [10:24:59]*** Cut end [10:24:59]Read from MH i2c: 01 07 00 [10:24:59]MH_I2C_Read... [10:24:59]Read from MH i2c: 01 07 00 07 1C 00 00 00 00 00 FF 0F 38 [10:24:59]process_action close_receipt done [10:24:59]requested_data is exist [10:24:59]produce_requested_data [10:24:59]requested_item fm.sn is exist - process it [10:24:59]wFMCommunicate request_size=4 [10:24:59]MH_SAM_APDU [10:24:59]CAPDU: 80 11 00 00 [10:24:59]Write to MH i2c: E2 08 00 08 1C 80 11 00 00 00 00 00 00 9E [10:24:59]Write i2c OK [10:24:59]MH_I2C_Read... [10:24:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:24:59]Read from MH i2c: E2 [10:24:59]MH_I2C_Read... [10:24:59]Read from MH i2c: E2 17 00 [10:24:59]MH_I2C_Read... [10:24:59]Read from MH i2c: E2 17 00 08 1C 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:24: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:24:59]wFMCommunicate OK [10:24:59]requested_item fd.num is exist - process it [10:24:59]SAM_PROTO_GetFieldsCounters [10:24:59]wFMCommunicate request_size=4 [10:24:59]MH_SAM_APDU [10:24:59]CAPDU: 80 13 00 00 [10:24:59]Write to MH i2c: E2 08 00 09 1C 80 13 00 00 00 00 00 00 A1 [10:24:59]Write i2c OK [10:24:59]MH_I2C_Read... [10:24:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:24:59]Read from MH i2c: E2 [10:24:59]MH_I2C_Read... [10:24:59]Read from MH i2c: E2 62 00 [10:24:59]MH_I2C_Read... [10:24:59]Read from MH i2c: E2 62 00 09 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 C2 96 01 00 0E 04 04 00 63 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 24 [10:24: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 C2 96 01 00 0E 04 04 00 63 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:24:59]wFMCommunicate OK [10:24:59]SAM_PROTO_GetFieldsCounters done [10:24:59]requested_item shift.num is exist - process it [10:24:59]requested_item shift.opened is exist - process it [10:24:59]req_shift_opened [10:24:59]FM_GetShiftState [10:24:59]SAM_PROTO_GetShiftState [10:24:59]wFMCommunicate request_size=4 [10:24:59]MH_SAM_APDU [10:24:59]CAPDU: 80 13 01 00 [10:24:59]Write to MH i2c: E2 08 00 0A 1C 80 13 01 00 00 00 00 00 A3 [10:24:59]Write i2c OK [10:24:59]MH_I2C_Read... [10:24:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:24:59]Read from MH i2c: E2 [10:24:59]MH_I2C_Read... [10:24:59]Read from MH i2c: E2 0E 00 [10:24:59]MH_I2C_Read... [10:24:59]Read from MH i2c: E2 0E 00 0A 1C 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 B6 [10:24:59]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [10:24:59]wFMCommunicate OK [10:24:59]SAM_PROTO_GetShiftState done [10:24:59]FM_GetShiftState done [10:24:59]req_shift_opened done [10:24:59]requested_item shift.open_date is exist - process it [10:24:59]req_shift_open_date [10:24:59]req_shift_open_date done [10:24:59]produce_requested_data done [10:24:59]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104130,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [10:24:59]process_action_free close_receipt [10:24:59]json_value_free [10:24:59]json_value_free done [10:24:59]process_json_proto returns [10:24:59]Send response to host [10:24:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104130,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [10:24:59]free response buf [10:24:59]execute_script done [10:24:59]execute_script returns [10:24:59]free content buf [10:24:59]Sock 9.Close socket [10:24:59]Sock 9.Thread stoped [10:25:03]OFD Sender: No OFD packet to send [10:25:08]OFD Sender: No OFD packet to send [10:25:13]OFD Sender: No OFD packet to send [10:25:18]OFD Sender: No OFD packet to send [10:25:23]OFD Sender: No OFD packet to send [10:25:28]OFD Sender: No OFD packet to send [10:25:33]OFD Sender: No OFD packet to send [10:25:38]OFD Sender: No OFD packet to send [10:25:41]accept exits with 7 [10:25:41]New connection [10:25:41]New thread 3066715492 created [10:25:41]Thread 3066858852 joined [10:25:41]Waiting for new connection... [10:25:41] Sock 7.Parse request [10:25:41]Sock 7.Check first char [10:25:41]Sock 7.First char is OK [10:25:41]request: POST /json_proto HTTP/1.0 [10:25:41]Method: POST [10:25:41]URL: /json_proto [10:25:41]Method is POST - this is cgi request [10:25:41]url: /json_proto [10:25:41]query_string will be loaded in cgi processing [10:25:41]execute_cgi json_proto POST (null) [10:25:41]execute_cgi path=json_proto method=POST [10:25:41]POST find Content-Length [10:25:41]Host: 172.17.38.133:8080 [10:25:41]Content-Length: 677 [10:25:41]Content-Type: application/json [10:25:41] [10:25:41]POST finish read [10:25:41]Found Content-Length = 677 [10:25:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673539", "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" ] } } [10:25:41]execute_script... [10:25: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)673539", "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" ] } } [10:25:41]POST & json_proto [10:25:41]process_json_proto [10:25:41]json parsed OK: [10:25:41]protocol is kg_v1.0 [10:25:41]action value=close_receipt [10:25:41]process_action close_receipt [10:25:41]cmd_close_receipt [10:25:41]MH_GetDate [10:25:41]Write to MH i2c: F0 00 00 0B 1C 16 [10:25:41]Write i2c OK [10:25:41]MH_I2C_Read... [10:25:41]Read from MH i2c: F0 [10:25:41]MH_I2C_Read... [10:25:41]Read from MH i2c: F0 09 00 [10:25:41]MH_I2C_Read... [10:25:41]Read from MH i2c: F0 09 00 0B 1C 00 29 55 75 66 BD 8F 7C 64 A4 [10:25:41]GetLastDocTimeStamp 1718965499 [10:25:41]current date 1718965545 [10:25:41]FM_GetShiftState [10:25:41]SAM_PROTO_GetShiftState [10:25:41]wFMCommunicate request_size=4 [10:25:41]MH_SAM_APDU [10:25:41]CAPDU: 80 13 01 00 [10:25:41]Write to MH i2c: E2 08 00 0C 1C 80 13 01 00 00 00 00 00 A5 [10:25:41]Write i2c OK [10:25:41]MH_I2C_Read... [10:25:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:25:41]Read from MH i2c: E2 [10:25:41]MH_I2C_Read... [10:25:41]Read from MH i2c: E2 0E 00 [10:25:41]MH_I2C_Read... [10:25:41]Read from MH i2c: E2 0E 00 0C 1C 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 B8 [10:25:41]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [10:25:41]wFMCommunicate OK [10:25:41]SAM_PROTO_GetShiftState done [10:25:41]FM_GetShiftState done [10:25:41]opened in 1718929509 [10:25:41]opened+sec_in_day 1719015909 [10:25:41]quantity*price = 50065 [10:25:41]sum+1 = 50067 [10:25:41]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 СНО: Общий режим Чек 54 21.06.2024 10:25 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104131 ФПД: 147084788218037 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T102545&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104131&fm=147084788218037&tin=02508201610067®Number=0000000000092785&sum=50000 [10:25:42]StoreToDocumentArchive [10:25:42]shift 355 fd 104131 [10:25:42]save to /storage/0355/doc_00104131 [10:25:42]save last doc name /storage/0355/doc_00104131 to /storage/kkm_last_doc_name [10:25:42]save OK [10:25:42]Clear old archive folders... [10:25:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:25:42]tlvbuf is 0110FA00 [10:25:42]SAM_PROTO_ClearQueue [10:25:42]wFMCommunicate request_size=4 [10:25:42]MH_SAM_APDU [10:25:42]CAPDU: 80 09 00 00 [10:25:42]Write to MH i2c: E2 08 00 19 1C 80 09 00 00 00 00 00 00 A7 [10:25:42]Write i2c OK [10:25:42]MH_I2C_Read... [10:25:42]Read from MH i2c: E2 [10:25:42]MH_I2C_Read... [10:25:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:25:42]Read from MH i2c: E2 03 00 [10:25:42]MH_I2C_Read... [10:25:42]Read from MH i2c: E2 03 00 19 1C 00 90 00 A9 [10:25:42]RAPDU: 90 00 [10:25:42]wFMCommunicate OK [10:25:42]SAM_PROTO_ClearQueue done [10:25:42]KKMCreateOFDPacket [10:25:42]OFDProtocolAddRootSTLVToBuf [10:25:42]FM_MakeSignedData [10:25:42]FM_MakeSignedData [10:25:42]SAM_PROTO_SignData [10:25:42]wFMCommunicate request_size=4 [10:25:42]MH_SAM_APDU [10:25:42]CAPDU: 80 0D 01 02 [10:25:42]Write to MH i2c: E2 08 00 1A 1C 80 0D 01 02 00 00 00 00 AF [10:25:42]Write i2c OK [10:25:42]MH_I2C_Read... [10:25:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:25:43]Read from MH i2c: E2 [10:25:43]MH_I2C_Read... [10:25:43]Read from MH i2c: E2 03 00 [10:25:43]MH_I2C_Read... [10:25:43]Read from MH i2c: E2 03 00 1A 1C 00 90 00 AA [10:25:43]RAPDU: 90 00 [10:25:43]wFMCommunicate OK [10:25:43]wFMCommunicate request_size=255 [10:25:43]MH_SAM_APDU [10:25:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 36 00 00 00 F4 03 04 00 29 55 75 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 C3 96 01 00 35 04 06 00 85 [10:25:43]Write to MH i2c: E2 02 01 1B 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 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 36 00 00 00 F4 03 04 00 29 55 75 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 C3 96 01 00 35 04 06 00 85 00 00 3B [10:25:43]Write i2c OK [10:25:43]MH_I2C_Read... [10:25:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:25:43]Read from MH i2c: E2 [10:25:43]MH_I2C_Read... [10:25:43]Read from MH i2c: E2 03 00 [10:25:43]MH_I2C_Read... [10:25:43]Read from MH i2c: E2 03 00 1B 1C 00 90 00 AB [10:25:43]RAPDU: 90 00 [10:25:43]wFMCommunicate OK [10:25:43]wFMCommunicate request_size=10 [10:25:43]MH_SAM_APDU [10:25:43]CAPDU: 80 0D 02 02 05 C5 D8 8D B8 B5 [10:25:43]Write to MH i2c: E2 0D 00 1C 1C 80 0D 02 02 05 00 C5 D8 8D B8 B5 00 00 53 [10:25:43]Write i2c OK [10:25:43]MH_I2C_Read... [10:25:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:25:43]Read from MH i2c: E2 [10:25:43]MH_I2C_Read... [10:25:43]Read from MH i2c: E2 03 00 [10:25:43]MH_I2C_Read... [10:25:43]Read from MH i2c: E2 03 00 1C 1C 00 90 00 AC [10:25:43]RAPDU: 90 00 [10:25:43]wFMCommunicate OK [10:25:43]wFMCommunicate request_size=4 [10:25:43]MH_SAM_APDU [10:25:43]CAPDU: 80 0D 03 02 [10:25:43]Write to MH i2c: E2 08 00 1D 1C 80 0D 03 02 00 00 00 00 B4 [10:25:43]Write i2c OK [10:25:43]MH_I2C_Read... [10:25:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:25:43]Read from MH i2c: E2 [10:25:43]MH_I2C_Read... [10:25:43]Read from MH i2c: E2 0B 00 [10:25:43]MH_I2C_Read... [10:25:43]Read from MH i2c: E2 0B 00 1D 1C 00 64 8F 83 FF 6E 79 93 AE 90 00 52 [10:25:43]RAPDU: 64 8F 83 FF 6E 79 93 AE 90 00 [10:25:43]wFMCommunicate OK [10:25:43]SAM_PROTO_SignData done [10:25:43]FM_MakeSignedData done [10:25:43]CreateOFDProtocolMessage [10:25:43]wFMCommunicate request_size=4 [10:25:43]MH_SAM_APDU [10:25:43]CAPDU: 80 11 00 00 [10:25:43]Write to MH i2c: E2 08 00 1E 1C 80 11 00 00 00 00 00 00 B4 [10:25:43]Write i2c OK [10:25:43]MH_I2C_Read... [10:25:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:25:43]Read from MH i2c: E2 [10:25:43]MH_I2C_Read... [10:25:43]Read from MH i2c: E2 17 00 [10:25:43]MH_I2C_Read... [10:25:43]Read from MH i2c: E2 17 00 1E 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 07 [10:25:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [10:25:43]wFMCommunicate OK [10:25:43]CreateOFDProtocolMessage done [10:25:43]OFDSenderStorePacket 104131 [10:25:43]StoreOFDPacket docnum=104131 [10:25: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 D6 5E 07 01 56 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 36 00 00 00 F4 03 04 00 29 55 75 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 C3 96 01 00 35 04 06 00 85 C5 D8 8D B8 B5 64 8F 83 FF 6E 79 93 AE [10:25:43]CheckFolder [10:25:43]dirname=/storage/ofd_packets [10:25:43]CheckFolder done [10:25:43]ProducePacketName [10:25:43]name=ofd_packets/00104131 [10:25:43]NVStorageSaveData ofd_packets/00104131 [10:25:43]File name is /storage/ofd_packets/00104131 [10:25:43]Write 301 bytes [10:25:43]NVStorageSaveData done [10:25:43]OFDSenderStorePacket done [10:25:43]KKMCreateOFDPacket done [10:25:43]NVStorageSaveData kkm_last_timestamp [10:25:43]File name is /storage/kkm_last_timestamp [10:25:43]Write 4 bytes [10:25:43]NVStorageSaveData done [10:25:43]ExternCall_PrintAddStr [10:25:43]wPrintStart [10:25:43]Write to MH i2c: 01 00 00 1F 1C 3B [10:25:43]Write i2c OK [10:25:43]MH_I2C_Read... [10:25:43]Read from MH i2c: 01 [10:25:43]MH_I2C_Read... [10:25:43]Read from MH i2c: 01 07 00 [10:25:43]MH_I2C_Read... [10:25:43]Read from MH i2c: 01 07 00 1F 1C 00 00 00 00 00 FF 0F 50 [10:25:43]RasterBufferAndPrint [10:25:43]line Счет N : (1)673539 [10:25:43]line ИНН: 02508201610067 [10:25:43]line Контрольно-Кассовый Чек [10:25:43]line ПРОДАЖА [10:25:43]line ТРК (МРК, ГНК) : 32 [10:25:43]line Товар: 2710124130 [10:25:43]line Аи-92-К-5 [10:25:43]line 7.540 * 66.40 [10:25:43]line = 500.66 [10:25:43]line НДС 12% НСП 1% [10:25:43]line > о реализуемом товаре [10:25:43]line ОКРУГЛЕНИЕ: -0.66 [10:25:43]line ИТОГО: 500.00 [10:25:43]line Внесено: 500.00 [10:25:43]line СДАЧА: 0.00 [10:25:43]line НСП 1% : 4.43 [10:25:43]line НДС 12% : 53.17 [10:25:43]line Наличными: 500.00 [10:25:43]line Безнал.: 0.00 [10:25:43]line Место: АЗС № 120 "Партнер Нефть" [10:25:43]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [10:25:43]line СНО: Общий режим [10:25:43]line Чек 54 21.06.2024 10:25 [10:25:43]line Смена: 355 ФФД: 1.0 [10:25:43]line ЗНМ: 0300000164 [10:25:43]line РНМ: 0000000000092785 [10:25:43]line Версия ККМ: 001 [10:25:43]line ФМ: 0000000000875093 [10:25:43]line ФД: 104131 [10:25:43]line ФПД: 147084788218037 [10:25:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T102545&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104131&fm=147084788218037&tin=02508201610067®Number=0000000000092785&sum=50000 [10:25:43]OFD Sender: Processing packet 104131 [packets to send 17, broken 16] [10:25:43]ProducePacketName [10:25:43]name=ofd_packets/00104131 [10:25:43]OFD Sender: To server: pG, [10:25:43]CommunicateWithHost lk.salyk.kg:30040 [10:25:43]ConnectInit lk.salyk.kg [10:25:43]written 0, free lines is 4095 [10:25:43]Connected sock=10 [10:25: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 D6 5E 07 01 56 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 36 00 00 00 F4 03 04 00 29 55 75 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 C3 96 01 00 35 04 06 00 85 C5 D8 8D B8 B5 64 8F 83 FF 6E 79 93 AE [10:25: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 4B 17 47 00 ED 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 C3 96 01 00 F4 03 04 00 AC FB 74 66 B6 04 01 00 00 5E 5C 46 28 97 19 08 63 [10:25:44]CommunicateWithHost err = 0 [10:25:44]CheckOFDResponse [10:25:44]1017 (14) - 77093643461234 [10:25:44]1041 (16) - 0000000000875093 [10:25:44]1040 (4) - 104131 [10:25:44]1012 (4) - 21.06.2024 04:03 [10:25:44]1206 (1) - 0 [10:25:44]OFD Sender: Remove packet 104131 [10:25:44]ProducePacketName [10:25:44]name=ofd_packets/00104131 [10:25:44]NVStorageDeleteData [10:25:44]Write to MH i2c: 01 00 00 4A 1C 66 [10:25:44]Write i2c OK [10:25:44]MH_I2C_Read... [10:25:44]Read from MH i2c: 01 [10:25:44]MH_I2C_Read... [10:25:44]Read from MH i2c: 01 07 00 [10:25:44]MH_I2C_Read... [10:25:44]Read from MH i2c: 01 07 00 4A 1C 00 00 00 00 00 E4 0C 5D [10:25:44]RasterBufferAndPrint [10:25:44]line [10:25:44]line [10:25:44]line [10:25:44]line [10:25:44]line [10:25:44]written 0, free lines is 3306 [10:25:44]MH_Cut [10:25:44]Write to MH i2c: D1 01 00 51 1C 01 3F [10:25:44]Write i2c OK [10:25:44]MH_I2C_Read... [10:25:44]Read from MH i2c: D1 [10:25:44]MH_I2C_Read... [10:25:44]Read from MH i2c: D1 01 00 [10:25:44]MH_I2C_Read... [10:25:44]Read from MH i2c: D1 01 00 51 1C 00 3E [10:25:44]Write to MH i2c: 01 00 00 52 1C 6E [10:25:44]Write i2c OK [10:25:44]MH_I2C_Read... [10:25:44]OFD Sender: No OFD packet to send [10:25:45]*** Cut start [10:25:45]*** Partial cut [10:25:45]*** CUTSNS_PIN = 1 [10:25:45]*** CUTSNS_PIN = 0 [10:25:45]*** Brake cut motor [10:25:45]Read from MH i2c: 01 [10:25:45]MH_I2C_Read... [10:25:45]*** Stop cut motor [10:25:45]*** Cut end [10:25:45]Read from MH i2c: 01 07 00 [10:25:45]MH_I2C_Read... [10:25:45]Read from MH i2c: 01 07 00 52 1C 00 00 00 00 00 FF 0F 83 [10:25:45]process_action close_receipt done [10:25:45]requested_data is exist [10:25:45]produce_requested_data [10:25:45]requested_item fm.sn is exist - process it [10:25:45]wFMCommunicate request_size=4 [10:25:45]MH_SAM_APDU [10:25:45]CAPDU: 80 11 00 00 [10:25:45]Write to MH i2c: E2 08 00 53 1C 80 11 00 00 00 00 00 00 E9 [10:25:45]Write i2c OK [10:25:45]MH_I2C_Read... [10:25:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:25:45]Read from MH i2c: E2 [10:25:45]MH_I2C_Read... [10:25:45]Read from MH i2c: E2 17 00 [10:25:45]MH_I2C_Read... [10:25:45]Read from MH i2c: E2 17 00 53 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 3C [10:25:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [10:25:45]wFMCommunicate OK [10:25:45]requested_item fd.num is exist - process it [10:25:45]SAM_PROTO_GetFieldsCounters [10:25:45]wFMCommunicate request_size=4 [10:25:45]MH_SAM_APDU [10:25:45]CAPDU: 80 13 00 00 [10:25:45]Write to MH i2c: E2 08 00 54 1C 80 13 00 00 00 00 00 00 EC [10:25:45]Write i2c OK [10:25:45]MH_I2C_Read... [10:25:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:25:45]Read from MH i2c: E2 [10:25:45]MH_I2C_Read... [10:25:45]Read from MH i2c: E2 62 00 [10:25:45]MH_I2C_Read... [10:25:45]Read from MH i2c: E2 62 00 54 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 C3 96 01 00 0E 04 04 00 63 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 73 [10:25: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 C3 96 01 00 0E 04 04 00 63 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:25:45]wFMCommunicate OK [10:25:45]SAM_PROTO_GetFieldsCounters done [10:25:45]requested_item shift.num is exist - process it [10:25:45]requested_item shift.opened is exist - process it [10:25:45]req_shift_opened [10:25:45]FM_GetShiftState [10:25:45]SAM_PROTO_GetShiftState [10:25:45]wFMCommunicate request_size=4 [10:25:45]MH_SAM_APDU [10:25:45]CAPDU: 80 13 01 00 [10:25:45]Write to MH i2c: E2 08 00 55 1C 80 13 01 00 00 00 00 00 EE [10:25:45]Write i2c OK [10:25:45]MH_I2C_Read... [10:25:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:25:45]Read from MH i2c: E2 [10:25:45]MH_I2C_Read... [10:25:45]Read from MH i2c: E2 0E 00 [10:25:45]MH_I2C_Read... [10:25:45]Read from MH i2c: E2 0E 00 55 1C 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 01 [10:25:45]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [10:25:45]wFMCommunicate OK [10:25:45]SAM_PROTO_GetShiftState done [10:25:45]FM_GetShiftState done [10:25:45]req_shift_opened done [10:25:45]requested_item shift.open_date is exist - process it [10:25:45]req_shift_open_date [10:25:45]req_shift_open_date done [10:25:45]produce_requested_data done [10:25:45]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104131,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [10:25:45]process_action_free close_receipt [10:25:45]json_value_free [10:25:45]json_value_free done [10:25:45]process_json_proto returns [10:25:45]Send response to host [10:25:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104131,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [10:25:45]free response buf [10:25:45]execute_script done [10:25:45]execute_script returns [10:25:45]free content buf [10:25:45]Sock 7.Close socket [10:25:45]Sock 7.Thread stoped [10:25:49]OFD Sender: No OFD packet to send [10:25:54]OFD Sender: No OFD packet to send [10:25:59]OFD Sender: No OFD packet to send [10:26:04]OFD Sender: No OFD packet to send [10:26:09]OFD Sender: No OFD packet to send [10:26:14]OFD Sender: No OFD packet to send [10:26:19]OFD Sender: No OFD packet to send [10:26:24]OFD Sender: No OFD packet to send [10:26:29]OFD Sender: No OFD packet to send [10:26:34]OFD Sender: No OFD packet to send [10:26:39]OFD Sender: No OFD packet to send [10:26:44]OFD Sender: No OFD packet to send [10:26:49]OFD Sender: No OFD packet to send [10:26:54]OFD Sender: No OFD packet to send [10:26:59]OFD Sender: No OFD packet to send [10:27:04]OFD Sender: No OFD packet to send [10:27:09]OFD Sender: No OFD packet to send [10:27:14]OFD Sender: No OFD packet to send [10:27:19]OFD Sender: No OFD packet to send [10:27:24]OFD Sender: No OFD packet to send [10:27:29]OFD Sender: No OFD packet to send [10:27:34]OFD Sender: No OFD packet to send [10:27:39]OFD Sender: No OFD packet to send [10:27:44]OFD Sender: No OFD packet to send [10:27:49]OFD Sender: No OFD packet to send [10:27:54]OFD Sender: No OFD packet to send [10:27:59]OFD Sender: No OFD packet to send [10:28:04]OFD Sender: No OFD packet to send [10:28:09]OFD Sender: No OFD packet to send [10:28:14]OFD Sender: No OFD packet to send [10:28:19]OFD Sender: No OFD packet to send [10:28:24]OFD Sender: No OFD packet to send [10:28:29]OFD Sender: No OFD packet to send [10:28:34]OFD Sender: No OFD packet to send [10:28:39]OFD Sender: No OFD packet to send [10:28:44]OFD Sender: No OFD packet to send [10:28:49]OFD Sender: No OFD packet to send [10:28:54]OFD Sender: No OFD packet to send [10:28:59]OFD Sender: No OFD packet to send [10:29:04]OFD Sender: No OFD packet to send [10:29:09]OFD Sender: No OFD packet to send [10:29:14]OFD Sender: No OFD packet to send [10:29:19]OFD Sender: No OFD packet to send [10:29:24]OFD Sender: No OFD packet to send [10:29:29]OFD Sender: No OFD packet to send [10:29:34]OFD Sender: No OFD packet to send [10:29:39]OFD Sender: No OFD packet to send [10:29:44]OFD Sender: No OFD packet to send [10:29:49]OFD Sender: No OFD packet to send [10:29:54]OFD Sender: No OFD packet to send [10:29:59]OFD Sender: No OFD packet to send [10:30:04]OFD Sender: No OFD packet to send [10:30:09]OFD Sender: No OFD packet to send [10:30:14]OFD Sender: No OFD packet to send [10:30:19]OFD Sender: No OFD packet to send [10:30:24]OFD Sender: No OFD packet to send [10:30:29]OFD Sender: No OFD packet to send [10:30:34]OFD Sender: No OFD packet to send [10:30:39]OFD Sender: No OFD packet to send [10:30:44]OFD Sender: No OFD packet to send [10:30:49]OFD Sender: No OFD packet to send [10:30:54]OFD Sender: No OFD packet to send [10:30:59]OFD Sender: No OFD packet to send [10:31:04]OFD Sender: No OFD packet to send [10:31:09]OFD Sender: No OFD packet to send [10:31:14]OFD Sender: No OFD packet to send [10:31:17]accept exits with 9 [10:31:17]New connection [10:31:17]New thread 3066858852 created [10:31:17]Thread 3066715492 joined [10:31:17]Waiting for new connection... [10:31:17] Sock 9.Parse request [10:31:17]Sock 9.Check first char [10:31:17]Sock 9.First char is OK [10:31:17]request: POST /json_proto HTTP/1.0 [10:31:17]Method: POST [10:31:17]URL: /json_proto [10:31:17]Method is POST - this is cgi request [10:31:17]url: /json_proto [10:31:17]query_string will be loaded in cgi processing [10:31:17]execute_cgi json_proto POST (null) [10:31:17]execute_cgi path=json_proto method=POST [10:31:17]POST find Content-Length [10:31:17]Host: 172.17.38.133:8080 [10:31:17]Content-Length: 683 [10:31:17]Content-Type: application/json [10:31:17] [10:31:17]POST finish read [10:31:17]Found Content-Length = 683 [10:31:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673540", "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" : 22.760, "sum" : 1681.96, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 10000.00, "total" : 1681.00, "payments": [ { "type": 0, "sum" : 1681.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:31:17]execute_script... [10:31: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)673540", "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" : 22.760, "sum" : 1681.96, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 10000.00, "total" : 1681.00, "payments": [ { "type": 0, "sum" : 1681.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:31:17]POST & json_proto [10:31:17]process_json_proto [10:31:17]json parsed OK: [10:31:17]protocol is kg_v1.0 [10:31:17]action value=close_receipt [10:31:17]process_action close_receipt [10:31:17]cmd_close_receipt [10:31:17]MH_GetDate [10:31:17]Write to MH i2c: F0 00 00 56 1C 61 [10:31:17]Write i2c OK [10:31:17]MH_I2C_Read... [10:31:17]Read from MH i2c: F0 [10:31:17]MH_I2C_Read... [10:31:17]Read from MH i2c: F0 09 00 [10:31:17]MH_I2C_Read... [10:31:18]Read from MH i2c: F0 09 00 56 1C 00 7A 56 75 66 BD 8F 7C 64 41 [10:31:18]GetLastDocTimeStamp 1718965545 [10:31:18]current date 1718965882 [10:31:18]FM_GetShiftState [10:31:18]SAM_PROTO_GetShiftState [10:31:18]wFMCommunicate request_size=4 [10:31:18]MH_SAM_APDU [10:31:18]CAPDU: 80 13 01 00 [10:31:18]Write to MH i2c: E2 08 00 57 1C 80 13 01 00 00 00 00 00 F0 [10:31:18]Write i2c OK [10:31:18]MH_I2C_Read... [10:31:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:31:18]Read from MH i2c: E2 [10:31:18]MH_I2C_Read... [10:31:18]Read from MH i2c: E2 0E 00 [10:31:18]MH_I2C_Read... [10:31:18]Read from MH i2c: E2 0E 00 57 1C 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 03 [10:31:18]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [10:31:18]wFMCommunicate OK [10:31:18]SAM_PROTO_GetShiftState done [10:31:18]FM_GetShiftState done [10:31:18]opened in 1718929509 [10:31:18]opened+sec_in_day 1719015909 [10:31:18]quantity*price = 168196 [10:31:18]sum+1 = 168197 [10:31:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.96 ИТОГО: 1681.00 Внесено: 10000.00 СДАЧА: 8319.00 НСП 1% : 14.88 НДС 12% : 178.61 Наличными: 1681.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 55 21.06.2024 10:31 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104132 ФПД: 213611312762330 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T103122&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104132&fm=213611312762330&tin=02508201610067®Number=0000000000092785&sum=168100 [10:31:19]StoreToDocumentArchive [10:31:19]shift 355 fd 104132 [10:31:19]save to /storage/0355/doc_00104132 [10:31:19]save last doc name /storage/0355/doc_00104132 to /storage/kkm_last_doc_name [10:31:19]save OK [10:31:19]Clear old archive folders... [10:31:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:31:19]tlvbuf is 010FE7C0 [10:31:19]SAM_PROTO_ClearQueue [10:31:19]wFMCommunicate request_size=4 [10:31:19]MH_SAM_APDU [10:31:19]CAPDU: 80 09 00 00 [10:31:19]Write to MH i2c: E2 08 00 64 1C 80 09 00 00 00 00 00 00 F2 [10:31:19]Write i2c OK [10:31:19]MH_I2C_Read... [10:31:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:31:19]Read from MH i2c: E2 [10:31:19]MH_I2C_Read... [10:31:19]Read from MH i2c: E2 03 00 [10:31:19]MH_I2C_Read... [10:31:19]Read from MH i2c: E2 03 00 64 1C 00 90 00 F4 [10:31:19]RAPDU: 90 00 [10:31:19]wFMCommunicate OK [10:31:19]SAM_PROTO_ClearQueue done [10:31:19]KKMCreateOFDPacket [10:31:19]OFDProtocolAddRootSTLVToBuf [10:31:19]FM_MakeSignedData [10:31:19]FM_MakeSignedData [10:31:19]SAM_PROTO_SignData [10:31:19]wFMCommunicate request_size=4 [10:31:19]MH_SAM_APDU [10:31:19]CAPDU: 80 0D 01 02 [10:31:19]Write to MH i2c: E2 08 00 65 1C 80 0D 01 02 00 00 00 00 FA [10:31:19]Write i2c OK [10:31:19]MH_I2C_Read... [10:31:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:31:19]Read from MH i2c: E2 [10:31:19]MH_I2C_Read... [10:31:19]Read from MH i2c: E2 03 00 [10:31:19]MH_I2C_Read... [10:31:19]Read from MH i2c: E2 03 00 65 1C 00 90 00 F5 [10:31:19]RAPDU: 90 00 [10:31:19]wFMCommunicate OK [10:31:19]wFMCommunicate request_size=255 [10:31:19]MH_SAM_APDU [10:31:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E8 58 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 04 91 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 90 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D0 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 45 00 00 00 00 07 04 06 00 A4 90 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 7A 56 75 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 C4 96 01 00 35 04 06 00 C2 [10:31:19]Write to MH i2c: E2 02 01 66 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E8 58 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 04 91 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 90 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D0 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 45 00 00 00 00 07 04 06 00 A4 90 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 7A 56 75 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 C4 96 01 00 35 04 06 00 C2 00 00 8D [10:31:19]Write i2c OK [10:31:19]MH_I2C_Read... [10:31:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:31:19]Read from MH i2c: E2 [10:31:19]MH_I2C_Read... [10:31:19]Read from MH i2c: E2 03 00 [10:31:19]MH_I2C_Read... [10:31:19]Read from MH i2c: E2 03 00 66 1C 00 90 00 F6 [10:31:19]RAPDU: 90 00 [10:31:19]wFMCommunicate OK [10:31:19]wFMCommunicate request_size=10 [10:31:19]MH_SAM_APDU [10:31:19]CAPDU: 80 0D 02 02 05 47 42 6A CD DA [10:31:19]Write to MH i2c: E2 0D 00 67 1C 80 0D 02 02 05 00 47 42 6A CD DA 00 00 A1 [10:31:19]Write i2c OK [10:31:19]MH_I2C_Read... [10:31:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:31:19]Read from MH i2c: E2 [10:31:19]MH_I2C_Read... [10:31:19]Read from MH i2c: E2 03 00 [10:31:19]MH_I2C_Read... [10:31:19]Read from MH i2c: E2 03 00 67 1C 00 90 00 F7 [10:31:19]RAPDU: 90 00 [10:31:19]wFMCommunicate OK [10:31:19]wFMCommunicate request_size=4 [10:31:19]MH_SAM_APDU [10:31:19]CAPDU: 80 0D 03 02 [10:31:19]Write to MH i2c: E2 08 00 68 1C 80 0D 03 02 00 00 00 00 FF [10:31:19]Write i2c OK [10:31:19]MH_I2C_Read... [10:31:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:31:19]Read from MH i2c: E2 [10:31:19]MH_I2C_Read... [10:31:19]Read from MH i2c: E2 0B 00 [10:31:19]MH_I2C_Read... [10:31:19]Read from MH i2c: E2 0B 00 68 1C 00 12 30 05 64 F2 95 6E F7 90 00 97 [10:31:19]RAPDU: 12 30 05 64 F2 95 6E F7 90 00 [10:31:19]wFMCommunicate OK [10:31:19]SAM_PROTO_SignData done [10:31:19]FM_MakeSignedData done [10:31:19]CreateOFDProtocolMessage [10:31:19]wFMCommunicate request_size=4 [10:31:19]MH_SAM_APDU [10:31:19]CAPDU: 80 11 00 00 [10:31:19]Write to MH i2c: E2 08 00 69 1C 80 11 00 00 00 00 00 00 FF [10:31:19]Write i2c OK [10:31:19]MH_I2C_Read... [10:31:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:31:19]Read from MH i2c: E2 [10:31:19]MH_I2C_Read... [10:31:19]Read from MH i2c: E2 17 00 [10:31:19]MH_I2C_Read... [10:31:19]Read from MH i2c: E2 17 00 69 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 52 [10:31: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:31:19]wFMCommunicate OK [10:31:19]CreateOFDProtocolMessage done [10:31:19]OFDSenderStorePacket 104132 [10:31:19]StoreOFDPacket docnum=104132 [10:31: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 D1 B4 07 01 65 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E8 58 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 04 91 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 90 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D0 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 45 00 00 00 00 07 04 06 00 A4 90 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 7A 56 75 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 C4 96 01 00 35 04 06 00 C2 47 42 6A CD DA 12 30 05 64 F2 95 6E F7 [10:31:19]CheckFolder [10:31:19]dirname=/storage/ofd_packets [10:31:19]CheckFolder done [10:31:19]ProducePacketName [10:31:19]name=ofd_packets/00104132 [10:31:19]NVStorageSaveData ofd_packets/00104132 [10:31:19]File name is /storage/ofd_packets/00104132 [10:31:19]Write 301 bytes [10:31:19]NVStorageSaveData done [10:31:19]OFDSenderStorePacket done [10:31:19]KKMCreateOFDPacket done [10:31:19]NVStorageSaveData kkm_last_timestamp [10:31:19]File name is /storage/kkm_last_timestamp [10:31:19]Write 4 bytes [10:31:19]NVStorageSaveData done [10:31:19]ExternCall_PrintAddStr [10:31:19]wPrintStart [10:31:19]Write to MH i2c: 01 00 00 6A 1C 86 [10:31:19]Write i2c OK [10:31:19]MH_I2C_Read... [10:31:19]Read from MH i2c: 01 [10:31:19]MH_I2C_Read... [10:31:19]Read from MH i2c: 01 07 00 [10:31:19]MH_I2C_Read... [10:31:19]Read from MH i2c: 01 07 00 6A 1C 00 00 00 00 00 FF 0F 9B [10:31:19]RasterBufferAndPrint [10:31:19]line Счет N : (1)673540 [10:31:19]line ИНН: 02508201610067 [10:31:19]line Контрольно-Кассовый Чек [10:31:19]line ПРОДАЖА [10:31:19]line ТРК (МРК, ГНК) : 41 [10:31:19]line Товар: 2710124500 [10:31:19]line Аи-95-К-5 [10:31:19]line 22.760 * 73.90 [10:31:19]line = 1681.96 [10:31:19]line НДС 12% НСП 1% [10:31:19]line > о реализуемом товаре [10:31:19]line ОКРУГЛЕНИЕ: -0.96 [10:31:19]line ИТОГО: 1681.00 [10:31:19]line Внесено: 10000.00 [10:31:19]line СДАЧА: 8319.00 [10:31:19]line НСП 1% : 14.88 [10:31:19]line НДС 12% : 178.61 [10:31:19]line Наличными: 1681.00 [10:31:19]line Безнал.: 0.00 [10:31:19]line Место: АЗС № 120 "Партнер Нефть" [10:31:19]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [10:31:19]line СНО: Общий режим [10:31:19]line Чек 55 21.06.2024 10:31 [10:31:19]line Смена: 355 ФФД: 1.0 [10:31:19]line ЗНМ: 0300000164 [10:31:19]line РНМ: 0000000000092785 [10:31:19]line Версия ККМ: 001 [10:31:19]line ФМ: 0000000000875093 [10:31:19]line ФД: 104132 [10:31:19]line ФПД: 213611312762330 [10:31:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T103122&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104132&fm=213611312762330&tin=02508201610067®Number=0000000000092785&sum=168100 [10:31:20]OFD Sender: Processing packet 104132 [packets to send 17, broken 16] [10:31:20]ProducePacketName [10:31:20]name=ofd_packets/00104132 [10:31:20]OFD Sender: To server: pG, [10:31:20]CommunicateWithHost lk.salyk.kg:30040 [10:31:20]ConnectInit lk.salyk.kg [10:31:20]written 0, free lines is 4095 [10:31:20]Connected sock=10 [10:31: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 D1 B4 07 01 65 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E8 58 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 04 91 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 90 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D0 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 45 00 00 00 00 07 04 06 00 A4 90 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 7A 56 75 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 C4 96 01 00 35 04 06 00 C2 47 42 6A CD DA 12 30 05 64 F2 95 6E F7 [10:31:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 D4 22 47 00 55 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 C4 96 01 00 F4 03 04 00 FC FC 74 66 B6 04 01 00 00 DC 03 9E EC 37 66 6F 09 [10:31:20]CommunicateWithHost err = 0 [10:31:20]CheckOFDResponse [10:31:20]1017 (14) - 77093643461234 [10:31:20]1041 (16) - 0000000000875093 [10:31:20]1040 (4) - 104132 [10:31:20]1012 (4) - 21.06.2024 04:09 [10:31:20]1206 (1) - 0 [10:31:20]OFD Sender: Remove packet 104132 [10:31:20]ProducePacketName [10:31:20]name=ofd_packets/00104132 [10:31:20]NVStorageDeleteData [10:31:20]Write to MH i2c: 01 00 00 95 1C B1 [10:31:20]Write i2c OK [10:31:20]MH_I2C_Read... [10:31:20]Read from MH i2c: 01 [10:31:20]MH_I2C_Read... [10:31:20]Read from MH i2c: 01 07 00 [10:31:20]MH_I2C_Read... [10:31:20]Read from MH i2c: 01 07 00 95 1C 00 00 00 00 00 DD 0C A1 [10:31:20]RasterBufferAndPrint [10:31:20]line [10:31:20]line [10:31:20]line [10:31:20]line [10:31:20]line [10:31:20]written 0, free lines is 3302 [10:31:20]MH_Cut [10:31:20]Write to MH i2c: D1 01 00 9C 1C 01 8A [10:31:20]Write i2c OK [10:31:20]MH_I2C_Read... [10:31:20]Read from MH i2c: D1 [10:31:20]MH_I2C_Read... [10:31:20]Read from MH i2c: D1 01 00 [10:31:20]MH_I2C_Read... [10:31:20]Read from MH i2c: D1 01 00 9C 1C 00 89 [10:31:20]Write to MH i2c: 01 00 00 9D 1C B9 [10:31:20]Write i2c OK [10:31:20]MH_I2C_Read... [10:31:20]OFD Sender: No OFD packet to send [10:31:21]*** Cut start [10:31:21]*** Partial cut [10:31:21]*** CUTSNS_PIN = 1 [10:31:21]*** CUTSNS_PIN = 0 [10:31:21]*** Brake cut motor [10:31:21]Read from MH i2c: 01 [10:31:21]MH_I2C_Read... [10:31:21]*** Stop cut motor [10:31:21]*** Cut end [10:31:21]Read from MH i2c: 01 07 00 [10:31:21]MH_I2C_Read... [10:31:21]Read from MH i2c: 01 07 00 9D 1C 00 00 00 00 00 FF 0F CE [10:31:21]process_action close_receipt done [10:31:21]requested_data is exist [10:31:21]produce_requested_data [10:31:21]requested_item fm.sn is exist - process it [10:31:21]wFMCommunicate request_size=4 [10:31:21]MH_SAM_APDU [10:31:21]CAPDU: 80 11 00 00 [10:31:21]Write to MH i2c: E2 08 00 9E 1C 80 11 00 00 00 00 00 00 34 [10:31:21]Write i2c OK [10:31:21]MH_I2C_Read... [10:31:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:31:21]Read from MH i2c: E2 [10:31:21]MH_I2C_Read... [10:31:21]Read from MH i2c: E2 17 00 [10:31:21]MH_I2C_Read... [10:31:21]Read from MH i2c: E2 17 00 9E 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 87 [10: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 [10:31:21]wFMCommunicate OK [10:31:21]requested_item fd.num is exist - process it [10:31:21]SAM_PROTO_GetFieldsCounters [10:31:21]wFMCommunicate request_size=4 [10:31:21]MH_SAM_APDU [10:31:21]CAPDU: 80 13 00 00 [10:31:21]Write to MH i2c: E2 08 00 9F 1C 80 13 00 00 00 00 00 00 37 [10:31:21]Write i2c OK [10:31:21]MH_I2C_Read... [10:31:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:31:22]Read from MH i2c: E2 [10:31:22]MH_I2C_Read... [10:31:22]Read from MH i2c: E2 62 00 [10:31:22]MH_I2C_Read... [10:31:22]Read from MH i2c: E2 62 00 9F 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 C4 96 01 00 0E 04 04 00 63 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 C2 [10:31: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 C4 96 01 00 0E 04 04 00 63 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:31:22]wFMCommunicate OK [10:31:22]SAM_PROTO_GetFieldsCounters done [10:31:22]requested_item shift.num is exist - process it [10:31:22]requested_item shift.opened is exist - process it [10:31:22]req_shift_opened [10:31:22]FM_GetShiftState [10:31:22]SAM_PROTO_GetShiftState [10:31:22]wFMCommunicate request_size=4 [10:31:22]MH_SAM_APDU [10:31:22]CAPDU: 80 13 01 00 [10:31:22]Write to MH i2c: E2 08 00 A0 1C 80 13 01 00 00 00 00 00 39 [10:31:22]Write i2c OK [10:31:22]MH_I2C_Read... [10:31:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:31:22]Read from MH i2c: E2 [10:31:22]MH_I2C_Read... [10:31:22]Read from MH i2c: E2 0E 00 [10:31:22]MH_I2C_Read... [10:31:22]Read from MH i2c: E2 0E 00 A0 1C 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 4C [10:31:22]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [10:31:22]wFMCommunicate OK [10:31:22]SAM_PROTO_GetShiftState done [10:31:22]FM_GetShiftState done [10:31:22]req_shift_opened done [10:31:22]requested_item shift.open_date is exist - process it [10:31:22]req_shift_open_date [10:31:22]req_shift_open_date done [10:31:22]produce_requested_data done [10:31:22]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104132,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [10:31:22]process_action_free close_receipt [10:31:22]json_value_free [10:31:22]json_value_free done [10:31:22]process_json_proto returns [10:31:22]Send response to host [10:31:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104132,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [10:31:22]free response buf [10:31:22]execute_script done [10:31:22]execute_script returns [10:31:22]free content buf [10:31:22]Sock 9.Close socket [10:31:22]Sock 9.Thread stoped [10:31:25]OFD Sender: No OFD packet to send [10:31:30]OFD Sender: No OFD packet to send [10:31:35]OFD Sender: No OFD packet to send [10:31:37]accept exits with 7 [10:31:37]New connection [10:31:37]New thread 3066715492 created [10:31:37]Thread 3066858852 joined [10:31:37]Waiting for new connection... [10:31:37] Sock 7.Parse request [10:31:37]Sock 7.Check first char [10:31:37]Sock 7.First char is OK [10:31:37]request: POST /json_proto HTTP/1.0 [10:31:37]Method: POST [10:31:37]URL: /json_proto [10:31:37]Method is POST - this is cgi request [10:31:37]url: /json_proto [10:31:37]query_string will be loaded in cgi processing [10:31:37]execute_cgi json_proto POST (null) [10:31:37]execute_cgi path=json_proto method=POST [10:31:37]POST find Content-Length [10:31:37]Host: 172.17.38.133:8080 [10:31:37]Content-Length: 1157 [10:31:37]Content-Type: application/json [10:31:37] [10:31:37]POST finish read [10:31:37]Found Content-Length = 1157 [10:31:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 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)673541\u000A21.06.2024 10:08\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\u000A30086351\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:31:37]execute_script... [10:31:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 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)673541\u000A21.06.2024 10:08\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\u000A30086351\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:31:37]POST & json_proto [10:31:37]process_json_proto [10:31:37]json parsed OK: [10:31:37]protocol is kg_v1.0 [10:31:37]action value=print_text [10:31:37]process_action print_text [10:31:37]cmd_print_text [10:31:37]ExternCall_PrintAddStr [10:31:37]wPrintStart [10:31:37]Write to MH i2c: 01 00 00 A1 1C BD [10:31:37]Write i2c OK [10:31:37]MH_I2C_Read... [10:31:37]Read from MH i2c: 01 [10:31:37]MH_I2C_Read... [10:31:37]Read from MH i2c: 01 07 00 [10:31:37]MH_I2C_Read... [10:31:37]Read from MH i2c: 01 07 00 A1 1C 00 00 00 00 00 FF 0F D2 [10:31:37]RasterBufferAndPrint [10:31:37]line *****ТОВАРНЫЙ ЧЕК***** [10:31:37]line АЗС 120 [10:31:37]line Партнер нефть [10:31:37]line 02508201610067 [10:31:37]line Кассир : Асанбаев Н. [10:31:37]line Счет N : (1)673541 [10:31:37]line 21.06.2024 10:08 [10:31:37]line ПРОДАЖА [10:31:37]line ТРК (МРК, ГНК): 32 [10:31:37]line Вид ГСМ : 2710124130 [10:31:37]line Аи-92-К-5 [10:31:37]line 30.000 x 66.40 [10:31:37]line ИТОГ: 1992.00 [10:31:37]line Тип оплаты: Талоны: ТК ГПНА Online [10:31:37]line 30086351 [10:31:37]line ______________________ [10:31:37]line (подпись) [10:31:37]written 0, free lines is 4095 [10:31:37]Write to MH i2c: 01 00 00 B5 1C D1 [10:31:37]Write i2c OK [10:31:37]MH_I2C_Read... [10:31:37]Read from MH i2c: 01 [10:31:37]MH_I2C_Read... [10:31:37]Read from MH i2c: 01 07 00 [10:31:37]MH_I2C_Read... [10:31:37]Read from MH i2c: 01 07 00 B5 1C 00 00 00 00 00 10 0E F6 [10:31:37]RasterBufferAndPrint [10:31:37]line [10:31:37]line [10:31:37]line [10:31:37]line [10:31:37]line [10:31:37]written 0, free lines is 3602 [10:31:37]MH_Cut [10:31:37]Write to MH i2c: D1 01 00 BC 1C 01 AA [10:31:37]Write i2c OK [10:31:37]MH_I2C_Read... [10:31:37]Read from MH i2c: D1 [10:31:37]MH_I2C_Read... [10:31:37]Read from MH i2c: D1 01 00 [10:31:37]MH_I2C_Read... [10:31:37]Read from MH i2c: D1 01 00 BC 1C 00 A9 [10:31:37]Write to MH i2c: 01 00 00 BD 1C D9 [10:31:37]Write i2c OK [10:31:37]MH_I2C_Read... [10:31:37]*** Cut start [10:31:37]*** Partial cut [10:31:37]*** CUTSNS_PIN = 1 [10:31:37]*** CUTSNS_PIN = 0 [10:31:38]*** Brake cut motor [10:31:38]Read from MH i2c: 01 [10:31:38]MH_I2C_Read... [10:31:38]*** Stop cut motor [10:31:38]*** Cut end [10:31:38]Read from MH i2c: 01 07 00 [10:31:38]MH_I2C_Read... [10:31:38]Read from MH i2c: 01 07 00 BD 1C 00 00 00 00 00 FF 0F EE [10:31:38]process_action print_text done [10:31:38]requested_data is exist [10:31:38]produce_requested_data [10:31:38]requested_item fm.sn is exist - process it [10:31:38]wFMCommunicate request_size=4 [10:31:38]MH_SAM_APDU [10:31:38]CAPDU: 80 11 00 00 [10:31:38]Write to MH i2c: E2 08 00 BE 1C 80 11 00 00 00 00 00 00 54 [10:31:38]Write i2c OK [10:31:38]MH_I2C_Read... [10:31:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:31:38]Read from MH i2c: E2 [10:31:38]MH_I2C_Read... [10:31:38]Read from MH i2c: E2 17 00 [10:31:38]MH_I2C_Read... [10:31:38]Read from MH i2c: E2 17 00 BE 1C 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:31: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:31:38]wFMCommunicate OK [10:31:38]requested_item fd.num is exist - process it [10:31:38]SAM_PROTO_GetFieldsCounters [10:31:38]wFMCommunicate request_size=4 [10:31:38]MH_SAM_APDU [10:31:38]CAPDU: 80 13 00 00 [10:31:38]Write to MH i2c: E2 08 00 BF 1C 80 13 00 00 00 00 00 00 57 [10:31:38]Write i2c OK [10:31:38]MH_I2C_Read... [10:31:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:31:38]Read from MH i2c: E2 [10:31:38]MH_I2C_Read... [10:31:38]Read from MH i2c: E2 62 00 [10:31:38]MH_I2C_Read... [10:31:38]Read from MH i2c: E2 62 00 BF 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 C4 96 01 00 0E 04 04 00 63 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 E2 [10:31: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 C4 96 01 00 0E 04 04 00 63 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:31:38]wFMCommunicate OK [10:31:38]SAM_PROTO_GetFieldsCounters done [10:31:38]requested_item shift.num is exist - process it [10:31:38]requested_item shift.opened is exist - process it [10:31:38]req_shift_opened [10:31:38]FM_GetShiftState [10:31:38]SAM_PROTO_GetShiftState [10:31:38]wFMCommunicate request_size=4 [10:31:38]MH_SAM_APDU [10:31:38]CAPDU: 80 13 01 00 [10:31:38]Write to MH i2c: E2 08 00 C0 1C 80 13 01 00 00 00 00 00 59 [10:31:38]Write i2c OK [10:31:38]MH_I2C_Read... [10:31:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:31:38]Read from MH i2c: E2 [10:31:38]MH_I2C_Read... [10:31:38]Read from MH i2c: E2 0E 00 [10:31:38]MH_I2C_Read... [10:31:38]Read from MH i2c: E2 0E 00 C0 1C 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 6C [10:31:38]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [10:31:38]wFMCommunicate OK [10:31:38]SAM_PROTO_GetShiftState done [10:31:38]FM_GetShiftState done [10:31:38]req_shift_opened done [10:31:38]requested_item shift.open_date is exist - process it [10:31:38]req_shift_open_date [10:31:38]req_shift_open_date done [10:31:38]produce_requested_data done [10:31:38]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104132,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [10:31:38]process_action_free print_text [10:31:38]json_value_free [10:31:38]json_value_free done [10:31:38]process_json_proto returns [10:31:38]Send response to host [10:31:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104132,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [10:31:38]free response buf [10:31:38]execute_script done [10:31:38]execute_script returns [10:31:38]free content buf [10:31:38]Sock 7.Close socket [10:31:38]Sock 7.Thread stoped [10:31:40]OFD Sender: No OFD packet to send [10:31:45]OFD Sender: No OFD packet to send [10:31:50]OFD Sender: No OFD packet to send [10:31:55]OFD Sender: No OFD packet to send [10:32:00]OFD Sender: No OFD packet to send [10:32:05]OFD Sender: No OFD packet to send [10:32:10]OFD Sender: No OFD packet to send [10:32:15]OFD Sender: No OFD packet to send [10:32:20]OFD Sender: No OFD packet to send [10:32:25]OFD Sender: No OFD packet to send [10:32:30]OFD Sender: No OFD packet to send [10:32:35]OFD Sender: No OFD packet to send [10:32:41]OFD Sender: No OFD packet to send [10:32:46]OFD Sender: No OFD packet to send [10:32:51]OFD Sender: No OFD packet to send [10:32:56]OFD Sender: No OFD packet to send [10:33:01]OFD Sender: No OFD packet to send [10:33:06]OFD Sender: No OFD packet to send [10:33:11]OFD Sender: No OFD packet to send [10:33:16]OFD Sender: No OFD packet to send [10:33:21]OFD Sender: No OFD packet to send [10:33:26]OFD Sender: No OFD packet to send [10:33:31]OFD Sender: No OFD packet to send [10:33:36]OFD Sender: No OFD packet to send [10:33:41]OFD Sender: No OFD packet to send [10:33:46]OFD Sender: No OFD packet to send [10:33:51]OFD Sender: No OFD packet to send [10:33:56]OFD Sender: No OFD packet to send [10:34:01]OFD Sender: No OFD packet to send [10:34:06]OFD Sender: No OFD packet to send [10:34:11]OFD Sender: No OFD packet to send [10:34:16]OFD Sender: No OFD packet to send [10:34:21]OFD Sender: No OFD packet to send [10:34:26]OFD Sender: No OFD packet to send [10:34:31]OFD Sender: No OFD packet to send [10:34:36]OFD Sender: No OFD packet to send [10:34:41]OFD Sender: No OFD packet to send [10:34:46]OFD Sender: No OFD packet to send [10:34:51]OFD Sender: No OFD packet to send [10:34:56]OFD Sender: No OFD packet to send [10:35:01]OFD Sender: No OFD packet to send [10:35:06]OFD Sender: No OFD packet to send [10:35:11]OFD Sender: No OFD packet to send [10:35:16]OFD Sender: No OFD packet to send [10:35:21]OFD Sender: No OFD packet to send [10:35:26]OFD Sender: No OFD packet to send [10:35:31]OFD Sender: No OFD packet to send [10:35:36]OFD Sender: No OFD packet to send [10:35:41]OFD Sender: No OFD packet to send [10:35:46]OFD Sender: No OFD packet to send [10:35:51]OFD Sender: No OFD packet to send [10:35:56]OFD Sender: No OFD packet to send [10:36:01]OFD Sender: No OFD packet to send [10:36:06]OFD Sender: No OFD packet to send [10:36:11]OFD Sender: No OFD packet to send [10:36:16]OFD Sender: No OFD packet to send [10:36:21]OFD Sender: No OFD packet to send [10:36:26]OFD Sender: No OFD packet to send [10:36:31]OFD Sender: No OFD packet to send [10:36:36]OFD Sender: No OFD packet to send [10:36:41]OFD Sender: No OFD packet to send [10:36:46]OFD Sender: No OFD packet to send [10:36:47]accept exits with 9 [10:36:47]New connection [10:36:47]New thread 3066858852 created [10:36:47] Sock 9.Parse request [10:36:47]Thread 3066715492 joined [10:36:47]Sock 9.Check first char [10:36:47]Waiting for new connection... [10:36:47]Sock 9.First char is OK [10:36:47]request: POST /json_proto HTTP/1.0 [10:36:47]Method: POST [10:36:47]URL: /json_proto [10:36:47]Method is POST - this is cgi request [10:36:47]url: /json_proto [10:36:47]query_string will be loaded in cgi processing [10:36:47]execute_cgi json_proto POST (null) [10:36:47]execute_cgi path=json_proto method=POST [10:36:47]POST find Content-Length [10:36:47]Host: 172.17.38.133:8080 [10:36:47]Content-Length: 1195 [10:36:47]Content-Type: application/json [10:36:47] [10:36:47]POST finish read [10:36:47]Found Content-Length = 1195 [10:36: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 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)673543\u000A21.06.2024 10: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: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03346\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:36:47]execute_script... [10:36: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 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)673543\u000A21.06.2024 10: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: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03346\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:36:47]POST & json_proto [10:36:47]process_json_proto [10:36:47]json parsed OK: [10:36:47]protocol is kg_v1.0 [10:36:47]action value=print_text [10:36:47]process_action print_text [10:36:47]cmd_print_text [10:36:47]ExternCall_PrintAddStr [10:36:47]wPrintStart [10:36:47]Write to MH i2c: 01 00 00 C1 1C DD [10:36:47]Write i2c OK [10:36:47]MH_I2C_Read... [10:36:47]Read from MH i2c: 01 [10:36:47]MH_I2C_Read... [10:36:47]Read from MH i2c: 01 07 00 [10:36:47]MH_I2C_Read... [10:36:47]Read from MH i2c: 01 07 00 C1 1C 00 00 00 00 00 FF 0F F2 [10:36:47]RasterBufferAndPrint [10:36:47]line *****ТОВАРНЫЙ ЧЕК***** [10:36:47]line АЗС 120 [10:36:47]line Партнер нефть [10:36:47]line 02508201610067 [10:36:47]line Кассир : Асанбаев Н. [10:36:47]line Счет N : (1)673543 [10:36:47]line 21.06.2024 10:14 [10:36:47]line ПРОДАЖА [10:36:47]line ТРК (МРК, ГНК): 42 [10:36:47]line Вид ГСМ : 2710124130 [10:36:47]line Аи-92-К-5 [10:36:47]line 20.000 x 66.40 [10:36:47]line ИТОГ: 1328.00 [10:36:47]line Тип оплаты: Талоны: Топливная Карта [10:36:47]line 03346 [10:36:47]line ______________________ [10:36:47]line (подпись) [10:36:47]written 0, free lines is 4095 [10:36:47]Write to MH i2c: 01 00 00 D5 1C F1 [10:36:47]Write i2c OK [10:36:47]MH_I2C_Read... [10:36:47]Read from MH i2c: 01 [10:36:47]MH_I2C_Read... [10:36:47]Read from MH i2c: 01 07 00 [10:36:47]MH_I2C_Read... [10:36:47]Read from MH i2c: 01 07 00 D5 1C 00 00 00 00 00 10 0E 16 [10:36:47]RasterBufferAndPrint [10:36:47]line [10:36:47]line [10:36:47]line [10:36:47]line [10:36:47]line [10:36:47]written 0, free lines is 3601 [10:36:47]MH_Cut [10:36:47]Write to MH i2c: D1 01 00 DC 1C 01 CA [10:36:47]Write i2c OK [10:36:47]MH_I2C_Read... [10:36:47]Read from MH i2c: D1 [10:36:47]MH_I2C_Read... [10:36:47]Read from MH i2c: D1 01 00 [10:36:47]MH_I2C_Read... [10:36:47]Read from MH i2c: D1 01 00 DC 1C 00 C9 [10:36:47]Write to MH i2c: 01 00 00 DD 1C F9 [10:36:47]Write i2c OK [10:36:47]MH_I2C_Read... [10:36:48]*** Cut start [10:36:48]*** Partial cut [10:36:48]*** CUTSNS_PIN = 1 [10:36:48]*** CUTSNS_PIN = 0 [10:36:48]*** Brake cut motor [10:36:48]Read from MH i2c: 01 [10:36:48]MH_I2C_Read... [10:36:48]Read from MH i2c: 01 07 00 [10:36:48]MH_I2C_Read... [10:36:48]*** Stop cut motor [10:36:48]*** Cut end [10:36:48]Read from MH i2c: 01 07 00 DD 1C 00 00 00 00 00 FF 0F 0E [10:36:48]process_action print_text done [10:36:48]requested_data is exist [10:36:48]produce_requested_data [10:36:48]requested_item fm.sn is exist - process it [10:36:48]wFMCommunicate request_size=4 [10:36:48]MH_SAM_APDU [10:36:48]CAPDU: 80 11 00 00 [10:36:48]Write to MH i2c: E2 08 00 DE 1C 80 11 00 00 00 00 00 00 74 [10:36:48]Write i2c OK [10:36:48]MH_I2C_Read... [10:36:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:36:49]Read from MH i2c: E2 [10:36:49]MH_I2C_Read... [10:36:49]Read from MH i2c: E2 17 00 [10:36:49]MH_I2C_Read... [10:36:49]Read from MH i2c: E2 17 00 DE 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 C7 [10:36: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:36:49]wFMCommunicate OK [10:36:49]requested_item fd.num is exist - process it [10:36:49]SAM_PROTO_GetFieldsCounters [10:36:49]wFMCommunicate request_size=4 [10:36:49]MH_SAM_APDU [10:36:49]CAPDU: 80 13 00 00 [10:36:49]Write to MH i2c: E2 08 00 DF 1C 80 13 00 00 00 00 00 00 77 [10:36:49]Write i2c OK [10:36:49]MH_I2C_Read... [10:36:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:36:49]Read from MH i2c: E2 [10:36:49]MH_I2C_Read... [10:36:49]Read from MH i2c: E2 62 00 [10:36:49]MH_I2C_Read... [10:36:49]Read from MH i2c: E2 62 00 DF 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 C4 96 01 00 0E 04 04 00 63 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 02 [10:36: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 C4 96 01 00 0E 04 04 00 63 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:36:49]wFMCommunicate OK [10:36:49]SAM_PROTO_GetFieldsCounters done [10:36:49]requested_item shift.num is exist - process it [10:36:49]requested_item shift.opened is exist - process it [10:36:49]req_shift_opened [10:36:49]FM_GetShiftState [10:36:49]SAM_PROTO_GetShiftState [10:36:49]wFMCommunicate request_size=4 [10:36:49]MH_SAM_APDU [10:36:49]CAPDU: 80 13 01 00 [10:36:49]Write to MH i2c: E2 08 00 E0 1C 80 13 01 00 00 00 00 00 79 [10:36:49]Write i2c OK [10:36:49]MH_I2C_Read... [10:36:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:36:49]Read from MH i2c: E2 [10:36:49]MH_I2C_Read... [10:36:49]Read from MH i2c: E2 0E 00 [10:36:49]MH_I2C_Read... [10:36:49]Read from MH i2c: E2 0E 00 E0 1C 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 8C [10:36:49]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [10:36:49]wFMCommunicate OK [10:36:49]SAM_PROTO_GetShiftState done [10:36:49]FM_GetShiftState done [10:36:49]req_shift_opened done [10:36:49]requested_item shift.open_date is exist - process it [10:36:49]req_shift_open_date [10:36:49]req_shift_open_date done [10:36:49]produce_requested_data done [10:36:49]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104132,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [10:36:49]process_action_free print_text [10:36:49]json_value_free [10:36:49]json_value_free done [10:36:49]process_json_proto returns [10:36:49]Send response to host [10:36:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104132,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [10:36:49]free response buf [10:36:49]execute_script done [10:36:49]execute_script returns [10:36:49]free content buf [10:36:49]Sock 9.Close socket [10:36:49]Sock 9.Thread stoped [10:36:51]OFD Sender: No OFD packet to send [10:36:56]OFD Sender: No OFD packet to send [10:37:01]OFD Sender: No OFD packet to send [10:37:06]OFD Sender: No OFD packet to send [10:37:11]OFD Sender: No OFD packet to send [10:37:16]OFD Sender: No OFD packet to send [10:37:21]OFD Sender: No OFD packet to send [10:37:26]OFD Sender: No OFD packet to send [10:37:31]OFD Sender: No OFD packet to send [10:37:36]OFD Sender: No OFD packet to send [10:37:41]OFD Sender: No OFD packet to send [10:37:46]OFD Sender: No OFD packet to send [10:37:51]OFD Sender: No OFD packet to send [10:37:56]OFD Sender: No OFD packet to send [10:38:01]OFD Sender: No OFD packet to send [10:38:06]OFD Sender: No OFD packet to send [10:38:11]OFD Sender: No OFD packet to send [10:38:16]OFD Sender: No OFD packet to send [10:38:21]OFD Sender: No OFD packet to send [10:38:26]OFD Sender: No OFD packet to send [10:38:31]OFD Sender: No OFD packet to send [10:38:36]OFD Sender: No OFD packet to send [10:38:41]OFD Sender: No OFD packet to send [10:38:46]OFD Sender: No OFD packet to send [10:38:51]OFD Sender: No OFD packet to send [10:38:56]OFD Sender: No OFD packet to send [10:39:01]OFD Sender: No OFD packet to send [10:39:01]accept exits with 10 [10:39:01]New connection [10:39:01]New thread 3066715492 created [10:39:01]Thread 3066858852 joined [10:39:01]Waiting for new connection... [10:39:01] Sock 10.Parse request [10:39:01]Sock 10.Check first char [10:39:01]Sock 10.First char is OK [10:39:01]request: POST /json_proto HTTP/1.0 [10:39:01]Method: POST [10:39:01]URL: /json_proto [10:39:01]Method is POST - this is cgi request [10:39:01]url: /json_proto [10:39:01]query_string will be loaded in cgi processing [10:39:01]execute_cgi json_proto POST (null) [10:39:01]execute_cgi path=json_proto method=POST [10:39:01]POST find Content-Length [10:39:01]Host: 172.17.38.133:8080 [10:39:01]Content-Length: 1162 [10:39:01]Content-Type: application/json [10:39:01] [10:39:01]POST finish read [10:39:01]Found Content-Length = 1162 [10:39:01]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)673542\u000A21.06.2024 10: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 80.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 5832.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30140232\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:39:01]execute_script... [10:39:01]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)673542\u000A21.06.2024 10: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 80.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 5832.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30140232\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:39:01]POST & json_proto [10:39:01]process_json_proto [10:39:01]json parsed OK: [10:39:01]protocol is kg_v1.0 [10:39:01]action value=print_text [10:39:01]process_action print_text [10:39:01]cmd_print_text [10:39:01]ExternCall_PrintAddStr [10:39:01]wPrintStart [10:39:01]Write to MH i2c: 01 00 00 E1 1C FD [10:39:01]Write i2c OK [10:39:01]MH_I2C_Read... [10:39:01]Read from MH i2c: 01 [10:39:01]MH_I2C_Read... [10:39:01]Read from MH i2c: 01 07 00 [10:39:01]MH_I2C_Read... [10:39:01]Read from MH i2c: 01 07 00 E1 1C 00 00 00 00 00 FF 0F 12 [10:39:01]RasterBufferAndPrint [10:39:01]line *****ТОВАРНЫЙ ЧЕК***** [10:39:01]line АЗС 120 [10:39:01]line Партнер нефть [10:39:01]line 02508201610067 [10:39:01]line Кассир : Асанбаев Н. [10:39:01]line Счет N : (1)673542 [10:39:01]line 21.06.2024 10:16 [10:39:01]line ПРОДАЖА [10:39:01]line ТРК (МРК, ГНК): 11 [10:39:01]line Вид ГСМ : 2710194210 [10:39:01]line ДТ(л)-К-5 [10:39:01]line 80.000 x 72.90 [10:39:01]line ИТОГ: 5832.00 [10:39:01]line Тип оплаты: Талоны: ТК ГПНА Online [10:39:01]line 30140232 [10:39:01]line ______________________ [10:39:01]line (подпись) [10:39:01]written 0, free lines is 4095 [10:39:01]Write to MH i2c: 01 00 00 F5 1C 11 [10:39:01]Write i2c OK [10:39:01]MH_I2C_Read... [10:39:01]Read from MH i2c: 01 [10:39:01]MH_I2C_Read... [10:39:01]Read from MH i2c: 01 07 00 [10:39:01]MH_I2C_Read... [10:39:01]Read from MH i2c: 01 07 00 F5 1C 00 00 00 00 00 0F 0E 35 [10:39:01]RasterBufferAndPrint [10:39:01]line [10:39:01]line [10:39:01]line [10:39:01]line [10:39:01]line [10:39:01]written 0, free lines is 3600 [10:39:01]MH_Cut [10:39:01]Write to MH i2c: D1 01 00 FC 1C 01 EA [10:39:01]Write i2c OK [10:39:01]MH_I2C_Read... [10:39:01]Read from MH i2c: D1 [10:39:01]MH_I2C_Read... [10:39:01]Read from MH i2c: D1 01 00 [10:39:01]MH_I2C_Read... [10:39:01]Read from MH i2c: D1 01 00 FC 1C 00 E9 [10:39:01]Write to MH i2c: 01 00 00 FD 1C 19 [10:39:01]Write i2c OK [10:39:01]MH_I2C_Read... [10:39:02]*** Cut start [10:39:02]*** Partial cut [10:39:02]*** CUTSNS_PIN = 1 [10:39:02]*** CUTSNS_PIN = 0 [10:39:02]*** Brake cut motor [10:39:02]Read from MH i2c: 01 [10:39:02]MH_I2C_Read... [10:39:02]*** Stop cut motor [10:39:02]*** Cut end [10:39:02]Read from MH i2c: 01 07 00 [10:39:02]MH_I2C_Read... [10:39:02]Read from MH i2c: 01 07 00 FD 1C 00 00 00 00 00 FF 0F 2E [10:39:02]process_action print_text done [10:39:02]requested_data is exist [10:39:02]produce_requested_data [10:39:02]requested_item fm.sn is exist - process it [10:39:02]wFMCommunicate request_size=4 [10:39:02]MH_SAM_APDU [10:39:02]CAPDU: 80 11 00 00 [10:39:02]Write to MH i2c: E2 08 00 FE 1C 80 11 00 00 00 00 00 00 94 [10:39:02]Write i2c OK [10:39:02]MH_I2C_Read... [10:39:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:39:02]Read from MH i2c: E2 [10:39:02]MH_I2C_Read... [10:39:02]Read from MH i2c: E2 17 00 [10:39:02]MH_I2C_Read... [10:39:02]Read from MH i2c: E2 17 00 FE 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 E7 [10:39: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:39:02]wFMCommunicate OK [10:39:02]requested_item fd.num is exist - process it [10:39:02]SAM_PROTO_GetFieldsCounters [10:39:02]wFMCommunicate request_size=4 [10:39:02]MH_SAM_APDU [10:39:02]CAPDU: 80 13 00 00 [10:39:02]Write to MH i2c: E2 08 00 FF 1C 80 13 00 00 00 00 00 00 97 [10:39:02]Write i2c OK [10:39:02]MH_I2C_Read... [10:39:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:39:03]Read from MH i2c: E2 [10:39:03]MH_I2C_Read... [10:39:03]Read from MH i2c: E2 62 00 [10:39:03]MH_I2C_Read... [10:39:03]Read from MH i2c: E2 62 00 FF 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 C4 96 01 00 0E 04 04 00 63 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 22 [10:39:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 96 01 00 0E 04 04 00 63 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:39:03]wFMCommunicate OK [10:39:03]SAM_PROTO_GetFieldsCounters done [10:39:03]requested_item shift.num is exist - process it [10:39:03]requested_item shift.opened is exist - process it [10:39:03]req_shift_opened [10:39:03]FM_GetShiftState [10:39:03]SAM_PROTO_GetShiftState [10:39:03]wFMCommunicate request_size=4 [10:39:03]MH_SAM_APDU [10:39:03]CAPDU: 80 13 01 00 [10:39:03]Write to MH i2c: E2 08 00 00 1D 80 13 01 00 00 00 00 00 9A [10:39:03]Write i2c OK [10:39:03]MH_I2C_Read... [10:39:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:39:03]Read from MH i2c: E2 [10:39:03]MH_I2C_Read... [10:39:03]Read from MH i2c: E2 0E 00 [10:39:03]MH_I2C_Read... [10:39:03]Read from MH i2c: E2 0E 00 00 1D 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 AD [10:39:03]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [10:39:03]wFMCommunicate OK [10:39:03]SAM_PROTO_GetShiftState done [10:39:03]FM_GetShiftState done [10:39:03]req_shift_opened done [10:39:03]requested_item shift.open_date is exist - process it [10:39:03]req_shift_open_date [10:39:03]req_shift_open_date done [10:39:03]produce_requested_data done [10:39:03]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104132,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [10:39:03]process_action_free print_text [10:39:03]json_value_free [10:39:03]json_value_free done [10:39:03]process_json_proto returns [10:39:03]Send response to host [10:39:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104132,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [10:39:03]free response buf [10:39:03]execute_script done [10:39:03]execute_script returns [10:39:03]free content buf [10:39:03]Sock 10.Close socket [10:39:03]Sock 10.Thread stoped [10:39:06]OFD Sender: No OFD packet to send [10:39:11]OFD Sender: No OFD packet to send [10:39:16]OFD Sender: No OFD packet to send [10:39:21]OFD Sender: No OFD packet to send [10:39:26]OFD Sender: No OFD packet to send [10:39:31]OFD Sender: No OFD packet to send [10:39:36]OFD Sender: No OFD packet to send [10:39:41]OFD Sender: No OFD packet to send [10:39:46]OFD Sender: No OFD packet to send [10:39:51]OFD Sender: No OFD packet to send [10:39:56]OFD Sender: No OFD packet to send [10:40:01]OFD Sender: No OFD packet to send [10:40:06]OFD Sender: No OFD packet to send [10:40:11]OFD Sender: No OFD packet to send [10:40:16]OFD Sender: No OFD packet to send [10:40:21]OFD Sender: No OFD packet to send [10:40:26]OFD Sender: No OFD packet to send [10:40:31]OFD Sender: No OFD packet to send [10:40:36]OFD Sender: No OFD packet to send [10:40:41]OFD Sender: No OFD packet to send [10:40:46]OFD Sender: No OFD packet to send [10:40:51]OFD Sender: No OFD packet to send [10:40:56]OFD Sender: No OFD packet to send [10:41:01]OFD Sender: No OFD packet to send [10:41:06]OFD Sender: No OFD packet to send [10:41:11]OFD Sender: No OFD packet to send [10:41:16]OFD Sender: No OFD packet to send [10:41:21]OFD Sender: No OFD packet to send [10:41:26]OFD Sender: No OFD packet to send [10:41:31]OFD Sender: No OFD packet to send [10:41:36]OFD Sender: No OFD packet to send [10:41:41]OFD Sender: No OFD packet to send [10:41:46]OFD Sender: No OFD packet to send [10:41:51]OFD Sender: No OFD packet to send [10:41:56]OFD Sender: No OFD packet to send [10:42:01]OFD Sender: No OFD packet to send [10:42:06]OFD Sender: No OFD packet to send [10:42:11]OFD Sender: No OFD packet to send [10:42:16]OFD Sender: No OFD packet to send [10:42:21]OFD Sender: No OFD packet to send [10:42:26]OFD Sender: No OFD packet to send [10:42:31]OFD Sender: No OFD packet to send [10:42:36]OFD Sender: No OFD packet to send [10:42:41]OFD Sender: No OFD packet to send [10:42:46]OFD Sender: No OFD packet to send [10:42:51]OFD Sender: No OFD packet to send [10:42:56]OFD Sender: No OFD packet to send [10:43:01]OFD Sender: No OFD packet to send [10:43:06]OFD Sender: No OFD packet to send [10:43:11]OFD Sender: No OFD packet to send [10:43:16]OFD Sender: No OFD packet to send [10:43:21]OFD Sender: No OFD packet to send [10:43:26]OFD Sender: No OFD packet to send [10:43:31]OFD Sender: No OFD packet to send [10:43:36]OFD Sender: No OFD packet to send [10:43:41]OFD Sender: No OFD packet to send [10:43:46]OFD Sender: No OFD packet to send [10:43:51]OFD Sender: No OFD packet to send [10:43:56]OFD Sender: No OFD packet to send [10:44:01]OFD Sender: No OFD packet to send [10:44:06]OFD Sender: No OFD packet to send [10:44:11]OFD Sender: No OFD packet to send [10:44:16]OFD Sender: No OFD packet to send [10:44:21]OFD Sender: No OFD packet to send [10:44:26]OFD Sender: No OFD packet to send [10:44:31]OFD Sender: No OFD packet to send [10:44:36]OFD Sender: No OFD packet to send [10:44:41]OFD Sender: No OFD packet to send [10:44:44]accept exits with 7 [10:44:44]New connection [10:44:44]New thread 3066858852 created [10:44:44]Thread 3066715492 joined [10:44:44]Waiting for new connection... [10:44:44] Sock 7.Parse request [10:44:44]Sock 7.Check first char [10:44:44]Sock 7.First char is OK [10:44:44]request: POST /json_proto HTTP/1.0 [10:44:44]Method: POST [10:44:44]URL: /json_proto [10:44:44]Method is POST - this is cgi request [10:44:44]url: /json_proto [10:44:44]query_string will be loaded in cgi processing [10:44:44]execute_cgi json_proto POST (null) [10:44:44]execute_cgi path=json_proto method=POST [10:44:44]POST find Content-Length [10:44:44]Host: 172.17.38.133:8080 [10:44:44]Content-Length: 647 [10:44:44]Content-Type: application/json [10:44:44] [10:44:44]POST finish read [10:44:44]Found Content-Length = 647 [10:44:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673546", "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" : 50.000, "sum" : 3645.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 3645.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:44:44]execute_script... [10:44: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)673546", "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" : 50.000, "sum" : 3645.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 3645.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:44:44]POST & json_proto [10:44:44]process_json_proto [10:44:44]json parsed OK: [10:44:44]protocol is kg_v1.0 [10:44:44]action value=close_receipt [10:44:44]process_action close_receipt [10:44:44]cmd_close_receipt [10:44:44]MH_GetDate [10:44:44]Write to MH i2c: F0 00 00 01 1D 0D [10:44:44]Write i2c OK [10:44:44]MH_I2C_Read... [10:44:44]Read from MH i2c: F0 [10:44:44]MH_I2C_Read... [10:44:44]Read from MH i2c: F0 09 00 [10:44:44]MH_I2C_Read... [10:44:44]Read from MH i2c: F0 09 00 01 1D 00 A0 59 75 66 BD 8F 7C 64 16 [10:44:44]GetLastDocTimeStamp 1718965882 [10:44:44]current date 1718966688 [10:44:44]FM_GetShiftState [10:44:44]SAM_PROTO_GetShiftState [10:44:44]wFMCommunicate request_size=4 [10:44:44]MH_SAM_APDU [10:44:44]CAPDU: 80 13 01 00 [10:44:44]Write to MH i2c: E2 08 00 02 1D 80 13 01 00 00 00 00 00 9C [10:44:44]Write i2c OK [10:44:44]MH_I2C_Read... [10:44:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:44:44]Read from MH i2c: E2 [10:44:44]MH_I2C_Read... [10:44:44]Read from MH i2c: E2 0E 00 [10:44:44]MH_I2C_Read... [10:44:44]Read from MH i2c: E2 0E 00 02 1D 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 AF [10:44:44]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [10:44:44]wFMCommunicate OK [10:44:44]SAM_PROTO_GetShiftState done [10:44:44]FM_GetShiftState done [10:44:44]opened in 1718929509 [10:44:44]opened+sec_in_day 1719015909 [10:44:44]quantity*price = 364500 [10:44:44]sum+1 = 364501 [10:44:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3645.00 НСП 1% : 32.26 НДС 12% : 387.08 Наличными: 3645.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 56 21.06.2024 10:44 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104133 ФПД: 120424037070051 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T104448&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104133&fm=120424037070051&tin=02508201610067®Number=0000000000092785&sum=364500 [10:44:45]StoreToDocumentArchive [10:44:45]shift 355 fd 104133 [10:44:45]save to /storage/0355/doc_00104133 [10:44:45]save last doc name /storage/0355/doc_00104133 to /storage/kkm_last_doc_name [10:44:45]save OK [10:44:45]Clear old archive folders... [10:44:45]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:44:45]tlvbuf is 01134ED0 [10:44:45]SAM_PROTO_ClearQueue [10:44:45]wFMCommunicate request_size=4 [10:44:45]MH_SAM_APDU [10:44:45]CAPDU: 80 09 00 00 [10:44:45]Write to MH i2c: E2 08 00 0F 1D 80 09 00 00 00 00 00 00 9E [10:44:45]Write i2c OK [10:44:45]MH_I2C_Read... [10:44:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:44:45]Read from MH i2c: E2 [10:44:45]MH_I2C_Read... [10:44:45]Read from MH i2c: E2 03 00 [10:44:45]MH_I2C_Read... [10:44:45]Read from MH i2c: E2 03 00 0F 1D 00 90 00 A0 [10:44:45]RAPDU: 90 00 [10:44:45]wFMCommunicate OK [10:44:45]SAM_PROTO_ClearQueue done [10:44:45]KKMCreateOFDPacket [10:44:45]OFDProtocolAddRootSTLVToBuf [10:44:45]FM_MakeSignedData [10:44:45]FM_MakeSignedData [10:44:45]SAM_PROTO_SignData [10:44:45]wFMCommunicate request_size=4 [10:44:45]MH_SAM_APDU [10:44:45]CAPDU: 80 0D 01 02 [10:44:45]Write to MH i2c: E2 08 00 10 1D 80 0D 01 02 00 00 00 00 A6 [10:44:45]Write i2c OK [10:44:45]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 10 1D 00 90 00 A1 [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 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 C3 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 D4 8F 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 8F 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 34 97 00 00 00 00 07 04 06 00 D4 8F 05 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 A0 59 75 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 C5 96 01 00 35 04 06 00 [10:44:46]Write to MH i2c: E2 02 01 11 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 50 C3 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 D4 8F 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 8F 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 34 97 00 00 00 00 07 04 06 00 D4 8F 05 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 A0 59 75 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 C5 96 01 00 35 04 06 00 00 00 0F [10:44:46]Write i2c OK [10:44:46]MH_I2C_Read... [10:44:46]*** iso7816_exchange 80 0D 02 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 11 1D 00 90 00 A2 [10:44:46]RAPDU: 90 00 [10:44:46]wFMCommunicate OK [10:44:46]wFMCommunicate request_size=11 [10:44:46]MH_SAM_APDU [10:44:46]CAPDU: 80 0D 02 02 06 6D 86 67 F3 B4 E3 [10:44:46]Write to MH i2c: E2 0E 00 12 1D 80 0D 02 02 06 00 6D 86 67 F3 B4 E3 00 00 99 [10:44:46]Write i2c OK [10:44:46]MH_I2C_Read... [10:44:46]*** iso7816_exchange 80 0D 02 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 12 1D 00 90 00 A3 [10:44:46]RAPDU: 90 00 [10:44:46]wFMCommunicate OK [10:44:46]wFMCommunicate request_size=4 [10:44:46]MH_SAM_APDU [10:44:46]CAPDU: 80 0D 03 02 [10:44:46]Write to MH i2c: E2 08 00 13 1D 80 0D 03 02 00 00 00 00 AB [10:44:46]Write i2c OK [10:44:46]MH_I2C_Read... [10:44:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:44:46]Read from MH i2c: E2 [10:44:46]MH_I2C_Read... [10:44:46]Read from MH i2c: E2 0B 00 [10:44:46]MH_I2C_Read... [10:44:46]Read from MH i2c: E2 0B 00 13 1D 00 0C CE A2 C5 EF 70 95 92 90 00 73 [10:44:46]RAPDU: 0C CE A2 C5 EF 70 95 92 90 00 [10:44:46]wFMCommunicate OK [10:44:46]SAM_PROTO_SignData done [10:44:46]FM_MakeSignedData done [10:44:46]CreateOFDProtocolMessage [10:44:46]wFMCommunicate request_size=4 [10:44:46]MH_SAM_APDU [10:44:46]CAPDU: 80 11 00 00 [10:44:46]Write to MH i2c: E2 08 00 14 1D 80 11 00 00 00 00 00 00 AB [10:44:46]Write i2c OK [10:44:46]MH_I2C_Read... [10:44:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:44:46]Read from MH i2c: E2 [10:44:46]MH_I2C_Read... [10:44:46]Read from MH i2c: E2 17 00 [10:44:46]MH_I2C_Read... [10:44:46]Read from MH i2c: E2 17 00 14 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 FE [10:44: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:44:46]wFMCommunicate OK [10:44:46]CreateOFDProtocolMessage done [10:44:46]OFDSenderStorePacket 104133 [10:44:46]StoreOFDPacket docnum=104133 [10:44: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 6E 69 08 01 E3 8F 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 C3 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 D4 8F 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 8F 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 34 97 00 00 00 00 07 04 06 00 D4 8F 05 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 A0 59 75 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 C5 96 01 00 35 04 06 00 6D 86 67 F3 B4 E3 0C CE A2 C5 EF 70 95 92 [10:44:46]CheckFolder [10:44:46]dirname=/storage/ofd_packets [10:44:46]CheckFolder done [10:44:46]ProducePacketName [10:44:46]name=ofd_packets/00104133 [10:44:46]NVStorageSaveData ofd_packets/00104133 [10:44:46]File name is /storage/ofd_packets/00104133 [10:44:46]Write 302 bytes [10:44:46]NVStorageSaveData done [10:44:46]OFDSenderStorePacket done [10:44:46]KKMCreateOFDPacket done [10:44:46]NVStorageSaveData kkm_last_timestamp [10:44:46]File name is /storage/kkm_last_timestamp [10:44:46]Write 4 bytes [10:44:46]NVStorageSaveData done [10:44:46]ExternCall_PrintAddStr [10:44:46]wPrintStart [10:44:46]Write to MH i2c: 01 00 00 15 1D 32 [10:44:46]Write i2c OK [10:44:46]MH_I2C_Read... [10:44:46]Read from MH i2c: 01 [10:44:46]MH_I2C_Read... [10:44:46]Read from MH i2c: 01 07 00 [10:44:46]MH_I2C_Read... [10:44:46]Read from MH i2c: 01 07 00 15 1D 00 00 00 00 00 FF 0F 47 [10:44:46]RasterBufferAndPrint [10:44:46]line Счет N : (1)673546 [10:44:46]line ИНН: 02508201610067 [10:44:46]line Контрольно-Кассовый Чек [10:44:46]line ПРОДАЖА [10:44:46]line ТРК (МРК, ГНК) : 11 [10:44:46]line Товар: 2710194210 [10:44:46]line ДТ(л)-К-5 [10:44:46]line 50.000 * 72.90 [10:44:46]line = 3645.00 [10:44:46]line НДС 12% НСП 1% [10:44:46]line > о реализуемом товаре [10:44:46]line ИТОГО: 3645.00 [10:44:46]line НСП 1% : 32.26 [10:44:46]line НДС 12% : 387.08 [10:44:46]line Наличными: 3645.00 [10:44:46]line Безнал.: 0.00 [10:44:46]line Место: АЗС № 120 "Партнер Нефть" [10:44:46]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [10:44:46]line СНО: Общий режим [10:44:46]line Чек 56 21.06.2024 10:44 [10:44:46]line Смена: 355 ФФД: 1.0 [10:44:46]line ЗНМ: 0300000164 [10:44:46]line РНМ: 0000000000092785 [10:44:46]line Версия ККМ: 001 [10:44:46]line ФМ: 0000000000875093 [10:44:46]line ФД: 104133 [10:44:46]line ФПД: 120424037070051 [10:44:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T104448&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104133&fm=120424037070051&tin=02508201610067®Number=0000000000092785&sum=364500 [10:44:46]OFD Sender: Processing packet 104133 [packets to send 17, broken 16] [10:44:46]ProducePacketName [10:44:46]name=ofd_packets/00104133 [10:44:46]OFD Sender: To server: pG, [10:44:46]CommunicateWithHost lk.salyk.kg:30040 [10:44:46]ConnectInit lk.salyk.kg [10:44:46]written 0, free lines is 4095 [10:44:46]Connected sock=10 [10:44: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 6E 69 08 01 E3 8F 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 C3 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 D4 8F 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 8F 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 34 97 00 00 00 00 07 04 06 00 D4 8F 05 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 A0 59 75 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 C5 96 01 00 35 04 06 00 6D 86 67 F3 B4 E3 0C CE A2 C5 EF 70 95 92 [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 AA 42 47 00 91 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 C5 96 01 00 F4 03 04 00 23 00 75 66 B6 04 01 00 00 92 57 86 AF CA DE 1C D8 [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) - 104133 [10:44:47]1012 (4) - 21.06.2024 04:22 [10:44:47]1206 (1) - 0 [10:44:47]OFD Sender: Remove packet 104133 [10:44:47]ProducePacketName [10:44:47]name=ofd_packets/00104133 [10:44:47]NVStorageDeleteData [10:44:47]Write to MH i2c: 01 00 00 3D 1D 5A [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 3D 1D 00 00 00 00 00 0F 0D 7D [10:44:47]RasterBufferAndPrint [10:44:47]line [10:44:47]line [10:44:47]line [10:44:47]line [10:44:47]line [10:44:47]written 0, free lines is 3349 [10:44:47]MH_Cut [10:44:47]Write to MH i2c: D1 01 00 44 1D 01 33 [10:44:47]Write i2c OK [10:44:47]MH_I2C_Read... [10:44:47]Read from MH i2c: D1 [10:44:47]MH_I2C_Read... [10:44:47]Read from MH i2c: D1 01 00 [10:44:47]MH_I2C_Read... [10:44:47]Read from MH i2c: D1 01 00 44 1D 00 32 [10:44:47]Write to MH i2c: 01 00 00 45 1D 62 [10:44:47]Write i2c OK [10:44:47]MH_I2C_Read... [10:44:47]OFD Sender: No OFD packet to send [10:44:47]*** Cut start [10:44:47]*** Partial cut [10:44:47]*** CUTSNS_PIN = 1 [10:44:48]*** CUTSNS_PIN = 0 [10:44:48]*** Brake cut motor [10:44:48]Read from MH i2c: 01 [10:44:48]MH_I2C_Read... [10:44:48]*** Stop cut motor [10:44:48]*** Cut end [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 45 1D 00 00 00 00 00 FF 0F 77 [10:44:48]process_action close_receipt done [10:44:48]requested_data is exist [10:44:48]produce_requested_data [10:44:48]requested_item fm.sn is exist - process it [10:44:48]wFMCommunicate request_size=4 [10:44:48]MH_SAM_APDU [10:44:48]CAPDU: 80 11 00 00 [10:44:48]Write to MH i2c: E2 08 00 46 1D 80 11 00 00 00 00 00 00 DD [10:44:48]Write i2c OK [10:44:48]MH_I2C_Read... [10:44:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:44:48]Read from MH i2c: E2 [10:44:48]MH_I2C_Read... [10:44:48]Read from MH i2c: E2 17 00 [10:44:48]MH_I2C_Read... [10:44:48]Read from MH i2c: E2 17 00 46 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 30 [10:44:48]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:48]wFMCommunicate OK [10:44:48]requested_item fd.num is exist - process it [10:44:48]SAM_PROTO_GetFieldsCounters [10:44:48]wFMCommunicate request_size=4 [10:44:48]MH_SAM_APDU [10:44:48]CAPDU: 80 13 00 00 [10:44:48]Write to MH i2c: E2 08 00 47 1D 80 13 00 00 00 00 00 00 E0 [10:44:48]Write i2c OK [10:44:48]MH_I2C_Read... [10:44:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:44:48]Read from MH i2c: E2 [10:44:48]MH_I2C_Read... [10:44:48]Read from MH i2c: E2 62 00 [10:44:48]MH_I2C_Read... [10:44:48]Read from MH i2c: E2 62 00 47 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 C5 96 01 00 0E 04 04 00 63 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 6F [10:44:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 96 01 00 0E 04 04 00 63 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:44:48]wFMCommunicate OK [10:44:48]SAM_PROTO_GetFieldsCounters done [10:44:48]requested_item shift.num is exist - process it [10:44:48]requested_item shift.opened is exist - process it [10:44:48]req_shift_opened [10:44:48]FM_GetShiftState [10:44:48]SAM_PROTO_GetShiftState [10:44:48]wFMCommunicate request_size=4 [10:44:48]MH_SAM_APDU [10:44:48]CAPDU: 80 13 01 00 [10:44:48]Write to MH i2c: E2 08 00 48 1D 80 13 01 00 00 00 00 00 E2 [10:44:48]Write i2c OK [10:44:48]MH_I2C_Read... [10:44:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:44:48]Read from MH i2c: E2 [10:44:48]MH_I2C_Read... [10:44:48]Read from MH i2c: E2 0E 00 [10:44:48]MH_I2C_Read... [10:44:48]Read from MH i2c: E2 0E 00 48 1D 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 F5 [10:44:48]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [10:44:48]wFMCommunicate OK [10:44:48]SAM_PROTO_GetShiftState done [10:44:48]FM_GetShiftState done [10:44:48]req_shift_opened done [10:44:48]requested_item shift.open_date is exist - process it [10:44:48]req_shift_open_date [10:44:48]req_shift_open_date done [10:44:48]produce_requested_data done [10:44:48]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104133,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [10:44:48]process_action_free close_receipt [10:44:48]json_value_free [10:44:48]json_value_free done [10:44:48]process_json_proto returns [10:44:48]Send response to host [10:44:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104133,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [10:44:48]free response buf [10:44:48]execute_script done [10:44:48]execute_script returns [10:44:48]free content buf [10:44:48]Sock 7.Close socket [10:44:48]Sock 7.Thread stoped [10:44:49]accept exits with 9 [10:44:49]New connection [10:44:49]New thread 3066715492 created [10:44:49]Thread 3066858852 joined [10:44:49]Waiting for new connection... [10:44:49] Sock 9.Parse request [10:44:49]Sock 9.Check first char [10:44:49]Sock 9.First char is OK [10:44:49]request: POST /json_proto HTTP/1.0 [10:44:49]Method: POST [10:44:49]URL: /json_proto [10:44:49]Method is POST - this is cgi request [10:44:49]url: /json_proto [10:44:49]query_string will be loaded in cgi processing [10:44:49]execute_cgi json_proto POST (null) [10:44:49]execute_cgi path=json_proto method=POST [10:44:49]POST find Content-Length [10:44:49]Host: 172.17.38.133:8080 [10:44:49]Content-Length: 1162 [10:44:49]Content-Type: application/json [10:44:49] [10:44:49]POST finish read [10:44:49]Found Content-Length = 1162 [10:44: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 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)673545\u000A21.06.2024 10:22\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 30.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 2187.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30101770\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:44:49]execute_script... [10:44: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 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)673545\u000A21.06.2024 10:22\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 30.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 2187.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30101770\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:44:49]POST & json_proto [10:44:49]process_json_proto [10:44:49]json parsed OK: [10:44:49]protocol is kg_v1.0 [10:44:49]action value=print_text [10:44:49]process_action print_text [10:44:49]cmd_print_text [10:44:49]ExternCall_PrintAddStr [10:44:49]wPrintStart [10:44:49]Write to MH i2c: 01 00 00 49 1D 66 [10:44:49]Write i2c OK [10:44:49]MH_I2C_Read... [10:44:49]Read from MH i2c: 01 [10:44:49]MH_I2C_Read... [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 49 1D 00 00 00 00 00 FF 0F 7B [10:44:49]RasterBufferAndPrint [10:44:49]line *****ТОВАРНЫЙ ЧЕК***** [10:44:49]line АЗС 120 [10:44:49]line Партнер нефть [10:44:49]line 02508201610067 [10:44:49]line Кассир : Асанбаев Н. [10:44:49]line Счет N : (1)673545 [10:44:49]line 21.06.2024 10:22 [10:44:49]line ПРОДАЖА [10:44:49]line ТРК (МРК, ГНК): 21 [10:44:49]line Вид ГСМ : 2710194210 [10:44:49]line ДТ(л)-К-5 [10:44:49]line 30.000 x 72.90 [10:44:49]line ИТОГ: 2187.00 [10:44:49]line Тип оплаты: Талоны: ТК ГПНА Online [10:44:49]line 30101770 [10:44:49]line ______________________ [10:44:49]line (подпись) [10:44:49]written 0, free lines is 4095 [10:44:49]Write to MH i2c: 01 00 00 5D 1D 7A [10:44:49]Write i2c OK [10:44:49]MH_I2C_Read... [10:44:49]Read from MH i2c: 01 [10:44:49]MH_I2C_Read... [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 5D 1D 00 00 00 00 00 10 0E 9F [10:44:49]RasterBufferAndPrint [10:44:49]line [10:44:49]line [10:44:49]line [10:44:49]line [10:44:49]line [10:44:49]written 0, free lines is 3603 [10:44:49]MH_Cut [10:44:49]Write to MH i2c: D1 01 00 64 1D 01 53 [10:44:49]Write i2c OK [10:44:49]MH_I2C_Read... [10:44:49]Read from MH i2c: D1 [10:44:49]MH_I2C_Read... [10:44:49]Read from MH i2c: D1 01 00 [10:44:49]MH_I2C_Read... [10:44:49]Read from MH i2c: D1 01 00 64 1D 00 52 [10:44:49]Write to MH i2c: 01 00 00 65 1D 82 [10:44:49]Write i2c OK [10:44:49]MH_I2C_Read... [10:44:49]*** Cut start [10:44:49]*** Partial cut [10:44:49]*** CUTSNS_PIN = 1 [10:44:49]*** CUTSNS_PIN = 0 [10:44:50]*** Brake cut motor [10:44:50]Read from MH i2c: 01 [10:44:50]MH_I2C_Read... [10:44:50]*** Stop cut motor [10:44:50]*** Cut end [10:44:50]Read from MH i2c: 01 07 00 [10:44:50]MH_I2C_Read... [10:44:50]Read from MH i2c: 01 07 00 65 1D 00 00 00 00 00 FF 0F 97 [10:44:50]process_action print_text done [10:44:50]requested_data is exist [10:44:50]produce_requested_data [10:44:50]requested_item fm.sn is exist - process it [10:44:50]wFMCommunicate request_size=4 [10:44:50]MH_SAM_APDU [10:44:50]CAPDU: 80 11 00 00 [10:44:50]Write to MH i2c: E2 08 00 66 1D 80 11 00 00 00 00 00 00 FD [10:44:50]Write i2c OK [10:44:50]MH_I2C_Read... [10:44:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:44:50]Read from MH i2c: E2 [10:44:50]MH_I2C_Read... [10:44:50]Read from MH i2c: E2 17 00 [10:44:50]MH_I2C_Read... [10:44:50]Read from MH i2c: E2 17 00 66 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 50 [10:44: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:44:50]wFMCommunicate OK [10:44:50]requested_item fd.num is exist - process it [10:44:50]SAM_PROTO_GetFieldsCounters [10:44:50]wFMCommunicate request_size=4 [10:44:50]MH_SAM_APDU [10:44:50]CAPDU: 80 13 00 00 [10:44:50]Write to MH i2c: E2 08 00 67 1D 80 13 00 00 00 00 00 00 00 [10:44:50]Write i2c OK [10:44:50]MH_I2C_Read... [10:44:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:44:50]Read from MH i2c: E2 [10:44:50]MH_I2C_Read... [10:44:50]Read from MH i2c: E2 62 00 [10:44:50]MH_I2C_Read... [10:44:50]Read from MH i2c: E2 62 00 67 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 C5 96 01 00 0E 04 04 00 63 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 8F [10:44: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 C5 96 01 00 0E 04 04 00 63 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:44:50]wFMCommunicate OK [10:44:50]SAM_PROTO_GetFieldsCounters done [10:44:50]requested_item shift.num is exist - process it [10:44:50]requested_item shift.opened is exist - process it [10:44:50]req_shift_opened [10:44:50]FM_GetShiftState [10:44:50]SAM_PROTO_GetShiftState [10:44:50]wFMCommunicate request_size=4 [10:44:50]MH_SAM_APDU [10:44:50]CAPDU: 80 13 01 00 [10:44:50]Write to MH i2c: E2 08 00 68 1D 80 13 01 00 00 00 00 00 02 [10:44:50]Write i2c OK [10:44:50]MH_I2C_Read... [10:44:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:44:50]Read from MH i2c: E2 [10:44:50]MH_I2C_Read... [10:44:50]Read from MH i2c: E2 0E 00 [10:44:50]MH_I2C_Read... [10:44:50]Read from MH i2c: E2 0E 00 68 1D 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 15 [10:44:50]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [10:44:50]wFMCommunicate OK [10:44:50]SAM_PROTO_GetShiftState done [10:44:50]FM_GetShiftState done [10:44:50]req_shift_opened done [10:44:50]requested_item shift.open_date is exist - process it [10:44:50]req_shift_open_date [10:44:50]req_shift_open_date done [10:44:50]produce_requested_data done [10:44:50]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104133,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [10:44:50]process_action_free print_text [10:44:50]json_value_free [10:44:50]json_value_free done [10:44:50]process_json_proto returns [10:44:50]Send response to host [10:44:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104133,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [10:44:50]free response buf [10:44:50]execute_script done [10:44:50]execute_script returns [10:44:50]free content buf [10:44:50]Sock 9.Close socket [10:44:50]Sock 9.Thread stoped [10:44:52]OFD Sender: No OFD packet to send [10:44:57]OFD Sender: No OFD packet to send [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:57]OFD Sender: No OFD packet to send [10:46:02]OFD Sender: No OFD packet to send [10:46:07]OFD Sender: No OFD packet to send [10:46:12]OFD Sender: No OFD packet to send [10:46:17]OFD Sender: No OFD packet to send [10:46:22]OFD Sender: No OFD packet to send [10:46:27]OFD Sender: No OFD packet to send [10:46:32]OFD Sender: No OFD packet to send [10:46:37]OFD Sender: No OFD packet to send [10:46:42]OFD Sender: No OFD packet to send [10:46:47]OFD Sender: No OFD packet to send [10:46:52]OFD Sender: No OFD packet to send [10:46:57]OFD Sender: No OFD packet to send [10:47:02]OFD Sender: No OFD packet to send [10:47:07]OFD Sender: No OFD packet to send [10:47:12]OFD Sender: No OFD packet to send [10:47:17]OFD Sender: No OFD packet to send [10:47:22]OFD Sender: No OFD packet to send [10:47:27]OFD Sender: No OFD packet to send [10:47:32]OFD Sender: No OFD packet to send [10:47:37]OFD Sender: No OFD packet to send [10:47:42]OFD Sender: No OFD packet to send [10:47:47]OFD Sender: No OFD packet to send [10:47:52]OFD Sender: No OFD packet to send [10:47:57]OFD Sender: No OFD packet to send [10:48:02]OFD Sender: No OFD packet to send [10:48:07]OFD Sender: No OFD packet to send [10:48:12]OFD Sender: No OFD packet to send [10:48:17]OFD Sender: No OFD packet to send [10:48:22]OFD Sender: No OFD packet to send [10:48:27]OFD Sender: No OFD packet to send [10:48:32]OFD Sender: No OFD packet to send [10:48:37]OFD Sender: No OFD packet to send [10:48:39]accept exits with 7 [10:48:39]New connection [10:48:39]New thread 3066858852 created [10:48:39]Thread 3066715492 joined [10:48:39]Waiting for new connection... [10:48:39] Sock 7.Parse request [10:48:39]Sock 7.Check first char [10:48:39]Sock 7.First char is OK [10:48:39]request: POST /json_proto HTTP/1.0 [10:48:39]Method: POST [10:48:39]URL: /json_proto [10:48:39]Method is POST - this is cgi request [10:48:39]url: /json_proto [10:48:39]query_string will be loaded in cgi processing [10:48:39]execute_cgi json_proto POST (null) [10:48:39]execute_cgi path=json_proto method=POST [10:48:39]POST find Content-Length [10:48:39]Host: 172.17.38.133:8080 [10:48:39]Content-Length: 1195 [10:48:39]Content-Type: application/json [10:48:39] [10:48:39]POST finish read [10:48:39]Found Content-Length = 1195 [10:48: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 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)673547\u000A21.06.2024 10:25\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\u000A32174\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:48:39]execute_script... [10:48: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 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)673547\u000A21.06.2024 10:25\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\u000A32174\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:48:39]POST & json_proto [10:48:39]process_json_proto [10:48:39]json parsed OK: [10:48:39]protocol is kg_v1.0 [10:48:39]action value=print_text [10:48:39]process_action print_text [10:48:39]cmd_print_text [10:48:39]ExternCall_PrintAddStr [10:48:39]wPrintStart [10:48:39]Write to MH i2c: 01 00 00 69 1D 86 [10:48:39]Write i2c OK [10:48:39]MH_I2C_Read... [10:48:39]Read from MH i2c: 01 [10:48:39]MH_I2C_Read... [10:48:39]Read from MH i2c: 01 07 00 [10:48:39]MH_I2C_Read... [10:48:39]Read from MH i2c: 01 07 00 69 1D 00 00 00 00 00 FF 0F 9B [10:48:39]RasterBufferAndPrint [10:48:39]line *****ТОВАРНЫЙ ЧЕК***** [10:48:39]line АЗС 120 [10:48:39]line Партнер нефть [10:48:39]line 02508201610067 [10:48:39]line Кассир : Асанбаев Н. [10:48:39]line Счет N : (1)673547 [10:48:39]line 21.06.2024 10:25 [10:48:39]line ПРОДАЖА [10:48:39]line ТРК (МРК, ГНК): 31 [10:48:39]line Вид ГСМ : 2710124500 [10:48:39]line Аи-95-К-5 [10:48:39]line 30.000 x 73.90 [10:48:39]line ИТОГ: 2217.00 [10:48:39]line Тип оплаты: Талоны: Топливная Карта [10:48:39]line 32174 [10:48:39]line ______________________ [10:48:39]line (подпись) [10:48:39]written 0, free lines is 4095 [10:48:40]Write to MH i2c: 01 00 00 7D 1D 9A [10:48:40]Write i2c OK [10:48:40]MH_I2C_Read... [10:48:40]Read from MH i2c: 01 [10:48:40]MH_I2C_Read... [10:48:40]Read from MH i2c: 01 07 00 [10:48:40]MH_I2C_Read... [10:48:40]Read from MH i2c: 01 07 00 7D 1D 00 00 00 00 00 10 0E BF [10:48:40]RasterBufferAndPrint [10:48:40]line [10:48:40]line [10:48:40]line [10:48:40]line [10:48:40]line [10:48:40]written 0, free lines is 3602 [10:48:40]MH_Cut [10:48:40]Write to MH i2c: D1 01 00 84 1D 01 73 [10:48:40]Write i2c OK [10:48:40]MH_I2C_Read... [10:48:40]Read from MH i2c: D1 [10:48:40]MH_I2C_Read... [10:48:40]Read from MH i2c: D1 01 00 [10:48:40]MH_I2C_Read... [10:48:40]Read from MH i2c: D1 01 00 84 1D 00 72 [10:48:40]Write to MH i2c: 01 00 00 85 1D A2 [10:48:40]Write i2c OK [10:48:40]MH_I2C_Read... [10:48:40]*** Cut start [10:48:40]*** Partial cut [10:48:40]*** CUTSNS_PIN = 1 [10:48:40]*** CUTSNS_PIN = 0 [10:48:40]*** Brake cut motor [10:48:41]Read from MH i2c: 01 [10:48:41]MH_I2C_Read... [10:48:41]*** Stop cut motor [10:48:41]*** Cut end [10:48:41]Read from MH i2c: 01 07 00 [10:48:41]MH_I2C_Read... [10:48:41]Read from MH i2c: 01 07 00 85 1D 00 00 00 00 00 FF 0F B7 [10:48:41]process_action print_text done [10:48:41]requested_data is exist [10:48:41]produce_requested_data [10:48:41]requested_item fm.sn is exist - process it [10:48:41]wFMCommunicate request_size=4 [10:48:41]MH_SAM_APDU [10:48:41]CAPDU: 80 11 00 00 [10:48:41]Write to MH i2c: E2 08 00 86 1D 80 11 00 00 00 00 00 00 1D [10:48:41]Write i2c OK [10:48:41]MH_I2C_Read... [10:48:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:48:41]Read from MH i2c: E2 [10:48:41]MH_I2C_Read... [10:48:41]Read from MH i2c: E2 17 00 [10:48:41]MH_I2C_Read... [10:48:41]Read from MH i2c: E2 17 00 86 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 70 [10:48: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:48:41]wFMCommunicate OK [10:48:41]requested_item fd.num is exist - process it [10:48:41]SAM_PROTO_GetFieldsCounters [10:48:41]wFMCommunicate request_size=4 [10:48:41]MH_SAM_APDU [10:48:41]CAPDU: 80 13 00 00 [10:48:41]Write to MH i2c: E2 08 00 87 1D 80 13 00 00 00 00 00 00 20 [10:48:41]Write i2c OK [10:48:41]MH_I2C_Read... [10:48:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:48:41]Read from MH i2c: E2 [10:48:41]MH_I2C_Read... [10:48:41]Read from MH i2c: E2 62 00 [10:48:41]MH_I2C_Read... [10:48:41]Read from MH i2c: E2 62 00 87 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 C5 96 01 00 0E 04 04 00 63 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 AF [10:48: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 C5 96 01 00 0E 04 04 00 63 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:48:41]wFMCommunicate OK [10:48:41]SAM_PROTO_GetFieldsCounters done [10:48:41]requested_item shift.num is exist - process it [10:48:41]requested_item shift.opened is exist - process it [10:48:41]req_shift_opened [10:48:41]FM_GetShiftState [10:48:41]SAM_PROTO_GetShiftState [10:48:41]wFMCommunicate request_size=4 [10:48:41]MH_SAM_APDU [10:48:41]CAPDU: 80 13 01 00 [10:48:41]Write to MH i2c: E2 08 00 88 1D 80 13 01 00 00 00 00 00 22 [10:48:41]Write i2c OK [10:48:41]MH_I2C_Read... [10:48:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:48:41]Read from MH i2c: E2 [10:48:41]MH_I2C_Read... [10:48:41]Read from MH i2c: E2 0E 00 [10:48:41]MH_I2C_Read... [10:48:41]Read from MH i2c: E2 0E 00 88 1D 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 35 [10:48:41]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [10:48:41]wFMCommunicate OK [10:48:41]SAM_PROTO_GetShiftState done [10:48:41]FM_GetShiftState done [10:48:41]req_shift_opened done [10:48:41]requested_item shift.open_date is exist - process it [10:48:41]req_shift_open_date [10:48:41]req_shift_open_date done [10:48:41]produce_requested_data done [10:48:41]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104133,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [10:48:41]process_action_free print_text [10:48:41]json_value_free [10:48:41]json_value_free done [10:48:41]process_json_proto returns [10:48:41]Send response to host [10:48:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104133,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [10:48:41]free response buf [10:48:41]execute_script done [10:48:41]execute_script returns [10:48:41]free content buf [10:48:41]Sock 7.Close socket [10:48:41]Sock 7.Thread stoped [10:48:42]OFD Sender: No OFD packet to send [10:48:47]OFD Sender: No OFD packet to send [10:48:52]OFD Sender: No OFD packet to send [10:48:57]OFD Sender: No OFD packet to send [10:49:02]OFD Sender: No OFD packet to send [10:49:07]OFD Sender: No OFD packet to send [10:49:12]OFD Sender: No OFD packet to send [10:49:17]OFD Sender: No OFD packet to send [10:49:22]OFD Sender: No OFD packet to send [10:49:27]OFD Sender: No OFD packet to send [10:49:32]OFD Sender: No OFD packet to send [10:49:37]OFD Sender: No OFD packet to send [10:49:42]OFD Sender: No OFD packet to send [10:49:47]OFD Sender: No OFD packet to send [10:49:52]OFD Sender: No OFD packet to send [10:49:57]OFD Sender: No OFD packet to send [10:50:02]OFD Sender: No OFD packet to send [10:50:07]OFD Sender: No OFD packet to send [10:50:12]OFD Sender: No OFD packet to send [10:50:17]OFD Sender: No OFD packet to send [10:50:23]OFD Sender: No OFD packet to send [10:50:28]OFD Sender: No OFD packet to send [10:50:33]OFD Sender: No OFD packet to send [10:50:38]OFD Sender: No OFD packet to send [10:50:43]OFD Sender: No OFD packet to send [10:50:48]OFD Sender: No OFD packet to send [10:50:53]OFD Sender: No OFD packet to send [10:50:58]OFD Sender: No OFD packet to send [10:51:03]OFD Sender: No OFD packet to send [10:51:08]OFD Sender: No OFD packet to send [10:51:13]OFD Sender: No OFD packet to send [10:51:18]OFD Sender: No OFD packet to send [10:51:23]OFD Sender: No OFD packet to send [10:51:28]OFD Sender: No OFD packet to send [10:51:33]OFD Sender: No OFD packet to send [10:51:38]OFD Sender: No OFD packet to send [10:51:43]OFD Sender: No OFD packet to send [10:51:48]OFD Sender: No OFD packet to send [10:51:53]OFD Sender: No OFD packet to send [10:51:58]OFD Sender: No OFD packet to send [10:52:03]OFD Sender: No OFD packet to send [10:52:08]OFD Sender: No OFD packet to send [10:52:13]OFD Sender: No OFD packet to send [10:52:14]accept exits with 9 [10:52:14]New connection [10:52:14]New thread 3066715492 created [10:52:14]Thread 3066858852 joined [10:52:14]Waiting for new connection... [10:52:14] Sock 9.Parse request [10:52:14]Sock 9.Check first char [10:52:14]Sock 9.First char is OK [10:52:14]request: POST /json_proto HTTP/1.0 [10:52:14]Method: POST [10:52:14]URL: /json_proto [10:52:14]Method is POST - this is cgi request [10:52:14]url: /json_proto [10:52:14]query_string will be loaded in cgi processing [10:52:14]execute_cgi json_proto POST (null) [10:52:14]execute_cgi path=json_proto method=POST [10:52:14]POST find Content-Length [10:52:14]Host: 172.17.38.133:8080 [10:52:14]Content-Length: 1157 [10:52:14]Content-Type: application/json [10:52:14] [10:52:14]POST finish read [10:52:14]Found Content-Length = 1157 [10:52:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 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)673548\u000A21.06.2024 10: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 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\u000A30101671\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:52:14]execute_script... [10:52:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 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)673548\u000A21.06.2024 10: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 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\u000A30101671\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:52:14]POST & json_proto [10:52:14]process_json_proto [10:52:14]json parsed OK: [10:52:14]protocol is kg_v1.0 [10:52:14]action value=print_text [10:52:14]process_action print_text [10:52:14]cmd_print_text [10:52:14]ExternCall_PrintAddStr [10:52:14]wPrintStart [10:52:14]Write to MH i2c: 01 00 00 89 1D A6 [10:52:14]Write i2c OK [10:52:14]MH_I2C_Read... [10:52:14]Read from MH i2c: 01 [10:52:14]MH_I2C_Read... [10:52:14]Read from MH i2c: 01 07 00 [10:52:14]MH_I2C_Read... [10:52:14]Read from MH i2c: 01 07 00 89 1D 00 00 00 00 00 FF 0F BB [10:52:14]RasterBufferAndPrint [10:52:14]line *****ТОВАРНЫЙ ЧЕК***** [10:52:14]line АЗС 120 [10:52:14]line Партнер нефть [10:52:14]line 02508201610067 [10:52:14]line Кассир : Асанбаев Н. [10:52:14]line Счет N : (1)673548 [10:52:14]line 21.06.2024 10:29 [10:52:14]line ПРОДАЖА [10:52:14]line ТРК (МРК, ГНК): 42 [10:52:14]line Вид ГСМ : 2710124130 [10:52:14]line Аи-92-К-5 [10:52:14]line 20.000 x 66.40 [10:52:14]line ИТОГ: 1328.00 [10:52:14]line Тип оплаты: Талоны: ТК ГПНА Online [10:52:14]line 30101671 [10:52:14]line ______________________ [10:52:14]line (подпись) [10:52:14]written 0, free lines is 4095 [10:52:14]Write to MH i2c: 01 00 00 9D 1D BA [10:52:14]Write i2c OK [10:52:14]MH_I2C_Read... [10:52:14]Read from MH i2c: 01 [10:52:14]MH_I2C_Read... [10:52:14]Read from MH i2c: 01 07 00 [10:52:14]MH_I2C_Read... [10:52:14]Read from MH i2c: 01 07 00 9D 1D 00 00 00 00 00 11 0E E0 [10:52:14]RasterBufferAndPrint [10:52:14]line [10:52:14]line [10:52:14]line [10:52:14]line [10:52:14]line [10:52:14]written 0, free lines is 3603 [10:52:14]MH_Cut [10:52:14]Write to MH i2c: D1 01 00 A4 1D 01 93 [10:52:14]Write i2c OK [10:52:14]MH_I2C_Read... [10:52:14]Read from MH i2c: D1 [10:52:14]MH_I2C_Read... [10:52:14]Read from MH i2c: D1 01 00 [10:52:14]MH_I2C_Read... [10:52:14]Read from MH i2c: D1 01 00 A4 1D 00 92 [10:52:14]Write to MH i2c: 01 00 00 A5 1D C2 [10:52:14]Write i2c OK [10:52:14]MH_I2C_Read... [10:52:15]*** Cut start [10:52:15]*** Partial cut [10:52:15]*** CUTSNS_PIN = 1 [10:52:15]*** CUTSNS_PIN = 0 [10:52:15]*** Brake cut motor [10:52:15]Read from MH i2c: 01 [10:52:15]MH_I2C_Read... [10:52:15]*** Stop cut motor [10:52:15]*** Cut end [10:52:15]Read from MH i2c: 01 07 00 [10:52:15]MH_I2C_Read... [10:52:15]Read from MH i2c: 01 07 00 A5 1D 00 00 00 00 00 FF 0F D7 [10:52:15]process_action print_text done [10:52:15]requested_data is exist [10:52:15]produce_requested_data [10:52:15]requested_item fm.sn is exist - process it [10:52:15]wFMCommunicate request_size=4 [10:52:15]MH_SAM_APDU [10:52:15]CAPDU: 80 11 00 00 [10:52:15]Write to MH i2c: E2 08 00 A6 1D 80 11 00 00 00 00 00 00 3D [10:52:15]Write i2c OK [10:52:15]MH_I2C_Read... [10:52:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:52:15]Read from MH i2c: E2 [10:52:15]MH_I2C_Read... [10:52:15]Read from MH i2c: E2 17 00 [10:52:15]MH_I2C_Read... [10:52:15]Read from MH i2c: E2 17 00 A6 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 90 [10: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 [10:52:15]wFMCommunicate OK [10:52:15]requested_item fd.num is exist - process it [10:52:15]SAM_PROTO_GetFieldsCounters [10:52:15]wFMCommunicate request_size=4 [10:52:15]MH_SAM_APDU [10:52:15]CAPDU: 80 13 00 00 [10:52:15]Write to MH i2c: E2 08 00 A7 1D 80 13 00 00 00 00 00 00 40 [10:52:15]Write i2c OK [10:52:15]MH_I2C_Read... [10:52:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:52:15]Read from MH i2c: E2 [10:52:15]MH_I2C_Read... [10:52:15]Read from MH i2c: E2 62 00 [10:52:15]MH_I2C_Read... [10:52:15]Read from MH i2c: E2 62 00 A7 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 C5 96 01 00 0E 04 04 00 63 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 CF [10: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 C5 96 01 00 0E 04 04 00 63 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:52:15]wFMCommunicate OK [10:52:15]SAM_PROTO_GetFieldsCounters done [10:52:15]requested_item shift.num is exist - process it [10:52:15]requested_item shift.opened is exist - process it [10:52:15]req_shift_opened [10:52:15]FM_GetShiftState [10:52:15]SAM_PROTO_GetShiftState [10:52:15]wFMCommunicate request_size=4 [10:52:15]MH_SAM_APDU [10:52:15]CAPDU: 80 13 01 00 [10:52:15]Write to MH i2c: E2 08 00 A8 1D 80 13 01 00 00 00 00 00 42 [10:52:15]Write i2c OK [10:52:15]MH_I2C_Read... [10:52:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:52:15]Read from MH i2c: E2 [10:52:15]MH_I2C_Read... [10:52:15]Read from MH i2c: E2 0E 00 [10:52:15]MH_I2C_Read... [10:52:15]Read from MH i2c: E2 0E 00 A8 1D 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 55 [10:52:15]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [10:52:15]wFMCommunicate OK [10:52:15]SAM_PROTO_GetShiftState done [10:52:15]FM_GetShiftState done [10:52:15]req_shift_opened done [10:52:15]requested_item shift.open_date is exist - process it [10:52:15]req_shift_open_date [10:52:15]req_shift_open_date done [10:52:15]produce_requested_data done [10:52:15]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104133,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [10:52:15]process_action_free print_text [10:52:15]json_value_free [10:52:15]json_value_free done [10:52:15]process_json_proto returns [10:52:15]Send response to host [10:52:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104133,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [10:52:15]free response buf [10:52:15]execute_script done [10:52:15]execute_script returns [10:52:15]free content buf [10:52:15]Sock 9.Close socket [10:52:15]Sock 9.Thread stoped [10:52:18]OFD Sender: No OFD packet to send [10:52:23]OFD Sender: No OFD packet to send [10:52:28]OFD Sender: No OFD packet to send [10:52:33]OFD Sender: No OFD packet to send [10:52:38]OFD Sender: No OFD packet to send [10:52:39]accept exits with 7 [10:52:39]New connection [10:52:39]New thread 3066858852 created [10:52:39]Thread 3066715492 joined [10:52:39]Waiting for new connection... [10:52:39] Sock 7.Parse request [10:52:39]Sock 7.Check first char [10:52:39]Sock 7.First char is OK [10:52:39]request: POST /json_proto HTTP/1.0 [10:52:39]Method: POST [10:52:39]URL: /json_proto [10:52:39]Method is POST - this is cgi request [10:52:39]url: /json_proto [10:52:39]query_string will be loaded in cgi processing [10:52:39]execute_cgi json_proto POST (null) [10:52:39]execute_cgi path=json_proto method=POST [10:52:39]POST find Content-Length [10:52:39]Host: 172.17.38.133:8080 [10:52:39]Content-Length: 819 [10:52:39]Content-Type: application/json [10:52:39] [10:52:39]POST finish read [10:52:39]Found Content-Length = 819 [10:52:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673549", "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" : 26.860, "sum" : 1984.95, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 1984.95 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:52:39]execute_script... [10:52:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673549", "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" : 26.860, "sum" : 1984.95, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 1984.95 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:52:39]POST & json_proto [10:52:39]process_json_proto [10:52:39]json parsed OK: [10:52:39]protocol is kg_v1.0 [10:52:39]action value=close_receipt [10:52:39]process_action close_receipt [10:52:39]cmd_close_receipt [10:52:39]MH_GetDate [10:52:39]Write to MH i2c: F0 00 00 A9 1D B5 [10:52:39]Write i2c OK [10:52:39]MH_I2C_Read... [10:52:39]Read from MH i2c: F0 [10:52:39]MH_I2C_Read... [10:52:39]Read from MH i2c: F0 09 00 [10:52:39]MH_I2C_Read... [10:52:39]Read from MH i2c: F0 09 00 A9 1D 00 7B 5B 75 66 BD 8F 7C 64 9B [10:52:39]GetLastDocTimeStamp 1718966688 [10:52:39]current date 1718967163 [10:52:39]FM_GetShiftState [10:52:39]SAM_PROTO_GetShiftState [10:52:39]wFMCommunicate request_size=4 [10:52:39]MH_SAM_APDU [10:52:39]CAPDU: 80 13 01 00 [10:52:39]Write to MH i2c: E2 08 00 AA 1D 80 13 01 00 00 00 00 00 44 [10:52:39]Write i2c OK [10:52:39]MH_I2C_Read... [10:52:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:52:39]Read from MH i2c: E2 [10:52:39]MH_I2C_Read... [10:52:39]Read from MH i2c: E2 0E 00 [10:52:39]MH_I2C_Read... [10:52:39]Read from MH i2c: E2 0E 00 AA 1D 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 57 [10:52:39]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [10:52:39]wFMCommunicate OK [10:52:39]SAM_PROTO_GetShiftState done [10:52:39]FM_GetShiftState done [10:52:39]opened in 1718929509 [10:52:39]opened+sec_in_day 1719015909 [10:52:39]quantity*price = 198495 [10:52:39]sum+1 = 198496 [10:52:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1984.95 НСП 1% : 17.57 НДС 12% : 210.79 Наличными: 0.00 Безнал.: 1984.95 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 57 21.06.2024 10:52 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875093 ФД: 104134 ФПД: 274248218182080 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T105243&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104134&fm=274248218182080&tin=02508201610067®Number=0000000000092785&sum=198495 [10:52:40]StoreToDocumentArchive [10:52:40]shift 355 fd 104134 [10:52:40]save to /storage/0355/doc_00104134 [10:52:40]save last doc name /storage/0355/doc_00104134 to /storage/kkm_last_doc_name [10:52:40]save OK [10:52:40]Clear old archive folders... [10:52:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:52:40]tlvbuf is 01178BD0 [10:52:40]SAM_PROTO_ClearQueue [10:52:40]wFMCommunicate request_size=4 [10:52:40]MH_SAM_APDU [10:52:40]CAPDU: 80 09 00 00 [10:52:40]Write to MH i2c: E2 08 00 B7 1D 80 09 00 00 00 00 00 00 46 [10:52:40]Write i2c OK [10:52:40]MH_I2C_Read... [10:52:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:52:40]Read from MH i2c: E2 [10:52:40]MH_I2C_Read... [10:52:40]Read from MH i2c: E2 03 00 [10:52:40]MH_I2C_Read... [10:52:40]Read from MH i2c: E2 03 00 B7 1D 00 90 00 48 [10:52:40]RAPDU: 90 00 [10:52:40]wFMCommunicate OK [10:52:40]SAM_PROTO_ClearQueue done [10:52:40]KKMCreateOFDPacket [10:52:40]OFDProtocolAddRootSTLVToBuf [10:52:40]FM_MakeSignedData [10:52:40]FM_MakeSignedData [10:52:40]SAM_PROTO_SignData [10:52:40]wFMCommunicate request_size=4 [10:52:40]MH_SAM_APDU [10:52:40]CAPDU: 80 0D 01 02 [10:52:40]Write to MH i2c: E2 08 00 B8 1D 80 0D 01 02 00 00 00 00 4E [10:52:40]Write i2c OK [10:52:40]MH_I2C_Read... [10:52:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:52:40]Read from MH i2c: E2 [10:52:40]MH_I2C_Read... [10:52:40]Read from MH i2c: E2 03 00 [10:52:40]MH_I2C_Read... [10:52:40]Read from MH i2c: E2 03 00 B8 1D 00 90 00 49 [10:52:40]RAPDU: 90 00 [10:52:40]wFMCommunicate OK [10:52:40]wFMCommunicate request_size=255 [10:52:40]MH_SAM_APDU [10:52:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 EC 68 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 5F 07 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F 07 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 57 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F 07 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 7B 5B 75 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 C6 96 01 00 35 04 06 00 F9 [10:52:40]Write to MH i2c: E2 02 01 B9 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 EC 68 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 5F 07 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F 07 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 57 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F 07 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 7B 5B 75 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 C6 96 01 00 35 04 06 00 F9 00 00 1B [10:52:40]Write i2c OK [10:52:40]MH_I2C_Read... [10:52:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:52:40]Read from MH i2c: E2 [10:52:40]MH_I2C_Read... [10:52:40]Read from MH i2c: E2 03 00 [10:52:40]MH_I2C_Read... [10:52:40]Read from MH i2c: E2 03 00 B9 1D 00 90 00 4A [10:52:40]RAPDU: 90 00 [10:52:40]wFMCommunicate OK [10:52:40]wFMCommunicate request_size=10 [10:52:40]MH_SAM_APDU [10:52:40]CAPDU: 80 0D 02 02 05 6D 63 A0 01 C0 [10:52:40]Write to MH i2c: E2 0D 00 BA 1D 80 0D 02 02 05 00 6D 63 A0 01 C0 00 00 8C [10:52:40]Write i2c OK [10:52:40]MH_I2C_Read... [10:52:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:52:40]Read from MH i2c: E2 [10:52:40]MH_I2C_Read... [10:52:40]Read from MH i2c: E2 03 00 [10:52:40]MH_I2C_Read... [10:52:40]Read from MH i2c: E2 03 00 BA 1D 00 90 00 4B [10:52:40]RAPDU: 90 00 [10:52:40]wFMCommunicate OK [10:52:40]wFMCommunicate request_size=4 [10:52:40]MH_SAM_APDU [10:52:40]CAPDU: 80 0D 03 02 [10:52:40]Write to MH i2c: E2 08 00 BB 1D 80 0D 03 02 00 00 00 00 53 [10:52:40]Write i2c OK [10:52:40]MH_I2C_Read... [10:52:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:52:40]Read from MH i2c: E2 [10:52:40]MH_I2C_Read... [10:52:40]Read from MH i2c: E2 0B 00 [10:52:40]MH_I2C_Read... [10:52:40]Read from MH i2c: E2 0B 00 BB 1D 00 A6 EE C4 76 AD D2 D0 15 90 00 86 [10:52:40]RAPDU: A6 EE C4 76 AD D2 D0 15 90 00 [10:52:40]wFMCommunicate OK [10:52:40]SAM_PROTO_SignData done [10:52:40]FM_MakeSignedData done [10:52:40]CreateOFDProtocolMessage [10:52:40]wFMCommunicate request_size=4 [10:52:40]MH_SAM_APDU [10:52:40]CAPDU: 80 11 00 00 [10:52:40]Write to MH i2c: E2 08 00 BC 1D 80 11 00 00 00 00 00 00 53 [10:52:40]Write i2c OK [10:52:40]MH_I2C_Read... [10:52:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:52:41]Read from MH i2c: E2 [10:52:41]MH_I2C_Read... [10:52:41]Read from MH i2c: E2 17 00 [10:52:41]MH_I2C_Read... [10:52:41]Read from MH i2c: E2 17 00 BC 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 A6 [10:52: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:52:41]wFMCommunicate OK [10:52:41]CreateOFDProtocolMessage done [10:52:41]OFDSenderStorePacket 104134 [10:52:41]StoreOFDPacket docnum=104134 [10:52: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 10 0E 07 01 C1 C7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 EC 68 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 5F 07 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F 07 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 57 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F 07 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 7B 5B 75 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 C6 96 01 00 35 04 06 00 F9 6D 63 A0 01 C0 A6 EE C4 76 AD D2 D0 15 [10:52:41]CheckFolder [10:52:41]dirname=/storage/ofd_packets [10:52:41]CheckFolder done [10:52:41]ProducePacketName [10:52:41]name=ofd_packets/00104134 [10:52:41]NVStorageSaveData ofd_packets/00104134 [10:52:41]File name is /storage/ofd_packets/00104134 [10:52:41]Write 301 bytes [10:52:41]NVStorageSaveData done [10:52:41]OFDSenderStorePacket done [10:52:41]KKMCreateOFDPacket done [10:52:41]NVStorageSaveData kkm_last_timestamp [10:52:41]File name is /storage/kkm_last_timestamp [10:52:41]Write 4 bytes [10:52:41]NVStorageSaveData done [10:52:41]ExternCall_PrintAddStr [10:52:41]wPrintStart [10:52:41]Write to MH i2c: 01 00 00 BD 1D DA [10:52:41]Write i2c OK [10:52:41]MH_I2C_Read... [10:52:41]Read from MH i2c: 01 [10:52:41]MH_I2C_Read... [10:52:41]Read from MH i2c: 01 07 00 [10:52:41]MH_I2C_Read... [10:52:41]Read from MH i2c: 01 07 00 BD 1D 00 00 00 00 00 FF 0F EF [10:52:41]RasterBufferAndPrint [10:52:41]line Счет N : (1)673549 [10:52:41]line ИНН: 02508201610067 [10:52:41]line Контрольно-Кассовый Чек [10:52:41]line ПРОДАЖА [10:52:41]line ТРК (МРК, ГНК) : 31 [10:52:41]line Товар: 2710124500 [10:52:41]line Аи-95-К-5 [10:52:41]line 26.860 * 73.90 [10:52:41]line = 1984.95 [10:52:41]line НДС 12% НСП 1% [10:52:41]line > о реализуемом товаре [10:52:41]line ИТОГО: 1984.95 [10:52:41]line НСП 1% : 17.57 [10:52:41]line НДС 12% : 210.79 [10:52:41]line Наличными: 0.00 [10:52:41]line Безнал.: 1984.95 [10:52:41]line Место: АЗС № 120 "Партнер Нефть" [10:52:41]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [10:52:41]line СНО: Общий режим [10:52:41]line Чек 57 21.06.2024 10:52 [10:52:41]line Смена: 355 ФФД: 1.0 [10:52:41]line ЗНМ: 0300000164 [10:52:41]line РНМ: 0000000000092785 [10:52:41]line Версия ККМ: 001 [10:52:41]line Платежная система: Бакай Банк [10:52:41]line ФМ: 0000000000875093 [10:52:41]line ФД: 104134 [10:52:41]line ФПД: 274248218182080 [10:52:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T105243&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104134&fm=274248218182080&tin=02508201610067®Number=0000000000092785&sum=198495 [10:52:41]OFD Sender: Processing packet 104134 [packets to send 17, broken 16] [10:52:41]ProducePacketName [10:52:41]name=ofd_packets/00104134 [10:52:41]OFD Sender: To server: pG, [10:52:41]CommunicateWithHost lk.salyk.kg:30040 [10:52:41]ConnectInit lk.salyk.kg [10:52:41]written 0, free lines is 4095 [10:52:41]Connected sock=10 [10:52:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 10 0E 07 01 C1 C7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 EC 68 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 5F 07 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F 07 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 57 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F 07 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 7B 5B 75 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 C6 96 01 00 35 04 06 00 F9 6D 63 A0 01 C0 A6 EE C4 76 AD D2 D0 15 [10:52: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 B7 48 47 00 67 6D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 C6 96 01 00 F4 03 04 00 FE 01 75 66 B6 04 01 00 00 1E B5 58 B1 43 71 94 84 [10:52:41]CommunicateWithHost err = 0 [10:52:41]CheckOFDResponse [10:52:41]1017 (14) - 77093643461234 [10:52:41]1041 (16) - 0000000000875093 [10:52:41]1040 (4) - 104134 [10:52:41]1012 (4) - 21.06.2024 04:30 [10:52:41]1206 (1) - 0 [10:52:41]OFD Sender: Remove packet 104134 [10:52:41]ProducePacketName [10:52:41]name=ofd_packets/00104134 [10:52:41]NVStorageDeleteData [10:52:41]Write to MH i2c: 01 00 00 E7 1D 04 [10:52:41]Write i2c OK [10:52:41]MH_I2C_Read... [10:52:41]Read from MH i2c: 01 [10:52:41]MH_I2C_Read... [10:52:41]Read from MH i2c: 01 07 00 [10:52:41]MH_I2C_Read... [10:52:41]Read from MH i2c: 01 07 00 E7 1D 00 00 00 00 00 01 0D 19 [10:52:41]RasterBufferAndPrint [10:52:41]line [10:52:41]line [10:52:41]line [10:52:41]line [10:52:41]line [10:52:41]written 0, free lines is 3338 [10:52:41]MH_Cut [10:52:41]Write to MH i2c: D1 01 00 EE 1D 01 DD [10:52:41]Write i2c OK [10:52:41]MH_I2C_Read... [10:52:41]Read from MH i2c: D1 [10:52:41]MH_I2C_Read... [10:52:41]Read from MH i2c: D1 01 00 [10:52:41]MH_I2C_Read... [10:52:41]Read from MH i2c: D1 01 00 EE 1D 00 DC [10:52:41]Write to MH i2c: 01 00 00 EF 1D 0C [10:52:41]Write i2c OK [10:52:41]MH_I2C_Read... [10:52:42]OFD Sender: No OFD packet to send [10:52:42]*** Cut start [10:52:42]*** Partial cut [10:52:42]*** CUTSNS_PIN = 1 [10:52:42]*** CUTSNS_PIN = 0 [10:52:42]*** Brake cut motor [10:52:43]Read from MH i2c: 01 [10:52:43]MH_I2C_Read... [10:52:43]*** Stop cut motor [10:52:43]*** Cut end [10:52:43]Read from MH i2c: 01 07 00 [10:52:43]MH_I2C_Read... [10:52:43]Read from MH i2c: 01 07 00 EF 1D 00 00 00 00 00 FF 0F 21 [10:52:43]process_action close_receipt done [10:52:43]requested_data is exist [10:52:43]produce_requested_data [10:52:43]requested_item fm.sn is exist - process it [10:52:43]wFMCommunicate request_size=4 [10:52:43]MH_SAM_APDU [10:52:43]CAPDU: 80 11 00 00 [10:52:43]Write to MH i2c: E2 08 00 F0 1D 80 11 00 00 00 00 00 00 87 [10:52:43]Write i2c OK [10:52:43]MH_I2C_Read... [10:52:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:52:43]Read from MH i2c: E2 [10:52:43]MH_I2C_Read... [10:52:43]Read from MH i2c: E2 17 00 [10:52:43]MH_I2C_Read... [10:52:43]Read from MH i2c: E2 17 00 F0 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 DA [10:52:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [10:52:43]wFMCommunicate OK [10:52:43]requested_item fd.num is exist - process it [10:52:43]SAM_PROTO_GetFieldsCounters [10:52:43]wFMCommunicate request_size=4 [10:52:43]MH_SAM_APDU [10:52:43]CAPDU: 80 13 00 00 [10:52:43]Write to MH i2c: E2 08 00 F1 1D 80 13 00 00 00 00 00 00 8A [10:52:43]Write i2c OK [10:52:43]MH_I2C_Read... [10:52:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:52:43]Read from MH i2c: E2 [10:52:43]MH_I2C_Read... [10:52:43]Read from MH i2c: E2 62 00 [10:52:43]MH_I2C_Read... [10:52:43]Read from MH i2c: E2 62 00 F1 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 C6 96 01 00 0E 04 04 00 63 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 1D [10:52:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 96 01 00 0E 04 04 00 63 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:52:43]wFMCommunicate OK [10:52:43]SAM_PROTO_GetFieldsCounters done [10:52:43]requested_item shift.num is exist - process it [10:52:43]requested_item shift.opened is exist - process it [10:52:43]req_shift_opened [10:52:43]FM_GetShiftState [10:52:43]SAM_PROTO_GetShiftState [10:52:43]wFMCommunicate request_size=4 [10:52:43]MH_SAM_APDU [10:52:43]CAPDU: 80 13 01 00 [10:52:43]Write to MH i2c: E2 08 00 F2 1D 80 13 01 00 00 00 00 00 8C [10:52:43]Write i2c OK [10:52:43]MH_I2C_Read... [10:52:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:52:43]Read from MH i2c: E2 [10:52:43]MH_I2C_Read... [10:52:43]Read from MH i2c: E2 0E 00 [10:52:43]MH_I2C_Read... [10:52:43]Read from MH i2c: E2 0E 00 F2 1D 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 9F [10:52:43]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [10:52:43]wFMCommunicate OK [10:52:43]SAM_PROTO_GetShiftState done [10:52:43]FM_GetShiftState done [10:52:43]req_shift_opened done [10:52:43]requested_item shift.open_date is exist - process it [10:52:43]req_shift_open_date [10:52:43]req_shift_open_date done [10:52:43]produce_requested_data done [10:52:43]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104134,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [10:52:43]process_action_free close_receipt [10:52:43]json_value_free [10:52:43]json_value_free done [10:52:43]process_json_proto returns [10:52:43]Send response to host [10:52:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104134,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [10:52:43]free response buf [10:52:43]execute_script done [10:52:43]execute_script returns [10:52:43]free content buf [10:52:43]Sock 7.Close socket [10:52:43]Sock 7.Thread stoped [10:52:47]OFD Sender: No OFD packet to send [10:52:52]OFD Sender: No OFD packet to send [10:52:57]OFD Sender: No OFD packet to send [10:53:02]OFD Sender: No OFD packet to send [10:53:07]OFD Sender: No OFD packet to send [10:53:12]OFD Sender: No OFD packet to send [10:53:17]OFD Sender: No OFD packet to send [10:53:22]OFD Sender: No OFD packet to send [10:53:27]OFD Sender: No OFD packet to send [10:53:32]OFD Sender: No OFD packet to send [10:53:37]OFD Sender: No OFD packet to send [10:53:42]OFD Sender: No OFD packet to send [10:53:47]OFD Sender: No OFD packet to send [10:53:52]OFD Sender: No OFD packet to send [10:53:57]OFD Sender: No OFD packet to send [10:54:02]OFD Sender: No OFD packet to send [10:54:07]OFD Sender: No OFD packet to send [10:54:12]OFD Sender: No OFD packet to send [10:54:17]OFD Sender: No OFD packet to send [10:54:22]OFD Sender: No OFD packet to send [10:54:27]OFD Sender: No OFD packet to send [10:54:32]OFD Sender: No OFD packet to send [10:54:37]OFD Sender: No OFD packet to send [10:54:42]OFD Sender: No OFD packet to send [10:54:47]OFD Sender: No OFD packet to send [10:54:52]OFD Sender: No OFD packet to send [10:54:57]OFD Sender: No OFD packet to send [10:55:02]OFD Sender: No OFD packet to send [10:55:07]OFD Sender: No OFD packet to send [10:55:12]OFD Sender: No OFD packet to send [10:55:17]OFD Sender: No OFD packet to send [10:55:22]OFD Sender: No OFD packet to send [10:55:27]OFD Sender: No OFD packet to send [10:55:32]OFD Sender: No OFD packet to send [10:55:37]OFD Sender: No OFD packet to send [10:55:42]OFD Sender: No OFD packet to send [10:55:47]OFD Sender: No OFD packet to send [10:55:52]OFD Sender: No OFD packet to send [10:55:57]OFD Sender: No OFD packet to send [10:56:02]OFD Sender: No OFD packet to send [10:56:07]OFD Sender: No OFD packet to send [10:56:12]OFD Sender: No OFD packet to send [10:56:17]OFD Sender: No OFD packet to send [10:56:22]OFD Sender: No OFD packet to send [10:56:27]OFD Sender: No OFD packet to send [10:56:32]OFD Sender: No OFD packet to send [10:56:37]OFD Sender: No OFD packet to send [10:56:42]OFD Sender: No OFD packet to send [10:56:47]OFD Sender: No OFD packet to send [10:56:52]OFD Sender: No OFD packet to send [10:56:57]OFD Sender: No OFD packet to send [10:57:02]OFD Sender: No OFD packet to send [10:57:07]OFD Sender: No OFD packet to send [10:57:12]OFD Sender: No OFD packet to send [10:57:17]OFD Sender: No OFD packet to send [10:57:22]OFD Sender: No OFD packet to send [10:57:27]OFD Sender: No OFD packet to send [10:57:32]OFD Sender: No OFD packet to send [10:57:37]OFD Sender: No OFD packet to send [10:57:42]OFD Sender: No OFD packet to send [10:57:47]OFD Sender: No OFD packet to send [10:57:52]OFD Sender: No OFD packet to send [10:57:57]OFD Sender: No OFD packet to send [10:58:02]OFD Sender: No OFD packet to send [10:58:07]OFD Sender: No OFD packet to send [10:58:12]OFD Sender: No OFD packet to send [10:58:17]OFD Sender: No OFD packet to send [10:58:22]OFD Sender: No OFD packet to send [10:58:27]OFD Sender: No OFD packet to send [10:58:32]OFD Sender: No OFD packet to send [10:58:37]OFD Sender: No OFD packet to send [10:58:42]OFD Sender: No OFD packet to send [10:58:47]OFD Sender: No OFD packet to send [10:58:52]OFD Sender: No OFD packet to send [10:58:57]OFD Sender: No OFD packet to send [10:59:00]accept exits with 9 [10:59:00]New connection [10:59:00]New thread 3066715492 created [10:59:00]Thread 3066858852 joined [10:59:00]Waiting for new connection... [10:59:00] Sock 9.Parse request [10:59:00]Sock 9.Check first char [10:59:00]Sock 9.First char is OK [10:59:00]request: POST /json_proto HTTP/1.0 [10:59:00]Method: POST [10:59:00]URL: /json_proto [10:59:00]Method is POST - this is cgi request [10:59:00]url: /json_proto [10:59:00]query_string will be loaded in cgi processing [10:59:00]execute_cgi json_proto POST (null) [10:59:00]execute_cgi path=json_proto method=POST [10:59:00]POST find Content-Length [10:59:00]Host: 172.17.38.133:8080 [10:59:00]Content-Length: 816 [10:59:00]Content-Type: application/json [10:59:00] [10:59:00]POST finish read [10:59:00]Found Content-Length = 816 [10:59:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673550", "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 }]} ], "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" ] } } [10:59:00]execute_script... [10:59: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)673550", "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 }]} ], "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" ] } } [10:59:00]POST & json_proto [10:59:00]process_json_proto [10:59:00]json parsed OK: [10:59:00]protocol is kg_v1.0 [10:59:00]action value=close_receipt [10:59:00]process_action close_receipt [10:59:00]cmd_close_receipt [10:59:00]MH_GetDate [10:59:00]Write to MH i2c: F0 00 00 F3 1D FF [10:59:00]Write i2c OK [10:59:00]MH_I2C_Read... [10:59:00]Read from MH i2c: F0 [10:59:00]MH_I2C_Read... [10:59:00]Read from MH i2c: F0 09 00 [10:59:00]MH_I2C_Read... [10:59:00]Read from MH i2c: F0 09 00 F3 1D 00 F8 5C 75 66 BD 8F 7C 64 63 [10:59:00]GetLastDocTimeStamp 1718967163 [10:59:00]current date 1718967544 [10:59:00]FM_GetShiftState [10:59:00]SAM_PROTO_GetShiftState [10:59:00]wFMCommunicate request_size=4 [10:59:00]MH_SAM_APDU [10:59:00]CAPDU: 80 13 01 00 [10:59:00]Write to MH i2c: E2 08 00 F4 1D 80 13 01 00 00 00 00 00 8E [10:59:00]Write i2c OK [10:59:00]MH_I2C_Read... [10:59:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:59:00]Read from MH i2c: E2 [10:59:00]MH_I2C_Read... [10:59:00]Read from MH i2c: E2 0E 00 [10:59:00]MH_I2C_Read... [10:59:00]Read from MH i2c: E2 0E 00 F4 1D 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 A1 [10:59:00]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [10:59:00]wFMCommunicate OK [10:59:00]SAM_PROTO_GetShiftState done [10:59:00]FM_GetShiftState done [10:59:00]opened in 1718929509 [10:59:00]opened+sec_in_day 1719015909 [10:59:00]quantity*price = 50065 [10:59:00]sum+1 = 50067 [10:59:00]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 СНО: Общий режим Чек 58 21.06.2024 10:59 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875093 ФД: 104135 ФПД: 2579454858538 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T105904&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104135&fm=2579454858538&tin=02508201610067®Number=0000000000092785&sum=50066 [10:59:01]StoreToDocumentArchive [10:59:01]shift 355 fd 104135 [10:59:01]save to /storage/0355/doc_00104135 [10:59:01]save last doc name /storage/0355/doc_00104135 to /storage/kkm_last_doc_name [10:59:01]save OK [10:59:01]Clear old archive folders... [10:59:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:59:01]tlvbuf is 0118B420 [10:59:01]SAM_PROTO_ClearQueue [10:59:01]wFMCommunicate request_size=4 [10:59:01]MH_SAM_APDU [10:59:01]CAPDU: 80 09 00 00 [10:59:01]Write to MH i2c: E2 08 00 01 1E 80 09 00 00 00 00 00 00 91 [10:59:01]Write i2c OK [10:59:01]MH_I2C_Read... [10:59:01]Read from MH i2c: E2 [10:59:01]MH_I2C_Read... [10:59:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:59:01]Read from MH i2c: E2 03 00 [10:59:01]MH_I2C_Read... [10:59:01]Read from MH i2c: E2 03 00 01 1E 00 90 00 93 [10:59:01]RAPDU: 90 00 [10:59:01]wFMCommunicate OK [10:59:01]SAM_PROTO_ClearQueue done [10:59:01]KKMCreateOFDPacket [10:59:01]OFDProtocolAddRootSTLVToBuf [10:59:01]FM_MakeSignedData [10:59:01]FM_MakeSignedData [10:59:01]SAM_PROTO_SignData [10:59:01]wFMCommunicate request_size=4 [10:59:01]MH_SAM_APDU [10:59:01]CAPDU: 80 0D 01 02 [10:59:01]Write to MH i2c: E2 08 00 02 1E 80 0D 01 02 00 00 00 00 99 [10:59:01]Write i2c OK [10:59:01]MH_I2C_Read... [10:59:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:59:01]Read from MH i2c: E2 [10:59:01]MH_I2C_Read... [10:59:01]Read from MH i2c: E2 03 00 [10:59:01]MH_I2C_Read... [10:59:01]Read from MH i2c: E2 03 00 02 1E 00 90 00 94 [10:59:01]RAPDU: 90 00 [10:59:01]wFMCommunicate OK [10:59:01]wFMCommunicate request_size=255 [10:59:01]MH_SAM_APDU [10:59:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 3A 00 00 00 F4 03 04 00 F8 5C 75 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 C7 96 01 00 35 04 06 00 02 [10:59:01]Write to MH i2c: E2 02 01 03 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 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 3A 00 00 00 F4 03 04 00 F8 5C 75 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 C7 96 01 00 35 04 06 00 02 00 00 04 [10:59:01]Write i2c OK [10:59:01]MH_I2C_Read... [10:59:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:59:01]Read from MH i2c: E2 [10:59:01]MH_I2C_Read... [10:59:01]Read from MH i2c: E2 03 00 [10:59:01]MH_I2C_Read... [10:59:01]Read from MH i2c: E2 03 00 03 1E 00 90 00 95 [10:59:01]RAPDU: 90 00 [10:59:01]wFMCommunicate OK [10:59:01]wFMCommunicate request_size=10 [10:59:01]MH_SAM_APDU [10:59:01]CAPDU: 80 0D 02 02 05 58 93 7D 95 2A [10:59:01]Write to MH i2c: E2 0D 00 04 1E 80 0D 02 02 05 00 58 93 7D 95 2A 00 00 CD [10:59:01]Write i2c OK [10:59:01]MH_I2C_Read... [10:59:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:59:01]Read from MH i2c: E2 [10:59:01]MH_I2C_Read... [10:59:01]Read from MH i2c: E2 03 00 [10:59:01]MH_I2C_Read... [10:59:01]Read from MH i2c: E2 03 00 04 1E 00 90 00 96 [10:59:01]RAPDU: 90 00 [10:59:01]wFMCommunicate OK [10:59:01]wFMCommunicate request_size=4 [10:59:01]MH_SAM_APDU [10:59:01]CAPDU: 80 0D 03 02 [10:59:01]Write to MH i2c: E2 08 00 05 1E 80 0D 03 02 00 00 00 00 9E [10:59:01]Write i2c OK [10:59:01]MH_I2C_Read... [10:59:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:59:01]Read from MH i2c: E2 [10:59:01]MH_I2C_Read... [10:59:01]Read from MH i2c: E2 0B 00 [10:59:01]MH_I2C_Read... [10:59:01]Read from MH i2c: E2 0B 00 05 1E 00 72 22 0F 5D 3B A9 61 FE 90 00 E2 [10:59:01]RAPDU: 72 22 0F 5D 3B A9 61 FE 90 00 [10:59:01]wFMCommunicate OK [10:59:01]SAM_PROTO_SignData done [10:59:01]FM_MakeSignedData done [10:59:01]CreateOFDProtocolMessage [10:59:01]wFMCommunicate request_size=4 [10:59:01]MH_SAM_APDU [10:59:01]CAPDU: 80 11 00 00 [10:59:01]Write to MH i2c: E2 08 00 06 1E 80 11 00 00 00 00 00 00 9E [10:59:01]Write i2c OK [10:59:01]MH_I2C_Read... [10:59:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:59:01]Read from MH i2c: E2 [10:59:01]MH_I2C_Read... [10:59:01]Read from MH i2c: E2 17 00 [10:59:01]MH_I2C_Read... [10:59:01]Read from MH i2c: E2 17 00 06 1E 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:59:01]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:01]wFMCommunicate OK [10:59:01]CreateOFDProtocolMessage done [10:59:01]OFDSenderStorePacket 104135 [10:59:01]StoreOFDPacket docnum=104135 [10:59: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 2A 4A 07 01 C0 99 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 3A 00 00 00 F4 03 04 00 F8 5C 75 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 C7 96 01 00 35 04 06 00 02 58 93 7D 95 2A 72 22 0F 5D 3B A9 61 FE [10:59:01]CheckFolder [10:59:01]dirname=/storage/ofd_packets [10:59:01]CheckFolder done [10:59:01]ProducePacketName [10:59:01]name=ofd_packets/00104135 [10:59:01]NVStorageSaveData ofd_packets/00104135 [10:59:01]File name is /storage/ofd_packets/00104135 [10:59:01]Write 301 bytes [10:59:01]NVStorageSaveData done [10:59:01]OFDSenderStorePacket done [10:59:01]KKMCreateOFDPacket done [10:59:01]NVStorageSaveData kkm_last_timestamp [10:59:01]File name is /storage/kkm_last_timestamp [10:59:01]Write 4 bytes [10:59:01]NVStorageSaveData done [10:59:01]ExternCall_PrintAddStr [10:59:01]wPrintStart [10:59:01]Write to MH i2c: 01 00 00 07 1E 25 [10:59:01]Write i2c OK [10:59:01]MH_I2C_Read... [10:59:01]Read from MH i2c: 01 [10:59:01]MH_I2C_Read... [10:59:01]Read from MH i2c: 01 07 00 [10:59:01]MH_I2C_Read... [10:59:01]Read from MH i2c: 01 07 00 07 1E 00 00 00 00 00 FF 0F 3A [10:59:01]RasterBufferAndPrint [10:59:01]line Счет N : (1)673550 [10:59:01]line ИНН: 02508201610067 [10:59:01]line Контрольно-Кассовый Чек [10:59:01]line ПРОДАЖА [10:59:01]line ТРК (МРК, ГНК) : 42 [10:59:01]line Товар: 2710124130 [10:59:01]line Аи-92-К-5 [10:59:01]line 7.540 * 66.40 [10:59:01]line = 500.66 [10:59:01]line НДС 12% НСП 1% [10:59:01]line > о реализуемом товаре [10:59:01]line ИТОГО: 500.66 [10:59:01]line НСП 1% : 4.43 [10:59:01]line НДС 12% : 53.17 [10:59:01]line Наличными: 0.00 [10:59:01]line Безнал.: 500.66 [10:59:01]line Место: АЗС № 120 "Партнер Нефть" [10:59:01]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [10:59:01]line СНО: Общий режим [10:59:01]line Чек 58 21.06.2024 10:59 [10:59:01]line Смена: 355 ФФД: 1.0 [10:59:01]line ЗНМ: 0300000164 [10:59:01]line РНМ: 0000000000092785 [10:59:01]line Версия ККМ: 001 [10:59:01]line Платежная система: Бакай Банк [10:59:01]line ФМ: 0000000000875093 [10:59:01]line ФД: 104135 [10:59:01]line ФПД: 2579454858538 [10:59:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T105904&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104135&fm=2579454858538&tin=02508201610067®Number=0000000000092785&sum=50066 [10:59:02]OFD Sender: Processing packet 104135 [packets to send 17, broken 16] [10:59:02]ProducePacketName [10:59:02]name=ofd_packets/00104135 [10:59:02]OFD Sender: To server: pG, [10:59:02]CommunicateWithHost lk.salyk.kg:30040 [10:59:02]ConnectInit lk.salyk.kg [10:59:02]written 0, free lines is 4095 [10:59:02]Connected sock=10 [10:59: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 2A 4A 07 01 C0 99 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 3A 00 00 00 F4 03 04 00 F8 5C 75 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 C7 96 01 00 35 04 06 00 02 58 93 7D 95 2A 72 22 0F 5D 3B A9 61 FE [10:59:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 CC 0A 47 00 83 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 C7 96 01 00 F4 03 04 00 7B 03 75 66 B6 04 01 00 00 01 8F E2 DC 6D 6A 62 6D [10:59:02]CommunicateWithHost err = 0 [10:59:02]CheckOFDResponse [10:59:02]1017 (14) - 77093643461234 [10:59:02]1041 (16) - 0000000000875093 [10:59:02]1040 (4) - 104135 [10:59:02]1012 (4) - 21.06.2024 04:37 [10:59:02]1206 (1) - 0 [10:59:02]OFD Sender: Remove packet 104135 [10:59:02]ProducePacketName [10:59:02]name=ofd_packets/00104135 [10:59:02]NVStorageDeleteData [10:59:02]Write to MH i2c: 01 00 00 31 1E 4F [10:59:02]Write i2c OK [10:59:02]MH_I2C_Read... [10:59:02]Read from MH i2c: 01 [10:59:02]MH_I2C_Read... [10:59:02]Read from MH i2c: 01 07 00 [10:59:02]MH_I2C_Read... [10:59:02]Read from MH i2c: 01 07 00 31 1E 00 00 00 00 00 FD 0C 5F [10:59:02]RasterBufferAndPrint [10:59:02]line [10:59:02]line [10:59:02]line [10:59:02]line [10:59:02]line [10:59:02]written 0, free lines is 3334 [10:59:02]MH_Cut [10:59:02]Write to MH i2c: D1 01 00 38 1E 01 28 [10:59:02]Write i2c OK [10:59:02]MH_I2C_Read... [10:59:02]Read from MH i2c: D1 [10:59:02]MH_I2C_Read... [10:59:02]Read from MH i2c: D1 01 00 [10:59:02]MH_I2C_Read... [10:59:02]Read from MH i2c: D1 01 00 38 1E 00 27 [10:59:02]Write to MH i2c: 01 00 00 39 1E 57 [10:59:02]Write i2c OK [10:59:02]MH_I2C_Read... [10:59:03]OFD Sender: No OFD packet to send [10:59:03]*** Cut start [10:59:03]*** Partial cut [10:59:03]*** CUTSNS_PIN = 1 [10:59:03]*** CUTSNS_PIN = 0 [10:59:03]*** Brake cut motor [10:59:04]Read from MH i2c: 01 [10:59:04]MH_I2C_Read... [10:59:04]*** Stop cut motor [10:59:04]*** Cut end [10:59:04]Read from MH i2c: 01 07 00 [10:59:04]MH_I2C_Read... [10:59:04]Read from MH i2c: 01 07 00 39 1E 00 00 00 00 00 FF 0F 6C [10:59:04]process_action close_receipt done [10:59:04]requested_data is exist [10:59:04]produce_requested_data [10:59:04]requested_item fm.sn is exist - process it [10:59:04]wFMCommunicate request_size=4 [10:59:04]MH_SAM_APDU [10:59:04]CAPDU: 80 11 00 00 [10:59:04]Write to MH i2c: E2 08 00 3A 1E 80 11 00 00 00 00 00 00 D2 [10:59:04]Write i2c OK [10:59:04]MH_I2C_Read... [10:59:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:59:04]Read from MH i2c: E2 [10:59:04]MH_I2C_Read... [10:59:04]Read from MH i2c: E2 17 00 [10:59:04]MH_I2C_Read... [10:59:04]Read from MH i2c: E2 17 00 3A 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 25 [10:59:04]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:04]wFMCommunicate OK [10:59:04]requested_item fd.num is exist - process it [10:59:04]SAM_PROTO_GetFieldsCounters [10:59:04]wFMCommunicate request_size=4 [10:59:04]MH_SAM_APDU [10:59:04]CAPDU: 80 13 00 00 [10:59:04]Write to MH i2c: E2 08 00 3B 1E 80 13 00 00 00 00 00 00 D5 [10:59:04]Write i2c OK [10:59:04]MH_I2C_Read... [10:59:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:59:04]Read from MH i2c: E2 [10:59:04]MH_I2C_Read... [10:59:04]Read from MH i2c: E2 62 00 [10:59:04]MH_I2C_Read... [10:59:04]Read from MH i2c: E2 62 00 3B 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 C7 96 01 00 0E 04 04 00 63 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 6C [10:59: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 C7 96 01 00 0E 04 04 00 63 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:59:04]wFMCommunicate OK [10:59:04]SAM_PROTO_GetFieldsCounters done [10:59:04]requested_item shift.num is exist - process it [10:59:04]requested_item shift.opened is exist - process it [10:59:04]req_shift_opened [10:59:04]FM_GetShiftState [10:59:04]SAM_PROTO_GetShiftState [10:59:04]wFMCommunicate request_size=4 [10:59:04]MH_SAM_APDU [10:59:04]CAPDU: 80 13 01 00 [10:59:04]Write to MH i2c: E2 08 00 3C 1E 80 13 01 00 00 00 00 00 D7 [10:59:04]Write i2c OK [10:59:04]MH_I2C_Read... [10:59:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:59:04]Read from MH i2c: E2 [10:59:04]MH_I2C_Read... [10:59:04]Read from MH i2c: E2 0E 00 [10:59:04]MH_I2C_Read... [10:59:04]Read from MH i2c: E2 0E 00 3C 1E 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 EA [10:59:04]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [10:59:04]wFMCommunicate OK [10:59:04]SAM_PROTO_GetShiftState done [10:59:04]FM_GetShiftState done [10:59:04]req_shift_opened done [10:59:04]requested_item shift.open_date is exist - process it [10:59:04]req_shift_open_date [10:59:04]req_shift_open_date done [10:59:04]produce_requested_data done [10:59:04]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104135,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [10:59:04]process_action_free close_receipt [10:59:04]json_value_free [10:59:04]json_value_free done [10:59:04]process_json_proto returns [10:59:04]Send response to host [10:59:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104135,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [10:59:04]free response buf [10:59:04]execute_script done [10:59:04]execute_script returns [10:59:04]free content buf [10:59:04]Sock 9.Close socket [10:59:04]Sock 9.Thread stoped [10:59:08]OFD Sender: No OFD packet to send [10:59:13]OFD Sender: No OFD packet to send [10:59:18]OFD Sender: No OFD packet to send [10:59:23]OFD Sender: No OFD packet to send [10:59:28]OFD Sender: No OFD packet to send [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]OFD Sender: No OFD packet to send [11:01:38]OFD Sender: No OFD packet to send [11:01:43]OFD Sender: No OFD packet to send [11:01:48]OFD Sender: No OFD packet to send [11:01:53]OFD Sender: No OFD packet to send [11:01:58]OFD Sender: No OFD packet to send [11:02:03]OFD Sender: No OFD packet to send [11:02:08]OFD Sender: No OFD packet to send [11:02:13]OFD Sender: No OFD packet to send [11:02:18]OFD Sender: No OFD packet to send [11:02:23]OFD Sender: No OFD packet to send [11:02:28]OFD Sender: No OFD packet to send [11:02:33]OFD Sender: No OFD packet to send [11:02:38]OFD Sender: No OFD packet to send [11:02:43]OFD Sender: No OFD packet to send [11:02:48]OFD Sender: No OFD packet to send [11:02:53]OFD Sender: No OFD packet to send [11:02:58]OFD Sender: No OFD packet to send [11:03:03]OFD Sender: No OFD packet to send [11:03:08]OFD Sender: No OFD packet to send [11:03:13]OFD Sender: No OFD packet to send [11:03:18]OFD Sender: No OFD packet to send [11:03:23]OFD Sender: No OFD packet to send [11:03:28]OFD Sender: No OFD packet to send [11:03:33]OFD Sender: No OFD packet to send [11:03:38]OFD Sender: No OFD packet to send [11:03:43]OFD Sender: No OFD packet to send [11:03:48]OFD Sender: No OFD packet to send [11:03:53]OFD Sender: No OFD packet to send [11:03:58]OFD Sender: No OFD packet to send [11:04:03]OFD Sender: No OFD packet to send [11:04:08]OFD Sender: No OFD packet to send [11:04:13]OFD Sender: No OFD packet to send [11:04:18]OFD Sender: No OFD packet to send [11:04:23]OFD Sender: No OFD packet to send [11:04:28]OFD Sender: No OFD packet to send [11:04:33]OFD Sender: No OFD packet to send [11:04:38]OFD Sender: No OFD packet to send [11:04:43]OFD Sender: No OFD packet to send [11:04:48]OFD Sender: No OFD packet to send [11:04:53]OFD Sender: No OFD packet to send [11:04:58]OFD Sender: No OFD packet to send [11:05:03]OFD Sender: No OFD packet to send [11:05:08]OFD Sender: No OFD packet to send [11:05:13]OFD Sender: No OFD packet to send [11:05:18]OFD Sender: No OFD packet to send [11:05:23]OFD Sender: No OFD packet to send [11:05:28]OFD Sender: No OFD packet to send [11:05:33]OFD Sender: No OFD packet to send [11:05:38]OFD Sender: No OFD packet to send [11:05:43]OFD Sender: No OFD packet to send [11:05:48]OFD Sender: No OFD packet to send [11:05:53]OFD Sender: No OFD packet to send [11:05:58]OFD Sender: No OFD packet to send [11:05:59]accept exits with 7 [11:05:59]New connection [11:05:59]New thread 3066858852 created [11:05:59]Thread 3066715492 joined [11:05:59]Waiting for new connection... [11:05:59] Sock 7.Parse request [11:05:59]Sock 7.Check first char [11:05:59]Sock 7.First char is OK [11:05:59]request: POST /json_proto HTTP/1.0 [11:05:59]Method: POST [11:05:59]URL: /json_proto [11:05:59]Method is POST - this is cgi request [11:05:59]url: /json_proto [11:05:59]query_string will be loaded in cgi processing [11:05:59]execute_cgi json_proto POST (null) [11:05:59]execute_cgi path=json_proto method=POST [11:05:59]POST find Content-Length [11:05:59]Host: 172.17.38.133:8080 [11:05:59]Content-Length: 1162 [11:05:59]Content-Type: application/json [11:05:59] [11:05:59]POST finish read [11:05:59]Found Content-Length = 1162 [11:05:59]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)673551\u000A21.06.2024 10:43\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 45.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 3280.50\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30101762\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:05:59]execute_script... [11:05:59]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)673551\u000A21.06.2024 10:43\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 45.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 3280.50\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30101762\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:05:59]POST & json_proto [11:05:59]process_json_proto [11:05:59]json parsed OK: [11:05:59]protocol is kg_v1.0 [11:05:59]action value=print_text [11:05:59]process_action print_text [11:05:59]cmd_print_text [11:05:59]ExternCall_PrintAddStr [11:05:59]wPrintStart [11:05:59]Write to MH i2c: 01 00 00 3D 1E 5B [11:05:59]Write i2c OK [11:05:59]MH_I2C_Read... [11:05:59]Read from MH i2c: 01 [11:05:59]MH_I2C_Read... [11:05:59]Read from MH i2c: 01 07 00 [11:05:59]MH_I2C_Read... [11:05:59]Read from MH i2c: 01 07 00 3D 1E 00 00 00 00 00 FF 0F 70 [11:05:59]RasterBufferAndPrint [11:05:59]line *****ТОВАРНЫЙ ЧЕК***** [11:05:59]line АЗС 120 [11:05:59]line Партнер нефть [11:05:59]line 02508201610067 [11:05:59]line Кассир : Асанбаев Н. [11:05:59]line Счет N : (1)673551 [11:05:59]line 21.06.2024 10:43 [11:05:59]line ПРОДАЖА [11:05:59]line ТРК (МРК, ГНК): 21 [11:05:59]line Вид ГСМ : 2710194210 [11:05:59]line ДТ(л)-К-5 [11:05:59]line 45.000 x 72.90 [11:05:59]line ИТОГ: 3280.50 [11:05:59]line Тип оплаты: Талоны: ТК ГПНА Online [11:05:59]line 30101762 [11:05:59]line ______________________ [11:05:59]line (подпись) [11:05:59]written 0, free lines is 4095 [11:05:59]Write to MH i2c: 01 00 00 51 1E 6F [11:05:59]Write i2c OK [11:05:59]MH_I2C_Read... [11:05:59]Read from MH i2c: 01 [11:05:59]MH_I2C_Read... [11:05:59]Read from MH i2c: 01 07 00 [11:05:59]MH_I2C_Read... [11:05:59]Read from MH i2c: 01 07 00 51 1E 00 00 00 00 00 0E 0E 92 [11:05:59]RasterBufferAndPrint [11:05:59]line [11:05:59]line [11:05:59]line [11:05:59]line [11:05:59]line [11:05:59]written 0, free lines is 3600 [11:05:59]MH_Cut [11:05:59]Write to MH i2c: D1 01 00 58 1E 01 48 [11:05:59]Write i2c OK [11:05:59]MH_I2C_Read... [11:05:59]Read from MH i2c: D1 [11:05:59]MH_I2C_Read... [11:05:59]Read from MH i2c: D1 01 00 [11:05:59]MH_I2C_Read... [11:05:59]Read from MH i2c: D1 01 00 58 1E 00 47 [11:05:59]Write to MH i2c: 01 00 00 59 1E 77 [11:05:59]Write i2c OK [11:05:59]MH_I2C_Read... [11:06:00]*** Cut start [11:06:00]*** Partial cut [11:06:00]*** CUTSNS_PIN = 1 [11:06:00]*** CUTSNS_PIN = 0 [11:06:00]*** Brake cut motor [11:06:00]Read from MH i2c: 01 [11:06:00]MH_I2C_Read... [11:06:00]*** Stop cut motor [11:06:00]*** Cut end [11:06:00]Read from MH i2c: 01 07 00 [11:06:00]MH_I2C_Read... [11:06:00]Read from MH i2c: 01 07 00 59 1E 00 00 00 00 00 FF 0F 8C [11:06:00]process_action print_text done [11:06:00]requested_data is exist [11:06:00]produce_requested_data [11:06:00]requested_item fm.sn is exist - process it [11:06:00]wFMCommunicate request_size=4 [11:06:00]MH_SAM_APDU [11:06:00]CAPDU: 80 11 00 00 [11:06:00]Write to MH i2c: E2 08 00 5A 1E 80 11 00 00 00 00 00 00 F2 [11:06:00]Write i2c OK [11:06:00]MH_I2C_Read... [11:06:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:06:00]Read from MH i2c: E2 [11:06:00]MH_I2C_Read... [11:06:00]Read from MH i2c: E2 17 00 [11:06:00]MH_I2C_Read... [11:06:00]Read from MH i2c: E2 17 00 5A 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 45 [11:06:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [11:06:00]wFMCommunicate OK [11:06:00]requested_item fd.num is exist - process it [11:06:00]SAM_PROTO_GetFieldsCounters [11:06:00]wFMCommunicate request_size=4 [11:06:00]MH_SAM_APDU [11:06:00]CAPDU: 80 13 00 00 [11:06:00]Write to MH i2c: E2 08 00 5B 1E 80 13 00 00 00 00 00 00 F5 [11:06:00]Write i2c OK [11:06:00]MH_I2C_Read... [11:06:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:06:00]Read from MH i2c: E2 [11:06:00]MH_I2C_Read... [11:06:00]Read from MH i2c: E2 62 00 [11:06:00]MH_I2C_Read... [11:06:00]Read from MH i2c: E2 62 00 5B 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 C7 96 01 00 0E 04 04 00 63 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 8C [11:06: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 C7 96 01 00 0E 04 04 00 63 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 [11:06:00]wFMCommunicate OK [11:06:00]SAM_PROTO_GetFieldsCounters done [11:06:00]requested_item shift.num is exist - process it [11:06:00]requested_item shift.opened is exist - process it [11:06:00]req_shift_opened [11:06:00]FM_GetShiftState [11:06:00]SAM_PROTO_GetShiftState [11:06:00]wFMCommunicate request_size=4 [11:06:00]MH_SAM_APDU [11:06:00]CAPDU: 80 13 01 00 [11:06:00]Write to MH i2c: E2 08 00 5C 1E 80 13 01 00 00 00 00 00 F7 [11:06:00]Write i2c OK [11:06:00]MH_I2C_Read... [11:06:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:06:00]Read from MH i2c: E2 [11:06:00]MH_I2C_Read... [11:06:00]Read from MH i2c: E2 0E 00 [11:06:00]MH_I2C_Read... [11:06:00]Read from MH i2c: E2 0E 00 5C 1E 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 0A [11:06:00]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [11:06:00]wFMCommunicate OK [11:06:00]SAM_PROTO_GetShiftState done [11:06:00]FM_GetShiftState done [11:06:00]req_shift_opened done [11:06:00]requested_item shift.open_date is exist - process it [11:06:00]req_shift_open_date [11:06:00]req_shift_open_date done [11:06:00]produce_requested_data done [11:06:00]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104135,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [11:06:00]process_action_free print_text [11:06:00]json_value_free [11:06:00]json_value_free done [11:06:00]process_json_proto returns [11:06:00]Send response to host [11:06:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104135,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [11:06:00]free response buf [11:06:00]execute_script done [11:06:00]execute_script returns [11:06:00]free content buf [11:06:00]Sock 7.Close socket [11:06:00]Sock 7.Thread stoped [11:06:03]OFD Sender: No OFD packet to send [11:06:08]OFD Sender: No OFD packet to send [11:06:13]OFD Sender: No OFD packet to send [11:06:14]accept exits with 9 [11:06:14]New connection [11:06:14]New thread 3066715492 created [11:06:14]Thread 3066858852 joined [11:06:14]Waiting for new connection... [11:06:14] Sock 9.Parse request [11:06:14]Sock 9.Check first char [11:06:14]Sock 9.First char is OK [11:06:14]request: POST /json_proto HTTP/1.0 [11:06:14]Method: POST [11:06:14]URL: /json_proto [11:06:14]Method is POST - this is cgi request [11:06:14]url: /json_proto [11:06:14]query_string will be loaded in cgi processing [11:06:14]execute_cgi json_proto POST (null) [11:06:14]execute_cgi path=json_proto method=POST [11:06:14]POST find Content-Length [11:06:14]Host: 172.17.38.133:8080 [11:06:14]Content-Length: 677 [11:06:14]Content-Type: application/json [11:06:14] [11:06:14]POST finish read [11:06:14]Found Content-Length = 677 [11:06:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673553", "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:06:14]execute_script... [11:06: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)673553", "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:06:14]POST & json_proto [11:06:14]process_json_proto [11:06:14]json parsed OK: [11:06:14]protocol is kg_v1.0 [11:06:14]action value=close_receipt [11:06:14]process_action close_receipt [11:06:14]cmd_close_receipt [11:06:14]MH_GetDate [11:06:14]Write to MH i2c: F0 00 00 5D 1E 6A [11:06:14]Write i2c OK [11:06:14]MH_I2C_Read... [11:06:14]Read from MH i2c: F0 [11:06:14]MH_I2C_Read... [11:06:14]Read from MH i2c: F0 09 00 [11:06:14]MH_I2C_Read... [11:06:14]Read from MH i2c: F0 09 00 5D 1E 00 AA 5E 75 66 BD 8F 7C 64 82 [11:06:14]GetLastDocTimeStamp 1718967544 [11:06:14]current date 1718967978 [11:06:14]FM_GetShiftState [11:06:14]SAM_PROTO_GetShiftState [11:06:14]wFMCommunicate request_size=4 [11:06:14]MH_SAM_APDU [11:06:14]CAPDU: 80 13 01 00 [11:06:14]Write to MH i2c: E2 08 00 5E 1E 80 13 01 00 00 00 00 00 F9 [11:06:14]Write i2c OK [11:06:14]MH_I2C_Read... [11:06:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:06:14]Read from MH i2c: E2 [11:06:14]MH_I2C_Read... [11:06:14]Read from MH i2c: E2 0E 00 [11:06:14]MH_I2C_Read... [11:06:14]Read from MH i2c: E2 0E 00 5E 1E 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 0C [11:06:14]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [11:06:14]wFMCommunicate OK [11:06:14]SAM_PROTO_GetShiftState done [11:06:14]FM_GetShiftState done [11:06:14]opened in 1718929509 [11:06:14]opened+sec_in_day 1719015909 [11:06:14]quantity*price = 50065 [11:06:14]sum+1 = 50067 [11:06:14]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 СНО: Общий режим Чек 59 21.06.2024 11:06 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104136 ФПД: 202040439579424 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T110618&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104136&fm=202040439579424&tin=02508201610067®Number=0000000000092785&sum=50000 [11:06:15]StoreToDocumentArchive [11:06:15]shift 355 fd 104136 [11:06:15]save to /storage/0355/doc_00104136 [11:06:15]save last doc name /storage/0355/doc_00104136 to /storage/kkm_last_doc_name [11:06:15]save OK [11:06:15]Clear old archive folders... [11:06:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:06:15]tlvbuf is 010FE810 [11:06:15]SAM_PROTO_ClearQueue [11:06:15]wFMCommunicate request_size=4 [11:06:15]MH_SAM_APDU [11:06:15]CAPDU: 80 09 00 00 [11:06:15]Write to MH i2c: E2 08 00 6B 1E 80 09 00 00 00 00 00 00 FB [11:06:15]Write i2c OK [11:06:15]MH_I2C_Read... [11:06:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:06:15]Read from MH i2c: E2 [11:06:15]MH_I2C_Read... [11:06:15]Read from MH i2c: E2 03 00 [11:06:15]MH_I2C_Read... [11:06:15]Read from MH i2c: E2 03 00 6B 1E 00 90 00 FD [11:06:15]RAPDU: 90 00 [11:06:15]wFMCommunicate OK [11:06:15]SAM_PROTO_ClearQueue done [11:06:15]KKMCreateOFDPacket [11:06:15]OFDProtocolAddRootSTLVToBuf [11:06:15]FM_MakeSignedData [11:06:15]FM_MakeSignedData [11:06:15]SAM_PROTO_SignData [11:06:15]wFMCommunicate request_size=4 [11:06:15]MH_SAM_APDU [11:06:15]CAPDU: 80 0D 01 02 [11:06:15]Write to MH i2c: E2 08 00 6C 1E 80 0D 01 02 00 00 00 00 03 [11:06:15]Write i2c OK [11:06:15]MH_I2C_Read... [11:06:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:06:15]Read from MH i2c: E2 [11:06:15]MH_I2C_Read... [11:06:15]Read from MH i2c: E2 03 00 [11:06:15]MH_I2C_Read... [11:06:15]Read from MH i2c: E2 03 00 6C 1E 00 90 00 FE [11:06:15]RAPDU: 90 00 [11:06:15]wFMCommunicate OK [11:06:15]wFMCommunicate request_size=255 [11:06:15]MH_SAM_APDU [11:06:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 3B 00 00 00 F4 03 04 00 AA 5E 75 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 C8 96 01 00 35 04 06 00 B7 [11:06:15]Write to MH i2c: E2 02 01 6D 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 3B 00 00 00 F4 03 04 00 AA 5E 75 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 C8 96 01 00 35 04 06 00 B7 00 00 55 [11:06:15]Write i2c OK [11:06:15]MH_I2C_Read... [11:06:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:06:15]Read from MH i2c: E2 [11:06:15]MH_I2C_Read... [11:06:15]Read from MH i2c: E2 03 00 [11:06:15]MH_I2C_Read... [11:06:15]Read from MH i2c: E2 03 00 6D 1E 00 90 00 FF [11:06:15]RAPDU: 90 00 [11:06:15]wFMCommunicate OK [11:06:15]wFMCommunicate request_size=10 [11:06:15]MH_SAM_APDU [11:06:15]CAPDU: 80 0D 02 02 05 C1 34 A1 A3 20 [11:06:15]Write to MH i2c: E2 0D 00 6E 1E 80 0D 02 02 05 00 C1 34 A1 A3 20 00 00 69 [11:06:15]Write i2c OK [11:06:15]MH_I2C_Read... [11:06:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:06:15]Read from MH i2c: E2 [11:06:15]MH_I2C_Read... [11:06:15]Read from MH i2c: E2 03 00 [11:06:15]MH_I2C_Read... [11:06:15]Read from MH i2c: E2 03 00 6E 1E 00 90 00 00 [11:06:15]RAPDU: 90 00 [11:06:15]wFMCommunicate OK [11:06:15]wFMCommunicate request_size=4 [11:06:15]MH_SAM_APDU [11:06:15]CAPDU: 80 0D 03 02 [11:06:15]Write to MH i2c: E2 08 00 6F 1E 80 0D 03 02 00 00 00 00 08 [11:06:15]Write i2c OK [11:06:15]MH_I2C_Read... [11:06:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:06:15]Read from MH i2c: E2 [11:06:15]MH_I2C_Read... [11:06:15]Read from MH i2c: E2 0B 00 [11:06:15]MH_I2C_Read... [11:06:15]Read from MH i2c: E2 0B 00 6F 1E 00 24 A5 9C 48 43 A1 CC 68 90 00 CE [11:06:15]RAPDU: 24 A5 9C 48 43 A1 CC 68 90 00 [11:06:15]wFMCommunicate OK [11:06:15]SAM_PROTO_SignData done [11:06:15]FM_MakeSignedData done [11:06:15]CreateOFDProtocolMessage [11:06:15]wFMCommunicate request_size=4 [11:06:15]MH_SAM_APDU [11:06:15]CAPDU: 80 11 00 00 [11:06:15]Write to MH i2c: E2 08 00 70 1E 80 11 00 00 00 00 00 00 08 [11:06:15]Write i2c OK [11:06:15]MH_I2C_Read... [11:06:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:06:15]Read from MH i2c: E2 [11:06:15]MH_I2C_Read... [11:06:15]Read from MH i2c: E2 17 00 [11:06:15]MH_I2C_Read... [11:06:15]Read from MH i2c: E2 17 00 70 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 5B [11:06: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:06:15]wFMCommunicate OK [11:06:15]CreateOFDProtocolMessage done [11:06:15]OFDSenderStorePacket 104136 [11:06:15]StoreOFDPacket docnum=104136 [11:06: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 58 67 07 01 E5 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 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 3B 00 00 00 F4 03 04 00 AA 5E 75 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 C8 96 01 00 35 04 06 00 B7 C1 34 A1 A3 20 24 A5 9C 48 43 A1 CC 68 [11:06:15]CheckFolder [11:06:15]dirname=/storage/ofd_packets [11:06:15]CheckFolder done [11:06:15]ProducePacketName [11:06:15]name=ofd_packets/00104136 [11:06:15]NVStorageSaveData ofd_packets/00104136 [11:06:15]File name is /storage/ofd_packets/00104136 [11:06:15]Write 301 bytes [11:06:15]NVStorageSaveData done [11:06:15]OFDSenderStorePacket done [11:06:15]KKMCreateOFDPacket done [11:06:15]NVStorageSaveData kkm_last_timestamp [11:06:15]File name is /storage/kkm_last_timestamp [11:06:15]Write 4 bytes [11:06:15]NVStorageSaveData done [11:06:15]ExternCall_PrintAddStr [11:06:15]wPrintStart [11:06:15]Write to MH i2c: 01 00 00 71 1E 8F [11:06:15]Write i2c OK [11:06:15]MH_I2C_Read... [11:06:15]Read from MH i2c: 01 [11:06:15]MH_I2C_Read... [11:06:15]Read from MH i2c: 01 07 00 [11:06:15]MH_I2C_Read... [11:06:15]Read from MH i2c: 01 07 00 71 1E 00 00 00 00 00 FF 0F A4 [11:06:15]RasterBufferAndPrint [11:06:15]line Счет N : (1)673553 [11:06:15]line ИНН: 02508201610067 [11:06:15]line Контрольно-Кассовый Чек [11:06:15]line ПРОДАЖА [11:06:15]line ТРК (МРК, ГНК) : 32 [11:06:15]line Товар: 2710124130 [11:06:15]line Аи-92-К-5 [11:06:15]line 7.540 * 66.40 [11:06:15]line = 500.66 [11:06:15]line НДС 12% НСП 1% [11:06:15]line > о реализуемом товаре [11:06:15]line ОКРУГЛЕНИЕ: -0.66 [11:06:15]line ИТОГО: 500.00 [11:06:15]line Внесено: 500.00 [11:06:15]line СДАЧА: 0.00 [11:06:15]line НСП 1% : 4.43 [11:06:15]line НДС 12% : 53.17 [11:06:15]line Наличными: 500.00 [11:06:15]line Безнал.: 0.00 [11:06:15]line Место: АЗС № 120 "Партнер Нефть" [11:06:15]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [11:06:15]line СНО: Общий режим [11:06:15]line Чек 59 21.06.2024 11:06 [11:06:15]line Смена: 355 ФФД: 1.0 [11:06:15]line ЗНМ: 0300000164 [11:06:15]line РНМ: 0000000000092785 [11:06:15]line Версия ККМ: 001 [11:06:15]line ФМ: 0000000000875093 [11:06:15]line ФД: 104136 [11:06:15]line ФПД: 202040439579424 [11:06:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T110618&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104136&fm=202040439579424&tin=02508201610067®Number=0000000000092785&sum=50000 [11:06:16]OFD Sender: Processing packet 104136 [packets to send 17, broken 16] [11:06:16]ProducePacketName [11:06:16]name=ofd_packets/00104136 [11:06:16]OFD Sender: To server: pG, [11:06:16]CommunicateWithHost lk.salyk.kg:30040 [11:06:16]ConnectInit lk.salyk.kg [11:06:16]written 0, free lines is 4095 [11:06:16]Write to MH i2c: 01 00 00 9C 1E BA [11:06:16]Write i2c OK [11:06:16]MH_I2C_Read... [11:06:16]Read from MH i2c: 01 [11:06:16]MH_I2C_Read... [11:06:16]Read from MH i2c: 01 07 00 [11:06:16]MH_I2C_Read... [11:06:16]Read from MH i2c: 01 07 00 9C 1E 00 00 00 00 00 D7 0C A4 [11:06:16]RasterBufferAndPrint [11:06:16]line [11:06:16]line [11:06:16]line [11:06:16]line [11:06:16]line [11:06:16]written 0, free lines is 3290 [11:06:16]MH_Cut [11:06:16]Write to MH i2c: D1 01 00 A3 1E 01 93 [11:06:16]Write i2c OK [11:06:16]MH_I2C_Read... [11:06:16]Read from MH i2c: D1 [11:06:16]MH_I2C_Read... [11:06:16]Read from MH i2c: D1 01 00 [11:06:16]MH_I2C_Read... [11:06:16]Read from MH i2c: D1 01 00 A3 1E 00 92 [11:06:16]Write to MH i2c: 01 00 00 A4 1E C2 [11:06:16]Write i2c OK [11:06:16]MH_I2C_Read... [11:06:17]*** Cut start [11:06:17]*** Partial cut [11:06:17]*** CUTSNS_PIN = 1 [11:06:17]*** CUTSNS_PIN = 0 [11:06:17]*** Brake cut motor [11:06:18]Read from MH i2c: 01 [11:06:18]MH_I2C_Read... [11:06:18]*** Stop cut motor [11:06:18]*** Cut end [11:06:18]Read from MH i2c: 01 07 00 [11:06:18]MH_I2C_Read... [11:06:18]Read from MH i2c: 01 07 00 A4 1E 00 00 00 00 00 FF 0F D7 [11:06:18]process_action close_receipt done [11:06:18]requested_data is exist [11:06:18]produce_requested_data [11:06:18]requested_item fm.sn is exist - process it [11:06:18]wFMCommunicate request_size=4 [11:06:18]MH_SAM_APDU [11:06:18]CAPDU: 80 11 00 00 [11:06:18]Write to MH i2c: E2 08 00 A5 1E 80 11 00 00 00 00 00 00 3D [11:06:18]Write i2c OK [11:06:18]MH_I2C_Read... [11:06:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:06:18]Read from MH i2c: E2 [11:06:18]MH_I2C_Read... [11:06:18]Read from MH i2c: E2 17 00 [11:06:18]MH_I2C_Read... [11:06:18]Read from MH i2c: E2 17 00 A5 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 90 [11:06:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [11:06:18]wFMCommunicate OK [11:06:18]requested_item fd.num is exist - process it [11:06:18]SAM_PROTO_GetFieldsCounters [11:06:18]wFMCommunicate request_size=4 [11:06:18]MH_SAM_APDU [11:06:18]CAPDU: 80 13 00 00 [11:06:18]Write to MH i2c: E2 08 00 A6 1E 80 13 00 00 00 00 00 00 40 [11:06:18]Write i2c OK [11:06:18]MH_I2C_Read... [11:06:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:06:18]Read from MH i2c: E2 [11:06:18]MH_I2C_Read... [11:06:18]Read from MH i2c: E2 62 00 [11:06:18]MH_I2C_Read... [11:06:18]Read from MH i2c: E2 62 00 A6 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 C8 96 01 00 0E 04 04 00 63 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 DB [11:06:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 96 01 00 0E 04 04 00 63 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 [11:06:18]wFMCommunicate OK [11:06:18]SAM_PROTO_GetFieldsCounters done [11:06:18]requested_item shift.num is exist - process it [11:06:18]requested_item shift.opened is exist - process it [11:06:18]req_shift_opened [11:06:18]FM_GetShiftState [11:06:18]SAM_PROTO_GetShiftState [11:06:18]wFMCommunicate request_size=4 [11:06:18]MH_SAM_APDU [11:06:18]CAPDU: 80 13 01 00 [11:06:18]Write to MH i2c: E2 08 00 A7 1E 80 13 01 00 00 00 00 00 42 [11:06:18]Write i2c OK [11:06:18]MH_I2C_Read... [11:06:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:06:18]Read from MH i2c: E2 [11:06:18]MH_I2C_Read... [11:06:18]Read from MH i2c: E2 0E 00 [11:06:18]MH_I2C_Read... [11:06:18]Read from MH i2c: E2 0E 00 A7 1E 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 55 [11:06:18]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [11:06:18]wFMCommunicate OK [11:06:18]SAM_PROTO_GetShiftState done [11:06:18]FM_GetShiftState done [11:06:18]req_shift_opened done [11:06:18]requested_item shift.open_date is exist - process it [11:06:18]req_shift_open_date [11:06:18]req_shift_open_date done [11:06:18]produce_requested_data done [11:06:18]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104136,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [11:06:18]process_action_free close_receipt [11:06:18]json_value_free [11:06:18]json_value_free done [11:06:18]process_json_proto returns [11:06:18]Send response to host [11:06:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104136,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [11:06:18]free response buf [11:06:18]execute_script done [11:06:18]execute_script returns [11:06:18]free content buf [11:06:18]Sock 9.Close socket [11:06:18]Sock 9.Thread stoped [11:06:30]accept exits with 7 [11:06:30]New connection [11:06:30]New thread 3066858852 created [11:06:30]Thread 3066715492 joined [11:06:30]Waiting for new connection... [11:06:30] Sock 7.Parse request [11:06:30]Sock 7.Check first char [11:06:30]Sock 7.First char is OK [11:06:30]request: POST /json_proto HTTP/1.0 [11:06:30]Method: POST [11:06:30]URL: /json_proto [11:06:30]Method is POST - this is cgi request [11:06:30]url: /json_proto [11:06:30]query_string will be loaded in cgi processing [11:06:30]execute_cgi json_proto POST (null) [11:06:30]execute_cgi path=json_proto method=POST [11:06:30]POST find Content-Length [11:06:30]Host: 172.17.38.133:8080 [11:06:30]Content-Length: 1195 [11:06:30]Content-Type: application/json [11:06:30] [11:06:30]POST finish read [11:06:30]Found Content-Length = 1195 [11:06: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 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)673552\u000A21.06.2024 10:43\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 50.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 3320.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\u000A01175\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:06:30]execute_script... [11:06: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 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)673552\u000A21.06.2024 10:43\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 50.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 3320.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\u000A01175\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:06:30]POST & json_proto [11:06:30]process_json_proto [11:06:30]json parsed OK: [11:06:30]protocol is kg_v1.0 [11:06:30]action value=print_text [11:06:30]process_action print_text [11:06:30]cmd_print_text [11:06:30]ExternCall_PrintAddStr [11:06:30]wPrintStart [11:06:30]Write to MH i2c: 01 00 00 A8 1E C6 [11:06:30]Write i2c OK [11:06:30]MH_I2C_Read... [11:06:30]Read from MH i2c: 01 [11:06:30]MH_I2C_Read... [11:06:30]Read from MH i2c: 01 07 00 [11:06:30]MH_I2C_Read... [11:06:30]Read from MH i2c: 01 07 00 A8 1E 00 00 00 00 00 FF 0F DB [11:06:30]RasterBufferAndPrint [11:06:30]line *****ТОВАРНЫЙ ЧЕК***** [11:06:30]line АЗС 120 [11:06:30]line Партнер нефть [11:06:30]line 02508201610067 [11:06:30]line Кассир : Асанбаев Н. [11:06:30]line Счет N : (1)673552 [11:06:30]line 21.06.2024 10:43 [11:06:30]line ПРОДАЖА [11:06:30]line ТРК (МРК, ГНК): 42 [11:06:30]line Вид ГСМ : 2710124130 [11:06:30]line Аи-92-К-5 [11:06:30]line 50.000 x 66.40 [11:06:30]line ИТОГ: 3320.00 [11:06:30]line Тип оплаты: Талоны: Топливная Карта [11:06:30]line 01175 [11:06:30]line ______________________ [11:06:30]line (подпись) [11:06:30]written 0, free lines is 4095 [11:06:30]Write to MH i2c: 01 00 00 BC 1E DA [11:06:30]Write i2c OK [11:06:30]MH_I2C_Read... [11:06:30]Read from MH i2c: 01 [11:06:30]MH_I2C_Read... [11:06:30]Read from MH i2c: 01 07 00 [11:06:30]MH_I2C_Read... [11:06:30]Read from MH i2c: 01 07 00 BC 1E 00 00 00 00 00 0F 0E FE [11:06:30]RasterBufferAndPrint [11:06:30]line [11:06:30]line [11:06:30]line [11:06:30]line [11:06:30]line [11:06:30]written 0, free lines is 3601 [11:06:30]MH_Cut [11:06:30]Write to MH i2c: D1 01 00 C3 1E 01 B3 [11:06:30]Write i2c OK [11:06:30]MH_I2C_Read... [11:06:30]Read from MH i2c: D1 [11:06:30]MH_I2C_Read... [11:06:30]Read from MH i2c: D1 01 00 [11:06:30]MH_I2C_Read... [11:06:30]Read from MH i2c: D1 01 00 C3 1E 00 B2 [11:06:30]Write to MH i2c: 01 00 00 C4 1E E2 [11:06:30]Write i2c OK [11:06:30]MH_I2C_Read... [11:06:30]*** Cut start [11:06:30]*** Partial cut [11:06:30]*** CUTSNS_PIN = 1 [11:06:30]*** CUTSNS_PIN = 0 [11:06:31]*** Brake cut motor [11:06:31]Read from MH i2c: 01 [11:06:31]MH_I2C_Read... [11:06:31]Read from MH i2c: 01 07 00 [11:06:31]MH_I2C_Read... [11:06:31]*** Stop cut motor [11:06:31]*** Cut end [11:06:31]Read from MH i2c: 01 07 00 C4 1E 00 00 00 00 00 FF 0F F7 [11:06:31]process_action print_text done [11:06:31]requested_data is exist [11:06:31]produce_requested_data [11:06:31]requested_item fm.sn is exist - process it [11:06:31]wFMCommunicate request_size=4 [11:06:31]MH_SAM_APDU [11:06:31]CAPDU: 80 11 00 00 [11:06:31]Write to MH i2c: E2 08 00 C5 1E 80 11 00 00 00 00 00 00 5D [11:06:31]Write i2c OK [11:06:31]MH_I2C_Read... [11:06:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:06:31]Read from MH i2c: E2 [11:06:31]MH_I2C_Read... [11:06:31]Read from MH i2c: E2 17 00 [11:06:31]MH_I2C_Read... [11:06:31]Read from MH i2c: E2 17 00 C5 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 B0 [11: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 [11:06:31]wFMCommunicate OK [11:06:31]requested_item fd.num is exist - process it [11:06:31]SAM_PROTO_GetFieldsCounters [11:06:31]wFMCommunicate request_size=4 [11:06:31]MH_SAM_APDU [11:06:31]CAPDU: 80 13 00 00 [11:06:31]Write to MH i2c: E2 08 00 C6 1E 80 13 00 00 00 00 00 00 60 [11:06:31]Write i2c OK [11:06:31]MH_I2C_Read... [11:06:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:06:31]Read from MH i2c: E2 [11:06:31]MH_I2C_Read... [11:06:31]Read from MH i2c: E2 62 00 [11:06:31]MH_I2C_Read... [11:06:31]Read from MH i2c: E2 62 00 C6 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 C8 96 01 00 0E 04 04 00 63 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 FB [11:06: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 C8 96 01 00 0E 04 04 00 63 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 [11:06:31]wFMCommunicate OK [11:06:31]SAM_PROTO_GetFieldsCounters done [11:06:31]requested_item shift.num is exist - process it [11:06:31]requested_item shift.opened is exist - process it [11:06:31]req_shift_opened [11:06:31]FM_GetShiftState [11:06:31]SAM_PROTO_GetShiftState [11:06:31]wFMCommunicate request_size=4 [11:06:31]MH_SAM_APDU [11:06:31]CAPDU: 80 13 01 00 [11:06:31]Write to MH i2c: E2 08 00 C7 1E 80 13 01 00 00 00 00 00 62 [11:06:31]Write i2c OK [11:06:31]MH_I2C_Read... [11:06:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:06:31]Read from MH i2c: E2 [11:06:31]MH_I2C_Read... [11:06:31]Read from MH i2c: E2 0E 00 [11:06:31]MH_I2C_Read... [11:06:31]Read from MH i2c: E2 0E 00 C7 1E 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 75 [11:06:31]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [11:06:31]wFMCommunicate OK [11:06:31]SAM_PROTO_GetShiftState done [11:06:31]FM_GetShiftState done [11:06:31]req_shift_opened done [11:06:31]requested_item shift.open_date is exist - process it [11:06:31]req_shift_open_date [11:06:31]req_shift_open_date done [11:06:31]produce_requested_data done [11:06:31]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104136,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [11:06:31]process_action_free print_text [11:06:31]json_value_free [11:06:31]json_value_free done [11:06:31]process_json_proto returns [11:06:31]Send response to host [11:06:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104136,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [11:06:31]free response buf [11:06:31]execute_script done [11:06:31]execute_script returns [11:06:31]free content buf [11:06:31]Sock 7.Close socket [11:06:31]Sock 7.Thread stoped [11:08:29]ConnectInit Can't connect to host [11:08:29]CommunicateWithHost connect error [11:08:29]CommunicateWithHost err = -1 [11:08:29]OFD Sender: Server communicate error [11:08:34]OFD Sender: Processing packet 104136 [packets to send 17, broken 16] [11:08:34]ProducePacketName [11:08:34]name=ofd_packets/00104136 [11:08:34]OFD Sender: To server: pG, [11:08:34]CommunicateWithHost lk.salyk.kg:30040 [11:08:34]ConnectInit lk.salyk.kg [11:08:34]Connected sock=7 [11:08: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 58 67 07 01 E5 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 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 3B 00 00 00 F4 03 04 00 AA 5E 75 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 C8 96 01 00 35 04 06 00 B7 C1 34 A1 A3 20 24 A5 9C 48 43 A1 CC 68 [11:08: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 88 D1 47 00 0F 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 C8 96 01 00 F4 03 04 00 B7 05 75 66 B6 04 01 00 00 2C DB 44 20 5D 5E 6E 87 [11:08:35]CommunicateWithHost err = 0 [11:08:35]CheckOFDResponse [11:08:35]1017 (14) - 77093643461234 [11:08:35]1041 (16) - 0000000000875093 [11:08:35]1040 (4) - 104136 [11:08:35]1012 (4) - 21.06.2024 04:46 [11:08:35]1206 (1) - 0 [11:08:35]OFD Sender: Remove packet 104136 [11:08:35]ProducePacketName [11:08:35]name=ofd_packets/00104136 [11:08:35]NVStorageDeleteData [11:08:35]OFD Sender: No OFD packet to send [11:08:40]OFD Sender: No OFD packet to send [11:08:45]OFD Sender: No OFD packet to send [11:08:50]OFD Sender: No OFD packet to send [11:08:55]OFD Sender: No OFD packet to send [11:09:00]OFD Sender: No OFD packet to send [11:09:05]OFD Sender: No OFD packet to send [11:09:10]OFD Sender: No OFD packet to send [11:09:15]OFD Sender: No OFD packet to send [11:09:20]OFD Sender: No OFD packet to send [11:09:25]OFD Sender: No OFD packet to send [11:09:30]OFD Sender: No OFD packet to send [11:09:35]OFD Sender: No OFD packet to send [11:09:40]OFD Sender: No OFD packet to send [11:09:45]OFD Sender: No OFD packet to send [11:09:50]OFD Sender: No OFD packet to send [11:09:55]OFD Sender: No OFD packet to send [11:10:00]OFD Sender: No OFD packet to send [11:10:05]OFD Sender: No OFD packet to send [11:10:10]OFD Sender: No OFD packet to send [11:10:15]OFD Sender: No OFD packet to send [11:10:20]OFD Sender: No OFD packet to send [11:10:25]OFD Sender: No OFD packet to send [11:10:30]OFD Sender: No OFD packet to send [11:10:35]OFD Sender: No OFD packet to send [11:10:40]OFD Sender: No OFD packet to send [11:10:45]OFD Sender: No OFD packet to send [11:10:50]OFD Sender: No OFD packet to send [11:10:55]OFD Sender: No OFD packet to send [11:11:00]OFD Sender: No OFD packet to send [11:11:05]OFD Sender: No OFD packet to send [11:11:10]OFD Sender: No OFD packet to send [11:11:15]OFD Sender: No OFD packet to send [11:11:20]OFD Sender: No OFD packet to send [11:11:25]OFD Sender: No OFD packet to send [11:11:30]OFD Sender: No OFD packet to send [11:11:35]OFD Sender: No OFD packet to send [11:11:40]OFD Sender: No OFD packet to send [11:11:45]OFD Sender: No OFD packet to send [11:11:50]OFD Sender: No OFD packet to send [11:11:55]OFD Sender: No OFD packet to send [11:12:00]OFD Sender: No OFD packet to send [11:12:05]OFD Sender: No OFD packet to send [11:12:10]OFD Sender: No OFD packet to send [11:12:15]OFD Sender: No OFD packet to send [11:12:20]OFD Sender: No OFD packet to send [11:12:25]OFD Sender: No OFD packet to send [11:12:30]OFD Sender: No OFD packet to send [11:12:35]OFD Sender: No OFD packet to send [11:12:40]OFD Sender: No OFD packet to send [11:12:45]OFD Sender: No OFD packet to send [11:12:50]OFD Sender: No OFD packet to send [11:12:55]OFD Sender: No OFD packet to send [11:13:00]OFD Sender: No OFD packet to send [11:13:05]OFD Sender: No OFD packet to send [11:13:10]OFD Sender: No OFD packet to send [11:13:15]OFD Sender: No OFD packet to send [11:13:20]OFD Sender: No OFD packet to send [11:13:25]OFD Sender: No OFD packet to send [11:13:30]OFD Sender: No OFD packet to send [11:13:35]OFD Sender: No OFD packet to send [11:13:40]OFD Sender: No OFD packet to send [11:13:45]OFD Sender: No OFD packet to send [11:13:50]OFD Sender: No OFD packet to send [11:13:55]OFD Sender: No OFD packet to send [11:14:00]OFD Sender: No OFD packet to send [11:14:05]OFD Sender: No OFD packet to send [11:14:10]OFD Sender: No OFD packet to send [11:14:15]OFD Sender: No OFD packet to send [11:14:20]OFD Sender: No OFD packet to send [11:14:25]OFD Sender: No OFD packet to send [11:14:30]OFD Sender: No OFD packet to send [11:14:35]OFD Sender: No OFD packet to send [11:14:40]OFD Sender: No OFD packet to send [11:14:45]OFD Sender: No OFD packet to send [11:14:50]OFD Sender: No OFD packet to send [11:14:55]OFD Sender: No OFD packet to send [11:15:00]OFD Sender: No OFD packet to send [11:15:05]OFD Sender: No OFD packet to send [11:15:10]OFD Sender: No OFD packet to send [11:15:15]OFD Sender: No OFD packet to send [11:15:20]OFD Sender: No OFD packet to send [11:15:25]OFD Sender: No OFD packet to send [11:15:30]OFD Sender: No OFD packet to send [11:15:35]OFD Sender: No OFD packet to send [11:15:40]OFD Sender: No OFD packet to send [11:15:45]OFD Sender: No OFD packet to send [11:15:50]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:15]OFD Sender: No OFD packet to send [11:16:20]OFD Sender: No OFD packet to send [11:16:25]OFD Sender: No OFD packet to send [11:16:30]OFD Sender: No OFD packet to send [11:16:35]OFD Sender: No OFD packet to send [11:16:40]OFD Sender: No OFD packet to send [11:16:45]OFD Sender: No OFD packet to send [11:16:50]OFD Sender: No OFD packet to send [11:16:55]OFD Sender: No OFD packet to send [11:17:00]OFD Sender: No OFD packet to send [11:17:05]OFD Sender: No OFD packet to send [11:17:10]OFD Sender: No OFD packet to send [11:17:15]OFD Sender: No OFD packet to send [11:17:20]OFD Sender: No OFD packet to send [11:17:25]OFD Sender: No OFD packet to send [11:17:30]OFD Sender: No OFD packet to send [11:17:35]OFD Sender: No OFD packet to send [11:17:40]OFD Sender: No OFD packet to send [11:17:45]OFD Sender: No OFD packet to send [11:17:50]OFD Sender: No OFD packet to send [11:17:55]OFD Sender: No OFD packet to send [11:18:00]OFD Sender: No OFD packet to send [11:18:05]OFD Sender: No OFD packet to send [11:18:10]OFD Sender: No OFD packet to send [11:18:15]OFD Sender: No OFD packet to send [11:18:20]OFD Sender: No OFD packet to send [11:18:25]OFD Sender: No OFD packet to send [11:18:30]OFD Sender: No OFD packet to send [11:18:35]OFD Sender: No OFD packet to send [11:18:41]OFD Sender: No OFD packet to send [11:18:46]OFD Sender: No OFD packet to send [11:18:51]OFD Sender: No OFD packet to send [11:18:56]OFD Sender: No OFD packet to send [11:19:01]OFD Sender: No OFD packet to send [11:19:06]OFD Sender: No OFD packet to send [11:19:11]OFD Sender: No OFD packet to send [11:19:16]OFD Sender: No OFD packet to send [11:19:21]OFD Sender: No OFD packet to send [11:19:26]OFD Sender: No OFD packet to send [11:19:31]OFD Sender: No OFD packet to send [11:19:36]OFD Sender: No OFD packet to send [11:19:41]OFD Sender: No OFD packet to send [11:19:46]OFD Sender: No OFD packet to send [11:19:51]OFD Sender: No OFD packet to send [11:19:56]OFD Sender: No OFD packet to send [11:20:01]OFD Sender: No OFD packet to send [11:20:06]OFD Sender: No OFD packet to send [11:20:10]accept exits with 9 [11:20:10]New connection [11:20:10]New thread 3066715492 created [11:20:10]Thread 3066858852 joined [11:20:10]Waiting for new connection... [11:20:10] Sock 9.Parse request [11:20:10]Sock 9.Check first char [11:20:10]Sock 9.First char is OK [11:20:10]request: POST /json_proto HTTP/1.0 [11:20:10]Method: POST [11:20:10]URL: /json_proto [11:20:10]Method is POST - this is cgi request [11:20:10]url: /json_proto [11:20:10]query_string will be loaded in cgi processing [11:20:10]execute_cgi json_proto POST (null) [11:20:10]execute_cgi path=json_proto method=POST [11:20:10]POST find Content-Length [11:20:10]Host: 172.17.38.133:8080 [11:20:10]Content-Length: 682 [11:20:10]Content-Type: application/json [11:20:10] [11:20:10]POST finish read [11:20:10]Found Content-Length = 682 [11:20:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673554", "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" : 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" ] } } [11:20:10]execute_script... [11:20: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)673554", "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" : 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" ] } } [11:20:10]POST & json_proto [11:20:10]process_json_proto [11:20:10]json parsed OK: [11:20:10]protocol is kg_v1.0 [11:20:10]action value=close_receipt [11:20:10]process_action close_receipt [11:20:10]cmd_close_receipt [11:20:10]MH_GetDate [11:20:10]Write to MH i2c: F0 00 00 C8 1E D5 [11:20:10]Write i2c OK [11:20:10]MH_I2C_Read... [11:20:10]Read from MH i2c: F0 [11:20:10]MH_I2C_Read... [11:20:10]Read from MH i2c: F0 09 00 [11:20:10]MH_I2C_Read... [11:20:10]Read from MH i2c: F0 09 00 C8 1E 00 EE 61 75 66 BD 8F 7C 64 34 [11:20:10]GetLastDocTimeStamp 1718967978 [11:20:10]current date 1718968814 [11:20:10]FM_GetShiftState [11:20:10]SAM_PROTO_GetShiftState [11:20:10]wFMCommunicate request_size=4 [11:20:10]MH_SAM_APDU [11:20:10]CAPDU: 80 13 01 00 [11:20:10]Write to MH i2c: E2 08 00 C9 1E 80 13 01 00 00 00 00 00 64 [11:20:10]Write i2c OK [11:20:10]MH_I2C_Read... [11:20:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:20:10]Read from MH i2c: E2 [11:20:10]MH_I2C_Read... [11:20:10]Read from MH i2c: E2 0E 00 [11:20:10]MH_I2C_Read... [11:20:10]Read from MH i2c: E2 0E 00 C9 1E 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 77 [11:20:10]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [11:20:10]wFMCommunicate OK [11:20:10]SAM_PROTO_GetShiftState done [11:20:10]FM_GetShiftState done [11:20:10]opened in 1718929509 [11:20:10]opened+sec_in_day 1719015909 [11:20:10]quantity*price = 120051 [11:20:10]sum+1 = 120052 [11:20:10]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 СНО: Общий режим Чек 60 21.06.2024 11:20 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104137 ФПД: 195101084004690 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T112014&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104137&fm=195101084004690&tin=02508201610067®Number=0000000000092785&sum=120000 [11:20:11]StoreToDocumentArchive [11:20:11]shift 355 fd 104137 [11:20:11]save to /storage/0355/doc_00104137 [11:20:11]save last doc name /storage/0355/doc_00104137 to /storage/kkm_last_doc_name [11:20:11]save OK [11:20:11]Clear old archive folders... [11:20:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:20:11]tlvbuf is 01107600 [11:20:11]SAM_PROTO_ClearQueue [11:20:11]wFMCommunicate request_size=4 [11:20:11]MH_SAM_APDU [11:20:11]CAPDU: 80 09 00 00 [11:20:11]Write to MH i2c: E2 08 00 D6 1E 80 09 00 00 00 00 00 00 66 [11:20:11]Write i2c OK [11:20:11]MH_I2C_Read... [11:20:11]Read from MH i2c: E2 [11:20:11]MH_I2C_Read... [11:20:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:20:11]Read from MH i2c: E2 03 00 [11:20:11]MH_I2C_Read... [11:20:11]Read from MH i2c: E2 03 00 D6 1E 00 90 00 68 [11:20:11]RAPDU: 90 00 [11:20:11]wFMCommunicate OK [11:20:11]SAM_PROTO_ClearQueue done [11:20:11]KKMCreateOFDPacket [11:20:11]OFDProtocolAddRootSTLVToBuf [11:20:11]FM_MakeSignedData [11:20:11]FM_MakeSignedData [11:20:11]SAM_PROTO_SignData [11:20:11]wFMCommunicate request_size=4 [11:20:11]MH_SAM_APDU [11:20:11]CAPDU: 80 0D 01 02 [11:20:11]Write to MH i2c: E2 08 00 D7 1E 80 0D 01 02 00 00 00 00 6E [11:20:11]Write i2c OK [11:20:11]MH_I2C_Read... [11:20:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:20:11]Read from MH i2c: E2 [11:20:11]MH_I2C_Read... [11:20:11]Read from MH i2c: E2 03 00 [11:20:11]MH_I2C_Read... [11:20:11]Read from MH i2c: E2 03 00 D7 1E 00 90 00 69 [11:20:11]RAPDU: 90 00 [11:20:11]wFMCommunicate OK [11:20:11]wFMCommunicate request_size=255 [11:20:11]MH_SAM_APDU [11:20: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 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 3C 00 00 00 F4 03 04 00 EE 61 75 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 C9 96 01 00 35 04 06 00 B1 [11:20:11]Write to MH i2c: E2 02 01 D8 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 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 3C 00 00 00 F4 03 04 00 EE 61 75 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 C9 96 01 00 35 04 06 00 B1 00 00 62 [11:20:11]Write i2c OK [11:20:11]MH_I2C_Read... [11:20:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:20:11]Read from MH i2c: E2 [11:20:11]MH_I2C_Read... [11:20:11]Read from MH i2c: E2 03 00 [11:20:11]MH_I2C_Read... [11:20:11]Read from MH i2c: E2 03 00 D8 1E 00 90 00 6A [11:20:11]RAPDU: 90 00 [11:20:11]wFMCommunicate OK [11:20:11]wFMCommunicate request_size=10 [11:20:11]MH_SAM_APDU [11:20:11]CAPDU: 80 0D 02 02 05 71 82 CE B1 52 [11:20:11]Write to MH i2c: E2 0D 00 D9 1E 80 0D 02 02 05 00 71 82 CE B1 52 00 00 3F [11:20:11]Write i2c OK [11:20:11]MH_I2C_Read... [11:20:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:20:12]Read from MH i2c: E2 [11:20:12]MH_I2C_Read... [11:20:12]Read from MH i2c: E2 03 00 [11:20:12]MH_I2C_Read... [11:20:12]Read from MH i2c: E2 03 00 D9 1E 00 90 00 6B [11:20:12]RAPDU: 90 00 [11:20:12]wFMCommunicate OK [11:20:12]wFMCommunicate request_size=4 [11:20:12]MH_SAM_APDU [11:20:12]CAPDU: 80 0D 03 02 [11:20:12]Write to MH i2c: E2 08 00 DA 1E 80 0D 03 02 00 00 00 00 73 [11:20:12]Write i2c OK [11:20:12]MH_I2C_Read... [11:20:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:20:12]Read from MH i2c: E2 [11:20:12]MH_I2C_Read... [11:20:12]Read from MH i2c: E2 0B 00 [11:20:12]MH_I2C_Read... [11:20:12]Read from MH i2c: E2 0B 00 DA 1E 00 26 A4 3E D4 58 7A DC 0E 90 00 0C [11:20:12]RAPDU: 26 A4 3E D4 58 7A DC 0E 90 00 [11:20:12]wFMCommunicate OK [11:20:12]SAM_PROTO_SignData done [11:20:12]FM_MakeSignedData done [11:20:12]CreateOFDProtocolMessage [11:20:12]wFMCommunicate request_size=4 [11:20:12]MH_SAM_APDU [11:20:12]CAPDU: 80 11 00 00 [11:20:12]Write to MH i2c: E2 08 00 DB 1E 80 11 00 00 00 00 00 00 73 [11:20:12]Write i2c OK [11:20:12]MH_I2C_Read... [11:20:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:20:12]Read from MH i2c: E2 [11:20:12]MH_I2C_Read... [11:20:12]Read from MH i2c: E2 17 00 [11:20:12]MH_I2C_Read... [11:20:12]Read from MH i2c: E2 17 00 DB 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 C6 [11:20: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:20:12]wFMCommunicate OK [11:20:12]CreateOFDProtocolMessage done [11:20:12]OFDSenderStorePacket 104137 [11:20:12]StoreOFDPacket docnum=104137 [11:20: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 89 3E 07 01 F3 51 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 3C 00 00 00 F4 03 04 00 EE 61 75 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 C9 96 01 00 35 04 06 00 B1 71 82 CE B1 52 26 A4 3E D4 58 7A DC 0E [11:20:12]CheckFolder [11:20:12]dirname=/storage/ofd_packets [11:20:12]CheckFolder done [11:20:12]ProducePacketName [11:20:12]name=ofd_packets/00104137 [11:20:12]NVStorageSaveData ofd_packets/00104137 [11:20:12]File name is /storage/ofd_packets/00104137 [11:20:12]Write 301 bytes [11:20:12]NVStorageSaveData done [11:20:12]OFDSenderStorePacket done [11:20:12]KKMCreateOFDPacket done [11:20:12]NVStorageSaveData kkm_last_timestamp [11:20:12]File name is /storage/kkm_last_timestamp [11:20:12]Write 4 bytes [11:20:12]NVStorageSaveData done [11:20:12]ExternCall_PrintAddStr [11:20:12]wPrintStart [11:20:12]Write to MH i2c: 01 00 00 DC 1E FA [11:20:12]Write i2c OK [11:20:12]MH_I2C_Read... [11:20:12]Read from MH i2c: 01 [11:20:12]MH_I2C_Read... [11:20:12]Read from MH i2c: 01 07 00 [11:20:12]MH_I2C_Read... [11:20:12]Read from MH i2c: 01 07 00 DC 1E 00 00 00 00 00 FF 0F 0F [11:20:12]RasterBufferAndPrint [11:20:12]line Счет N : (1)673554 [11:20:12]line ИНН: 02508201610067 [11:20:12]line Контрольно-Кассовый Чек [11:20:12]line ПРОДАЖА [11:20:12]line ТРК (МРК, ГНК) : 32 [11:20:12]line Товар: 2710124130 [11:20:12]line Аи-92-К-5 [11:20:12]line 18.080 * 66.40 [11:20:12]line = 1200.51 [11:20:12]line НДС 12% НСП 1% [11:20:12]line > о реализуемом товаре [11:20:12]line ОКРУГЛЕНИЕ: -0.51 [11:20:12]line ИТОГО: 1200.00 [11:20:12]line Внесено: 1200.00 [11:20:12]line СДАЧА: 0.00 [11:20:12]line НСП 1% : 10.62 [11:20:12]line НДС 12% : 127.49 [11:20:12]line Наличными: 1200.00 [11:20:12]line Безнал.: 0.00 [11:20:12]line Место: АЗС № 120 "Партнер Нефть" [11:20:12]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [11:20:12]line СНО: Общий режим [11:20:12]line Чек 60 21.06.2024 11:20 [11:20:12]line Смена: 355 ФФД: 1.0 [11:20:12]line ЗНМ: 0300000164 [11:20:12]line РНМ: 0000000000092785 [11:20:12]line Версия ККМ: 001 [11:20:12]line ФМ: 0000000000875093 [11:20:12]line ФД: 104137 [11:20:12]line ФПД: 195101084004690 [11:20:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T112014&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104137&fm=195101084004690&tin=02508201610067®Number=0000000000092785&sum=120000 [11:20:12]OFD Sender: Processing packet 104137 [packets to send 17, broken 16] [11:20:12]ProducePacketName [11:20:12]name=ofd_packets/00104137 [11:20:12]OFD Sender: To server: pG, [11:20:12]CommunicateWithHost lk.salyk.kg:30040 [11:20:12]ConnectInit lk.salyk.kg [11:20:12]written 0, free lines is 4095 [11:20:12]Connected sock=10 [11:20: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 89 3E 07 01 F3 51 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 3C 00 00 00 F4 03 04 00 EE 61 75 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 C9 96 01 00 35 04 06 00 B1 71 82 CE B1 52 26 A4 3E D4 58 7A DC 0E [11:20: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 85 FD 47 00 CB 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 C9 96 01 00 F4 03 04 00 71 08 75 66 B6 04 01 00 00 04 F6 98 0D 60 F8 54 35 [11:20:12]CommunicateWithHost err = 0 [11:20:12]CheckOFDResponse [11:20:12]1017 (14) - 77093643461234 [11:20:12]1041 (16) - 0000000000875093 [11:20:12]1040 (4) - 104137 [11:20:12]1012 (4) - 21.06.2024 04:58 [11:20:12]1206 (1) - 0 [11:20:12]OFD Sender: Remove packet 104137 [11:20:12]ProducePacketName [11:20:12]name=ofd_packets/00104137 [11:20:12]NVStorageDeleteData [11:20:12]Write to MH i2c: 01 00 00 07 1F 26 [11:20:12]Write i2c OK [11:20:12]MH_I2C_Read... [11:20:12]Read from MH i2c: 01 [11:20:12]MH_I2C_Read... [11:20:12]Read from MH i2c: 01 07 00 [11:20:12]MH_I2C_Read... [11:20:12]Read from MH i2c: 01 07 00 07 1F 00 00 00 00 00 DA 0C 13 [11:20:12]RasterBufferAndPrint [11:20:12]line [11:20:12]line [11:20:12]line [11:20:12]line [11:20:12]line [11:20:12]written 0, free lines is 3298 [11:20:12]MH_Cut [11:20:12]Write to MH i2c: D1 01 00 0E 1F 01 FF [11:20:12]Write i2c OK [11:20:12]MH_I2C_Read... [11:20:12]Read from MH i2c: D1 [11:20:12]MH_I2C_Read... [11:20:12]Read from MH i2c: D1 01 00 [11:20:12]MH_I2C_Read... [11:20:12]Read from MH i2c: D1 01 00 0E 1F 00 FE [11:20:12]Write to MH i2c: 01 00 00 0F 1F 2E [11:20:12]Write i2c OK [11:20:12]MH_I2C_Read... [11:20:13]OFD Sender: No OFD packet to send [11:20:13]*** Cut start [11:20:13]*** Partial cut [11:20:13]*** CUTSNS_PIN = 1 [11:20:13]*** CUTSNS_PIN = 0 [11:20:13]*** Brake cut motor [11:20:14]Read from MH i2c: 01 [11:20:14]MH_I2C_Read... [11:20:14]*** Stop cut motor [11:20:14]*** Cut end [11:20:14]Read from MH i2c: 01 07 00 [11:20:14]MH_I2C_Read... [11:20:14]Read from MH i2c: 01 07 00 0F 1F 00 00 00 00 00 FF 0F 43 [11:20:14]process_action close_receipt done [11:20:14]requested_data is exist [11:20:14]produce_requested_data [11:20:14]requested_item fm.sn is exist - process it [11:20:14]wFMCommunicate request_size=4 [11:20:14]MH_SAM_APDU [11:20:14]CAPDU: 80 11 00 00 [11:20:14]Write to MH i2c: E2 08 00 10 1F 80 11 00 00 00 00 00 00 A9 [11:20:14]Write i2c OK [11:20:14]MH_I2C_Read... [11:20:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:20:14]Read from MH i2c: E2 [11:20:14]MH_I2C_Read... [11:20:14]Read from MH i2c: E2 17 00 [11:20:14]MH_I2C_Read... [11:20:14]Read from MH i2c: E2 17 00 10 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 FC [11:20: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:20:14]wFMCommunicate OK [11:20:14]requested_item fd.num is exist - process it [11:20:14]SAM_PROTO_GetFieldsCounters [11:20:14]wFMCommunicate request_size=4 [11:20:14]MH_SAM_APDU [11:20:14]CAPDU: 80 13 00 00 [11:20:14]Write to MH i2c: E2 08 00 11 1F 80 13 00 00 00 00 00 00 AC [11:20:14]Write i2c OK [11:20:14]MH_I2C_Read... [11:20:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:20:14]Read from MH i2c: E2 [11:20:14]MH_I2C_Read... [11:20:14]Read from MH i2c: E2 62 00 [11:20:14]MH_I2C_Read... [11:20:14]Read from MH i2c: E2 62 00 11 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 C9 96 01 00 0E 04 04 00 63 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 4B [11:20: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 C9 96 01 00 0E 04 04 00 63 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 [11:20:14]wFMCommunicate OK [11:20:14]SAM_PROTO_GetFieldsCounters done [11:20:14]requested_item shift.num is exist - process it [11:20:14]requested_item shift.opened is exist - process it [11:20:14]req_shift_opened [11:20:14]FM_GetShiftState [11:20:14]SAM_PROTO_GetShiftState [11:20:14]wFMCommunicate request_size=4 [11:20:14]MH_SAM_APDU [11:20:14]CAPDU: 80 13 01 00 [11:20:14]Write to MH i2c: E2 08 00 12 1F 80 13 01 00 00 00 00 00 AE [11:20:14]Write i2c OK [11:20:14]MH_I2C_Read... [11:20:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:20:14]Read from MH i2c: E2 [11:20:14]MH_I2C_Read... [11:20:14]Read from MH i2c: E2 0E 00 [11:20:14]MH_I2C_Read... [11:20:14]Read from MH i2c: E2 0E 00 12 1F 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 C1 [11:20:14]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [11:20:14]wFMCommunicate OK [11:20:14]SAM_PROTO_GetShiftState done [11:20:14]FM_GetShiftState done [11:20:14]req_shift_opened done [11:20:14]requested_item shift.open_date is exist - process it [11:20:14]req_shift_open_date [11:20:14]req_shift_open_date done [11:20:14]produce_requested_data done [11:20:14]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104137,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [11:20:14]process_action_free close_receipt [11:20:14]json_value_free [11:20:14]json_value_free done [11:20:14]process_json_proto returns [11:20:14]Send response to host [11:20:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104137,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [11:20:14]free response buf [11:20:14]execute_script done [11:20:14]execute_script returns [11:20:14]free content buf [11:20:14]Sock 9.Close socket [11:20:14]Sock 9.Thread stoped [11:20:18]OFD Sender: No OFD packet to send [11:20:23]OFD Sender: No OFD packet to send [11:20:28]OFD Sender: No OFD packet to send [11:20:33]OFD Sender: No OFD packet to send [11:20:38]OFD Sender: No OFD packet to send [11:20:43]OFD Sender: No OFD packet to send [11:20:48]OFD Sender: No OFD packet to send [11:20:53]OFD Sender: No OFD packet to send [11:20:58]OFD Sender: No OFD packet to send [11:21:03]OFD Sender: No OFD packet to send [11:21:08]OFD Sender: No OFD packet to send [11:21:13]OFD Sender: No OFD packet to send [11:21:18]accept exits with 7 [11:21:18]New connection [11:21:18]New thread 3066858852 created [11:21:18]Thread 3066715492 joined [11:21:18]Waiting for new connection... [11:21:18] Sock 7.Parse request [11:21:18]Sock 7.Check first char [11:21:18]Sock 7.First char is OK [11:21:18]request: POST /json_proto HTTP/1.0 [11:21:18]Method: POST [11:21:18]URL: /json_proto [11:21:18]Method is POST - this is cgi request [11:21:18]url: /json_proto [11:21:18]query_string will be loaded in cgi processing [11:21:18]execute_cgi json_proto POST (null) [11:21:18]execute_cgi path=json_proto method=POST [11:21:18]POST find Content-Length [11:21:18]Host: 172.17.38.133:8080 [11:21:18]Content-Length: 1196 [11:21:18]Content-Type: application/json [11:21:18] [11:21:18]POST finish read [11:21:18]Found Content-Length = 1196 [11:21: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 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)673555\u000A21.06.2024 10:58\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.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\u000A103798\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:21:18]execute_script... [11:21: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 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)673555\u000A21.06.2024 10:58\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.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\u000A103798\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:21:18]POST & json_proto [11:21:18]process_json_proto [11:21:18]json parsed OK: [11:21:18]protocol is kg_v1.0 [11:21:18]action value=print_text [11:21:18]process_action print_text [11:21:18]cmd_print_text [11:21:18]ExternCall_PrintAddStr [11:21:18]wPrintStart [11:21:18]Write to MH i2c: 01 00 00 13 1F 32 [11:21:18]Write i2c OK [11:21:18]MH_I2C_Read... [11:21:18]Read from MH i2c: 01 [11:21:18]MH_I2C_Read... [11:21:18]Read from MH i2c: 01 07 00 [11:21:18]MH_I2C_Read... [11:21:18]Read from MH i2c: 01 07 00 13 1F 00 00 00 00 00 FF 0F 47 [11:21:18]RasterBufferAndPrint [11:21:18]line *****ТОВАРНЫЙ ЧЕК***** [11:21:18]line АЗС 120 [11:21:18]line Партнер нефть [11:21:18]line 02508201610067 [11:21:18]line Кассир : Асанбаев Н. [11:21:18]line Счет N : (1)673555 [11:21:18]line 21.06.2024 10:58 [11:21:18]line ПРОДАЖА [11:21:18]line ТРК (МРК, ГНК): 42 [11:21:18]line Вид ГСМ : 2710124130 [11:21:18]line Аи-92-К-5 [11:21:18]line 30.130 x 66.40 [11:21:18]line ИТОГ: 2000.63 [11:21:18]line Тип оплаты: Талоны: Топливная Карта [11:21:18]line 103798 [11:21:18]line ______________________ [11:21:18]line (подпись) [11:21:18]written 0, free lines is 4095 [11:21:18]Write to MH i2c: 01 00 00 27 1F 46 [11:21:18]Write i2c OK [11:21:18]MH_I2C_Read... [11:21:18]Read from MH i2c: 01 [11:21:18]MH_I2C_Read... [11:21:18]Read from MH i2c: 01 07 00 [11:21:18]MH_I2C_Read... [11:21:18]Read from MH i2c: 01 07 00 27 1F 00 00 00 00 00 10 0E 6B [11:21:18]RasterBufferAndPrint [11:21:18]line [11:21:18]line [11:21:18]line [11:21:18]line [11:21:18]line [11:21:18]written 0, free lines is 3602 [11:21:18]MH_Cut [11:21:18]Write to MH i2c: D1 01 00 2E 1F 01 1F [11:21:18]Write i2c OK [11:21:18]MH_I2C_Read... [11:21:18]Read from MH i2c: D1 [11:21:18]MH_I2C_Read... [11:21:18]Read from MH i2c: D1 01 00 [11:21:18]MH_I2C_Read... [11:21:18]Read from MH i2c: D1 01 00 2E 1F 00 1E [11:21:18]Write to MH i2c: 01 00 00 2F 1F 4E [11:21:18]Write i2c OK [11:21:18]MH_I2C_Read... [11:21:18]OFD Sender: No OFD packet to send [11:21:18]*** Cut start [11:21:18]*** Partial cut [11:21:18]*** CUTSNS_PIN = 1 [11:21:18]*** CUTSNS_PIN = 0 [11:21:19]*** Brake cut motor [11:21:19]Read from MH i2c: 01 [11:21:19]MH_I2C_Read... [11:21:19]*** Stop cut motor [11:21:19]*** Cut end [11:21:19]Read from MH i2c: 01 07 00 [11:21:19]MH_I2C_Read... [11:21:19]Read from MH i2c: 01 07 00 2F 1F 00 00 00 00 00 FF 0F 63 [11:21:19]process_action print_text done [11:21:19]requested_data is exist [11:21:19]produce_requested_data [11:21:19]requested_item fm.sn is exist - process it [11:21:19]wFMCommunicate request_size=4 [11:21:19]MH_SAM_APDU [11:21:19]CAPDU: 80 11 00 00 [11:21:19]Write to MH i2c: E2 08 00 30 1F 80 11 00 00 00 00 00 00 C9 [11:21:19]Write i2c OK [11:21:19]MH_I2C_Read... [11:21:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:21:19]Read from MH i2c: E2 [11:21:19]MH_I2C_Read... [11:21:19]Read from MH i2c: E2 17 00 [11:21:19]MH_I2C_Read... [11:21:19]Read from MH i2c: E2 17 00 30 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 1C [11:21:19]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:19]wFMCommunicate OK [11:21:19]requested_item fd.num is exist - process it [11:21:19]SAM_PROTO_GetFieldsCounters [11:21:19]wFMCommunicate request_size=4 [11:21:19]MH_SAM_APDU [11:21:19]CAPDU: 80 13 00 00 [11:21:19]Write to MH i2c: E2 08 00 31 1F 80 13 00 00 00 00 00 00 CC [11:21:19]Write i2c OK [11:21:19]MH_I2C_Read... [11:21:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:21:19]Read from MH i2c: E2 [11:21:19]MH_I2C_Read... [11:21:19]Read from MH i2c: E2 62 00 [11:21:19]MH_I2C_Read... [11:21:19]Read from MH i2c: E2 62 00 31 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 C9 96 01 00 0E 04 04 00 63 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 6B [11:21: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 C9 96 01 00 0E 04 04 00 63 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 [11:21:19]wFMCommunicate OK [11:21:19]SAM_PROTO_GetFieldsCounters done [11:21:19]requested_item shift.num is exist - process it [11:21:19]requested_item shift.opened is exist - process it [11:21:19]req_shift_opened [11:21:19]FM_GetShiftState [11:21:19]SAM_PROTO_GetShiftState [11:21:19]wFMCommunicate request_size=4 [11:21:19]MH_SAM_APDU [11:21:19]CAPDU: 80 13 01 00 [11:21:19]Write to MH i2c: E2 08 00 32 1F 80 13 01 00 00 00 00 00 CE [11:21:19]Write i2c OK [11:21:19]MH_I2C_Read... [11:21:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:21:19]Read from MH i2c: E2 [11:21:19]MH_I2C_Read... [11:21:19]Read from MH i2c: E2 0E 00 [11:21:19]MH_I2C_Read... [11:21:19]Read from MH i2c: E2 0E 00 32 1F 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 E1 [11:21:19]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [11:21:19]wFMCommunicate OK [11:21:19]SAM_PROTO_GetShiftState done [11:21:19]FM_GetShiftState done [11:21:19]req_shift_opened done [11:21:19]requested_item shift.open_date is exist - process it [11:21:19]req_shift_open_date [11:21:19]req_shift_open_date done [11:21:19]produce_requested_data done [11:21:19]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104137,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [11:21:19]process_action_free print_text [11:21:19]json_value_free [11:21:19]json_value_free done [11:21:19]process_json_proto returns [11:21:19]Send response to host [11:21:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104137,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [11:21:19]free response buf [11:21:19]execute_script done [11:21:19]execute_script returns [11:21:19]free content buf [11:21:19]Sock 7.Close socket [11:21:19]Sock 7.Thread stoped [11:21:23]OFD Sender: No OFD packet to send [11:21:28]OFD Sender: No OFD packet to send [11:21:32]accept exits with 9 [11:21:32]New connection [11:21:32]New thread 3066715492 created [11:21:32]Thread 3066858852 joined [11:21:32]Waiting for new connection... [11:21:32] Sock 9.Parse request [11:21:32]Sock 9.Check first char [11:21:32]Sock 9.First char is OK [11:21:32]request: POST /json_proto HTTP/1.0 [11:21:32]Method: POST [11:21:32]URL: /json_proto [11:21:32]Method is POST - this is cgi request [11:21:32]url: /json_proto [11:21:32]query_string will be loaded in cgi processing [11:21:32]execute_cgi json_proto POST (null) [11:21:32]execute_cgi path=json_proto method=POST [11:21:32]POST find Content-Length [11:21:32]Host: 172.17.38.133:8080 [11:21:32]Content-Length: 682 [11:21:32]Content-Type: application/json [11:21:32] [11:21:32]POST finish read [11:21:32]Found Content-Length = 682 [11:21:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673556", "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.920, "sum" : 650.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 650.00, "total" : 650.00, "payments": [ { "type": 0, "sum" : 650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:21:32]execute_script... [11:21: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)673556", "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.920, "sum" : 650.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 650.00, "total" : 650.00, "payments": [ { "type": 0, "sum" : 650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:21:32]POST & json_proto [11:21:32]process_json_proto [11:21:32]json parsed OK: [11:21:32]protocol is kg_v1.0 [11:21:32]action value=close_receipt [11:21:32]process_action close_receipt [11:21:32]cmd_close_receipt [11:21:32]MH_GetDate [11:21:32]Write to MH i2c: F0 00 00 33 1F 41 [11:21:32]Write i2c OK [11:21:32]MH_I2C_Read... [11:21:32]Read from MH i2c: F0 [11:21:32]MH_I2C_Read... [11:21:32]Read from MH i2c: F0 09 00 [11:21:32]MH_I2C_Read... [11:21:32]Read from MH i2c: F0 09 00 33 1F 00 40 62 75 66 BD 8F 7C 64 F3 [11:21:32]GetLastDocTimeStamp 1718968814 [11:21:32]current date 1718968896 [11:21:32]FM_GetShiftState [11:21:32]SAM_PROTO_GetShiftState [11:21:32]wFMCommunicate request_size=4 [11:21:32]MH_SAM_APDU [11:21:32]CAPDU: 80 13 01 00 [11:21:32]Write to MH i2c: E2 08 00 34 1F 80 13 01 00 00 00 00 00 D0 [11:21:32]Write i2c OK [11:21:32]MH_I2C_Read... [11:21:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:21:32]Read from MH i2c: E2 [11:21:32]MH_I2C_Read... [11:21:32]Read from MH i2c: E2 0E 00 [11:21:32]MH_I2C_Read... [11:21:32]Read from MH i2c: E2 0E 00 34 1F 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 E3 [11:21:32]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [11:21:32]wFMCommunicate OK [11:21:32]SAM_PROTO_GetShiftState done [11:21:32]FM_GetShiftState done [11:21:32]opened in 1718929509 [11:21:32]opened+sec_in_day 1719015909 [11:21:32]quantity*price = 65026 [11:21:32]sum+1 = 65028 [11:21:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.27 ИТОГО: 650.00 Внесено: 650.00 СДАЧА: 0.00 НСП 1% : 5.75 НДС 12% : 69.05 Наличными: 650.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 61 21.06.2024 11:21 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104138 ФПД: 232844753781434 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T112136&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104138&fm=232844753781434&tin=02508201610067®Number=0000000000092785&sum=65000 [11:21:33]StoreToDocumentArchive [11:21:33]shift 355 fd 104138 [11:21:33]save to /storage/0355/doc_00104138 [11:21:33]save last doc name /storage/0355/doc_00104138 to /storage/kkm_last_doc_name [11:21:33]save OK [11:21:33]Clear old archive folders... [11:21:33]ProcessDocumentItem done err = 0, tmpTLVsize=252 [11:21:33]tlvbuf is 0114B160 [11:21:33]SAM_PROTO_ClearQueue [11:21:33]wFMCommunicate request_size=4 [11:21:33]MH_SAM_APDU [11:21:33]CAPDU: 80 09 00 00 [11:21:33]Write to MH i2c: E2 08 00 41 1F 80 09 00 00 00 00 00 00 D2 [11:21:33]Write i2c OK [11:21:33]MH_I2C_Read... [11:21:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:21:33]Read from MH i2c: E2 [11:21:33]MH_I2C_Read... [11:21:33]Read from MH i2c: E2 03 00 [11:21:33]MH_I2C_Read... [11:21:33]Read from MH i2c: E2 03 00 41 1F 00 90 00 D4 [11:21:33]RAPDU: 90 00 [11:21:33]wFMCommunicate OK [11:21:33]SAM_PROTO_ClearQueue done [11:21:33]KKMCreateOFDPacket [11:21:33]OFDProtocolAddRootSTLVToBuf [11:21:33]FM_MakeSignedData [11:21:33]FM_MakeSignedData [11:21:33]SAM_PROTO_SignData [11:21:33]wFMCommunicate request_size=4 [11:21:33]MH_SAM_APDU [11:21:33]CAPDU: 80 0D 01 02 [11:21:33]Write to MH i2c: E2 08 00 42 1F 80 0D 01 02 00 00 00 00 DA [11:21:33]Write i2c OK [11:21:33]MH_I2C_Read... [11:21:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:21:33]Read from MH i2c: E2 [11:21:33]MH_I2C_Read... [11:21:33]Read from MH i2c: E2 03 00 [11:21:33]MH_I2C_Read... [11:21:33]Read from MH i2c: E2 03 00 42 1F 00 90 00 D5 [11:21:33]RAPDU: 90 00 [11:21:33]wFMCommunicate OK [11:21:33]wFMCommunicate request_size=255 [11:21:33]MH_SAM_APDU [11:21:33]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 D8 22 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 03 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 40 62 75 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 CA 96 01 00 35 04 06 00 [11:21:33]Write to MH i2c: E2 02 01 43 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 D8 22 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 03 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 40 62 75 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 CA 96 01 00 35 04 06 00 00 00 53 [11:21:33]Write i2c OK [11:21:33]MH_I2C_Read... [11:21:33]OFD Sender: No OFD packet to send [11:21:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:21:33]Read from MH i2c: E2 [11:21:33]MH_I2C_Read... [11:21:33]Read from MH i2c: E2 03 00 [11:21:33]MH_I2C_Read... [11:21:33]Read from MH i2c: E2 03 00 43 1F 00 90 00 D6 [11:21:33]RAPDU: 90 00 [11:21:33]wFMCommunicate OK [11:21:33]wFMCommunicate request_size=11 [11:21:33]MH_SAM_APDU [11:21:33]CAPDU: 80 0D 02 02 06 D3 C5 64 D6 42 BA [11:21:33]Write to MH i2c: E2 0E 00 44 1F 80 0D 02 02 06 00 D3 C5 64 D6 42 BA 00 00 B7 [11:21:33]Write i2c OK [11:21:33]MH_I2C_Read... [11:21:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:21:33]Read from MH i2c: E2 [11:21:33]MH_I2C_Read... [11:21:33]Read from MH i2c: E2 03 00 [11:21:33]MH_I2C_Read... [11:21:33]Read from MH i2c: E2 03 00 44 1F 00 90 00 D7 [11:21:33]RAPDU: 90 00 [11:21:33]wFMCommunicate OK [11:21:33]wFMCommunicate request_size=4 [11:21:33]MH_SAM_APDU [11:21:33]CAPDU: 80 0D 03 02 [11:21:33]Write to MH i2c: E2 08 00 45 1F 80 0D 03 02 00 00 00 00 DF [11:21:33]Write i2c OK [11:21:33]MH_I2C_Read... [11:21:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:21:33]Read from MH i2c: E2 [11:21:33]MH_I2C_Read... [11:21:33]Read from MH i2c: E2 0B 00 [11:21:33]MH_I2C_Read... [11:21:33]Read from MH i2c: E2 0B 00 45 1F 00 99 D3 BC 39 AC 76 67 68 90 00 32 [11:21:33]RAPDU: 99 D3 BC 39 AC 76 67 68 90 00 [11:21:33]wFMCommunicate OK [11:21:33]SAM_PROTO_SignData done [11:21:33]FM_MakeSignedData done [11:21:33]CreateOFDProtocolMessage [11:21:33]wFMCommunicate request_size=4 [11:21:33]MH_SAM_APDU [11:21:33]CAPDU: 80 11 00 00 [11:21:33]Write to MH i2c: E2 08 00 46 1F 80 11 00 00 00 00 00 00 DF [11:21:33]Write i2c OK [11:21:33]MH_I2C_Read... [11:21:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:21:33]Read from MH i2c: E2 [11:21:33]MH_I2C_Read... [11:21:33]Read from MH i2c: E2 17 00 [11:21:33]MH_I2C_Read... [11:21:33]Read from MH i2c: E2 17 00 46 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 32 [11:21: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:21:33]wFMCommunicate OK [11:21:33]CreateOFDProtocolMessage done [11:21:33]OFDSenderStorePacket 104138 [11:21:33]StoreOFDPacket docnum=104138 [11:21: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 10 01 00 00 5D D7 08 01 24 3A 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 D8 22 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 03 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 40 62 75 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 CA 96 01 00 35 04 06 00 D3 C5 64 D6 42 BA 99 D3 BC 39 AC 76 67 68 [11:21:33]CheckFolder [11:21:33]dirname=/storage/ofd_packets [11:21:33]CheckFolder done [11:21:33]ProducePacketName [11:21:33]name=ofd_packets/00104138 [11:21:33]NVStorageSaveData ofd_packets/00104138 [11:21:33]File name is /storage/ofd_packets/00104138 [11:21:33]Write 302 bytes [11:21:33]NVStorageSaveData done [11:21:33]OFDSenderStorePacket done [11:21:33]KKMCreateOFDPacket done [11:21:33]NVStorageSaveData kkm_last_timestamp [11:21:33]File name is /storage/kkm_last_timestamp [11:21:33]Write 4 bytes [11:21:33]NVStorageSaveData done [11:21:33]ExternCall_PrintAddStr [11:21:33]wPrintStart [11:21:33]Write to MH i2c: 01 00 00 47 1F 66 [11:21:33]Write i2c OK [11:21:33]MH_I2C_Read... [11:21:33]Read from MH i2c: 01 [11:21:33]MH_I2C_Read... [11:21:33]Read from MH i2c: 01 07 00 [11:21:33]MH_I2C_Read... [11:21:33]Read from MH i2c: 01 07 00 47 1F 00 00 00 00 00 FF 0F 7B [11:21:33]RasterBufferAndPrint [11:21:33]line Счет N : (1)673556 [11:21:33]line ИНН: 02508201610067 [11:21:33]line Контрольно-Кассовый Чек [11:21:33]line ПРОДАЖА [11:21:33]line ТРК (МРК, ГНК) : 21 [11:21:33]line Товар: 2710194210 [11:21:33]line ДТ(л)-К-5 [11:21:33]line 8.920 * 72.90 [11:21:33]line = 650.27 [11:21:33]line НДС 12% НСП 1% [11:21:33]line > о реализуемом товаре [11:21:33]line ОКРУГЛЕНИЕ: -0.27 [11:21:33]line ИТОГО: 650.00 [11:21:33]line Внесено: 650.00 [11:21:33]line СДАЧА: 0.00 [11:21:33]line НСП 1% : 5.75 [11:21:33]line НДС 12% : 69.05 [11:21:33]line Наличными: 650.00 [11:21:33]line Безнал.: 0.00 [11:21:33]line Место: АЗС № 120 "Партнер Нефть" [11:21:33]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [11:21:33]line СНО: Общий режим [11:21:33]line Чек 61 21.06.2024 11:21 [11:21:33]line Смена: 355 ФФД: 1.0 [11:21:33]line ЗНМ: 0300000164 [11:21:33]line РНМ: 0000000000092785 [11:21:33]line Версия ККМ: 001 [11:21:34]line ФМ: 0000000000875093 [11:21:34]line ФД: 104138 [11:21:34]line ФПД: 232844753781434 [11:21:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T112136&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104138&fm=232844753781434&tin=02508201610067®Number=0000000000092785&sum=65000 [11:21:34]OFD Sender: Processing packet 104138 [packets to send 17, broken 16] [11:21:34]ProducePacketName [11:21:34]name=ofd_packets/00104138 [11:21:34]OFD Sender: To server: pG, [11:21:34]CommunicateWithHost lk.salyk.kg:30040 [11:21:34]ConnectInit lk.salyk.kg [11:21:34]written 0, free lines is 4095 [11:21:34]Connected sock=10 [11:21: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 10 01 00 00 5D D7 08 01 24 3A 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 D8 22 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 03 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 40 62 75 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 CA 96 01 00 35 04 06 00 D3 C5 64 D6 42 BA 99 D3 BC 39 AC 76 67 68 [11:21: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 65 B1 47 00 F7 7F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 CA 96 01 00 F4 03 04 00 C2 08 75 66 B6 04 01 00 00 0D EC 4E FE 0A 09 DB 0B [11:21:34]CommunicateWithHost err = 0 [11:21:34]CheckOFDResponse [11:21:34]1017 (14) - 77093643461234 [11:21:34]1041 (16) - 0000000000875093 [11:21:34]1040 (4) - 104138 [11:21:34]1012 (4) - 21.06.2024 04:59 [11:21:34]1206 (1) - 0 [11:21:34]OFD Sender: Remove packet 104138 [11:21:34]ProducePacketName [11:21:34]name=ofd_packets/00104138 [11:21:34]NVStorageDeleteData [11:21:34]Write to MH i2c: 01 00 00 72 1F 91 [11:21:34]Write i2c OK [11:21:34]MH_I2C_Read... [11:21:34]Read from MH i2c: 01 [11:21:34]MH_I2C_Read... [11:21:34]Read from MH i2c: 01 07 00 [11:21:34]MH_I2C_Read... [11:21:34]Read from MH i2c: 01 07 00 72 1F 00 00 00 00 00 D7 0C 7B [11:21:34]RasterBufferAndPrint [11:21:34]line [11:21:34]line [11:21:34]line [11:21:34]line [11:21:34]line [11:21:34]written 0, free lines is 3290 [11:21:34]MH_Cut [11:21:34]Write to MH i2c: D1 01 00 79 1F 01 6A [11:21:34]Write i2c OK [11:21:34]MH_I2C_Read... [11:21:34]Read from MH i2c: D1 [11:21:34]MH_I2C_Read... [11:21:34]Read from MH i2c: D1 01 00 [11:21:34]MH_I2C_Read... [11:21:34]Read from MH i2c: D1 01 00 79 1F 00 69 [11:21:34]Write to MH i2c: 01 00 00 7A 1F 99 [11:21:34]Write i2c OK [11:21:34]MH_I2C_Read... [11:21:35]OFD Sender: No OFD packet to send [11:21:35]*** Cut start [11:21:35]*** Partial cut [11:21:35]*** CUTSNS_PIN = 1 [11:21:35]*** CUTSNS_PIN = 0 [11:21:35]*** Brake cut motor [11:21:35]Read from MH i2c: 01 [11:21:35]MH_I2C_Read... [11:21:35]*** Stop cut motor [11:21:35]*** Cut end [11:21:35]Read from MH i2c: 01 07 00 [11:21:35]MH_I2C_Read... [11:21:35]Read from MH i2c: 01 07 00 7A 1F 00 00 00 00 00 FF 0F AE [11:21:35]process_action close_receipt done [11:21:35]requested_data is exist [11:21:35]produce_requested_data [11:21:35]requested_item fm.sn is exist - process it [11:21:35]wFMCommunicate request_size=4 [11:21:35]MH_SAM_APDU [11:21:35]CAPDU: 80 11 00 00 [11:21:35]Write to MH i2c: E2 08 00 7B 1F 80 11 00 00 00 00 00 00 14 [11:21:35]Write i2c OK [11:21:35]MH_I2C_Read... [11:21:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:21:35]Read from MH i2c: E2 [11:21:35]MH_I2C_Read... [11:21:35]Read from MH i2c: E2 17 00 [11:21:35]MH_I2C_Read... [11:21:35]Read from MH i2c: E2 17 00 7B 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 67 [11:21: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:21:35]wFMCommunicate OK [11:21:35]requested_item fd.num is exist - process it [11:21:35]SAM_PROTO_GetFieldsCounters [11:21:35]wFMCommunicate request_size=4 [11:21:35]MH_SAM_APDU [11:21:35]CAPDU: 80 13 00 00 [11:21:35]Write to MH i2c: E2 08 00 7C 1F 80 13 00 00 00 00 00 00 17 [11:21:36]Write i2c OK [11:21:36]MH_I2C_Read... [11:21:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:21:36]Read from MH i2c: E2 [11:21:36]MH_I2C_Read... [11:21:36]Read from MH i2c: E2 62 00 [11:21:36]MH_I2C_Read... [11:21:36]Read from MH i2c: E2 62 00 7C 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 CA 96 01 00 0E 04 04 00 63 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 BA [11:21: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 CA 96 01 00 0E 04 04 00 63 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 [11:21:36]wFMCommunicate OK [11:21:36]SAM_PROTO_GetFieldsCounters done [11:21:36]requested_item shift.num is exist - process it [11:21:36]requested_item shift.opened is exist - process it [11:21:36]req_shift_opened [11:21:36]FM_GetShiftState [11:21:36]SAM_PROTO_GetShiftState [11:21:36]wFMCommunicate request_size=4 [11:21:36]MH_SAM_APDU [11:21:36]CAPDU: 80 13 01 00 [11:21:36]Write to MH i2c: E2 08 00 7D 1F 80 13 01 00 00 00 00 00 19 [11:21:36]Write i2c OK [11:21:36]MH_I2C_Read... [11:21:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:21:36]Read from MH i2c: E2 [11:21:36]MH_I2C_Read... [11:21:36]Read from MH i2c: E2 0E 00 [11:21:36]MH_I2C_Read... [11:21:36]Read from MH i2c: E2 0E 00 7D 1F 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 2C [11:21:36]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [11:21:36]wFMCommunicate OK [11:21:36]SAM_PROTO_GetShiftState done [11:21:36]FM_GetShiftState done [11:21:36]req_shift_opened done [11:21:36]requested_item shift.open_date is exist - process it [11:21:36]req_shift_open_date [11:21:36]req_shift_open_date done [11:21:36]produce_requested_data done [11:21:36]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104138,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [11:21:36]process_action_free close_receipt [11:21:36]json_value_free [11:21:36]json_value_free done [11:21:36]process_json_proto returns [11:21:36]Send response to host [11:21:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104138,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [11:21:36]free response buf [11:21:36]execute_script done [11:21:36]execute_script returns [11:21:36]free content buf [11:21:36]Sock 9.Close socket [11:21:36]Sock 9.Thread stoped [11:21:40]OFD Sender: No OFD packet to send [11:21:45]OFD Sender: No OFD packet to send [11:21:50]OFD Sender: No OFD packet to send [11:21:55]OFD Sender: No OFD packet to send [11:22:00]OFD Sender: No OFD packet to send [11:22:05]OFD Sender: No OFD packet to send [11:22:10]OFD Sender: No OFD packet to send [11:22:15]OFD Sender: No OFD packet to send [11:22:20]OFD Sender: No OFD packet to send [11:22:25]OFD Sender: No OFD packet to send [11:22:27]accept exits with 7 [11:22:27]New connection [11:22:27]New thread 3066858852 created [11:22:27]Thread 3066715492 joined [11:22:27]Waiting for new connection... [11:22:27] Sock 7.Parse request [11:22:27]Sock 7.Check first char [11:22:27]Sock 7.First char is OK [11:22:27]request: POST /json_proto HTTP/1.0 [11:22:27]Method: POST [11:22:27]URL: /json_proto [11:22:27]Method is POST - this is cgi request [11:22:27]url: /json_proto [11:22:27]query_string will be loaded in cgi processing [11:22:27]execute_cgi json_proto POST (null) [11:22:27]execute_cgi path=json_proto method=POST [11:22:27]POST find Content-Length [11:22:27]Host: 172.17.38.133:8080 [11:22:27]Content-Length: 682 [11:22:27]Content-Type: application/json [11:22:27] [11:22:27]POST finish read [11:22:27]Found Content-Length = 682 [11:22:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673558", "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" ] } } [11:22:27]execute_script... [11:22:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673558", "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" ] } } [11:22:27]POST & json_proto [11:22:27]process_json_proto [11:22:27]json parsed OK: [11:22:27]protocol is kg_v1.0 [11:22:27]action value=close_receipt [11:22:27]process_action close_receipt [11:22:27]cmd_close_receipt [11:22:27]MH_GetDate [11:22:27]Write to MH i2c: F0 00 00 7E 1F 8C [11:22:27]Write i2c OK [11:22:27]MH_I2C_Read... [11:22:27]Read from MH i2c: F0 [11:22:27]MH_I2C_Read... [11:22:27]Read from MH i2c: F0 09 00 [11:22:27]MH_I2C_Read... [11:22:27]Read from MH i2c: F0 09 00 7E 1F 00 77 62 75 66 BD 8F 7C 64 75 [11:22:27]GetLastDocTimeStamp 1718968896 [11:22:27]current date 1718968951 [11:22:27]FM_GetShiftState [11:22:27]SAM_PROTO_GetShiftState [11:22:27]wFMCommunicate request_size=4 [11:22:27]MH_SAM_APDU [11:22:27]CAPDU: 80 13 01 00 [11:22:27]Write to MH i2c: E2 08 00 7F 1F 80 13 01 00 00 00 00 00 1B [11:22:27]Write i2c OK [11:22:27]MH_I2C_Read... [11:22:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:22:27]Read from MH i2c: E2 [11:22:27]MH_I2C_Read... [11:22:27]Read from MH i2c: E2 0E 00 [11:22:27]MH_I2C_Read... [11:22:27]Read from MH i2c: E2 0E 00 7F 1F 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 2E [11:22:27]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [11:22:27]wFMCommunicate OK [11:22:27]SAM_PROTO_GetShiftState done [11:22:27]FM_GetShiftState done [11:22:27]opened in 1718929509 [11:22:27]opened+sec_in_day 1719015909 [11:22:27]quantity*price = 100064 [11:22:27]sum+1 = 100066 [11:22: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 СНО: Общий режим Чек 62 21.06.2024 11:22 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104139 ФПД: 125834516340163 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T112231&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104139&fm=125834516340163&tin=02508201610067®Number=0000000000092785&sum=100000 [11:22:28]StoreToDocumentArchive [11:22:28]shift 355 fd 104139 [11:22:28]save to /storage/0355/doc_00104139 [11:22:28]save last doc name /storage/0355/doc_00104139 to /storage/kkm_last_doc_name [11:22:28]save OK [11:22:28]Clear old archive folders... [11:22:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:22:28]tlvbuf is 011074C0 [11:22:28]SAM_PROTO_ClearQueue [11:22:28]wFMCommunicate request_size=4 [11:22:28]MH_SAM_APDU [11:22:28]CAPDU: 80 09 00 00 [11:22:28]Write to MH i2c: E2 08 00 8C 1F 80 09 00 00 00 00 00 00 1D [11:22:28]Write i2c OK [11:22:28]MH_I2C_Read... [11:22:28]Read from MH i2c: E2 [11:22:28]MH_I2C_Read... [11:22:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:22:28]Read from MH i2c: E2 03 00 [11:22:28]MH_I2C_Read... [11:22:28]Read from MH i2c: E2 03 00 8C 1F 00 90 00 1F [11:22:28]RAPDU: 90 00 [11:22:28]wFMCommunicate OK [11:22:28]SAM_PROTO_ClearQueue done [11:22:28]KKMCreateOFDPacket [11:22:28]OFDProtocolAddRootSTLVToBuf [11:22:28]FM_MakeSignedData [11:22:28]FM_MakeSignedData [11:22:28]SAM_PROTO_SignData [11:22:28]wFMCommunicate request_size=4 [11:22:28]MH_SAM_APDU [11:22:28]CAPDU: 80 0D 01 02 [11:22:28]Write to MH i2c: E2 08 00 8D 1F 80 0D 01 02 00 00 00 00 25 [11:22:28]Write i2c OK [11:22:28]MH_I2C_Read... [11:22:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:22:28]Read from MH i2c: E2 [11:22:28]MH_I2C_Read... [11:22:28]Read from MH i2c: E2 03 00 [11:22:28]MH_I2C_Read... [11:22:28]Read from MH i2c: E2 03 00 8D 1F 00 90 00 20 [11:22:28]RAPDU: 90 00 [11:22:28]wFMCommunicate OK [11:22:28]wFMCommunicate request_size=255 [11:22:28]MH_SAM_APDU [11:22:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 3E 00 00 00 F4 03 04 00 77 62 75 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 CB 96 01 00 35 04 06 00 72 [11:22:28]Write to MH i2c: E2 02 01 8E 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 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 3E 00 00 00 F4 03 04 00 77 62 75 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 CB 96 01 00 35 04 06 00 72 00 00 59 [11:22:28]Write i2c OK [11:22:28]MH_I2C_Read... [11:22:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:22:28]Read from MH i2c: E2 [11:22:28]MH_I2C_Read... [11:22:28]Read from MH i2c: E2 03 00 [11:22:28]MH_I2C_Read... [11:22:28]Read from MH i2c: E2 03 00 8E 1F 00 90 00 21 [11:22:28]RAPDU: 90 00 [11:22:28]wFMCommunicate OK [11:22:28]wFMCommunicate request_size=10 [11:22:28]MH_SAM_APDU [11:22:28]CAPDU: 80 0D 02 02 05 72 21 A5 9D C3 [11:22:28]Write to MH i2c: E2 0D 00 8F 1F 80 0D 02 02 05 00 72 21 A5 9D C3 00 00 CA [11:22:28]Write i2c OK [11:22:28]MH_I2C_Read... [11:22:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:22:28]Read from MH i2c: E2 [11:22:28]MH_I2C_Read... [11:22:28]Read from MH i2c: E2 03 00 [11:22:28]MH_I2C_Read... [11:22:28]Read from MH i2c: E2 03 00 8F 1F 00 90 00 22 [11:22:28]RAPDU: 90 00 [11:22:28]wFMCommunicate OK [11:22:28]wFMCommunicate request_size=4 [11:22:28]MH_SAM_APDU [11:22:28]CAPDU: 80 0D 03 02 [11:22:28]Write to MH i2c: E2 08 00 90 1F 80 0D 03 02 00 00 00 00 2A [11:22:28]Write i2c OK [11:22:28]MH_I2C_Read... [11:22:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:22:28]Read from MH i2c: E2 [11:22:28]MH_I2C_Read... [11:22:28]Read from MH i2c: E2 0B 00 [11:22:28]MH_I2C_Read... [11:22:28]Read from MH i2c: E2 0B 00 90 1F 00 8A DF DC 63 B3 3B 5E 08 90 00 27 [11:22:28]RAPDU: 8A DF DC 63 B3 3B 5E 08 90 00 [11:22:29]wFMCommunicate OK [11:22:29]SAM_PROTO_SignData done [11:22:29]FM_MakeSignedData done [11:22:29]CreateOFDProtocolMessage [11:22:29]wFMCommunicate request_size=4 [11:22:29]MH_SAM_APDU [11:22:29]CAPDU: 80 11 00 00 [11:22:29]Write to MH i2c: E2 08 00 91 1F 80 11 00 00 00 00 00 00 2A [11:22:29]Write i2c OK [11:22:29]MH_I2C_Read... [11:22:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:22:29]Read from MH i2c: E2 [11:22:29]MH_I2C_Read... [11:22:29]Read from MH i2c: E2 17 00 [11:22:29]MH_I2C_Read... [11:22:29]Read from MH i2c: E2 17 00 91 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 7D [11:22:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [11:22:29]wFMCommunicate OK [11:22:29]CreateOFDProtocolMessage done [11:22:29]OFDSenderStorePacket 104139 [11:22:29]StoreOFDPacket docnum=104139 [11:22: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 E1 7D 07 01 E0 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 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 3E 00 00 00 F4 03 04 00 77 62 75 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 CB 96 01 00 35 04 06 00 72 72 21 A5 9D C3 8A DF DC 63 B3 3B 5E 08 [11:22:29]CheckFolder [11:22:29]dirname=/storage/ofd_packets [11:22:29]CheckFolder done [11:22:29]ProducePacketName [11:22:29]name=ofd_packets/00104139 [11:22:29]NVStorageSaveData ofd_packets/00104139 [11:22:29]File name is /storage/ofd_packets/00104139 [11:22:29]Write 301 bytes [11:22:29]NVStorageSaveData done [11:22:29]OFDSenderStorePacket done [11:22:29]KKMCreateOFDPacket done [11:22:29]NVStorageSaveData kkm_last_timestamp [11:22:29]File name is /storage/kkm_last_timestamp [11:22:29]Write 4 bytes [11:22:29]NVStorageSaveData done [11:22:29]ExternCall_PrintAddStr [11:22:29]wPrintStart [11:22:29]Write to MH i2c: 01 00 00 92 1F B1 [11:22:29]Write i2c OK [11:22:29]MH_I2C_Read... [11:22:29]Read from MH i2c: 01 [11:22:29]MH_I2C_Read... [11:22:29]Read from MH i2c: 01 07 00 [11:22:29]MH_I2C_Read... [11:22:29]Read from MH i2c: 01 07 00 92 1F 00 00 00 00 00 FF 0F C6 [11:22:29]RasterBufferAndPrint [11:22:29]line Счет N : (1)673558 [11:22:29]line ИНН: 02508201610067 [11:22:29]line Контрольно-Кассовый Чек [11:22:29]line ПРОДАЖА [11:22:29]line ТРК (МРК, ГНК) : 42 [11:22:29]line Товар: 2710124130 [11:22:29]line Аи-92-К-5 [11:22:29]line 15.070 * 66.40 [11:22:29]line = 1000.65 [11:22:29]line НДС 12% НСП 1% [11:22:29]line > о реализуемом товаре [11:22:29]line ОКРУГЛЕНИЕ: -0.65 [11:22:29]line ИТОГО: 1000.00 [11:22:29]line Внесено: 1000.00 [11:22:29]line СДАЧА: 0.00 [11:22:29]line НСП 1% : 8.85 [11:22:29]line НДС 12% : 106.26 [11:22:29]line Наличными: 1000.00 [11:22:29]line Безнал.: 0.00 [11:22:29]line Место: АЗС № 120 "Партнер Нефть" [11:22:29]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [11:22:29]line СНО: Общий режим [11:22:29]line Чек 62 21.06.2024 11:22 [11:22:29]line Смена: 355 ФФД: 1.0 [11:22:29]line ЗНМ: 0300000164 [11:22:29]line РНМ: 0000000000092785 [11:22:29]line Версия ККМ: 001 [11:22:29]line ФМ: 0000000000875093 [11:22:29]line ФД: 104139 [11:22:29]line ФПД: 125834516340163 [11:22:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T112231&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104139&fm=125834516340163&tin=02508201610067®Number=0000000000092785&sum=100000 [11:22:29]OFD Sender: Processing packet 104139 [packets to send 17, broken 16] [11:22:29]ProducePacketName [11:22:29]name=ofd_packets/00104139 [11:22:29]OFD Sender: To server: pG, [11:22:29]CommunicateWithHost lk.salyk.kg:30040 [11:22:29]ConnectInit lk.salyk.kg [11:22:29]written 0, free lines is 4095 [11:22:29]Connected sock=10 [11:22:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 E1 7D 07 01 E0 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 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 3E 00 00 00 F4 03 04 00 77 62 75 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 CB 96 01 00 35 04 06 00 72 72 21 A5 9D C3 8A DF DC 63 B3 3B 5E 08 [11:22: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 D8 5F 47 00 36 92 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 CB 96 01 00 F4 03 04 00 FA 08 75 66 B6 04 01 00 00 0A 2F 73 B0 65 DC 01 18 [11:22:29]CommunicateWithHost err = 0 [11:22:29]CheckOFDResponse [11:22:29]1017 (14) - 77093643461234 [11:22:29]1041 (16) - 0000000000875093 [11:22:29]1040 (4) - 104139 [11:22:29]1012 (4) - 21.06.2024 05:00 [11:22:29]1206 (1) - 0 [11:22:29]OFD Sender: Remove packet 104139 [11:22:29]ProducePacketName [11:22:29]name=ofd_packets/00104139 [11:22:29]NVStorageDeleteData [11:22:29]Write to MH i2c: 01 00 00 BD 1F DC [11:22:29]Write i2c OK [11:22:29]MH_I2C_Read... [11:22:29]Read from MH i2c: 01 [11:22:29]MH_I2C_Read... [11:22:29]Read from MH i2c: 01 07 00 [11:22:29]MH_I2C_Read... [11:22:29]Read from MH i2c: 01 07 00 BD 1F 00 00 00 00 00 D9 0C C8 [11:22:29]RasterBufferAndPrint [11:22:29]line [11:22:29]line [11:22:29]line [11:22:29]line [11:22:29]line [11:22:29]written 0, free lines is 3296 [11:22:29]MH_Cut [11:22:29]Write to MH i2c: D1 01 00 C4 1F 01 B5 [11:22:29]Write i2c OK [11:22:29]MH_I2C_Read... [11:22:29]Read from MH i2c: D1 [11:22:29]MH_I2C_Read... [11:22:29]Read from MH i2c: D1 01 00 [11:22:29]MH_I2C_Read... [11:22:29]Read from MH i2c: D1 01 00 C4 1F 00 B4 [11:22:29]Write to MH i2c: 01 00 00 C5 1F E4 [11:22:29]Write i2c OK [11:22:29]MH_I2C_Read... [11:22:30]OFD Sender: No OFD packet to send [11:22:30]*** Cut start [11:22:30]*** Partial cut [11:22:30]*** CUTSNS_PIN = 1 [11:22:30]*** CUTSNS_PIN = 0 [11:22:30]*** Brake cut motor [11:22:31]Read from MH i2c: 01 [11:22:31]MH_I2C_Read... [11:22:31]*** Stop cut motor [11:22:31]*** Cut end [11:22:31]Read from MH i2c: 01 07 00 [11:22:31]MH_I2C_Read... [11:22:31]Read from MH i2c: 01 07 00 C5 1F 00 00 00 00 00 FF 0F F9 [11:22:31]process_action close_receipt done [11:22:31]requested_data is exist [11:22:31]produce_requested_data [11:22:31]requested_item fm.sn is exist - process it [11:22:31]wFMCommunicate request_size=4 [11:22:31]MH_SAM_APDU [11:22:31]CAPDU: 80 11 00 00 [11:22:31]Write to MH i2c: E2 08 00 C6 1F 80 11 00 00 00 00 00 00 5F [11:22:31]Write i2c OK [11:22:31]MH_I2C_Read... [11:22:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:22:31]Read from MH i2c: E2 [11:22:31]MH_I2C_Read... [11:22:31]Read from MH i2c: E2 17 00 [11:22:31]MH_I2C_Read... [11:22:31]Read from MH i2c: E2 17 00 C6 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 B2 [11:22:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [11:22:31]wFMCommunicate OK [11:22:31]requested_item fd.num is exist - process it [11:22:31]SAM_PROTO_GetFieldsCounters [11:22:31]wFMCommunicate request_size=4 [11:22:31]MH_SAM_APDU [11:22:31]CAPDU: 80 13 00 00 [11:22:31]Write to MH i2c: E2 08 00 C7 1F 80 13 00 00 00 00 00 00 62 [11:22:31]Write i2c OK [11:22:31]MH_I2C_Read... [11:22:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:22:31]Read from MH i2c: E2 [11:22:31]MH_I2C_Read... [11:22:31]Read from MH i2c: E2 62 00 [11:22:31]MH_I2C_Read... [11:22:31]Read from MH i2c: E2 62 00 C7 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 CB 96 01 00 0E 04 04 00 63 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 09 [11:22:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 96 01 00 0E 04 04 00 63 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 [11:22:31]wFMCommunicate OK [11:22:31]SAM_PROTO_GetFieldsCounters done [11:22:31]requested_item shift.num is exist - process it [11:22:31]requested_item shift.opened is exist - process it [11:22:31]req_shift_opened [11:22:31]FM_GetShiftState [11:22:31]SAM_PROTO_GetShiftState [11:22:31]wFMCommunicate request_size=4 [11:22:31]MH_SAM_APDU [11:22:31]CAPDU: 80 13 01 00 [11:22:31]Write to MH i2c: E2 08 00 C8 1F 80 13 01 00 00 00 00 00 64 [11:22:31]Write i2c OK [11:22:31]MH_I2C_Read... [11:22:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:22:31]Read from MH i2c: E2 [11:22:31]MH_I2C_Read... [11:22:31]Read from MH i2c: E2 0E 00 [11:22:31]MH_I2C_Read... [11:22:31]Read from MH i2c: E2 0E 00 C8 1F 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 77 [11:22:31]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [11:22:31]wFMCommunicate OK [11:22:31]SAM_PROTO_GetShiftState done [11:22:31]FM_GetShiftState done [11:22:31]req_shift_opened done [11:22:31]requested_item shift.open_date is exist - process it [11:22:31]req_shift_open_date [11:22:31]req_shift_open_date done [11:22:31]produce_requested_data done [11:22:31]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104139,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [11:22:31]process_action_free close_receipt [11:22:31]json_value_free [11:22:31]json_value_free done [11:22:31]process_json_proto returns [11:22:31]Send response to host [11:22:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104139,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [11:22:31]free response buf [11:22:31]execute_script done [11:22:31]execute_script returns [11:22:31]free content buf [11:22:31]Sock 7.Close socket [11:22:31]Sock 7.Thread stoped [11:22:35]OFD Sender: No OFD packet to send [11:22:40]OFD Sender: No OFD packet to send [11:22:45]OFD Sender: No OFD packet to send [11:22:47]accept exits with 9 [11:22:47]New connection [11:22:47]New thread 3066715492 created [11:22:47]Thread 3066858852 joined [11:22:47]Waiting for new connection... [11:22:47] Sock 9.Parse request [11:22:47]Sock 9.Check first char [11:22:47]Sock 9.First char is OK [11:22:47]request: POST /json_proto HTTP/1.0 [11:22:47]Method: POST [11:22:47]URL: /json_proto [11:22:47]Method is POST - this is cgi request [11:22:47]url: /json_proto [11:22:47]query_string will be loaded in cgi processing [11:22:47]execute_cgi json_proto POST (null) [11:22:47]execute_cgi path=json_proto method=POST [11:22:47]POST find Content-Length [11:22:47]Host: 172.17.38.133:8080 [11:22:47]Content-Length: 682 [11:22:47]Content-Type: application/json [11:22:47] [11:22:47]POST finish read [11:22:47]Found Content-Length = 682 [11:22:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673557", "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:22:47]execute_script... [11: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)673557", "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:22:47]POST & json_proto [11:22:47]process_json_proto [11:22:47]json parsed OK: [11:22:47]protocol is kg_v1.0 [11:22:47]action value=close_receipt [11:22:47]process_action close_receipt [11:22:47]cmd_close_receipt [11:22:47]MH_GetDate [11:22:47]Write to MH i2c: F0 00 00 C9 1F D7 [11:22:47]Write i2c OK [11:22:47]MH_I2C_Read... [11:22:47]Read from MH i2c: F0 [11:22:47]MH_I2C_Read... [11:22:47]Read from MH i2c: F0 09 00 [11:22:47]MH_I2C_Read... [11:22:47]Read from MH i2c: F0 09 00 C9 1F 00 8B 62 75 66 BD 8F 7C 64 D4 [11:22:47]GetLastDocTimeStamp 1718968951 [11:22:47]current date 1718968971 [11:22:47]FM_GetShiftState [11:22:47]SAM_PROTO_GetShiftState [11:22:47]wFMCommunicate request_size=4 [11:22:47]MH_SAM_APDU [11:22:47]CAPDU: 80 13 01 00 [11:22:47]Write to MH i2c: E2 08 00 CA 1F 80 13 01 00 00 00 00 00 66 [11:22:47]Write i2c OK [11:22:47]MH_I2C_Read... [11:22:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:22:47]Read from MH i2c: E2 [11:22:47]MH_I2C_Read... [11:22:47]Read from MH i2c: E2 0E 00 [11:22:47]MH_I2C_Read... [11:22:47]Read from MH i2c: E2 0E 00 CA 1F 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 79 [11:22:47]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [11:22:47]wFMCommunicate OK [11:22:47]SAM_PROTO_GetShiftState done [11:22:47]FM_GetShiftState done [11:22:47]opened in 1718929509 [11:22:47]opened+sec_in_day 1719015909 [11:22:47]quantity*price = 100064 [11:22:47]sum+1 = 100066 [11:22:47]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 СНО: Общий режим Чек 63 21.06.2024 11:22 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104140 ФПД: 184007474144018 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T112251&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104140&fm=184007474144018&tin=02508201610067®Number=0000000000092785&sum=100000 [11:22:48]StoreToDocumentArchive [11:22:48]shift 355 fd 104140 [11:22:48]save to /storage/0355/doc_00104140 [11:22:48]save last doc name /storage/0355/doc_00104140 to /storage/kkm_last_doc_name [11:22:48]save OK [11:22:48]Clear old archive folders... [11:22:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:22:48]tlvbuf is B6F3E840 [11:22:48]SAM_PROTO_ClearQueue [11:22:48]wFMCommunicate request_size=4 [11:22:48]MH_SAM_APDU [11:22:48]CAPDU: 80 09 00 00 [11:22:48]Write to MH i2c: E2 08 00 D7 1F 80 09 00 00 00 00 00 00 68 [11:22:48]Write i2c OK [11:22:48]MH_I2C_Read... [11:22:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:22:48]Read from MH i2c: E2 [11:22:48]MH_I2C_Read... [11:22:48]Read from MH i2c: E2 03 00 [11:22:48]MH_I2C_Read... [11:22:48]Read from MH i2c: E2 03 00 D7 1F 00 90 00 6A [11:22:48]RAPDU: 90 00 [11:22:48]wFMCommunicate OK [11:22:48]SAM_PROTO_ClearQueue done [11:22:48]KKMCreateOFDPacket [11:22:48]OFDProtocolAddRootSTLVToBuf [11:22:48]FM_MakeSignedData [11:22:48]FM_MakeSignedData [11:22:48]SAM_PROTO_SignData [11:22:48]wFMCommunicate request_size=4 [11:22:48]MH_SAM_APDU [11:22:48]CAPDU: 80 0D 01 02 [11:22:48]Write to MH i2c: E2 08 00 D8 1F 80 0D 01 02 00 00 00 00 70 [11:22:48]Write i2c OK [11:22:48]MH_I2C_Read... [11:22:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:22:49]Read from MH i2c: E2 [11:22:49]MH_I2C_Read... [11:22:49]Read from MH i2c: E2 03 00 [11:22:49]MH_I2C_Read... [11:22:49]Read from MH i2c: E2 03 00 D8 1F 00 90 00 6B [11:22:49]RAPDU: 90 00 [11:22:49]wFMCommunicate OK [11:22:49]wFMCommunicate request_size=255 [11:22:49]MH_SAM_APDU [11:22: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 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 3F 00 00 00 F4 03 04 00 8B 62 75 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 CC 96 01 00 35 04 06 00 A7 [11:22:49]Write to MH i2c: E2 02 01 D9 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 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 3F 00 00 00 F4 03 04 00 8B 62 75 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 CC 96 01 00 35 04 06 00 A7 00 00 EF [11:22:49]Write i2c OK [11:22:49]MH_I2C_Read... [11:22:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:22:49]Read from MH i2c: E2 [11:22:49]MH_I2C_Read... [11:22:49]Read from MH i2c: E2 03 00 [11:22:49]MH_I2C_Read... [11:22:49]Read from MH i2c: E2 03 00 D9 1F 00 90 00 6C [11:22:49]RAPDU: 90 00 [11:22:49]wFMCommunicate OK [11:22:49]wFMCommunicate request_size=10 [11:22:49]MH_SAM_APDU [11:22:49]CAPDU: 80 0D 02 02 05 5A 94 21 E3 12 [11:22:49]Write to MH i2c: E2 0D 00 DA 1F 80 0D 02 02 05 00 5A 94 21 E3 12 00 00 81 [11:22:49]Write i2c OK [11:22:49]MH_I2C_Read... [11:22:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:22:49]Read from MH i2c: E2 [11:22:49]MH_I2C_Read... [11:22:49]Read from MH i2c: E2 03 00 [11:22:49]MH_I2C_Read... [11:22:49]Read from MH i2c: E2 03 00 DA 1F 00 90 00 6D [11:22:49]RAPDU: 90 00 [11:22:49]wFMCommunicate OK [11:22:49]wFMCommunicate request_size=4 [11:22:49]MH_SAM_APDU [11:22:49]CAPDU: 80 0D 03 02 [11:22:49]Write to MH i2c: E2 08 00 DB 1F 80 0D 03 02 00 00 00 00 75 [11:22:49]Write i2c OK [11:22:49]MH_I2C_Read... [11:22:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:22:49]Read from MH i2c: E2 [11:22:49]MH_I2C_Read... [11:22:49]Read from MH i2c: E2 0B 00 [11:22:49]MH_I2C_Read... [11:22:49]Read from MH i2c: E2 0B 00 DB 1F 00 7E D1 AC 3E 96 9C AE FD 90 00 8C [11:22:49]RAPDU: 7E D1 AC 3E 96 9C AE FD 90 00 [11:22:49]wFMCommunicate OK [11:22:49]SAM_PROTO_SignData done [11:22:49]FM_MakeSignedData done [11:22:49]CreateOFDProtocolMessage [11:22:49]wFMCommunicate request_size=4 [11:22:49]MH_SAM_APDU [11:22:49]CAPDU: 80 11 00 00 [11:22:49]Write to MH i2c: E2 08 00 DC 1F 80 11 00 00 00 00 00 00 75 [11:22:49]Write i2c OK [11:22:49]MH_I2C_Read... [11:22:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:22:49]Read from MH i2c: E2 [11:22:49]MH_I2C_Read... [11:22:49]Read from MH i2c: E2 17 00 [11:22:49]MH_I2C_Read... [11:22:49]Read from MH i2c: E2 17 00 DC 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 C8 [11: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 [11:22:49]wFMCommunicate OK [11:22:49]CreateOFDProtocolMessage done [11:22:49]OFDSenderStorePacket 104140 [11:22:49]StoreOFDPacket docnum=104140 [11: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 1C 64 07 01 9F 8D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 3F 00 00 00 F4 03 04 00 8B 62 75 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 CC 96 01 00 35 04 06 00 A7 5A 94 21 E3 12 7E D1 AC 3E 96 9C AE FD [11:22:49]CheckFolder [11:22:49]dirname=/storage/ofd_packets [11:22:49]CheckFolder done [11:22:49]ProducePacketName [11:22:49]name=ofd_packets/00104140 [11:22:49]NVStorageSaveData ofd_packets/00104140 [11:22:49]File name is /storage/ofd_packets/00104140 [11:22:49]Write 301 bytes [11:22:49]NVStorageSaveData done [11:22:49]OFDSenderStorePacket done [11:22:49]KKMCreateOFDPacket done [11:22:49]NVStorageSaveData kkm_last_timestamp [11:22:49]File name is /storage/kkm_last_timestamp [11:22:49]Write 4 bytes [11:22:49]NVStorageSaveData done [11:22:49]ExternCall_PrintAddStr [11:22:49]wPrintStart [11:22:49]Write to MH i2c: 01 00 00 DD 1F FC [11:22:49]Write i2c OK [11:22:49]MH_I2C_Read... [11:22:49]Read from MH i2c: 01 [11:22:49]MH_I2C_Read... [11:22:49]Read from MH i2c: 01 07 00 [11:22:49]MH_I2C_Read... [11:22:49]Read from MH i2c: 01 07 00 DD 1F 00 00 00 00 00 FF 0F 11 [11:22:49]RasterBufferAndPrint [11:22:49]line Счет N : (1)673557 [11:22:49]line ИНН: 02508201610067 [11:22:49]line Контрольно-Кассовый Чек [11:22:49]line ПРОДАЖА [11:22:49]line ТРК (МРК, ГНК) : 32 [11:22:49]line Товар: 2710124130 [11:22:49]line Аи-92-К-5 [11:22:49]line 15.070 * 66.40 [11:22:49]line = 1000.65 [11:22:49]line НДС 12% НСП 1% [11:22:49]line > о реализуемом товаре [11:22:49]line ОКРУГЛЕНИЕ: -0.65 [11:22:49]line ИТОГО: 1000.00 [11:22:49]line Внесено: 1000.00 [11:22:49]line СДАЧА: 0.00 [11:22:49]line НСП 1% : 8.85 [11:22:49]line НДС 12% : 106.26 [11:22:49]line Наличными: 1000.00 [11:22:49]line Безнал.: 0.00 [11:22:49]line Место: АЗС № 120 "Партнер Нефть" [11:22:49]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [11:22:49]line СНО: Общий режим [11:22:49]line Чек 63 21.06.2024 11:22 [11:22:49]line Смена: 355 ФФД: 1.0 [11:22:49]line ЗНМ: 0300000164 [11:22:49]line РНМ: 0000000000092785 [11:22:49]line Версия ККМ: 001 [11:22:49]line ФМ: 0000000000875093 [11:22:49]line ФД: 104140 [11:22:49]line ФПД: 184007474144018 [11:22:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T112251&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104140&fm=184007474144018&tin=02508201610067®Number=0000000000092785&sum=100000 [11:22:49]OFD Sender: Processing packet 104140 [packets to send 17, broken 16] [11:22:49]ProducePacketName [11:22:49]name=ofd_packets/00104140 [11:22:49]OFD Sender: To server: pG, [11:22:49]CommunicateWithHost lk.salyk.kg:30040 [11:22:49]ConnectInit lk.salyk.kg [11:22:49]written 0, free lines is 4095 [11:22:49]Connected sock=10 [11: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 1C 64 07 01 9F 8D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 3F 00 00 00 F4 03 04 00 8B 62 75 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 CC 96 01 00 35 04 06 00 A7 5A 94 21 E3 12 7E D1 AC 3E 96 9C AE FD [11: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 D4 06 47 00 37 AD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 CC 96 01 00 F4 03 04 00 0E 09 75 66 B6 04 01 00 00 E6 3B 95 F8 FD 33 AF BF [11:22:50]CommunicateWithHost err = 0 [11:22:50]CheckOFDResponse [11:22:50]1017 (14) - 77093643461234 [11:22:50]1041 (16) - 0000000000875093 [11:22:50]1040 (4) - 104140 [11:22:50]1012 (4) - 21.06.2024 05:01 [11:22:50]1206 (1) - 0 [11:22:50]OFD Sender: Remove packet 104140 [11:22:50]ProducePacketName [11:22:50]name=ofd_packets/00104140 [11:22:50]NVStorageDeleteData [11:22:50]Write to MH i2c: 01 00 00 08 20 28 [11:22:50]Write i2c OK [11:22:50]MH_I2C_Read... [11:22:50]Read from MH i2c: 01 [11:22:50]MH_I2C_Read... [11:22:50]Read from MH i2c: 01 07 00 [11:22:50]MH_I2C_Read... [11:22:50]Read from MH i2c: 01 07 00 08 20 00 00 00 00 00 E0 0C 1B [11:22:50]RasterBufferAndPrint [11:22:50]line [11:22:50]line [11:22:50]line [11:22:50]line [11:22:50]line [11:22:50]written 0, free lines is 3302 [11:22:50]MH_Cut [11:22:50]Write to MH i2c: D1 01 00 0F 20 01 01 [11:22:50]Write i2c OK [11:22:50]MH_I2C_Read... [11:22:50]Read from MH i2c: D1 [11:22:50]MH_I2C_Read... [11:22:50]Read from MH i2c: D1 01 00 [11:22:50]MH_I2C_Read... [11:22:50]Read from MH i2c: D1 01 00 0F 20 00 00 [11:22:50]Write to MH i2c: 01 00 00 10 20 30 [11:22:50]Write i2c OK [11:22:50]MH_I2C_Read... [11:22:50]OFD Sender: No OFD packet to send [11:22:50]*** Cut start [11:22:50]*** Partial cut [11:22:50]*** CUTSNS_PIN = 1 [11:22:50]*** CUTSNS_PIN = 0 [11:22:51]*** Brake cut motor [11:22:51]Read from MH i2c: 01 [11:22:51]MH_I2C_Read... [11:22:51]*** Stop cut motor [11:22:51]*** Cut end [11:22:51]Read from MH i2c: 01 07 00 [11:22:51]MH_I2C_Read... [11:22:51]Read from MH i2c: 01 07 00 10 20 00 00 00 00 00 FF 0F 45 [11:22:51]process_action close_receipt done [11:22:51]requested_data is exist [11:22:51]produce_requested_data [11:22:51]requested_item fm.sn is exist - process it [11:22:51]wFMCommunicate request_size=4 [11:22:51]MH_SAM_APDU [11:22:51]CAPDU: 80 11 00 00 [11:22:51]Write to MH i2c: E2 08 00 11 20 80 11 00 00 00 00 00 00 AB [11:22:51]Write i2c OK [11:22:51]MH_I2C_Read... [11:22:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:22:51]Read from MH i2c: E2 [11:22:51]MH_I2C_Read... [11:22:51]Read from MH i2c: E2 17 00 [11:22:51]MH_I2C_Read... [11:22:51]Read from MH i2c: E2 17 00 11 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 FE [11: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 [11:22:51]wFMCommunicate OK [11:22:51]requested_item fd.num is exist - process it [11:22:51]SAM_PROTO_GetFieldsCounters [11:22:51]wFMCommunicate request_size=4 [11:22:51]MH_SAM_APDU [11:22:51]CAPDU: 80 13 00 00 [11:22:51]Write to MH i2c: E2 08 00 12 20 80 13 00 00 00 00 00 00 AE [11:22:51]Write i2c OK [11:22:51]MH_I2C_Read... [11:22:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:22:51]Read from MH i2c: E2 [11:22:51]MH_I2C_Read... [11:22:51]Read from MH i2c: E2 62 00 [11:22:51]MH_I2C_Read... [11:22:51]Read from MH i2c: E2 62 00 12 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 CC 96 01 00 0E 04 04 00 63 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 59 [11: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 CC 96 01 00 0E 04 04 00 63 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 [11:22:51]wFMCommunicate OK [11:22:51]SAM_PROTO_GetFieldsCounters done [11:22:51]requested_item shift.num is exist - process it [11:22:51]requested_item shift.opened is exist - process it [11:22:51]req_shift_opened [11:22:51]FM_GetShiftState [11:22:51]SAM_PROTO_GetShiftState [11:22:51]wFMCommunicate request_size=4 [11:22:51]MH_SAM_APDU [11:22:51]CAPDU: 80 13 01 00 [11:22:51]Write to MH i2c: E2 08 00 13 20 80 13 01 00 00 00 00 00 B0 [11:22:51]Write i2c OK [11:22:51]MH_I2C_Read... [11:22:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:22:51]Read from MH i2c: E2 [11:22:51]MH_I2C_Read... [11:22:51]Read from MH i2c: E2 0E 00 [11:22:51]MH_I2C_Read... [11:22:51]Read from MH i2c: E2 0E 00 13 20 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 C3 [11:22:51]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [11:22:51]wFMCommunicate OK [11:22:51]SAM_PROTO_GetShiftState done [11:22:51]FM_GetShiftState done [11:22:51]req_shift_opened done [11:22:51]requested_item shift.open_date is exist - process it [11:22:51]req_shift_open_date [11:22:51]req_shift_open_date done [11:22:51]produce_requested_data done [11:22:51]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104140,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [11:22:51]process_action_free close_receipt [11:22:51]json_value_free [11:22:51]json_value_free done [11:22:51]process_json_proto returns [11:22:51]Send response to host [11:22:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104140,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [11:22:51]free response buf [11:22:51]execute_script done [11:22:51]execute_script returns [11:22:51]free content buf [11:22:51]Sock 9.Close socket [11:22:51]Sock 9.Thread stoped [11:22:55]OFD Sender: No OFD packet to send [11:23:00]OFD Sender: No OFD packet to send [11:23:05]OFD Sender: No OFD packet to send [11:23:10]OFD Sender: No OFD packet to send [11:23:15]OFD Sender: No OFD packet to send [11:23:20]OFD Sender: No OFD packet to send [11:23:25]OFD Sender: No OFD packet to send [11:23:30]OFD Sender: No OFD packet to send [11:23:35]OFD Sender: No OFD packet to send [11:23:40]OFD Sender: No OFD packet to send [11:23:45]OFD Sender: No OFD packet to send [11:23:50]OFD Sender: No OFD packet to send [11:23:55]OFD Sender: No OFD packet to send [11:24:00]OFD Sender: No OFD packet to send [11:24:05]OFD Sender: No OFD packet to send [11:24:10]OFD Sender: No OFD packet to send [11:24:15]OFD Sender: No OFD packet to send [11:24:20]OFD Sender: No OFD packet to send [11:24:25]OFD Sender: No OFD packet to send [11:24:30]OFD Sender: No OFD packet to send [11:24:35]OFD Sender: No OFD packet to send [11:24:40]OFD Sender: No OFD packet to send [11:24:45]OFD Sender: No OFD packet to send [11:24:50]OFD Sender: No OFD packet to send [11:24:55]OFD Sender: No OFD packet to send [11:25:00]OFD Sender: No OFD packet to send [11:25:05]OFD Sender: No OFD packet to send [11:25:06]accept exits with 7 [11:25:06]New connection [11:25:06]New thread 3066858852 created [11:25:06]Thread 3066715492 joined [11:25:06]Waiting for new connection... [11:25:06] Sock 7.Parse request [11:25:06]Sock 7.Check first char [11:25:06]Sock 7.First char is OK [11:25:06]request: POST /json_proto HTTP/1.0 [11:25:06]Method: POST [11:25:06]URL: /json_proto [11:25:06]Method is POST - this is cgi request [11:25:06]url: /json_proto [11:25:06]query_string will be loaded in cgi processing [11:25:06]execute_cgi json_proto POST (null) [11:25:06]execute_cgi path=json_proto method=POST [11:25:06]POST find Content-Length [11:25:06]Host: 172.17.38.133:8080 [11:25:06]Content-Length: 682 [11:25:06]Content-Type: application/json [11:25:06] [11:25:06]POST finish read [11:25:06]Found Content-Length = 682 [11:25:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673559", "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" ] } } [11:25:06]execute_script... [11:25: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)673559", "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" ] } } [11:25:06]POST & json_proto [11:25:06]process_json_proto [11:25:06]json parsed OK: [11:25:06]protocol is kg_v1.0 [11:25:06]action value=close_receipt [11:25:06]process_action close_receipt [11:25:06]cmd_close_receipt [11:25:06]MH_GetDate [11:25:06]Write to MH i2c: F0 00 00 14 20 23 [11:25:06]Write i2c OK [11:25:06]MH_I2C_Read... [11:25:06]Read from MH i2c: F0 [11:25:06]MH_I2C_Read... [11:25:06]Read from MH i2c: F0 09 00 [11:25:06]MH_I2C_Read... [11:25:06]Read from MH i2c: F0 09 00 14 20 00 16 63 75 66 BD 8F 7C 64 AC [11:25:06]GetLastDocTimeStamp 1718968971 [11:25:06]current date 1718969110 [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 15 20 80 13 01 00 00 00 00 00 B2 [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 15 20 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 C5 [11:25:06]RAPDU: 09 00 01 65 C8 74 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]opened in 1718929509 [11:25:06]opened+sec_in_day 1719015909 [11:25:06]quantity*price = 150064 [11:25:06]sum+1 = 150065 [11:25:06]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 СНО: Общий режим Чек 64 21.06.2024 11:25 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104141 ФПД: 181458369929446 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T112510&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104141&fm=181458369929446&tin=02508201610067®Number=0000000000092785&sum=150000 [11:25:07]StoreToDocumentArchive [11:25:07]shift 355 fd 104141 [11:25:07]save to /storage/0355/doc_00104141 [11:25:07]save last doc name /storage/0355/doc_00104141 to /storage/kkm_last_doc_name [11:25:07]save OK [11:25:07]Clear old archive folders... [11:25:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:25:07]tlvbuf is 010FDDA0 [11:25:07]SAM_PROTO_ClearQueue [11:25:07]wFMCommunicate request_size=4 [11:25:07]MH_SAM_APDU [11:25:07]CAPDU: 80 09 00 00 [11:25:07]Write to MH i2c: E2 08 00 22 20 80 09 00 00 00 00 00 00 B4 [11:25:07]Write i2c OK [11:25:07]MH_I2C_Read... [11:25:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:25:07]Read from MH i2c: E2 [11:25:07]MH_I2C_Read... [11:25:07]Read from MH i2c: E2 03 00 [11:25:07]MH_I2C_Read... [11:25:07]Read from MH i2c: E2 03 00 22 20 00 90 00 B6 [11:25:07]RAPDU: 90 00 [11:25:07]wFMCommunicate OK [11:25:07]SAM_PROTO_ClearQueue done [11:25:07]KKMCreateOFDPacket [11:25:07]OFDProtocolAddRootSTLVToBuf [11:25:07]FM_MakeSignedData [11:25:07]FM_MakeSignedData [11:25:07]SAM_PROTO_SignData [11:25:07]wFMCommunicate request_size=4 [11:25:07]MH_SAM_APDU [11:25:07]CAPDU: 80 0D 01 02 [11:25:07]Write to MH i2c: E2 08 00 23 20 80 0D 01 02 00 00 00 00 BC [11:25:07]Write i2c OK [11:25:07]MH_I2C_Read... [11:25:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:25:07]Read from MH i2c: E2 [11:25:07]MH_I2C_Read... [11:25:07]Read from MH i2c: E2 03 00 [11:25:07]MH_I2C_Read... [11:25:07]Read from MH i2c: E2 03 00 23 20 00 90 00 B7 [11:25:07]RAPDU: 90 00 [11:25:07]wFMCommunicate OK [11:25:07]wFMCommunicate request_size=255 [11:25:07]MH_SAM_APDU [11:25: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 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 40 00 00 00 F4 03 04 00 16 63 75 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 CD 96 01 00 35 04 06 00 A5 [11:25:07]Write to MH i2c: E2 02 01 24 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 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 40 00 00 00 F4 03 04 00 16 63 75 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 CD 96 01 00 35 04 06 00 A5 00 00 1B [11:25:08]Write i2c OK [11:25:08]MH_I2C_Read... [11:25:08]Read from MH i2c: E2 [11:25:08]MH_I2C_Read... [11:25:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:25:08]Read from MH i2c: E2 03 00 [11:25:08]MH_I2C_Read... [11:25:08]Read from MH i2c: E2 03 00 24 20 00 90 00 B8 [11:25:08]RAPDU: 90 00 [11:25:08]wFMCommunicate OK [11:25:08]wFMCommunicate request_size=10 [11:25:08]MH_SAM_APDU [11:25:08]CAPDU: 80 0D 02 02 05 09 11 AE 60 E6 [11:25:08]Write to MH i2c: E2 0D 00 25 20 80 0D 02 02 05 00 09 11 AE 60 E6 00 00 D7 [11:25:08]Write i2c OK [11:25:08]MH_I2C_Read... [11:25:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:25:08]Read from MH i2c: E2 [11:25:08]MH_I2C_Read... [11:25:08]Read from MH i2c: E2 03 00 [11:25:08]MH_I2C_Read... [11:25:08]Read from MH i2c: E2 03 00 25 20 00 90 00 B9 [11:25:08]RAPDU: 90 00 [11:25:08]wFMCommunicate OK [11:25:08]wFMCommunicate request_size=4 [11:25:08]MH_SAM_APDU [11:25:08]CAPDU: 80 0D 03 02 [11:25:08]Write to MH i2c: E2 08 00 26 20 80 0D 03 02 00 00 00 00 C1 [11:25:08]Write i2c OK [11:25:08]MH_I2C_Read... [11:25:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:25:08]Read from MH i2c: E2 [11:25:08]MH_I2C_Read... [11:25:08]Read from MH i2c: E2 0B 00 [11:25:08]MH_I2C_Read... [11:25:08]Read from MH i2c: E2 0B 00 26 20 00 84 CB 8A DB 37 08 67 35 90 00 51 [11:25:08]RAPDU: 84 CB 8A DB 37 08 67 35 90 00 [11:25:08]wFMCommunicate OK [11:25:08]SAM_PROTO_SignData done [11:25:08]FM_MakeSignedData done [11:25:08]CreateOFDProtocolMessage [11:25:08]wFMCommunicate request_size=4 [11:25:08]MH_SAM_APDU [11:25:08]CAPDU: 80 11 00 00 [11:25:08]Write to MH i2c: E2 08 00 27 20 80 11 00 00 00 00 00 00 C1 [11:25:08]Write i2c OK [11:25:08]MH_I2C_Read... [11:25:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:25:08]Read from MH i2c: E2 [11:25:08]MH_I2C_Read... [11:25:08]Read from MH i2c: E2 17 00 [11:25:08]MH_I2C_Read... [11:25:08]Read from MH i2c: E2 17 00 27 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 14 [11:25: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:25:08]wFMCommunicate OK [11:25:08]CreateOFDProtocolMessage done [11:25:08]OFDSenderStorePacket 104141 [11:25:08]StoreOFDPacket docnum=104141 [11:25: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 9A 47 07 01 5D 68 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 40 00 00 00 F4 03 04 00 16 63 75 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 CD 96 01 00 35 04 06 00 A5 09 11 AE 60 E6 84 CB 8A DB 37 08 67 35 [11:25:08]CheckFolder [11:25:08]dirname=/storage/ofd_packets [11:25:08]CheckFolder done [11:25:08]ProducePacketName [11:25:08]name=ofd_packets/00104141 [11:25:08]NVStorageSaveData ofd_packets/00104141 [11:25:08]File name is /storage/ofd_packets/00104141 [11:25:08]Write 301 bytes [11:25:08]NVStorageSaveData done [11:25:08]OFDSenderStorePacket done [11:25:08]KKMCreateOFDPacket done [11:25:08]NVStorageSaveData kkm_last_timestamp [11:25:08]File name is /storage/kkm_last_timestamp [11:25:08]Write 4 bytes [11:25:08]NVStorageSaveData done [11:25:08]ExternCall_PrintAddStr [11:25:08]wPrintStart [11:25:08]Write to MH i2c: 01 00 00 28 20 48 [11:25:08]Write i2c OK [11:25:08]MH_I2C_Read... [11:25:08]Read from MH i2c: 01 [11:25:08]MH_I2C_Read... [11:25:08]Read from MH i2c: 01 07 00 [11:25:08]MH_I2C_Read... [11:25:08]Read from MH i2c: 01 07 00 28 20 00 00 00 00 00 FF 0F 5D [11:25:08]RasterBufferAndPrint [11:25:08]line Счет N : (1)673559 [11:25:08]line ИНН: 02508201610067 [11:25:08]line Контрольно-Кассовый Чек [11:25:08]line ПРОДАЖА [11:25:08]line ТРК (МРК, ГНК) : 42 [11:25:08]line Товар: 2710124130 [11:25:08]line Аи-92-К-5 [11:25:08]line 22.600 * 66.40 [11:25:08]line = 1500.64 [11:25:08]line НДС 12% НСП 1% [11:25:08]line > о реализуемом товаре [11:25:08]line ОКРУГЛЕНИЕ: -0.64 [11:25:08]line ИТОГО: 1500.00 [11:25:08]line Внесено: 1500.00 [11:25:08]line СДАЧА: 0.00 [11:25:08]line НСП 1% : 13.28 [11:25:08]line НДС 12% : 159.36 [11:25:08]line Наличными: 1500.00 [11:25:08]line Безнал.: 0.00 [11:25:08]line Место: АЗС № 120 "Партнер Нефть" [11:25:08]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [11:25:08]line СНО: Общий режим [11:25:08]line Чек 64 21.06.2024 11:25 [11:25:08]line Смена: 355 ФФД: 1.0 [11:25:08]line ЗНМ: 0300000164 [11:25:08]line РНМ: 0000000000092785 [11:25:08]line Версия ККМ: 001 [11:25:08]line ФМ: 0000000000875093 [11:25:08]line ФД: 104141 [11:25:08]line ФПД: 181458369929446 [11:25:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T112510&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104141&fm=181458369929446&tin=02508201610067®Number=0000000000092785&sum=150000 [11:25:08]OFD Sender: Processing packet 104141 [packets to send 17, broken 16] [11:25:08]ProducePacketName [11:25:08]name=ofd_packets/00104141 [11:25:08]OFD Sender: To server: pG, [11:25:08]CommunicateWithHost lk.salyk.kg:30040 [11:25:08]ConnectInit lk.salyk.kg [11:25:08]written 0, free lines is 4095 [11:25:08]Connected sock=10 [11:25: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 9A 47 07 01 5D 68 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 40 00 00 00 F4 03 04 00 16 63 75 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 CD 96 01 00 35 04 06 00 A5 09 11 AE 60 E6 84 CB 8A DB 37 08 67 35 [11:25: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 11 99 47 00 0D 38 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 CD 96 01 00 F4 03 04 00 99 09 75 66 B6 04 01 00 00 E7 2C 48 8B E2 FD C8 55 [11:25:09]CommunicateWithHost err = 0 [11:25:09]CheckOFDResponse [11:25:09]1017 (14) - 77093643461234 [11:25:09]1041 (16) - 0000000000875093 [11:25:09]1040 (4) - 104141 [11:25:09]1012 (4) - 21.06.2024 05:03 [11:25:09]1206 (1) - 0 [11:25:09]OFD Sender: Remove packet 104141 [11:25:09]ProducePacketName [11:25:09]name=ofd_packets/00104141 [11:25:09]NVStorageDeleteData [11:25:09]Write to MH i2c: 01 00 00 53 20 73 [11:25:09]Write i2c OK [11:25:09]MH_I2C_Read... [11:25:09]Read from MH i2c: 01 [11:25:09]MH_I2C_Read... [11:25:09]Read from MH i2c: 01 07 00 [11:25:09]MH_I2C_Read... [11:25:09]Read from MH i2c: 01 07 00 53 20 00 00 00 00 00 DC 0C 62 [11:25:09]RasterBufferAndPrint [11:25:09]line [11:25:09]line [11:25:09]line [11:25:09]line [11:25:09]line [11:25:09]written 0, free lines is 3298 [11:25:09]MH_Cut [11:25:09]Write to MH i2c: D1 01 00 5A 20 01 4C [11:25:09]Write i2c OK [11:25:09]MH_I2C_Read... [11:25:09]Read from MH i2c: D1 [11:25:09]MH_I2C_Read... [11:25:09]Read from MH i2c: D1 01 00 [11:25:09]MH_I2C_Read... [11:25:09]Read from MH i2c: D1 01 00 5A 20 00 4B [11:25:09]Write to MH i2c: 01 00 00 5B 20 7B [11:25:09]Write i2c OK [11:25:09]MH_I2C_Read... [11:25:09]OFD Sender: No OFD packet to send [11:25:09]*** Cut start [11:25:09]*** Partial cut [11:25:09]*** CUTSNS_PIN = 1 [11:25:09]*** CUTSNS_PIN = 0 [11:25:10]*** Brake cut motor [11:25:10]Read from MH i2c: 01 [11:25:10]MH_I2C_Read... [11:25:10]*** Stop cut motor [11:25:10]*** Cut end [11:25:10]Read from MH i2c: 01 07 00 [11:25:10]MH_I2C_Read... [11:25:10]Read from MH i2c: 01 07 00 5B 20 00 00 00 00 00 FF 0F 90 [11:25:10]process_action close_receipt done [11:25:10]requested_data is exist [11:25:10]produce_requested_data [11:25:10]requested_item fm.sn is exist - process it [11:25:10]wFMCommunicate request_size=4 [11:25:10]MH_SAM_APDU [11:25:10]CAPDU: 80 11 00 00 [11:25:10]Write to MH i2c: E2 08 00 5C 20 80 11 00 00 00 00 00 00 F6 [11:25:10]Write i2c OK [11:25:10]MH_I2C_Read... [11:25:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:25:10]Read from MH i2c: E2 [11:25:10]MH_I2C_Read... [11:25:10]Read from MH i2c: E2 17 00 [11:25:10]MH_I2C_Read... [11:25:10]Read from MH i2c: E2 17 00 5C 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 49 [11: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 [11:25:10]wFMCommunicate OK [11:25:10]requested_item fd.num is exist - process it [11:25:10]SAM_PROTO_GetFieldsCounters [11:25:10]wFMCommunicate request_size=4 [11:25:10]MH_SAM_APDU [11:25:10]CAPDU: 80 13 00 00 [11:25:10]Write to MH i2c: E2 08 00 5D 20 80 13 00 00 00 00 00 00 F9 [11:25:10]Write i2c OK [11:25:10]MH_I2C_Read... [11:25:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:25:10]Read from MH i2c: E2 [11:25:10]MH_I2C_Read... [11:25:10]Read from MH i2c: E2 62 00 [11:25:10]MH_I2C_Read... [11:25:10]Read from MH i2c: E2 62 00 5D 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 CD 96 01 00 0E 04 04 00 63 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 A8 [11:25: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 CD 96 01 00 0E 04 04 00 63 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 [11:25:10]wFMCommunicate OK [11:25:10]SAM_PROTO_GetFieldsCounters done [11:25:10]requested_item shift.num is exist - process it [11:25:10]requested_item shift.opened is exist - process it [11:25:10]req_shift_opened [11:25:10]FM_GetShiftState [11:25:10]SAM_PROTO_GetShiftState [11:25:10]wFMCommunicate request_size=4 [11:25:10]MH_SAM_APDU [11:25:10]CAPDU: 80 13 01 00 [11:25:10]Write to MH i2c: E2 08 00 5E 20 80 13 01 00 00 00 00 00 FB [11:25:10]Write i2c OK [11:25:10]MH_I2C_Read... [11:25:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:25:10]Read from MH i2c: E2 [11:25:10]MH_I2C_Read... [11:25:10]Read from MH i2c: E2 0E 00 [11:25:10]MH_I2C_Read... [11:25:10]Read from MH i2c: E2 0E 00 5E 20 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 0E [11:25:10]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [11:25:10]wFMCommunicate OK [11:25:10]SAM_PROTO_GetShiftState done [11:25:10]FM_GetShiftState done [11:25:10]req_shift_opened done [11:25:10]requested_item shift.open_date is exist - process it [11:25:10]req_shift_open_date [11:25:10]req_shift_open_date done [11:25:10]produce_requested_data done [11:25:10]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104141,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [11:25:10]process_action_free close_receipt [11:25:10]json_value_free [11:25:10]json_value_free done [11:25:10]process_json_proto returns [11:25:10]Send response to host [11:25:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104141,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [11:25:10]free response buf [11:25:10]execute_script done [11:25:10]execute_script returns [11:25:10]free content buf [11:25:10]Sock 7.Close socket [11:25:10]Sock 7.Thread stoped [11:25:14]OFD Sender: No OFD packet to send [11:25:19]OFD Sender: No OFD packet to send [11:25:24]OFD Sender: No OFD packet to send [11:25:29]OFD Sender: No OFD packet to send [11:25:34]OFD Sender: No OFD packet to send [11:25:39]OFD Sender: No OFD packet to send [11:25:44]OFD Sender: No OFD packet to send [11:25:49]OFD Sender: No OFD packet to send [11:25:54]OFD Sender: No OFD packet to send [11:25:59]OFD Sender: No OFD packet to send [11:26:04]OFD Sender: No OFD packet to send [11:26:09]OFD Sender: No OFD packet to send [11:26:14]OFD Sender: No OFD packet to send [11:26:19]OFD Sender: No OFD packet to send [11:26:24]OFD Sender: No OFD packet to send [11:26:29]OFD Sender: No OFD packet to send [11:26:34]OFD Sender: No OFD packet to send [11:26:39]OFD Sender: No OFD packet to send [11:26:44]OFD Sender: No OFD packet to send [11:26:49]OFD Sender: No OFD packet to send [11:26:54]OFD Sender: No OFD packet to send [11:26:59]OFD Sender: No OFD packet to send [11:27:04]OFD Sender: No OFD packet to send [11:27:09]OFD Sender: No OFD packet to send [11:27:14]OFD Sender: No OFD packet to send [11:27:19]OFD Sender: No OFD packet to send [11:27:24]OFD Sender: No OFD packet to send [11:27:29]OFD Sender: No OFD packet to send [11:27:34]OFD Sender: No OFD packet to send [11:27:39]OFD Sender: No OFD packet to send [11:27:44]OFD Sender: No OFD packet to send [11:27:49]OFD Sender: No OFD packet to send [11:27:54]OFD Sender: No OFD packet to send [11:27:59]OFD Sender: No OFD packet to send [11:28:04]OFD Sender: No OFD packet to send [11:28:09]OFD Sender: No OFD packet to send [11:28:10]accept exits with 9 [11:28:10]New connection [11:28:10]New thread 3066715492 created [11:28:10]Thread 3066858852 joined [11:28:10]Waiting for new connection... [11:28:10] Sock 9.Parse request [11:28:10]Sock 9.Check first char [11:28:10]Sock 9.First char is OK [11:28:10]request: POST /json_proto HTTP/1.0 [11:28:10]Method: POST [11:28:10]URL: /json_proto [11:28:10]Method is POST - this is cgi request [11:28:10]url: /json_proto [11:28:10]query_string will be loaded in cgi processing [11:28:10]execute_cgi json_proto POST (null) [11:28:10]execute_cgi path=json_proto method=POST [11:28:10]POST find Content-Length [11:28:10]Host: 172.17.38.133:8080 [11:28:10]Content-Length: 1201 [11:28:10]Content-Type: application/json [11:28:10] [11:28:10]POST finish read [11:28:10]Found Content-Length = 1201 [11:28: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 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)673560\u000A21.06.2024 11:05\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 27.430 x 72.90\u000A\u0418\u0422\u041E\u0413: 1999.65\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\u000A103800\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:28:10]execute_script... [11:28: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 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)673560\u000A21.06.2024 11:05\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 27.430 x 72.90\u000A\u0418\u0422\u041E\u0413: 1999.65\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\u000A103800\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:28:10]POST & json_proto [11:28:10]process_json_proto [11:28:10]json parsed OK: [11:28:10]protocol is kg_v1.0 [11:28:10]action value=print_text [11:28:10]process_action print_text [11:28:10]cmd_print_text [11:28:10]ExternCall_PrintAddStr [11:28:10]wPrintStart [11:28:10]Write to MH i2c: 01 00 00 5F 20 7F [11:28:10]Write i2c OK [11:28:10]MH_I2C_Read... [11:28:10]Read from MH i2c: 01 [11:28:10]MH_I2C_Read... [11:28:10]Read from MH i2c: 01 07 00 [11:28:10]MH_I2C_Read... [11:28:10]Read from MH i2c: 01 07 00 5F 20 00 00 00 00 00 FF 0F 94 [11:28:10]RasterBufferAndPrint [11:28:10]line *****ТОВАРНЫЙ ЧЕК***** [11:28:10]line АЗС 120 [11:28:10]line Партнер нефть [11:28:10]line 02508201610067 [11:28:10]line Кассир : Асанбаев Н. [11:28:10]line Счет N : (1)673560 [11:28:10]line 21.06.2024 11:05 [11:28:10]line ПРОДАЖА [11:28:10]line ТРК (МРК, ГНК): 21 [11:28:10]line Вид ГСМ : 2710194210 [11:28:10]line ДТ(л)-К-5 [11:28:10]line 27.430 x 72.90 [11:28:10]line ИТОГ: 1999.65 [11:28:10]line Тип оплаты: Талоны: Топливная Карта [11:28:10]line 103800 [11:28:10]line ______________________ [11:28:10]line (подпись) [11:28:10]written 0, free lines is 4095 [11:28:10]Write to MH i2c: 01 00 00 73 20 93 [11:28:10]Write i2c OK [11:28:10]MH_I2C_Read... [11:28:10]Read from MH i2c: 01 [11:28:10]MH_I2C_Read... [11:28:10]Read from MH i2c: 01 07 00 [11:28:10]MH_I2C_Read... [11:28:10]Read from MH i2c: 01 07 00 73 20 00 00 00 00 00 10 0E B8 [11:28:10]RasterBufferAndPrint [11:28:10]line [11:28:10]line [11:28:10]line [11:28:10]line [11:28:10]line [11:28:10]written 0, free lines is 3601 [11:28:10]MH_Cut [11:28:10]Write to MH i2c: D1 01 00 7A 20 01 6C [11:28:10]Write i2c OK [11:28:10]MH_I2C_Read... [11:28:10]Read from MH i2c: D1 [11:28:10]MH_I2C_Read... [11:28:10]Read from MH i2c: D1 01 00 [11:28:10]MH_I2C_Read... [11:28:10]Read from MH i2c: D1 01 00 7A 20 00 6B [11:28:10]Write to MH i2c: 01 00 00 7B 20 9B [11:28:10]Write i2c OK [11:28:10]MH_I2C_Read... [11:28:11]*** Cut start [11:28:11]*** Partial cut [11:28:11]*** CUTSNS_PIN = 1 [11:28:11]*** CUTSNS_PIN = 0 [11:28:11]*** Brake cut motor [11:28:11]Read from MH i2c: 01 [11:28:11]MH_I2C_Read... [11:28:11]*** Stop cut motor [11:28:11]*** Cut end [11:28:11]Read from MH i2c: 01 07 00 [11:28:11]MH_I2C_Read... [11:28:11]Read from MH i2c: 01 07 00 7B 20 00 00 00 00 00 FF 0F B0 [11:28:11]process_action print_text done [11:28:11]requested_data is exist [11:28:11]produce_requested_data [11:28:11]requested_item fm.sn is exist - process it [11:28:11]wFMCommunicate request_size=4 [11:28:11]MH_SAM_APDU [11:28:11]CAPDU: 80 11 00 00 [11:28:11]Write to MH i2c: E2 08 00 7C 20 80 11 00 00 00 00 00 00 16 [11:28:11]Write i2c OK [11:28:11]MH_I2C_Read... [11:28:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:28:11]Read from MH i2c: E2 [11:28:11]MH_I2C_Read... [11:28:11]Read from MH i2c: E2 17 00 [11:28:11]MH_I2C_Read... [11:28:11]Read from MH i2c: E2 17 00 7C 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 69 [11:28: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:28:11]wFMCommunicate OK [11:28:11]requested_item fd.num is exist - process it [11:28:11]SAM_PROTO_GetFieldsCounters [11:28:11]wFMCommunicate request_size=4 [11:28:11]MH_SAM_APDU [11:28:11]CAPDU: 80 13 00 00 [11:28:11]Write to MH i2c: E2 08 00 7D 20 80 13 00 00 00 00 00 00 19 [11:28:11]Write i2c OK [11:28:11]MH_I2C_Read... [11:28:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:28:11]Read from MH i2c: E2 [11:28:11]MH_I2C_Read... [11:28:11]Read from MH i2c: E2 62 00 [11:28:11]MH_I2C_Read... [11:28:11]Read from MH i2c: E2 62 00 7D 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 CD 96 01 00 0E 04 04 00 63 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 C8 [11:28: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 CD 96 01 00 0E 04 04 00 63 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 [11:28:11]wFMCommunicate OK [11:28:11]SAM_PROTO_GetFieldsCounters done [11:28:11]requested_item shift.num is exist - process it [11:28:11]requested_item shift.opened is exist - process it [11:28:11]req_shift_opened [11:28:11]FM_GetShiftState [11:28:11]SAM_PROTO_GetShiftState [11:28:11]wFMCommunicate request_size=4 [11:28:11]MH_SAM_APDU [11:28:11]CAPDU: 80 13 01 00 [11:28:11]Write to MH i2c: E2 08 00 7E 20 80 13 01 00 00 00 00 00 1B [11:28:11]Write i2c OK [11:28:11]MH_I2C_Read... [11:28:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:28:12]Read from MH i2c: E2 [11:28:12]MH_I2C_Read... [11:28:12]Read from MH i2c: E2 0E 00 [11:28:12]MH_I2C_Read... [11:28:12]Read from MH i2c: E2 0E 00 7E 20 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 2E [11:28:12]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [11:28:12]wFMCommunicate OK [11:28:12]SAM_PROTO_GetShiftState done [11:28:12]FM_GetShiftState done [11:28:12]req_shift_opened done [11:28:12]requested_item shift.open_date is exist - process it [11:28:12]req_shift_open_date [11:28:12]req_shift_open_date done [11:28:12]produce_requested_data done [11:28:12]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104141,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [11:28:12]process_action_free print_text [11:28:12]json_value_free [11:28:12]json_value_free done [11:28:12]process_json_proto returns [11:28:12]Send response to host [11:28:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104141,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [11:28:12]free response buf [11:28:12]execute_script done [11:28:12]execute_script returns [11:28:12]free content buf [11:28:12]Sock 9.Close socket [11:28:12]Sock 9.Thread stoped [11:28:14]OFD Sender: No OFD packet to send [11:28:19]OFD Sender: No OFD packet to send [11:28:24]OFD Sender: No OFD packet to send [11:28:29]OFD Sender: No OFD packet to send [11:28:34]OFD Sender: No OFD packet to send [11:28:39]OFD Sender: No OFD packet to send [11:28:44]OFD Sender: No OFD packet to send [11:28:49]OFD Sender: No OFD packet to send [11:28:54]OFD Sender: No OFD packet to send [11:28:59]OFD Sender: No OFD packet to send [11:29:04]OFD Sender: No OFD packet to send [11:29:09]OFD Sender: No OFD packet to send [11:29:14]OFD Sender: No OFD packet to send [11:29:19]OFD Sender: No OFD packet to send [11:29:24]OFD Sender: No OFD packet to send [11:29:29]OFD Sender: No OFD packet to send [11:29:34]OFD Sender: No OFD packet to send [11:29:39]OFD Sender: No OFD packet to send [11:29:44]OFD Sender: No OFD packet to send [11:29:49]OFD Sender: No OFD packet to send [11:29:54]OFD Sender: No OFD packet to send [11:29:59]OFD Sender: No OFD packet to send [11:30:04]OFD Sender: No OFD packet to send [11:30:09]OFD Sender: No OFD packet to send [11:30:14]OFD Sender: No OFD packet to send [11:30:19]OFD Sender: No OFD packet to send [11:30:24]OFD Sender: No OFD packet to send [11:30:29]OFD Sender: No OFD packet to send [11:30:34]OFD Sender: No OFD packet to send [11:30:39]OFD Sender: No OFD packet to send [11:30:44]OFD Sender: No OFD packet to send [11:30:49]OFD Sender: No OFD packet to send [11:30:54]OFD Sender: No OFD packet to send [11:30:59]OFD Sender: No OFD packet to send [11:31:04]OFD Sender: No OFD packet to send [11:31:09]OFD Sender: No OFD packet to send [11:31:14]OFD Sender: No OFD packet to send [11:31:19]OFD Sender: No OFD packet to send [11:31:24]OFD Sender: No OFD packet to send [11:31:26]accept exits with 7 [11:31:26]New connection [11:31:26]New thread 3066858852 created [11:31:26]Thread 3066715492 joined [11:31:26]Waiting for new connection... [11:31:26] Sock 7.Parse request [11:31:26]Sock 7.Check first char [11:31:26]Sock 7.First char is OK [11:31:26]request: POST /json_proto HTTP/1.0 [11:31:26]Method: POST [11:31:26]URL: /json_proto [11:31:26]Method is POST - this is cgi request [11:31:26]url: /json_proto [11:31:26]query_string will be loaded in cgi processing [11:31:26]execute_cgi json_proto POST (null) [11:31:26]execute_cgi path=json_proto method=POST [11:31:26]POST find Content-Length [11:31:26]Host: 172.17.38.133:8080 [11:31:26]Content-Length: 687 [11:31:26]Content-Type: application/json [11:31:26] [11:31:26]POST finish read [11:31:26]Found Content-Length = 687 [11:31:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673561", "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" : 23.230, "sum" : 1693.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 1693.00, "payments": [ { "type": 0, "sum" : 1693.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:31:26]execute_script... [11:31:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673561", "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" : 23.230, "sum" : 1693.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 1693.00, "payments": [ { "type": 0, "sum" : 1693.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:31:26]POST & json_proto [11:31:26]process_json_proto [11:31:26]json parsed OK: [11:31:26]protocol is kg_v1.0 [11:31:26]action value=close_receipt [11:31:26]process_action close_receipt [11:31:26]cmd_close_receipt [11:31:26]MH_GetDate [11:31:26]Write to MH i2c: F0 00 00 7F 20 8E [11:31:26]Write i2c OK [11:31:26]MH_I2C_Read... [11:31:26]Read from MH i2c: F0 [11:31:26]MH_I2C_Read... [11:31:26]Read from MH i2c: F0 09 00 [11:31:26]MH_I2C_Read... [11:31:26]Read from MH i2c: F0 09 00 7F 20 00 92 64 75 66 BD 8F 7C 64 94 [11:31:26]GetLastDocTimeStamp 1718969110 [11:31:26]current date 1718969490 [11:31:26]FM_GetShiftState [11:31:26]SAM_PROTO_GetShiftState [11:31:26]wFMCommunicate request_size=4 [11:31:26]MH_SAM_APDU [11:31:26]CAPDU: 80 13 01 00 [11:31:26]Write to MH i2c: E2 08 00 80 20 80 13 01 00 00 00 00 00 1D [11:31:26]Write i2c OK [11:31:26]MH_I2C_Read... [11:31:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:31:26]Read from MH i2c: E2 [11:31:26]MH_I2C_Read... [11:31:26]Read from MH i2c: E2 0E 00 [11:31:26]MH_I2C_Read... [11:31:26]Read from MH i2c: E2 0E 00 80 20 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 30 [11:31:26]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [11:31:26]wFMCommunicate OK [11:31:26]SAM_PROTO_GetShiftState done [11:31:26]FM_GetShiftState done [11:31:26]opened in 1718929509 [11:31:26]opened+sec_in_day 1719015909 [11:31:26]quantity*price = 169346 [11:31:26]sum+1 = 169348 [11:31:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 1693.00 Внесено: 5000.00 СДАЧА: 3307.00 НСП 1% : 14.99 НДС 12% : 179.84 Наличными: 1693.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 65 21.06.2024 11:31 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104142 ФПД: 123819280390387 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T113130&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104142&fm=123819280390387&tin=02508201610067®Number=0000000000092785&sum=169300 [11:31:27]StoreToDocumentArchive [11:31:27]shift 355 fd 104142 [11:31:27]save to /storage/0355/doc_00104142 [11:31:27]save last doc name /storage/0355/doc_00104142 to /storage/kkm_last_doc_name [11:31:27]save OK [11:31:27]Clear old archive folders... [11:31:27]ProcessDocumentItem done err = 0, tmpTLVsize=252 [11:31:27]tlvbuf is 01174940 [11:31:27]SAM_PROTO_ClearQueue [11:31:27]wFMCommunicate request_size=4 [11:31:27]MH_SAM_APDU [11:31:27]CAPDU: 80 09 00 00 [11:31:27]Write to MH i2c: E2 08 00 8D 20 80 09 00 00 00 00 00 00 1F [11:31:27]Write i2c OK [11:31:27]MH_I2C_Read... [11:31:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:31:27]Read from MH i2c: E2 [11:31:27]MH_I2C_Read... [11:31:27]Read from MH i2c: E2 03 00 [11:31:27]MH_I2C_Read... [11:31:27]Read from MH i2c: E2 03 00 8D 20 00 90 00 21 [11:31:27]RAPDU: 90 00 [11:31:27]wFMCommunicate OK [11:31:27]SAM_PROTO_ClearQueue done [11:31:27]KKMCreateOFDPacket [11:31:27]OFDProtocolAddRootSTLVToBuf [11:31:27]FM_MakeSignedData [11:31:27]FM_MakeSignedData [11:31:27]SAM_PROTO_SignData [11:31:27]wFMCommunicate request_size=4 [11:31:27]MH_SAM_APDU [11:31:27]CAPDU: 80 0D 01 02 [11:31:27]Write to MH i2c: E2 08 00 8E 20 80 0D 01 02 00 00 00 00 27 [11:31:27]Write i2c OK [11:31:27]MH_I2C_Read... [11:31:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:31:27]Read from MH i2c: E2 [11:31:27]MH_I2C_Read... [11:31:27]Read from MH i2c: E2 03 00 [11:31:27]MH_I2C_Read... [11:31:27]Read from MH i2c: E2 03 00 8E 20 00 90 00 22 [11:31:27]RAPDU: 90 00 [11:31:27]wFMCommunicate OK [11:31:27]wFMCommunicate request_size=255 [11:31:27]MH_SAM_APDU [11:31: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 BE 5A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 83 95 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 95 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DB 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 46 00 00 00 00 07 04 06 00 54 95 02 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 92 64 75 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 CE 96 01 00 35 04 06 00 [11:31:27]Write to MH i2c: E2 02 01 8F 20 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 BE 5A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 83 95 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 95 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DB 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 46 00 00 00 00 07 04 06 00 54 95 02 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 92 64 75 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 CE 96 01 00 35 04 06 00 00 00 51 [11:31:27]Write i2c OK [11:31:27]MH_I2C_Read... [11:31:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:31:27]Read from MH i2c: E2 [11:31:27]MH_I2C_Read... [11:31:27]Read from MH i2c: E2 03 00 [11:31:27]MH_I2C_Read... [11:31:27]Read from MH i2c: E2 03 00 8F 20 00 90 00 23 [11:31:27]RAPDU: 90 00 [11:31:27]wFMCommunicate OK [11:31:27]wFMCommunicate request_size=11 [11:31:27]MH_SAM_APDU [11:31:27]CAPDU: 80 0D 02 02 06 70 9C EC 39 58 F3 [11:31:27]Write to MH i2c: E2 0E 00 90 20 80 0D 02 02 06 00 70 9C EC 39 58 F3 00 00 B2 [11:31:27]Write i2c OK [11:31:27]MH_I2C_Read... [11:31:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:31:27]Read from MH i2c: E2 [11:31:27]MH_I2C_Read... [11:31:27]Read from MH i2c: E2 03 00 [11:31:27]MH_I2C_Read... [11:31:27]Read from MH i2c: E2 03 00 90 20 00 90 00 24 [11:31:27]RAPDU: 90 00 [11:31:27]wFMCommunicate OK [11:31:27]wFMCommunicate request_size=4 [11:31:27]MH_SAM_APDU [11:31:27]CAPDU: 80 0D 03 02 [11:31:27]Write to MH i2c: E2 08 00 91 20 80 0D 03 02 00 00 00 00 2C [11:31:27]Write i2c OK [11:31:27]MH_I2C_Read... [11:31:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:31:27]Read from MH i2c: E2 [11:31:27]MH_I2C_Read... [11:31:27]Read from MH i2c: E2 0B 00 [11:31:27]MH_I2C_Read... [11:31:27]Read from MH i2c: E2 0B 00 91 20 00 65 50 27 C8 6D DD 94 1D 90 00 CC [11:31:27]RAPDU: 65 50 27 C8 6D DD 94 1D 90 00 [11:31:27]wFMCommunicate OK [11:31:27]SAM_PROTO_SignData done [11:31:27]FM_MakeSignedData done [11:31:27]CreateOFDProtocolMessage [11:31:27]wFMCommunicate request_size=4 [11:31:27]MH_SAM_APDU [11:31:27]CAPDU: 80 11 00 00 [11:31:27]Write to MH i2c: E2 08 00 92 20 80 11 00 00 00 00 00 00 2C [11:31:27]Write i2c OK [11:31:27]MH_I2C_Read... [11:31:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:31:27]Read from MH i2c: E2 [11:31:27]MH_I2C_Read... [11:31:27]Read from MH i2c: E2 17 00 [11:31:27]MH_I2C_Read... [11:31:27]Read from MH i2c: E2 17 00 92 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 7F [11:31: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:31:27]wFMCommunicate OK [11:31:27]CreateOFDProtocolMessage done [11:31:27]OFDSenderStorePacket 104142 [11:31:27]StoreOFDPacket docnum=104142 [11:31: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 36 9B 08 01 AF 7B 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 BE 5A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 83 95 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 95 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DB 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 46 00 00 00 00 07 04 06 00 54 95 02 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 92 64 75 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 CE 96 01 00 35 04 06 00 70 9C EC 39 58 F3 65 50 27 C8 6D DD 94 1D [11:31:27]CheckFolder [11:31:27]dirname=/storage/ofd_packets [11:31:27]CheckFolder done [11:31:27]ProducePacketName [11:31:27]name=ofd_packets/00104142 [11:31:27]NVStorageSaveData ofd_packets/00104142 [11:31:27]File name is /storage/ofd_packets/00104142 [11:31:27]Write 302 bytes [11:31:27]NVStorageSaveData done [11:31:27]OFDSenderStorePacket done [11:31:27]KKMCreateOFDPacket done [11:31:27]NVStorageSaveData kkm_last_timestamp [11:31:27]File name is /storage/kkm_last_timestamp [11:31:27]Write 4 bytes [11:31:27]NVStorageSaveData done [11:31:27]ExternCall_PrintAddStr [11:31:27]wPrintStart [11:31:27]Write to MH i2c: 01 00 00 93 20 B3 [11:31:27]Write i2c OK [11:31:27]MH_I2C_Read... [11:31:27]Read from MH i2c: 01 [11:31:27]MH_I2C_Read... [11:31:27]Read from MH i2c: 01 07 00 [11:31:27]MH_I2C_Read... [11:31:27]Read from MH i2c: 01 07 00 93 20 00 00 00 00 00 FF 0F C8 [11:31:27]RasterBufferAndPrint [11:31:27]line Счет N : (1)673561 [11:31:27]line ИНН: 02508201610067 [11:31:27]line Контрольно-Кассовый Чек [11:31:27]line ПРОДАЖА [11:31:27]line ТРК (МРК, ГНК) : 21 [11:31:27]line Товар: 2710194210 [11:31:27]line ДТ(л)-К-5 [11:31:27]line 23.230 * 72.90 [11:31:27]line = 1693.47 [11:31:27]line НДС 12% НСП 1% [11:31:27]line > о реализуемом товаре [11:31:27]line ОКРУГЛЕНИЕ: -0.47 [11:31:27]line ИТОГО: 1693.00 [11:31:27]line Внесено: 5000.00 [11:31:27]line СДАЧА: 3307.00 [11:31:27]line НСП 1% : 14.99 [11:31:27]line НДС 12% : 179.84 [11:31:27]line Наличными: 1693.00 [11:31:27]line Безнал.: 0.00 [11:31:27]line Место: АЗС № 120 "Партнер Нефть" [11:31:27]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [11:31:27]line СНО: Общий режим [11:31:27]line Чек 65 21.06.2024 11:31 [11:31:27]line Смена: 355 ФФД: 1.0 [11:31:27]line ЗНМ: 0300000164 [11:31:27]line РНМ: 0000000000092785 [11:31:27]line Версия ККМ: 001 [11:31:27]line ФМ: 0000000000875093 [11:31:27]line ФД: 104142 [11:31:27]line ФПД: 123819280390387 [11:31:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T113130&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104142&fm=123819280390387&tin=02508201610067®Number=0000000000092785&sum=169300 [11:31:28]OFD Sender: Processing packet 104142 [packets to send 17, broken 16] [11:31:28]ProducePacketName [11:31:28]name=ofd_packets/00104142 [11:31:28]OFD Sender: To server: pG, [11:31:28]CommunicateWithHost lk.salyk.kg:30040 [11:31:28]ConnectInit lk.salyk.kg [11:31:28]written 0, free lines is 4095 [11:31:28]Connected sock=10 [11:31: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 10 01 00 00 36 9B 08 01 AF 7B 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 BE 5A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 83 95 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 95 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DB 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 46 00 00 00 00 07 04 06 00 54 95 02 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 92 64 75 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 CE 96 01 00 35 04 06 00 70 9C EC 39 58 F3 65 50 27 C8 6D DD 94 1D [11:31: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 F3 AC 47 00 68 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 CE 96 01 00 F4 03 04 00 14 0B 75 66 B6 04 01 00 00 52 74 93 1F 62 C7 79 FE [11:31:28]CommunicateWithHost err = 0 [11:31:28]CheckOFDResponse [11:31:28]1017 (14) - 77093643461234 [11:31:28]1041 (16) - 0000000000875093 [11:31:28]1040 (4) - 104142 [11:31:28]1012 (4) - 21.06.2024 05:09 [11:31:28]1206 (1) - 0 [11:31:28]OFD Sender: Remove packet 104142 [11:31:28]ProducePacketName [11:31:28]name=ofd_packets/00104142 [11:31:28]NVStorageDeleteData [11:31:28]Write to MH i2c: 01 00 00 BE 20 DE [11:31:28]Write i2c OK [11:31:28]MH_I2C_Read... [11:31:28]Read from MH i2c: 01 [11:31:28]MH_I2C_Read... [11:31:28]Read from MH i2c: 01 07 00 [11:31:28]MH_I2C_Read... [11:31:28]Read from MH i2c: 01 07 00 BE 20 00 00 00 00 00 EC 0C DD [11:31:28]RasterBufferAndPrint [11:31:28]line [11:31:28]line [11:31:28]line [11:31:28]line [11:31:28]line [11:31:28]written 0, free lines is 3315 [11:31:28]MH_Cut [11:31:28]Write to MH i2c: D1 01 00 C5 20 01 B7 [11:31:28]Write i2c OK [11:31:28]MH_I2C_Read... [11:31:28]Read from MH i2c: D1 [11:31:28]MH_I2C_Read... [11:31:28]Read from MH i2c: D1 01 00 [11:31:28]MH_I2C_Read... [11:31:28]Read from MH i2c: D1 01 00 C5 20 00 B6 [11:31:28]Write to MH i2c: 01 00 00 C6 20 E6 [11:31:28]Write i2c OK [11:31:28]MH_I2C_Read... [11:31:29]OFD Sender: No OFD packet to send [11:31:29]*** Cut start [11:31:29]*** Partial cut [11:31:29]*** CUTSNS_PIN = 1 [11:31:29]*** CUTSNS_PIN = 0 [11:31:29]*** Brake cut motor [11:31:29]Read from MH i2c: 01 [11:31:29]MH_I2C_Read... [11:31:29]*** Stop cut motor [11:31:29]*** Cut end [11:31:29]Read from MH i2c: 01 07 00 [11:31:29]MH_I2C_Read... [11:31:29]Read from MH i2c: 01 07 00 C6 20 00 00 00 00 00 FF 0F FB [11:31:29]process_action close_receipt done [11:31:29]requested_data is exist [11:31:29]produce_requested_data [11:31:29]requested_item fm.sn is exist - process it [11:31:29]wFMCommunicate request_size=4 [11:31:29]MH_SAM_APDU [11:31:29]CAPDU: 80 11 00 00 [11:31:29]Write to MH i2c: E2 08 00 C7 20 80 11 00 00 00 00 00 00 61 [11:31:29]Write i2c OK [11:31:29]MH_I2C_Read... [11:31:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:31:30]Read from MH i2c: E2 [11:31:30]MH_I2C_Read... [11:31:30]Read from MH i2c: E2 17 00 [11:31:30]MH_I2C_Read... [11:31:30]Read from MH i2c: E2 17 00 C7 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 B4 [11:31:30]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:30]wFMCommunicate OK [11:31:30]requested_item fd.num is exist - process it [11:31:30]SAM_PROTO_GetFieldsCounters [11:31:30]wFMCommunicate request_size=4 [11:31:30]MH_SAM_APDU [11:31:30]CAPDU: 80 13 00 00 [11:31:30]Write to MH i2c: E2 08 00 C8 20 80 13 00 00 00 00 00 00 64 [11:31:30]Write i2c OK [11:31:30]MH_I2C_Read... [11:31:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:31:30]Read from MH i2c: E2 [11:31:30]MH_I2C_Read... [11:31:30]Read from MH i2c: E2 62 00 [11:31:30]MH_I2C_Read... [11:31:30]Read from MH i2c: E2 62 00 C8 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 CE 96 01 00 0E 04 04 00 63 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 17 [11:31: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 CE 96 01 00 0E 04 04 00 63 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:31:30]wFMCommunicate OK [11:31:30]SAM_PROTO_GetFieldsCounters done [11:31:30]requested_item shift.num is exist - process it [11:31:30]requested_item shift.opened is exist - process it [11:31:30]req_shift_opened [11:31:30]FM_GetShiftState [11:31:30]SAM_PROTO_GetShiftState [11:31:30]wFMCommunicate request_size=4 [11:31:30]MH_SAM_APDU [11:31:30]CAPDU: 80 13 01 00 [11:31:30]Write to MH i2c: E2 08 00 C9 20 80 13 01 00 00 00 00 00 66 [11:31:30]Write i2c OK [11:31:30]MH_I2C_Read... [11:31:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:31:30]Read from MH i2c: E2 [11:31:30]MH_I2C_Read... [11:31:30]Read from MH i2c: E2 0E 00 [11:31:30]MH_I2C_Read... [11:31:30]Read from MH i2c: E2 0E 00 C9 20 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 79 [11:31:30]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [11:31:30]wFMCommunicate OK [11:31:30]SAM_PROTO_GetShiftState done [11:31:30]FM_GetShiftState done [11:31:30]req_shift_opened done [11:31:30]requested_item shift.open_date is exist - process it [11:31:30]req_shift_open_date [11:31:30]req_shift_open_date done [11:31:30]produce_requested_data done [11:31:30]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104142,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [11:31:30]process_action_free close_receipt [11:31:30]json_value_free [11:31:30]json_value_free done [11:31:30]process_json_proto returns [11:31:30]Send response to host [11:31:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104142,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [11:31:30]free response buf [11:31:30]execute_script done [11:31:30]execute_script returns [11:31:30]free content buf [11:31:30]Sock 7.Close socket [11:31:30]Sock 7.Thread stoped [11:31:34]OFD Sender: No OFD packet to send [11:31:39]OFD Sender: No OFD packet to send [11:31:44]OFD Sender: No OFD packet to send [11:31:49]OFD Sender: No OFD packet to send [11:31:54]OFD Sender: No OFD packet to send [11:31:59]OFD Sender: No OFD packet to send [11:32:04]OFD Sender: No OFD packet to send [11:32:09]OFD Sender: No OFD packet to send [11:32:14]OFD Sender: No OFD packet to send [11:32:19]OFD Sender: No OFD packet to send [11:32:24]OFD Sender: No OFD packet to send [11:32:29]OFD Sender: No OFD packet to send [11:32:34]OFD Sender: No OFD packet to send [11:32:39]OFD Sender: No OFD packet to send [11:32:44]OFD Sender: No OFD packet to send [11:32:49]OFD Sender: No OFD packet to send [11:32:54]OFD Sender: No OFD packet to send [11:32:59]OFD Sender: No OFD packet to send [11:33:04]OFD Sender: No OFD packet to send [11:33:09]OFD Sender: No OFD packet to send [11:33:14]OFD Sender: No OFD packet to send [11:33:19]OFD Sender: No OFD packet to send [11:33:24]OFD Sender: No OFD packet to send [11:33:29]OFD Sender: No OFD packet to send [11:33:34]OFD Sender: No OFD packet to send [11:33:39]OFD Sender: No OFD packet to send [11:33:44]OFD Sender: No OFD packet to send [11:33:49]OFD Sender: No OFD packet to send [11:33:54]OFD Sender: No OFD packet to send [11:33:59]OFD Sender: No OFD packet to send [11:34:04]OFD Sender: No OFD packet to send [11:34:09]OFD Sender: No OFD packet to send [11:34:14]OFD Sender: No OFD packet to send [11:34:19]OFD Sender: No OFD packet to send [11:34:24]OFD Sender: No OFD packet to send [11:34:29]OFD Sender: No OFD packet to send [11:34:34]OFD Sender: No OFD packet to send [11:34:35]accept exits with 9 [11:34:35]New connection [11:34:35]New thread 3066715492 created [11:34:35]Thread 3066858852 joined [11:34:35]Waiting for new connection... [11:34:35] Sock 9.Parse request [11:34:35]Sock 9.Check first char [11:34:35]Sock 9.First char is OK [11:34:35]request: POST /json_proto HTTP/1.0 [11:34:35]Method: POST [11:34:35]URL: /json_proto [11:34:35]Method is POST - this is cgi request [11:34:35]url: /json_proto [11:34:35]query_string will be loaded in cgi processing [11:34:35]execute_cgi json_proto POST (null) [11:34:35]execute_cgi path=json_proto method=POST [11:34:35]POST find Content-Length [11:34:35]Host: 172.17.38.133:8080 [11:34:35]Content-Length: 682 [11:34:35]Content-Type: application/json [11:34:35] [11:34:35]POST finish read [11:34:35]Found Content-Length = 682 [11:34:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673563", "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.880, "sum" : 720.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 720.00, "total" : 720.00, "payments": [ { "type": 0, "sum" : 720.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:34:35]execute_script... [11:34: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)673563", "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.880, "sum" : 720.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 720.00, "total" : 720.00, "payments": [ { "type": 0, "sum" : 720.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:34:35]POST & json_proto [11:34:35]process_json_proto [11:34:35]json parsed OK: [11:34:35]protocol is kg_v1.0 [11:34:35]action value=close_receipt [11:34:35]process_action close_receipt [11:34:35]cmd_close_receipt [11:34:35]MH_GetDate [11:34:35]Write to MH i2c: F0 00 00 CA 20 D9 [11:34:35]Write i2c OK [11:34:35]MH_I2C_Read... [11:34:35]Read from MH i2c: F0 [11:34:35]MH_I2C_Read... [11:34:35]Read from MH i2c: F0 09 00 [11:34:35]MH_I2C_Read... [11:34:35]Read from MH i2c: F0 09 00 CA 20 00 4F 65 75 66 BD 8F 7C 64 9D [11:34:35]GetLastDocTimeStamp 1718969490 [11:34:35]current date 1718969679 [11:34:35]FM_GetShiftState [11:34:35]SAM_PROTO_GetShiftState [11:34:35]wFMCommunicate request_size=4 [11:34:35]MH_SAM_APDU [11:34:35]CAPDU: 80 13 01 00 [11:34:35]Write to MH i2c: E2 08 00 CB 20 80 13 01 00 00 00 00 00 68 [11:34:35]Write i2c OK [11:34:35]MH_I2C_Read... [11:34:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:34:35]Read from MH i2c: E2 [11:34:35]MH_I2C_Read... [11:34:35]Read from MH i2c: E2 0E 00 [11:34:35]MH_I2C_Read... [11:34:35]Read from MH i2c: E2 0E 00 CB 20 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 7B [11:34:35]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [11:34:35]wFMCommunicate OK [11:34:35]SAM_PROTO_GetShiftState done [11:34:35]FM_GetShiftState done [11:34:35]opened in 1718929509 [11:34:35]opened+sec_in_day 1719015909 [11:34:35]quantity*price = 72025 [11:34:35]sum+1 = 72026 [11:34:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 720.00 Внесено: 720.00 СДАЧА: 0.00 НСП 1% : 6.37 НДС 12% : 76.49 Наличными: 720.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 66 21.06.2024 11:34 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104143 ФПД: 35012913361331 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T113439&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104143&fm=35012913361331&tin=02508201610067®Number=0000000000092785&sum=72000 [11:34:36]StoreToDocumentArchive [11:34:36]shift 355 fd 104143 [11:34:36]save to /storage/0355/doc_00104143 [11:34:36]save last doc name /storage/0355/doc_00104143 to /storage/kkm_last_doc_name [11:34:36]save OK [11:34:36]Clear old archive folders... [11:34:36]ProcessDocumentItem done err = 0, tmpTLVsize=252 [11:34:36]tlvbuf is 0110FCD0 [11:34:36]SAM_PROTO_ClearQueue [11:34:36]wFMCommunicate request_size=4 [11:34:36]MH_SAM_APDU [11:34:36]CAPDU: 80 09 00 00 [11:34:36]Write to MH i2c: E2 08 00 D8 20 80 09 00 00 00 00 00 00 6A [11:34:36]Write i2c OK [11:34:36]MH_I2C_Read... [11:34:36]Read from MH i2c: E2 [11:34:36]MH_I2C_Read... [11:34:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:34:36]Read from MH i2c: E2 03 00 [11:34:36]MH_I2C_Read... [11:34:36]Read from MH i2c: E2 03 00 D8 20 00 90 00 6C [11:34:36]RAPDU: 90 00 [11:34:36]wFMCommunicate OK [11:34:36]SAM_PROTO_ClearQueue done [11:34:36]KKMCreateOFDPacket [11:34:36]OFDProtocolAddRootSTLVToBuf [11:34:36]FM_MakeSignedData [11:34:36]FM_MakeSignedData [11:34:36]SAM_PROTO_SignData [11:34:36]wFMCommunicate request_size=4 [11:34:36]MH_SAM_APDU [11:34:36]CAPDU: 80 0D 01 02 [11:34:36]Write to MH i2c: E2 08 00 D9 20 80 0D 01 02 00 00 00 00 72 [11:34:36]Write i2c OK [11:34:36]MH_I2C_Read... [11:34:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:34:36]Read from MH i2c: E2 [11:34:36]MH_I2C_Read... [11:34:36]Read from MH i2c: E2 03 00 [11:34:36]MH_I2C_Read... [11:34:36]Read from MH i2c: E2 03 00 D9 20 00 90 00 6D [11:34:36]RAPDU: 90 00 [11:34:36]wFMCommunicate OK [11:34:36]wFMCommunicate request_size=255 [11:34:36]MH_SAM_APDU [11:34:36]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 26 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 19 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 19 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E1 1D 00 00 00 00 07 04 06 00 40 19 01 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 4F 65 75 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 CF 96 01 00 35 04 06 00 [11:34:36]Write to MH i2c: E2 02 01 DA 20 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 26 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 19 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 19 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E1 1D 00 00 00 00 07 04 06 00 40 19 01 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 4F 65 75 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 CF 96 01 00 35 04 06 00 00 00 50 [11:34:36]Write i2c OK [11:34:36]MH_I2C_Read... [11:34:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:34:37]Read from MH i2c: E2 [11:34:37]MH_I2C_Read... [11:34:37]Read from MH i2c: E2 03 00 [11:34:37]MH_I2C_Read... [11:34:37]Read from MH i2c: E2 03 00 DA 20 00 90 00 6E [11:34:37]RAPDU: 90 00 [11:34:37]wFMCommunicate OK [11:34:37]wFMCommunicate request_size=11 [11:34:37]MH_SAM_APDU [11:34:37]CAPDU: 80 0D 02 02 06 1F D8 14 43 71 B3 [11:34:37]Write to MH i2c: E2 0E 00 DB 20 80 0D 02 02 06 00 1F D8 14 43 71 B3 00 00 F3 [11:34:37]Write i2c OK [11:34:37]MH_I2C_Read... [11:34:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:34:37]Read from MH i2c: E2 [11:34:37]MH_I2C_Read... [11:34:37]Read from MH i2c: E2 03 00 [11:34:37]MH_I2C_Read... [11:34:37]Read from MH i2c: E2 03 00 DB 20 00 90 00 6F [11:34:37]RAPDU: 90 00 [11:34:37]wFMCommunicate OK [11:34:37]wFMCommunicate request_size=4 [11:34:37]MH_SAM_APDU [11:34:37]CAPDU: 80 0D 03 02 [11:34:37]Write to MH i2c: E2 08 00 DC 20 80 0D 03 02 00 00 00 00 77 [11:34:37]Write i2c OK [11:34:37]MH_I2C_Read... [11:34:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:34:37]Read from MH i2c: E2 [11:34:37]MH_I2C_Read... [11:34:37]Read from MH i2c: E2 0B 00 [11:34:37]MH_I2C_Read... [11:34:37]Read from MH i2c: E2 0B 00 DC 20 00 8F E9 E4 34 EA 33 8F 1A 90 00 CE [11:34:37]RAPDU: 8F E9 E4 34 EA 33 8F 1A 90 00 [11:34:37]wFMCommunicate OK [11:34:37]SAM_PROTO_SignData done [11:34:37]FM_MakeSignedData done [11:34:37]CreateOFDProtocolMessage [11:34:37]wFMCommunicate request_size=4 [11:34:37]MH_SAM_APDU [11:34:37]CAPDU: 80 11 00 00 [11:34:37]Write to MH i2c: E2 08 00 DD 20 80 11 00 00 00 00 00 00 77 [11:34:37]Write i2c OK [11:34:37]MH_I2C_Read... [11:34:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:34:37]Read from MH i2c: E2 [11:34:37]MH_I2C_Read... [11:34:37]Read from MH i2c: E2 17 00 [11:34:37]MH_I2C_Read... [11:34:37]Read from MH i2c: E2 17 00 DD 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 CA [11:34: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:34:37]wFMCommunicate OK [11:34:37]CreateOFDProtocolMessage done [11:34:37]OFDSenderStorePacket 104143 [11:34:37]StoreOFDPacket docnum=104143 [11:34: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 7D D0 08 01 14 B4 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 26 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 19 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 19 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E1 1D 00 00 00 00 07 04 06 00 40 19 01 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 4F 65 75 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 CF 96 01 00 35 04 06 00 1F D8 14 43 71 B3 8F E9 E4 34 EA 33 8F 1A [11:34:37]CheckFolder [11:34:37]dirname=/storage/ofd_packets [11:34:37]CheckFolder done [11:34:37]ProducePacketName [11:34:37]name=ofd_packets/00104143 [11:34:37]NVStorageSaveData ofd_packets/00104143 [11:34:37]File name is /storage/ofd_packets/00104143 [11:34:37]Write 302 bytes [11:34:37]NVStorageSaveData done [11:34:37]OFDSenderStorePacket done [11:34:37]KKMCreateOFDPacket done [11:34:37]NVStorageSaveData kkm_last_timestamp [11:34:37]File name is /storage/kkm_last_timestamp [11:34:37]Write 4 bytes [11:34:37]NVStorageSaveData done [11:34:37]ExternCall_PrintAddStr [11:34:37]wPrintStart [11:34:37]Write to MH i2c: 01 00 00 DE 20 FE [11:34:37]Write i2c OK [11:34:37]MH_I2C_Read... [11:34:37]Read from MH i2c: 01 [11:34:37]MH_I2C_Read... [11:34:37]Read from MH i2c: 01 07 00 [11:34:37]MH_I2C_Read... [11:34:37]Read from MH i2c: 01 07 00 DE 20 00 00 00 00 00 FF 0F 13 [11:34:37]RasterBufferAndPrint [11:34:37]line Счет N : (1)673563 [11:34:37]line ИНН: 02508201610067 [11:34:37]line Контрольно-Кассовый Чек [11:34:37]line ПРОДАЖА [11:34:37]line ТРК (МРК, ГНК) : 21 [11:34:37]line Товар: 2710194210 [11:34:37]line ДТ(л)-К-5 [11:34:37]line 9.880 * 72.90 [11:34:37]line = 720.25 [11:34:37]line НДС 12% НСП 1% [11:34:37]line > о реализуемом товаре [11:34:37]line ОКРУГЛЕНИЕ: -0.25 [11:34:37]line ИТОГО: 720.00 [11:34:37]line Внесено: 720.00 [11:34:37]line СДАЧА: 0.00 [11:34:37]line НСП 1% : 6.37 [11:34:37]line НДС 12% : 76.49 [11:34:37]line Наличными: 720.00 [11:34:37]line Безнал.: 0.00 [11:34:37]line Место: АЗС № 120 "Партнер Нефть" [11:34:37]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [11:34:37]line СНО: Общий режим [11:34:37]line Чек 66 21.06.2024 11:34 [11:34:37]line Смена: 355 ФФД: 1.0 [11:34:37]line ЗНМ: 0300000164 [11:34:37]line РНМ: 0000000000092785 [11:34:37]line Версия ККМ: 001 [11:34:37]line ФМ: 0000000000875093 [11:34:37]line ФД: 104143 [11:34:37]line ФПД: 35012913361331 [11:34:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T113439&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104143&fm=35012913361331&tin=02508201610067®Number=0000000000092785&sum=72000 [11:34:37]OFD Sender: Processing packet 104143 [packets to send 17, broken 16] [11:34:37]ProducePacketName [11:34:37]name=ofd_packets/00104143 [11:34:37]OFD Sender: To server: pG, [11:34:37]CommunicateWithHost lk.salyk.kg:30040 [11:34:37]ConnectInit lk.salyk.kg [11:34:37]written 0, free lines is 4095 [11:34:37]Connected sock=10 [11:34: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 10 01 00 00 7D D0 08 01 14 B4 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 26 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 19 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 19 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E1 1D 00 00 00 00 07 04 06 00 40 19 01 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 4F 65 75 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 CF 96 01 00 35 04 06 00 1F D8 14 43 71 B3 8F E9 E4 34 EA 33 8F 1A [11:34: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 05 F3 47 00 3B 69 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 CF 96 01 00 F4 03 04 00 D2 0B 75 66 B6 04 01 00 00 54 34 D3 A7 6E 20 85 C1 [11:34:37]CommunicateWithHost err = 0 [11:34:37]CheckOFDResponse [11:34:37]1017 (14) - 77093643461234 [11:34:37]1041 (16) - 0000000000875093 [11:34:37]1040 (4) - 104143 [11:34:37]1012 (4) - 21.06.2024 05:12 [11:34:37]1206 (1) - 0 [11:34:37]OFD Sender: Remove packet 104143 [11:34:37]ProducePacketName [11:34:37]name=ofd_packets/00104143 [11:34:37]NVStorageDeleteData [11:34:38]Write to MH i2c: 01 00 00 09 21 2A [11:34:38]Write i2c OK [11:34:38]MH_I2C_Read... [11:34:38]Read from MH i2c: 01 [11:34:38]MH_I2C_Read... [11:34:38]Read from MH i2c: 01 07 00 [11:34:38]MH_I2C_Read... [11:34:38]Read from MH i2c: 01 07 00 09 21 00 00 00 00 00 E3 0C 20 [11:34:38]RasterBufferAndPrint [11:34:38]line [11:34:38]line [11:34:38]line [11:34:38]line [11:34:38]line [11:34:38]written 0, free lines is 3305 [11:34:38]MH_Cut [11:34:38]Write to MH i2c: D1 01 00 10 21 01 03 [11:34:38]Write i2c OK [11:34:38]MH_I2C_Read... [11:34:38]Read from MH i2c: D1 [11:34:38]MH_I2C_Read... [11:34:38]Read from MH i2c: D1 01 00 [11:34:38]MH_I2C_Read... [11:34:38]Read from MH i2c: D1 01 00 10 21 00 02 [11:34:38]Write to MH i2c: 01 00 00 11 21 32 [11:34:38]Write i2c OK [11:34:38]MH_I2C_Read... [11:34:38]OFD Sender: No OFD packet to send [11:34:38]*** Cut start [11:34:38]*** Partial cut [11:34:38]*** CUTSNS_PIN = 1 [11:34:38]*** CUTSNS_PIN = 0 [11:34:39]*** Brake cut motor [11:34:39]Read from MH i2c: 01 [11:34:39]MH_I2C_Read... [11:34:39]*** Stop cut motor [11:34:39]*** Cut end [11:34:39]Read from MH i2c: 01 07 00 [11:34:39]MH_I2C_Read... [11:34:39]Read from MH i2c: 01 07 00 11 21 00 00 00 00 00 FF 0F 47 [11:34:39]process_action close_receipt done [11:34:39]requested_data is exist [11:34:39]produce_requested_data [11:34:39]requested_item fm.sn is exist - process it [11:34:39]wFMCommunicate request_size=4 [11:34:39]MH_SAM_APDU [11:34:39]CAPDU: 80 11 00 00 [11:34:39]Write to MH i2c: E2 08 00 12 21 80 11 00 00 00 00 00 00 AD [11:34:39]Write i2c OK [11:34:39]MH_I2C_Read... [11:34:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:34:39]Read from MH i2c: E2 [11:34:39]MH_I2C_Read... [11:34:39]Read from MH i2c: E2 17 00 [11:34:39]MH_I2C_Read... [11:34:39]Read from MH i2c: E2 17 00 12 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 00 [11:34:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [11:34:39]wFMCommunicate OK [11:34:39]requested_item fd.num is exist - process it [11:34:39]SAM_PROTO_GetFieldsCounters [11:34:39]wFMCommunicate request_size=4 [11:34:39]MH_SAM_APDU [11:34:39]CAPDU: 80 13 00 00 [11:34:39]Write to MH i2c: E2 08 00 13 21 80 13 00 00 00 00 00 00 B0 [11:34:39]Write i2c OK [11:34:39]MH_I2C_Read... [11:34:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:34:39]Read from MH i2c: E2 [11:34:39]MH_I2C_Read... [11:34:39]Read from MH i2c: E2 62 00 [11:34:39]MH_I2C_Read... [11:34:39]Read from MH i2c: E2 62 00 13 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 CF 96 01 00 0E 04 04 00 63 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 67 [11:34: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 CF 96 01 00 0E 04 04 00 63 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:34:39]wFMCommunicate OK [11:34:39]SAM_PROTO_GetFieldsCounters done [11:34:39]requested_item shift.num is exist - process it [11:34:39]requested_item shift.opened is exist - process it [11:34:39]req_shift_opened [11:34:39]FM_GetShiftState [11:34:39]SAM_PROTO_GetShiftState [11:34:39]wFMCommunicate request_size=4 [11:34:39]MH_SAM_APDU [11:34:39]CAPDU: 80 13 01 00 [11:34:39]Write to MH i2c: E2 08 00 14 21 80 13 01 00 00 00 00 00 B2 [11:34:39]Write i2c OK [11:34:39]MH_I2C_Read... [11:34:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:34:39]Read from MH i2c: E2 [11:34:39]MH_I2C_Read... [11:34:39]Read from MH i2c: E2 0E 00 [11:34:39]MH_I2C_Read... [11:34:39]Read from MH i2c: E2 0E 00 14 21 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 C5 [11:34:39]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [11:34:39]wFMCommunicate OK [11:34:39]SAM_PROTO_GetShiftState done [11:34:39]FM_GetShiftState done [11:34:39]req_shift_opened done [11:34:39]requested_item shift.open_date is exist - process it [11:34:39]req_shift_open_date [11:34:39]req_shift_open_date done [11:34:39]produce_requested_data done [11:34:39]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104143,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [11:34:39]process_action_free close_receipt [11:34:39]json_value_free [11:34:39]json_value_free done [11:34:39]process_json_proto returns [11:34:39]Send response to host [11:34:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104143,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [11:34:39]free response buf [11:34:39]execute_script done [11:34:39]execute_script returns [11:34:39]free content buf [11:34:39]Sock 9.Close socket [11:34:39]Sock 9.Thread stoped [11:34:43]OFD Sender: No OFD packet to send [11:34:48]OFD Sender: No OFD packet to send [11:34:53]OFD Sender: No OFD packet to send [11:34:58]OFD Sender: No OFD packet to send [11:35:03]OFD Sender: No OFD packet to send [11:35:08]OFD Sender: No OFD packet to send [11:35:13]OFD Sender: No OFD packet to send [11:35:18]OFD Sender: No OFD packet to send [11:35:23]OFD Sender: No OFD packet to send [11:35:28]OFD Sender: No OFD packet to send [11:35:33]OFD Sender: No OFD packet to send [11:35:38]OFD Sender: No OFD packet to send [11:35:43]OFD Sender: No OFD packet to send [11:35:48]OFD Sender: No OFD packet to send [11:35:53]OFD Sender: No OFD packet to send [11:35:58]OFD Sender: No OFD packet to send [11:36:03]OFD Sender: No OFD packet to send [11:36:08]OFD Sender: No OFD packet to send [11:36:13]OFD Sender: No OFD packet to send [11:36:18]OFD Sender: No OFD packet to send [11:36:23]OFD Sender: No OFD packet to send [11:36:28]OFD Sender: No OFD packet to send [11:36:33]OFD Sender: No OFD packet to send [11:36:38]OFD Sender: No OFD packet to send [11:36:43]OFD Sender: No OFD packet to send [11:36:48]OFD Sender: No OFD packet to send [11:36:53]OFD Sender: No OFD packet to send [11:36:58]OFD Sender: No OFD packet to send [11:37:03]OFD Sender: No OFD packet to send [11:37:08]OFD Sender: No OFD packet to send [11:37:13]OFD Sender: No OFD packet to send [11:37:18]OFD Sender: No OFD packet to send [11:37:23]OFD Sender: No OFD packet to send [11:37:28]OFD Sender: No OFD packet to send [11:37:33]OFD Sender: No OFD packet to send [11:37:38]OFD Sender: No OFD packet to send [11:37:40]accept exits with 7 [11:37:40]New connection [11:37:40]New thread 3066858852 created [11:37:40]Thread 3066715492 joined [11:37:40]Waiting for new connection... [11:37:40] Sock 7.Parse request [11:37:40]Sock 7.Check first char [11:37:40]Sock 7.First char is OK [11:37:40]request: POST /json_proto HTTP/1.0 [11:37:40]Method: POST [11:37:40]URL: /json_proto [11:37:40]Method is POST - this is cgi request [11:37:40]url: /json_proto [11:37:40]query_string will be loaded in cgi processing [11:37:40]execute_cgi json_proto POST (null) [11:37:40]execute_cgi path=json_proto method=POST [11:37:40]POST find Content-Length [11:37:40]Host: 172.17.38.133:8080 [11:37:40]Content-Length: 678 [11:37:40]Content-Type: application/json [11:37:40] [11:37:40]POST finish read [11:37:40]Found Content-Length = 678 [11:37:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673566", "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" ] } } [11:37:40]execute_script... [11:37: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)673566", "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" ] } } [11:37:40]POST & json_proto [11:37:40]process_json_proto [11:37:40]json parsed OK: [11:37:40]protocol is kg_v1.0 [11:37:40]action value=close_receipt [11:37:40]process_action close_receipt [11:37:40]cmd_close_receipt [11:37:40]MH_GetDate [11:37:40]Write to MH i2c: F0 00 00 15 21 25 [11:37:40]Write i2c OK [11:37:40]MH_I2C_Read... [11:37:40]Read from MH i2c: F0 [11:37:40]MH_I2C_Read... [11:37:40]Read from MH i2c: F0 09 00 [11:37:40]MH_I2C_Read... [11:37:40]Read from MH i2c: F0 09 00 15 21 00 09 66 75 66 BD 8F 7C 64 A4 [11:37:40]GetLastDocTimeStamp 1718969679 [11:37:40]current date 1718969865 [11:37:40]FM_GetShiftState [11:37:40]SAM_PROTO_GetShiftState [11:37:40]wFMCommunicate request_size=4 [11:37:40]MH_SAM_APDU [11:37:40]CAPDU: 80 13 01 00 [11:37:40]Write to MH i2c: E2 08 00 16 21 80 13 01 00 00 00 00 00 B4 [11:37:40]Write i2c OK [11:37:40]MH_I2C_Read... [11:37:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:37:40]Read from MH i2c: E2 [11:37:40]MH_I2C_Read... [11:37:40]Read from MH i2c: E2 0E 00 [11:37:40]MH_I2C_Read... [11:37:40]Read from MH i2c: E2 0E 00 16 21 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 C7 [11:37:40]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [11:37:40]wFMCommunicate OK [11:37:40]SAM_PROTO_GetShiftState done [11:37:40]FM_GetShiftState done [11:37:40]opened in 1718929509 [11:37:40]opened+sec_in_day 1719015909 [11:37:40]quantity*price = 80012 [11:37:40]sum+1 = 80013 [11:37:40]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 СНО: Общий режим Чек 67 21.06.2024 11:37 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104144 ФПД: 257708783168186 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T113745&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104144&fm=257708783168186&tin=02508201610067®Number=0000000000092785&sum=80000 [11:37:41]StoreToDocumentArchive [11:37:41]shift 355 fd 104144 [11:37:41]save to /storage/0355/doc_00104144 [11:37:41]save last doc name /storage/0355/doc_00104144 to /storage/kkm_last_doc_name [11:37:41]save OK [11:37:41]Clear old archive folders... [11:37:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:37:41]tlvbuf is 011078D0 [11:37:41]SAM_PROTO_ClearQueue [11:37:41]wFMCommunicate request_size=4 [11:37:41]MH_SAM_APDU [11:37:41]CAPDU: 80 09 00 00 [11:37:41]Write to MH i2c: E2 08 00 23 21 80 09 00 00 00 00 00 00 B6 [11:37:41]Write i2c OK [11:37:41]MH_I2C_Read... [11:37:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:37:41]Read from MH i2c: E2 [11:37:41]MH_I2C_Read... [11:37:41]Read from MH i2c: E2 03 00 [11:37:41]MH_I2C_Read... [11:37:41]Read from MH i2c: E2 03 00 23 21 00 90 00 B8 [11:37:41]RAPDU: 90 00 [11:37:41]wFMCommunicate OK [11:37:41]SAM_PROTO_ClearQueue done [11:37:41]KKMCreateOFDPacket [11:37:41]OFDProtocolAddRootSTLVToBuf [11:37:41]FM_MakeSignedData [11:37:41]FM_MakeSignedData [11:37:41]SAM_PROTO_SignData [11:37:41]wFMCommunicate request_size=4 [11:37:41]MH_SAM_APDU [11:37:41]CAPDU: 80 0D 01 02 [11:37:41]Write to MH i2c: E2 08 00 24 21 80 0D 01 02 00 00 00 00 BE [11:37:41]Write i2c OK [11:37:41]MH_I2C_Read... [11:37:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:37:42]Read from MH i2c: E2 [11:37:42]MH_I2C_Read... [11:37:42]Read from MH i2c: E2 03 00 [11:37:42]MH_I2C_Read... [11:37:42]Read from MH i2c: E2 03 00 24 21 00 90 00 B9 [11:37:42]RAPDU: 90 00 [11:37:42]wFMCommunicate OK [11:37:42]wFMCommunicate request_size=255 [11:37:42]MH_SAM_APDU [11:37: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 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 43 00 00 00 F4 03 04 00 09 66 75 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 D0 96 01 00 35 04 06 00 EA [11:37:42]Write to MH i2c: E2 02 01 25 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 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 43 00 00 00 F4 03 04 00 09 66 75 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 D0 96 01 00 35 04 06 00 EA 00 00 A9 [11:37:42]Write i2c OK [11:37:42]MH_I2C_Read... [11:37:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:37:42]Read from MH i2c: E2 [11:37:42]MH_I2C_Read... [11:37:42]Read from MH i2c: E2 03 00 [11:37:42]MH_I2C_Read... [11:37:42]Read from MH i2c: E2 03 00 25 21 00 90 00 BA [11:37:42]RAPDU: 90 00 [11:37:42]wFMCommunicate OK [11:37:42]wFMCommunicate request_size=10 [11:37:42]MH_SAM_APDU [11:37:42]CAPDU: 80 0D 02 02 05 62 80 79 EA BA [11:37:42]Write to MH i2c: E2 0D 00 26 21 80 0D 02 02 05 00 62 80 79 EA BA 00 00 CA [11:37:42]Write i2c OK [11:37:42]MH_I2C_Read... [11:37:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:37:42]Read from MH i2c: E2 [11:37:42]MH_I2C_Read... [11:37:42]Read from MH i2c: E2 03 00 [11:37:42]MH_I2C_Read... [11:37:42]Read from MH i2c: E2 03 00 26 21 00 90 00 BB [11:37:42]RAPDU: 90 00 [11:37:42]wFMCommunicate OK [11:37:42]wFMCommunicate request_size=4 [11:37:42]MH_SAM_APDU [11:37:42]CAPDU: 80 0D 03 02 [11:37:42]Write to MH i2c: E2 08 00 27 21 80 0D 03 02 00 00 00 00 C3 [11:37:42]Write i2c OK [11:37:42]MH_I2C_Read... [11:37:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:37:42]Read from MH i2c: E2 [11:37:42]MH_I2C_Read... [11:37:42]Read from MH i2c: E2 0B 00 [11:37:42]MH_I2C_Read... [11:37:42]Read from MH i2c: E2 0B 00 27 21 00 66 B1 C8 4B A5 68 D8 EE 90 00 C1 [11:37:42]RAPDU: 66 B1 C8 4B A5 68 D8 EE 90 00 [11:37:42]wFMCommunicate OK [11:37:42]SAM_PROTO_SignData done [11:37:42]FM_MakeSignedData done [11:37:42]CreateOFDProtocolMessage [11:37:42]wFMCommunicate request_size=4 [11:37:42]MH_SAM_APDU [11:37:42]CAPDU: 80 11 00 00 [11:37:42]Write to MH i2c: E2 08 00 28 21 80 11 00 00 00 00 00 00 C3 [11:37:42]Write i2c OK [11:37:42]MH_I2C_Read... [11:37:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:37:42]Read from MH i2c: E2 [11:37:42]MH_I2C_Read... [11:37:42]Read from MH i2c: E2 17 00 [11:37:42]MH_I2C_Read... [11:37:42]Read from MH i2c: E2 17 00 28 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 16 [11:37:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [11:37:42]wFMCommunicate OK [11:37:42]CreateOFDProtocolMessage done [11:37:42]OFDSenderStorePacket 104144 [11:37:42]StoreOFDPacket docnum=104144 [11:37: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 66 C3 07 01 44 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 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 43 00 00 00 F4 03 04 00 09 66 75 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 D0 96 01 00 35 04 06 00 EA 62 80 79 EA BA 66 B1 C8 4B A5 68 D8 EE [11:37:42]CheckFolder [11:37:42]dirname=/storage/ofd_packets [11:37:42]CheckFolder done [11:37:42]ProducePacketName [11:37:42]name=ofd_packets/00104144 [11:37:42]NVStorageSaveData ofd_packets/00104144 [11:37:42]File name is /storage/ofd_packets/00104144 [11:37:42]Write 301 bytes [11:37:42]NVStorageSaveData done [11:37:42]OFDSenderStorePacket done [11:37:42]KKMCreateOFDPacket done [11:37:42]NVStorageSaveData kkm_last_timestamp [11:37:42]File name is /storage/kkm_last_timestamp [11:37:42]Write 4 bytes [11:37:42]NVStorageSaveData done [11:37:42]ExternCall_PrintAddStr [11:37:42]wPrintStart [11:37:42]Write to MH i2c: 01 00 00 29 21 4A [11:37:42]Write i2c OK [11:37:42]MH_I2C_Read... [11:37:42]Read from MH i2c: 01 [11:37:42]MH_I2C_Read... [11:37:42]Read from MH i2c: 01 07 00 [11:37:42]MH_I2C_Read... [11:37:42]Read from MH i2c: 01 07 00 29 21 00 00 00 00 00 FF 0F 5F [11:37:42]RasterBufferAndPrint [11:37:42]line Счет N : (1)673566 [11:37:42]line ИНН: 02508201610067 [11:37:42]line Контрольно-Кассовый Чек [11:37:42]line ПРОДАЖА [11:37:42]line ТРК (МРК, ГНК) : 32 [11:37:42]line Товар: 2710124130 [11:37:42]line Аи-92-К-5 [11:37:42]line 12.050 * 66.40 [11:37:42]line = 800.12 [11:37:42]line НДС 12% НСП 1% [11:37:42]line > о реализуемом товаре [11:37:42]line ОКРУГЛЕНИЕ: -0.12 [11:37:42]line ИТОГО: 800.00 [11:37:42]line Внесено: 800.00 [11:37:42]line СДАЧА: 0.00 [11:37:42]line НСП 1% : 7.08 [11:37:42]line НДС 12% : 84.97 [11:37:42]line Наличными: 800.00 [11:37:42]line Безнал.: 0.00 [11:37:42]line Место: АЗС № 120 "Партнер Нефть" [11:37:42]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [11:37:42]line СНО: Общий режим [11:37:42]line Чек 67 21.06.2024 11:37 [11:37:42]line Смена: 355 ФФД: 1.0 [11:37:42]line ЗНМ: 0300000164 [11:37:42]line РНМ: 0000000000092785 [11:37:42]line Версия ККМ: 001 [11:37:42]line ФМ: 0000000000875093 [11:37:42]line ФД: 104144 [11:37:42]line ФПД: 257708783168186 [11:37:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T113745&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104144&fm=257708783168186&tin=02508201610067®Number=0000000000092785&sum=80000 [11:37:42]OFD Sender: Processing packet 104144 [packets to send 17, broken 16] [11:37:42]ProducePacketName [11:37:42]name=ofd_packets/00104144 [11:37:42]OFD Sender: To server: pG, [11:37:42]CommunicateWithHost lk.salyk.kg:30040 [11:37:42]ConnectInit lk.salyk.kg [11:37:42]written 0, free lines is 4095 [11:37:42]Connected sock=10 [11:37: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 66 C3 07 01 44 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 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 43 00 00 00 F4 03 04 00 09 66 75 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 D0 96 01 00 35 04 06 00 EA 62 80 79 EA BA 66 B1 C8 4B A5 68 D8 EE [11:37: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 08 3D 47 00 E6 DF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 D0 96 01 00 F4 03 04 00 8B 0C 75 66 B6 04 01 00 00 97 3B EB 29 45 70 4A F2 [11:37:43]CommunicateWithHost err = 0 [11:37:43]CheckOFDResponse [11:37:43]1017 (14) - 77093643461234 [11:37:43]1041 (16) - 0000000000875093 [11:37:43]1040 (4) - 104144 [11:37:43]1012 (4) - 21.06.2024 05:15 [11:37:43]1206 (1) - 0 [11:37:43]OFD Sender: Remove packet 104144 [11:37:43]ProducePacketName [11:37:43]name=ofd_packets/00104144 [11:37:43]NVStorageDeleteData [11:37:43]Write to MH i2c: 01 00 00 54 21 75 [11:37:43]Write i2c OK [11:37:43]MH_I2C_Read... [11:37:43]Read from MH i2c: 01 [11:37:43]MH_I2C_Read... [11:37:43]Read from MH i2c: 01 07 00 [11:37:43]MH_I2C_Read... [11:37:43]Read from MH i2c: 01 07 00 54 21 00 00 00 00 00 E5 0C 6D [11:37:43]RasterBufferAndPrint [11:37:43]line [11:37:43]line [11:37:43]line [11:37:43]line [11:37:43]line [11:37:43]written 0, free lines is 3307 [11:37:43]MH_Cut [11:37:43]Write to MH i2c: D1 01 00 5B 21 01 4E [11:37:43]Write i2c OK [11:37:43]MH_I2C_Read... [11:37:43]Read from MH i2c: D1 [11:37:43]MH_I2C_Read... [11:37:43]Read from MH i2c: D1 01 00 [11:37:43]MH_I2C_Read... [11:37:43]Read from MH i2c: D1 01 00 5B 21 00 4D [11:37:43]Write to MH i2c: 01 00 00 5C 21 7D [11:37:43]Write i2c OK [11:37:43]MH_I2C_Read... [11:37:43]OFD Sender: No OFD packet to send [11:37:43]*** Cut start [11:37:43]*** Partial cut [11:37:43]*** CUTSNS_PIN = 1 [11:37:44]*** CUTSNS_PIN = 0 [11:37:44]*** Brake cut motor [11:37:44]Read from MH i2c: 01 *** Stop cut motor [11:37:44]*** Cut end [11:37:44] [11:37:44]MH_I2C_Read... [11:37:44]Read from MH i2c: 01 07 00 [11:37:44]MH_I2C_Read... [11:37:44]Read from MH i2c: 01 07 00 5C 21 00 00 00 00 00 FF 0F 92 [11:37:44]process_action close_receipt done [11:37:44]requested_data is exist [11:37:44]produce_requested_data [11:37:44]requested_item fm.sn is exist - process it [11:37:44]wFMCommunicate request_size=4 [11:37:44]MH_SAM_APDU [11:37:44]CAPDU: 80 11 00 00 [11:37:44]Write to MH i2c: E2 08 00 5D 21 80 11 00 00 00 00 00 00 F8 [11:37:44]Write i2c OK [11:37:44]MH_I2C_Read... [11:37:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:37:44]Read from MH i2c: E2 [11:37:44]MH_I2C_Read... [11:37:44]Read from MH i2c: E2 17 00 [11:37:44]MH_I2C_Read... [11:37:44]Read from MH i2c: E2 17 00 5D 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 4B [11:37:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [11:37:44]wFMCommunicate OK [11:37:44]requested_item fd.num is exist - process it [11:37:44]SAM_PROTO_GetFieldsCounters [11:37:44]wFMCommunicate request_size=4 [11:37:44]MH_SAM_APDU [11:37:44]CAPDU: 80 13 00 00 [11:37:44]Write to MH i2c: E2 08 00 5E 21 80 13 00 00 00 00 00 00 FB [11:37:44]Write i2c OK [11:37:44]MH_I2C_Read... [11:37:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:37:44]Read from MH i2c: E2 [11:37:44]MH_I2C_Read... [11:37:44]Read from MH i2c: E2 62 00 [11:37:44]MH_I2C_Read... [11:37:44]Read from MH i2c: E2 62 00 5E 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 D0 96 01 00 0E 04 04 00 63 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 B6 [11:37: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 D0 96 01 00 0E 04 04 00 63 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:37:44]wFMCommunicate OK [11:37:44]SAM_PROTO_GetFieldsCounters done [11:37:44]requested_item shift.num is exist - process it [11:37:44]requested_item shift.opened is exist - process it [11:37:44]req_shift_opened [11:37:44]FM_GetShiftState [11:37:44]SAM_PROTO_GetShiftState [11:37:44]wFMCommunicate request_size=4 [11:37:44]MH_SAM_APDU [11:37:44]CAPDU: 80 13 01 00 [11:37:44]Write to MH i2c: E2 08 00 5F 21 80 13 01 00 00 00 00 00 FD [11:37:44]Write i2c OK [11:37:44]MH_I2C_Read... [11:37:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:37:44]Read from MH i2c: E2 [11:37:44]MH_I2C_Read... [11:37:44]Read from MH i2c: E2 0E 00 [11:37:44]MH_I2C_Read... [11:37:44]Read from MH i2c: E2 0E 00 5F 21 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 10 [11:37:44]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [11:37:44]wFMCommunicate OK [11:37:44]SAM_PROTO_GetShiftState done [11:37:44]FM_GetShiftState done [11:37:44]req_shift_opened done [11:37:44]requested_item shift.open_date is exist - process it [11:37:44]req_shift_open_date [11:37:44]req_shift_open_date done [11:37:44]produce_requested_data done [11:37:44]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104144,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [11:37:44]process_action_free close_receipt [11:37:44]json_value_free [11:37:44]json_value_free done [11:37:44]process_json_proto returns [11:37:44]Send response to host [11:37:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104144,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [11:37:44]free response buf [11:37:44]execute_script done [11:37:44]execute_script returns [11:37:44]free content buf [11:37:44]Sock 7.Close socket [11:37:44]Sock 7.Thread stoped [11:37:48]OFD Sender: No OFD packet to send [11:37:53]OFD Sender: No OFD packet to send [11:37:58]OFD Sender: No OFD packet to send [11:38:03]OFD Sender: No OFD packet to send [11:38:08]OFD Sender: No OFD packet to send [11:38:13]OFD Sender: No OFD packet to send [11:38:18]OFD Sender: No OFD packet to send [11:38:23]OFD Sender: No OFD packet to send [11:38:28]OFD Sender: No OFD packet to send [11:38:33]OFD Sender: No OFD packet to send [11:38:38]OFD Sender: No OFD packet to send [11:38:43]OFD Sender: No OFD packet to send [11:38:48]OFD Sender: No OFD packet to send [11:38:53]OFD Sender: No OFD packet to send [11:38:58]OFD Sender: No OFD packet to send [11:39:03]OFD Sender: No OFD packet to send [11:39:08]OFD Sender: No OFD packet to send [11:39:13]OFD Sender: No OFD packet to send [11:39:18]OFD Sender: No OFD packet to send [11:39:23]OFD Sender: No OFD packet to send [11:39:28]OFD Sender: No OFD packet to send [11:39:33]OFD Sender: No OFD packet to send [11:39:38]OFD Sender: No OFD packet to send [11:39:43]OFD Sender: No OFD packet to send [11:39:48]OFD Sender: No OFD packet to send [11:39:53]OFD Sender: No OFD packet to send [11:39:58]OFD Sender: No OFD packet to send [11:40:03]OFD Sender: No OFD packet to send [11:40:08]OFD Sender: No OFD packet to send [11:40:13]OFD Sender: No OFD packet to send [11:40:18]OFD Sender: No OFD packet to send [11:40:23]OFD Sender: No OFD packet to send [11:40:28]OFD Sender: No OFD packet to send [11:40:33]OFD Sender: No OFD packet to send [11:40:38]OFD Sender: No OFD packet to send [11:40:43]OFD Sender: No OFD packet to send [11:40:48]OFD Sender: No OFD packet to send [11:40:53]OFD Sender: No OFD packet to send [11:40:58]OFD Sender: No OFD packet to send [11:41:03]OFD Sender: No OFD packet to send [11:41:08]OFD Sender: No OFD packet to send [11:41:13]OFD Sender: No OFD packet to send [11:41:18]OFD Sender: No OFD packet to send [11:41:23]OFD Sender: No OFD packet to send [11:41:28]OFD Sender: No OFD packet to send [11:41:33]OFD Sender: No OFD packet to send [11:41:34]accept exits with 9 [11:41:34]New connection [11:41:34]New thread 3066715492 created [11:41:34]Thread 3066858852 joined [11:41:34]Waiting for new connection... [11:41:34] Sock 9.Parse request [11:41:34]Sock 9.Check first char [11:41:34]Sock 9.First char is OK [11:41:34]request: POST /json_proto HTTP/1.0 [11:41:34]Method: POST [11:41:34]URL: /json_proto [11:41:34]Method is POST - this is cgi request [11:41:34]url: /json_proto [11:41:34]query_string will be loaded in cgi processing [11:41:34]execute_cgi json_proto POST (null) [11:41:34]execute_cgi path=json_proto method=POST [11:41:34]POST find Content-Length [11:41:34]Host: 172.17.38.133:8080 [11:41:34]Content-Length: 819 [11:41:34]Content-Type: application/json [11:41:34] [11:41:34]POST finish read [11:41:34]Found Content-Length = 819 [11:41:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673567", "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" ] } } [11:41:34]execute_script... [11:41: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)673567", "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" ] } } [11:41:34]POST & json_proto [11:41:34]process_json_proto [11:41:34]json parsed OK: [11:41:34]protocol is kg_v1.0 [11:41:34]action value=close_receipt [11:41:34]process_action close_receipt [11:41:34]cmd_close_receipt [11:41:34]MH_GetDate [11:41:34]Write to MH i2c: F0 00 00 60 21 70 [11:41:34]Write i2c OK [11:41:34]MH_I2C_Read... [11:41:34]Read from MH i2c: F0 [11:41:34]MH_I2C_Read... [11:41:34]Read from MH i2c: F0 09 00 [11:41:34]MH_I2C_Read... [11:41:34]Read from MH i2c: F0 09 00 60 21 00 F2 66 75 66 BD 8F 7C 64 D8 [11:41:34]GetLastDocTimeStamp 1718969865 [11:41:34]current date 1718970098 [11:41:34]FM_GetShiftState [11:41:34]SAM_PROTO_GetShiftState [11:41:34]wFMCommunicate request_size=4 [11:41:34]MH_SAM_APDU [11:41:34]CAPDU: 80 13 01 00 [11:41:34]Write to MH i2c: E2 08 00 61 21 80 13 01 00 00 00 00 00 FF [11:41:34]Write i2c OK [11:41:34]MH_I2C_Read... [11:41:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:41:34]Read from MH i2c: E2 [11:41:34]MH_I2C_Read... [11:41:34]Read from MH i2c: E2 0E 00 [11:41:34]MH_I2C_Read... [11:41:34]Read from MH i2c: E2 0E 00 61 21 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 12 [11:41:34]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [11:41:34]wFMCommunicate OK [11:41:34]SAM_PROTO_GetShiftState done [11:41:34]FM_GetShiftState done [11:41:34]opened in 1718929509 [11:41:34]opened+sec_in_day 1719015909 [11:41:34]quantity*price = 100064 [11:41:34]sum+1 = 100066 [11:41:34]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 СНО: Общий режим Чек 68 21.06.2024 11:41 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875093 ФД: 104145 ФПД: 15634696830302 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T114138&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104145&fm=15634696830302&tin=02508201610067®Number=0000000000092785&sum=100065 [11:41:35]StoreToDocumentArchive [11:41:35]shift 355 fd 104145 [11:41:35]save to /storage/0355/doc_00104145 [11:41:35]save last doc name /storage/0355/doc_00104145 to /storage/kkm_last_doc_name [11:41:35]save OK [11:41:35]Clear old archive folders... [11:41:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:41:35]tlvbuf is 0114B4D0 [11:41:35]SAM_PROTO_ClearQueue [11:41:35]wFMCommunicate request_size=4 [11:41:35]MH_SAM_APDU [11:41:35]CAPDU: 80 09 00 00 [11:41:35]Write to MH i2c: E2 08 00 6E 21 80 09 00 00 00 00 00 00 01 [11:41:35]Write i2c OK [11:41:35]MH_I2C_Read... [11:41:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:41:35]Read from MH i2c: E2 [11:41:35]MH_I2C_Read... [11:41:35]Read from MH i2c: E2 03 00 [11:41:35]MH_I2C_Read... [11:41:35]Read from MH i2c: E2 03 00 6E 21 00 90 00 03 [11:41:35]RAPDU: 90 00 [11:41:35]wFMCommunicate OK [11:41:35]SAM_PROTO_ClearQueue done [11:41:35]KKMCreateOFDPacket [11:41:35]OFDProtocolAddRootSTLVToBuf [11:41:35]FM_MakeSignedData [11:41:35]FM_MakeSignedData [11:41:35]SAM_PROTO_SignData [11:41:35]wFMCommunicate request_size=4 [11:41:35]MH_SAM_APDU [11:41:35]CAPDU: 80 0D 01 02 [11:41:35]Write to MH i2c: E2 08 00 6F 21 80 0D 01 02 00 00 00 00 09 [11:41:35]Write i2c OK [11:41:35]MH_I2C_Read... [11:41:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:41:35]Read from MH i2c: E2 [11:41:35]MH_I2C_Read... [11:41:35]Read from MH i2c: E2 03 00 [11:41:35]MH_I2C_Read... [11:41:35]Read from MH i2c: E2 03 00 6F 21 00 90 00 04 [11:41:35]RAPDU: 90 00 [11:41:35]wFMCommunicate OK [11:41:35]wFMCommunicate request_size=255 [11:41:35]MH_SAM_APDU [11:41: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 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 44 00 00 00 F4 03 04 00 F2 66 75 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 D1 96 01 00 35 04 06 00 0E [11:41:35]Write to MH i2c: E2 02 01 70 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 44 00 00 00 F4 03 04 00 F2 66 75 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 D1 96 01 00 35 04 06 00 0E 00 00 E6 [11:41:35]Write i2c OK [11:41:35]MH_I2C_Read... [11:41:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:41:36]Read from MH i2c: E2 [11:41:36]MH_I2C_Read... [11:41:36]Read from MH i2c: E2 03 00 [11:41:36]MH_I2C_Read... [11:41:36]Read from MH i2c: E2 03 00 70 21 00 90 00 05 [11:41:36]RAPDU: 90 00 [11:41:36]wFMCommunicate OK [11:41:36]wFMCommunicate request_size=10 [11:41:36]MH_SAM_APDU [11:41:36]CAPDU: 80 0D 02 02 05 38 3C 8C FD 5E [11:41:36]Write to MH i2c: E2 0D 00 71 21 80 0D 02 02 05 00 38 3C 8C FD 5E 00 00 71 [11:41:36]Write i2c OK [11:41:36]MH_I2C_Read... [11:41:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:41:36]Read from MH i2c: E2 [11:41:36]MH_I2C_Read... [11:41:36]Read from MH i2c: E2 03 00 [11:41:36]MH_I2C_Read... [11:41:36]Read from MH i2c: E2 03 00 71 21 00 90 00 06 [11:41:36]RAPDU: 90 00 [11:41:36]wFMCommunicate OK [11:41:36]wFMCommunicate request_size=4 [11:41:36]MH_SAM_APDU [11:41:36]CAPDU: 80 0D 03 02 [11:41:36]Write to MH i2c: E2 08 00 72 21 80 0D 03 02 00 00 00 00 0E [11:41:36]Write i2c OK [11:41:36]MH_I2C_Read... [11:41:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:41:36]Read from MH i2c: E2 [11:41:36]MH_I2C_Read... [11:41:36]Read from MH i2c: E2 0B 00 [11:41:36]MH_I2C_Read... [11:41:36]Read from MH i2c: E2 0B 00 72 21 00 A3 3C 03 34 80 71 E4 8B 90 00 85 [11:41:36]RAPDU: A3 3C 03 34 80 71 E4 8B 90 00 [11:41:36]wFMCommunicate OK [11:41:36]SAM_PROTO_SignData done [11:41:36]FM_MakeSignedData done [11:41:36]CreateOFDProtocolMessage [11:41:36]wFMCommunicate request_size=4 [11:41:36]MH_SAM_APDU [11:41:36]CAPDU: 80 11 00 00 [11:41:36]Write to MH i2c: E2 08 00 73 21 80 11 00 00 00 00 00 00 0E [11:41:36]Write i2c OK [11:41:36]MH_I2C_Read... [11:41:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:41:36]Read from MH i2c: E2 [11:41:36]MH_I2C_Read... [11:41:36]Read from MH i2c: E2 17 00 [11:41:36]MH_I2C_Read... [11:41:36]Read from MH i2c: E2 17 00 73 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 61 [11: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 [11:41:36]wFMCommunicate OK [11:41:36]CreateOFDProtocolMessage done [11:41:36]OFDSenderStorePacket 104145 [11:41:36]StoreOFDPacket docnum=104145 [11: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 98 43 07 01 39 79 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 44 00 00 00 F4 03 04 00 F2 66 75 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 D1 96 01 00 35 04 06 00 0E 38 3C 8C FD 5E A3 3C 03 34 80 71 E4 8B [11:41:36]CheckFolder [11:41:36]dirname=/storage/ofd_packets [11:41:36]CheckFolder done [11:41:36]ProducePacketName [11:41:36]name=ofd_packets/00104145 [11:41:36]NVStorageSaveData ofd_packets/00104145 [11:41:36]File name is /storage/ofd_packets/00104145 [11:41:36]Write 301 bytes [11:41:36]NVStorageSaveData done [11:41:36]OFDSenderStorePacket done [11:41:36]KKMCreateOFDPacket done [11:41:36]NVStorageSaveData kkm_last_timestamp [11:41:36]File name is /storage/kkm_last_timestamp [11:41:36]Write 4 bytes [11:41:36]NVStorageSaveData done [11:41:36]ExternCall_PrintAddStr [11:41:36]wPrintStart [11:41:36]Write to MH i2c: 01 00 00 74 21 95 [11:41:36]Write i2c OK [11:41:36]MH_I2C_Read... [11:41:36]Read from MH i2c: 01 [11:41:36]MH_I2C_Read... [11:41:36]Read from MH i2c: 01 07 00 [11:41:36]MH_I2C_Read... [11:41:36]Read from MH i2c: 01 07 00 74 21 00 00 00 00 00 FF 0F AA [11:41:36]RasterBufferAndPrint [11:41:36]line Счет N : (1)673567 [11:41:36]line ИНН: 02508201610067 [11:41:36]line Контрольно-Кассовый Чек [11:41:36]line ПРОДАЖА [11:41:36]line ТРК (МРК, ГНК) : 32 [11:41:36]line Товар: 2710124130 [11:41:36]line Аи-92-К-5 [11:41:36]line 15.070 * 66.40 [11:41:36]line = 1000.65 [11:41:36]line НДС 12% НСП 1% [11:41:36]line > о реализуемом товаре [11:41:36]line ИТОГО: 1000.65 [11:41:36]line НСП 1% : 8.85 [11:41:36]line НДС 12% : 106.26 [11:41:36]line Наличными: 0.00 [11:41:36]line Безнал.: 1000.65 [11:41:36]line Место: АЗС № 120 "Партнер Нефть" [11:41:36]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [11:41:36]line СНО: Общий режим [11:41:36]line Чек 68 21.06.2024 11:41 [11:41:36]line Смена: 355 ФФД: 1.0 [11:41:36]line ЗНМ: 0300000164 [11:41:36]line РНМ: 0000000000092785 [11:41:36]line Версия ККМ: 001 [11:41:36]line Платежная система: Бакай Банк [11:41:36]line ФМ: 0000000000875093 [11:41:36]line ФД: 104145 [11:41:36]line ФПД: 15634696830302 [11:41:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T114138&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104145&fm=15634696830302&tin=02508201610067®Number=0000000000092785&sum=100065 [11:41:36]OFD Sender: Processing packet 104145 [packets to send 17, broken 16] [11:41:36]ProducePacketName [11:41:36]name=ofd_packets/00104145 [11:41:36]OFD Sender: To server: pG, [11:41:36]CommunicateWithHost lk.salyk.kg:30040 [11:41:36]ConnectInit lk.salyk.kg [11:41:36]written 0, free lines is 4095 [11:41:36]Connected sock=10 [11:41: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 98 43 07 01 39 79 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 44 00 00 00 F4 03 04 00 F2 66 75 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 D1 96 01 00 35 04 06 00 0E 38 3C 8C FD 5E A3 3C 03 34 80 71 E4 8B [11:41: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 33 39 47 00 4D 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 D1 96 01 00 F4 03 04 00 75 0D 75 66 B6 04 01 00 00 24 E2 9C 2C 7D 07 85 49 [11:41:36]CommunicateWithHost err = 0 [11:41:36]CheckOFDResponse [11:41:36]1017 (14) - 77093643461234 [11:41:36]1041 (16) - 0000000000875093 [11:41:36]1040 (4) - 104145 [11:41:36]1012 (4) - 21.06.2024 05:19 [11:41:36]1206 (1) - 0 [11:41:36]OFD Sender: Remove packet 104145 [11:41:36]ProducePacketName [11:41:36]name=ofd_packets/00104145 [11:41:36]NVStorageDeleteData [11:41:37]Write to MH i2c: 01 00 00 9E 21 BF [11:41:37]Write i2c OK [11:41:37]MH_I2C_Read... [11:41:37]Read from MH i2c: 01 [11:41:37]MH_I2C_Read... [11:41:37]Read from MH i2c: 01 07 00 [11:41:37]MH_I2C_Read... [11:41:37]Read from MH i2c: 01 07 00 9E 21 00 00 00 00 00 ED 0C BF [11:41:37]RasterBufferAndPrint [11:41:37]line [11:41:37]line [11:41:37]line [11:41:37]line [11:41:37]line [11:41:37]written 0, free lines is 3314 [11:41:37]MH_Cut [11:41:37]Write to MH i2c: D1 01 00 A5 21 01 98 [11:41:37]Write i2c OK [11:41:37]MH_I2C_Read... [11:41:37]Read from MH i2c: D1 [11:41:37]MH_I2C_Read... [11:41:37]Read from MH i2c: D1 01 00 [11:41:37]MH_I2C_Read... [11:41:37]Read from MH i2c: D1 01 00 A5 21 00 97 [11:41:37]Write to MH i2c: 01 00 00 A6 21 C7 [11:41:37]Write i2c OK [11:41:37]MH_I2C_Read... [11:41:37]OFD Sender: No OFD packet to send [11:41:37]*** Cut start [11:41:37]*** Partial cut [11:41:37]*** CUTSNS_PIN = 1 [11:41:37]*** CUTSNS_PIN = 0 [11:41:38]*** Brake cut motor [11:41:38]Read from MH i2c: 01 [11:41:38]MH_I2C_Read... [11:41:38]*** Stop cut motor [11:41:38]*** Cut end [11:41:38]Read from MH i2c: 01 07 00 [11:41:38]MH_I2C_Read... [11:41:38]Read from MH i2c: 01 07 00 A6 21 00 00 00 00 00 FF 0F DC [11:41:38]process_action close_receipt done [11:41:38]requested_data is exist [11:41:38]produce_requested_data [11:41:38]requested_item fm.sn is exist - process it [11:41:38]wFMCommunicate request_size=4 [11:41:38]MH_SAM_APDU [11:41:38]CAPDU: 80 11 00 00 [11:41:38]Write to MH i2c: E2 08 00 A7 21 80 11 00 00 00 00 00 00 42 [11:41:38]Write i2c OK [11:41:38]MH_I2C_Read... [11:41:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:41:38]Read from MH i2c: E2 [11:41:38]MH_I2C_Read... [11:41:38]Read from MH i2c: E2 17 00 [11:41:38]MH_I2C_Read... [11:41:38]Read from MH i2c: E2 17 00 A7 21 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: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 [11:41:38]wFMCommunicate OK [11:41:38]requested_item fd.num is exist - process it [11:41:38]SAM_PROTO_GetFieldsCounters [11:41:38]wFMCommunicate request_size=4 [11:41:38]MH_SAM_APDU [11:41:38]CAPDU: 80 13 00 00 [11:41:38]Write to MH i2c: E2 08 00 A8 21 80 13 00 00 00 00 00 00 45 [11:41:38]Write i2c OK [11:41:38]MH_I2C_Read... [11:41:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:41:38]Read from MH i2c: E2 [11:41:38]MH_I2C_Read... [11:41:38]Read from MH i2c: E2 62 00 [11:41:38]MH_I2C_Read... [11:41:38]Read from MH i2c: E2 62 00 A8 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 D1 96 01 00 0E 04 04 00 63 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 04 [11:41: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 D1 96 01 00 0E 04 04 00 63 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:41:38]wFMCommunicate OK [11:41:38]SAM_PROTO_GetFieldsCounters done [11:41:38]requested_item shift.num is exist - process it [11:41:38]requested_item shift.opened is exist - process it [11:41:38]req_shift_opened [11:41:38]FM_GetShiftState [11:41:38]SAM_PROTO_GetShiftState [11:41:38]wFMCommunicate request_size=4 [11:41:38]MH_SAM_APDU [11:41:38]CAPDU: 80 13 01 00 [11:41:38]Write to MH i2c: E2 08 00 A9 21 80 13 01 00 00 00 00 00 47 [11:41:38]Write i2c OK [11:41:38]MH_I2C_Read... [11:41:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:41:38]Read from MH i2c: E2 [11:41:38]MH_I2C_Read... [11:41:38]Read from MH i2c: E2 0E 00 [11:41:38]MH_I2C_Read... [11:41:38]Read from MH i2c: E2 0E 00 A9 21 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 5A [11:41:38]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [11:41:38]wFMCommunicate OK [11:41:38]SAM_PROTO_GetShiftState done [11:41:38]FM_GetShiftState done [11:41:38]req_shift_opened done [11:41:38]requested_item shift.open_date is exist - process it [11:41:38]req_shift_open_date [11:41:38]req_shift_open_date done [11:41:38]produce_requested_data done [11:41:38]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104145,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [11:41:38]process_action_free close_receipt [11:41:38]json_value_free [11:41:38]json_value_free done [11:41:38]process_json_proto returns [11:41:38]Send response to host [11:41:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104145,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [11:41:38]free response buf [11:41:38]execute_script done [11:41:38]execute_script returns [11:41:38]free content buf [11:41:38]Sock 9.Close socket [11:41:38]Sock 9.Thread stoped [11:41:38]accept exits with 7 [11:41:38]New connection [11:41:38]New thread 3066858852 created [11:41:38]Thread 3066715492 joined [11:41:38]Waiting for new connection... [11:41:38] Sock 7.Parse request [11:41:38]Sock 7.Check first char [11:41:38]Sock 7.First char is OK [11:41:38]request: POST /json_proto HTTP/1.0 [11:41:38]Method: POST [11:41:38]URL: /json_proto [11:41:38]Method is POST - this is cgi request [11:41:38]url: /json_proto [11:41:38]query_string will be loaded in cgi processing [11:41:38]execute_cgi json_proto POST (null) [11:41:38]execute_cgi path=json_proto method=POST [11:41:38]POST find Content-Length [11:41:38]Host: 172.17.38.133:8080 [11:41:38]Content-Length: 661 [11:41:38]Content-Type: application/json [11:41:38] [11:41:38]POST finish read [11:41:38]Found Content-Length = 661 [11:41:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673568", "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" ] } } [11:41:38]execute_script... [11:41: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)673568", "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" ] } } [11:41:38]POST & json_proto [11:41:38]process_json_proto [11:41:38]json parsed OK: [11:41:38]protocol is kg_v1.0 [11:41:38]action value=close_receipt [11:41:38]process_action close_receipt [11:41:38]cmd_close_receipt [11:41:38]MH_GetDate [11:41:38]Write to MH i2c: F0 00 00 AA 21 BA [11:41:38]Write i2c OK [11:41:38]MH_I2C_Read... [11:41:38]Read from MH i2c: F0 [11:41:38]MH_I2C_Read... [11:41:38]Read from MH i2c: F0 09 00 [11:41:38]MH_I2C_Read... [11:41:38]Read from MH i2c: F0 09 00 AA 21 00 F7 66 75 66 BD 8F 7C 64 27 [11:41:38]GetLastDocTimeStamp 1718970098 [11:41:38]current date 1718970103 [11:41:38]FM_GetShiftState [11:41:38]SAM_PROTO_GetShiftState [11:41:38]wFMCommunicate request_size=4 [11:41:38]MH_SAM_APDU [11:41:38]CAPDU: 80 13 01 00 [11:41:38]Write to MH i2c: E2 08 00 AB 21 80 13 01 00 00 00 00 00 49 [11:41:38]Write i2c OK [11:41:38]MH_I2C_Read... [11:41:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:41:39]Read from MH i2c: E2 [11:41:39]MH_I2C_Read... [11:41:39]Read from MH i2c: E2 0E 00 [11:41:39]MH_I2C_Read... [11:41:39]Read from MH i2c: E2 0E 00 AB 21 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 5C [11:41:39]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [11:41:39]wFMCommunicate OK [11:41:39]SAM_PROTO_GetShiftState done [11:41:39]FM_GetShiftState done [11:41:39]opened in 1718929509 [11:41:39]opened+sec_in_day 1719015909 [11:41:39]quantity*price = 66400 [11:41:39]sum+1 = 66401 [11:41:39]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 СНО: Общий режим Чек 69 21.06.2024 11:41 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104146 ФПД: 249115211195223 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T114143&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104146&fm=249115211195223&tin=02508201610067®Number=0000000000092785&sum=66400 [11:41:40]StoreToDocumentArchive [11:41:40]shift 355 fd 104146 [11:41:40]save to /storage/0355/doc_00104146 [11:41:40]save last doc name /storage/0355/doc_00104146 to /storage/kkm_last_doc_name [11:41:40]save OK [11:41:40]Clear old archive folders... [11:41:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:41:40]tlvbuf is 01193CE0 [11:41:40]SAM_PROTO_ClearQueue [11:41:40]wFMCommunicate request_size=4 [11:41:40]MH_SAM_APDU [11:41:40]CAPDU: 80 09 00 00 [11:41:40]Write to MH i2c: E2 08 00 B8 21 80 09 00 00 00 00 00 00 4B [11:41:40]Write i2c OK [11:41:40]MH_I2C_Read... [11:41:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:41:40]Read from MH i2c: E2 [11:41:40]MH_I2C_Read... [11:41:40]Read from MH i2c: E2 03 00 [11:41:40]MH_I2C_Read... [11:41:40]Read from MH i2c: E2 03 00 B8 21 00 90 00 4D [11:41:40]RAPDU: 90 00 [11:41:40]wFMCommunicate OK [11:41:40]SAM_PROTO_ClearQueue done [11:41:40]KKMCreateOFDPacket [11:41:40]OFDProtocolAddRootSTLVToBuf [11:41:40]FM_MakeSignedData [11:41:40]FM_MakeSignedData [11:41:40]SAM_PROTO_SignData [11:41:40]wFMCommunicate request_size=4 [11:41:40]MH_SAM_APDU [11:41:40]CAPDU: 80 0D 01 02 [11:41:40]Write to MH i2c: E2 08 00 B9 21 80 0D 01 02 00 00 00 00 53 [11:41:40]Write i2c OK [11:41:40]MH_I2C_Read... [11:41:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:41:40]Read from MH i2c: E2 [11:41:40]MH_I2C_Read... [11:41:40]Read from MH i2c: E2 03 00 [11:41:40]MH_I2C_Read... [11:41:40]Read from MH i2c: E2 03 00 B9 21 00 90 00 4E [11:41:40]RAPDU: 90 00 [11:41:40]wFMCommunicate OK [11:41:40]wFMCommunicate request_size=255 [11:41:40]MH_SAM_APDU [11:41: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 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 45 00 00 00 F4 03 04 00 F7 66 75 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 D2 96 01 00 35 04 06 00 E2 [11:41:40]Write to MH i2c: E2 02 01 BA 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 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 45 00 00 00 F4 03 04 00 F7 66 75 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 D2 96 01 00 35 04 06 00 E2 00 00 EF [11:41:40]Write i2c OK [11:41:40]MH_I2C_Read... [11:41:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:41:40]Read from MH i2c: E2 [11:41:40]MH_I2C_Read... [11:41:40]Read from MH i2c: E2 03 00 [11:41:40]MH_I2C_Read... [11:41:40]Read from MH i2c: E2 03 00 BA 21 00 90 00 4F [11:41:40]RAPDU: 90 00 [11:41:40]wFMCommunicate OK [11:41:40]wFMCommunicate request_size=10 [11:41:40]MH_SAM_APDU [11:41:40]CAPDU: 80 0D 02 02 05 91 A7 AB E3 57 [11:41:40]Write to MH i2c: E2 0D 00 BB 21 80 0D 02 02 05 00 91 A7 AB E3 57 00 00 7D [11:41:40]Write i2c OK [11:41:40]MH_I2C_Read... [11:41:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:41:40]Read from MH i2c: E2 [11:41:40]MH_I2C_Read... [11:41:40]Read from MH i2c: E2 03 00 [11:41:40]MH_I2C_Read... [11:41:40]Read from MH i2c: E2 03 00 BB 21 00 90 00 50 [11:41:40]RAPDU: 90 00 [11:41:40]wFMCommunicate OK [11:41:40]wFMCommunicate request_size=4 [11:41:40]MH_SAM_APDU [11:41:40]CAPDU: 80 0D 03 02 [11:41:40]Write to MH i2c: E2 08 00 BC 21 80 0D 03 02 00 00 00 00 58 [11:41:40]Write i2c OK [11:41:40]MH_I2C_Read... [11:41:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:41:40]Read from MH i2c: E2 [11:41:40]MH_I2C_Read... [11:41:40]Read from MH i2c: E2 0B 00 [11:41:40]MH_I2C_Read... [11:41:40]Read from MH i2c: E2 0B 00 BC 21 00 E5 23 EA 29 DD 70 4A 74 90 00 7F [11:41:40]RAPDU: E5 23 EA 29 DD 70 4A 74 90 00 [11:41:40]wFMCommunicate OK [11:41:40]SAM_PROTO_SignData done [11:41:40]FM_MakeSignedData done [11:41:40]CreateOFDProtocolMessage [11:41:40]wFMCommunicate request_size=4 [11:41:40]MH_SAM_APDU [11:41:40]CAPDU: 80 11 00 00 [11:41:40]Write to MH i2c: E2 08 00 BD 21 80 11 00 00 00 00 00 00 58 [11:41:40]Write i2c OK [11:41:40]MH_I2C_Read... [11:41:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:41:40]Read from MH i2c: E2 [11:41:40]MH_I2C_Read... [11:41:40]Read from MH i2c: E2 17 00 [11:41:40]MH_I2C_Read... [11:41:40]Read from MH i2c: E2 17 00 BD 21 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:41: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:41:40]wFMCommunicate OK [11:41:40]CreateOFDProtocolMessage done [11:41:40]OFDSenderStorePacket 104146 [11:41:40]StoreOFDPacket docnum=104146 [11:41: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 0F 01 00 00 3A 44 07 01 BF F7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 45 00 00 00 F4 03 04 00 F7 66 75 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 D2 96 01 00 35 04 06 00 E2 91 A7 AB E3 57 E5 23 EA 29 DD 70 4A 74 [11:41:40]CheckFolder [11:41:40]dirname=/storage/ofd_packets [11:41:40]CheckFolder done [11:41:40]ProducePacketName [11:41:40]name=ofd_packets/00104146 [11:41:40]NVStorageSaveData ofd_packets/00104146 [11:41:40]File name is /storage/ofd_packets/00104146 [11:41:40]Write 301 bytes [11:41:40]NVStorageSaveData done [11:41:40]OFDSenderStorePacket done [11:41:40]KKMCreateOFDPacket done [11:41:40]NVStorageSaveData kkm_last_timestamp [11:41:40]File name is /storage/kkm_last_timestamp [11:41:40]Write 4 bytes [11:41:40]NVStorageSaveData done [11:41:40]ExternCall_PrintAddStr [11:41:40]wPrintStart [11:41:40]Write to MH i2c: 01 00 00 BE 21 DF [11:41:40]Write i2c OK [11:41:40]MH_I2C_Read... [11:41:40]Read from MH i2c: 01 [11:41:40]MH_I2C_Read... [11:41:40]Read from MH i2c: 01 07 00 [11:41:40]MH_I2C_Read... [11:41:40]Read from MH i2c: 01 07 00 BE 21 00 00 00 00 00 FF 0F F4 [11:41:40]RasterBufferAndPrint [11:41:40]line Счет N : (1)673568 [11:41:40]line ИНН: 02508201610067 [11:41:40]line Контрольно-Кассовый Чек [11:41:40]line ПРОДАЖА [11:41:40]line ТРК (МРК, ГНК) : 42 [11:41:40]line Товар: 2710124130 [11:41:40]line Аи-92-К-5 [11:41:40]line 10.000 * 66.40 [11:41:40]line = 664.00 [11:41:40]line НДС 12% НСП 1% [11:41:40]line > о реализуемом товаре [11:41:40]line ИТОГО: 664.00 [11:41:40]line Внесено: 1000.00 [11:41:40]line СДАЧА: 336.00 [11:41:40]line НСП 1% : 5.88 [11:41:40]line НДС 12% : 70.51 [11:41:40]line Наличными: 664.00 [11:41:40]line Безнал.: 0.00 [11:41:40]line Место: АЗС № 120 "Партнер Нефть" [11:41:40]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [11:41:40]line СНО: Общий режим [11:41:40]line Чек 69 21.06.2024 11:41 [11:41:40]line Смена: 355 ФФД: 1.0 [11:41:40]line ЗНМ: 0300000164 [11:41:40]line РНМ: 0000000000092785 [11:41:40]line Версия ККМ: 001 [11:41:41]line ФМ: 0000000000875093 [11:41:41]line ФД: 104146 [11:41:41]line ФПД: 249115211195223 [11:41:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T114143&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104146&fm=249115211195223&tin=02508201610067®Number=0000000000092785&sum=66400 [11:41:41]OFD Sender: Processing packet 104146 [packets to send 17, broken 16] [11:41:41]ProducePacketName [11:41:41]name=ofd_packets/00104146 [11:41:41]OFD Sender: To server: pG, [11:41:41]CommunicateWithHost lk.salyk.kg:30040 [11:41:41]ConnectInit lk.salyk.kg [11:41:41]written 0, free lines is 4095 [11:41:41]Connected sock=11 [11:41: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 3A 44 07 01 BF F7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 45 00 00 00 F4 03 04 00 F7 66 75 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 D2 96 01 00 35 04 06 00 E2 91 A7 AB E3 57 E5 23 EA 29 DD 70 4A 74 [11:41: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 64 D0 47 00 59 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 D2 96 01 00 F4 03 04 00 7A 0D 75 66 B6 04 01 00 00 02 08 F0 7B 88 EF 9A F2 [11:41:41]CommunicateWithHost err = 0 [11:41:41]CheckOFDResponse [11:41:41]1017 (14) - 77093643461234 [11:41:41]1041 (16) - 0000000000875093 [11:41:41]1040 (4) - 104146 [11:41:41]1012 (4) - 21.06.2024 05:19 [11:41:41]1206 (1) - 0 [11:41:41]OFD Sender: Remove packet 104146 [11:41:41]ProducePacketName [11:41:41]name=ofd_packets/00104146 [11:41:41]NVStorageDeleteData [11:41:41]Write to MH i2c: 01 00 00 E8 21 09 [11:41:41]Write i2c OK [11:41:41]MH_I2C_Read... [11:41:41]Read from MH i2c: 01 [11:41:41]MH_I2C_Read... [11:41:41]Read from MH i2c: 01 07 00 [11:41:41]MH_I2C_Read... [11:41:41]Read from MH i2c: 01 07 00 E8 21 00 00 00 00 00 01 0D 1E [11:41:41]RasterBufferAndPrint [11:41:41]line [11:41:41]line [11:41:41]line [11:41:41]line [11:41:41]line [11:41:41]written 0, free lines is 3338 [11:41:41]MH_Cut [11:41:41]Write to MH i2c: D1 01 00 EF 21 01 E2 [11:41:41]Write i2c OK [11:41:41]MH_I2C_Read... [11:41:41]Read from MH i2c: D1 [11:41:41]MH_I2C_Read... [11:41:41]Read from MH i2c: D1 01 00 [11:41:41]MH_I2C_Read... [11:41:41]Read from MH i2c: D1 01 00 EF 21 00 E1 [11:41:41]Write to MH i2c: 01 00 00 F0 21 11 [11:41:41]Write i2c OK [11:41:41]MH_I2C_Read... [11:41:42]OFD Sender: No OFD packet to send [11:41:42]*** Cut start [11:41:42]*** Partial cut [11:41:42]*** CUTSNS_PIN = 1 [11:41:42]*** CUTSNS_PIN = 0 [11:41:42]*** Brake cut motor [11:41:43]Read from MH i2c: 01 [11:41:43]MH_I2C_Read... [11:41:43]*** Stop cut motor [11:41:43]*** Cut end [11:41:43]Read from MH i2c: 01 07 00 [11:41:43]MH_I2C_Read... [11:41:43]Read from MH i2c: 01 07 00 F0 21 00 00 00 00 00 FF 0F 26 [11:41:43]process_action close_receipt done [11:41:43]requested_data is exist [11:41:43]produce_requested_data [11:41:43]requested_item fm.sn is exist - process it [11:41:43]wFMCommunicate request_size=4 [11:41:43]MH_SAM_APDU [11:41:43]CAPDU: 80 11 00 00 [11:41:43]Write to MH i2c: E2 08 00 F1 21 80 11 00 00 00 00 00 00 8C [11:41:43]Write i2c OK [11:41:43]MH_I2C_Read... [11:41:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:41:43]Read from MH i2c: E2 [11:41:43]MH_I2C_Read... [11:41:43]Read from MH i2c: E2 17 00 [11:41:43]MH_I2C_Read... [11:41:43]Read from MH i2c: E2 17 00 F1 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 DF [11: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 [11:41:43]wFMCommunicate OK [11:41:43]requested_item fd.num is exist - process it [11:41:43]SAM_PROTO_GetFieldsCounters [11:41:43]wFMCommunicate request_size=4 [11:41:43]MH_SAM_APDU [11:41:43]CAPDU: 80 13 00 00 [11:41:43]Write to MH i2c: E2 08 00 F2 21 80 13 00 00 00 00 00 00 8F [11:41:43]Write i2c OK [11:41:43]MH_I2C_Read... [11:41:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:41:43]Read from MH i2c: E2 [11:41:43]MH_I2C_Read... [11:41:43]Read from MH i2c: E2 62 00 [11:41:43]MH_I2C_Read... [11:41:43]Read from MH i2c: E2 62 00 F2 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 D2 96 01 00 0E 04 04 00 63 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 52 [11:41: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 D2 96 01 00 0E 04 04 00 63 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:41:43]wFMCommunicate OK [11:41:43]SAM_PROTO_GetFieldsCounters done [11:41:43]requested_item shift.num is exist - process it [11:41:43]requested_item shift.opened is exist - process it [11:41:43]req_shift_opened [11:41:43]FM_GetShiftState [11:41:43]SAM_PROTO_GetShiftState [11:41:43]wFMCommunicate request_size=4 [11:41:43]MH_SAM_APDU [11:41:43]CAPDU: 80 13 01 00 [11:41:43]Write to MH i2c: E2 08 00 F3 21 80 13 01 00 00 00 00 00 91 [11:41:43]Write i2c OK [11:41:43]MH_I2C_Read... [11:41:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:41:43]Read from MH i2c: E2 [11:41:43]MH_I2C_Read... [11:41:43]Read from MH i2c: E2 0E 00 [11:41:43]MH_I2C_Read... [11:41:43]Read from MH i2c: E2 0E 00 F3 21 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 A4 [11:41:43]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [11:41:43]wFMCommunicate OK [11:41:43]SAM_PROTO_GetShiftState done [11:41:43]FM_GetShiftState done [11:41:43]req_shift_opened done [11:41:43]requested_item shift.open_date is exist - process it [11:41:43]req_shift_open_date [11:41:43]req_shift_open_date done [11:41:43]produce_requested_data done [11:41:43]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104146,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [11:41:43]process_action_free close_receipt [11:41:43]json_value_free [11:41:43]json_value_free done [11:41:43]process_json_proto returns [11:41:43]Send response to host [11:41:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104146,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [11:41:43]free response buf [11:41:43]execute_script done [11:41:43]execute_script returns [11:41:43]free content buf [11:41:43]Sock 7.Close socket [11:41:43]Sock 7.Thread stoped [11:41:47]OFD Sender: No OFD packet to send [11:41:52]OFD Sender: No OFD packet to send [11:41:57]OFD Sender: No OFD packet to send [11:42:01]accept exits with 9 [11:42:01]New connection [11:42:01]New thread 3066715492 created [11:42:01]Thread 3066858852 joined [11:42:01]Waiting for new connection... [11:42:01] Sock 9.Parse request [11:42:01]Sock 9.Check first char [11:42:01]Sock 9.First char is OK [11:42:01]request: POST /json_proto HTTP/1.0 [11:42:01]Method: POST [11:42:01]URL: /json_proto [11:42:01]Method is POST - this is cgi request [11:42:01]url: /json_proto [11:42:01]query_string will be loaded in cgi processing [11:42:01]execute_cgi json_proto POST (null) [11:42:01]execute_cgi path=json_proto method=POST [11:42:01]POST find Content-Length [11:42:01]Host: 172.17.38.133:8080 [11:42:01]Content-Length: 1200 [11:42:01]Content-Type: application/json [11:42:01] [11:42:01]POST finish read [11:42:01]Found Content-Length = 1200 [11:42:01]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)673565\u000A21.06.2024 11: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 86.580 x 72.90\u000A\u0418\u0422\u041E\u0413: 6311.68\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\u000A76486\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:42:01]execute_script... [11:42:01]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)673565\u000A21.06.2024 11: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 86.580 x 72.90\u000A\u0418\u0422\u041E\u0413: 6311.68\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\u000A76486\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:42:01]POST & json_proto [11:42:01]process_json_proto [11:42:01]json parsed OK: [11:42:01]protocol is kg_v1.0 [11:42:01]action value=print_text [11:42:01]process_action print_text [11:42:01]cmd_print_text [11:42:01]ExternCall_PrintAddStr [11:42:01]wPrintStart [11:42:01]Write to MH i2c: 01 00 00 F4 21 15 [11:42:01]Write i2c OK [11:42:01]MH_I2C_Read... [11:42:01]Read from MH i2c: 01 [11:42:01]MH_I2C_Read... [11:42:01]Read from MH i2c: 01 07 00 [11:42:01]MH_I2C_Read... [11:42:01]Read from MH i2c: 01 07 00 F4 21 00 00 00 00 00 FF 0F 2A [11:42:01]RasterBufferAndPrint [11:42:01]line *****ТОВАРНЫЙ ЧЕК***** [11:42:01]line АЗС 120 [11:42:01]line Партнер нефть [11:42:01]line 02508201610067 [11:42:01]line Кассир : Асанбаев Н. [11:42:01]line Счет N : (1)673565 [11:42:01]line 21.06.2024 11:19 [11:42:01]line ПРОДАЖА [11:42:01]line ТРК (МРК, ГНК): 11 [11:42:01]line Вид ГСМ : 2710194210 [11:42:01]line ДТ(л)-К-5 [11:42:01]line 86.580 x 72.90 [11:42:01]line ИТОГ: 6311.68 [11:42:01]line Тип оплаты: Талоны: Топливная Карта [11:42:01]line 76486 [11:42:01]line ______________________ [11:42:01]line (подпись) [11:42:01]written 0, free lines is 4095 [11:42:02]Write to MH i2c: 01 00 00 08 22 2A [11:42:02]Write i2c OK [11:42:02]MH_I2C_Read... [11:42:02]Read from MH i2c: 01 [11:42:02]MH_I2C_Read... [11:42:02]Read from MH i2c: 01 07 00 [11:42:02]MH_I2C_Read... [11:42:02]Read from MH i2c: 01 07 00 08 22 00 00 00 00 00 11 0E 50 [11:42:02]RasterBufferAndPrint [11:42:02]line [11:42:02]line [11:42:02]line [11:42:02]line [11:42:02]line [11:42:02]written 0, free lines is 3603 [11:42:02]MH_Cut [11:42:02]Write to MH i2c: D1 01 00 0F 22 01 03 [11:42:02]Write i2c OK [11:42:02]MH_I2C_Read... [11:42:02]Read from MH i2c: D1 [11:42:02]MH_I2C_Read... [11:42:02]Read from MH i2c: D1 01 00 [11:42:02]MH_I2C_Read... [11:42:02]Read from MH i2c: D1 01 00 0F 22 00 02 [11:42:02]Write to MH i2c: 01 00 00 10 22 32 [11:42:02]Write i2c OK [11:42:02]MH_I2C_Read... [11:42:02]OFD Sender: No OFD packet to send [11:42:02]*** Cut start [11:42:02]*** Partial cut [11:42:02]*** CUTSNS_PIN = 1 [11:42:02]*** CUTSNS_PIN = 0 [11:42:02]*** Brake cut motor [11:42:03]Read from MH i2c: 01 [11:42:03]MH_I2C_Read... [11:42:03]*** Stop cut motor [11:42:03]*** Cut end [11:42:03]Read from MH i2c: 01 07 00 [11:42:03]MH_I2C_Read... [11:42:03]Read from MH i2c: 01 07 00 10 22 00 00 00 00 00 FF 0F 47 [11:42:03]process_action print_text done [11:42:03]requested_data is exist [11:42:03]produce_requested_data [11:42:03]requested_item fm.sn is exist - process it [11:42:03]wFMCommunicate request_size=4 [11:42:03]MH_SAM_APDU [11:42:03]CAPDU: 80 11 00 00 [11:42:03]Write to MH i2c: E2 08 00 11 22 80 11 00 00 00 00 00 00 AD [11:42:03]Write i2c OK [11:42:03]MH_I2C_Read... [11:42:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:42:03]Read from MH i2c: E2 [11:42:03]MH_I2C_Read... [11:42:03]Read from MH i2c: E2 17 00 [11:42:03]MH_I2C_Read... [11:42:03]Read from MH i2c: E2 17 00 11 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 00 [11: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 [11:42:03]wFMCommunicate OK [11:42:03]requested_item fd.num is exist - process it [11:42:03]SAM_PROTO_GetFieldsCounters [11:42:03]wFMCommunicate request_size=4 [11:42:03]MH_SAM_APDU [11:42:03]CAPDU: 80 13 00 00 [11:42:03]Write to MH i2c: E2 08 00 12 22 80 13 00 00 00 00 00 00 B0 [11:42:03]Write i2c OK [11:42:03]MH_I2C_Read... [11:42:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:42:03]Read from MH i2c: E2 [11:42:03]MH_I2C_Read... [11:42:03]Read from MH i2c: E2 62 00 [11:42:03]MH_I2C_Read... [11:42:03]Read from MH i2c: E2 62 00 12 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 D2 96 01 00 0E 04 04 00 63 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 73 [11: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 D2 96 01 00 0E 04 04 00 63 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:42:03]wFMCommunicate OK [11:42:03]SAM_PROTO_GetFieldsCounters done [11:42:03]requested_item shift.num is exist - process it [11:42:03]requested_item shift.opened is exist - process it [11:42:03]req_shift_opened [11:42:03]FM_GetShiftState [11:42:03]SAM_PROTO_GetShiftState [11:42:03]wFMCommunicate request_size=4 [11:42:03]MH_SAM_APDU [11:42:03]CAPDU: 80 13 01 00 [11:42:03]Write to MH i2c: E2 08 00 13 22 80 13 01 00 00 00 00 00 B2 [11:42:03]Write i2c OK [11:42:03]MH_I2C_Read... [11:42:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:42:03]Read from MH i2c: E2 [11:42:03]MH_I2C_Read... [11:42:03]Read from MH i2c: E2 0E 00 [11:42:03]MH_I2C_Read... [11:42:03]Read from MH i2c: E2 0E 00 13 22 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 C5 [11:42:03]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [11:42:03]wFMCommunicate OK [11:42:03]SAM_PROTO_GetShiftState done [11:42:03]FM_GetShiftState done [11:42:03]req_shift_opened done [11:42:03]requested_item shift.open_date is exist - process it [11:42:03]req_shift_open_date [11:42:03]req_shift_open_date done [11:42:03]produce_requested_data done [11:42:03]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104146,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [11:42:03]process_action_free print_text [11:42:03]json_value_free [11:42:03]json_value_free done [11:42:03]process_json_proto returns [11:42:03]Send response to host [11:42:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104146,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [11:42:03]free response buf [11:42:03]execute_script done [11:42:03]execute_script returns [11:42:03]free content buf [11:42:03]Sock 9.Close socket [11:42:03]Sock 9.Thread stoped [11:42:07]OFD Sender: No OFD packet to send [11:42:12]OFD Sender: No OFD packet to send [11:42:17]OFD Sender: No OFD packet to send [11:42:22]OFD Sender: No OFD packet to send [11:42:27]OFD Sender: No OFD packet to send [11:42:32]OFD Sender: No OFD packet to send [11:42:37]OFD Sender: No OFD packet to send [11:42:42]OFD Sender: No OFD packet to send [11:42:47]OFD Sender: No OFD packet to send [11:42:52]OFD Sender: No OFD packet to send [11:42:57]OFD Sender: No OFD packet to send [11:43:02]OFD Sender: No OFD packet to send [11:43:07]OFD Sender: No OFD packet to send [11:43:12]OFD Sender: No OFD packet to send [11:43:17]OFD Sender: No OFD packet to send [11:43:22]OFD Sender: No OFD packet to send [11:43:27]OFD Sender: No OFD packet to send [11:43:32]OFD Sender: No OFD packet to send [11:43:37]OFD Sender: No OFD packet to send [11:43:42]OFD Sender: No OFD packet to send [11:43:47]OFD Sender: No OFD packet to send [11:43:52]OFD Sender: No OFD packet to send [11:43:57]OFD Sender: No OFD packet to send [11:44:02]OFD Sender: No OFD packet to send [11:44:07]OFD Sender: No OFD packet to send [11:44:07]accept exits with 7 [11:44:07]New connection [11:44:07]New thread 3066858852 created [11:44:07]Thread 3066715492 joined [11:44:07]Waiting for new connection... [11:44:07] Sock 7.Parse request [11:44:07]Sock 7.Check first char [11:44:07]Sock 7.First char is OK [11:44:07]request: POST /json_proto HTTP/1.0 [11:44:07]Method: POST [11:44:07]URL: /json_proto [11:44:07]Method is POST - this is cgi request [11:44:07]url: /json_proto [11:44:07]query_string will be loaded in cgi processing [11:44:07]execute_cgi json_proto POST (null) [11:44:07]execute_cgi path=json_proto method=POST [11:44:07]POST find Content-Length [11:44:07]Host: 172.17.38.133:8080 [11:44:07]Content-Length: 687 [11:44:07]Content-Type: application/json [11:44:07] [11:44:07]POST finish read [11:44:07]Found Content-Length = 687 [11:44:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673569", "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" ] } } [11:44:07]execute_script... [11:44: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)673569", "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" ] } } [11:44:07]POST & json_proto [11:44:07]process_json_proto [11:44:07]json parsed OK: [11:44:07]protocol is kg_v1.0 [11:44:07]action value=close_receipt [11:44:07]process_action close_receipt [11:44:07]cmd_close_receipt [11:44:07]MH_GetDate [11:44:07]Write to MH i2c: F0 00 00 14 22 25 [11:44:07]Write i2c OK [11:44:07]MH_I2C_Read... [11:44:07]Read from MH i2c: F0 [11:44:07]MH_I2C_Read... [11:44:07]Read from MH i2c: F0 09 00 [11:44:07]MH_I2C_Read... [11:44:07]Read from MH i2c: F0 09 00 14 22 00 8B 67 75 66 BD 8F 7C 64 27 [11:44:07]GetLastDocTimeStamp 1718970103 [11:44:07]current date 1718970251 [11:44:07]FM_GetShiftState [11:44:07]SAM_PROTO_GetShiftState [11:44:07]wFMCommunicate request_size=4 [11:44:07]MH_SAM_APDU [11:44:07]CAPDU: 80 13 01 00 [11:44:07]Write to MH i2c: E2 08 00 15 22 80 13 01 00 00 00 00 00 B4 [11:44:07]Write i2c OK [11:44:07]MH_I2C_Read... [11:44:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:44:07]Read from MH i2c: E2 [11:44:07]MH_I2C_Read... [11:44:07]Read from MH i2c: E2 0E 00 [11:44:07]MH_I2C_Read... [11:44:07]Read from MH i2c: E2 0E 00 15 22 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 C7 [11:44:07]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [11:44:07]wFMCommunicate OK [11:44:07]SAM_PROTO_GetShiftState done [11:44:07]FM_GetShiftState done [11:44:07]opened in 1718929509 [11:44:07]opened+sec_in_day 1719015909 [11:44:07]quantity*price = 250047 [11:44:07]sum+1 = 250048 [11:44:07]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 СНО: Общий режим Чек 70 21.06.2024 11:44 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104147 ФПД: 241030799204223 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T114411&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104147&fm=241030799204223&tin=02508201610067®Number=0000000000092785&sum=250000 [11:44:08]StoreToDocumentArchive [11:44:08]shift 355 fd 104147 [11:44:08]save to /storage/0355/doc_00104147 [11:44:08]save last doc name /storage/0355/doc_00104147 to /storage/kkm_last_doc_name [11:44:08]save OK [11:44:08]Clear old archive folders... [11:44:08]ProcessDocumentItem done err = 0, tmpTLVsize=252 [11:44:08]tlvbuf is 0118B490 [11:44:08]SAM_PROTO_ClearQueue [11:44:08]wFMCommunicate request_size=4 [11:44:08]MH_SAM_APDU [11:44:08]CAPDU: 80 09 00 00 [11:44:08]Write to MH i2c: E2 08 00 22 22 80 09 00 00 00 00 00 00 B6 [11:44:08]Write i2c OK [11:44:08]MH_I2C_Read... [11:44:08]Read from MH i2c: E2 [11:44:08]MH_I2C_Read... [11:44:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:44:08]Read from MH i2c: E2 03 00 [11:44:08]MH_I2C_Read... [11:44:08]Read from MH i2c: E2 03 00 22 22 00 90 00 B8 [11:44:08]RAPDU: 90 00 [11:44:08]wFMCommunicate OK [11:44:08]SAM_PROTO_ClearQueue done [11:44:08]KKMCreateOFDPacket [11:44:08]OFDProtocolAddRootSTLVToBuf [11:44:08]FM_MakeSignedData [11:44:08]FM_MakeSignedData [11:44:08]SAM_PROTO_SignData [11:44:08]wFMCommunicate request_size=4 [11:44:08]MH_SAM_APDU [11:44:08]CAPDU: 80 0D 01 02 [11:44:08]Write to MH i2c: E2 08 00 23 22 80 0D 01 02 00 00 00 00 BE [11:44:08]Write i2c OK [11:44:08]MH_I2C_Read... [11:44:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:44:08]Read from MH i2c: E2 [11:44:08]MH_I2C_Read... [11:44:08]Read from MH i2c: E2 03 00 [11:44:08]MH_I2C_Read... [11:44:08]Read from MH i2c: E2 03 00 23 22 00 90 00 B9 [11:44:08]RAPDU: 90 00 [11:44:08]wFMCommunicate OK [11:44:08]wFMCommunicate request_size=255 [11:44:08]MH_SAM_APDU [11:44:08]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 46 00 00 00 F4 03 04 00 8B 67 75 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 D3 96 01 00 35 04 06 00 [11:44:08]Write to MH i2c: E2 02 01 24 22 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 46 00 00 00 F4 03 04 00 8B 67 75 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 D3 96 01 00 35 04 06 00 00 00 27 [11:44:08]Write i2c OK [11:44:08]MH_I2C_Read... [11:44:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:44:09]Read from MH i2c: E2 [11:44:09]MH_I2C_Read... [11:44:09]Read from MH i2c: E2 03 00 [11:44:09]MH_I2C_Read... [11:44:09]Read from MH i2c: E2 03 00 24 22 00 90 00 BA [11:44:09]RAPDU: 90 00 [11:44:09]wFMCommunicate OK [11:44:09]wFMCommunicate request_size=11 [11:44:09]MH_SAM_APDU [11:44:09]CAPDU: 80 0D 02 02 06 DB 37 5B 2A 9F 7F [11:44:09]Write to MH i2c: E2 0E 00 25 22 80 0D 02 02 06 00 DB 37 5B 2A 9F 7F 00 00 82 [11:44:09]Write i2c OK [11:44:09]MH_I2C_Read... [11:44:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:44:09]Read from MH i2c: E2 [11:44:09]MH_I2C_Read... [11:44:09]Read from MH i2c: E2 03 00 [11:44:09]MH_I2C_Read... [11:44:09]Read from MH i2c: E2 03 00 25 22 00 90 00 BB [11:44:09]RAPDU: 90 00 [11:44:09]wFMCommunicate OK [11:44:09]wFMCommunicate request_size=4 [11:44:09]MH_SAM_APDU [11:44:09]CAPDU: 80 0D 03 02 [11:44:09]Write to MH i2c: E2 08 00 26 22 80 0D 03 02 00 00 00 00 C3 [11:44:09]Write i2c OK [11:44:09]MH_I2C_Read... [11:44:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:44:09]Read from MH i2c: E2 [11:44:09]MH_I2C_Read... [11:44:09]Read from MH i2c: E2 0B 00 [11:44:09]MH_I2C_Read... [11:44:09]Read from MH i2c: E2 0B 00 26 22 00 F0 DC AB 7F 2C 6A 7E 82 90 00 50 [11:44:09]RAPDU: F0 DC AB 7F 2C 6A 7E 82 90 00 [11:44:09]wFMCommunicate OK [11:44:09]SAM_PROTO_SignData done [11:44:09]FM_MakeSignedData done [11:44:09]CreateOFDProtocolMessage [11:44:09]wFMCommunicate request_size=4 [11:44:09]MH_SAM_APDU [11:44:09]CAPDU: 80 11 00 00 [11:44:09]Write to MH i2c: E2 08 00 27 22 80 11 00 00 00 00 00 00 C3 [11:44:09]Write i2c OK [11:44:09]MH_I2C_Read... [11:44:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:44:09]Read from MH i2c: E2 [11:44:09]MH_I2C_Read... [11:44:09]Read from MH i2c: E2 17 00 [11:44:09]MH_I2C_Read... [11:44:09]Read from MH i2c: E2 17 00 27 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 16 [11:44: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:44:09]wFMCommunicate OK [11:44:09]CreateOFDProtocolMessage done [11:44:09]OFDSenderStorePacket 104147 [11:44:09]StoreOFDPacket docnum=104147 [11:44: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 10 01 00 00 F4 F5 08 01 7B B8 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 46 00 00 00 F4 03 04 00 8B 67 75 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 D3 96 01 00 35 04 06 00 DB 37 5B 2A 9F 7F F0 DC AB 7F 2C 6A 7E 82 [11:44:09]CheckFolder [11:44:09]dirname=/storage/ofd_packets [11:44:09]CheckFolder done [11:44:09]ProducePacketName [11:44:09]name=ofd_packets/00104147 [11:44:09]NVStorageSaveData ofd_packets/00104147 [11:44:09]File name is /storage/ofd_packets/00104147 [11:44:09]Write 302 bytes [11:44:09]NVStorageSaveData done [11:44:09]OFDSenderStorePacket done [11:44:09]KKMCreateOFDPacket done [11:44:09]NVStorageSaveData kkm_last_timestamp [11:44:09]File name is /storage/kkm_last_timestamp [11:44:09]Write 4 bytes [11:44:09]NVStorageSaveData done [11:44:09]ExternCall_PrintAddStr [11:44:09]wPrintStart [11:44:09]Write to MH i2c: 01 00 00 28 22 4A [11:44:09]Write i2c OK [11:44:09]MH_I2C_Read... [11:44:09]Read from MH i2c: 01 [11:44:09]MH_I2C_Read... [11:44:09]Read from MH i2c: 01 07 00 [11:44:09]MH_I2C_Read... [11:44:09]Read from MH i2c: 01 07 00 28 22 00 00 00 00 00 FF 0F 5F [11:44:09]RasterBufferAndPrint [11:44:09]line Счет N : (1)673569 [11:44:09]line ИНН: 02508201610067 [11:44:09]line Контрольно-Кассовый Чек [11:44:09]line ПРОДАЖА [11:44:09]line ТРК (МРК, ГНК) : 11 [11:44:09]line Товар: 2710194210 [11:44:09]line ДТ(л)-К-5 [11:44:09]line 34.300 * 72.90 [11:44:09]line = 2500.47 [11:44:09]line НДС 12% НСП 1% [11:44:09]line > о реализуемом товаре [11:44:09]line ОКРУГЛЕНИЕ: -0.47 [11:44:09]line ИТОГО: 2500.00 [11:44:09]line Внесено: 2500.00 [11:44:09]line СДАЧА: 0.00 [11:44:09]line НСП 1% : 22.13 [11:44:09]line НДС 12% : 265.54 [11:44:09]line Наличными: 2500.00 [11:44:09]line Безнал.: 0.00 [11:44:09]line Место: АЗС № 120 "Партнер Нефть" [11:44:09]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [11:44:09]line СНО: Общий режим [11:44:09]line Чек 70 21.06.2024 11:44 [11:44:09]line Смена: 355 ФФД: 1.0 [11:44:09]line ЗНМ: 0300000164 [11:44:09]line РНМ: 0000000000092785 [11:44:09]line Версия ККМ: 001 [11:44:09]line ФМ: 0000000000875093 [11:44:09]line ФД: 104147 [11:44:09]line ФПД: 241030799204223 [11:44:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T114411&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104147&fm=241030799204223&tin=02508201610067®Number=0000000000092785&sum=250000 [11:44:09]OFD Sender: Processing packet 104147 [packets to send 17, broken 16] [11:44:09]ProducePacketName [11:44:09]name=ofd_packets/00104147 [11:44:09]OFD Sender: To server: pG, [11:44:09]CommunicateWithHost lk.salyk.kg:30040 [11:44:09]ConnectInit lk.salyk.kg [11:44:09]written 0, free lines is 4095 [11:44:09]Connected sock=10 [11:44: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 10 01 00 00 F4 F5 08 01 7B B8 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 46 00 00 00 F4 03 04 00 8B 67 75 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 D3 96 01 00 35 04 06 00 DB 37 5B 2A 9F 7F F0 DC AB 7F 2C 6A 7E 82 [11:44: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 E7 7B 47 00 3F 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 D3 96 01 00 F4 03 04 00 0E 0E 75 66 B6 04 01 00 00 6C C2 9A C4 1E 75 BC 59 [11:44:10]CommunicateWithHost err = 0 [11:44:10]CheckOFDResponse [11:44:10]1017 (14) - 77093643461234 [11:44:10]1041 (16) - 0000000000875093 [11:44:10]1040 (4) - 104147 [11:44:10]1012 (4) - 21.06.2024 05:22 [11:44:10]1206 (1) - 0 [11:44:10]OFD Sender: Remove packet 104147 [11:44:10]ProducePacketName [11:44:10]name=ofd_packets/00104147 [11:44:10]NVStorageDeleteData [11:44:10]Write to MH i2c: 01 00 00 53 22 75 [11:44:10]Write i2c OK [11:44:10]MH_I2C_Read... [11:44:10]Read from MH i2c: 01 [11:44:10]MH_I2C_Read... [11:44:10]Read from MH i2c: 01 07 00 [11:44:10]MH_I2C_Read... [11:44:10]Read from MH i2c: 01 07 00 53 22 00 00 00 00 00 F4 0C 7C [11:44:10]RasterBufferAndPrint [11:44:10]line [11:44:10]line [11:44:10]line [11:44:10]line [11:44:10]line [11:44:10]written 0, free lines is 3323 [11:44:10]MH_Cut [11:44:10]Write to MH i2c: D1 01 00 5A 22 01 4E [11:44:10]Write i2c OK [11:44:10]MH_I2C_Read... [11:44:10]Read from MH i2c: D1 [11:44:10]MH_I2C_Read... [11:44:10]Read from MH i2c: D1 01 00 [11:44:10]MH_I2C_Read... [11:44:10]Read from MH i2c: D1 01 00 5A 22 00 4D [11:44:10]Write to MH i2c: 01 00 00 5B 22 7D [11:44:10]Write i2c OK [11:44:10]MH_I2C_Read... [11:44:10]OFD Sender: No OFD packet to send [11:44:10]*** Cut start [11:44:10]*** Partial cut [11:44:10]*** CUTSNS_PIN = 1 [11:44:10]*** CUTSNS_PIN = 0 [11:44:11]*** Brake cut motor [11:44:11]Read from MH i2c: 01 [11:44:11]MH_I2C_Read... [11:44:11]*** Stop cut motor [11:44:11]*** Cut end [11:44:11]Read from MH i2c: 01 07 00 [11:44:11]MH_I2C_Read... [11:44:11]Read from MH i2c: 01 07 00 5B 22 00 00 00 00 00 FF 0F 92 [11:44:11]process_action close_receipt done [11:44:11]requested_data is exist [11:44:11]produce_requested_data [11:44:11]requested_item fm.sn is exist - process it [11:44:11]wFMCommunicate request_size=4 [11:44:11]MH_SAM_APDU [11:44:11]CAPDU: 80 11 00 00 [11:44:11]Write to MH i2c: E2 08 00 5C 22 80 11 00 00 00 00 00 00 F8 [11:44:11]Write i2c OK [11:44:11]MH_I2C_Read... [11:44:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:44:11]Read from MH i2c: E2 [11:44:11]MH_I2C_Read... [11:44:11]Read from MH i2c: E2 17 00 [11:44:11]MH_I2C_Read... [11:44:11]Read from MH i2c: E2 17 00 5C 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 4B [11:44: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:44:11]wFMCommunicate OK [11:44:11]requested_item fd.num is exist - process it [11:44:11]SAM_PROTO_GetFieldsCounters [11:44:11]wFMCommunicate request_size=4 [11:44:11]MH_SAM_APDU [11:44:11]CAPDU: 80 13 00 00 [11:44:11]Write to MH i2c: E2 08 00 5D 22 80 13 00 00 00 00 00 00 FB [11:44:11]Write i2c OK [11:44:11]MH_I2C_Read... [11:44:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:44:11]Read from MH i2c: E2 [11:44:11]MH_I2C_Read... [11:44:11]Read from MH i2c: E2 62 00 [11:44:11]MH_I2C_Read... [11:44:11]Read from MH i2c: E2 62 00 5D 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 D3 96 01 00 0E 04 04 00 63 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 C2 [11:44: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 D3 96 01 00 0E 04 04 00 63 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:44:11]wFMCommunicate OK [11:44:11]SAM_PROTO_GetFieldsCounters done [11:44:11]requested_item shift.num is exist - process it [11:44:11]requested_item shift.opened is exist - process it [11:44:11]req_shift_opened [11:44:11]FM_GetShiftState [11:44:11]SAM_PROTO_GetShiftState [11:44:11]wFMCommunicate request_size=4 [11:44:11]MH_SAM_APDU [11:44:11]CAPDU: 80 13 01 00 [11:44:11]Write to MH i2c: E2 08 00 5E 22 80 13 01 00 00 00 00 00 FD [11:44:11]Write i2c OK [11:44:11]MH_I2C_Read... [11:44:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:44:11]Read from MH i2c: E2 [11:44:11]MH_I2C_Read... [11:44:11]Read from MH i2c: E2 0E 00 [11:44:11]MH_I2C_Read... [11:44:11]Read from MH i2c: E2 0E 00 5E 22 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 10 [11:44:11]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [11:44:11]wFMCommunicate OK [11:44:11]SAM_PROTO_GetShiftState done [11:44:11]FM_GetShiftState done [11:44:11]req_shift_opened done [11:44:11]requested_item shift.open_date is exist - process it [11:44:11]req_shift_open_date [11:44:11]req_shift_open_date done [11:44:11]produce_requested_data done [11:44:11]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104147,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [11:44:11]process_action_free close_receipt [11:44:11]json_value_free [11:44:11]json_value_free done [11:44:11]process_json_proto returns [11:44:11]Send response to host [11:44:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104147,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [11:44:11]free response buf [11:44:11]execute_script done [11:44:11]execute_script returns [11:44:11]free content buf [11:44:11]Sock 7.Close socket [11:44:11]Sock 7.Thread stoped [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:31]accept exits with 9 [11:45:31]New connection [11:45:31]New thread 3066715492 created [11:45:31]Thread 3066858852 joined [11:45:31]Waiting for new connection... [11:45:31] Sock 9.Parse request [11:45:31]Sock 9.Check first char [11:45:31]Sock 9.First char is OK [11:45:31]request: POST /json_proto HTTP/1.0 [11:45:31]Method: POST [11:45:31]URL: /json_proto [11:45:31]Method is POST - this is cgi request [11:45:31]url: /json_proto [11:45:31]query_string will be loaded in cgi processing [11:45:31]execute_cgi json_proto POST (null) [11:45:31]execute_cgi path=json_proto method=POST [11:45:31]POST find Content-Length [11:45:31]Host: 172.17.38.133:8080 [11:45:31]Content-Length: 1157 [11:45:31]Content-Type: application/json [11:45:31] [11:45:31]POST finish read [11:45:31]Found Content-Length = 1157 [11:45: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 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)673570\u000A21.06.2024 11:22\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\u000A30045480\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:45:31]execute_script... [11:45: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 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)673570\u000A21.06.2024 11:22\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\u000A30045480\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:45:31]POST & json_proto [11:45:31]process_json_proto [11:45:31]json parsed OK: [11:45:31]protocol is kg_v1.0 [11:45:31]action value=print_text [11:45:31]process_action print_text [11:45:31]cmd_print_text [11:45:31]ExternCall_PrintAddStr [11:45:31]wPrintStart [11:45:31]Write to MH i2c: 01 00 00 5F 22 81 [11:45:31]Write i2c OK [11:45:31]MH_I2C_Read... [11:45:31]Read from MH i2c: 01 [11:45:31]MH_I2C_Read... [11:45:31]Read from MH i2c: 01 07 00 [11:45:31]MH_I2C_Read... [11:45:31]Read from MH i2c: 01 07 00 5F 22 00 00 00 00 00 FF 0F 96 [11:45:31]RasterBufferAndPrint [11:45:31]line *****ТОВАРНЫЙ ЧЕК***** [11:45:31]line АЗС 120 [11:45:31]line Партнер нефть [11:45:31]line 02508201610067 [11:45:31]line Кассир : Асанбаев Н. [11:45:31]line Счет N : (1)673570 [11:45:31]line 21.06.2024 11:22 [11:45:31]line ПРОДАЖА [11:45:31]line ТРК (МРК, ГНК): 32 [11:45:31]line Вид ГСМ : 2710124130 [11:45:31]line Аи-92-К-5 [11:45:31]line 20.000 x 66.40 [11:45:31]line ИТОГ: 1328.00 [11:45:31]line Тип оплаты: Талоны: ТК ГПНА Online [11:45:31]line 30045480 [11:45:31]line ______________________ [11:45:31]line (подпись) [11:45:31]written 0, free lines is 4095 [11:45:31]Write to MH i2c: 01 00 00 73 22 95 [11:45:31]Write i2c OK [11:45:31]MH_I2C_Read... [11:45:31]Read from MH i2c: 01 [11:45:31]MH_I2C_Read... [11:45:31]Read from MH i2c: 01 07 00 [11:45:31]MH_I2C_Read... [11:45:31]Read from MH i2c: 01 07 00 73 22 00 00 00 00 00 11 0E BB [11:45:31]RasterBufferAndPrint [11:45:31]line [11:45:31]line [11:45:31]line [11:45:31]line [11:45:31]line [11:45:31]written 0, free lines is 3603 [11:45:31]MH_Cut [11:45:31]Write to MH i2c: D1 01 00 7A 22 01 6E [11:45:31]Write i2c OK [11:45:31]MH_I2C_Read... [11:45:31]Read from MH i2c: D1 [11:45:31]MH_I2C_Read... [11:45:31]Read from MH i2c: D1 01 00 [11:45:31]MH_I2C_Read... [11:45:31]Read from MH i2c: D1 01 00 7A 22 00 6D [11:45:31]Write to MH i2c: 01 00 00 7B 22 9D [11:45:31]Write i2c OK [11:45:31]MH_I2C_Read... [11:45:31]*** Cut start [11:45:31]*** Partial cut [11:45:31]*** CUTSNS_PIN = 1 [11:45:31]*** CUTSNS_PIN = 0 [11:45:32]*** Brake cut motor [11:45:32]Read from MH i2c: 01 [11:45:32]MH_I2C_Read... [11:45:32]*** Stop cut motor [11:45:32]*** Cut end [11:45:32]Read from MH i2c: 01 07 00 [11:45:32]MH_I2C_Read... [11:45:32]Read from MH i2c: 01 07 00 7B 22 00 00 00 00 00 FF 0F B2 [11:45:32]process_action print_text done [11:45:32]requested_data is exist [11:45:32]produce_requested_data [11:45:32]requested_item fm.sn is exist - process it [11:45:32]wFMCommunicate request_size=4 [11:45:32]MH_SAM_APDU [11:45:32]CAPDU: 80 11 00 00 [11:45:32]Write to MH i2c: E2 08 00 7C 22 80 11 00 00 00 00 00 00 18 [11:45:32]Write i2c OK [11:45:32]MH_I2C_Read... [11:45:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:45:32]Read from MH i2c: E2 [11:45:32]MH_I2C_Read... [11:45:32]Read from MH i2c: E2 17 00 [11:45:32]MH_I2C_Read... [11:45:32]Read from MH i2c: E2 17 00 7C 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 6B [11:45: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:45:32]wFMCommunicate OK [11:45:32]requested_item fd.num is exist - process it [11:45:32]SAM_PROTO_GetFieldsCounters [11:45:32]wFMCommunicate request_size=4 [11:45:32]MH_SAM_APDU [11:45:32]CAPDU: 80 13 00 00 [11:45:32]Write to MH i2c: E2 08 00 7D 22 80 13 00 00 00 00 00 00 1B [11:45:32]Write i2c OK [11:45:32]MH_I2C_Read... [11:45:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:45:32]Read from MH i2c: E2 [11:45:32]MH_I2C_Read... [11:45:32]Read from MH i2c: E2 62 00 [11:45:32]MH_I2C_Read... [11:45:32]Read from MH i2c: E2 62 00 7D 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 D3 96 01 00 0E 04 04 00 63 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 E2 [11:45: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 D3 96 01 00 0E 04 04 00 63 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:45:32]wFMCommunicate OK [11:45:32]SAM_PROTO_GetFieldsCounters done [11:45:32]requested_item shift.num is exist - process it [11:45:32]requested_item shift.opened is exist - process it [11:45:32]req_shift_opened [11:45:32]FM_GetShiftState [11:45:32]SAM_PROTO_GetShiftState [11:45:32]wFMCommunicate request_size=4 [11:45:32]MH_SAM_APDU [11:45:32]CAPDU: 80 13 01 00 [11:45:32]Write to MH i2c: E2 08 00 7E 22 80 13 01 00 00 00 00 00 1D [11:45:32]Write i2c OK [11:45:32]MH_I2C_Read... [11:45:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:45:32]Read from MH i2c: E2 [11:45:32]MH_I2C_Read... [11:45:32]Read from MH i2c: E2 0E 00 [11:45:32]MH_I2C_Read... [11:45:32]Read from MH i2c: E2 0E 00 7E 22 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 30 [11:45:32]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [11:45:32]wFMCommunicate OK [11:45:32]SAM_PROTO_GetShiftState done [11:45:32]FM_GetShiftState done [11:45:32]req_shift_opened done [11:45:32]requested_item shift.open_date is exist - process it [11:45:32]req_shift_open_date [11:45:32]req_shift_open_date done [11:45:32]produce_requested_data done [11:45:32]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104147,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [11:45:32]process_action_free print_text [11:45:32]json_value_free [11:45:32]json_value_free done [11:45:32]process_json_proto returns [11:45:32]Send response to host [11:45:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104147,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [11:45:32]free response buf [11:45:32]execute_script done [11:45:32]execute_script returns [11:45:32]free content buf [11:45:32]Sock 9.Close socket [11:45:32]Sock 9.Thread stoped [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:50]OFD Sender: No OFD packet to send [11:47:55]OFD Sender: No OFD packet to send [11:48:00]OFD Sender: No OFD packet to send [11:48:05]OFD Sender: No OFD packet to send [11:48:10]OFD Sender: No OFD packet to send [11:48:15]OFD Sender: No OFD packet to send [11:48:20]OFD Sender: No OFD packet to send [11:48:25]OFD Sender: No OFD packet to send [11:48:30]OFD Sender: No OFD packet to send [11:48:35]OFD Sender: No OFD packet to send [11:48:40]OFD Sender: No OFD packet to send [11:48:45]OFD Sender: No OFD packet to send [11:48:50]OFD Sender: No OFD packet to send [11:48:54]accept exits with 7 [11:48:54]New connection [11:48:54]New thread 3066858852 created [11:48:54]Thread 3066715492 joined [11:48:54]Waiting for new connection... [11:48:54] Sock 7.Parse request [11:48:54]Sock 7.Check first char [11:48:54]Sock 7.First char is OK [11:48:54]request: POST /json_proto HTTP/1.0 [11:48:54]Method: POST [11:48:54]URL: /json_proto [11:48:54]Method is POST - this is cgi request [11:48:54]url: /json_proto [11:48:54]query_string will be loaded in cgi processing [11:48:54]execute_cgi json_proto POST (null) [11:48:54]execute_cgi path=json_proto method=POST [11:48:54]POST find Content-Length [11:48:54]Host: 172.17.38.133:8080 [11:48:54]Content-Length: 819 [11:48:54]Content-Type: application/json [11:48:54] [11:48:54]POST finish read [11:48:54]Found Content-Length = 819 [11:48:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673571", "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" : 18.080, "sum" : 1200.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1200.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:48:54]execute_script... [11:48: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)673571", "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" : 18.080, "sum" : 1200.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1200.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:48:54]POST & json_proto [11:48:54]process_json_proto [11:48:54]json parsed OK: [11:48:54]protocol is kg_v1.0 [11:48:54]action value=close_receipt [11:48:54]process_action close_receipt [11:48:54]cmd_close_receipt [11:48:54]MH_GetDate [11:48:54]Write to MH i2c: F0 00 00 7F 22 90 [11:48:54]Write i2c OK [11:48:54]MH_I2C_Read... [11:48:54]Read from MH i2c: F0 [11:48:54]MH_I2C_Read... [11:48:54]Read from MH i2c: F0 09 00 [11:48:54]MH_I2C_Read... [11:48:54]Read from MH i2c: F0 09 00 7F 22 00 AA 68 75 66 BD 8F 7C 64 B2 [11:48:54]GetLastDocTimeStamp 1718970251 [11:48:54]current date 1718970538 [11:48:54]FM_GetShiftState [11:48:54]SAM_PROTO_GetShiftState [11:48:54]wFMCommunicate request_size=4 [11:48:54]MH_SAM_APDU [11:48:54]CAPDU: 80 13 01 00 [11:48:54]Write to MH i2c: E2 08 00 80 22 80 13 01 00 00 00 00 00 1F [11:48:54]Write i2c OK [11:48:54]MH_I2C_Read... [11:48:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:48:54]Read from MH i2c: E2 [11:48:54]MH_I2C_Read... [11:48:54]Read from MH i2c: E2 0E 00 [11:48:54]MH_I2C_Read... [11:48:54]Read from MH i2c: E2 0E 00 80 22 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 32 [11:48:54]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [11:48:54]wFMCommunicate OK [11:48:54]SAM_PROTO_GetShiftState done [11:48:54]FM_GetShiftState done [11:48:54]opened in 1718929509 [11:48:54]opened+sec_in_day 1719015909 [11:48:54]quantity*price = 120051 [11:48:54]sum+1 = 120052 [11:48:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1200.51 НСП 1% : 10.62 НДС 12% : 127.49 Наличными: 0.00 Безнал.: 1200.51 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 71 21.06.2024 11:48 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875093 ФД: 104148 ФПД: 84605906954264 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T114858&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104148&fm=84605906954264&tin=02508201610067®Number=0000000000092785&sum=120051 [11:48:55]StoreToDocumentArchive [11:48:55]shift 355 fd 104148 [11:48:55]save to /storage/0355/doc_00104148 [11:48:55]save last doc name /storage/0355/doc_00104148 to /storage/kkm_last_doc_name [11:48:55]save OK [11:48:55]Clear old archive folders... [11:48:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:48:55]tlvbuf is 01134E90 [11:48:55]SAM_PROTO_ClearQueue [11:48:55]wFMCommunicate request_size=4 [11:48:55]MH_SAM_APDU [11:48:55]CAPDU: 80 09 00 00 [11:48:55]Write to MH i2c: E2 08 00 8D 22 80 09 00 00 00 00 00 00 21 [11:48:55]Write i2c OK [11:48:55]MH_I2C_Read... [11:48:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:48:55]Read from MH i2c: E2 [11:48:55]MH_I2C_Read... [11:48:55]Read from MH i2c: E2 03 00 [11:48:55]MH_I2C_Read... [11:48:55]Read from MH i2c: E2 03 00 8D 22 00 90 00 23 [11:48:55]RAPDU: 90 00 [11:48:55]wFMCommunicate OK [11:48:55]SAM_PROTO_ClearQueue done [11:48:55]KKMCreateOFDPacket [11:48:55]OFDProtocolAddRootSTLVToBuf [11:48:55]FM_MakeSignedData [11:48:55]FM_MakeSignedData [11:48:55]SAM_PROTO_SignData [11:48:55]wFMCommunicate request_size=4 [11:48:55]MH_SAM_APDU [11:48:55]CAPDU: 80 0D 01 02 [11:48:55]Write to MH i2c: E2 08 00 8E 22 80 0D 01 02 00 00 00 00 29 [11:48:55]Write i2c OK [11:48:55]MH_I2C_Read... [11:48:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:48:55]Read from MH i2c: E2 [11:48:55]MH_I2C_Read... [11:48:55]Read from MH i2c: E2 03 00 [11:48:55]MH_I2C_Read... [11:48:55]Read from MH i2c: E2 03 00 8E 22 00 90 00 24 [11:48:55]RAPDU: 90 00 [11:48:55]wFMCommunicate OK [11:48:55]wFMCommunicate request_size=255 [11:48:55]MH_SAM_APDU [11:48: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 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 F3 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 00 00 00 00 00 00 39 04 06 00 F3 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 AA 68 75 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 D4 96 01 00 35 04 06 00 4C [11:48:55]Write to MH i2c: E2 02 01 8F 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 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 F3 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 00 00 00 00 00 00 39 04 06 00 F3 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 AA 68 75 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 D4 96 01 00 35 04 06 00 4C 00 00 F7 [11:48:55]Write i2c OK [11:48:55]MH_I2C_Read... [11:48:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:48:55]Read from MH i2c: E2 [11:48:55]MH_I2C_Read... [11:48:55]Read from MH i2c: E2 03 00 [11:48:55]MH_I2C_Read... [11:48:55]Read from MH i2c: E2 03 00 8F 22 00 90 00 25 [11:48:55]RAPDU: 90 00 [11:48:55]wFMCommunicate OK [11:48:55]wFMCommunicate request_size=10 [11:48:55]MH_SAM_APDU [11:48:55]CAPDU: 80 0D 02 02 05 F2 D9 07 A8 18 [11:48:55]Write to MH i2c: E2 0D 00 90 22 80 0D 02 02 05 00 F2 D9 07 A8 18 00 00 C8 [11:48:55]Write i2c OK [11:48:55]MH_I2C_Read... [11:48:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:48:55]Read from MH i2c: E2 [11:48:55]MH_I2C_Read... [11:48:55]Read from MH i2c: E2 03 00 [11:48:55]MH_I2C_Read... [11:48:55]Read from MH i2c: E2 03 00 90 22 00 90 00 26 [11:48:55]RAPDU: 90 00 [11:48:55]wFMCommunicate OK [11:48:55]wFMCommunicate request_size=4 [11:48:55]MH_SAM_APDU [11:48:55]CAPDU: 80 0D 03 02 [11:48:55]Write to MH i2c: E2 08 00 91 22 80 0D 03 02 00 00 00 00 2E [11:48:55]Write i2c OK [11:48:55]MH_I2C_Read... [11:48:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:48:55]Read from MH i2c: E2 [11:48:55]MH_I2C_Read... [11:48:55]Read from MH i2c: E2 0B 00 [11:48:55]MH_I2C_Read... [11:48:55]Read from MH i2c: E2 0B 00 91 22 00 43 6E FB E9 8D F5 45 34 90 00 BF [11:48:55]RAPDU: 43 6E FB E9 8D F5 45 34 90 00 [11:48:55]wFMCommunicate OK [11:48:55]SAM_PROTO_SignData done [11:48:55]FM_MakeSignedData done [11:48:55]CreateOFDProtocolMessage [11:48:55]wFMCommunicate request_size=4 [11:48:55]MH_SAM_APDU [11:48:55]CAPDU: 80 11 00 00 [11:48:55]Write to MH i2c: E2 08 00 92 22 80 11 00 00 00 00 00 00 2E [11:48:55]Write i2c OK [11:48:55]MH_I2C_Read... [11:48:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:48:55]Read from MH i2c: E2 [11:48:55]MH_I2C_Read... [11:48:55]Read from MH i2c: E2 17 00 [11:48:55]MH_I2C_Read... [11:48:55]Read from MH i2c: E2 17 00 92 22 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: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 [11:48:55]wFMCommunicate OK [11:48:55]CreateOFDProtocolMessage done [11:48:55]OFDSenderStorePacket 104148 [11:48:55]StoreOFDPacket docnum=104148 [11:48: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 B1 C6 07 01 C3 8C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 F3 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 00 00 00 00 00 00 39 04 06 00 F3 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 AA 68 75 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 D4 96 01 00 35 04 06 00 4C F2 D9 07 A8 18 43 6E FB E9 8D F5 45 34 [11:48:55]CheckFolder [11:48:55]dirname=/storage/ofd_packets [11:48:55]CheckFolder done [11:48:55]ProducePacketName [11:48:55]name=ofd_packets/00104148 [11:48:55]NVStorageSaveData ofd_packets/00104148 [11:48:55]File name is /storage/ofd_packets/00104148 [11:48:55]Write 301 bytes [11:48:55]NVStorageSaveData done [11:48:55]OFDSenderStorePacket done [11:48:55]KKMCreateOFDPacket done [11:48:55]NVStorageSaveData kkm_last_timestamp [11:48:55]File name is /storage/kkm_last_timestamp [11:48:55]Write 4 bytes [11:48:55]NVStorageSaveData done [11:48:55]ExternCall_PrintAddStr [11:48:55]wPrintStart [11:48:55]Write to MH i2c: 01 00 00 93 22 B5 [11:48:55]Write i2c OK [11:48:55]MH_I2C_Read... [11:48:55]Read from MH i2c: 01 [11:48:55]MH_I2C_Read... [11:48:55]Read from MH i2c: 01 07 00 [11:48:55]MH_I2C_Read... [11:48:55]Read from MH i2c: 01 07 00 93 22 00 00 00 00 00 FF 0F CA [11:48:55]RasterBufferAndPrint [11:48:55]line Счет N : (1)673571 [11:48:55]line ИНН: 02508201610067 [11:48:55]line Контрольно-Кассовый Чек [11:48:55]line ПРОДАЖА [11:48:55]line ТРК (МРК, ГНК) : 32 [11:48:55]line Товар: 2710124130 [11:48:55]line Аи-92-К-5 [11:48:55]line 18.080 * 66.40 [11:48:55]line = 1200.51 [11:48:55]line НДС 12% НСП 1% [11:48:55]line > о реализуемом товаре [11:48:55]line ИТОГО: 1200.51 [11:48:55]line НСП 1% : 10.62 [11:48:55]line НДС 12% : 127.49 [11:48:55]line Наличными: 0.00 [11:48:55]line Безнал.: 1200.51 [11:48:55]line Место: АЗС № 120 "Партнер Нефть" [11:48:55]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [11:48:55]line СНО: Общий режим [11:48:55]line Чек 71 21.06.2024 11:48 [11:48:55]line Смена: 355 ФФД: 1.0 [11:48:55]line ЗНМ: 0300000164 [11:48:55]line РНМ: 0000000000092785 [11:48:55]line Версия ККМ: 001 [11:48:55]line Платежная система: Бакай Банк [11:48:55]line ФМ: 0000000000875093 [11:48:55]line ФД: 104148 [11:48:55]line ФПД: 84605906954264 [11:48:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T114858&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104148&fm=84605906954264&tin=02508201610067®Number=0000000000092785&sum=120051 [11:48:55]written 0, free lines is 4095 [11:48:55]OFD Sender: Processing packet 104148 [packets to send 17, broken 16] [11:48:55]ProducePacketName [11:48:55]name=ofd_packets/00104148 [11:48:55]OFD Sender: To server: pG, [11:48:55]CommunicateWithHost lk.salyk.kg:30040 [11:48:55]ConnectInit lk.salyk.kg [11:48:55]Connected sock=10 [11:48: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 B1 C6 07 01 C3 8C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 F3 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 00 00 00 00 00 00 39 04 06 00 F3 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 AA 68 75 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 D4 96 01 00 35 04 06 00 4C F2 D9 07 A8 18 43 6E FB E9 8D F5 45 34 [11:48: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 19 62 47 00 6F 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 D4 96 01 00 F4 03 04 00 2C 0F 75 66 B6 04 01 00 00 F0 9C F1 7A C2 62 AC 21 [11:48:56]CommunicateWithHost err = 0 [11:48:56]CheckOFDResponse [11:48:56]1017 (14) - 77093643461234 [11:48:56]1041 (16) - 0000000000875093 [11:48:56]1040 (4) - 104148 [11:48:56]1012 (4) - 21.06.2024 05:27 [11:48:56]1206 (1) - 0 [11:48:56]OFD Sender: Remove packet 104148 [11:48:56]ProducePacketName [11:48:56]name=ofd_packets/00104148 [11:48:56]NVStorageDeleteData [11:48:56]Write to MH i2c: 01 00 00 BD 22 DF [11:48:56]Write i2c OK [11:48:56]MH_I2C_Read... [11:48:56]Read from MH i2c: 01 [11:48:56]MH_I2C_Read... [11:48:56]Read from MH i2c: 01 07 00 [11:48:56]MH_I2C_Read... [11:48:56]Read from MH i2c: 01 07 00 BD 22 00 00 00 00 00 FC 0C EE [11:48:56]RasterBufferAndPrint [11:48:56]line [11:48:56]line [11:48:56]line [11:48:56]line [11:48:56]line [11:48:56]written 0, free lines is 3332 [11:48:56]MH_Cut [11:48:56]Write to MH i2c: D1 01 00 C4 22 01 B8 [11:48:56]Write i2c OK [11:48:56]MH_I2C_Read... [11:48:56]Read from MH i2c: D1 [11:48:56]MH_I2C_Read... [11:48:56]Read from MH i2c: D1 01 00 [11:48:56]MH_I2C_Read... [11:48:56]Read from MH i2c: D1 01 00 C4 22 00 B7 [11:48:56]Write to MH i2c: 01 00 00 C5 22 E7 [11:48:56]Write i2c OK [11:48:56]MH_I2C_Read... [11:48:56]OFD Sender: No OFD packet to send [11:48:56]*** Cut start [11:48:56]*** Partial cut [11:48:56]*** CUTSNS_PIN = 1 [11:48:57]*** CUTSNS_PIN = 0 [11:48:57]*** Brake cut motor [11:48:57]Read from MH i2c: 01 [11:48:57]MH_I2C_Read... [11:48:57]*** Stop cut motor [11:48:57]*** Cut end [11:48:57]Read from MH i2c: 01 07 00 [11:48:57]MH_I2C_Read... [11:48:57]Read from MH i2c: 01 07 00 C5 22 00 00 00 00 00 FF 0F FC [11:48:57]process_action close_receipt done [11:48:57]requested_data is exist [11:48:57]produce_requested_data [11:48:57]requested_item fm.sn is exist - process it [11:48:57]wFMCommunicate request_size=4 [11:48:57]MH_SAM_APDU [11:48:57]CAPDU: 80 11 00 00 [11:48:57]Write to MH i2c: E2 08 00 C6 22 80 11 00 00 00 00 00 00 62 [11:48:57]Write i2c OK [11:48:57]MH_I2C_Read... [11:48:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:48:57]Read from MH i2c: E2 [11:48:57]MH_I2C_Read... [11:48:57]Read from MH i2c: E2 17 00 [11:48:57]MH_I2C_Read... [11:48:57]Read from MH i2c: E2 17 00 C6 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 B5 [11:48:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [11:48:57]wFMCommunicate OK [11:48:57]requested_item fd.num is exist - process it [11:48:57]SAM_PROTO_GetFieldsCounters [11:48:57]wFMCommunicate request_size=4 [11:48:57]MH_SAM_APDU [11:48:57]CAPDU: 80 13 00 00 [11:48:57]Write to MH i2c: E2 08 00 C7 22 80 13 00 00 00 00 00 00 65 [11:48:57]Write i2c OK [11:48:57]MH_I2C_Read... [11:48:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:48:57]Read from MH i2c: E2 [11:48:57]MH_I2C_Read... [11:48:57]Read from MH i2c: E2 62 00 [11:48:57]MH_I2C_Read... [11:48:57]Read from MH i2c: E2 62 00 C7 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 D4 96 01 00 0E 04 04 00 63 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 30 [11:48: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 D4 96 01 00 0E 04 04 00 63 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:48:57]wFMCommunicate OK [11:48:57]SAM_PROTO_GetFieldsCounters done [11:48:57]requested_item shift.num is exist - process it [11:48:57]requested_item shift.opened is exist - process it [11:48:57]req_shift_opened [11:48:57]FM_GetShiftState [11:48:57]SAM_PROTO_GetShiftState [11:48:57]wFMCommunicate request_size=4 [11:48:57]MH_SAM_APDU [11:48:57]CAPDU: 80 13 01 00 [11:48:57]Write to MH i2c: E2 08 00 C8 22 80 13 01 00 00 00 00 00 67 [11:48:57]Write i2c OK [11:48:57]MH_I2C_Read... [11:48:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:48:57]Read from MH i2c: E2 [11:48:57]MH_I2C_Read... [11:48:57]Read from MH i2c: E2 0E 00 [11:48:57]MH_I2C_Read... [11:48:57]Read from MH i2c: E2 0E 00 C8 22 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 7A [11:48:57]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [11:48:57]wFMCommunicate OK [11:48:57]SAM_PROTO_GetShiftState done [11:48:57]FM_GetShiftState done [11:48:57]req_shift_opened done [11:48:57]requested_item shift.open_date is exist - process it [11:48:57]req_shift_open_date [11:48:57]req_shift_open_date done [11:48:57]produce_requested_data done [11:48:57]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104148,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [11:48:57]process_action_free close_receipt [11:48:57]json_value_free [11:48:57]json_value_free done [11:48:57]process_json_proto returns [11:48:57]Send response to host [11:48:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104148,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [11:48:57]free response buf [11:48:57]execute_script done [11:48:57]execute_script returns [11:48:57]free content buf [11:48:57]Sock 7.Close socket [11:48:57]Sock 7.Thread stoped [11:49:01]OFD Sender: No OFD packet to send [11:49:06]OFD Sender: No OFD packet to send [11:49:11]OFD Sender: No OFD packet to send [11:49:16]OFD Sender: No OFD packet to send [11:49:21]OFD Sender: No OFD packet to send [11:49:26]OFD Sender: No OFD packet to send [11:49:31]OFD Sender: No OFD packet to send [11:49:36]OFD Sender: No OFD packet to send [11:49:41]OFD Sender: No OFD packet to send [11:49:46]OFD Sender: No OFD packet to send [11:49:51]OFD Sender: No OFD packet to send [11:49:56]OFD Sender: No OFD packet to send [11:50:01]OFD Sender: No OFD packet to send [11:50:06]OFD Sender: No OFD packet to send [11:50:11]OFD Sender: No OFD packet to send [11:50:16]OFD Sender: No OFD packet to send [11:50:21]OFD Sender: No OFD packet to send [11:50:26]OFD Sender: No OFD packet to send [11:50:31]OFD Sender: No OFD packet to send [11:50:36]OFD Sender: No OFD packet to send [11:50:41]OFD Sender: No OFD packet to send [11:50:46]OFD Sender: No OFD packet to send [11:50:51]OFD Sender: No OFD packet to send [11:50:56]OFD Sender: No OFD packet to send [11:51:01]OFD Sender: No OFD packet to send [11:51:05]accept exits with 9 [11:51:05]New connection [11:51:05]New thread 3066715492 created [11:51:05]Thread 3066858852 joined [11:51:05]Waiting for new connection... [11:51:05] Sock 9.Parse request [11:51:05]Sock 9.Check first char [11:51:05]Sock 9.First char is OK [11:51:05]request: POST /json_proto HTTP/1.0 [11:51:05]Method: POST [11:51:05]URL: /json_proto [11:51:05]Method is POST - this is cgi request [11:51:05]url: /json_proto [11:51:05]query_string will be loaded in cgi processing [11:51:05]execute_cgi json_proto POST (null) [11:51:05]execute_cgi path=json_proto method=POST [11:51:05]POST find Content-Length [11:51:05]Host: 172.17.38.133:8080 [11:51:05]Content-Length: 677 [11:51:05]Content-Type: application/json [11:51:05] [11:51:05]POST finish read [11:51:05]Found Content-Length = 677 [11:51:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673572", "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.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" ] } } [11:51:05]execute_script... [11:51:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673572", "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.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" ] } } [11:51:05]POST & json_proto [11:51:05]process_json_proto [11:51:05]json parsed OK: [11:51:05]protocol is kg_v1.0 [11:51:05]action value=close_receipt [11:51:05]process_action close_receipt [11:51:05]cmd_close_receipt [11:51:05]MH_GetDate [11:51:05]Write to MH i2c: F0 00 00 C9 22 DA [11:51:05]Write i2c OK [11:51:05]MH_I2C_Read... [11:51:05]Read from MH i2c: F0 [11:51:05]MH_I2C_Read... [11:51:05]Read from MH i2c: F0 09 00 [11:51:05]MH_I2C_Read... [11:51:05]Read from MH i2c: F0 09 00 C9 22 00 2D 69 75 66 BD 8F 7C 64 80 [11:51:05]GetLastDocTimeStamp 1718970538 [11:51:05]current date 1718970669 [11:51:05]FM_GetShiftState [11:51:05]SAM_PROTO_GetShiftState [11:51:05]wFMCommunicate request_size=4 [11:51:05]MH_SAM_APDU [11:51:05]CAPDU: 80 13 01 00 [11:51:05]Write to MH i2c: E2 08 00 CA 22 80 13 01 00 00 00 00 00 69 [11:51:05]Write i2c OK [11:51:05]MH_I2C_Read... [11:51:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:51:05]Read from MH i2c: E2 [11:51:05]MH_I2C_Read... [11:51:05]Read from MH i2c: E2 0E 00 [11:51:05]MH_I2C_Read... [11:51:05]Read from MH i2c: E2 0E 00 CA 22 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 7C [11:51:05]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [11:51:05]wFMCommunicate OK [11:51:05]SAM_PROTO_GetShiftState done [11:51:05]FM_GetShiftState done [11:51:05]opened in 1718929509 [11:51:05]opened+sec_in_day 1719015909 [11:51:05]quantity*price = 35059 [11:51:05]sum+1 = 35060 [11:51:05]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 СНО: Общий режим Чек 72 21.06.2024 11:51 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104149 ФПД: 190308643701674 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T115109&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104149&fm=190308643701674&tin=02508201610067®Number=0000000000092785&sum=35000 [11:51:06]StoreToDocumentArchive [11:51:06]shift 355 fd 104149 [11:51:06]save to /storage/0355/doc_00104149 [11:51:06]save last doc name /storage/0355/doc_00104149 to /storage/kkm_last_doc_name [11:51:06]save OK [11:51:06]Clear old archive folders... [11:51:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:51:06]tlvbuf is 0110FC20 [11:51:06]SAM_PROTO_ClearQueue [11:51:06]wFMCommunicate request_size=4 [11:51:06]MH_SAM_APDU [11:51:06]CAPDU: 80 09 00 00 [11:51:06]Write to MH i2c: E2 08 00 D7 22 80 09 00 00 00 00 00 00 6B [11:51:06]Write i2c OK [11:51:06]MH_I2C_Read... [11:51:06]Read from MH i2c: E2 [11:51:06]MH_I2C_Read... [11:51:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:51:06]Read from MH i2c: E2 03 00 [11:51:06]MH_I2C_Read... [11:51:06]Read from MH i2c: E2 03 00 D7 22 00 90 00 6D [11:51:06]RAPDU: 90 00 [11:51:06]wFMCommunicate OK [11:51:06]SAM_PROTO_ClearQueue done [11:51:06]KKMCreateOFDPacket [11:51:06]OFDProtocolAddRootSTLVToBuf [11:51:06]FM_MakeSignedData [11:51:06]FM_MakeSignedData [11:51:06]SAM_PROTO_SignData [11:51:06]wFMCommunicate request_size=4 [11:51:06]MH_SAM_APDU [11:51:06]CAPDU: 80 0D 01 02 [11:51:06]Write to MH i2c: E2 08 00 D8 22 80 0D 01 02 00 00 00 00 73 [11:51:06]Write i2c OK [11:51:06]MH_I2C_Read... [11:51:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:51:06]Read from MH i2c: E2 [11:51:06]MH_I2C_Read... [11:51:06]Read from MH i2c: E2 03 00 [11:51:06]MH_I2C_Read... [11:51:06]Read from MH i2c: E2 03 00 D8 22 00 90 00 6E [11:51:06]RAPDU: 90 00 [11:51:06]wFMCommunicate OK [11:51:06]wFMCommunicate request_size=255 [11:51:06]MH_SAM_APDU [11:51: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 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 48 00 00 00 F4 03 04 00 2D 69 75 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 D5 96 01 00 35 04 06 00 AD [11:51:06]Write to MH i2c: E2 02 01 D9 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 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 48 00 00 00 F4 03 04 00 2D 69 75 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 D5 96 01 00 35 04 06 00 AD 00 00 41 [11:51:06]Write i2c OK [11:51:06]MH_I2C_Read... [11:51:06]OFD Sender: No OFD packet to send [11:51:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:51:07]Read from MH i2c: E2 [11:51:07]MH_I2C_Read... [11:51:07]Read from MH i2c: E2 03 00 [11:51:07]MH_I2C_Read... [11:51:07]Read from MH i2c: E2 03 00 D9 22 00 90 00 6F [11:51:07]RAPDU: 90 00 [11:51:07]wFMCommunicate OK [11:51:07]wFMCommunicate request_size=10 [11:51:07]MH_SAM_APDU [11:51:07]CAPDU: 80 0D 02 02 05 15 AF 1B 03 AA [11:51:07]Write to MH i2c: E2 0D 00 DA 22 80 0D 02 02 05 00 15 AF 1B 03 AA 00 00 0C [11:51:07]Write i2c OK [11:51:07]MH_I2C_Read... [11:51:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:51:07]Read from MH i2c: E2 [11:51:07]MH_I2C_Read... [11:51:07]Read from MH i2c: E2 03 00 [11:51:07]MH_I2C_Read... [11:51:07]Read from MH i2c: E2 03 00 DA 22 00 90 00 70 [11:51:07]RAPDU: 90 00 [11:51:07]wFMCommunicate OK [11:51:07]wFMCommunicate request_size=4 [11:51:07]MH_SAM_APDU [11:51:07]CAPDU: 80 0D 03 02 [11:51:07]Write to MH i2c: E2 08 00 DB 22 80 0D 03 02 00 00 00 00 78 [11:51:07]Write i2c OK [11:51:07]MH_I2C_Read... [11:51:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:51:07]Read from MH i2c: E2 [11:51:07]MH_I2C_Read... [11:51:07]Read from MH i2c: E2 0B 00 [11:51:07]MH_I2C_Read... [11:51:07]Read from MH i2c: E2 0B 00 DB 22 00 33 8D 2D 6E 1C 7C 8B C6 90 00 BD [11:51:07]RAPDU: 33 8D 2D 6E 1C 7C 8B C6 90 00 [11:51:07]wFMCommunicate OK [11:51:07]SAM_PROTO_SignData done [11:51:07]FM_MakeSignedData done [11:51:07]CreateOFDProtocolMessage [11:51:07]wFMCommunicate request_size=4 [11:51:07]MH_SAM_APDU [11:51:07]CAPDU: 80 11 00 00 [11:51:07]Write to MH i2c: E2 08 00 DC 22 80 11 00 00 00 00 00 00 78 [11:51:07]Write i2c OK [11:51:07]MH_I2C_Read... [11:51:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:51:07]Read from MH i2c: E2 [11:51:07]MH_I2C_Read... [11:51:07]Read from MH i2c: E2 17 00 [11:51:07]MH_I2C_Read... [11:51:07]Read from MH i2c: E2 17 00 DC 22 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:51: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:51:07]wFMCommunicate OK [11:51:07]CreateOFDProtocolMessage done [11:51:07]OFDSenderStorePacket 104149 [11:51:07]StoreOFDPacket docnum=104149 [11:51: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 98 38 07 01 47 2A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 48 00 00 00 F4 03 04 00 2D 69 75 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 D5 96 01 00 35 04 06 00 AD 15 AF 1B 03 AA 33 8D 2D 6E 1C 7C 8B C6 [11:51:07]CheckFolder [11:51:07]dirname=/storage/ofd_packets [11:51:07]CheckFolder done [11:51:07]ProducePacketName [11:51:07]name=ofd_packets/00104149 [11:51:07]NVStorageSaveData ofd_packets/00104149 [11:51:07]File name is /storage/ofd_packets/00104149 [11:51:07]Write 301 bytes [11:51:07]NVStorageSaveData done [11:51:07]OFDSenderStorePacket done [11:51:07]KKMCreateOFDPacket done [11:51:07]NVStorageSaveData kkm_last_timestamp [11:51:07]File name is /storage/kkm_last_timestamp [11:51:07]Write 4 bytes [11:51:07]NVStorageSaveData done [11:51:07]ExternCall_PrintAddStr [11:51:07]wPrintStart [11:51:07]Write to MH i2c: 01 00 00 DD 22 FF [11:51:07]Write i2c OK [11:51:07]MH_I2C_Read... [11:51:07]Read from MH i2c: 01 [11:51:07]MH_I2C_Read... [11:51:07]Read from MH i2c: 01 07 00 [11:51:07]MH_I2C_Read... [11:51:07]Read from MH i2c: 01 07 00 DD 22 00 00 00 00 00 FF 0F 14 [11:51:07]RasterBufferAndPrint [11:51:07]line Счет N : (1)673572 [11:51:07]line ИНН: 02508201610067 [11:51:07]line Контрольно-Кассовый Чек [11:51:07]line ПРОДАЖА [11:51:07]line ТРК (МРК, ГНК) : 32 [11:51:07]line Товар: 2710124130 [11:51:07]line Аи-92-К-5 [11:51:07]line 5.280 * 66.40 [11:51:07]line = 350.59 [11:51:07]line НДС 12% НСП 1% [11:51:07]line > о реализуемом товаре [11:51:07]line ОКРУГЛЕНИЕ: -0.59 [11:51:07]line ИТОГО: 350.00 [11:51:07]line Внесено: 350.00 [11:51:07]line СДАЧА: 0.00 [11:51:07]line НСП 1% : 3.10 [11:51:07]line НДС 12% : 37.23 [11:51:07]line Наличными: 350.00 [11:51:07]line Безнал.: 0.00 [11:51:07]line Место: АЗС № 120 "Партнер Нефть" [11:51:07]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [11:51:07]line СНО: Общий режим [11:51:07]line Чек 72 21.06.2024 11:51 [11:51:07]line Смена: 355 ФФД: 1.0 [11:51:07]line ЗНМ: 0300000164 [11:51:07]line РНМ: 0000000000092785 [11:51:07]line Версия ККМ: 001 [11:51:07]line ФМ: 0000000000875093 [11:51:07]line ФД: 104149 [11:51:07]line ФПД: 190308643701674 [11:51:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T115109&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104149&fm=190308643701674&tin=02508201610067®Number=0000000000092785&sum=35000 [11:51:07]OFD Sender: Processing packet 104149 [packets to send 17, broken 16] [11:51:07]ProducePacketName [11:51:07]name=ofd_packets/00104149 [11:51:07]OFD Sender: To server: pG, [11:51:07]CommunicateWithHost lk.salyk.kg:30040 [11:51:07]ConnectInit lk.salyk.kg [11:51:07]written 0, free lines is 4095 [11:51:07]Connected sock=10 [11:51:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 98 38 07 01 47 2A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 48 00 00 00 F4 03 04 00 2D 69 75 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 D5 96 01 00 35 04 06 00 AD 15 AF 1B 03 AA 33 8D 2D 6E 1C 7C 8B C6 [11:51: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 4E 84 47 00 B7 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 D5 96 01 00 F4 03 04 00 B0 0F 75 66 B6 04 01 00 00 53 11 DC 19 64 8C DF 67 [11:51:07]CommunicateWithHost err = 0 [11:51:07]CheckOFDResponse [11:51:07]1017 (14) - 77093643461234 [11:51:07]1041 (16) - 0000000000875093 [11:51:07]1040 (4) - 104149 [11:51:07]1012 (4) - 21.06.2024 05:29 [11:51:07]1206 (1) - 0 [11:51:07]OFD Sender: Remove packet 104149 [11:51:07]ProducePacketName [11:51:07]name=ofd_packets/00104149 [11:51:07]NVStorageDeleteData [11:51:07]Write to MH i2c: 01 00 00 08 23 2B [11:51:07]Write i2c OK [11:51:07]MH_I2C_Read... [11:51:07]Read from MH i2c: 01 [11:51:07]MH_I2C_Read... [11:51:07]Read from MH i2c: 01 07 00 [11:51:07]MH_I2C_Read... [11:51:07]Read from MH i2c: 01 07 00 08 23 00 00 00 00 00 EA 0C 28 [11:51:07]RasterBufferAndPrint [11:51:07]line [11:51:07]line [11:51:07]line [11:51:07]line [11:51:07]line [11:51:07]written 0, free lines is 3312 [11:51:08]MH_Cut [11:51:08]Write to MH i2c: D1 01 00 0F 23 01 04 [11:51:08]Write i2c OK [11:51:08]MH_I2C_Read... [11:51:08]Read from MH i2c: D1 [11:51:08]MH_I2C_Read... [11:51:08]Read from MH i2c: D1 01 00 [11:51:08]MH_I2C_Read... [11:51:08]Read from MH i2c: D1 01 00 0F 23 00 03 [11:51:08]Write to MH i2c: 01 00 00 10 23 33 [11:51:08]Write i2c OK [11:51:08]MH_I2C_Read... [11:51:08]OFD Sender: No OFD packet to send [11:51:08]*** Cut start [11:51:08]*** Partial cut [11:51:08]*** CUTSNS_PIN = 1 [11:51:08]*** CUTSNS_PIN = 0 [11:51:08]*** Brake cut motor [11:51:09]Read from MH i2c: 01 [11:51:09]MH_I2C_Read... [11:51:09]*** Stop cut motor [11:51:09]*** Cut end [11:51:09]Read from MH i2c: 01 07 00 [11:51:09]MH_I2C_Read... [11:51:09]Read from MH i2c: 01 07 00 10 23 00 00 00 00 00 FF 0F 48 [11:51:09]process_action close_receipt done [11:51:09]requested_data is exist [11:51:09]produce_requested_data [11:51:09]requested_item fm.sn is exist - process it [11:51:09]wFMCommunicate request_size=4 [11:51:09]MH_SAM_APDU [11:51:09]CAPDU: 80 11 00 00 [11:51:09]Write to MH i2c: E2 08 00 11 23 80 11 00 00 00 00 00 00 AE [11:51:09]Write i2c OK [11:51:09]MH_I2C_Read... [11:51:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:51:09]Read from MH i2c: E2 [11:51:09]MH_I2C_Read... [11:51:09]Read from MH i2c: E2 17 00 [11:51:09]MH_I2C_Read... [11:51:09]Read from MH i2c: E2 17 00 11 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 01 [11:51: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:51:09]wFMCommunicate OK [11:51:09]requested_item fd.num is exist - process it [11:51:09]SAM_PROTO_GetFieldsCounters [11:51:09]wFMCommunicate request_size=4 [11:51:09]MH_SAM_APDU [11:51:09]CAPDU: 80 13 00 00 [11:51:09]Write to MH i2c: E2 08 00 12 23 80 13 00 00 00 00 00 00 B1 [11:51:09]Write i2c OK [11:51:09]MH_I2C_Read... [11:51:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:51:09]Read from MH i2c: E2 [11:51:09]MH_I2C_Read... [11:51:09]Read from MH i2c: E2 62 00 [11:51:09]MH_I2C_Read... [11:51:09]Read from MH i2c: E2 62 00 12 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 D5 96 01 00 0E 04 04 00 63 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 80 [11:51:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 96 01 00 0E 04 04 00 63 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:51:09]wFMCommunicate OK [11:51:09]SAM_PROTO_GetFieldsCounters done [11:51:09]requested_item shift.num is exist - process it [11:51:09]requested_item shift.opened is exist - process it [11:51:09]req_shift_opened [11:51:09]FM_GetShiftState [11:51:09]SAM_PROTO_GetShiftState [11:51:09]wFMCommunicate request_size=4 [11:51:09]MH_SAM_APDU [11:51:09]CAPDU: 80 13 01 00 [11:51:09]Write to MH i2c: E2 08 00 13 23 80 13 01 00 00 00 00 00 B3 [11:51:09]Write i2c OK [11:51:09]MH_I2C_Read... [11:51:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:51:09]Read from MH i2c: E2 [11:51:09]MH_I2C_Read... [11:51:09]Read from MH i2c: E2 0E 00 [11:51:09]MH_I2C_Read... [11:51:09]Read from MH i2c: E2 0E 00 13 23 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 C6 [11:51:09]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [11:51:09]wFMCommunicate OK [11:51:09]SAM_PROTO_GetShiftState done [11:51:09]FM_GetShiftState done [11:51:09]req_shift_opened done [11:51:09]requested_item shift.open_date is exist - process it [11:51:09]req_shift_open_date [11:51:09]req_shift_open_date done [11:51:09]produce_requested_data done [11:51:09]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104149,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [11:51:09]process_action_free close_receipt [11:51:09]json_value_free [11:51:09]json_value_free done [11:51:09]process_json_proto returns [11:51:09]Send response to host [11:51:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104149,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [11:51:09]free response buf [11:51:09]execute_script done [11:51:09]execute_script returns [11:51:09]free content buf [11:51:09]Sock 9.Close socket [11:51:09]Sock 9.Thread stoped [11:51:13]OFD Sender: No OFD packet to send [11:51:18]OFD Sender: No OFD packet to send [11:51:23]OFD Sender: No OFD packet to send [11:51:28]OFD Sender: No OFD packet to send [11:51:33]OFD Sender: No OFD packet to send [11:51:38]OFD Sender: No OFD packet to send [11:51:43]OFD Sender: No OFD packet to send [11:51:48]OFD Sender: No OFD packet to send [11:51:53]OFD Sender: No OFD packet to send [11:51:58]OFD Sender: No OFD packet to send [11:52:03]OFD Sender: No OFD packet to send [11:52:08]OFD Sender: No OFD packet to send [11:52:13]OFD Sender: No OFD packet to send [11:52:18]OFD Sender: No OFD packet to send [11:52:23]OFD Sender: No OFD packet to send [11:52:28]OFD Sender: No OFD packet to send [11:52:33]OFD Sender: No OFD packet to send [11:52:38]OFD Sender: No OFD packet to send [11:52:43]OFD Sender: No OFD packet to send [11:52:48]OFD Sender: No OFD packet to send [11:52:53]OFD Sender: No OFD packet to send [11:52:58]OFD Sender: No OFD packet to send [11:53:03]OFD Sender: No OFD packet to send [11:53:08]OFD Sender: No OFD packet to send [11:53:13]OFD Sender: No OFD packet to send [11:53:18]OFD Sender: No OFD packet to send [11:53:23]OFD Sender: No OFD packet to send [11:53:28]OFD Sender: No OFD packet to send [11:53:33]OFD Sender: No OFD packet to send [11:53:38]OFD Sender: No OFD packet to send [11:53:43]OFD Sender: No OFD packet to send [11:53:48]OFD Sender: No OFD packet to send [11:53:53]OFD Sender: No OFD packet to send [11:53:58]OFD Sender: No OFD packet to send [11:54:03]OFD Sender: No OFD packet to send [11:54:08]OFD Sender: No OFD packet to send [11:54:13]OFD Sender: No OFD packet to send [11:54:18]OFD Sender: No OFD packet to send [11:54:23]OFD Sender: No OFD packet to send [11:54:28]OFD Sender: No OFD packet to send [11:54:33]OFD Sender: No OFD packet to send [11:54:38]OFD Sender: No OFD packet to send [11:54:43]OFD Sender: No OFD packet to send [11:54:48]OFD Sender: No OFD packet to send [11:54:53]OFD Sender: No OFD packet to send [11:54:58]OFD Sender: No OFD packet to send [11:55:03]OFD Sender: No OFD packet to send [11:55:08]OFD Sender: No OFD packet to send [11:55:13]OFD Sender: No OFD packet to send [11:55:18]OFD Sender: No OFD packet to send [11:55:23]OFD Sender: No OFD packet to send [11:55:28]OFD Sender: No OFD packet to send [11:55:33]OFD Sender: No OFD packet to send [11:55:38]OFD Sender: No OFD packet to send [11:55:43]OFD Sender: No OFD packet to send [11:55:48]OFD Sender: No OFD packet to send [11:55:53]OFD Sender: No OFD packet to send [11:55:58]OFD Sender: No OFD packet to send [11:56:03]OFD Sender: No OFD packet to send [11:56:08]OFD Sender: No OFD packet to send [11:56:13]OFD Sender: No OFD packet to send [11:56:18]OFD Sender: No OFD packet to send [11:56:23]OFD Sender: No OFD packet to send [11:56:28]OFD Sender: No OFD packet to send [11:56:33]OFD Sender: No OFD packet to send [11:56:38]OFD Sender: No OFD packet to send [11:56:43]OFD Sender: No OFD packet to send [11:56:48]OFD Sender: No OFD packet to send [11:56:53]OFD Sender: No OFD packet to send [11:56:58]OFD Sender: No OFD packet to send [11:57:03]OFD Sender: No OFD packet to send [11:57:08]OFD Sender: No OFD packet to send [11:57:13]OFD Sender: No OFD packet to send [11:57:18]OFD Sender: No OFD packet to send [11:57:23]OFD Sender: No OFD packet to send [11:57:28]OFD Sender: No OFD packet to send [11:57:33]OFD Sender: No OFD packet to send [11:57:38]OFD Sender: No OFD packet to send [11:57:43]OFD Sender: No OFD packet to send [11:57:48]OFD Sender: No OFD packet to send [11:57:53]OFD Sender: No OFD packet to send [11:57:58]OFD Sender: No OFD packet to send [11:58:03]OFD Sender: No OFD packet to send [11:58:08]OFD Sender: No OFD packet to send [11:58:13]OFD Sender: No OFD packet to send [11:58:18]OFD Sender: No OFD packet to send [11:58:23]OFD Sender: No OFD packet to send [11:58:28]OFD Sender: No OFD packet to send [11:58:33]OFD Sender: No OFD packet to send [11:58:38]OFD Sender: No OFD packet to send [11:58:43]OFD Sender: No OFD packet to send [11:58:48]OFD Sender: No OFD packet to send [11:58:53]OFD Sender: No OFD packet to send [11:58:58]OFD Sender: No OFD packet to send [11:59:03]OFD Sender: No OFD packet to send [11:59:08]OFD Sender: No OFD packet to send [11:59:13]OFD Sender: No OFD packet to send [11:59:18]OFD Sender: No OFD packet to send [11:59:23]OFD Sender: No OFD packet to send [11:59:28]OFD Sender: No OFD packet to send [11:59:33]OFD Sender: No OFD packet to send [11:59:38]OFD Sender: No OFD packet to send [11:59:43]OFD Sender: No OFD packet to send [11:59:48]OFD Sender: No OFD packet to send [11:59:53]OFD Sender: No OFD packet to send [11:59:58]OFD Sender: No OFD packet to send [12:00:03]OFD Sender: No OFD packet to send [12:00:08]OFD Sender: No OFD packet to send [12:00:13]OFD Sender: No OFD packet to send [12:00:18]OFD Sender: No OFD packet to send [12:00:23]OFD Sender: No OFD packet to send [12:00:28]OFD Sender: No OFD packet to send [12:00:33]OFD Sender: No OFD packet to send [12:00:38]OFD Sender: No OFD packet to send [12:00:43]OFD Sender: No OFD packet to send [12:00:48]OFD Sender: No OFD packet to send [12:00:53]OFD Sender: No OFD packet to send [12:00:58]OFD Sender: No OFD packet to send [12:01:03]OFD Sender: No OFD packet to send [12:01:08]OFD Sender: No OFD packet to send [12:01:13]OFD Sender: No OFD packet to send [12:01:18]OFD Sender: No OFD packet to send [12:01:23]OFD Sender: No OFD packet to send [12:01:28]OFD Sender: No OFD packet to send [12:01:33]OFD Sender: No OFD packet to send [12:01:38]OFD Sender: No OFD packet to send [12:01:43]OFD Sender: No OFD packet to send [12:01:48]OFD Sender: No OFD packet to send [12:01:53]OFD Sender: No OFD packet to send [12:01:58]OFD Sender: No OFD packet to send [12:02:03]OFD Sender: No OFD packet to send [12:02:08]OFD Sender: No OFD packet to send [12:02:13]OFD Sender: No OFD packet to send [12:02:18]OFD Sender: No OFD packet to send [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:35]accept exits with 7 [12:02:35]New connection [12:02:35]New thread 3066858852 created [12:02:35]Thread 3066715492 joined [12:02:35]Waiting for new connection... [12:02:35] Sock 7.Parse request [12:02:35]Sock 7.Check first char [12:02:35]Sock 7.First char is OK [12:02:35]request: POST /json_proto HTTP/1.0 [12:02:35]Method: POST [12:02:35]URL: /json_proto [12:02:35]Method is POST - this is cgi request [12:02:35]url: /json_proto [12:02:35]query_string will be loaded in cgi processing [12:02:35]execute_cgi json_proto POST (null) [12:02:35]execute_cgi path=json_proto method=POST [12:02:35]POST find Content-Length [12:02:35]Host: 172.17.38.133:8080 [12:02:35]Content-Length: 816 [12:02:35]Content-Type: application/json [12:02:35] [12:02:35]POST finish read [12:02:35]Found Content-Length = 816 [12:02:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673573", "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" ] } } [12:02:35]execute_script... [12:02: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)673573", "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" ] } } [12:02:35]POST & json_proto [12:02:35]process_json_proto [12:02:35]json parsed OK: [12:02:35]protocol is kg_v1.0 [12:02:35]action value=close_receipt [12:02:35]process_action close_receipt [12:02:35]cmd_close_receipt [12:02:35]MH_GetDate [12:02:35]Write to MH i2c: F0 00 00 14 23 26 [12:02:35]Write i2c OK [12:02:35]MH_I2C_Read... [12:02:35]Read from MH i2c: F0 [12:02:35]MH_I2C_Read... [12:02:35]Read from MH i2c: F0 09 00 [12:02:35]MH_I2C_Read... [12:02:35]Read from MH i2c: F0 09 00 14 23 00 DF 6B 75 66 BD 8F 7C 64 80 [12:02:35]GetLastDocTimeStamp 1718970669 [12:02:35]current date 1718971359 [12:02:35]FM_GetShiftState [12:02:35]SAM_PROTO_GetShiftState [12:02:35]wFMCommunicate request_size=4 [12:02:35]MH_SAM_APDU [12:02:35]CAPDU: 80 13 01 00 [12:02:35]Write to MH i2c: E2 08 00 15 23 80 13 01 00 00 00 00 00 B5 [12:02:35]Write i2c OK [12:02:35]MH_I2C_Read... [12:02:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:02:35]Read from MH i2c: E2 [12:02:35]MH_I2C_Read... [12:02:35]Read from MH i2c: E2 0E 00 [12:02:35]MH_I2C_Read... [12:02:35]Read from MH i2c: E2 0E 00 15 23 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 C8 [12:02:35]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [12:02:35]wFMCommunicate OK [12:02:35]SAM_PROTO_GetShiftState done [12:02:35]FM_GetShiftState done [12:02:35]opened in 1718929509 [12:02:35]opened+sec_in_day 1719015909 [12:02:35]quantity*price = 50065 [12:02:35]sum+1 = 50067 [12:02:35]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 СНО: Общий режим Чек 73 21.06.2024 12:02 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875093 ФД: 104150 ФПД: 194666094405342 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T120239&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104150&fm=194666094405342&tin=02508201610067®Number=0000000000092785&sum=50066 [12:02:36]StoreToDocumentArchive [12:02:36]shift 355 fd 104150 [12:02:36]save to /storage/0355/doc_00104150 [12:02:36]save last doc name /storage/0355/doc_00104150 to /storage/kkm_last_doc_name [12:02:36]save OK [12:02:36]Clear old archive folders... [12:02:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:02:36]tlvbuf is 01134760 [12:02:36]SAM_PROTO_ClearQueue [12:02:36]wFMCommunicate request_size=4 [12:02:36]MH_SAM_APDU [12:02:36]CAPDU: 80 09 00 00 [12:02:36]Write to MH i2c: E2 08 00 22 23 80 09 00 00 00 00 00 00 B7 [12:02:36]Write i2c OK [12:02:36]MH_I2C_Read... [12:02:36]Read from MH i2c: E2 [12:02:36]MH_I2C_Read... [12:02:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:02:36]Read from MH i2c: E2 03 00 [12:02:36]MH_I2C_Read... [12:02:36]Read from MH i2c: E2 03 00 22 23 00 90 00 B9 [12:02:36]RAPDU: 90 00 [12:02:36]wFMCommunicate OK [12:02:36]SAM_PROTO_ClearQueue done [12:02:36]KKMCreateOFDPacket [12:02:36]OFDProtocolAddRootSTLVToBuf [12:02:36]FM_MakeSignedData [12:02:36]FM_MakeSignedData [12:02:36]SAM_PROTO_SignData [12:02:36]wFMCommunicate request_size=4 [12:02:36]MH_SAM_APDU [12:02:36]CAPDU: 80 0D 01 02 [12:02:36]Write to MH i2c: E2 08 00 23 23 80 0D 01 02 00 00 00 00 BF [12:02:36]Write i2c OK [12:02:36]MH_I2C_Read... [12:02:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:02:36]Read from MH i2c: E2 [12:02:36]MH_I2C_Read... [12:02:36]Read from MH i2c: E2 03 00 [12:02:36]MH_I2C_Read... [12:02:36]Read from MH i2c: E2 03 00 23 23 00 90 00 BA [12:02:36]RAPDU: 90 00 [12:02:36]wFMCommunicate OK [12:02:36]wFMCommunicate request_size=255 [12:02:36]MH_SAM_APDU [12:02: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 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 49 00 00 00 F4 03 04 00 DF 6B 75 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 D6 96 01 00 35 04 06 00 B1 [12:02:36]Write to MH i2c: E2 02 01 24 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 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 49 00 00 00 F4 03 04 00 DF 6B 75 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 D6 96 01 00 35 04 06 00 B1 00 00 ED [12:02:36]Write i2c OK [12:02:36]MH_I2C_Read... [12:02:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:02:37]Read from MH i2c: E2 [12:02:37]MH_I2C_Read... [12:02:37]Read from MH i2c: E2 03 00 [12:02:37]MH_I2C_Read... [12:02:37]Read from MH i2c: E2 03 00 24 23 00 90 00 BB [12:02:37]RAPDU: 90 00 [12:02:37]wFMCommunicate OK [12:02:37]wFMCommunicate request_size=10 [12:02:37]MH_SAM_APDU [12:02:37]CAPDU: 80 0D 02 02 05 0C 3B 68 26 DE [12:02:37]Write to MH i2c: E2 0D 00 25 23 80 0D 02 02 05 00 0C 3B 68 26 DE 00 00 7F [12:02:37]Write i2c OK [12:02:37]MH_I2C_Read... [12:02:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:02:37]Read from MH i2c: E2 [12:02:37]MH_I2C_Read... [12:02:37]Read from MH i2c: E2 03 00 [12:02:37]MH_I2C_Read... [12:02:37]Read from MH i2c: E2 03 00 25 23 00 90 00 BC [12:02:37]RAPDU: 90 00 [12:02:37]wFMCommunicate OK [12:02:37]wFMCommunicate request_size=4 [12:02:37]MH_SAM_APDU [12:02:37]CAPDU: 80 0D 03 02 [12:02:37]Write to MH i2c: E2 08 00 26 23 80 0D 03 02 00 00 00 00 C4 [12:02:37]Write i2c OK [12:02:37]MH_I2C_Read... [12:02:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:02:37]Read from MH i2c: E2 [12:02:37]MH_I2C_Read... [12:02:37]Read from MH i2c: E2 0B 00 [12:02:37]MH_I2C_Read... [12:02:37]Read from MH i2c: E2 0B 00 26 23 00 21 C3 65 82 DF EC 69 58 90 00 1C [12:02:37]RAPDU: 21 C3 65 82 DF EC 69 58 90 00 [12:02:37]wFMCommunicate OK [12:02:37]SAM_PROTO_SignData done [12:02:37]FM_MakeSignedData done [12:02:37]CreateOFDProtocolMessage [12:02:37]wFMCommunicate request_size=4 [12:02:37]MH_SAM_APDU [12:02:37]CAPDU: 80 11 00 00 [12:02:37]Write to MH i2c: E2 08 00 27 23 80 11 00 00 00 00 00 00 C4 [12:02:37]Write i2c OK [12:02:37]MH_I2C_Read... [12:02:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:02:37]Read from MH i2c: E2 [12:02:37]MH_I2C_Read... [12:02:37]Read from MH i2c: E2 17 00 [12:02:37]MH_I2C_Read... [12:02:37]Read from MH i2c: E2 17 00 27 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 17 [12:02: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:02:37]wFMCommunicate OK [12:02:37]CreateOFDProtocolMessage done [12:02:37]OFDSenderStorePacket 104150 [12:02:37]StoreOFDPacket docnum=104150 [12:02: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 64 D0 07 01 45 F9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 49 00 00 00 F4 03 04 00 DF 6B 75 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 D6 96 01 00 35 04 06 00 B1 0C 3B 68 26 DE 21 C3 65 82 DF EC 69 58 [12:02:37]CheckFolder [12:02:37]dirname=/storage/ofd_packets [12:02:37]CheckFolder done [12:02:37]ProducePacketName [12:02:37]name=ofd_packets/00104150 [12:02:37]NVStorageSaveData ofd_packets/00104150 [12:02:37]File name is /storage/ofd_packets/00104150 [12:02:37]Write 301 bytes [12:02:37]NVStorageSaveData done [12:02:37]OFDSenderStorePacket done [12:02:37]KKMCreateOFDPacket done [12:02:37]NVStorageSaveData kkm_last_timestamp [12:02:37]File name is /storage/kkm_last_timestamp [12:02:37]Write 4 bytes [12:02:37]NVStorageSaveData done [12:02:37]ExternCall_PrintAddStr [12:02:37]wPrintStart [12:02:37]Write to MH i2c: 01 00 00 28 23 4B [12:02:37]Write i2c OK [12:02:37]MH_I2C_Read... [12:02:37]Read from MH i2c: 01 [12:02:37]MH_I2C_Read... [12:02:37]Read from MH i2c: 01 07 00 [12:02:37]MH_I2C_Read... [12:02:37]Read from MH i2c: 01 07 00 28 23 00 00 00 00 00 FF 0F 60 [12:02:37]RasterBufferAndPrint [12:02:37]line Счет N : (1)673573 [12:02:37]line ИНН: 02508201610067 [12:02:37]line Контрольно-Кассовый Чек [12:02:37]line ПРОДАЖА [12:02:37]line ТРК (МРК, ГНК) : 32 [12:02:37]line Товар: 2710124130 [12:02:37]line Аи-92-К-5 [12:02:37]line 7.540 * 66.40 [12:02:37]line = 500.66 [12:02:37]line НДС 12% НСП 1% [12:02:37]line > о реализуемом товаре [12:02:37]line ИТОГО: 500.66 [12:02:37]line НСП 1% : 4.43 [12:02:37]line НДС 12% : 53.17 [12:02:37]line Наличными: 0.00 [12:02:37]line Безнал.: 500.66 [12:02:37]line Место: АЗС № 120 "Партнер Нефть" [12:02:37]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [12:02:37]line СНО: Общий режим [12:02:37]line Чек 73 21.06.2024 12:02 [12:02:37]line Смена: 355 ФФД: 1.0 [12:02:37]line ЗНМ: 0300000164 [12:02:37]line РНМ: 0000000000092785 [12:02:37]line Версия ККМ: 001 [12:02:37]line Платежная система: Бакай Банк [12:02:37]line ФМ: 0000000000875093 [12:02:37]line ФД: 104150 [12:02:37]line ФПД: 194666094405342 [12:02:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T120239&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104150&fm=194666094405342&tin=02508201610067®Number=0000000000092785&sum=50066 [12:02:37]written 0, free lines is 4095 [12:02:37]OFD Sender: Processing packet 104150 [packets to send 17, broken 16] [12:02:37]ProducePacketName [12:02:37]name=ofd_packets/00104150 [12:02:37]OFD Sender: To server: pG, [12:02:37]CommunicateWithHost lk.salyk.kg:30040 [12:02:37]ConnectInit lk.salyk.kg [12:02:37]Connected sock=10 [12:02: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 64 D0 07 01 45 F9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 49 00 00 00 F4 03 04 00 DF 6B 75 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 D6 96 01 00 35 04 06 00 B1 0C 3B 68 26 DE 21 C3 65 82 DF EC 69 58 [12:02: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 4F 37 47 00 4F 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 D6 96 01 00 F4 03 04 00 62 12 75 66 B6 04 01 00 00 46 A5 4F 74 F0 47 AD 59 [12:02:37]CommunicateWithHost err = 0 [12:02:37]CheckOFDResponse [12:02:37]1017 (14) - 77093643461234 [12:02:37]1041 (16) - 0000000000875093 [12:02:37]1040 (4) - 104150 [12:02:37]1012 (4) - 21.06.2024 05:40 [12:02:37]1206 (1) - 0 [12:02:37]OFD Sender: Remove packet 104150 [12:02:37]ProducePacketName [12:02:37]name=ofd_packets/00104150 [12:02:37]NVStorageDeleteData [12:02:38]Write to MH i2c: 01 00 00 52 23 75 [12:02:38]Write i2c OK [12:02:38]MH_I2C_Read... [12:02:38]Read from MH i2c: 01 [12:02:38]MH_I2C_Read... [12:02:38]Read from MH i2c: 01 07 00 [12:02:38]MH_I2C_Read... [12:02:38]Read from MH i2c: 01 07 00 52 23 00 00 00 00 00 F7 0C 7F [12:02:38]RasterBufferAndPrint [12:02:38]line [12:02:38]line [12:02:38]line [12:02:38]line [12:02:38]line [12:02:38]written 0, free lines is 3327 [12:02:38]MH_Cut [12:02:38]Write to MH i2c: D1 01 00 59 23 01 4E [12:02:38]Write i2c OK [12:02:38]MH_I2C_Read... [12:02:38]Read from MH i2c: D1 [12:02:38]MH_I2C_Read... [12:02:38]Read from MH i2c: D1 01 00 [12:02:38]MH_I2C_Read... [12:02:38]Read from MH i2c: D1 01 00 59 23 00 4D [12:02:38]Write to MH i2c: 01 00 00 5A 23 7D [12:02:38]Write i2c OK [12:02:38]MH_I2C_Read... [12:02:38]OFD Sender: No OFD packet to send [12:02:38]*** Cut start [12:02:38]*** Partial cut [12:02:38]*** CUTSNS_PIN = 1 [12:02:38]*** CUTSNS_PIN = 0 [12:02:38]*** Brake cut motor [12:02:39]Read from MH i2c: 01 [12:02:39]MH_I2C_Read... [12:02:39]*** Stop cut motor [12:02:39]*** Cut end [12:02:39]Read from MH i2c: 01 07 00 [12:02:39]MH_I2C_Read... [12:02:39]Read from MH i2c: 01 07 00 5A 23 00 00 00 00 00 FF 0F 92 [12:02:39]process_action close_receipt done [12:02:39]requested_data is exist [12:02:39]produce_requested_data [12:02:39]requested_item fm.sn is exist - process it [12:02:39]wFMCommunicate request_size=4 [12:02:39]MH_SAM_APDU [12:02:39]CAPDU: 80 11 00 00 [12:02:39]Write to MH i2c: E2 08 00 5B 23 80 11 00 00 00 00 00 00 F8 [12:02:39]Write i2c OK [12:02:39]MH_I2C_Read... [12:02:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:02:39]Read from MH i2c: E2 [12:02:39]MH_I2C_Read... [12:02:39]Read from MH i2c: E2 17 00 [12:02:39]MH_I2C_Read... [12:02:39]Read from MH i2c: E2 17 00 5B 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 4B [12:02: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:02:39]wFMCommunicate OK [12:02:39]requested_item fd.num is exist - process it [12:02:39]SAM_PROTO_GetFieldsCounters [12:02:39]wFMCommunicate request_size=4 [12:02:39]MH_SAM_APDU [12:02:39]CAPDU: 80 13 00 00 [12:02:39]Write to MH i2c: E2 08 00 5C 23 80 13 00 00 00 00 00 00 FB [12:02:39]Write i2c OK [12:02:39]MH_I2C_Read... [12:02:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:02:39]Read from MH i2c: E2 [12:02:39]MH_I2C_Read... [12:02:39]Read from MH i2c: E2 62 00 [12:02:39]MH_I2C_Read... [12:02:39]Read from MH i2c: E2 62 00 5C 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 D6 96 01 00 0E 04 04 00 63 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 CE [12:02: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 D6 96 01 00 0E 04 04 00 63 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 [12:02:39]wFMCommunicate OK [12:02:39]SAM_PROTO_GetFieldsCounters done [12:02:39]requested_item shift.num is exist - process it [12:02:39]requested_item shift.opened is exist - process it [12:02:39]req_shift_opened [12:02:39]FM_GetShiftState [12:02:39]SAM_PROTO_GetShiftState [12:02:39]wFMCommunicate request_size=4 [12:02:39]MH_SAM_APDU [12:02:39]CAPDU: 80 13 01 00 [12:02:39]Write to MH i2c: E2 08 00 5D 23 80 13 01 00 00 00 00 00 FD [12:02:39]Write i2c OK [12:02:39]MH_I2C_Read... [12:02:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:02:39]Read from MH i2c: E2 [12:02:39]MH_I2C_Read... [12:02:39]Read from MH i2c: E2 0E 00 [12:02:39]MH_I2C_Read... [12:02:39]Read from MH i2c: E2 0E 00 5D 23 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 10 [12:02:39]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [12:02:39]wFMCommunicate OK [12:02:39]SAM_PROTO_GetShiftState done [12:02:39]FM_GetShiftState done [12:02:39]req_shift_opened done [12:02:39]requested_item shift.open_date is exist - process it [12:02:39]req_shift_open_date [12:02:39]req_shift_open_date done [12:02:39]produce_requested_data done [12:02:39]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104150,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [12:02:39]process_action_free close_receipt [12:02:39]json_value_free [12:02:39]json_value_free done [12:02:39]process_json_proto returns [12:02:39]Send response to host [12:02:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104150,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [12:02:39]free response buf [12:02:39]execute_script done [12:02:39]execute_script returns [12:02:39]free content buf [12:02:39]Sock 7.Close socket [12:02:39]Sock 7.Thread stoped [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:48]OFD Sender: No OFD packet to send [12:03:53]OFD Sender: No OFD packet to send [12:03:58]OFD Sender: No OFD packet to send [12:04:03]OFD Sender: No OFD packet to send [12:04:08]OFD Sender: No OFD packet to send [12:04:13]OFD Sender: No OFD packet to send [12:04:18]OFD Sender: No OFD packet to send [12:04:23]OFD Sender: No OFD packet to send [12:04:28]OFD Sender: No OFD packet to send [12:04:33]OFD Sender: No OFD packet to send [12:04:38]OFD Sender: No OFD packet to send [12:04:43]OFD Sender: No OFD packet to send [12:04:48]OFD Sender: No OFD packet to send [12:04:53]OFD Sender: No OFD packet to send [12:04:58]OFD Sender: No OFD packet to send [12:05:03]OFD Sender: No OFD packet to send [12:05:08]OFD Sender: No OFD packet to send [12:05:13]OFD Sender: No OFD packet to send [12:05:18]OFD Sender: No OFD packet to send [12:05:23]OFD Sender: No OFD packet to send [12:05:28]OFD Sender: No OFD packet to send [12:05:33]OFD Sender: No OFD packet to send [12:05:38]OFD Sender: No OFD packet to send [12:05:43]OFD Sender: No OFD packet to send [12:05:48]OFD Sender: No OFD packet to send [12:05:53]OFD Sender: No OFD packet to send [12:05:58]OFD Sender: No OFD packet to send [12:06:03]OFD Sender: No OFD packet to send [12:06:08]OFD Sender: No OFD packet to send [12:06:13]OFD Sender: No OFD packet to send [12:06:18]OFD Sender: No OFD packet to send [12:06:23]OFD Sender: No OFD packet to send [12:06:28]OFD Sender: No OFD packet to send [12:06:33]OFD Sender: No OFD packet to send [12:06:35]accept exits with 9 [12:06:35]New connection [12:06:35]New thread 3066715492 created [12:06:35]Thread 3066858852 joined [12:06:35]Waiting for new connection... [12:06:35] Sock 9.Parse request [12:06:35]Sock 9.Check first char [12:06:35]Sock 9.First char is OK [12:06:35]request: POST /json_proto HTTP/1.0 [12:06:35]Method: POST [12:06:35]URL: /json_proto [12:06:35]Method is POST - this is cgi request [12:06:35]url: /json_proto [12:06:35]query_string will be loaded in cgi processing [12:06:35]execute_cgi json_proto POST (null) [12:06:35]execute_cgi path=json_proto method=POST [12:06:35]POST find Content-Length [12:06:35]Host: 172.17.38.133:8080 [12:06:35]Content-Length: 816 [12:06:35]Content-Type: application/json [12:06:35] [12:06:35]POST finish read [12:06:35]Found Content-Length = 816 [12:06:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673575", "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 }]} ], "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.30 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:06:35]execute_script... [12:06: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)673575", "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 }]} ], "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.30 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:06:35]POST & json_proto [12:06:35]process_json_proto [12:06:35]json parsed OK: [12:06:35]protocol is kg_v1.0 [12:06:35]action value=close_receipt [12:06:35]process_action close_receipt [12:06:35]cmd_close_receipt [12:06:35]MH_GetDate [12:06:35]Write to MH i2c: F0 00 00 5E 23 70 [12:06:35]Write i2c OK [12:06:35]MH_I2C_Read... [12:06:35]Read from MH i2c: F0 [12:06:35]MH_I2C_Read... [12:06:35]Read from MH i2c: F0 09 00 [12:06:35]MH_I2C_Read... [12:06:35]Read from MH i2c: F0 09 00 5E 23 00 CF 6C 75 66 BD 8F 7C 64 BB [12:06:35]GetLastDocTimeStamp 1718971359 [12:06:35]current date 1718971599 [12:06:35]FM_GetShiftState [12:06:35]SAM_PROTO_GetShiftState [12:06:35]wFMCommunicate request_size=4 [12:06:35]MH_SAM_APDU [12:06:35]CAPDU: 80 13 01 00 [12:06:35]Write to MH i2c: E2 08 00 5F 23 80 13 01 00 00 00 00 00 FF [12:06:35]Write i2c OK [12:06:35]MH_I2C_Read... [12:06:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:06:35]Read from MH i2c: E2 [12:06:35]MH_I2C_Read... [12:06:35]Read from MH i2c: E2 0E 00 [12:06:35]MH_I2C_Read... [12:06:35]Read from MH i2c: E2 0E 00 5F 23 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 12 [12:06:35]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [12:06:35]wFMCommunicate OK [12:06:35]SAM_PROTO_GetShiftState done [12:06:35]FM_GetShiftState done [12:06:35]opened in 1718929509 [12:06:35]opened+sec_in_day 1719015909 [12:06:35]quantity*price = 50030 [12:06:35]sum+1 = 50031 [12:06:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.30 НСП 1% : 4.43 НДС 12% : 53.13 Наличными: 0.00 Безнал.: 500.30 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 74 21.06.2024 12:06 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875093 ФД: 104151 ФПД: 116589509715695 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T120639&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104151&fm=116589509715695&tin=02508201610067®Number=0000000000092785&sum=50030 [12:06:36]StoreToDocumentArchive [12:06:36]shift 355 fd 104151 [12:06:36]save to /storage/0355/doc_00104151 [12:06:36]save last doc name /storage/0355/doc_00104151 to /storage/kkm_last_doc_name [12:06:36]save OK [12:06:36]Clear old archive folders... [12:06:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:06:36]tlvbuf is 0113EF50 [12:06:36]SAM_PROTO_ClearQueue [12:06:36]wFMCommunicate request_size=4 [12:06:36]MH_SAM_APDU [12:06:36]CAPDU: 80 09 00 00 [12:06:36]Write to MH i2c: E2 08 00 6C 23 80 09 00 00 00 00 00 00 01 [12:06:36]Write i2c OK [12:06:36]MH_I2C_Read... [12:06:36]Read from MH i2c: E2 [12:06:36]MH_I2C_Read... [12:06:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:06:36]Read from MH i2c: E2 03 00 [12:06:36]MH_I2C_Read... [12:06:36]Read from MH i2c: E2 03 00 6C 23 00 90 00 03 [12:06:36]RAPDU: 90 00 [12:06:36]wFMCommunicate OK [12:06:36]SAM_PROTO_ClearQueue done [12:06:36]KKMCreateOFDPacket [12:06:36]OFDProtocolAddRootSTLVToBuf [12:06:36]FM_MakeSignedData [12:06:36]FM_MakeSignedData [12:06:36]SAM_PROTO_SignData [12:06:36]wFMCommunicate request_size=4 [12:06:36]MH_SAM_APDU [12:06:36]CAPDU: 80 0D 01 02 [12:06:36]Write to MH i2c: E2 08 00 6D 23 80 0D 01 02 00 00 00 00 09 [12:06:36]Write i2c OK [12:06:36]MH_I2C_Read... [12:06:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:06:36]Read from MH i2c: E2 [12:06:36]MH_I2C_Read... [12:06:36]Read from MH i2c: E2 03 00 [12:06:36]MH_I2C_Read... [12:06:36]Read from MH i2c: E2 03 00 6D 23 00 90 00 04 [12:06:36]RAPDU: 90 00 [12:06:36]wFMCommunicate OK [12:06:36]wFMCommunicate request_size=255 [12:06:36]MH_SAM_APDU [12:06: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 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 6E C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 6E C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 CF 6C 75 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 D7 96 01 00 35 04 06 00 6A [12:06:36]Write to MH i2c: E2 02 01 6E 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 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 6E C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 6E C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 CF 6C 75 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 D7 96 01 00 35 04 06 00 6A 00 00 63 [12:06:36]Write i2c OK [12:06:36]MH_I2C_Read... [12:06:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:06:36]Read from MH i2c: E2 [12:06:36]MH_I2C_Read... [12:06:36]Read from MH i2c: E2 03 00 [12:06:36]MH_I2C_Read... [12:06:36]Read from MH i2c: E2 03 00 6E 23 00 90 00 05 [12:06:36]RAPDU: 90 00 [12:06:36]wFMCommunicate OK [12:06:36]wFMCommunicate request_size=10 [12:06:36]MH_SAM_APDU [12:06:36]CAPDU: 80 0D 02 02 05 09 9C 4F A6 EF [12:06:36]Write to MH i2c: E2 0D 00 6F 23 80 0D 02 02 05 00 09 9C 4F A6 EF 00 00 9F [12:06:36]Write i2c OK [12:06:36]MH_I2C_Read... [12:06:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:06:36]Read from MH i2c: E2 [12:06:36]MH_I2C_Read... [12:06:36]Read from MH i2c: E2 03 00 [12:06:36]MH_I2C_Read... [12:06:36]Read from MH i2c: E2 03 00 6F 23 00 90 00 06 [12:06:36]RAPDU: 90 00 [12:06:36]wFMCommunicate OK [12:06:36]wFMCommunicate request_size=4 [12:06:36]MH_SAM_APDU [12:06:36]CAPDU: 80 0D 03 02 [12:06:36]Write to MH i2c: E2 08 00 70 23 80 0D 03 02 00 00 00 00 0E [12:06:36]Write i2c OK [12:06:36]MH_I2C_Read... [12:06:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:06:36]Read from MH i2c: E2 [12:06:36]MH_I2C_Read... [12:06:36]Read from MH i2c: E2 0B 00 [12:06:36]MH_I2C_Read... [12:06:36]Read from MH i2c: E2 0B 00 70 23 00 FB 1D 97 E9 53 D5 A9 B4 90 00 2C [12:06:36]RAPDU: FB 1D 97 E9 53 D5 A9 B4 90 00 [12:06:36]wFMCommunicate OK [12:06:36]SAM_PROTO_SignData done [12:06:36]FM_MakeSignedData done [12:06:36]CreateOFDProtocolMessage [12:06:36]wFMCommunicate request_size=4 [12:06:36]MH_SAM_APDU [12:06:36]CAPDU: 80 11 00 00 [12:06:36]Write to MH i2c: E2 08 00 71 23 80 11 00 00 00 00 00 00 0E [12:06:36]Write i2c OK [12:06:36]MH_I2C_Read... [12:06:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:06:37]Read from MH i2c: E2 [12:06:37]MH_I2C_Read... [12:06:37]Read from MH i2c: E2 17 00 [12:06:37]MH_I2C_Read... [12:06:37]Read from MH i2c: E2 17 00 71 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 61 [12:06: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:06:37]wFMCommunicate OK [12:06:37]CreateOFDProtocolMessage done [12:06:37]OFDSenderStorePacket 104151 [12:06:37]StoreOFDPacket docnum=104151 [12:06: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 D7 7B 07 01 E2 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 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 6E C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 6E C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 CF 6C 75 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 D7 96 01 00 35 04 06 00 6A 09 9C 4F A6 EF FB 1D 97 E9 53 D5 A9 B4 [12:06:37]CheckFolder [12:06:37]dirname=/storage/ofd_packets [12:06:37]CheckFolder done [12:06:37]ProducePacketName [12:06:37]name=ofd_packets/00104151 [12:06:37]NVStorageSaveData ofd_packets/00104151 [12:06:37]File name is /storage/ofd_packets/00104151 [12:06:37]Write 301 bytes [12:06:37]NVStorageSaveData done [12:06:37]OFDSenderStorePacket done [12:06:37]KKMCreateOFDPacket done [12:06:37]NVStorageSaveData kkm_last_timestamp [12:06:37]File name is /storage/kkm_last_timestamp [12:06:37]Write 4 bytes [12:06:37]NVStorageSaveData done [12:06:37]ExternCall_PrintAddStr [12:06:37]wPrintStart [12:06:37]Write to MH i2c: 01 00 00 72 23 95 [12:06:37]Write i2c OK [12:06:37]MH_I2C_Read... [12:06:37]Read from MH i2c: 01 [12:06:37]MH_I2C_Read... [12:06:37]Read from MH i2c: 01 07 00 [12:06:37]MH_I2C_Read... [12:06:37]Read from MH i2c: 01 07 00 72 23 00 00 00 00 00 FF 0F AA [12:06:37]RasterBufferAndPrint [12:06:37]line Счет N : (1)673575 [12:06:37]line ИНН: 02508201610067 [12:06:37]line Контрольно-Кассовый Чек [12:06:37]line ПРОДАЖА [12:06:37]line ТРК (МРК, ГНК) : 31 [12:06:37]line Товар: 2710124500 [12:06:37]line Аи-95-К-5 [12:06:37]line 6.770 * 73.90 [12:06:37]line = 500.30 [12:06:37]line НДС 12% НСП 1% [12:06:37]line > о реализуемом товаре [12:06:37]line ИТОГО: 500.30 [12:06:37]line НСП 1% : 4.43 [12:06:37]line НДС 12% : 53.13 [12:06:37]line Наличными: 0.00 [12:06:37]line Безнал.: 500.30 [12:06:37]line Место: АЗС № 120 "Партнер Нефть" [12:06:37]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [12:06:37]line СНО: Общий режим [12:06:37]line Чек 74 21.06.2024 12:06 [12:06:37]line Смена: 355 ФФД: 1.0 [12:06:37]line ЗНМ: 0300000164 [12:06:37]line РНМ: 0000000000092785 [12:06:37]line Версия ККМ: 001 [12:06:37]line Платежная система: Бакай Банк [12:06:37]line ФМ: 0000000000875093 [12:06:37]line ФД: 104151 [12:06:37]line ФПД: 116589509715695 [12:06:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T120639&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104151&fm=116589509715695&tin=02508201610067®Number=0000000000092785&sum=50030 [12:06:37]OFD Sender: Processing packet 104151 [packets to send 17, broken 16] [12:06:37]ProducePacketName [12:06:37]name=ofd_packets/00104151 [12:06:37]OFD Sender: To server: pG, [12:06:37]CommunicateWithHost lk.salyk.kg:30040 [12:06:37]ConnectInit lk.salyk.kg [12:06:37]written 0, free lines is 4095 [12:06:37]Connected sock=10 [12:06: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 D7 7B 07 01 E2 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 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 6E C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 6E C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 CF 6C 75 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 D7 96 01 00 35 04 06 00 6A 09 9C 4F A6 EF FB 1D 97 E9 53 D5 A9 B4 [12:06: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 0F D8 47 00 29 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 D7 96 01 00 F4 03 04 00 52 13 75 66 B6 04 01 00 00 CB 2B A8 95 A9 9D FD D2 [12:06:37]CommunicateWithHost err = 0 [12:06:37]CheckOFDResponse [12:06:37]1017 (14) - 77093643461234 [12:06:37]1041 (16) - 0000000000875093 [12:06:37]1040 (4) - 104151 [12:06:37]1012 (4) - 21.06.2024 05:44 [12:06:37]1206 (1) - 0 [12:06:37]OFD Sender: Remove packet 104151 [12:06:37]ProducePacketName [12:06:37]name=ofd_packets/00104151 [12:06:37]NVStorageDeleteData [12:06:37]Write to MH i2c: 01 00 00 9C 23 BF [12:06:37]Write i2c OK [12:06:37]MH_I2C_Read... [12:06:37]Read from MH i2c: 01 [12:06:37]MH_I2C_Read... [12:06:37]Read from MH i2c: 01 07 00 [12:06:37]MH_I2C_Read... [12:06:37]Read from MH i2c: 01 07 00 9C 23 00 00 00 00 00 FB 0C CD [12:06:37]RasterBufferAndPrint [12:06:37]line [12:06:37]line [12:06:37]line [12:06:37]line [12:06:37]line [12:06:37]written 0, free lines is 3329 [12:06:37]MH_Cut [12:06:37]Write to MH i2c: D1 01 00 A3 23 01 98 [12:06:37]Write i2c OK [12:06:37]MH_I2C_Read... [12:06:37]Read from MH i2c: D1 [12:06:37]MH_I2C_Read... [12:06:37]Read from MH i2c: D1 01 00 [12:06:37]MH_I2C_Read... [12:06:37]Read from MH i2c: D1 01 00 A3 23 00 97 [12:06:37]Write to MH i2c: 01 00 00 A4 23 C7 [12:06:37]Write i2c OK [12:06:37]MH_I2C_Read... [12:06:38]OFD Sender: No OFD packet to send [12:06:38]*** Cut start [12:06:38]*** Partial cut [12:06:38]*** CUTSNS_PIN = 1 [12:06:38]*** CUTSNS_PIN = 0 [12:06:38]*** Brake cut motor [12:06:39]Read from MH i2c: 01 [12:06:39]MH_I2C_Read... [12:06:39]*** Stop cut motor [12:06:39]*** Cut end [12:06:39]Read from MH i2c: 01 07 00 [12:06:39]MH_I2C_Read... [12:06:39]Read from MH i2c: 01 07 00 A4 23 00 00 00 00 00 FF 0F DC [12:06:39]process_action close_receipt done [12:06:39]requested_data is exist [12:06:39]produce_requested_data [12:06:39]requested_item fm.sn is exist - process it [12:06:39]wFMCommunicate request_size=4 [12:06:39]MH_SAM_APDU [12:06:39]CAPDU: 80 11 00 00 [12:06:39]Write to MH i2c: E2 08 00 A5 23 80 11 00 00 00 00 00 00 42 [12:06:39]Write i2c OK [12:06:39]MH_I2C_Read... [12:06:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:06:39]Read from MH i2c: E2 [12:06:39]MH_I2C_Read... [12:06:39]Read from MH i2c: E2 17 00 [12:06:39]MH_I2C_Read... [12:06:39]Read from MH i2c: E2 17 00 A5 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 95 [12:06: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:06:39]wFMCommunicate OK [12:06:39]requested_item fd.num is exist - process it [12:06:39]SAM_PROTO_GetFieldsCounters [12:06:39]wFMCommunicate request_size=4 [12:06:39]MH_SAM_APDU [12:06:39]CAPDU: 80 13 00 00 [12:06:39]Write to MH i2c: E2 08 00 A6 23 80 13 00 00 00 00 00 00 45 [12:06:39]Write i2c OK [12:06:39]MH_I2C_Read... [12:06:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:06:39]Read from MH i2c: E2 [12:06:39]MH_I2C_Read... [12:06:39]Read from MH i2c: E2 62 00 [12:06:39]MH_I2C_Read... [12:06:39]Read from MH i2c: E2 62 00 A6 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 D7 96 01 00 0E 04 04 00 63 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 1C [12:06: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 D7 96 01 00 0E 04 04 00 63 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 [12:06:39]wFMCommunicate OK [12:06:39]SAM_PROTO_GetFieldsCounters done [12:06:39]requested_item shift.num is exist - process it [12:06:39]requested_item shift.opened is exist - process it [12:06:39]req_shift_opened [12:06:39]FM_GetShiftState [12:06:39]SAM_PROTO_GetShiftState [12:06:39]wFMCommunicate request_size=4 [12:06:39]MH_SAM_APDU [12:06:39]CAPDU: 80 13 01 00 [12:06:39]Write to MH i2c: E2 08 00 A7 23 80 13 01 00 00 00 00 00 47 [12:06:39]Write i2c OK [12:06:39]MH_I2C_Read... [12:06:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:06:39]Read from MH i2c: E2 [12:06:39]MH_I2C_Read... [12:06:39]Read from MH i2c: E2 0E 00 [12:06:39]MH_I2C_Read... [12:06:39]Read from MH i2c: E2 0E 00 A7 23 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 5A [12:06:39]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [12:06:39]wFMCommunicate OK [12:06:39]SAM_PROTO_GetShiftState done [12:06:39]FM_GetShiftState done [12:06:39]req_shift_opened done [12:06:39]requested_item shift.open_date is exist - process it [12:06:39]req_shift_open_date [12:06:39]req_shift_open_date done [12:06:39]produce_requested_data done [12:06:39]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104151,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [12:06:39]process_action_free close_receipt [12:06:39]json_value_free [12:06:39]json_value_free done [12:06:39]process_json_proto returns [12:06:39]Send response to host [12:06:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104151,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [12:06:39]free response buf [12:06:39]execute_script done [12:06:39]execute_script returns [12:06:39]free content buf [12:06:39]Sock 9.Close socket [12:06:39]Sock 9.Thread stoped [12:06:43]OFD Sender: No OFD packet to send [12:06:48]OFD Sender: No OFD packet to send [12:06:53]OFD Sender: No OFD packet to send [12:06:58]OFD Sender: No OFD packet to send [12:07:03]OFD Sender: No OFD packet to send [12:07:08]OFD Sender: No OFD packet to send [12:07:13]OFD Sender: No OFD packet to send [12:07:16]accept exits with 7 [12:07:16]New connection [12:07:16]New thread 3066858852 created [12:07:16]Thread 3066715492 joined [12:07:16]Waiting for new connection... [12:07:16] Sock 7.Parse request [12:07:16]Sock 7.Check first char [12:07:16]Sock 7.First char is OK [12:07:16]request: POST /json_proto HTTP/1.0 [12:07:16]Method: POST [12:07:16]URL: /json_proto [12:07:16]Method is POST - this is cgi request [12:07:16]url: /json_proto [12:07:16]query_string will be loaded in cgi processing [12:07:16]execute_cgi json_proto POST (null) [12:07:16]execute_cgi path=json_proto method=POST [12:07:16]POST find Content-Length [12:07:16]Host: 172.17.38.133:8080 [12:07:16]Content-Length: 819 [12:07:16]Content-Type: application/json [12:07:16] [12:07:16]POST finish read [12:07:16]Found Content-Length = 819 [12:07:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673574", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 3000.34 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:07:16]execute_script... [12:07: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)673574", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 3000.34 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:07:16]POST & json_proto [12:07:16]process_json_proto [12:07:16]json parsed OK: [12:07:16]protocol is kg_v1.0 [12:07:16]action value=close_receipt [12:07:16]process_action close_receipt [12:07:16]cmd_close_receipt [12:07:16]MH_GetDate [12:07:16]Write to MH i2c: F0 00 00 A8 23 BA [12:07:16]Write i2c OK [12:07:16]MH_I2C_Read... [12:07:16]Read from MH i2c: F0 [12:07:16]MH_I2C_Read... [12:07:16]Read from MH i2c: F0 09 00 [12:07:16]MH_I2C_Read... [12:07:16]Read from MH i2c: F0 09 00 A8 23 00 F9 6C 75 66 BD 8F 7C 64 2F [12:07:16]GetLastDocTimeStamp 1718971599 [12:07:16]current date 1718971641 [12:07:16]FM_GetShiftState [12:07:16]SAM_PROTO_GetShiftState [12:07:16]wFMCommunicate request_size=4 [12:07:16]MH_SAM_APDU [12:07:16]CAPDU: 80 13 01 00 [12:07:16]Write to MH i2c: E2 08 00 A9 23 80 13 01 00 00 00 00 00 49 [12:07:16]Write i2c OK [12:07:16]MH_I2C_Read... [12:07:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:07:16]Read from MH i2c: E2 [12:07:16]MH_I2C_Read... [12:07:16]Read from MH i2c: E2 0E 00 [12:07:16]MH_I2C_Read... [12:07:16]Read from MH i2c: E2 0E 00 A9 23 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 5C [12:07:16]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [12:07:16]wFMCommunicate OK [12:07:16]SAM_PROTO_GetShiftState done [12:07:16]FM_GetShiftState done [12:07:16]opened in 1718929509 [12:07:16]opened+sec_in_day 1719015909 [12:07:16]quantity*price = 300034 [12:07:16]sum+1 = 300035 [12:07:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3000.34 НСП 1% : 26.55 НДС 12% : 318.62 Наличными: 0.00 Безнал.: 3000.34 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 75 21.06.2024 12:07 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875093 ФД: 104152 ФПД: 127450378047167 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T120721&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104152&fm=127450378047167&tin=02508201610067®Number=0000000000092785&sum=300034 [12:07:18]StoreToDocumentArchive [12:07:18]shift 355 fd 104152 [12:07:18]save to /storage/0355/doc_00104152 [12:07:18]save last doc name /storage/0355/doc_00104152 to /storage/kkm_last_doc_name [12:07:18]save OK [12:07:18]Clear old archive folders... [12:07:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:07:18]tlvbuf is 0118B8E0 [12:07:18]SAM_PROTO_ClearQueue [12:07:18]wFMCommunicate request_size=4 [12:07:18]MH_SAM_APDU [12:07:18]CAPDU: 80 09 00 00 [12:07:18]Write to MH i2c: E2 08 00 B6 23 80 09 00 00 00 00 00 00 4B [12:07:18]Write i2c OK [12:07:18]MH_I2C_Read... [12:07:18]Read from MH i2c: E2 [12:07:18]MH_I2C_Read... [12:07:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:07:18]Read from MH i2c: E2 03 00 [12:07:18]MH_I2C_Read... [12:07:18]Read from MH i2c: E2 03 00 B6 23 00 90 00 4D [12:07:18]RAPDU: 90 00 [12:07:18]wFMCommunicate OK [12:07:18]SAM_PROTO_ClearQueue done [12:07:18]KKMCreateOFDPacket [12:07:18]OFDProtocolAddRootSTLVToBuf [12:07:18]FM_MakeSignedData [12:07:18]FM_MakeSignedData [12:07:18]SAM_PROTO_SignData [12:07:18]wFMCommunicate request_size=4 [12:07:18]MH_SAM_APDU [12:07:18]CAPDU: 80 0D 01 02 [12:07:18]Write to MH i2c: E2 08 00 B7 23 80 0D 01 02 00 00 00 00 53 [12:07:18]Write i2c OK [12:07:18]MH_I2C_Read... [12:07:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:07:18]Read from MH i2c: E2 [12:07:18]MH_I2C_Read... [12:07:18]Read from MH i2c: E2 03 00 [12:07:18]MH_I2C_Read... [12:07:18]Read from MH i2c: E2 03 00 B7 23 00 90 00 4E [12:07:18]RAPDU: 90 00 [12:07:18]wFMCommunicate OK [12:07:18]wFMCommunicate request_size=255 [12:07:18]MH_SAM_APDU [12:07: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 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 02 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 02 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 F9 6C 75 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 D8 96 01 00 35 04 06 00 73 [12:07:18]Write to MH i2c: E2 02 01 B8 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 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 02 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 02 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 F9 6C 75 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 D8 96 01 00 35 04 06 00 73 00 00 91 [12:07:18]Write i2c OK [12:07:18]MH_I2C_Read... [12:07:18]OFD Sender: No OFD packet to send [12:07:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:07:18]Read from MH i2c: E2 [12:07:18]MH_I2C_Read... [12:07:18]Read from MH i2c: E2 03 00 [12:07:18]MH_I2C_Read... [12:07:18]Read from MH i2c: E2 03 00 B8 23 00 90 00 4F [12:07:18]RAPDU: 90 00 [12:07:18]wFMCommunicate OK [12:07:18]wFMCommunicate request_size=10 [12:07:18]MH_SAM_APDU [12:07:18]CAPDU: 80 0D 02 02 05 EA 5A 82 8E BF [12:07:18]Write to MH i2c: E2 0D 00 B9 23 80 0D 02 02 05 00 EA 5A 82 8E BF 00 00 73 [12:07:18]Write i2c OK [12:07:18]MH_I2C_Read... [12:07:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:07:18]Read from MH i2c: E2 [12:07:18]MH_I2C_Read... [12:07:18]Read from MH i2c: E2 03 00 [12:07:18]MH_I2C_Read... [12:07:18]Read from MH i2c: E2 03 00 B9 23 00 90 00 50 [12:07:18]RAPDU: 90 00 [12:07:18]wFMCommunicate OK [12:07:18]wFMCommunicate request_size=4 [12:07:18]MH_SAM_APDU [12:07:18]CAPDU: 80 0D 03 02 [12:07:18]Write to MH i2c: E2 08 00 BA 23 80 0D 03 02 00 00 00 00 58 [12:07:18]Write i2c OK [12:07:18]MH_I2C_Read... [12:07:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:07:18]Read from MH i2c: E2 [12:07:18]MH_I2C_Read... [12:07:18]Read from MH i2c: E2 0B 00 [12:07:18]MH_I2C_Read... [12:07:18]Read from MH i2c: E2 0B 00 BA 23 00 F8 73 29 82 9C 86 A2 32 90 00 65 [12:07:18]RAPDU: F8 73 29 82 9C 86 A2 32 90 00 [12:07:18]wFMCommunicate OK [12:07:18]SAM_PROTO_SignData done [12:07:18]FM_MakeSignedData done [12:07:18]CreateOFDProtocolMessage [12:07:18]wFMCommunicate request_size=4 [12:07:18]MH_SAM_APDU [12:07:18]CAPDU: 80 11 00 00 [12:07:18]Write to MH i2c: E2 08 00 BB 23 80 11 00 00 00 00 00 00 58 [12:07:18]Write i2c OK [12:07:18]MH_I2C_Read... [12:07:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:07:18]Read from MH i2c: E2 [12:07:18]MH_I2C_Read... [12:07:18]Read from MH i2c: E2 17 00 [12:07:18]MH_I2C_Read... [12:07:18]Read from MH i2c: E2 17 00 BB 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 AB [12:07:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:07:18]wFMCommunicate OK [12:07:18]CreateOFDProtocolMessage done [12:07:18]OFDSenderStorePacket 104152 [12:07:18]StoreOFDPacket docnum=104152 [12:07: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 2E D2 07 01 87 5E 5A 03 01 00 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 02 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 02 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 F9 6C 75 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 D8 96 01 00 35 04 06 00 73 EA 5A 82 8E BF F8 73 29 82 9C 86 A2 32 [12:07:18]CheckFolder [12:07:18]dirname=/storage/ofd_packets [12:07:18]CheckFolder done [12:07:18]ProducePacketName [12:07:18]name=ofd_packets/00104152 [12:07:18]NVStorageSaveData ofd_packets/00104152 [12:07:18]File name is /storage/ofd_packets/00104152 [12:07:18]Write 301 bytes [12:07:18]NVStorageSaveData done [12:07:18]OFDSenderStorePacket done [12:07:18]KKMCreateOFDPacket done [12:07:18]NVStorageSaveData kkm_last_timestamp [12:07:18]File name is /storage/kkm_last_timestamp [12:07:18]Write 4 bytes [12:07:18]NVStorageSaveData done [12:07:18]ExternCall_PrintAddStr [12:07:18]wPrintStart [12:07:18]Write to MH i2c: 01 00 00 BC 23 DF [12:07:18]Write i2c OK [12:07:18]MH_I2C_Read... [12:07:18]Read from MH i2c: 01 [12:07:18]MH_I2C_Read... [12:07:18]Read from MH i2c: 01 07 00 [12:07:18]MH_I2C_Read... [12:07:18]Read from MH i2c: 01 07 00 BC 23 00 00 00 00 00 FF 0F F4 [12:07:18]RasterBufferAndPrint [12:07:18]line Счет N : (1)673574 [12:07:18]line ИНН: 02508201610067 [12:07:18]line Контрольно-Кассовый Чек [12:07:18]line ПРОДАЖА [12:07:18]line ТРК (МРК, ГНК) : 41 [12:07:18]line Товар: 2710124500 [12:07:18]line Аи-95-К-5 [12:07:18]line 40.600 * 73.90 [12:07:18]line = 3000.34 [12:07:18]line НДС 12% НСП 1% [12:07:18]line > о реализуемом товаре [12:07:18]line ИТОГО: 3000.34 [12:07:18]line НСП 1% : 26.55 [12:07:18]line НДС 12% : 318.62 [12:07:18]line Наличными: 0.00 [12:07:18]line Безнал.: 3000.34 [12:07:18]line Место: АЗС № 120 "Партнер Нефть" [12:07:18]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [12:07:18]line СНО: Общий режим [12:07:18]line Чек 75 21.06.2024 12:07 [12:07:18]line Смена: 355 ФФД: 1.0 [12:07:18]line ЗНМ: 0300000164 [12:07:18]line РНМ: 0000000000092785 [12:07:18]line Версия ККМ: 001 [12:07:18]line Платежная система: Бакай Банк [12:07:18]line ФМ: 0000000000875093 [12:07:18]line ФД: 104152 [12:07:18]line ФПД: 127450378047167 [12:07:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T120721&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104152&fm=127450378047167&tin=02508201610067®Number=0000000000092785&sum=300034 [12:07:18]OFD Sender: Processing packet 104152 [packets to send 17, broken 16] [12:07:18]ProducePacketName [12:07:18]name=ofd_packets/00104152 [12:07:18]OFD Sender: To server: pG, [12:07:18]CommunicateWithHost lk.salyk.kg:30040 [12:07:18]ConnectInit lk.salyk.kg [12:07:18]written 0, free lines is 4095 [12:07:19]Connected sock=9 [12:07: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 2E D2 07 01 87 5E 5A 03 01 00 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 02 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 02 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 F9 6C 75 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 D8 96 01 00 35 04 06 00 73 EA 5A 82 8E BF F8 73 29 82 9C 86 A2 32 [12:07: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 23 E5 47 00 35 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 D8 96 01 00 F4 03 04 00 7B 13 75 66 B6 04 01 00 00 98 35 6F 02 1F 76 8B 60 [12:07:19]CommunicateWithHost err = 0 [12:07:19]CheckOFDResponse [12:07:19]1017 (14) - 77093643461234 [12:07:19]1041 (16) - 0000000000875093 [12:07:19]1040 (4) - 104152 [12:07:19]1012 (4) - 21.06.2024 05:45 [12:07:19]1206 (1) - 0 [12:07:19]OFD Sender: Remove packet 104152 [12:07:19]ProducePacketName [12:07:19]name=ofd_packets/00104152 [12:07:19]NVStorageDeleteData [12:07:19]Write to MH i2c: 01 00 00 E6 23 09 [12:07:19]Write i2c OK [12:07:19]MH_I2C_Read... [12:07:19]Read from MH i2c: 01 [12:07:19]MH_I2C_Read... [12:07:19]Read from MH i2c: 01 07 00 [12:07:19]MH_I2C_Read... [12:07:19]Read from MH i2c: 01 07 00 E6 23 00 00 00 00 00 08 0D 25 [12:07:19]RasterBufferAndPrint [12:07:19]line [12:07:19]line [12:07:19]line [12:07:19]line [12:07:19]line [12:07:19]written 0, free lines is 3342 [12:07:19]MH_Cut [12:07:19]Write to MH i2c: D1 01 00 ED 23 01 E2 [12:07:19]Write i2c OK [12:07:19]MH_I2C_Read... [12:07:19]Read from MH i2c: D1 [12:07:19]MH_I2C_Read... [12:07:19]Read from MH i2c: D1 01 00 [12:07:19]MH_I2C_Read... [12:07:19]Read from MH i2c: D1 01 00 ED 23 00 E1 [12:07:19]Write to MH i2c: 01 00 00 EE 23 11 [12:07:19]Write i2c OK [12:07:19]MH_I2C_Read... [12:07:19]OFD Sender: No OFD packet to send [12:07:20]*** Cut start [12:07:20]*** Partial cut [12:07:20]*** CUTSNS_PIN = 1 [12:07:20]*** CUTSNS_PIN = 0 [12:07:20]*** Brake cut motor [12:07:20]Read from MH i2c: 01 [12:07:20]MH_I2C_Read... [12:07:20]*** Stop cut motor [12:07:20]*** Cut end [12:07:20]Read from MH i2c: 01 07 00 [12:07:20]MH_I2C_Read... [12:07:20]Read from MH i2c: 01 07 00 EE 23 00 00 00 00 00 FF 0F 26 [12:07:20]process_action close_receipt done [12:07:20]requested_data is exist [12:07:20]produce_requested_data [12:07:20]requested_item fm.sn is exist - process it [12:07:20]wFMCommunicate request_size=4 [12:07:20]MH_SAM_APDU [12:07:20]CAPDU: 80 11 00 00 [12:07:20]Write to MH i2c: E2 08 00 EF 23 80 11 00 00 00 00 00 00 8C [12:07:20]Write i2c OK [12:07:20]MH_I2C_Read... [12:07:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:07:20]Read from MH i2c: E2 [12:07:20]MH_I2C_Read... [12:07:20]Read from MH i2c: E2 17 00 [12:07:20]MH_I2C_Read... [12:07:20]Read from MH i2c: E2 17 00 EF 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 DF [12:07: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:07:20]wFMCommunicate OK [12:07:20]requested_item fd.num is exist - process it [12:07:20]SAM_PROTO_GetFieldsCounters [12:07:20]wFMCommunicate request_size=4 [12:07:20]MH_SAM_APDU [12:07:20]CAPDU: 80 13 00 00 [12:07:20]Write to MH i2c: E2 08 00 F0 23 80 13 00 00 00 00 00 00 8F [12:07:20]Write i2c OK [12:07:20]MH_I2C_Read... [12:07:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:07:20]Read from MH i2c: E2 [12:07:20]MH_I2C_Read... [12:07:20]Read from MH i2c: E2 62 00 [12:07:20]MH_I2C_Read... [12:07:20]Read from MH i2c: E2 62 00 F0 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 D8 96 01 00 0E 04 04 00 63 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 6A [12:07: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 D8 96 01 00 0E 04 04 00 63 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 [12:07:20]wFMCommunicate OK [12:07:20]SAM_PROTO_GetFieldsCounters done [12:07:20]requested_item shift.num is exist - process it [12:07:20]requested_item shift.opened is exist - process it [12:07:20]req_shift_opened [12:07:20]FM_GetShiftState [12:07:20]SAM_PROTO_GetShiftState [12:07:20]wFMCommunicate request_size=4 [12:07:20]MH_SAM_APDU [12:07:20]CAPDU: 80 13 01 00 [12:07:20]Write to MH i2c: E2 08 00 F1 23 80 13 01 00 00 00 00 00 91 [12:07:20]Write i2c OK [12:07:20]MH_I2C_Read... [12:07:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:07:20]Read from MH i2c: E2 [12:07:20]MH_I2C_Read... [12:07:20]Read from MH i2c: E2 0E 00 [12:07:20]MH_I2C_Read... [12:07:20]Read from MH i2c: E2 0E 00 F1 23 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 A4 [12:07:20]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [12:07:20]wFMCommunicate OK [12:07:20]SAM_PROTO_GetShiftState done [12:07:20]FM_GetShiftState done [12:07:20]req_shift_opened done [12:07:20]requested_item shift.open_date is exist - process it [12:07:20]req_shift_open_date [12:07:20]req_shift_open_date done [12:07:20]produce_requested_data done [12:07:20]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104152,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [12:07:20]process_action_free close_receipt [12:07:20]json_value_free [12:07:20]json_value_free done [12:07:20]process_json_proto returns [12:07:20]Send response to host [12:07:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104152,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [12:07:20]free response buf [12:07:20]execute_script done [12:07:20]execute_script returns [12:07:20]free content buf [12:07:20]Sock 7.Close socket [12:07:20]Sock 7.Thread stoped [12:07:24]OFD Sender: No OFD packet to send [12:07:29]OFD Sender: No OFD packet to send [12:07:34]OFD Sender: No OFD packet to send [12:07:39]OFD Sender: No OFD packet to send [12:07:44]OFD Sender: No OFD packet to send [12:07:49]OFD Sender: No OFD packet to send [12:07:54]OFD Sender: No OFD packet to send [12:07:59]OFD Sender: No OFD packet to send [12:08:04]OFD Sender: No OFD packet to send [12:08:09]OFD Sender: No OFD packet to send [12:08:14]OFD Sender: No OFD packet to send [12:08:19]OFD Sender: No OFD packet to send [12:08:24]OFD Sender: No OFD packet to send [12:08:29]OFD Sender: No OFD packet to send [12:08:34]OFD Sender: No OFD packet to send [12:08:39]OFD Sender: No OFD packet to send [12:08:44]OFD Sender: No OFD packet to send [12:08:49]OFD Sender: No OFD packet to send [12:08:54]OFD Sender: No OFD packet to send [12:08:59]OFD Sender: No OFD packet to send [12:09:04]OFD Sender: No OFD packet to send [12:09:09]OFD Sender: No OFD packet to send [12:09:14]OFD Sender: No OFD packet to send [12:09:19]OFD Sender: No OFD packet to send [12:09:24]OFD Sender: No OFD packet to send [12:09:29]OFD Sender: No OFD packet to send [12:09:34]OFD Sender: No OFD packet to send [12:09:39]OFD Sender: No OFD packet to send [12:09:44]OFD Sender: No OFD packet to send [12:09:49]OFD Sender: No OFD packet to send [12:09:54]OFD Sender: No OFD packet to send [12:09:59]OFD Sender: No OFD packet to send [12:10:04]OFD Sender: No OFD packet to send [12:10:09]OFD Sender: No OFD packet to send [12:10:14]OFD Sender: No OFD packet to send [12:10:19]OFD Sender: No OFD packet to send [12:10:24]OFD Sender: No OFD packet to send [12:10:29]OFD Sender: No OFD packet to send [12:10:34]OFD Sender: No OFD packet to send [12:10:39]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:07]accept exits with 10 [12:11:07]New connection [12:11:07]New thread 3066715492 created [12:11:07]Thread 3066858852 joined [12:11:07]Waiting for new connection... [12:11:07] Sock 10.Parse request [12:11:07]Sock 10.Check first char [12:11:07]Sock 10.First char is OK [12:11:07]request: POST /json_proto HTTP/1.0 [12:11:07]Method: POST [12:11:07]URL: /json_proto [12:11:07]Method is POST - this is cgi request [12:11:07]url: /json_proto [12:11:07]query_string will be loaded in cgi processing [12:11:07]execute_cgi json_proto POST (null) [12:11:07]execute_cgi path=json_proto method=POST [12:11:07]POST find Content-Length [12:11:07]Host: 172.17.38.133:8080 [12:11:07]Content-Length: 1156 [12:11:07]Content-Type: application/json [12:11:07] [12:11:07]POST finish read [12:11:07]Found Content-Length = 1156 [12:11: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 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)673576\u000A21.06.2024 11:48\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\u000A30073409\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:11:07]execute_script... [12:11: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 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)673576\u000A21.06.2024 11:48\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\u000A30073409\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:11:07]POST & json_proto [12:11:07]process_json_proto [12:11:07]json parsed OK: [12:11:07]protocol is kg_v1.0 [12:11:07]action value=print_text [12:11:07]process_action print_text [12:11:07]cmd_print_text [12:11:07]ExternCall_PrintAddStr [12:11:07]wPrintStart [12:11:07]Write to MH i2c: 01 00 00 F2 23 15 [12:11:07]Write i2c OK [12:11:07]MH_I2C_Read... [12:11:07]Read from MH i2c: 01 [12:11:07]MH_I2C_Read... [12:11:07]Read from MH i2c: 01 07 00 [12:11:07]MH_I2C_Read... [12:11:07]Read from MH i2c: 01 07 00 F2 23 00 00 00 00 00 FF 0F 2A [12:11:07]RasterBufferAndPrint [12:11:07]line *****ТОВАРНЫЙ ЧЕК***** [12:11:07]line АЗС 120 [12:11:07]line Партнер нефть [12:11:07]line 02508201610067 [12:11:07]line Кассир : Асанбаев Н. [12:11:07]line Счет N : (1)673576 [12:11:07]line 21.06.2024 11:48 [12:11:07]line ПРОДАЖА [12:11:07]line ТРК (МРК, ГНК): 32 [12:11:07]line Вид ГСМ : 2710124130 [12:11:07]line Аи-92-К-5 [12:11:07]line 15.000 x 66.40 [12:11:07]line ИТОГ: 996.00 [12:11:07]line Тип оплаты: Талоны: ТК ГПНА Online [12:11:07]line 30073409 [12:11:07]line ______________________ [12:11:07]line (подпись) [12:11:07]written 0, free lines is 4095 [12:11:08]Write to MH i2c: 01 00 00 06 24 2A [12:11:08]Write i2c OK [12:11:08]MH_I2C_Read... [12:11:08]Read from MH i2c: 01 [12:11:08]MH_I2C_Read... [12:11:08]Read from MH i2c: 01 07 00 [12:11:08]MH_I2C_Read... [12:11:08]Read from MH i2c: 01 07 00 06 24 00 00 00 00 00 10 0E 4F [12:11:08]RasterBufferAndPrint [12:11:08]line [12:11:08]line [12:11:08]line [12:11:08]line [12:11:08]line [12:11:08]written 0, free lines is 3602 [12:11:08]MH_Cut [12:11:08]Write to MH i2c: D1 01 00 0D 24 01 03 [12:11:08]Write i2c OK [12:11:08]MH_I2C_Read... [12:11:08]Read from MH i2c: D1 [12:11:08]MH_I2C_Read... [12:11:08]Read from MH i2c: D1 01 00 [12:11:08]MH_I2C_Read... [12:11:08]Read from MH i2c: D1 01 00 0D 24 00 02 [12:11:08]Write to MH i2c: 01 00 00 0E 24 32 [12:11:08]Write i2c OK [12:11:08]MH_I2C_Read... [12:11:08]*** Cut start [12:11:08]*** Partial cut [12:11:08]*** CUTSNS_PIN = 1 [12:11:08]*** CUTSNS_PIN = 0 [12:11:08]*** Brake cut motor [12:11:09]Read from MH i2c: 01 [12:11:09]MH_I2C_Read... [12:11:09]*** Stop cut motor [12:11:09]*** Cut end [12:11:09]Read from MH i2c: 01 07 00 [12:11:09]MH_I2C_Read... [12:11:09]Read from MH i2c: 01 07 00 0E 24 00 00 00 00 00 FF 0F 47 [12:11:09]process_action print_text done [12:11:09]requested_data is exist [12:11:09]produce_requested_data [12:11:09]requested_item fm.sn is exist - process it [12:11:09]wFMCommunicate request_size=4 [12:11:09]MH_SAM_APDU [12:11:09]CAPDU: 80 11 00 00 [12:11:09]Write to MH i2c: E2 08 00 0F 24 80 11 00 00 00 00 00 00 AD [12:11:09]Write i2c OK [12:11:09]MH_I2C_Read... [12:11:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:11:09]Read from MH i2c: E2 [12:11:09]MH_I2C_Read... [12:11:09]Read from MH i2c: E2 17 00 [12:11:09]MH_I2C_Read... [12:11:09]Read from MH i2c: E2 17 00 0F 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 00 [12: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 [12:11:09]wFMCommunicate OK [12:11:09]requested_item fd.num is exist - process it [12:11:09]SAM_PROTO_GetFieldsCounters [12:11:09]wFMCommunicate request_size=4 [12:11:09]MH_SAM_APDU [12:11:09]CAPDU: 80 13 00 00 [12:11:09]Write to MH i2c: E2 08 00 10 24 80 13 00 00 00 00 00 00 B0 [12:11:09]Write i2c OK [12:11:09]MH_I2C_Read... [12:11:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:11:09]Read from MH i2c: E2 [12:11:09]MH_I2C_Read... [12:11:09]Read from MH i2c: E2 62 00 [12:11:09]MH_I2C_Read... [12:11:09]Read from MH i2c: E2 62 00 10 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 D8 96 01 00 0E 04 04 00 63 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 8B [12: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 D8 96 01 00 0E 04 04 00 63 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 [12:11:09]wFMCommunicate OK [12:11:09]SAM_PROTO_GetFieldsCounters done [12:11:09]requested_item shift.num is exist - process it [12:11:09]requested_item shift.opened is exist - process it [12:11:09]req_shift_opened [12:11:09]FM_GetShiftState [12:11:09]SAM_PROTO_GetShiftState [12:11:09]wFMCommunicate request_size=4 [12:11:09]MH_SAM_APDU [12:11:09]CAPDU: 80 13 01 00 [12:11:09]Write to MH i2c: E2 08 00 11 24 80 13 01 00 00 00 00 00 B2 [12:11:09]Write i2c OK [12:11:09]MH_I2C_Read... [12:11:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:11:09]Read from MH i2c: E2 [12:11:09]MH_I2C_Read... [12:11:09]Read from MH i2c: E2 0E 00 [12:11:09]MH_I2C_Read... [12:11:09]Read from MH i2c: E2 0E 00 11 24 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 C5 [12:11:09]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [12:11:09]wFMCommunicate OK [12:11:09]SAM_PROTO_GetShiftState done [12:11:09]FM_GetShiftState done [12:11:09]req_shift_opened done [12:11:09]requested_item shift.open_date is exist - process it [12:11:09]req_shift_open_date [12:11:09]req_shift_open_date done [12:11:09]produce_requested_data done [12:11:09]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104152,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [12:11:09]process_action_free print_text [12:11:09]json_value_free [12:11:09]json_value_free done [12:11:09]process_json_proto returns [12:11:09]Send response to host [12:11:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104152,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [12:11:09]free response buf [12:11:09]execute_script done [12:11:09]execute_script returns [12:11:09]free content buf [12:11:09]Sock 10.Close socket [12:11:09]Sock 10.Thread stoped [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: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:45]accept exits with 7 [12:14:45]New connection [12:14:45]New thread 3066858852 created [12:14:45]Thread 3066715492 joined [12:14:45]Waiting for new connection... [12:14:45] Sock 7.Parse request [12:14:45]Sock 7.Check first char [12:14:45]Sock 7.First char is OK [12:14:45]request: POST /json_proto HTTP/1.0 [12:14:45]Method: POST [12:14:45]URL: /json_proto [12:14:45]Method is POST - this is cgi request [12:14:45]url: /json_proto [12:14:45]query_string will be loaded in cgi processing [12:14:45]execute_cgi json_proto POST (null) [12:14:45]execute_cgi path=json_proto method=POST [12:14:45]POST find Content-Length [12:14:45]Host: 172.17.38.133:8080 [12:14:45]Content-Length: 677 [12:14:45]Content-Type: application/json [12:14:45] [12:14:45]POST finish read [12:14:45]Found Content-Length = 677 [12:14:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673577", "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.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" ] } } [12:14:45]execute_script... [12:14:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673577", "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.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" ] } } [12:14:45]POST & json_proto [12:14:45]process_json_proto [12:14:45]json parsed OK: [12:14:45]protocol is kg_v1.0 [12:14:45]action value=close_receipt [12:14:45]process_action close_receipt [12:14:45]cmd_close_receipt [12:14:45]MH_GetDate [12:14:45]Write to MH i2c: F0 00 00 12 24 25 [12:14:45]Write i2c OK [12:14:45]MH_I2C_Read... [12:14:45]Read from MH i2c: F0 [12:14:45]MH_I2C_Read... [12:14:45]Read from MH i2c: F0 09 00 [12:14:45]MH_I2C_Read... [12:14:45]Read from MH i2c: F0 09 00 12 24 00 B9 6E 75 66 BD 8F 7C 64 5C [12:14:45]GetLastDocTimeStamp 1718971641 [12:14:45]current date 1718972089 [12:14:45]FM_GetShiftState [12:14:45]SAM_PROTO_GetShiftState [12:14:45]wFMCommunicate request_size=4 [12:14:45]MH_SAM_APDU [12:14:45]CAPDU: 80 13 01 00 [12:14:45]Write to MH i2c: E2 08 00 13 24 80 13 01 00 00 00 00 00 B4 [12:14:45]Write i2c OK [12:14:45]MH_I2C_Read... [12:14:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:14:45]Read from MH i2c: E2 [12:14:45]MH_I2C_Read... [12:14:45]Read from MH i2c: E2 0E 00 [12:14:45]MH_I2C_Read... [12:14:45]Read from MH i2c: E2 0E 00 13 24 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 C7 [12:14:45]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [12:14:45]wFMCommunicate OK [12:14:45]SAM_PROTO_GetShiftState done [12:14:45]FM_GetShiftState done [12:14:45]opened in 1718929509 [12:14:45]opened+sec_in_day 1719015909 [12:14:45]quantity*price = 35059 [12:14:45]sum+1 = 35060 [12:14:45]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 СНО: Общий режим Чек 76 21.06.2024 12:14 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104153 ФПД: 177174295559717 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T121449&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104153&fm=177174295559717&tin=02508201610067®Number=0000000000092785&sum=35000 [12:14:46]StoreToDocumentArchive [12:14:46]shift 355 fd 104153 [12:14:46]save to /storage/0355/doc_00104153 [12:14:46]save last doc name /storage/0355/doc_00104153 to /storage/kkm_last_doc_name [12:14:46]save OK [12:14:46]Clear old archive folders... [12:14:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:14:46]tlvbuf is 01131E20 [12:14:46]SAM_PROTO_ClearQueue [12:14:46]wFMCommunicate request_size=4 [12:14:46]MH_SAM_APDU [12:14:46]CAPDU: 80 09 00 00 [12:14:46]Write to MH i2c: E2 08 00 20 24 80 09 00 00 00 00 00 00 B6 [12:14:46]Write i2c OK [12:14:46]MH_I2C_Read... [12:14:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:14:46]Read from MH i2c: E2 [12:14:46]MH_I2C_Read... [12:14:46]Read from MH i2c: E2 03 00 [12:14:46]MH_I2C_Read... [12:14:46]Read from MH i2c: E2 03 00 20 24 00 90 00 B8 [12:14:46]RAPDU: 90 00 [12:14:46]wFMCommunicate OK [12:14:46]SAM_PROTO_ClearQueue done [12:14:46]KKMCreateOFDPacket [12:14:46]OFDProtocolAddRootSTLVToBuf [12:14:46]FM_MakeSignedData [12:14:46]FM_MakeSignedData [12:14:46]SAM_PROTO_SignData [12:14:46]wFMCommunicate request_size=4 [12:14:46]MH_SAM_APDU [12:14:46]CAPDU: 80 0D 01 02 [12:14:46]Write to MH i2c: E2 08 00 21 24 80 0D 01 02 00 00 00 00 BE [12:14:46]Write i2c OK [12:14:46]MH_I2C_Read... [12:14:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:14:46]Read from MH i2c: E2 [12:14:46]MH_I2C_Read... [12:14:46]Read from MH i2c: E2 03 00 [12:14:46]MH_I2C_Read... [12:14:46]Read from MH i2c: E2 03 00 21 24 00 90 00 B9 [12:14:46]RAPDU: 90 00 [12:14:46]wFMCommunicate OK [12:14:46]wFMCommunicate request_size=255 [12:14:46]MH_SAM_APDU [12:14:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 4C 00 00 00 F4 03 04 00 B9 6E 75 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 D9 96 01 00 35 04 06 00 A1 [12:14:46]Write to MH i2c: E2 02 01 22 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 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 4C 00 00 00 F4 03 04 00 B9 6E 75 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 D9 96 01 00 35 04 06 00 A1 00 00 19 [12:14:46]Write i2c OK [12:14:46]MH_I2C_Read... [12:14:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:14:47]Read from MH i2c: E2 [12:14:47]MH_I2C_Read... [12:14:47]Read from MH i2c: E2 03 00 [12:14:47]MH_I2C_Read... [12:14:47]Read from MH i2c: E2 03 00 22 24 00 90 00 BA [12:14:47]RAPDU: 90 00 [12:14:47]wFMCommunicate OK [12:14:47]wFMCommunicate request_size=10 [12:14:47]MH_SAM_APDU [12:14:47]CAPDU: 80 0D 02 02 05 23 9A F3 3E 25 [12:14:47]Write to MH i2c: E2 0D 00 23 24 80 0D 02 02 05 00 23 9A F3 3E 25 00 00 DE [12:14:47]Write i2c OK [12:14:47]MH_I2C_Read... [12:14:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:14:47]Read from MH i2c: E2 [12:14:47]MH_I2C_Read... [12:14:47]Read from MH i2c: E2 03 00 [12:14:47]MH_I2C_Read... [12:14:47]Read from MH i2c: E2 03 00 23 24 00 90 00 BB [12:14:47]RAPDU: 90 00 [12:14:47]wFMCommunicate OK [12:14:47]wFMCommunicate request_size=4 [12:14:47]MH_SAM_APDU [12:14:47]CAPDU: 80 0D 03 02 [12:14:47]Write to MH i2c: E2 08 00 24 24 80 0D 03 02 00 00 00 00 C3 [12:14:47]Write i2c OK [12:14:47]MH_I2C_Read... [12:14:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:14:47]Read from MH i2c: E2 [12:14:47]MH_I2C_Read... [12:14:47]Read from MH i2c: E2 0B 00 [12:14:47]MH_I2C_Read... [12:14:47]Read from MH i2c: E2 0B 00 24 24 00 F2 E7 46 58 E3 87 2B 5D 90 00 2D [12:14:47]RAPDU: F2 E7 46 58 E3 87 2B 5D 90 00 [12:14:47]wFMCommunicate OK [12:14:47]SAM_PROTO_SignData done [12:14:47]FM_MakeSignedData done [12:14:47]CreateOFDProtocolMessage [12:14:47]wFMCommunicate request_size=4 [12:14:47]MH_SAM_APDU [12:14:47]CAPDU: 80 11 00 00 [12:14:47]Write to MH i2c: E2 08 00 25 24 80 11 00 00 00 00 00 00 C3 [12:14:47]Write i2c OK [12:14:47]MH_I2C_Read... [12:14:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:14:47]Read from MH i2c: E2 [12:14:47]MH_I2C_Read... [12:14:47]Read from MH i2c: E2 17 00 [12:14:47]MH_I2C_Read... [12:14:47]Read from MH i2c: E2 17 00 25 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 16 [12:14:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:14:47]wFMCommunicate OK [12:14:47]CreateOFDProtocolMessage done [12:14:47]OFDSenderStorePacket 104153 [12:14:47]StoreOFDPacket docnum=104153 [12:14: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 EE BD 07 01 D0 04 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 4C 00 00 00 F4 03 04 00 B9 6E 75 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 D9 96 01 00 35 04 06 00 A1 23 9A F3 3E 25 F2 E7 46 58 E3 87 2B 5D [12:14:47]CheckFolder [12:14:47]dirname=/storage/ofd_packets [12:14:47]CheckFolder done [12:14:47]ProducePacketName [12:14:47]name=ofd_packets/00104153 [12:14:47]NVStorageSaveData ofd_packets/00104153 [12:14:47]File name is /storage/ofd_packets/00104153 [12:14:47]Write 301 bytes [12:14:47]NVStorageSaveData done [12:14:47]OFDSenderStorePacket done [12:14:47]KKMCreateOFDPacket done [12:14:47]NVStorageSaveData kkm_last_timestamp [12:14:47]File name is /storage/kkm_last_timestamp [12:14:47]Write 4 bytes [12:14:47]NVStorageSaveData done [12:14:47]ExternCall_PrintAddStr [12:14:47]wPrintStart [12:14:47]Write to MH i2c: 01 00 00 26 24 4A [12:14:47]Write i2c OK [12:14:47]MH_I2C_Read... [12:14:47]Read from MH i2c: 01 [12:14:47]MH_I2C_Read... [12:14:47]Read from MH i2c: 01 07 00 [12:14:47]MH_I2C_Read... [12:14:47]Read from MH i2c: 01 07 00 26 24 00 00 00 00 00 FF 0F 5F [12:14:47]RasterBufferAndPrint [12:14:47]line Счет N : (1)673577 [12:14:47]line ИНН: 02508201610067 [12:14:47]line Контрольно-Кассовый Чек [12:14:47]line ПРОДАЖА [12:14:47]line ТРК (МРК, ГНК) : 32 [12:14:47]line Товар: 2710124130 [12:14:47]line Аи-92-К-5 [12:14:47]line 5.280 * 66.40 [12:14:47]line = 350.59 [12:14:47]line НДС 12% НСП 1% [12:14:47]line > о реализуемом товаре [12:14:47]line ОКРУГЛЕНИЕ: -0.59 [12:14:47]line ИТОГО: 350.00 [12:14:47]line Внесено: 350.00 [12:14:47]line СДАЧА: 0.00 [12:14:47]line НСП 1% : 3.10 [12:14:47]line НДС 12% : 37.23 [12:14:47]line Наличными: 350.00 [12:14:47]line Безнал.: 0.00 [12:14:47]line Место: АЗС № 120 "Партнер Нефть" [12:14:47]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [12:14:47]line СНО: Общий режим [12:14:47]line Чек 76 21.06.2024 12:14 [12:14:47]line Смена: 355 ФФД: 1.0 [12:14:47]line ЗНМ: 0300000164 [12:14:47]line РНМ: 0000000000092785 [12:14:47]line Версия ККМ: 001 [12:14:47]line ФМ: 0000000000875093 [12:14:47]line ФД: 104153 [12:14:47]line ФПД: 177174295559717 [12:14:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T121449&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104153&fm=177174295559717&tin=02508201610067®Number=0000000000092785&sum=35000 [12:14:47]written 0, free lines is 4095 [12:14:47]OFD Sender: Processing packet 104153 [packets to send 17, broken 16] [12:14:47]ProducePacketName [12:14:47]name=ofd_packets/00104153 [12:14:47]OFD Sender: To server: pG, [12:14:47]CommunicateWithHost lk.salyk.kg:30040 [12:14:47]ConnectInit lk.salyk.kg [12:14:47]Connected sock=10 [12:14:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 EE BD 07 01 D0 04 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 4C 00 00 00 F4 03 04 00 B9 6E 75 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 D9 96 01 00 35 04 06 00 A1 23 9A F3 3E 25 F2 E7 46 58 E3 87 2B 5D [12:14: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 88 9A 47 00 5A 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 D9 96 01 00 F4 03 04 00 3C 15 75 66 B6 04 01 00 00 7C 6B 22 3D C8 F0 ED 5E [12:14:47]CommunicateWithHost err = 0 [12:14:47]CheckOFDResponse [12:14:47]1017 (14) - 77093643461234 [12:14:47]1041 (16) - 0000000000875093 [12:14:47]1040 (4) - 104153 [12:14:47]1012 (4) - 21.06.2024 05:53 [12:14:47]1206 (1) - 0 [12:14:47]OFD Sender: Remove packet 104153 [12:14:47]ProducePacketName [12:14:47]name=ofd_packets/00104153 [12:14:47]NVStorageDeleteData [12:14:47]Write to MH i2c: 01 00 00 51 24 75 [12:14:47]Write i2c OK [12:14:47]MH_I2C_Read... [12:14:47]Read from MH i2c: 01 [12:14:47]MH_I2C_Read... [12:14:47]Read from MH i2c: 01 07 00 [12:14:47]MH_I2C_Read... [12:14:47]Read from MH i2c: 01 07 00 51 24 00 00 00 00 00 F0 0C 78 [12:14:47]RasterBufferAndPrint [12:14:47]line [12:14:47]line [12:14:47]line [12:14:47]line [12:14:47]line [12:14:47]written 0, free lines is 3318 [12:14:47]MH_Cut [12:14:47]Write to MH i2c: D1 01 00 58 24 01 4E [12:14:47]Write i2c OK [12:14:47]MH_I2C_Read... [12:14:47]Read from MH i2c: D1 [12:14:47]MH_I2C_Read... [12:14:47]Read from MH i2c: D1 01 00 [12:14:47]MH_I2C_Read... [12:14:47]Read from MH i2c: D1 01 00 58 24 00 4D [12:14:47]Write to MH i2c: 01 00 00 59 24 7D [12:14:47]Write i2c OK [12:14:47]MH_I2C_Read... [12:14:48]OFD Sender: No OFD packet to send [12:14:48]*** Cut start [12:14:48]*** Partial cut [12:14:48]*** CUTSNS_PIN = 1 [12:14:48]*** CUTSNS_PIN = 0 [12:14:48]*** Brake cut motor [12:14:48]Read from MH i2c: 01 [12:14:48]MH_I2C_Read... [12:14:48]*** Stop cut motor [12:14:48]*** Cut end [12:14:48]Read from MH i2c: 01 07 00 [12:14:48]MH_I2C_Read... [12:14:48]Read from MH i2c: 01 07 00 59 24 00 00 00 00 00 FF 0F 92 [12:14:48]process_action close_receipt done [12:14:48]requested_data is exist [12:14:48]produce_requested_data [12:14:48]requested_item fm.sn is exist - process it [12:14:48]wFMCommunicate request_size=4 [12:14:48]MH_SAM_APDU [12:14:48]CAPDU: 80 11 00 00 [12:14:48]Write to MH i2c: E2 08 00 5A 24 80 11 00 00 00 00 00 00 F8 [12:14:48]Write i2c OK [12:14:48]MH_I2C_Read... [12:14:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:14:49]Read from MH i2c: E2 [12:14:49]MH_I2C_Read... [12:14:49]Read from MH i2c: E2 17 00 [12:14:49]MH_I2C_Read... [12:14:49]Read from MH i2c: E2 17 00 5A 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 4B [12:14:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:14:49]wFMCommunicate OK [12:14:49]requested_item fd.num is exist - process it [12:14:49]SAM_PROTO_GetFieldsCounters [12:14:49]wFMCommunicate request_size=4 [12:14:49]MH_SAM_APDU [12:14:49]CAPDU: 80 13 00 00 [12:14:49]Write to MH i2c: E2 08 00 5B 24 80 13 00 00 00 00 00 00 FB [12:14:49]Write i2c OK [12:14:49]MH_I2C_Read... [12:14:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:14:49]Read from MH i2c: E2 [12:14:49]MH_I2C_Read... [12:14:49]Read from MH i2c: E2 62 00 [12:14:49]MH_I2C_Read... [12:14:49]Read from MH i2c: E2 62 00 5B 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 D9 96 01 00 0E 04 04 00 63 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 DA [12:14:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 96 01 00 0E 04 04 00 63 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 [12:14:49]wFMCommunicate OK [12:14:49]SAM_PROTO_GetFieldsCounters done [12:14:49]requested_item shift.num is exist - process it [12:14:49]requested_item shift.opened is exist - process it [12:14:49]req_shift_opened [12:14:49]FM_GetShiftState [12:14:49]SAM_PROTO_GetShiftState [12:14:49]wFMCommunicate request_size=4 [12:14:49]MH_SAM_APDU [12:14:49]CAPDU: 80 13 01 00 [12:14:49]Write to MH i2c: E2 08 00 5C 24 80 13 01 00 00 00 00 00 FD [12:14:49]Write i2c OK [12:14:49]MH_I2C_Read... [12:14:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:14:49]Read from MH i2c: E2 [12:14:49]MH_I2C_Read... [12:14:49]Read from MH i2c: E2 0E 00 [12:14:49]MH_I2C_Read... [12:14:49]Read from MH i2c: E2 0E 00 5C 24 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 10 [12:14:49]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [12:14:49]wFMCommunicate OK [12:14:49]SAM_PROTO_GetShiftState done [12:14:49]FM_GetShiftState done [12:14:49]req_shift_opened done [12:14:49]requested_item shift.open_date is exist - process it [12:14:49]req_shift_open_date [12:14:49]req_shift_open_date done [12:14:49]produce_requested_data done [12:14:49]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104153,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [12:14:49]process_action_free close_receipt [12:14:49]json_value_free [12:14:49]json_value_free done [12:14:49]process_json_proto returns [12:14:49]Send response to host [12:14:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104153,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [12:14:49]free response buf [12:14:49]execute_script done [12:14:49]execute_script returns [12:14:49]free content buf [12:14:49]Sock 7.Close socket [12:14:49]Sock 7.Thread stoped [12:14:53]OFD Sender: No OFD packet to send [12:14:58]OFD Sender: No OFD packet to send [12:15:03]OFD Sender: No OFD packet to send [12:15:08]OFD Sender: No OFD packet to send [12:15:13]OFD Sender: No OFD packet to send [12:15:18]OFD Sender: No OFD packet to send [12:15:23]OFD Sender: No OFD packet to send [12:15:28]OFD Sender: No OFD packet to send [12:15:33]OFD Sender: No OFD packet to send [12:15:38]OFD Sender: No OFD packet to send [12:15:43]OFD Sender: No OFD packet to send [12:15:48]OFD Sender: No OFD packet to send [12:15:53]OFD Sender: No OFD packet to send [12:15:58]OFD Sender: No OFD packet to send [12:16:03]OFD Sender: No OFD packet to send [12:16:08]OFD Sender: No OFD packet to send [12:16:13]OFD Sender: No OFD packet to send [12:16:18]OFD Sender: No OFD packet to send [12:16:23]OFD Sender: No OFD packet to send [12:16:28]OFD Sender: No OFD packet to send [12:16:33]OFD Sender: No OFD packet to send [12:16:35]accept exits with 9 [12:16:35]New connection [12:16:35]New thread 3066715492 created [12:16:35]Thread 3066858852 joined [12:16:35]Waiting for new connection... [12:16:35] Sock 9.Parse request [12:16:35]Sock 9.Check first char [12:16:35]Sock 9.First char is OK [12:16:35]request: POST /json_proto HTTP/1.0 [12:16:35]Method: POST [12:16:35]URL: /json_proto [12:16:35]Method is POST - this is cgi request [12:16:35]url: /json_proto [12:16:35]query_string will be loaded in cgi processing [12:16:35]execute_cgi json_proto POST (null) [12:16:35]execute_cgi path=json_proto method=POST [12:16:35]POST find Content-Length [12:16:35]Host: 172.17.38.133:8080 [12:16:35]Content-Length: 684 [12:16:35]Content-Type: application/json [12:16:35] [12:16:35]POST finish read [12:16:35]Found Content-Length = 684 [12:16:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673579", "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.010, "sum" : 948.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 948.00, "payments": [ { "type": 0, "sum" : 948.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:16:35]execute_script... [12:16: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)673579", "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.010, "sum" : 948.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 948.00, "payments": [ { "type": 0, "sum" : 948.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:16:35]POST & json_proto [12:16:35]process_json_proto [12:16:35]json parsed OK: [12:16:35]protocol is kg_v1.0 [12:16:35]action value=close_receipt [12:16:35]process_action close_receipt [12:16:35]cmd_close_receipt [12:16:35]MH_GetDate [12:16:35]Write to MH i2c: F0 00 00 5D 24 70 [12:16:35]Write i2c OK [12:16:35]MH_I2C_Read... [12:16:35]Read from MH i2c: F0 [12:16:35]MH_I2C_Read... [12:16:35]Read from MH i2c: F0 09 00 [12:16:35]MH_I2C_Read... [12:16:35]Read from MH i2c: F0 09 00 5D 24 00 28 6F 75 66 BD 8F 7C 64 17 [12:16:35]GetLastDocTimeStamp 1718972089 [12:16:35]current date 1718972200 [12:16:35]FM_GetShiftState [12:16:35]SAM_PROTO_GetShiftState [12:16:35]wFMCommunicate request_size=4 [12:16:35]MH_SAM_APDU [12:16:35]CAPDU: 80 13 01 00 [12:16:35]Write to MH i2c: E2 08 00 5E 24 80 13 01 00 00 00 00 00 FF [12:16:35]Write i2c OK [12:16:35]MH_I2C_Read... [12:16:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:16:35]Read from MH i2c: E2 [12:16:35]MH_I2C_Read... [12:16:35]Read from MH i2c: E2 0E 00 [12:16:35]MH_I2C_Read... [12:16:35]Read from MH i2c: E2 0E 00 5E 24 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 12 [12:16:35]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [12:16:35]wFMCommunicate OK [12:16:35]SAM_PROTO_GetShiftState done [12:16:35]FM_GetShiftState done [12:16:35]opened in 1718929509 [12:16:35]opened+sec_in_day 1719015909 [12:16:35]quantity*price = 94842 [12:16:35]sum+1 = 94844 [12:16:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 948.00 Внесено: 2000.00 СДАЧА: 1052.00 НСП 1% : 8.39 НДС 12% : 100.72 Наличными: 948.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 77 21.06.2024 12:16 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104154 ФПД: 4642009515516 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T121640&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104154&fm=4642009515516&tin=02508201610067®Number=0000000000092785&sum=94800 [12:16:36]StoreToDocumentArchive [12:16:36]shift 355 fd 104154 [12:16:36]save to /storage/0355/doc_00104154 [12:16:36]save last doc name /storage/0355/doc_00104154 to /storage/kkm_last_doc_name [12:16:36]save OK [12:16:36]Clear old archive folders... [12:16:36]ProcessDocumentItem done err = 0, tmpTLVsize=252 [12:16:36]tlvbuf is 01157650 [12:16:36]SAM_PROTO_ClearQueue [12:16:36]wFMCommunicate request_size=4 [12:16:36]MH_SAM_APDU [12:16:36]CAPDU: 80 09 00 00 [12:16:36]Write to MH i2c: E2 08 00 6B 24 80 09 00 00 00 00 00 00 01 [12:16:36]Write i2c OK [12:16:36]MH_I2C_Read... [12:16:36]Read from MH i2c: E2 [12:16:36]MH_I2C_Read... [12:16:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:16:36]Read from MH i2c: E2 03 00 [12:16:36]MH_I2C_Read... [12:16:36]Read from MH i2c: E2 03 00 6B 24 00 90 00 03 [12:16:36]RAPDU: 90 00 [12:16:36]wFMCommunicate OK [12:16:36]SAM_PROTO_ClearQueue done [12:16:36]KKMCreateOFDPacket [12:16:36]OFDProtocolAddRootSTLVToBuf [12:16:36]FM_MakeSignedData [12:16:36]FM_MakeSignedData [12:16:36]SAM_PROTO_SignData [12:16:36]wFMCommunicate request_size=4 [12:16:36]MH_SAM_APDU [12:16:36]CAPDU: 80 0D 01 02 [12:16:36]Write to MH i2c: E2 08 00 6C 24 80 0D 01 02 00 00 00 00 09 [12:16:36]Write i2c OK [12:16:36]MH_I2C_Read... [12:16:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:16:36]Read from MH i2c: E2 [12:16:36]MH_I2C_Read... [12:16:36]Read from MH i2c: E2 03 00 [12:16:36]MH_I2C_Read... [12:16:36]Read from MH i2c: E2 03 00 6C 24 00 90 00 04 [12:16:36]RAPDU: 90 00 [12:16:36]wFMCommunicate OK [12:16:36]wFMCommunicate request_size=255 [12:16:36]MH_SAM_APDU [12:16:36]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 D2 32 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 7B 72 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 72 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 27 00 00 00 00 07 04 06 00 50 72 01 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 28 6F 75 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 DA 96 01 00 35 04 06 00 [12:16:36]Write to MH i2c: E2 02 01 6D 24 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 D2 32 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 7B 72 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 72 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 27 00 00 00 00 07 04 06 00 50 72 01 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 28 6F 75 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 DA 96 01 00 35 04 06 00 00 00 BF [12:16:36]Write i2c OK [12:16:36]MH_I2C_Read... [12:16:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:16:37]Read from MH i2c: E2 [12:16:37]MH_I2C_Read... [12:16:37]Read from MH i2c: E2 03 00 [12:16:37]MH_I2C_Read... [12:16:37]Read from MH i2c: E2 03 00 6D 24 00 90 00 05 [12:16:37]RAPDU: 90 00 [12:16:37]wFMCommunicate OK [12:16:37]wFMCommunicate request_size=11 [12:16:37]MH_SAM_APDU [12:16:37]CAPDU: 80 0D 02 02 06 04 38 CD 54 05 FC [12:16:37]Write to MH i2c: E2 0E 00 6E 24 80 0D 02 02 06 00 04 38 CD 54 05 FC 00 00 76 [12:16:37]Write i2c OK [12:16:37]MH_I2C_Read... [12:16:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:16:37]Read from MH i2c: E2 [12:16:37]MH_I2C_Read... [12:16:37]Read from MH i2c: E2 03 00 [12:16:37]MH_I2C_Read... [12:16:37]Read from MH i2c: E2 03 00 6E 24 00 90 00 06 [12:16:37]RAPDU: 90 00 [12:16:37]wFMCommunicate OK [12:16:37]wFMCommunicate request_size=4 [12:16:37]MH_SAM_APDU [12:16:37]CAPDU: 80 0D 03 02 [12:16:37]Write to MH i2c: E2 08 00 6F 24 80 0D 03 02 00 00 00 00 0E [12:16:37]Write i2c OK [12:16:37]MH_I2C_Read... [12:16:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:16:37]Read from MH i2c: E2 [12:16:37]MH_I2C_Read... [12:16:37]Read from MH i2c: E2 0B 00 [12:16:37]MH_I2C_Read... [12:16:37]Read from MH i2c: E2 0B 00 6F 24 00 CB DF 58 BE 52 D1 89 16 90 00 91 [12:16:37]RAPDU: CB DF 58 BE 52 D1 89 16 90 00 [12:16:37]wFMCommunicate OK [12:16:37]SAM_PROTO_SignData done [12:16:37]FM_MakeSignedData done [12:16:37]CreateOFDProtocolMessage [12:16:37]wFMCommunicate request_size=4 [12:16:37]MH_SAM_APDU [12:16:37]CAPDU: 80 11 00 00 [12:16:37]Write to MH i2c: E2 08 00 70 24 80 11 00 00 00 00 00 00 0E [12:16:37]Write i2c OK [12:16:37]MH_I2C_Read... [12:16:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:16:37]Read from MH i2c: E2 [12:16:37]MH_I2C_Read... [12:16:37]Read from MH i2c: E2 17 00 [12:16:37]MH_I2C_Read... [12:16:37]Read from MH i2c: E2 17 00 70 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 61 [12:16: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:16:37]wFMCommunicate OK [12:16:37]CreateOFDProtocolMessage done [12:16:37]OFDSenderStorePacket 104154 [12:16:37]StoreOFDPacket docnum=104154 [12:16: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 66 F2 08 01 EE 52 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 D2 32 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 7B 72 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 72 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 27 00 00 00 00 07 04 06 00 50 72 01 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 28 6F 75 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 DA 96 01 00 35 04 06 00 04 38 CD 54 05 FC CB DF 58 BE 52 D1 89 16 [12:16:37]CheckFolder [12:16:37]dirname=/storage/ofd_packets [12:16:37]CheckFolder done [12:16:37]ProducePacketName [12:16:37]name=ofd_packets/00104154 [12:16:37]NVStorageSaveData ofd_packets/00104154 [12:16:37]File name is /storage/ofd_packets/00104154 [12:16:37]Write 302 bytes [12:16:37]NVStorageSaveData done [12:16:37]OFDSenderStorePacket done [12:16:37]KKMCreateOFDPacket done [12:16:37]NVStorageSaveData kkm_last_timestamp [12:16:37]File name is /storage/kkm_last_timestamp [12:16:37]Write 4 bytes [12:16:37]NVStorageSaveData done [12:16:37]ExternCall_PrintAddStr [12:16:37]wPrintStart [12:16:37]Write to MH i2c: 01 00 00 71 24 95 [12:16:37]Write i2c OK [12:16:37]MH_I2C_Read... [12:16:37]Read from MH i2c: 01 [12:16:37]MH_I2C_Read... [12:16:37]Read from MH i2c: 01 07 00 [12:16:37]MH_I2C_Read... [12:16:37]Read from MH i2c: 01 07 00 71 24 00 00 00 00 00 FF 0F AA [12:16:37]RasterBufferAndPrint [12:16:37]line Счет N : (1)673579 [12:16:37]line ИНН: 02508201610067 [12:16:37]line Контрольно-Кассовый Чек [12:16:37]line ПРОДАЖА [12:16:37]line ТРК (МРК, ГНК) : 21 [12:16:37]line Товар: 2710194210 [12:16:37]line ДТ(л)-К-5 [12:16:37]line 13.010 * 72.90 [12:16:37]line = 948.43 [12:16:37]line НДС 12% НСП 1% [12:16:37]line > о реализуемом товаре [12:16:37]line ОКРУГЛЕНИЕ: -0.43 [12:16:37]line ИТОГО: 948.00 [12:16:37]line Внесено: 2000.00 [12:16:37]line СДАЧА: 1052.00 [12:16:37]line НСП 1% : 8.39 [12:16:37]line НДС 12% : 100.72 [12:16:37]line Наличными: 948.00 [12:16:37]line Безнал.: 0.00 [12:16:37]line Место: АЗС № 120 "Партнер Нефть" [12:16:37]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [12:16:37]line СНО: Общий режим [12:16:37]line Чек 77 21.06.2024 12:16 [12:16:37]line Смена: 355 ФФД: 1.0 [12:16:37]line ЗНМ: 0300000164 [12:16:37]line РНМ: 0000000000092785 [12:16:37]line Версия ККМ: 001 [12:16:37]line ФМ: 0000000000875093 [12:16:37]line ФД: 104154 [12:16:37]line ФПД: 4642009515516 [12:16:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T121640&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104154&fm=4642009515516&tin=02508201610067®Number=0000000000092785&sum=94800 [12:16:37]OFD Sender: Processing packet 104154 [packets to send 17, broken 16] [12:16:37]ProducePacketName [12:16:37]name=ofd_packets/00104154 [12:16:37]OFD Sender: To server: pG, [12:16:37]CommunicateWithHost lk.salyk.kg:30040 [12:16:37]ConnectInit lk.salyk.kg [12:16:37]written 0, free lines is 4095 [12:16:38]Write to MH i2c: 01 00 00 9C 24 C0 [12:16:38]Write i2c OK [12:16:38]MH_I2C_Read... [12:16:38]Read from MH i2c: 01 [12:16:38]MH_I2C_Read... [12:16:38]Read from MH i2c: 01 07 00 [12:16:38]MH_I2C_Read... [12:16:38]Read from MH i2c: 01 07 00 9C 24 00 00 00 00 00 D9 0C AC [12:16:38]RasterBufferAndPrint [12:16:38]line [12:16:38]line [12:16:38]line [12:16:38]line [12:16:38]line [12:16:38]written 0, free lines is 3296 [12:16:38]MH_Cut [12:16:38]Write to MH i2c: D1 01 00 A3 24 01 99 [12:16:38]Write i2c OK [12:16:38]MH_I2C_Read... [12:16:38]Read from MH i2c: D1 [12:16:38]MH_I2C_Read... [12:16:38]Read from MH i2c: D1 01 00 [12:16:38]MH_I2C_Read... [12:16:38]Read from MH i2c: D1 01 00 A3 24 00 98 [12:16:38]Write to MH i2c: 01 00 00 A4 24 C8 [12:16:38]Write i2c OK [12:16:38]MH_I2C_Read... [12:16:38]*** Cut start [12:16:38]*** Partial cut [12:16:38]*** CUTSNS_PIN = 1 [12:16:38]*** CUTSNS_PIN = 0 [12:16:39]*** Brake cut motor [12:16:39]Read from MH i2c: 01 [12:16:39]MH_I2C_Read... [12:16:39]*** Stop cut motor [12:16:39]*** Cut end [12:16:39]Read from MH i2c: 01 07 00 [12:16:39]MH_I2C_Read... [12:16:39]Read from MH i2c: 01 07 00 A4 24 00 00 00 00 00 FF 0F DD [12:16:39]process_action close_receipt done [12:16:39]requested_data is exist [12:16:39]produce_requested_data [12:16:39]requested_item fm.sn is exist - process it [12:16:39]wFMCommunicate request_size=4 [12:16:39]MH_SAM_APDU [12:16:39]CAPDU: 80 11 00 00 [12:16:39]Write to MH i2c: E2 08 00 A5 24 80 11 00 00 00 00 00 00 43 [12:16:39]Write i2c OK [12:16:39]MH_I2C_Read... [12:16:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:16:39]Read from MH i2c: E2 [12:16:39]MH_I2C_Read... [12:16:39]Read from MH i2c: E2 17 00 [12:16:39]MH_I2C_Read... [12:16:39]Read from MH i2c: E2 17 00 A5 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 96 [12:16: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:16:39]wFMCommunicate OK [12:16:39]requested_item fd.num is exist - process it [12:16:39]SAM_PROTO_GetFieldsCounters [12:16:39]wFMCommunicate request_size=4 [12:16:39]MH_SAM_APDU [12:16:39]CAPDU: 80 13 00 00 [12:16:39]Write to MH i2c: E2 08 00 A6 24 80 13 00 00 00 00 00 00 46 [12:16:39]Write i2c OK [12:16:39]MH_I2C_Read... [12:16:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:16:39]Read from MH i2c: E2 [12:16:39]MH_I2C_Read... [12:16:39]Read from MH i2c: E2 62 00 [12:16:39]MH_I2C_Read... [12:16:39]Read from MH i2c: E2 62 00 A6 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 DA 96 01 00 0E 04 04 00 63 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 29 [12:16: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 DA 96 01 00 0E 04 04 00 63 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 [12:16:39]wFMCommunicate OK [12:16:39]SAM_PROTO_GetFieldsCounters done [12:16:39]requested_item shift.num is exist - process it [12:16:39]requested_item shift.opened is exist - process it [12:16:39]req_shift_opened [12:16:39]FM_GetShiftState [12:16:39]SAM_PROTO_GetShiftState [12:16:39]wFMCommunicate request_size=4 [12:16:39]MH_SAM_APDU [12:16:39]CAPDU: 80 13 01 00 [12:16:39]Write to MH i2c: E2 08 00 A7 24 80 13 01 00 00 00 00 00 48 [12:16:39]Write i2c OK [12:16:39]MH_I2C_Read... [12:16:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:16:39]Read from MH i2c: E2 [12:16:39]MH_I2C_Read... [12:16:39]Read from MH i2c: E2 0E 00 [12:16:39]MH_I2C_Read... [12:16:39]Read from MH i2c: E2 0E 00 A7 24 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 5B [12:16:39]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [12:16:39]wFMCommunicate OK [12:16:39]SAM_PROTO_GetShiftState done [12:16:39]FM_GetShiftState done [12:16:39]req_shift_opened done [12:16:39]requested_item shift.open_date is exist - process it [12:16:39]req_shift_open_date [12:16:39]req_shift_open_date done [12:16:39]produce_requested_data done [12:16:39]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104154,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [12:16:39]process_action_free close_receipt [12:16:39]json_value_free [12:16:39]json_value_free done [12:16:39]process_json_proto returns [12:16:39]Send response to host [12:16:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104154,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [12:16:39]free response buf [12:16:39]execute_script done [12:16:39]execute_script returns [12:16:39]free content buf [12:16:39]Sock 9.Close socket [12:16:39]Sock 9.Thread stoped [12:17:10]accept exits with 7 [12:17:10]New connection [12:17:10]New thread 3066858852 created [12:17:10]Thread 3066715492 joined [12:17:10]Waiting for new connection... [12:17:10] Sock 7.Parse request [12:17:10]Sock 7.Check first char [12:17:10]Sock 7.First char is OK [12:17:10]request: POST /json_proto HTTP/1.0 [12:17:10]Method: POST [12:17:10]URL: /json_proto [12:17:10]Method is POST - this is cgi request [12:17:10]url: /json_proto [12:17:10]query_string will be loaded in cgi processing [12:17:10]execute_cgi json_proto POST (null) [12:17:10]execute_cgi path=json_proto method=POST [12:17:10]POST find Content-Length [12:17:10]Host: 172.17.38.133:8080 [12:17:10]Content-Length: 1195 [12:17:10]Content-Type: application/json [12:17:10] [12:17:10]POST finish read [12:17:10]Found Content-Length = 1195 [12:17: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 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)673578\u000A21.06.2024 11:54\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\u000A72640\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:17:10]execute_script... [12:17: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 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)673578\u000A21.06.2024 11:54\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\u000A72640\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:17:10]POST & json_proto [12:17:10]process_json_proto [12:17:10]json parsed OK: [12:17:10]protocol is kg_v1.0 [12:17:10]action value=print_text [12:17:10]process_action print_text [12:17:10]cmd_print_text [12:17:10]ExternCall_PrintAddStr [12:17:10]wPrintStart [12:17:10]Write to MH i2c: 01 00 00 A8 24 CC [12:17:10]Write i2c OK [12:17:10]MH_I2C_Read... [12:17:10]Read from MH i2c: 01 [12:17:10]MH_I2C_Read... [12:17:10]Read from MH i2c: 01 07 00 [12:17:10]MH_I2C_Read... [12:17:10]Read from MH i2c: 01 07 00 A8 24 00 00 00 00 00 FF 0F E1 [12:17:10]RasterBufferAndPrint [12:17:10]line *****ТОВАРНЫЙ ЧЕК***** [12:17:10]line АЗС 120 [12:17:10]line Партнер нефть [12:17:10]line 02508201610067 [12:17:10]line Кассир : Асанбаев Н. [12:17:10]line Счет N : (1)673578 [12:17:10]line 21.06.2024 11:54 [12:17:10]line ПРОДАЖА [12:17:10]line ТРК (МРК, ГНК): 42 [12:17:10]line Вид ГСМ : 2710124130 [12:17:10]line Аи-92-К-5 [12:17:10]line 40.000 x 66.40 [12:17:10]line ИТОГ: 2656.00 [12:17:10]line Тип оплаты: Талоны: Топливная Карта [12:17:10]line 72640 [12:17:10]line ______________________ [12:17:10]line (подпись) [12:17:10]written 0, free lines is 4095 [12:17:10]Write to MH i2c: 01 00 00 BC 24 E0 [12:17:10]Write i2c OK [12:17:10]MH_I2C_Read... [12:17:10]Read from MH i2c: 01 [12:17:10]MH_I2C_Read... [12:17:10]Read from MH i2c: 01 07 00 [12:17:10]MH_I2C_Read... [12:17:10]Read from MH i2c: 01 07 00 BC 24 00 00 00 00 00 11 0E 06 [12:17:10]RasterBufferAndPrint [12:17:10]line [12:17:10]line [12:17:10]line [12:17:10]line [12:17:10]line [12:17:10]written 0, free lines is 3603 [12:17:10]MH_Cut [12:17:10]Write to MH i2c: D1 01 00 C3 24 01 B9 [12:17:10]Write i2c OK [12:17:10]MH_I2C_Read... [12:17:10]Read from MH i2c: D1 [12:17:10]MH_I2C_Read... [12:17:10]Read from MH i2c: D1 01 00 [12:17:10]MH_I2C_Read... [12:17:10]Read from MH i2c: D1 01 00 C3 24 00 B8 [12:17:10]Write to MH i2c: 01 00 00 C4 24 E8 [12:17:10]Write i2c OK [12:17:10]MH_I2C_Read... [12:17:11]*** Cut start [12:17:11]*** Partial cut [12:17:11]*** CUTSNS_PIN = 1 [12:17:11]*** CUTSNS_PIN = 0 [12:17:11]*** Brake cut motor [12:17:11]Read from MH i2c: 01 [12:17:11]MH_I2C_Read... [12:17:11]*** Stop cut motor [12:17:11]*** Cut end [12:17:11]Read from MH i2c: 01 07 00 [12:17:11]MH_I2C_Read... [12:17:11]Read from MH i2c: 01 07 00 C4 24 00 00 00 00 00 FF 0F FD [12:17:11]process_action print_text done [12:17:11]requested_data is exist [12:17:11]produce_requested_data [12:17:11]requested_item fm.sn is exist - process it [12:17:11]wFMCommunicate request_size=4 [12:17:11]MH_SAM_APDU [12:17:11]CAPDU: 80 11 00 00 [12:17:11]Write to MH i2c: E2 08 00 C5 24 80 11 00 00 00 00 00 00 63 [12:17:11]Write i2c OK [12:17:11]MH_I2C_Read... [12:17:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:17:11]Read from MH i2c: E2 [12:17:11]MH_I2C_Read... [12:17:11]Read from MH i2c: E2 17 00 [12:17:11]MH_I2C_Read... [12:17:11]Read from MH i2c: E2 17 00 C5 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 B6 [12:17:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:17:11]wFMCommunicate OK [12:17:11]requested_item fd.num is exist - process it [12:17:11]SAM_PROTO_GetFieldsCounters [12:17:11]wFMCommunicate request_size=4 [12:17:11]MH_SAM_APDU [12:17:11]CAPDU: 80 13 00 00 [12:17:11]Write to MH i2c: E2 08 00 C6 24 80 13 00 00 00 00 00 00 66 [12:17:11]Write i2c OK [12:17:11]MH_I2C_Read... [12:17:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:17:11]Read from MH i2c: E2 [12:17:11]MH_I2C_Read... [12:17:11]Read from MH i2c: E2 62 00 [12:17:11]MH_I2C_Read... [12:17:11]Read from MH i2c: E2 62 00 C6 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 DA 96 01 00 0E 04 04 00 63 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 49 [12:17: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 DA 96 01 00 0E 04 04 00 63 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 [12:17:11]wFMCommunicate OK [12:17:11]SAM_PROTO_GetFieldsCounters done [12:17:11]requested_item shift.num is exist - process it [12:17:11]requested_item shift.opened is exist - process it [12:17:11]req_shift_opened [12:17:11]FM_GetShiftState [12:17:11]SAM_PROTO_GetShiftState [12:17:11]wFMCommunicate request_size=4 [12:17:11]MH_SAM_APDU [12:17:11]CAPDU: 80 13 01 00 [12:17:11]Write to MH i2c: E2 08 00 C7 24 80 13 01 00 00 00 00 00 68 [12:17:11]Write i2c OK [12:17:11]MH_I2C_Read... [12:17:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:17:11]Read from MH i2c: E2 [12:17:11]MH_I2C_Read... [12:17:11]Read from MH i2c: E2 0E 00 [12:17:11]MH_I2C_Read... [12:17:11]Read from MH i2c: E2 0E 00 C7 24 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 7B [12:17:11]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [12:17:11]wFMCommunicate OK [12:17:11]SAM_PROTO_GetShiftState done [12:17:11]FM_GetShiftState done [12:17:11]req_shift_opened done [12:17:11]requested_item shift.open_date is exist - process it [12:17:11]req_shift_open_date [12:17:11]req_shift_open_date done [12:17:11]produce_requested_data done [12:17:11]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104154,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [12:17:11]process_action_free print_text [12:17:11]json_value_free [12:17:11]json_value_free done [12:17:11]process_json_proto returns [12:17:11]Send response to host [12:17:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104154,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [12:17:11]free response buf [12:17:11]execute_script done [12:17:11]execute_script returns [12:17:11]free content buf [12:17:11]Sock 7.Close socket [12:17:11]Sock 7.Thread stoped [12:18:53]OFD Sender: Processing packet 104154 [packets to send 17, broken 16] [12:18:53]ProducePacketName [12:18:53]name=ofd_packets/00104154 [12:18:53]OFD Sender: To server: pG, [12:18:53]CommunicateWithHost lk.salyk.kg:30040 [12:18:53]ConnectInit lk.salyk.kg [12:18:58]ConnectInit Can't take IP for lk.salyk.kg [12:18:58]CommunicateWithHost connect error [12:18:58]CommunicateWithHost err = -1 [12:18:58]OFD Sender: Server communicate error [12:19:03]OFD Sender: Processing packet 104154 [packets to send 17, broken 16] [12:19:03]ProducePacketName [12:19:03]name=ofd_packets/00104154 [12:19:03]OFD Sender: To server: pG, [12:19:03]CommunicateWithHost lk.salyk.kg:30040 [12:19:03]ConnectInit lk.salyk.kg [12:19:08]ConnectInit Can't take IP for lk.salyk.kg [12:19:08]CommunicateWithHost connect error [12:19:08]CommunicateWithHost err = -1 [12:19:08]OFD Sender: Server communicate error [12:19:13]OFD Sender: Processing packet 104154 [packets to send 17, broken 16] [12:19:13]ProducePacketName [12:19:13]name=ofd_packets/00104154 [12:19:13]OFD Sender: To server: pG, [12:19:13]CommunicateWithHost lk.salyk.kg:30040 [12:19:13]ConnectInit lk.salyk.kg [12:19:13]accept exits with 9 [12:19:13]New connection [12:19:13]New thread 3066715492 created [12:19:13]Thread 3066858852 joined [12:19:13]Waiting for new connection... [12:19:13] Sock 9.Parse request [12:19:13]Sock 9.Check first char [12:19:13]Sock 9.First char is OK [12:19:13]request: POST /json_proto HTTP/1.0 [12:19:13]Method: POST [12:19:13]URL: /json_proto [12:19:13]Method is POST - this is cgi request [12:19:13]url: /json_proto [12:19:13]query_string will be loaded in cgi processing [12:19:13]execute_cgi json_proto POST (null) [12:19:13]execute_cgi path=json_proto method=POST [12:19:13]POST find Content-Length [12:19:13]Host: 172.17.38.133:8080 [12:19:13]Content-Length: 678 [12:19:13]Content-Type: application/json [12:19:13] [12:19:13]POST finish read [12:19:13]Found Content-Length = 678 [12:19:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673580", "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" ] } } [12:19:13]execute_script... [12:19:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673580", "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" ] } } [12:19:13]POST & json_proto [12:19:13]process_json_proto [12:19:13]json parsed OK: [12:19:13]protocol is kg_v1.0 [12:19:13]action value=close_receipt [12:19:13]process_action close_receipt [12:19:13]cmd_close_receipt [12:19:13]MH_GetDate [12:19:13]Write to MH i2c: F0 00 00 C8 24 DB [12:19:13]Write i2c OK [12:19:13]MH_I2C_Read... [12:19:13]Read from MH i2c: F0 [12:19:13]MH_I2C_Read... [12:19:13]Read from MH i2c: F0 09 00 [12:19:13]MH_I2C_Read... [12:19:13]Read from MH i2c: F0 09 00 C8 24 00 C6 6F 75 66 BD 8F 7C 64 20 [12:19:13]GetLastDocTimeStamp 1718972200 [12:19:13]current date 1718972358 [12:19:13]FM_GetShiftState [12:19:13]SAM_PROTO_GetShiftState [12:19:13]wFMCommunicate request_size=4 [12:19:13]MH_SAM_APDU [12:19:13]CAPDU: 80 13 01 00 [12:19:13]Write to MH i2c: E2 08 00 C9 24 80 13 01 00 00 00 00 00 6A [12:19:13]Write i2c OK [12:19:13]MH_I2C_Read... [12:19:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:19:13]Read from MH i2c: E2 [12:19:13]MH_I2C_Read... [12:19:13]Read from MH i2c: E2 0E 00 [12:19:13]MH_I2C_Read... [12:19:13]Read from MH i2c: E2 0E 00 C9 24 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 7D [12:19:13]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [12:19:13]wFMCommunicate OK [12:19:13]SAM_PROTO_GetShiftState done [12:19:13]FM_GetShiftState done [12:19:13]opened in 1718929509 [12:19:13]opened+sec_in_day 1719015909 [12:19:13]quantity*price = 80012 [12:19:13]sum+1 = 80013 [12:19: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 СНО: Общий режим Чек 78 21.06.2024 12:19 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104155 ФПД: 75722066860764 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T121918&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104155&fm=75722066860764&tin=02508201610067®Number=0000000000092785&sum=80000 [12:19:14]StoreToDocumentArchive [12:19:14]shift 355 fd 104155 [12:19:14]save to /storage/0355/doc_00104155 [12:19:14]save last doc name /storage/0355/doc_00104155 to /storage/kkm_last_doc_name [12:19:14]save OK [12:19:14]Clear old archive folders... [12:19:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:19:14]tlvbuf is 01174B20 [12:19:14]SAM_PROTO_ClearQueue [12:19:14]wFMCommunicate request_size=4 [12:19:14]MH_SAM_APDU [12:19:14]CAPDU: 80 09 00 00 [12:19:14]Write to MH i2c: E2 08 00 D6 24 80 09 00 00 00 00 00 00 6C [12:19:14]Write i2c OK [12:19:14]MH_I2C_Read... [12:19:15]Read from MH i2c: E2 [12:19:15]MH_I2C_Read... [12:19:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:19:15]Read from MH i2c: E2 03 00 [12:19:15]MH_I2C_Read... [12:19:15]Read from MH i2c: E2 03 00 D6 24 00 90 00 6E [12:19:15]RAPDU: 90 00 [12:19:15]wFMCommunicate OK [12:19:15]SAM_PROTO_ClearQueue done [12:19:15]KKMCreateOFDPacket [12:19:15]OFDProtocolAddRootSTLVToBuf [12:19:15]FM_MakeSignedData [12:19:15]FM_MakeSignedData [12:19:15]SAM_PROTO_SignData [12:19:15]wFMCommunicate request_size=4 [12:19:15]MH_SAM_APDU [12:19:15]CAPDU: 80 0D 01 02 [12:19:15]Write to MH i2c: E2 08 00 D7 24 80 0D 01 02 00 00 00 00 74 [12:19:15]Write i2c OK [12:19:15]MH_I2C_Read... [12:19:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:19:15]Read from MH i2c: E2 [12:19:15]MH_I2C_Read... [12:19:15]Read from MH i2c: E2 03 00 [12:19:15]MH_I2C_Read... [12:19:15]Read from MH i2c: E2 03 00 D7 24 00 90 00 6F [12:19:15]RAPDU: 90 00 [12:19:15]wFMCommunicate OK [12:19:15]wFMCommunicate request_size=255 [12:19:15]MH_SAM_APDU [12:19:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 4E 00 00 00 F4 03 04 00 C6 6F 75 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 DB 96 01 00 35 04 06 00 44 [12:19:15]Write to MH i2c: E2 02 01 D8 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 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 4E 00 00 00 F4 03 04 00 C6 6F 75 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 DB 96 01 00 35 04 06 00 44 00 00 95 [12:19:15]Write i2c OK [12:19:15]MH_I2C_Read... [12:19:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:19:15]Read from MH i2c: E2 [12:19:15]MH_I2C_Read... [12:19:15]Read from MH i2c: E2 03 00 [12:19:15]MH_I2C_Read... [12:19:15]Read from MH i2c: E2 03 00 D8 24 00 90 00 70 [12:19:15]RAPDU: 90 00 [12:19:15]wFMCommunicate OK [12:19:15]wFMCommunicate request_size=10 [12:19:15]MH_SAM_APDU [12:19:15]CAPDU: 80 0D 02 02 05 DE 6A E5 9A DC [12:19:15]Write to MH i2c: E2 0D 00 D9 24 80 0D 02 02 05 00 DE 6A E5 9A DC 00 00 24 [12:19:15]Write i2c OK [12:19:15]MH_I2C_Read... [12:19:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:19:15]Read from MH i2c: E2 [12:19:15]MH_I2C_Read... [12:19:15]Read from MH i2c: E2 03 00 [12:19:15]MH_I2C_Read... [12:19:15]Read from MH i2c: E2 03 00 D9 24 00 90 00 71 [12:19:15]RAPDU: 90 00 [12:19:15]wFMCommunicate OK [12:19:15]wFMCommunicate request_size=4 [12:19:15]MH_SAM_APDU [12:19:15]CAPDU: 80 0D 03 02 [12:19:15]Write to MH i2c: E2 08 00 DA 24 80 0D 03 02 00 00 00 00 79 [12:19:15]Write i2c OK [12:19:15]MH_I2C_Read... [12:19:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:19:15]Read from MH i2c: E2 [12:19:15]MH_I2C_Read... [12:19:15]Read from MH i2c: E2 0B 00 [12:19:15]MH_I2C_Read... [12:19:15]Read from MH i2c: E2 0B 00 DA 24 00 04 0A 22 B4 DA 71 31 1D 90 00 F7 [12:19:15]RAPDU: 04 0A 22 B4 DA 71 31 1D 90 00 [12:19:15]wFMCommunicate OK [12:19:15]SAM_PROTO_SignData done [12:19:15]FM_MakeSignedData done [12:19:15]CreateOFDProtocolMessage [12:19:15]wFMCommunicate request_size=4 [12:19:15]MH_SAM_APDU [12:19:15]CAPDU: 80 11 00 00 [12:19:15]Write to MH i2c: E2 08 00 DB 24 80 11 00 00 00 00 00 00 79 [12:19:15]Write i2c OK [12:19:15]MH_I2C_Read... [12:19:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:19:15]Read from MH i2c: E2 [12:19:15]MH_I2C_Read... [12:19:15]Read from MH i2c: E2 17 00 [12:19:15]MH_I2C_Read... [12:19:15]Read from MH i2c: E2 17 00 DB 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 CC [12:19:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:19:15]wFMCommunicate OK [12:19:15]CreateOFDProtocolMessage done [12:19:15]OFDSenderStorePacket 104155 [12:19:15]StoreOFDPacket docnum=104155 [12:19: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 56 C9 07 01 6D 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 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 4E 00 00 00 F4 03 04 00 C6 6F 75 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 DB 96 01 00 35 04 06 00 44 DE 6A E5 9A DC 04 0A 22 B4 DA 71 31 1D [12:19:15]CheckFolder [12:19:15]dirname=/storage/ofd_packets [12:19:15]CheckFolder done [12:19:15]ProducePacketName [12:19:15]name=ofd_packets/00104155 [12:19:15]NVStorageSaveData ofd_packets/00104155 [12:19:15]File name is /storage/ofd_packets/00104155 [12:19:15]Write 301 bytes [12:19:15]NVStorageSaveData done [12:19:15]OFDSenderStorePacket done [12:19:15]KKMCreateOFDPacket done [12:19:15]NVStorageSaveData kkm_last_timestamp [12:19:15]File name is /storage/kkm_last_timestamp [12:19:15]Write 4 bytes [12:19:15]NVStorageSaveData done [12:19:15]ExternCall_PrintAddStr [12:19:15]wPrintStart [12:19:15]Write to MH i2c: 01 00 00 DC 24 00 [12:19:15]Write i2c OK [12:19:15]MH_I2C_Read... [12:19:15]Read from MH i2c: 01 [12:19:15]MH_I2C_Read... [12:19:15]Read from MH i2c: 01 07 00 [12:19:15]MH_I2C_Read... [12:19:15]Read from MH i2c: 01 07 00 DC 24 00 00 00 00 00 FF 0F 15 [12:19:15]RasterBufferAndPrint [12:19:15]line Счет N : (1)673580 [12:19:15]line ИНН: 02508201610067 [12:19:15]line Контрольно-Кассовый Чек [12:19:15]line ПРОДАЖА [12:19:15]line ТРК (МРК, ГНК) : 32 [12:19:15]line Товар: 2710124130 [12:19:15]line Аи-92-К-5 [12:19:15]line 12.050 * 66.40 [12:19:15]line = 800.12 [12:19:15]line НДС 12% НСП 1% [12:19:15]line > о реализуемом товаре [12:19:15]line ОКРУГЛЕНИЕ: -0.12 [12:19:15]line ИТОГО: 800.00 [12:19:15]line Внесено: 800.00 [12:19:15]line СДАЧА: 0.00 [12:19:15]line НСП 1% : 7.08 [12:19:15]line НДС 12% : 84.97 [12:19:15]line Наличными: 800.00 [12:19:15]line Безнал.: 0.00 [12:19:15]line Место: АЗС № 120 "Партнер Нефть" [12:19:15]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [12:19:15]line СНО: Общий режим [12:19:15]line Чек 78 21.06.2024 12:19 [12:19:15]line Смена: 355 ФФД: 1.0 [12:19:15]line ЗНМ: 0300000164 [12:19:15]line РНМ: 0000000000092785 [12:19:15]line Версия ККМ: 001 [12:19:15]line ФМ: 0000000000875093 [12:19:15]line ФД: 104155 [12:19:15]line ФПД: 75722066860764 [12:19:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T121918&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104155&fm=75722066860764&tin=02508201610067®Number=0000000000092785&sum=80000 [12:19:15]written 0, free lines is 4095 [12:19:16]Write to MH i2c: 01 00 00 07 25 2C [12:19:16]Write i2c OK [12:19:16]MH_I2C_Read... [12:19:16]Read from MH i2c: 01 [12:19:16]MH_I2C_Read... [12:19:16]Read from MH i2c: 01 07 00 [12:19:16]MH_I2C_Read... [12:19:16]Read from MH i2c: 01 07 00 07 25 00 00 00 00 00 E0 0C 1F [12:19:16]RasterBufferAndPrint [12:19:16]line [12:19:16]line [12:19:16]line [12:19:16]line [12:19:16]line [12:19:16]written 0, free lines is 3302 [12:19:16]MH_Cut [12:19:16]Write to MH i2c: D1 01 00 0E 25 01 05 [12:19:16]Write i2c OK [12:19:16]MH_I2C_Read... [12:19:16]Read from MH i2c: D1 [12:19:16]MH_I2C_Read... [12:19:16]Read from MH i2c: D1 01 00 [12:19:16]MH_I2C_Read... [12:19:16]Read from MH i2c: D1 01 00 0E 25 00 04 [12:19:16]Write to MH i2c: 01 00 00 0F 25 34 [12:19:16]Write i2c OK [12:19:16]MH_I2C_Read... [12:19:17]*** Cut start [12:19:17]*** Partial cut [12:19:17]*** CUTSNS_PIN = 1 [12:19:17]*** CUTSNS_PIN = 0 [12:19:17]*** Brake cut motor [12:19:17]Read from MH i2c: 01 [12:19:17]MH_I2C_Read... [12:19:17]*** Stop cut motor [12:19:17]*** Cut end [12:19:17]Read from MH i2c: 01 07 00 [12:19:17]MH_I2C_Read... [12:19:17]Read from MH i2c: 01 07 00 0F 25 00 00 00 00 00 FF 0F 49 [12:19:17]process_action close_receipt done [12:19:17]requested_data is exist [12:19:17]produce_requested_data [12:19:17]requested_item fm.sn is exist - process it [12:19:17]wFMCommunicate request_size=4 [12:19:17]MH_SAM_APDU [12:19:17]CAPDU: 80 11 00 00 [12:19:17]Write to MH i2c: E2 08 00 10 25 80 11 00 00 00 00 00 00 AF [12:19:17]Write i2c OK [12:19:17]MH_I2C_Read... [12:19:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:19:17]Read from MH i2c: E2 [12:19:17]MH_I2C_Read... [12:19:17]Read from MH i2c: E2 17 00 [12:19:17]MH_I2C_Read... [12:19:17]Read from MH i2c: E2 17 00 10 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 02 [12:19: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:19:17]wFMCommunicate OK [12:19:17]requested_item fd.num is exist - process it [12:19:17]SAM_PROTO_GetFieldsCounters [12:19:17]wFMCommunicate request_size=4 [12:19:17]MH_SAM_APDU [12:19:17]CAPDU: 80 13 00 00 [12:19:17]Write to MH i2c: E2 08 00 11 25 80 13 00 00 00 00 00 00 B2 [12:19:17]Write i2c OK [12:19:17]MH_I2C_Read... [12:19:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:19:17]Read from MH i2c: E2 [12:19:17]MH_I2C_Read... [12:19:17]Read from MH i2c: E2 62 00 [12:19:17]MH_I2C_Read... [12:19:17]Read from MH i2c: E2 62 00 11 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 DB 96 01 00 0E 04 04 00 63 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 99 [12:19:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 96 01 00 0E 04 04 00 63 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 [12:19:17]wFMCommunicate OK [12:19:17]SAM_PROTO_GetFieldsCounters done [12:19:17]requested_item shift.num is exist - process it [12:19:17]requested_item shift.opened is exist - process it [12:19:17]req_shift_opened [12:19:17]FM_GetShiftState [12:19:17]SAM_PROTO_GetShiftState [12:19:17]wFMCommunicate request_size=4 [12:19:17]MH_SAM_APDU [12:19:17]CAPDU: 80 13 01 00 [12:19:17]Write to MH i2c: E2 08 00 12 25 80 13 01 00 00 00 00 00 B4 [12:19:17]Write i2c OK [12:19:17]MH_I2C_Read... [12:19:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:19:17]Read from MH i2c: E2 [12:19:17]MH_I2C_Read... [12:19:17]Read from MH i2c: E2 0E 00 [12:19:17]MH_I2C_Read... [12:19:17]Read from MH i2c: E2 0E 00 12 25 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 C7 [12:19:17]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [12:19:17]wFMCommunicate OK [12:19:17]SAM_PROTO_GetShiftState done [12:19:17]FM_GetShiftState done [12:19:17]req_shift_opened done [12:19:17]requested_item shift.open_date is exist - process it [12:19:17]req_shift_open_date [12:19:17]req_shift_open_date done [12:19:17]produce_requested_data done [12:19:17]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104155,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [12:19:17]process_action_free close_receipt [12:19:17]json_value_free [12:19:17]json_value_free done [12:19:17]process_json_proto returns [12:19:17]Send response to host [12:19:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104155,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [12:19:17]free response buf [12:19:17]execute_script done [12:19:17]execute_script returns [12:19:17]free content buf [12:19:17]Sock 9.Close socket [12:19:17]Sock 9.Thread stoped [12:19:18]ConnectInit Can't take IP for lk.salyk.kg [12:19:18]CommunicateWithHost connect error [12:19:18]CommunicateWithHost err = -1 [12:19:18]OFD Sender: Server communicate error [12:19:18]OFD Sender: Processing packet 104154 [packets to send 18, broken 16] [12:19:18]ProducePacketName [12:19:18]name=ofd_packets/00104154 [12:19:18]OFD Sender: To server: pG, [12:19:18]CommunicateWithHost lk.salyk.kg:30040 [12:19:18]ConnectInit lk.salyk.kg [12:19:23]ConnectInit Can't take IP for lk.salyk.kg [12:19:23]CommunicateWithHost connect error [12:19:23]CommunicateWithHost err = -1 [12:19:23]OFD Sender: Server communicate error [12:19:28]OFD Sender: Processing packet 104154 [packets to send 18, broken 16] [12:19:28]ProducePacketName [12:19:28]name=ofd_packets/00104154 [12:19:28]OFD Sender: To server: pG, [12:19:28]CommunicateWithHost lk.salyk.kg:30040 [12:19:28]ConnectInit lk.salyk.kg [12:19:33]ConnectInit Can't take IP for lk.salyk.kg [12:19:33]CommunicateWithHost connect error [12:19:33]CommunicateWithHost err = -1 [12:19:33]OFD Sender: Server communicate error [12:19:38]OFD Sender: Processing packet 104154 [packets to send 18, broken 16] [12:19:38]ProducePacketName [12:19:38]name=ofd_packets/00104154 [12:19:38]OFD Sender: To server: pG, [12:19:38]CommunicateWithHost lk.salyk.kg:30040 [12:19:38]ConnectInit lk.salyk.kg [12:19:43]ConnectInit Can't take IP for lk.salyk.kg [12:19:43]CommunicateWithHost connect error [12:19:43]CommunicateWithHost err = -1 [12:19:43]OFD Sender: Server communicate error [12:19:48]OFD Sender: Processing packet 104154 [packets to send 18, broken 16] [12:19:48]ProducePacketName [12:19:48]name=ofd_packets/00104154 [12:19:48]OFD Sender: To server: pG, [12:19:48]CommunicateWithHost lk.salyk.kg:30040 [12:19:48]ConnectInit lk.salyk.kg [12:19:53]ConnectInit Can't take IP for lk.salyk.kg [12:19:53]CommunicateWithHost connect error [12:19:53]CommunicateWithHost err = -1 [12:19:53]OFD Sender: Server communicate error [12:19:58]OFD Sender: Processing packet 104154 [packets to send 18, broken 16] [12:19:58]ProducePacketName [12:19:58]name=ofd_packets/00104154 [12:19:58]OFD Sender: To server: pG, [12:19:58]CommunicateWithHost lk.salyk.kg:30040 [12:19:58]ConnectInit lk.salyk.kg [12:20:03]ConnectInit Can't take IP for lk.salyk.kg [12:20:03]CommunicateWithHost connect error [12:20:03]CommunicateWithHost err = -1 [12:20:03]OFD Sender: Server communicate error [12:20:08]OFD Sender: Processing packet 104154 [packets to send 18, broken 16] [12:20:08]ProducePacketName [12:20:08]name=ofd_packets/00104154 [12:20:08]OFD Sender: To server: pG, [12:20:08]CommunicateWithHost lk.salyk.kg:30040 [12:20:08]ConnectInit lk.salyk.kg [12:20:08]Connected sock=9 [12:20: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 66 F2 08 01 EE 52 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 D2 32 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 7B 72 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 72 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 27 00 00 00 00 07 04 06 00 50 72 01 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 28 6F 75 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 DA 96 01 00 35 04 06 00 04 38 CD 54 05 FC CB DF 58 BE 52 D1 89 16 [12:20: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 E8 CC 47 00 BB 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 DA 96 01 00 F4 03 04 00 7D 16 75 66 B6 04 01 00 00 36 A8 8F E2 89 9D 83 FE [12:20:09]CommunicateWithHost err = 0 [12:20:09]CheckOFDResponse [12:20:09]1017 (14) - 77093643461234 [12:20:09]1041 (16) - 0000000000875093 [12:20:09]1040 (4) - 104154 [12:20:09]1012 (4) - 21.06.2024 05:58 [12:20:09]1206 (1) - 0 [12:20:09]OFD Sender: Remove packet 104154 [12:20:09]ProducePacketName [12:20:09]name=ofd_packets/00104154 [12:20:09]NVStorageDeleteData [12:20:09]OFD Sender: Processing packet 104155 [packets to send 17, broken 16] [12:20:09]ProducePacketName [12:20:09]name=ofd_packets/00104155 [12:20:09]OFD Sender: To server: pG, [12:20:09]CommunicateWithHost lk.salyk.kg:30040 [12:20:09]ConnectInit lk.salyk.kg [12:20:09]Connected sock=9 [12:20: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 56 C9 07 01 6D 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 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 4E 00 00 00 F4 03 04 00 C6 6F 75 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 DB 96 01 00 35 04 06 00 44 DE 6A E5 9A DC 04 0A 22 B4 DA 71 31 1D [12:20: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 BB E4 47 00 E0 08 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 DB 96 01 00 F4 03 04 00 7E 16 75 66 B6 04 01 00 00 E9 60 C3 0C FD 55 F5 58 [12:20:09]CommunicateWithHost err = 0 [12:20:09]CheckOFDResponse [12:20:09]1017 (14) - 77093643461234 [12:20:09]1041 (16) - 0000000000875093 [12:20:09]1040 (4) - 104155 [12:20:09]1012 (4) - 21.06.2024 05:58 [12:20:09]1206 (1) - 0 [12:20:09]OFD Sender: Remove packet 104155 [12:20:09]ProducePacketName [12:20:09]name=ofd_packets/00104155 [12:20:09]NVStorageDeleteData [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:01]ConnectInit Can't connect to host [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:55]OFD Sender: No OFD packet to send [12:23:00]OFD Sender: No OFD packet to send [12:23:05]OFD Sender: No OFD packet to send [12:23:10]OFD Sender: No OFD packet to send [12:23:15]OFD Sender: No OFD packet to send [12:23:20]OFD Sender: No OFD packet to send [12:23:25]OFD Sender: No OFD packet to send [12:23:30]OFD Sender: No OFD packet to send [12:23:35]OFD Sender: No OFD packet to send [12:23:40]OFD Sender: No OFD packet to send [12:23:45]OFD Sender: No OFD packet to send [12:23:50]OFD Sender: No OFD packet to send [12:23:55]OFD Sender: No OFD packet to send [12:24:00]OFD Sender: No OFD packet to send [12:24:05]OFD Sender: No OFD packet to send [12:24:10]OFD Sender: No OFD packet to send [12:24:12]accept exits with 12 [12:24:12]New connection [12:24:12]New thread 3066858852 created [12:24:12]Thread 3066715492 joined [12:24:12]Waiting for new connection... [12:24:12] Sock 12.Parse request [12:24:12]Sock 12.Check first char [12:24:12]Sock 12.First char is OK [12:24:12]request: POST /json_proto HTTP/1.0 [12:24:12]Method: POST [12:24:12]URL: /json_proto [12:24:12]Method is POST - this is cgi request [12:24:12]url: /json_proto [12:24:12]query_string will be loaded in cgi processing [12:24:12]execute_cgi json_proto POST (null) [12:24:12]execute_cgi path=json_proto method=POST [12:24:12]POST find Content-Length [12:24:12]Host: 172.17.38.133:8080 [12:24:12]Content-Length: 817 [12:24:12]Content-Type: application/json [12:24:12] [12:24:12]POST finish read [12:24:12]Found Content-Length = 817 [12:24:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673583", "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 }]} ], "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.52 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:24:12]execute_script... [12:24: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)673583", "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 }]} ], "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.52 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:24:12]POST & json_proto [12:24:12]process_json_proto [12:24:12]json parsed OK: [12:24:12]protocol is kg_v1.0 [12:24:12]action value=close_receipt [12:24:12]process_action close_receipt [12:24:12]cmd_close_receipt [12:24:12]MH_GetDate [12:24:12]Write to MH i2c: F0 00 00 13 25 27 [12:24:12]Write i2c OK [12:24:12]MH_I2C_Read... [12:24:12]Read from MH i2c: F0 [12:24:12]MH_I2C_Read... [12:24:12]Read from MH i2c: F0 09 00 [12:24:12]MH_I2C_Read... [12:24:12]Read from MH i2c: F0 09 00 13 25 00 F0 70 75 66 BD 8F 7C 64 97 [12:24:12]GetLastDocTimeStamp 1718972358 [12:24:12]current date 1718972656 [12:24:12]FM_GetShiftState [12:24:12]SAM_PROTO_GetShiftState [12:24:12]wFMCommunicate request_size=4 [12:24:12]MH_SAM_APDU [12:24:12]CAPDU: 80 13 01 00 [12:24:12]Write to MH i2c: E2 08 00 14 25 80 13 01 00 00 00 00 00 B6 [12:24:12]Write i2c OK [12:24:12]MH_I2C_Read... [12:24:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:24:12]Read from MH i2c: E2 [12:24:12]MH_I2C_Read... [12:24:12]Read from MH i2c: E2 0E 00 [12:24:12]MH_I2C_Read... [12:24:12]Read from MH i2c: E2 0E 00 14 25 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 C9 [12:24:12]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [12:24:12]wFMCommunicate OK [12:24:12]SAM_PROTO_GetShiftState done [12:24:12]FM_GetShiftState done [12:24:12]opened in 1718929509 [12:24:12]opened+sec_in_day 1719015909 [12:24:12]quantity*price = 70052 [12:24:12]sum+1 = 70053 [12:24:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.52 НСП 1% : 6.20 НДС 12% : 74.39 Наличными: 0.00 Безнал.: 700.52 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 79 21.06.2024 12:24 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875093 ФД: 104156 ФПД: 192275133874402 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T122416&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104156&fm=192275133874402&tin=02508201610067®Number=0000000000092785&sum=70052 [12:24:13]StoreToDocumentArchive [12:24:13]shift 355 fd 104156 [12:24:13]save to /storage/0355/doc_00104156 [12:24:13]save last doc name /storage/0355/doc_00104156 to /storage/kkm_last_doc_name [12:24:13]save OK [12:24:13]Clear old archive folders... [12:24:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:24:13]tlvbuf is 01178C60 [12:24:13]SAM_PROTO_ClearQueue [12:24:13]wFMCommunicate request_size=4 [12:24:13]MH_SAM_APDU [12:24:13]CAPDU: 80 09 00 00 [12:24:13]Write to MH i2c: E2 08 00 21 25 80 09 00 00 00 00 00 00 B8 [12:24:13]Write i2c OK [12:24:13]MH_I2C_Read... [12:24:13]Read from MH i2c: E2 [12:24:13]MH_I2C_Read... [12:24:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:24:13]Read from MH i2c: E2 03 00 [12:24:13]MH_I2C_Read... [12:24:13]Read from MH i2c: E2 03 00 21 25 00 90 00 BA [12:24:13]RAPDU: 90 00 [12:24:13]wFMCommunicate OK [12:24:13]SAM_PROTO_ClearQueue done [12:24:13]KKMCreateOFDPacket [12:24:13]OFDProtocolAddRootSTLVToBuf [12:24:13]FM_MakeSignedData [12:24:13]FM_MakeSignedData [12:24:13]SAM_PROTO_SignData [12:24:13]wFMCommunicate request_size=4 [12:24:13]MH_SAM_APDU [12:24:13]CAPDU: 80 0D 01 02 [12:24:13]Write to MH i2c: E2 08 00 22 25 80 0D 01 02 00 00 00 00 C0 [12:24:13]Write i2c OK [12:24:13]MH_I2C_Read... [12:24:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:24:13]Read from MH i2c: E2 [12:24:13]MH_I2C_Read... [12:24:13]Read from MH i2c: E2 03 00 [12:24:13]MH_I2C_Read... [12:24:13]Read from MH i2c: E2 03 00 22 25 00 90 00 BB [12:24:13]RAPDU: 90 00 [12:24:13]wFMCommunicate OK [12:24:13]wFMCommunicate request_size=255 [12:24:13]MH_SAM_APDU [12:24: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 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 A4 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 00 00 00 00 00 00 39 04 06 00 A4 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 F0 70 75 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 DC 96 01 00 35 04 06 00 AE [12:24:13]Write to MH i2c: E2 02 01 23 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 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 A4 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 00 00 00 00 00 00 39 04 06 00 A4 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 F0 70 75 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 DC 96 01 00 35 04 06 00 AE 00 00 03 [12:24:13]Write i2c OK [12:24:13]MH_I2C_Read... [12:24:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:24:13]Read from MH i2c: E2 [12:24:13]MH_I2C_Read... [12:24:13]Read from MH i2c: E2 03 00 [12:24:13]MH_I2C_Read... [12:24:13]Read from MH i2c: E2 03 00 23 25 00 90 00 BC [12:24:13]RAPDU: 90 00 [12:24:13]wFMCommunicate OK [12:24:13]wFMCommunicate request_size=10 [12:24:13]MH_SAM_APDU [12:24:13]CAPDU: 80 0D 02 02 05 DF 8B 0D C0 E2 [12:24:13]Write to MH i2c: E2 0D 00 24 25 80 0D 02 02 05 00 DF 8B 0D C0 E2 00 00 E6 [12:24:13]Write i2c OK [12:24:13]MH_I2C_Read... [12:24:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:24:13]Read from MH i2c: E2 [12:24:13]MH_I2C_Read... [12:24:13]Read from MH i2c: E2 03 00 [12:24:13]MH_I2C_Read... [12:24:13]Read from MH i2c: E2 03 00 24 25 00 90 00 BD [12:24:13]RAPDU: 90 00 [12:24:13]wFMCommunicate OK [12:24:13]wFMCommunicate request_size=4 [12:24:13]MH_SAM_APDU [12:24:13]CAPDU: 80 0D 03 02 [12:24:13]Write to MH i2c: E2 08 00 25 25 80 0D 03 02 00 00 00 00 C5 [12:24:13]Write i2c OK [12:24:13]MH_I2C_Read... [12:24:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:24:14]Read from MH i2c: E2 [12:24:14]MH_I2C_Read... [12:24:14]Read from MH i2c: E2 0B 00 [12:24:14]MH_I2C_Read... [12:24:14]Read from MH i2c: E2 0B 00 25 25 00 24 2F 3F FC 8D 2F 0E 44 90 00 62 [12:24:14]RAPDU: 24 2F 3F FC 8D 2F 0E 44 90 00 [12:24:14]wFMCommunicate OK [12:24:14]SAM_PROTO_SignData done [12:24:14]FM_MakeSignedData done [12:24:14]CreateOFDProtocolMessage [12:24:14]wFMCommunicate request_size=4 [12:24:14]MH_SAM_APDU [12:24:14]CAPDU: 80 11 00 00 [12:24:14]Write to MH i2c: E2 08 00 26 25 80 11 00 00 00 00 00 00 C5 [12:24:14]Write i2c OK [12:24:14]MH_I2C_Read... [12:24:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:24:14]Read from MH i2c: E2 [12:24:14]MH_I2C_Read... [12:24:14]Read from MH i2c: E2 17 00 [12:24:14]MH_I2C_Read... [12:24:14]Read from MH i2c: E2 17 00 26 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 18 [12:24: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:24:14]wFMCommunicate OK [12:24:14]CreateOFDProtocolMessage done [12:24:14]OFDSenderStorePacket 104156 [12:24:14]StoreOFDPacket docnum=104156 [12:24: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 EF 1A 07 01 AC 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 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 A4 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 00 00 00 00 00 00 39 04 06 00 A4 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 F0 70 75 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 DC 96 01 00 35 04 06 00 AE DF 8B 0D C0 E2 24 2F 3F FC 8D 2F 0E 44 [12:24:14]CheckFolder [12:24:14]dirname=/storage/ofd_packets [12:24:14]CheckFolder done [12:24:14]ProducePacketName [12:24:14]name=ofd_packets/00104156 [12:24:14]NVStorageSaveData ofd_packets/00104156 [12:24:14]File name is /storage/ofd_packets/00104156 [12:24:14]Write 301 bytes [12:24:14]NVStorageSaveData done [12:24:14]OFDSenderStorePacket done [12:24:14]KKMCreateOFDPacket done [12:24:14]NVStorageSaveData kkm_last_timestamp [12:24:14]File name is /storage/kkm_last_timestamp [12:24:14]Write 4 bytes [12:24:14]NVStorageSaveData done [12:24:14]ExternCall_PrintAddStr [12:24:14]wPrintStart [12:24:14]Write to MH i2c: 01 00 00 27 25 4C [12:24:14]Write i2c OK [12:24:14]MH_I2C_Read... [12:24:14]Read from MH i2c: 01 [12:24:14]MH_I2C_Read... [12:24:14]Read from MH i2c: 01 07 00 [12:24:14]MH_I2C_Read... [12:24:14]Read from MH i2c: 01 07 00 27 25 00 00 00 00 00 FF 0F 61 [12:24:14]RasterBufferAndPrint [12:24:14]line Счет N : (1)673583 [12:24:14]line ИНН: 02508201610067 [12:24:14]line Контрольно-Кассовый Чек [12:24:14]line ПРОДАЖА [12:24:14]line ТРК (МРК, ГНК) : 42 [12:24:14]line Товар: 2710124130 [12:24:14]line Аи-92-К-5 [12:24:14]line 10.550 * 66.40 [12:24:14]line = 700.52 [12:24:14]line НДС 12% НСП 1% [12:24:14]line > о реализуемом товаре [12:24:14]line ИТОГО: 700.52 [12:24:14]line НСП 1% : 6.20 [12:24:14]line НДС 12% : 74.39 [12:24:14]line Наличными: 0.00 [12:24:14]line Безнал.: 700.52 [12:24:14]line Место: АЗС № 120 "Партнер Нефть" [12:24:14]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [12:24:14]line СНО: Общий режим [12:24:14]line Чек 79 21.06.2024 12:24 [12:24:14]line Смена: 355 ФФД: 1.0 [12:24:14]line ЗНМ: 0300000164 [12:24:14]line РНМ: 0000000000092785 [12:24:14]line Версия ККМ: 001 [12:24:14]line Платежная система: Бакай Банк [12:24:14]line ФМ: 0000000000875093 [12:24:14]line ФД: 104156 [12:24:14]line ФПД: 192275133874402 [12:24:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T122416&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104156&fm=192275133874402&tin=02508201610067®Number=0000000000092785&sum=70052 [12:24:14]OFD Sender: Processing packet 104156 [packets to send 17, broken 16] [12:24:14]ProducePacketName [12:24:14]name=ofd_packets/00104156 [12:24:14]OFD Sender: To server: pG, [12:24:14]CommunicateWithHost lk.salyk.kg:30040 [12:24:14]ConnectInit lk.salyk.kg [12:24:14]written 0, free lines is 4095 [12:24:14]Connected sock=9 [12:24: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 EF 1A 07 01 AC 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 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 A4 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 00 00 00 00 00 00 39 04 06 00 A4 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 F0 70 75 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 DC 96 01 00 35 04 06 00 AE DF 8B 0D C0 E2 24 2F 3F FC 8D 2F 0E 44 [12:24: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 A6 14 47 00 5C 76 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 DC 96 01 00 F4 03 04 00 73 17 75 66 B6 04 01 00 00 0D 1D EF C2 DE 9C C8 A1 [12:24:14]CommunicateWithHost err = 0 [12:24:14]CheckOFDResponse [12:24:14]1017 (14) - 77093643461234 [12:24:14]1041 (16) - 0000000000875093 [12:24:14]1040 (4) - 104156 [12:24:14]1012 (4) - 21.06.2024 06:02 [12:24:14]1206 (1) - 0 [12:24:14]OFD Sender: Remove packet 104156 [12:24:14]ProducePacketName [12:24:14]name=ofd_packets/00104156 [12:24:14]NVStorageDeleteData [12:24:14]Write to MH i2c: 01 00 00 51 25 76 [12:24:14]Write i2c OK [12:24:14]MH_I2C_Read... [12:24:14]Read from MH i2c: 01 [12:24:14]MH_I2C_Read... [12:24:14]Read from MH i2c: 01 07 00 [12:24:14]MH_I2C_Read... [12:24:14]Read from MH i2c: 01 07 00 51 25 00 00 00 00 00 F2 0C 7B [12:24:14]RasterBufferAndPrint [12:24:14]line [12:24:14]line [12:24:14]line [12:24:14]line [12:24:14]line [12:24:14]written 0, free lines is 3320 [12:24:14]MH_Cut [12:24:14]Write to MH i2c: D1 01 00 58 25 01 4F [12:24:14]Write i2c OK [12:24:14]MH_I2C_Read... [12:24:14]Read from MH i2c: D1 [12:24:14]MH_I2C_Read... [12:24:14]Read from MH i2c: D1 01 00 [12:24:14]MH_I2C_Read... [12:24:14]Read from MH i2c: D1 01 00 58 25 00 4E [12:24:14]Write to MH i2c: 01 00 00 59 25 7E [12:24:14]Write i2c OK [12:24:14]MH_I2C_Read... [12:24:15]OFD Sender: No OFD packet to send [12:24:15]*** Cut start [12:24:15]*** Partial cut [12:24:15]*** CUTSNS_PIN = 1 [12:24:15]*** CUTSNS_PIN = 0 [12:24:15]*** Brake cut motor [12:24:16]Read from MH i2c: 01 [12:24:16]MH_I2C_Read... [12:24:16]*** Stop cut motor [12:24:16]*** Cut end [12:24:16]Read from MH i2c: 01 07 00 [12:24:16]MH_I2C_Read... [12:24:16]Read from MH i2c: 01 07 00 59 25 00 00 00 00 00 FF 0F 93 [12:24:16]process_action close_receipt done [12:24:16]requested_data is exist [12:24:16]produce_requested_data [12:24:16]requested_item fm.sn is exist - process it [12:24:16]wFMCommunicate request_size=4 [12:24:16]MH_SAM_APDU [12:24:16]CAPDU: 80 11 00 00 [12:24:16]Write to MH i2c: E2 08 00 5A 25 80 11 00 00 00 00 00 00 F9 [12:24:16]Write i2c OK [12:24:16]MH_I2C_Read... [12:24:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:24:16]Read from MH i2c: E2 [12:24:16]MH_I2C_Read... [12:24:16]Read from MH i2c: E2 17 00 [12:24:16]MH_I2C_Read... [12:24:16]Read from MH i2c: E2 17 00 5A 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 4C [12:24: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:24:16]wFMCommunicate OK [12:24:16]requested_item fd.num is exist - process it [12:24:16]SAM_PROTO_GetFieldsCounters [12:24:16]wFMCommunicate request_size=4 [12:24:16]MH_SAM_APDU [12:24:16]CAPDU: 80 13 00 00 [12:24:16]Write to MH i2c: E2 08 00 5B 25 80 13 00 00 00 00 00 00 FC [12:24:16]Write i2c OK [12:24:16]MH_I2C_Read... [12:24:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:24:16]Read from MH i2c: E2 [12:24:16]MH_I2C_Read... [12:24:16]Read from MH i2c: E2 62 00 [12:24:16]MH_I2C_Read... [12:24:16]Read from MH i2c: E2 62 00 5B 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 DC 96 01 00 0E 04 04 00 63 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 E7 [12:24: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 DC 96 01 00 0E 04 04 00 63 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 [12:24:16]wFMCommunicate OK [12:24:16]SAM_PROTO_GetFieldsCounters done [12:24:16]requested_item shift.num is exist - process it [12:24:16]requested_item shift.opened is exist - process it [12:24:16]req_shift_opened [12:24:16]FM_GetShiftState [12:24:16]SAM_PROTO_GetShiftState [12:24:16]wFMCommunicate request_size=4 [12:24:16]MH_SAM_APDU [12:24:16]CAPDU: 80 13 01 00 [12:24:16]Write to MH i2c: E2 08 00 5C 25 80 13 01 00 00 00 00 00 FE [12:24:16]Write i2c OK [12:24:16]MH_I2C_Read... [12:24:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:24:16]Read from MH i2c: E2 [12:24:16]MH_I2C_Read... [12:24:16]Read from MH i2c: E2 0E 00 [12:24:16]MH_I2C_Read... [12:24:16]Read from MH i2c: E2 0E 00 5C 25 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 11 [12:24:16]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [12:24:16]wFMCommunicate OK [12:24:16]SAM_PROTO_GetShiftState done [12:24:16]FM_GetShiftState done [12:24:16]req_shift_opened done [12:24:16]requested_item shift.open_date is exist - process it [12:24:16]req_shift_open_date [12:24:16]req_shift_open_date done [12:24:16]produce_requested_data done [12:24:16]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104156,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [12:24:16]process_action_free close_receipt [12:24:16]json_value_free [12:24:16]json_value_free done [12:24:16]process_json_proto returns [12:24:16]Send response to host [12:24:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104156,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [12:24:16]free response buf [12:24:16]execute_script done [12:24:16]execute_script returns [12:24:16]free content buf [12:24:16]Sock 12.Close socket [12:24:16]Sock 12.Thread stoped [12:24:20]OFD Sender: No OFD packet to send [12:24:25]OFD Sender: No OFD packet to send [12:24:30]OFD Sender: No OFD packet to send [12:24:35]OFD Sender: No OFD packet to send [12:24:40]OFD Sender: No OFD packet to send [12:24:45]OFD Sender: No OFD packet to send [12:24:50]OFD Sender: No OFD packet to send [12:24:52]accept exits with 7 [12:24:52]New connection [12:24:52]New thread 3066715492 created [12:24:52]Thread 3066858852 joined [12:24:52]Waiting for new connection... [12:24:52] Sock 7.Parse request [12:24:52]Sock 7.Check first char [12:24:52]Sock 7.First char is OK [12:24:52]request: POST /json_proto HTTP/1.0 [12:24:52]Method: POST [12:24:52]URL: /json_proto [12:24:52]Method is POST - this is cgi request [12:24:52]url: /json_proto [12:24:52]query_string will be loaded in cgi processing [12:24:52]execute_cgi json_proto POST (null) [12:24:52]execute_cgi path=json_proto method=POST [12:24:52]POST find Content-Length [12:24:52]Host: 172.17.38.133:8080 [12:24:52]Content-Length: 677 [12:24:52]Content-Type: application/json [12:24:52] [12:24:52]POST finish read [12:24:52]Found Content-Length = 677 [12:24:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673584", "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" ] } } [12:24:52]execute_script... [12:24: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)673584", "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" ] } } [12:24:52]POST & json_proto [12:24:52]process_json_proto [12:24:52]json parsed OK: [12:24:52]protocol is kg_v1.0 [12:24:52]action value=close_receipt [12:24:52]process_action close_receipt [12:24:52]cmd_close_receipt [12:24:52]MH_GetDate [12:24:52]Write to MH i2c: F0 00 00 5D 25 71 [12:24:52]Write i2c OK [12:24:52]MH_I2C_Read... [12:24:52]Read from MH i2c: F0 [12:24:52]MH_I2C_Read... [12:24:52]Read from MH i2c: F0 09 00 [12:24:52]MH_I2C_Read... [12:24:52]Read from MH i2c: F0 09 00 5D 25 00 19 71 75 66 BD 8F 7C 64 0B [12:24:52]GetLastDocTimeStamp 1718972656 [12:24:52]current date 1718972697 [12:24:52]FM_GetShiftState [12:24:52]SAM_PROTO_GetShiftState [12:24:52]wFMCommunicate request_size=4 [12:24:52]MH_SAM_APDU [12:24:52]CAPDU: 80 13 01 00 [12:24:52]Write to MH i2c: E2 08 00 5E 25 80 13 01 00 00 00 00 00 00 [12:24:52]Write i2c OK [12:24:52]MH_I2C_Read... [12:24:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:24:52]Read from MH i2c: E2 [12:24:52]MH_I2C_Read... [12:24:52]Read from MH i2c: E2 0E 00 [12:24:52]MH_I2C_Read... [12:24:52]Read from MH i2c: E2 0E 00 5E 25 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 13 [12:24:52]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [12:24:52]wFMCommunicate OK [12:24:52]SAM_PROTO_GetShiftState done [12:24:52]FM_GetShiftState done [12:24:52]opened in 1718929509 [12:24:52]opened+sec_in_day 1719015909 [12:24:52]quantity*price = 60025 [12:24:52]sum+1 = 60027 [12:24:52]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 СНО: Общий режим Чек 80 21.06.2024 12:24 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104157 ФПД: 48239635704821 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T122457&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104157&fm=48239635704821&tin=02508201610067®Number=0000000000092785&sum=60000 [12:24:54]StoreToDocumentArchive [12:24:54]shift 355 fd 104157 [12:24:54]save to /storage/0355/doc_00104157 [12:24:54]save last doc name /storage/0355/doc_00104157 to /storage/kkm_last_doc_name [12:24:54]save OK [12:24:54]Clear old archive folders... [12:24:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:24:54]tlvbuf is 011418A0 [12:24:54]SAM_PROTO_ClearQueue [12:24:54]wFMCommunicate request_size=4 [12:24:54]MH_SAM_APDU [12:24:54]CAPDU: 80 09 00 00 [12:24:54]Write to MH i2c: E2 08 00 6B 25 80 09 00 00 00 00 00 00 02 [12:24:54]Write i2c OK [12:24:54]MH_I2C_Read... [12:24:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:24:54]Read from MH i2c: E2 [12:24:54]MH_I2C_Read... [12:24:54]Read from MH i2c: E2 03 00 [12:24:54]MH_I2C_Read... [12:24:54]Read from MH i2c: E2 03 00 6B 25 00 90 00 04 [12:24:54]RAPDU: 90 00 [12:24:54]wFMCommunicate OK [12:24:54]SAM_PROTO_ClearQueue done [12:24:54]KKMCreateOFDPacket [12:24:54]OFDProtocolAddRootSTLVToBuf [12:24:54]FM_MakeSignedData [12:24:54]FM_MakeSignedData [12:24:54]SAM_PROTO_SignData [12:24:54]wFMCommunicate request_size=4 [12:24:54]MH_SAM_APDU [12:24:54]CAPDU: 80 0D 01 02 [12:24:54]Write to MH i2c: E2 08 00 6C 25 80 0D 01 02 00 00 00 00 0A [12:24:54]Write i2c OK [12:24:54]MH_I2C_Read... [12:24:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:24:54]Read from MH i2c: E2 [12:24:54]MH_I2C_Read... [12:24:54]Read from MH i2c: E2 03 00 [12:24:54]MH_I2C_Read... [12:24:54]Read from MH i2c: E2 03 00 6C 25 00 90 00 05 [12:24:54]RAPDU: 90 00 [12:24:54]wFMCommunicate OK [12:24:54]wFMCommunicate request_size=255 [12:24:54]MH_SAM_APDU [12:24: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 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 50 00 00 00 F4 03 04 00 19 71 75 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 DD 96 01 00 35 04 06 00 2B [12:24:54]Write to MH i2c: E2 02 01 6D 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 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 50 00 00 00 F4 03 04 00 19 71 75 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 DD 96 01 00 35 04 06 00 2B 00 00 59 [12:24:54]Write i2c OK [12:24:54]MH_I2C_Read... [12:24:54]Read from MH i2c: E2 [12:24:54]MH_I2C_Read... [12:24:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:24:54]Read from MH i2c: E2 03 00 [12:24:54]MH_I2C_Read... [12:24:54]Read from MH i2c: E2 03 00 6D 25 00 90 00 06 [12:24:54]RAPDU: 90 00 [12:24:54]wFMCommunicate OK [12:24:54]wFMCommunicate request_size=10 [12:24:54]MH_SAM_APDU [12:24:54]CAPDU: 80 0D 02 02 05 DF AA 59 AB F5 [12:24:54]Write to MH i2c: E2 0D 00 6E 25 80 0D 02 02 05 00 DF AA 59 AB F5 00 00 99 [12:24:54]Write i2c OK [12:24:54]MH_I2C_Read... [12:24:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:24:54]Read from MH i2c: E2 [12:24:54]MH_I2C_Read... [12:24:54]Read from MH i2c: E2 03 00 [12:24:54]MH_I2C_Read... [12:24:54]Read from MH i2c: E2 03 00 6E 25 00 90 00 07 [12:24:54]RAPDU: 90 00 [12:24:54]wFMCommunicate OK [12:24:54]wFMCommunicate request_size=4 [12:24:54]MH_SAM_APDU [12:24:54]CAPDU: 80 0D 03 02 [12:24:54]Write to MH i2c: E2 08 00 6F 25 80 0D 03 02 00 00 00 00 0F [12:24:54]Write i2c OK [12:24:54]MH_I2C_Read... [12:24:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:24:54]Read from MH i2c: E2 [12:24:54]MH_I2C_Read... [12:24:54]Read from MH i2c: E2 0B 00 [12:24:54]MH_I2C_Read... [12:24:54]Read from MH i2c: E2 0B 00 6F 25 00 D6 F0 22 96 C5 56 FF 95 90 00 3D [12:24:54]RAPDU: D6 F0 22 96 C5 56 FF 95 90 00 [12:24:54]wFMCommunicate OK [12:24:54]SAM_PROTO_SignData done [12:24:54]FM_MakeSignedData done [12:24:54]CreateOFDProtocolMessage [12:24:54]wFMCommunicate request_size=4 [12:24:54]MH_SAM_APDU [12:24:54]CAPDU: 80 11 00 00 [12:24:54]Write to MH i2c: E2 08 00 70 25 80 11 00 00 00 00 00 00 0F [12:24:54]Write i2c OK [12:24:54]MH_I2C_Read... [12:24:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:24:54]Read from MH i2c: E2 [12:24:54]MH_I2C_Read... [12:24:54]Read from MH i2c: E2 17 00 [12:24:54]MH_I2C_Read... [12:24:54]Read from MH i2c: E2 17 00 70 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 62 [12:24:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:24:54]wFMCommunicate OK [12:24:54]CreateOFDProtocolMessage done [12:24:54]OFDSenderStorePacket 104157 [12:24:54]StoreOFDPacket docnum=104157 [12:24: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 1A F7 07 01 71 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 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 50 00 00 00 F4 03 04 00 19 71 75 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 DD 96 01 00 35 04 06 00 2B DF AA 59 AB F5 D6 F0 22 96 C5 56 FF 95 [12:24:54]CheckFolder [12:24:54]dirname=/storage/ofd_packets [12:24:54]CheckFolder done [12:24:54]ProducePacketName [12:24:54]name=ofd_packets/00104157 [12:24:54]NVStorageSaveData ofd_packets/00104157 [12:24:54]File name is /storage/ofd_packets/00104157 [12:24:54]Write 301 bytes [12:24:54]NVStorageSaveData done [12:24:54]OFDSenderStorePacket done [12:24:54]KKMCreateOFDPacket done [12:24:54]NVStorageSaveData kkm_last_timestamp [12:24:54]File name is /storage/kkm_last_timestamp [12:24:54]Write 4 bytes [12:24:54]NVStorageSaveData done [12:24:54]ExternCall_PrintAddStr [12:24:54]wPrintStart [12:24:54]Write to MH i2c: 01 00 00 71 25 96 [12:24:54]Write i2c OK [12:24:54]MH_I2C_Read... [12:24:54]Read from MH i2c: 01 [12:24:54]MH_I2C_Read... [12:24:54]Read from MH i2c: 01 07 00 [12:24:54]MH_I2C_Read... [12:24:54]Read from MH i2c: 01 07 00 71 25 00 00 00 00 00 FF 0F AB [12:24:54]RasterBufferAndPrint [12:24:54]line Счет N : (1)673584 [12:24:54]line ИНН: 02508201610067 [12:24:54]line Контрольно-Кассовый Чек [12:24:54]line ПРОДАЖА [12:24:54]line ТРК (МРК, ГНК) : 32 [12:24:54]line Товар: 2710124130 [12:24:54]line Аи-92-К-5 [12:24:54]line 9.040 * 66.40 [12:24:54]line = 600.26 [12:24:54]line НДС 12% НСП 1% [12:24:54]line > о реализуемом товаре [12:24:54]line ОКРУГЛЕНИЕ: -0.26 [12:24:54]line ИТОГО: 600.00 [12:24:54]line Внесено: 600.00 [12:24:54]line СДАЧА: 0.00 [12:24:54]line НСП 1% : 5.31 [12:24:54]line НДС 12% : 63.74 [12:24:54]line Наличными: 600.00 [12:24:54]line Безнал.: 0.00 [12:24:54]line Место: АЗС № 120 "Партнер Нефть" [12:24:54]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [12:24:54]line СНО: Общий режим [12:24:54]line Чек 80 21.06.2024 12:24 [12:24:54]line Смена: 355 ФФД: 1.0 [12:24:54]line ЗНМ: 0300000164 [12:24:54]line РНМ: 0000000000092785 [12:24:54]line Версия ККМ: 001 [12:24:54]line ФМ: 0000000000875093 [12:24:54]line ФД: 104157 [12:24:54]line ФПД: 48239635704821 [12:24:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T122457&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104157&fm=48239635704821&tin=02508201610067®Number=0000000000092785&sum=60000 [12:24:54]OFD Sender: Processing packet 104157 [packets to send 17, broken 16] [12:24:54]ProducePacketName [12:24:54]name=ofd_packets/00104157 [12:24:54]OFD Sender: To server: pG, [12:24:54]CommunicateWithHost lk.salyk.kg:30040 [12:24:54]ConnectInit lk.salyk.kg [12:24:54]written 0, free lines is 4095 [12:24:55]Connected sock=10 [12:24: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 1A F7 07 01 71 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 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 50 00 00 00 F4 03 04 00 19 71 75 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 DD 96 01 00 35 04 06 00 2B DF AA 59 AB F5 D6 F0 22 96 C5 56 FF 95 [12:24: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 A3 F0 47 00 62 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 DD 96 01 00 F4 03 04 00 9B 17 75 66 B6 04 01 00 00 85 2F 9B 36 8D 87 65 55 [12:24:55]CommunicateWithHost err = 0 [12:24:55]CheckOFDResponse [12:24:55]1017 (14) - 77093643461234 [12:24:55]1041 (16) - 0000000000875093 [12:24:55]1040 (4) - 104157 [12:24:55]1012 (4) - 21.06.2024 06:03 [12:24:55]1206 (1) - 0 [12:24:55]OFD Sender: Remove packet 104157 [12:24:55]ProducePacketName [12:24:55]name=ofd_packets/00104157 [12:24:55]NVStorageDeleteData [12:24:55]Write to MH i2c: 01 00 00 9C 25 C1 [12:24:55]Write i2c OK [12:24:55]MH_I2C_Read... [12:24:55]Read from MH i2c: 01 [12:24:55]MH_I2C_Read... [12:24:55]Read from MH i2c: 01 07 00 [12:24:55]MH_I2C_Read... [12:24:55]Read from MH i2c: 01 07 00 9C 25 00 00 00 00 00 E4 0C B8 [12:24:55]RasterBufferAndPrint [12:24:55]line [12:24:55]line [12:24:55]line [12:24:55]line [12:24:55]line [12:24:55]written 0, free lines is 3306 [12:24:55]MH_Cut [12:24:55]Write to MH i2c: D1 01 00 A3 25 01 9A [12:24:55]Write i2c OK [12:24:55]MH_I2C_Read... [12:24:55]Read from MH i2c: D1 [12:24:55]MH_I2C_Read... [12:24:55]Read from MH i2c: D1 01 00 [12:24:55]MH_I2C_Read... [12:24:55]Read from MH i2c: D1 01 00 A3 25 00 99 [12:24:55]Write to MH i2c: 01 00 00 A4 25 C9 [12:24:55]Write i2c OK [12:24:55]MH_I2C_Read... [12:24:55]OFD Sender: No OFD packet to send [12:24:56]*** Cut start [12:24:56]*** Partial cut [12:24:56]*** CUTSNS_PIN = 1 [12:24:56]*** CUTSNS_PIN = 0 [12:24:56]*** Brake cut motor [12:24:56]Read from MH i2c: 01 [12:24:56]MH_I2C_Read... [12:24:56]*** Stop cut motor [12:24:56]*** Cut end [12:24:56]Read from MH i2c: 01 07 00 [12:24:56]MH_I2C_Read... [12:24:56]Read from MH i2c: 01 07 00 A4 25 00 00 00 00 00 FF 0F DE [12:24:56]process_action close_receipt done [12:24:56]requested_data is exist [12:24:56]produce_requested_data [12:24:56]requested_item fm.sn is exist - process it [12:24:56]wFMCommunicate request_size=4 [12:24:56]MH_SAM_APDU [12:24:56]CAPDU: 80 11 00 00 [12:24:56]Write to MH i2c: E2 08 00 A5 25 80 11 00 00 00 00 00 00 44 [12:24:56]Write i2c OK [12:24:56]MH_I2C_Read... [12:24:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:24:56]Read from MH i2c: E2 [12:24:56]MH_I2C_Read... [12:24:56]Read from MH i2c: E2 17 00 [12:24:56]MH_I2C_Read... [12:24:56]Read from MH i2c: E2 17 00 A5 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 97 [12:24:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:24:56]wFMCommunicate OK [12:24:56]requested_item fd.num is exist - process it [12:24:56]SAM_PROTO_GetFieldsCounters [12:24:56]wFMCommunicate request_size=4 [12:24:56]MH_SAM_APDU [12:24:56]CAPDU: 80 13 00 00 [12:24:56]Write to MH i2c: E2 08 00 A6 25 80 13 00 00 00 00 00 00 47 [12:24:56]Write i2c OK [12:24:56]MH_I2C_Read... [12:24:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:24:56]Read from MH i2c: E2 [12:24:56]MH_I2C_Read... [12:24:56]Read from MH i2c: E2 62 00 [12:24:56]MH_I2C_Read... [12:24:56]Read from MH i2c: E2 62 00 A6 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 DD 96 01 00 0E 04 04 00 63 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 36 [12:24: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 DD 96 01 00 0E 04 04 00 63 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 [12:24:56]wFMCommunicate OK [12:24:56]SAM_PROTO_GetFieldsCounters done [12:24:56]requested_item shift.num is exist - process it [12:24:56]requested_item shift.opened is exist - process it [12:24:56]req_shift_opened [12:24:56]FM_GetShiftState [12:24:56]SAM_PROTO_GetShiftState [12:24:56]wFMCommunicate request_size=4 [12:24:56]MH_SAM_APDU [12:24:56]CAPDU: 80 13 01 00 [12:24:56]Write to MH i2c: E2 08 00 A7 25 80 13 01 00 00 00 00 00 49 [12:24:56]Write i2c OK [12:24:56]MH_I2C_Read... [12:24:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:24:56]Read from MH i2c: E2 [12:24:56]MH_I2C_Read... [12:24:56]Read from MH i2c: E2 0E 00 [12:24:56]MH_I2C_Read... [12:24:56]Read from MH i2c: E2 0E 00 A7 25 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 5C [12:24:56]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [12:24:56]wFMCommunicate OK [12:24:56]SAM_PROTO_GetShiftState done [12:24:56]FM_GetShiftState done [12:24:56]req_shift_opened done [12:24:56]requested_item shift.open_date is exist - process it [12:24:56]req_shift_open_date [12:24:56]req_shift_open_date done [12:24:56]produce_requested_data done [12:24:56]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104157,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [12:24:56]process_action_free close_receipt [12:24:56]json_value_free [12:24:56]json_value_free done [12:24:56]process_json_proto returns [12:24:56]Send response to host [12:24:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104157,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [12:24:56]free response buf [12:24:56]execute_script done [12:24:56]execute_script returns [12:24:56]free content buf [12:24:56]Sock 7.Close socket [12:24:56]Sock 7.Thread stoped [12:25:00]OFD Sender: No OFD packet to send [12:25:05]OFD Sender: No OFD packet to send [12:25:05]accept exits with 9 [12:25:05]New connection [12:25:05]New thread 3066858852 created [12:25:05]Thread 3066715492 joined [12:25:05]Waiting for new connection... [12:25:05] Sock 9.Parse request [12:25:05]Sock 9.Check first char [12:25:05]Sock 9.First char is OK [12:25:05]request: POST /json_proto HTTP/1.0 [12:25:05]Method: POST [12:25:05]URL: /json_proto [12:25:05]Method is POST - this is cgi request [12:25:05]url: /json_proto [12:25:05]query_string will be loaded in cgi processing [12:25:05]execute_cgi json_proto POST (null) [12:25:05]execute_cgi path=json_proto method=POST [12:25:05]POST find Content-Length [12:25:05]Host: 172.17.38.133:8080 [12:25:05]Content-Length: 824 [12:25:05]Content-Type: application/json [12:25:05] [12:25:05]POST finish read [12:25:05]Found Content-Length = 824 [12:25:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673582", "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" : 40.000, "sum" : 2916.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" : 2916.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:25:05]execute_script... [12:25: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)673582", "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" : 40.000, "sum" : 2916.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" : 2916.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:25:05]POST & json_proto [12:25:05]process_json_proto [12:25:05]json parsed OK: [12:25:05]protocol is kg_v1.0 [12:25:05]action value=close_receipt [12:25:05]process_action close_receipt [12:25:05]cmd_close_receipt [12:25:05]MH_GetDate [12:25:05]Write to MH i2c: F0 00 00 A8 25 BC [12:25:05]Write i2c OK [12:25:05]MH_I2C_Read... [12:25:05]Read from MH i2c: F0 [12:25:05]MH_I2C_Read... [12:25:05]Read from MH i2c: F0 09 00 [12:25:05]MH_I2C_Read... [12:25:05]Read from MH i2c: F0 09 00 A8 25 00 26 71 75 66 BD 8F 7C 64 63 [12:25:05]GetLastDocTimeStamp 1718972697 [12:25:05]current date 1718972710 [12:25:05]FM_GetShiftState [12:25:05]SAM_PROTO_GetShiftState [12:25:05]wFMCommunicate request_size=4 [12:25:05]MH_SAM_APDU [12:25:05]CAPDU: 80 13 01 00 [12:25:05]Write to MH i2c: E2 08 00 A9 25 80 13 01 00 00 00 00 00 4B [12:25:05]Write i2c OK [12:25:05]MH_I2C_Read... [12:25:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:25:06]Read from MH i2c: E2 [12:25:06]MH_I2C_Read... [12:25:06]Read from MH i2c: E2 0E 00 [12:25:06]MH_I2C_Read... [12:25:06]Read from MH i2c: E2 0E 00 A9 25 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 5E [12:25:06]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [12:25:06]wFMCommunicate OK [12:25:06]SAM_PROTO_GetShiftState done [12:25:06]FM_GetShiftState done [12:25:06]opened in 1718929509 [12:25:06]opened+sec_in_day 1719015909 [12:25:06]quantity*price = 291600 [12:25:06]sum+1 = 291601 [12:25:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2916.00 НСП 1% : 25.80 НДС 12% : 309.66 Наличными: 0.00 Безнал.: 2916.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 81 21.06.2024 12:25 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875093 ФД: 104158 ФПД: 212926999680604 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T122510&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104158&fm=212926999680604&tin=02508201610067®Number=0000000000092785&sum=291600 [12:25:07]StoreToDocumentArchive [12:25:07]shift 355 fd 104158 [12:25:07]save to /storage/0355/doc_00104158 [12:25:07]save last doc name /storage/0355/doc_00104158 to /storage/kkm_last_doc_name [12:25:07]save OK [12:25:07]Clear old archive folders... [12:25:07]ProcessDocumentItem done err = 0, tmpTLVsize=252 [12:25:07]tlvbuf is 010FDDA0 [12:25:07]SAM_PROTO_ClearQueue [12:25:07]wFMCommunicate request_size=4 [12:25:07]MH_SAM_APDU [12:25:07]CAPDU: 80 09 00 00 [12:25:07]Write to MH i2c: E2 08 00 B6 25 80 09 00 00 00 00 00 00 4D [12:25:07]Write i2c OK [12:25:07]MH_I2C_Read... [12:25:07]Read from MH i2c: E2 [12:25:07]MH_I2C_Read... [12:25:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:25:07]Read from MH i2c: E2 03 00 [12:25:07]MH_I2C_Read... [12:25:07]Read from MH i2c: E2 03 00 B6 25 00 90 00 4F [12:25:07]RAPDU: 90 00 [12:25:07]wFMCommunicate OK [12:25:07]SAM_PROTO_ClearQueue done [12:25:07]KKMCreateOFDPacket [12:25:07]OFDProtocolAddRootSTLVToBuf [12:25:07]FM_MakeSignedData [12:25:07]FM_MakeSignedData [12:25:07]SAM_PROTO_SignData [12:25:07]wFMCommunicate request_size=4 [12:25:07]MH_SAM_APDU [12:25:07]CAPDU: 80 0D 01 02 [12:25:07]Write to MH i2c: E2 08 00 B7 25 80 0D 01 02 00 00 00 00 55 [12:25:07]Write i2c OK [12:25:07]MH_I2C_Read... [12:25:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:25:07]Read from MH i2c: E2 [12:25:07]MH_I2C_Read... [12:25:07]Read from MH i2c: E2 03 00 [12:25:07]MH_I2C_Read... [12:25:07]Read from MH i2c: E2 03 00 B7 25 00 90 00 50 [12:25:07]RAPDU: 90 00 [12:25:07]wFMCommunicate OK [12:25:07]wFMCommunicate request_size=255 [12:25:07]MH_SAM_APDU [12:25: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 40 9C 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 10 73 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 73 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 14 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F6 78 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 73 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 26 71 75 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 DE 96 01 00 35 04 06 00 [12:25:07]Write to MH i2c: E2 02 01 B8 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 40 9C 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 10 73 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 73 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 14 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F6 78 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 73 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 26 71 75 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 DE 96 01 00 35 04 06 00 00 00 CF [12:25:07]Write i2c OK [12:25:07]MH_I2C_Read... [12:25:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:25:07]Read from MH i2c: E2 [12:25:07]MH_I2C_Read... [12:25:07]Read from MH i2c: E2 03 00 [12:25:07]MH_I2C_Read... [12:25:07]Read from MH i2c: E2 03 00 B8 25 00 90 00 51 [12:25:07]RAPDU: 90 00 [12:25:07]wFMCommunicate OK [12:25:07]wFMCommunicate request_size=11 [12:25:07]MH_SAM_APDU [12:25:07]CAPDU: 80 0D 02 02 06 C1 A7 EE 2D D6 5C [12:25:07]Write to MH i2c: E2 0E 00 B9 25 80 0D 02 02 06 00 C1 A7 EE 2D D6 5C 00 00 19 [12:25:07]Write i2c OK [12:25:07]MH_I2C_Read... [12:25:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:25:07]Read from MH i2c: E2 [12:25:07]MH_I2C_Read... [12:25:07]Read from MH i2c: E2 03 00 [12:25:07]MH_I2C_Read... [12:25:07]Read from MH i2c: E2 03 00 B9 25 00 90 00 52 [12:25:07]RAPDU: 90 00 [12:25:07]wFMCommunicate OK [12:25:07]wFMCommunicate request_size=4 [12:25:07]MH_SAM_APDU [12:25:07]CAPDU: 80 0D 03 02 [12:25:07]Write to MH i2c: E2 08 00 BA 25 80 0D 03 02 00 00 00 00 5A [12:25:07]Write i2c OK [12:25:07]MH_I2C_Read... [12:25:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:25:07]Read from MH i2c: E2 [12:25:07]MH_I2C_Read... [12:25:07]Read from MH i2c: E2 0B 00 [12:25:07]MH_I2C_Read... [12:25:07]Read from MH i2c: E2 0B 00 BA 25 00 B4 35 B6 E1 6B C3 12 1D 90 00 38 [12:25:07]RAPDU: B4 35 B6 E1 6B C3 12 1D 90 00 [12:25:07]wFMCommunicate OK [12:25:07]SAM_PROTO_SignData done [12:25:07]FM_MakeSignedData done [12:25:07]CreateOFDProtocolMessage [12:25:07]wFMCommunicate request_size=4 [12:25:07]MH_SAM_APDU [12:25:07]CAPDU: 80 11 00 00 [12:25:07]Write to MH i2c: E2 08 00 BB 25 80 11 00 00 00 00 00 00 5A [12:25:07]Write i2c OK [12:25:07]MH_I2C_Read... [12:25:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:25:07]Read from MH i2c: E2 [12:25:07]MH_I2C_Read... [12:25:07]Read from MH i2c: E2 17 00 [12:25:07]MH_I2C_Read... [12:25:07]Read from MH i2c: E2 17 00 BB 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 AD [12:25:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:25:07]wFMCommunicate OK [12:25:07]CreateOFDProtocolMessage done [12:25:07]OFDSenderStorePacket 104158 [12:25:07]StoreOFDPacket docnum=104158 [12:25: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 F2 FC 08 01 7F CD 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 9C 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 10 73 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 73 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 14 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F6 78 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 73 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 26 71 75 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 DE 96 01 00 35 04 06 00 C1 A7 EE 2D D6 5C B4 35 B6 E1 6B C3 12 1D [12:25:07]CheckFolder [12:25:07]dirname=/storage/ofd_packets [12:25:07]CheckFolder done [12:25:07]ProducePacketName [12:25:07]name=ofd_packets/00104158 [12:25:07]NVStorageSaveData ofd_packets/00104158 [12:25:07]File name is /storage/ofd_packets/00104158 [12:25:07]Write 302 bytes [12:25:07]NVStorageSaveData done [12:25:07]OFDSenderStorePacket done [12:25:07]KKMCreateOFDPacket done [12:25:07]NVStorageSaveData kkm_last_timestamp [12:25:07]File name is /storage/kkm_last_timestamp [12:25:07]Write 4 bytes [12:25:07]NVStorageSaveData done [12:25:07]ExternCall_PrintAddStr [12:25:07]wPrintStart [12:25:07]Write to MH i2c: 01 00 00 BC 25 E1 [12:25:07]Write i2c OK [12:25:07]MH_I2C_Read... [12:25:07]Read from MH i2c: 01 [12:25:07]MH_I2C_Read... [12:25:07]Read from MH i2c: 01 07 00 [12:25:07]MH_I2C_Read... [12:25:07]Read from MH i2c: 01 07 00 BC 25 00 00 00 00 00 FF 0F F6 [12:25:07]RasterBufferAndPrint [12:25:07]line Счет N : (1)673582 [12:25:07]line ИНН: 02508201610067 [12:25:07]line Контрольно-Кассовый Чек [12:25:07]line ПРОДАЖА [12:25:07]line ТРК (МРК, ГНК) : 11 [12:25:07]line Товар: 2710194210 [12:25:07]line ДТ(л)-К-5 [12:25:07]line 40.000 * 72.90 [12:25:07]line = 2916.00 [12:25:07]line НДС 12% НСП 1% [12:25:07]line > о реализуемом товаре [12:25:07]line ИТОГО: 2916.00 [12:25:07]line НСП 1% : 25.80 [12:25:07]line НДС 12% : 309.66 [12:25:07]line Наличными: 0.00 [12:25:07]line Безнал.: 2916.00 [12:25:07]line Место: АЗС № 120 "Партнер Нефть" [12:25:07]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [12:25:07]line СНО: Общий режим [12:25:07]line Чек 81 21.06.2024 12:25 [12:25:07]line Смена: 355 ФФД: 1.0 [12:25:07]line ЗНМ: 0300000164 [12:25:07]line РНМ: 0000000000092785 [12:25:07]line Версия ККМ: 001 [12:25:07]line Платежная система: Бакай Банк [12:25:07]line ФМ: 0000000000875093 [12:25:07]line ФД: 104158 [12:25:07]line ФПД: 212926999680604 [12:25:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T122510&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104158&fm=212926999680604&tin=02508201610067®Number=0000000000092785&sum=291600 [12:25:07]written 0, free lines is 4095 [12:25:07]OFD Sender: Processing packet 104158 [packets to send 17, broken 16] [12:25:07]ProducePacketName [12:25:07]name=ofd_packets/00104158 [12:25:07]OFD Sender: To server: pG, [12:25:07]CommunicateWithHost lk.salyk.kg:30040 [12:25:07]ConnectInit lk.salyk.kg [12:25:08]Connected sock=10 [12:25: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 F2 FC 08 01 7F CD 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 9C 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 10 73 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 73 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 14 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F6 78 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 73 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 26 71 75 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 DE 96 01 00 35 04 06 00 C1 A7 EE 2D D6 5C B4 35 B6 E1 6B C3 12 1D [12:25: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 A9 C0 47 00 F4 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 DE 96 01 00 F4 03 04 00 A8 17 75 66 B6 04 01 00 00 A2 79 06 18 06 95 78 A7 [12:25:08]CommunicateWithHost err = 0 [12:25:08]CheckOFDResponse [12:25:08]1017 (14) - 77093643461234 [12:25:08]1041 (16) - 0000000000875093 [12:25:08]1040 (4) - 104158 [12:25:08]1012 (4) - 21.06.2024 06:03 [12:25:08]1206 (1) - 0 [12:25:08]OFD Sender: Remove packet 104158 [12:25:08]ProducePacketName [12:25:08]name=ofd_packets/00104158 [12:25:08]NVStorageDeleteData [12:25:08]Write to MH i2c: 01 00 00 E6 25 0B [12:25:08]Write i2c OK [12:25:08]MH_I2C_Read... [12:25:08]Read from MH i2c: 01 [12:25:08]MH_I2C_Read... [12:25:08]Read from MH i2c: 01 07 00 [12:25:08]MH_I2C_Read... [12:25:08]Read from MH i2c: 01 07 00 E6 25 00 00 00 00 00 04 0D 23 [12:25:08]RasterBufferAndPrint [12:25:08]line [12:25:08]line [12:25:08]line [12:25:08]line [12:25:08]line [12:25:08]written 0, free lines is 3343 [12:25:08]MH_Cut [12:25:08]Write to MH i2c: D1 01 00 ED 25 01 E4 [12:25:08]Write i2c OK [12:25:08]MH_I2C_Read... [12:25:08]Read from MH i2c: D1 [12:25:08]MH_I2C_Read... [12:25:08]Read from MH i2c: D1 01 00 [12:25:08]MH_I2C_Read... [12:25:08]Read from MH i2c: D1 01 00 ED 25 00 E3 [12:25:08]Write to MH i2c: 01 00 00 EE 25 13 [12:25:08]Write i2c OK [12:25:08]MH_I2C_Read... [12:25:08]OFD Sender: No OFD packet to send [12:25:09]*** Cut start [12:25:09]*** Partial cut [12:25:09]*** CUTSNS_PIN = 1 [12:25:09]*** CUTSNS_PIN = 0 [12:25:09]*** Brake cut motor [12:25:09]Read from MH i2c: 01 [12:25:09]MH_I2C_Read... [12:25:09]*** Stop cut motor [12:25:09]*** Cut end [12:25:09]Read from MH i2c: 01 07 00 [12:25:09]MH_I2C_Read... [12:25:09]Read from MH i2c: 01 07 00 EE 25 00 00 00 00 00 FF 0F 28 [12:25:09]process_action close_receipt done [12:25:09]requested_data is exist [12:25:09]produce_requested_data [12:25:09]requested_item fm.sn is exist - process it [12:25:09]wFMCommunicate request_size=4 [12:25:09]MH_SAM_APDU [12:25:09]CAPDU: 80 11 00 00 [12:25:09]Write to MH i2c: E2 08 00 EF 25 80 11 00 00 00 00 00 00 8E [12:25:09]Write i2c OK [12:25:09]MH_I2C_Read... [12:25:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:25:09]Read from MH i2c: E2 [12:25:09]MH_I2C_Read... [12:25:09]Read from MH i2c: E2 17 00 [12:25:09]MH_I2C_Read... [12:25:09]Read from MH i2c: E2 17 00 EF 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 E1 [12:25:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:25:09]wFMCommunicate OK [12:25:09]requested_item fd.num is exist - process it [12:25:09]SAM_PROTO_GetFieldsCounters [12:25:09]wFMCommunicate request_size=4 [12:25:09]MH_SAM_APDU [12:25:09]CAPDU: 80 13 00 00 [12:25:09]Write to MH i2c: E2 08 00 F0 25 80 13 00 00 00 00 00 00 91 [12:25:09]Write i2c OK [12:25:09]MH_I2C_Read... [12:25:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:25:09]Read from MH i2c: E2 [12:25:09]MH_I2C_Read... [12:25:09]Read from MH i2c: E2 62 00 [12:25:09]MH_I2C_Read... [12:25:09]Read from MH i2c: E2 62 00 F0 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 DE 96 01 00 0E 04 04 00 63 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 84 [12:25: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 DE 96 01 00 0E 04 04 00 63 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 [12:25:09]wFMCommunicate OK [12:25:09]SAM_PROTO_GetFieldsCounters done [12:25:09]requested_item shift.num is exist - process it [12:25:09]requested_item shift.opened is exist - process it [12:25:09]req_shift_opened [12:25:09]FM_GetShiftState [12:25:09]SAM_PROTO_GetShiftState [12:25:09]wFMCommunicate request_size=4 [12:25:09]MH_SAM_APDU [12:25:09]CAPDU: 80 13 01 00 [12:25:09]Write to MH i2c: E2 08 00 F1 25 80 13 01 00 00 00 00 00 93 [12:25:09]Write i2c OK [12:25:09]MH_I2C_Read... [12:25:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:25:10]Read from MH i2c: E2 [12:25:10]MH_I2C_Read... [12:25:10]Read from MH i2c: E2 0E 00 [12:25:10]MH_I2C_Read... [12:25:10]Read from MH i2c: E2 0E 00 F1 25 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 A6 [12:25:10]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [12:25:10]wFMCommunicate OK [12:25:10]SAM_PROTO_GetShiftState done [12:25:10]FM_GetShiftState done [12:25:10]req_shift_opened done [12:25:10]requested_item shift.open_date is exist - process it [12:25:10]req_shift_open_date [12:25:10]req_shift_open_date done [12:25:10]produce_requested_data done [12:25:10]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104158,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [12:25:10]process_action_free close_receipt [12:25:10]json_value_free [12:25:10]json_value_free done [12:25:10]process_json_proto returns [12:25:10]Send response to host [12:25:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104158,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [12:25:10]free response buf [12:25:10]execute_script done [12:25:10]execute_script returns [12:25:10]free content buf [12:25:10]Sock 9.Close socket [12:25:10]Sock 9.Thread stoped [12:25:13]OFD Sender: No OFD packet to send [12:25:18]OFD Sender: No OFD packet to send [12:25:23]OFD Sender: No OFD packet to send [12:25:28]OFD Sender: No OFD packet to send [12:25:33]OFD Sender: No OFD packet to send [12:25:38]OFD Sender: No OFD packet to send [12:25:43]OFD Sender: No OFD packet to send [12:25:48]OFD Sender: No OFD packet to send [12:25:53]OFD Sender: No OFD packet to send [12:25:58]OFD Sender: No OFD packet to send [12:26:03]OFD Sender: No OFD packet to send [12:26:08]OFD Sender: No OFD packet to send [12:26:13]OFD Sender: No OFD packet to send [12:26:18]accept exits with 7 [12:26:18]New connection [12:26:18]New thread 3066715492 created [12:26:18]Thread 3066858852 joined [12:26:18]Waiting for new connection... [12:26:18] Sock 7.Parse request [12:26:18]Sock 7.Check first char [12:26:18]Sock 7.First char is OK [12:26:18]request: POST /json_proto HTTP/1.0 [12:26:18]Method: POST [12:26:18]URL: /json_proto [12:26:18]Method is POST - this is cgi request [12:26:18]url: /json_proto [12:26:18]query_string will be loaded in cgi processing [12:26:18]execute_cgi json_proto POST (null) [12:26:18]execute_cgi path=json_proto method=POST [12:26:18]POST find Content-Length [12:26:18]Host: 172.17.38.133:8080 [12:26:18]Content-Length: 1195 [12:26:18]Content-Type: application/json [12:26:18] [12:26:18]POST finish read [12:26:18]Found Content-Length = 1195 [12:26: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 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)673585\u000A21.06.2024 12:03\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\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03082\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:26:18]execute_script... [12:26: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 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)673585\u000A21.06.2024 12:03\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\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03082\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:26:18]POST & json_proto [12:26:18]process_json_proto [12:26:18]json parsed OK: [12:26:18]protocol is kg_v1.0 [12:26:18]action value=print_text [12:26:18]process_action print_text [12:26:18]cmd_print_text [12:26:18]ExternCall_PrintAddStr [12:26:18]wPrintStart [12:26:18]Write to MH i2c: 01 00 00 F2 25 17 [12:26:18]Write i2c OK [12:26:18]MH_I2C_Read... [12:26:18]Read from MH i2c: 01 [12:26:18]MH_I2C_Read... [12:26:18]Read from MH i2c: 01 07 00 [12:26:18]MH_I2C_Read... [12:26:18]Read from MH i2c: 01 07 00 F2 25 00 00 00 00 00 FF 0F 2C [12:26:18]RasterBufferAndPrint [12:26:18]line *****ТОВАРНЫЙ ЧЕК***** [12:26:18]line АЗС 120 [12:26:18]line Партнер нефть [12:26:18]line 02508201610067 [12:26:18]line Кассир : Асанбаев Н. [12:26:18]line Счет N : (1)673585 [12:26:18]line 21.06.2024 12:03 [12:26:18]line ПРОДАЖА [12:26:18]line ТРК (МРК, ГНК): 42 [12:26:18]line Вид ГСМ : 2710124130 [12:26:18]line Аи-92-К-5 [12:26:18]line 15.070 x 66.40 [12:26:18]line ИТОГ: 1000.65 [12:26:18]line Тип оплаты: Талоны: Топливная Карта [12:26:18]line 03082 [12:26:18]line ______________________ [12:26:18]line (подпись) [12:26:18]written 0, free lines is 4095 [12:26:18]Write to MH i2c: 01 00 00 06 26 2C [12:26:18]Write i2c OK [12:26:18]MH_I2C_Read... [12:26:18]Read from MH i2c: 01 [12:26:18]MH_I2C_Read... [12:26:18]Read from MH i2c: 01 07 00 [12:26:18]MH_I2C_Read... [12:26:18]Read from MH i2c: 01 07 00 06 26 00 00 00 00 00 10 0E 51 [12:26:18]RasterBufferAndPrint [12:26:18]line [12:26:18]line [12:26:18]line [12:26:18]line [12:26:18]line [12:26:18]written 0, free lines is 3601 [12:26:18]MH_Cut [12:26:18]Write to MH i2c: D1 01 00 0D 26 01 05 [12:26:18]Write i2c OK [12:26:18]MH_I2C_Read... [12:26:18]Read from MH i2c: D1 [12:26:18]MH_I2C_Read... [12:26:18]Read from MH i2c: D1 01 00 [12:26:18]MH_I2C_Read... [12:26:18]Read from MH i2c: D1 01 00 0D 26 00 04 [12:26:18]Write to MH i2c: 01 00 00 0E 26 34 [12:26:18]Write i2c OK [12:26:18]MH_I2C_Read... [12:26:18]OFD Sender: No OFD packet to send [12:26:19]*** Cut start [12:26:19]*** Partial cut [12:26:19]*** CUTSNS_PIN = 1 [12:26:19]*** CUTSNS_PIN = 0 [12:26:19]*** Brake cut motor [12:26:19]Read from MH i2c: 01 [12:26:19]MH_I2C_Read... [12:26:19]Read from MH i2c: 01 07 00 [12:26:19]MH_I2C_Read... [12:26:19]*** Stop cut motor [12:26:19]*** Cut end [12:26:19]Read from MH i2c: 01 07 00 0E 26 00 00 00 00 00 FF 0F 49 [12:26:19]process_action print_text done [12:26:19]requested_data is exist [12:26:19]produce_requested_data [12:26:19]requested_item fm.sn is exist - process it [12:26:19]wFMCommunicate request_size=4 [12:26:19]MH_SAM_APDU [12:26:19]CAPDU: 80 11 00 00 [12:26:19]Write to MH i2c: E2 08 00 0F 26 80 11 00 00 00 00 00 00 AF [12:26:19]Write i2c OK [12:26:19]MH_I2C_Read... [12:26:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:26:19]Read from MH i2c: E2 [12:26:19]MH_I2C_Read... [12:26:19]Read from MH i2c: E2 17 00 [12:26:19]MH_I2C_Read... [12:26:19]Read from MH i2c: E2 17 00 0F 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 02 [12:26: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:26:19]wFMCommunicate OK [12:26:19]requested_item fd.num is exist - process it [12:26:19]SAM_PROTO_GetFieldsCounters [12:26:19]wFMCommunicate request_size=4 [12:26:19]MH_SAM_APDU [12:26:19]CAPDU: 80 13 00 00 [12:26:19]Write to MH i2c: E2 08 00 10 26 80 13 00 00 00 00 00 00 B2 [12:26:19]Write i2c OK [12:26:19]MH_I2C_Read... [12:26:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:26:20]Read from MH i2c: E2 [12:26:20]MH_I2C_Read... [12:26:20]Read from MH i2c: E2 62 00 [12:26:20]MH_I2C_Read... [12:26:20]Read from MH i2c: E2 62 00 10 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 DE 96 01 00 0E 04 04 00 63 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 A5 [12:26:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 96 01 00 0E 04 04 00 63 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 [12:26:20]wFMCommunicate OK [12:26:20]SAM_PROTO_GetFieldsCounters done [12:26:20]requested_item shift.num is exist - process it [12:26:20]requested_item shift.opened is exist - process it [12:26:20]req_shift_opened [12:26:20]FM_GetShiftState [12:26:20]SAM_PROTO_GetShiftState [12:26:20]wFMCommunicate request_size=4 [12:26:20]MH_SAM_APDU [12:26:20]CAPDU: 80 13 01 00 [12:26:20]Write to MH i2c: E2 08 00 11 26 80 13 01 00 00 00 00 00 B4 [12:26:20]Write i2c OK [12:26:20]MH_I2C_Read... [12:26:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:26:20]Read from MH i2c: E2 [12:26:20]MH_I2C_Read... [12:26:20]Read from MH i2c: E2 0E 00 [12:26:20]MH_I2C_Read... [12:26:20]Read from MH i2c: E2 0E 00 11 26 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 C7 [12:26:20]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [12:26:20]wFMCommunicate OK [12:26:20]SAM_PROTO_GetShiftState done [12:26:20]FM_GetShiftState done [12:26:20]req_shift_opened done [12:26:20]requested_item shift.open_date is exist - process it [12:26:20]req_shift_open_date [12:26:20]req_shift_open_date done [12:26:20]produce_requested_data done [12:26:20]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104158,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [12:26:20]process_action_free print_text [12:26:20]json_value_free [12:26:20]json_value_free done [12:26:20]process_json_proto returns [12:26:20]Send response to host [12:26:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104158,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [12:26:20]free response buf [12:26:20]execute_script done [12:26:20]execute_script returns [12:26:20]free content buf [12:26:20]Sock 7.Close socket [12:26:20]Sock 7.Thread stoped [12:26:23]OFD Sender: No OFD packet to send [12:26:28]OFD Sender: No OFD packet to send [12:26:33]OFD Sender: No OFD packet to send [12:26:38]OFD Sender: No OFD packet to send [12:26:43]OFD Sender: No OFD packet to send [12:26:48]OFD Sender: No OFD packet to send [12:26:53]OFD Sender: No OFD packet to send [12:26:58]OFD Sender: No OFD packet to send [12:27:03]OFD Sender: No OFD packet to send [12:27:08]OFD Sender: No OFD packet to send [12:27:13]OFD Sender: No OFD packet to send [12:27:19]OFD Sender: No OFD packet to send [12:27:24]OFD Sender: No OFD packet to send [12:27:29]OFD Sender: No OFD packet to send [12:27:34]OFD Sender: No OFD packet to send [12:27:39]OFD Sender: No OFD packet to send [12:27:44]OFD Sender: No OFD packet to send [12:27:49]OFD Sender: No OFD packet to send [12:27:54]OFD Sender: No OFD packet to send [12:27:59]OFD Sender: No OFD packet to send [12:28:04]OFD Sender: No OFD packet to send [12:28:09]OFD Sender: No OFD packet to send [12:28:14]OFD Sender: No OFD packet to send [12:28:19]OFD Sender: No OFD packet to send [12:28:24]OFD Sender: No OFD packet to send [12:28:29]OFD Sender: No OFD packet to send [12:28:34]OFD Sender: No OFD packet to send [12:28:39]OFD Sender: No OFD packet to send [12:28:44]OFD Sender: No OFD packet to send [12:28:49]OFD Sender: No OFD packet to send [12:28:54]OFD Sender: No OFD packet to send [12:28:58]accept exits with 9 [12:28:58]New connection [12:28:58]New thread 3066858852 created [12:28:58]Thread 3066715492 joined [12:28:58]Waiting for new connection... [12:28:58] Sock 9.Parse request [12:28:58]Sock 9.Check first char [12:28:58]Sock 9.First char is OK [12:28:58]request: POST /json_proto HTTP/1.0 [12:28:58]Method: POST [12:28:58]URL: /json_proto [12:28:58]Method is POST - this is cgi request [12:28:58]url: /json_proto [12:28:58]query_string will be loaded in cgi processing [12:28:58]execute_cgi json_proto POST (null) [12:28:58]execute_cgi path=json_proto method=POST [12:28:58]POST find Content-Length [12:28:58]Host: 172.17.38.133:8080 [12:28:58]Content-Length: 819 [12:28:58]Content-Type: application/json [12:28:58] [12:28:58]POST finish read [12:28:58]Found Content-Length = 819 [12:28:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673587", "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: \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" ] } } [12:28:58]execute_script... [12:28:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673587", "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: \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" ] } } [12:28:58]POST & json_proto [12:28:58]process_json_proto [12:28:58]json parsed OK: [12:28:58]protocol is kg_v1.0 [12:28:58]action value=close_receipt [12:28:58]process_action close_receipt [12:28:58]cmd_close_receipt [12:28:58]MH_GetDate [12:28:58]Write to MH i2c: F0 00 00 12 26 27 [12:28:58]Write i2c OK [12:28:58]MH_I2C_Read... [12:28:58]Read from MH i2c: F0 [12:28:58]MH_I2C_Read... [12:28:58]Read from MH i2c: F0 09 00 [12:28:58]MH_I2C_Read... [12:28:58]Read from MH i2c: F0 09 00 12 26 00 0F 72 75 66 BD 8F 7C 64 B8 [12:28:58]GetLastDocTimeStamp 1718972710 [12:28:58]current date 1718972943 [12:28:58]FM_GetShiftState [12:28:58]SAM_PROTO_GetShiftState [12:28:58]wFMCommunicate request_size=4 [12:28:58]MH_SAM_APDU [12:28:58]CAPDU: 80 13 01 00 [12:28:58]Write to MH i2c: E2 08 00 13 26 80 13 01 00 00 00 00 00 B6 [12:28:58]Write i2c OK [12:28:58]MH_I2C_Read... [12:28:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:28:58]Read from MH i2c: E2 [12:28:58]MH_I2C_Read... [12:28:58]Read from MH i2c: E2 0E 00 [12:28:58]MH_I2C_Read... [12:28:58]Read from MH i2c: E2 0E 00 13 26 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 C9 [12:28:58]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [12:28:58]wFMCommunicate OK [12:28:58]SAM_PROTO_GetShiftState done [12:28:58]FM_GetShiftState done [12:28:58]opened in 1718929509 [12:28:58]opened+sec_in_day 1719015909 [12:28:58]quantity*price = 100060 [12:28:58]sum+1 = 100062 [12:28:58]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 СНО: Общий режим Чек 82 21.06.2024 12:29 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875093 ФД: 104159 ФПД: 39248116013727 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T122903&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104159&fm=39248116013727&tin=02508201610067®Number=0000000000092785&sum=100061 [12:28:59]StoreToDocumentArchive [12:28:59]shift 355 fd 104159 [12:28:59]save to /storage/0355/doc_00104159 [12:28:59]save last doc name /storage/0355/doc_00104159 to /storage/kkm_last_doc_name [12:28:59]save OK [12:28:59]Clear old archive folders... [12:28:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:28:59]tlvbuf is 01106F70 [12:28:59]SAM_PROTO_ClearQueue [12:28:59]wFMCommunicate request_size=4 [12:28:59]MH_SAM_APDU [12:28:59]CAPDU: 80 09 00 00 [12:28:59]Write to MH i2c: E2 08 00 20 26 80 09 00 00 00 00 00 00 B8 [12:28:59]Write i2c OK [12:28:59]MH_I2C_Read... [12:28:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:28:59]Read from MH i2c: E2 [12:28:59]MH_I2C_Read... [12:28:59]Read from MH i2c: E2 03 00 [12:28:59]MH_I2C_Read... [12:28:59]Read from MH i2c: E2 03 00 20 26 00 90 00 BA [12:28:59]RAPDU: 90 00 [12:28:59]wFMCommunicate OK [12:28:59]SAM_PROTO_ClearQueue done [12:28:59]KKMCreateOFDPacket [12:28:59]OFDProtocolAddRootSTLVToBuf [12:28:59]FM_MakeSignedData [12:28:59]FM_MakeSignedData [12:28:59]SAM_PROTO_SignData [12:28:59]wFMCommunicate request_size=4 [12:28:59]MH_SAM_APDU [12:28:59]CAPDU: 80 0D 01 02 [12:28:59]Write to MH i2c: E2 08 00 21 26 80 0D 01 02 00 00 00 00 C0 [12:28:59]Write i2c OK [12:28:59]MH_I2C_Read... [12:28:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:28:59]Read from MH i2c: E2 [12:28:59]MH_I2C_Read... [12:28:59]Read from MH i2c: E2 03 00 [12:28:59]MH_I2C_Read... [12:28:59]Read from MH i2c: E2 03 00 21 26 00 90 00 BB [12:28:59]RAPDU: 90 00 [12:28:59]wFMCommunicate OK [12:28:59]wFMCommunicate request_size=255 [12:28:59]MH_SAM_APDU [12:28:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 52 00 00 00 F4 03 04 00 0F 72 75 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 DF 96 01 00 35 04 06 00 23 [12:28:59]Write to MH i2c: E2 02 01 22 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 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 52 00 00 00 F4 03 04 00 0F 72 75 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 DF 96 01 00 35 04 06 00 23 00 00 E0 [12:28:59]Write i2c OK [12:28:59]MH_I2C_Read... [12:29:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:29:00]Read from MH i2c: E2 [12:29:00]MH_I2C_Read... [12:29:00]Read from MH i2c: E2 03 00 [12:29:00]MH_I2C_Read... [12:29:00]Read from MH i2c: E2 03 00 22 26 00 90 00 BC [12:29:00]RAPDU: 90 00 [12:29:00]wFMCommunicate OK [12:29:00]wFMCommunicate request_size=10 [12:29:00]MH_SAM_APDU [12:29:00]CAPDU: 80 0D 02 02 05 B2 2A 03 5A 9F [12:29:00]Write to MH i2c: E2 0D 00 23 26 80 0D 02 02 05 00 B2 2A 03 5A 9F 00 00 A5 [12:29:00]Write i2c OK [12:29:00]MH_I2C_Read... [12:29:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:29:00]Read from MH i2c: E2 [12:29:00]MH_I2C_Read... [12:29:00]Read from MH i2c: E2 03 00 [12:29:00]MH_I2C_Read... [12:29:00]Read from MH i2c: E2 03 00 23 26 00 90 00 BD [12:29:00]RAPDU: 90 00 [12:29:00]wFMCommunicate OK [12:29:00]wFMCommunicate request_size=4 [12:29:00]MH_SAM_APDU [12:29:00]CAPDU: 80 0D 03 02 [12:29:00]Write to MH i2c: E2 08 00 24 26 80 0D 03 02 00 00 00 00 C5 [12:29:00]Write i2c OK [12:29:00]MH_I2C_Read... [12:29:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:29:00]Read from MH i2c: E2 [12:29:00]MH_I2C_Read... [12:29:00]Read from MH i2c: E2 0B 00 [12:29:00]MH_I2C_Read... [12:29:00]Read from MH i2c: E2 0B 00 24 26 00 F3 8F F8 D7 72 25 42 C2 90 00 B2 [12:29:00]RAPDU: F3 8F F8 D7 72 25 42 C2 90 00 [12:29:00]wFMCommunicate OK [12:29:00]SAM_PROTO_SignData done [12:29:00]FM_MakeSignedData done [12:29:00]CreateOFDProtocolMessage [12:29:00]wFMCommunicate request_size=4 [12:29:00]MH_SAM_APDU [12:29:00]CAPDU: 80 11 00 00 [12:29:00]Write to MH i2c: E2 08 00 25 26 80 11 00 00 00 00 00 00 C5 [12:29:00]Write i2c OK [12:29:00]MH_I2C_Read... [12:29:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:29:00]Read from MH i2c: E2 [12:29:00]MH_I2C_Read... [12:29:00]Read from MH i2c: E2 17 00 [12:29:00]MH_I2C_Read... [12:29:00]Read from MH i2c: E2 17 00 25 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 18 [12:29:00]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:00]wFMCommunicate OK [12:29:00]CreateOFDProtocolMessage done [12:29:00]OFDSenderStorePacket 104159 [12:29:00]StoreOFDPacket docnum=104159 [12:29: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 0F 01 00 00 02 79 07 01 98 2F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 52 00 00 00 F4 03 04 00 0F 72 75 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 DF 96 01 00 35 04 06 00 23 B2 2A 03 5A 9F F3 8F F8 D7 72 25 42 C2 [12:29:00]CheckFolder [12:29:00]dirname=/storage/ofd_packets [12:29:00]CheckFolder done [12:29:00]ProducePacketName [12:29:00]name=ofd_packets/00104159 [12:29:00]NVStorageSaveData ofd_packets/00104159 [12:29:00]File name is /storage/ofd_packets/00104159 [12:29:00]Write 301 bytes [12:29:00]NVStorageSaveData done [12:29:00]OFDSenderStorePacket done [12:29:00]KKMCreateOFDPacket done [12:29:00]NVStorageSaveData kkm_last_timestamp [12:29:00]File name is /storage/kkm_last_timestamp [12:29:00]Write 4 bytes [12:29:00]NVStorageSaveData done [12:29:00]ExternCall_PrintAddStr [12:29:00]wPrintStart [12:29:00]Write to MH i2c: 01 00 00 26 26 4C [12:29:00]Write i2c OK [12:29:00]MH_I2C_Read... [12:29:00]Read from MH i2c: 01 [12:29:00]MH_I2C_Read... [12:29:00]Read from MH i2c: 01 07 00 [12:29:00]MH_I2C_Read... [12:29:00]Read from MH i2c: 01 07 00 26 26 00 00 00 00 00 FF 0F 61 [12:29:00]RasterBufferAndPrint [12:29:00]line Счет N : (1)673587 [12:29:00]line ИНН: 02508201610067 [12:29:00]line Контрольно-Кассовый Чек [12:29:00]line ПРОДАЖА [12:29:00]line ТРК (МРК, ГНК) : 31 [12:29:00]line Товар: 2710124500 [12:29:00]line Аи-95-К-5 [12:29:00]line 13.540 * 73.90 [12:29:00]line = 1000.61 [12:29:00]line НДС 12% НСП 1% [12:29:00]line > о реализуемом товаре [12:29:00]line ИТОГО: 1000.61 [12:29:00]line НСП 1% : 8.85 [12:29:00]line НДС 12% : 106.26 [12:29:00]line Наличными: 0.00 [12:29:00]line Безнал.: 1000.61 [12:29:00]line Место: АЗС № 120 "Партнер Нефть" [12:29:00]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [12:29:00]line СНО: Общий режим [12:29:00]line Чек 82 21.06.2024 12:29 [12:29:00]line Смена: 355 ФФД: 1.0 [12:29:00]line ЗНМ: 0300000164 [12:29:00]line РНМ: 0000000000092785 [12:29:00]line Версия ККМ: 001 [12:29:00]line Платежная система: Бакай Банк [12:29:00]line ФМ: 0000000000875093 [12:29:00]line ФД: 104159 [12:29:00]line ФПД: 39248116013727 [12:29:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T122903&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104159&fm=39248116013727&tin=02508201610067®Number=0000000000092785&sum=100061 [12:29:00]written 0, free lines is 4095 [12:29:00]OFD Sender: Processing packet 104159 [packets to send 17, broken 16] [12:29:00]ProducePacketName [12:29:00]name=ofd_packets/00104159 [12:29:00]OFD Sender: To server: pG, [12:29:00]CommunicateWithHost lk.salyk.kg:30040 [12:29:00]ConnectInit lk.salyk.kg [12:29:00]Connected sock=10 [12:29:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 02 79 07 01 98 2F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 52 00 00 00 F4 03 04 00 0F 72 75 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 DF 96 01 00 35 04 06 00 23 B2 2A 03 5A 9F F3 8F F8 D7 72 25 42 C2 [12:29: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 9B 8F 47 00 54 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 DF 96 01 00 F4 03 04 00 91 18 75 66 B6 04 01 00 00 A4 9F 96 5A A0 E7 A4 D0 [12:29:01]CommunicateWithHost err = 0 [12:29:01]CheckOFDResponse [12:29:01]1017 (14) - 77093643461234 [12:29:01]1041 (16) - 0000000000875093 [12:29:01]1040 (4) - 104159 [12:29:01]1012 (4) - 21.06.2024 06:07 [12:29:01]1206 (1) - 0 [12:29:01]OFD Sender: Remove packet 104159 [12:29:01]ProducePacketName [12:29:01]name=ofd_packets/00104159 [12:29:01]NVStorageDeleteData [12:29:01]Write to MH i2c: 01 00 00 50 26 76 [12:29:01]Write i2c OK [12:29:01]MH_I2C_Read... [12:29:01]Read from MH i2c: 01 [12:29:01]MH_I2C_Read... [12:29:01]Read from MH i2c: 01 07 00 [12:29:01]MH_I2C_Read... [12:29:01]Read from MH i2c: 01 07 00 50 26 00 00 00 00 00 F2 0C 7B [12:29:01]RasterBufferAndPrint [12:29:01]line [12:29:01]line [12:29:01]line [12:29:01]line [12:29:01]line [12:29:01]written 0, free lines is 3320 [12:29:01]MH_Cut [12:29:01]Write to MH i2c: D1 01 00 57 26 01 4F [12:29:01]Write i2c OK [12:29:01]MH_I2C_Read... [12:29:01]Read from MH i2c: D1 [12:29:01]MH_I2C_Read... [12:29:01]Read from MH i2c: D1 01 00 [12:29:01]MH_I2C_Read... [12:29:01]Read from MH i2c: D1 01 00 57 26 00 4E [12:29:01]Write to MH i2c: 01 00 00 58 26 7E [12:29:01]Write i2c OK [12:29:01]MH_I2C_Read... [12:29:01]OFD Sender: No OFD packet to send [12:29:01]*** Cut start [12:29:01]*** Partial cut [12:29:01]*** CUTSNS_PIN = 1 [12:29:01]*** CUTSNS_PIN = 0 [12:29:02]*** Brake cut motor [12:29:02]Read from MH i2c: 01 [12:29:02]MH_I2C_Read... [12:29:02]*** Stop cut motor [12:29:02]*** Cut end [12:29:02]Read from MH i2c: 01 07 00 [12:29:02]MH_I2C_Read... [12:29:02]Read from MH i2c: 01 07 00 58 26 00 00 00 00 00 FF 0F 93 [12:29:02]process_action close_receipt done [12:29:02]requested_data is exist [12:29:02]produce_requested_data [12:29:02]requested_item fm.sn is exist - process it [12:29:02]wFMCommunicate request_size=4 [12:29:02]MH_SAM_APDU [12:29:02]CAPDU: 80 11 00 00 [12:29:02]Write to MH i2c: E2 08 00 59 26 80 11 00 00 00 00 00 00 F9 [12:29:02]Write i2c OK [12:29:02]MH_I2C_Read... [12:29:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:29:02]Read from MH i2c: E2 [12:29:02]MH_I2C_Read... [12:29:02]Read from MH i2c: E2 17 00 [12:29:02]MH_I2C_Read... [12:29:02]Read from MH i2c: E2 17 00 59 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 4C [12:29:02]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:02]wFMCommunicate OK [12:29:02]requested_item fd.num is exist - process it [12:29:02]SAM_PROTO_GetFieldsCounters [12:29:02]wFMCommunicate request_size=4 [12:29:02]MH_SAM_APDU [12:29:02]CAPDU: 80 13 00 00 [12:29:02]Write to MH i2c: E2 08 00 5A 26 80 13 00 00 00 00 00 00 FC [12:29:02]Write i2c OK [12:29:02]MH_I2C_Read... [12:29:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:29:02]Read from MH i2c: E2 [12:29:02]MH_I2C_Read... [12:29:02]Read from MH i2c: E2 62 00 [12:29:02]MH_I2C_Read... [12:29:02]Read from MH i2c: E2 62 00 5A 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 DF 96 01 00 0E 04 04 00 63 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 F3 [12:29:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 96 01 00 0E 04 04 00 63 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 [12:29:02]wFMCommunicate OK [12:29:02]SAM_PROTO_GetFieldsCounters done [12:29:02]requested_item shift.num is exist - process it [12:29:02]requested_item shift.opened is exist - process it [12:29:02]req_shift_opened [12:29:02]FM_GetShiftState [12:29:02]SAM_PROTO_GetShiftState [12:29:02]wFMCommunicate request_size=4 [12:29:02]MH_SAM_APDU [12:29:02]CAPDU: 80 13 01 00 [12:29:02]Write to MH i2c: E2 08 00 5B 26 80 13 01 00 00 00 00 00 FE [12:29:02]Write i2c OK [12:29:02]MH_I2C_Read... [12:29:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:29:02]Read from MH i2c: E2 [12:29:02]MH_I2C_Read... [12:29:02]Read from MH i2c: E2 0E 00 [12:29:02]MH_I2C_Read... [12:29:02]Read from MH i2c: E2 0E 00 5B 26 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 11 [12:29:02]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [12:29:02]wFMCommunicate OK [12:29:02]SAM_PROTO_GetShiftState done [12:29:02]FM_GetShiftState done [12:29:02]req_shift_opened done [12:29:02]requested_item shift.open_date is exist - process it [12:29:02]req_shift_open_date [12:29:02]req_shift_open_date done [12:29:02]produce_requested_data done [12:29:02]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104159,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [12:29:02]process_action_free close_receipt [12:29:02]json_value_free [12:29:02]json_value_free done [12:29:02]process_json_proto returns [12:29:02]Send response to host [12:29:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104159,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [12:29:02]free response buf [12:29:02]execute_script done [12:29:02]execute_script returns [12:29:02]free content buf [12:29:02]Sock 9.Close socket [12:29:02]Sock 9.Thread stoped [12:29:06]OFD Sender: No OFD packet to send [12:29:11]OFD Sender: No OFD packet to send [12:29:16]OFD Sender: No OFD packet to send [12:29:21]OFD Sender: No OFD packet to send [12:29:26]OFD Sender: No OFD packet to send [12:29:31]OFD Sender: No OFD packet to send [12:29:36]OFD Sender: No OFD packet to send [12:29:41]OFD Sender: No OFD packet to send [12:29:46]OFD Sender: No OFD packet to send [12:29:51]OFD Sender: No OFD packet to send [12:29:56]OFD Sender: No OFD packet to send [12:30:01]OFD Sender: No OFD packet to send [12:30:06]OFD Sender: No OFD packet to send [12:30:11]OFD Sender: No OFD packet to send [12:30:16]OFD Sender: No OFD packet to send [12:30:21]OFD Sender: No OFD packet to send [12:30:26]OFD Sender: No OFD packet to send [12:30:31]OFD Sender: No OFD packet to send [12:30:36]OFD Sender: No OFD packet to send [12:30:41]OFD Sender: No OFD packet to send [12:30:46]OFD Sender: No OFD packet to send [12:30:51]OFD Sender: No OFD packet to send [12:30:56]OFD Sender: No OFD packet to send [12:31:01]OFD Sender: No OFD packet to send [12:31:06]OFD Sender: No OFD packet to send [12:31:11]OFD Sender: No OFD packet to send [12:31:16]OFD Sender: No OFD packet to send [12:31:21]OFD Sender: No OFD packet to send [12:31:26]OFD Sender: No OFD packet to send [12:31:31]OFD Sender: No OFD packet to send [12:31:36]OFD Sender: No OFD packet to send [12:31:41]OFD Sender: No OFD packet to send [12:31:46]OFD Sender: No OFD packet to send [12:31:51]OFD Sender: No OFD packet to send [12:31:56]OFD Sender: No OFD packet to send [12:32:01]OFD Sender: No OFD packet to send [12:32:06]OFD Sender: No OFD packet to send [12:32:11]OFD Sender: No OFD packet to send [12:32:16]OFD Sender: No OFD packet to send [12:32:21]OFD Sender: No OFD packet to send [12:32:26]OFD Sender: No OFD packet to send [12:32:31]OFD Sender: No OFD packet to send [12:32:36]OFD Sender: No OFD packet to send [12:32:41]OFD Sender: No OFD packet to send [12:32:46]OFD Sender: No OFD packet to send [12:32:51]OFD Sender: No OFD packet to send [12:32:56]OFD Sender: No OFD packet to send [12:33:01]OFD Sender: No OFD packet to send [12:33:06]OFD Sender: No OFD packet to send [12:33:11]OFD Sender: No OFD packet to send [12:33:16]OFD Sender: No OFD packet to send [12:33:21]OFD Sender: No OFD packet to send [12:33:26]OFD Sender: No OFD packet to send [12:33:31]OFD Sender: No OFD packet to send [12:33:36]OFD Sender: No OFD packet to send [12:33:41]OFD Sender: No OFD packet to send [12:33:46]OFD Sender: No OFD packet to send [12:33:51]OFD Sender: No OFD packet to send [12:33:56]OFD Sender: No OFD packet to send [12:34:01]OFD Sender: No OFD packet to send [12:34:06]OFD Sender: No OFD packet to send [12:34:11]OFD Sender: No OFD packet to send [12:34:16]OFD Sender: No OFD packet to send [12:34:21]OFD Sender: No OFD packet to send [12:34:26]OFD Sender: No OFD packet to send [12:34:31]OFD Sender: No OFD packet to send [12:34:36]OFD Sender: No OFD packet to send [12:34:41]OFD Sender: No OFD packet to send [12:34:46]OFD Sender: No OFD packet to send [12:34:51]OFD Sender: No OFD packet to send [12:34:56]OFD Sender: No OFD packet to send [12:35:01]OFD Sender: No OFD packet to send [12:35:06]OFD Sender: No OFD packet to send [12:35:11]OFD Sender: No OFD packet to send [12:35:16]OFD Sender: No OFD packet to send [12:35:21]OFD Sender: No OFD packet to send [12:35:26]OFD Sender: No OFD packet to send [12:35:31]OFD Sender: No OFD packet to send [12:35:36]OFD Sender: No OFD packet to send [12:35:37]accept exits with 7 [12:35:37]New connection [12:35:37]New thread 3066715492 created [12:35:37]Thread 3066858852 joined [12:35:37]Waiting for new connection... [12:35:37] Sock 7.Parse request [12:35:37]Sock 7.Check first char [12:35:37]Sock 7.First char is OK [12:35:37]request: POST /json_proto HTTP/1.0 [12:35:37]Method: POST [12:35:37]URL: /json_proto [12:35:37]Method is POST - this is cgi request [12:35:37]url: /json_proto [12:35:37]query_string will be loaded in cgi processing [12:35:37]execute_cgi json_proto POST (null) [12:35:37]execute_cgi path=json_proto method=POST [12:35:37]POST find Content-Length [12:35:37]Host: 172.17.38.133:8080 [12:35:37]Content-Length: 1157 [12:35:37]Content-Type: application/json [12:35:37] [12:35:37]POST finish read [12:35:37]Found Content-Length = 1157 [12:35: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 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)673589\u000A21.06.2024 12:12\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\u000A30101655\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:35:37]execute_script... [12:35: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 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)673589\u000A21.06.2024 12:12\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\u000A30101655\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:35:37]POST & json_proto [12:35:37]process_json_proto [12:35:37]json parsed OK: [12:35:37]protocol is kg_v1.0 [12:35:37]action value=print_text [12:35:37]process_action print_text [12:35:37]cmd_print_text [12:35:37]ExternCall_PrintAddStr [12:35:37]wPrintStart [12:35:37]Write to MH i2c: 01 00 00 5C 26 82 [12:35:37]Write i2c OK [12:35:37]MH_I2C_Read... [12:35:37]Read from MH i2c: 01 [12:35:37]MH_I2C_Read... [12:35:37]Read from MH i2c: 01 07 00 [12:35:37]MH_I2C_Read... [12:35:37]Read from MH i2c: 01 07 00 5C 26 00 00 00 00 00 FF 0F 97 [12:35:37]RasterBufferAndPrint [12:35:37]line *****ТОВАРНЫЙ ЧЕК***** [12:35:37]line АЗС 120 [12:35:37]line Партнер нефть [12:35:37]line 02508201610067 [12:35:37]line Кассир : Асанбаев Н. [12:35:37]line Счет N : (1)673589 [12:35:37]line 21.06.2024 12:12 [12:35:37]line ПРОДАЖА [12:35:37]line ТРК (МРК, ГНК): 32 [12:35:37]line Вид ГСМ : 2710124130 [12:35:37]line Аи-92-К-5 [12:35:37]line 20.000 x 66.40 [12:35:37]line ИТОГ: 1328.00 [12:35:37]line Тип оплаты: Талоны: ТК ГПНА Online [12:35:37]line 30101655 [12:35:37]line ______________________ [12:35:37]line (подпись) [12:35:37]written 0, free lines is 4095 [12:35:37]Write to MH i2c: 01 00 00 70 26 96 [12:35:37]Write i2c OK [12:35:37]MH_I2C_Read... [12:35:37]Read from MH i2c: 01 [12:35:37]MH_I2C_Read... [12:35:37]Read from MH i2c: 01 07 00 [12:35:37]MH_I2C_Read... [12:35:37]Read from MH i2c: 01 07 00 70 26 00 00 00 00 00 0F 0E BA [12:35:37]RasterBufferAndPrint [12:35:37]line [12:35:37]line [12:35:37]line [12:35:37]line [12:35:37]line [12:35:37]written 0, free lines is 3601 [12:35:37]MH_Cut [12:35:37]Write to MH i2c: D1 01 00 77 26 01 6F [12:35:37]Write i2c OK [12:35:37]MH_I2C_Read... [12:35:37]Read from MH i2c: D1 [12:35:37]MH_I2C_Read... [12:35:37]Read from MH i2c: D1 01 00 [12:35:37]MH_I2C_Read... [12:35:37]Read from MH i2c: D1 01 00 77 26 00 6E [12:35:37]Write to MH i2c: 01 00 00 78 26 9E [12:35:37]Write i2c OK [12:35:37]MH_I2C_Read... [12:35:38]*** Cut start [12:35:38]*** Partial cut [12:35:38]*** CUTSNS_PIN = 1 [12:35:38]*** CUTSNS_PIN = 0 [12:35:38]*** Brake cut motor [12:35:39]Read from MH i2c: 01 [12:35:39]MH_I2C_Read... [12:35:39]Read from MH i2c: 01 07 00 [12:35:39]MH_I2C_Read... [12:35:39]*** Stop cut motor [12:35:39]*** Cut end [12:35:39]Read from MH i2c: 01 07 00 78 26 00 00 00 00 00 FF 0F B3 [12:35:39]process_action print_text done [12:35:39]requested_data is exist [12:35:39]produce_requested_data [12:35:39]requested_item fm.sn is exist - process it [12:35:39]wFMCommunicate request_size=4 [12:35:39]MH_SAM_APDU [12:35:39]CAPDU: 80 11 00 00 [12:35:39]Write to MH i2c: E2 08 00 79 26 80 11 00 00 00 00 00 00 19 [12:35:39]Write i2c OK [12:35:39]MH_I2C_Read... [12:35:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:35:39]Read from MH i2c: E2 [12:35:39]MH_I2C_Read... [12:35:39]Read from MH i2c: E2 17 00 [12:35:39]MH_I2C_Read... [12:35:39]Read from MH i2c: E2 17 00 79 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 6C [12:35: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:35:39]wFMCommunicate OK [12:35:39]requested_item fd.num is exist - process it [12:35:39]SAM_PROTO_GetFieldsCounters [12:35:39]wFMCommunicate request_size=4 [12:35:39]MH_SAM_APDU [12:35:39]CAPDU: 80 13 00 00 [12:35:39]Write to MH i2c: E2 08 00 7A 26 80 13 00 00 00 00 00 00 1C [12:35:39]Write i2c OK [12:35:39]MH_I2C_Read... [12:35:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:35:39]Read from MH i2c: E2 [12:35:39]MH_I2C_Read... [12:35:39]Read from MH i2c: E2 62 00 [12:35:39]MH_I2C_Read... [12:35:39]Read from MH i2c: E2 62 00 7A 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 DF 96 01 00 0E 04 04 00 63 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 13 [12:35: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 DF 96 01 00 0E 04 04 00 63 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 [12:35:39]wFMCommunicate OK [12:35:39]SAM_PROTO_GetFieldsCounters done [12:35:39]requested_item shift.num is exist - process it [12:35:39]requested_item shift.opened is exist - process it [12:35:39]req_shift_opened [12:35:39]FM_GetShiftState [12:35:39]SAM_PROTO_GetShiftState [12:35:39]wFMCommunicate request_size=4 [12:35:39]MH_SAM_APDU [12:35:39]CAPDU: 80 13 01 00 [12:35:39]Write to MH i2c: E2 08 00 7B 26 80 13 01 00 00 00 00 00 1E [12:35:39]Write i2c OK [12:35:39]MH_I2C_Read... [12:35:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:35:39]Read from MH i2c: E2 [12:35:39]MH_I2C_Read... [12:35:39]Read from MH i2c: E2 0E 00 [12:35:39]MH_I2C_Read... [12:35:39]Read from MH i2c: E2 0E 00 7B 26 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 31 [12:35:39]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [12:35:39]wFMCommunicate OK [12:35:39]SAM_PROTO_GetShiftState done [12:35:39]FM_GetShiftState done [12:35:39]req_shift_opened done [12:35:39]requested_item shift.open_date is exist - process it [12:35:39]req_shift_open_date [12:35:39]req_shift_open_date done [12:35:39]produce_requested_data done [12:35:39]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104159,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [12:35:39]process_action_free print_text [12:35:39]json_value_free [12:35:39]json_value_free done [12:35:39]process_json_proto returns [12:35:39]Send response to host [12:35:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104159,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [12:35:39]free response buf [12:35:39]execute_script done [12:35:39]execute_script returns [12:35:39]free content buf [12:35:39]Sock 7.Close socket [12:35:39]Sock 7.Thread stoped [12:35:41]OFD Sender: No OFD packet to send [12:35:46]OFD Sender: No OFD packet to send [12:35:51]OFD Sender: No OFD packet to send [12:35:56]OFD Sender: No OFD packet to send [12:36:01]OFD Sender: No OFD packet to send [12:36:06]OFD Sender: No OFD packet to send [12:36:11]OFD Sender: No OFD packet to send [12:36:16]OFD Sender: No OFD packet to send [12:36:21]OFD Sender: No OFD packet to send [12:36:26]OFD Sender: No OFD packet to send [12:36:31]OFD Sender: No OFD packet to send [12:36:36]OFD Sender: No OFD packet to send [12:36:41]OFD Sender: No OFD packet to send [12:36:46]OFD Sender: No OFD packet to send [12:36:51]OFD Sender: No OFD packet to send [12:36:56]OFD Sender: No OFD packet to send [12:37:01]OFD Sender: No OFD packet to send [12:37:06]OFD Sender: No OFD packet to send [12:37:11]OFD Sender: No OFD packet to send [12:37:16]OFD Sender: No OFD packet to send [12:37:21]OFD Sender: No OFD packet to send [12:37:26]OFD Sender: No OFD packet to send [12:37:31]OFD Sender: No OFD packet to send [12:37:36]OFD Sender: No OFD packet to send [12:37:42]OFD Sender: No OFD packet to send [12:37:47]OFD Sender: No OFD packet to send [12:37:52]OFD Sender: No OFD packet to send [12:37:57]OFD Sender: No OFD packet to send [12:38:02]OFD Sender: No OFD packet to send [12:38:07]OFD Sender: No OFD packet to send [12:38:12]OFD Sender: No OFD packet to send [12:38:17]OFD Sender: No OFD packet to send [12:38:22]OFD Sender: No OFD packet to send [12:38:27]OFD Sender: No OFD packet to send [12:38:32]OFD Sender: No OFD packet to send [12:38:37]OFD Sender: No OFD packet to send [12:38:42]OFD Sender: No OFD packet to send [12:38:47]OFD Sender: No OFD packet to send [12:38:52]OFD Sender: No OFD packet to send [12:38:57]OFD Sender: No OFD packet to send [12:39:02]OFD Sender: No OFD packet to send [12:39:07]OFD Sender: No OFD packet to send [12:39:12]OFD Sender: No OFD packet to send [12:39:17]OFD Sender: No OFD packet to send [12:39:22]OFD Sender: No OFD packet to send [12:39:27]OFD Sender: No OFD packet to send [12:39:32]OFD Sender: No OFD packet to send [12:39:37]OFD Sender: No OFD packet to send [12:39:42]OFD Sender: No OFD packet to send [12:39:47]OFD Sender: No OFD packet to send [12:39:52]OFD Sender: No OFD packet to send [12:39:57]OFD Sender: No OFD packet to send [12:40:02]OFD Sender: No OFD packet to send [12:40:07]OFD Sender: No OFD packet to send [12:40:12]OFD Sender: No OFD packet to send [12:40:17]OFD Sender: No OFD packet to send [12:40:22]OFD Sender: No OFD packet to send [12:40:27]OFD Sender: No OFD packet to send [12:40:32]OFD Sender: No OFD packet to send [12:40:37]OFD Sender: No OFD packet to send [12:40:42]OFD Sender: No OFD packet to send [12:40:47]OFD Sender: No OFD packet to send [12:40:52]OFD Sender: No OFD packet to send [12:40:57]OFD Sender: No OFD packet to send [12:41:02]OFD Sender: No OFD packet to send [12:41:07]OFD Sender: No OFD packet to send [12:41:12]OFD Sender: No OFD packet to send [12:41:17]OFD Sender: No OFD packet to send [12:41:22]OFD Sender: No OFD packet to send [12:41:27]OFD Sender: No OFD packet to send [12:41:32]OFD Sender: No OFD packet to send [12:41:37]OFD Sender: No OFD packet to send [12:41:37]accept exits with 9 [12:41:37]New connection [12:41:37]New thread 3066858852 created [12:41:37]Thread 3066715492 joined [12:41:37]Waiting for new connection... [12:41:37] Sock 9.Parse request [12:41:37]Sock 9.Check first char [12:41:37]Sock 9.First char is OK [12:41:37]request: POST /json_proto HTTP/1.0 [12:41:37]Method: POST [12:41:37]URL: /json_proto [12:41:37]Method is POST - this is cgi request [12:41:37]url: /json_proto [12:41:37]query_string will be loaded in cgi processing [12:41:37]execute_cgi json_proto POST (null) [12:41:37]execute_cgi path=json_proto method=POST [12:41:37]POST find Content-Length [12:41:37]Host: 172.17.38.133:8080 [12:41:37]Content-Length: 1194 [12:41:37]Content-Type: application/json [12:41:37] [12:41:37]POST finish read [12:41:37]Found Content-Length = 1194 [12:41: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 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)673590\u000A21.06.2024 12:18\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.550 x 66.40\u000A\u0418\u0422\u041E\u0413: 700.52\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\u000A03082\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:41:37]execute_script... [12:41: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 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)673590\u000A21.06.2024 12:18\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.550 x 66.40\u000A\u0418\u0422\u041E\u0413: 700.52\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\u000A03082\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:41:37]POST & json_proto [12:41:37]process_json_proto [12:41:37]json parsed OK: [12:41:37]protocol is kg_v1.0 [12:41:37]action value=print_text [12:41:37]process_action print_text [12:41:37]cmd_print_text [12:41:37]ExternCall_PrintAddStr [12:41:37]wPrintStart [12:41:37]Write to MH i2c: 01 00 00 7C 26 A2 [12:41:37]Write i2c OK [12:41:37]MH_I2C_Read... [12:41:37]Read from MH i2c: 01 [12:41:37]MH_I2C_Read... [12:41:37]Read from MH i2c: 01 07 00 [12:41:37]MH_I2C_Read... [12:41:37]Read from MH i2c: 01 07 00 7C 26 00 00 00 00 00 FF 0F B7 [12:41:37]RasterBufferAndPrint [12:41:37]line *****ТОВАРНЫЙ ЧЕК***** [12:41:37]line АЗС 120 [12:41:37]line Партнер нефть [12:41:37]line 02508201610067 [12:41:37]line Кассир : Асанбаев Н. [12:41:37]line Счет N : (1)673590 [12:41:37]line 21.06.2024 12:18 [12:41:37]line ПРОДАЖА [12:41:37]line ТРК (МРК, ГНК): 42 [12:41:37]line Вид ГСМ : 2710124130 [12:41:37]line Аи-92-К-5 [12:41:37]line 10.550 x 66.40 [12:41:37]line ИТОГ: 700.52 [12:41:37]line Тип оплаты: Талоны: Топливная Карта [12:41:37]line 03082 [12:41:37]line ______________________ [12:41:37]line (подпись) [12:41:37]written 0, free lines is 4095 [12:41:37]Write to MH i2c: 01 00 00 90 26 B6 [12:41:37]Write i2c OK [12:41:37]MH_I2C_Read... [12:41:37]Read from MH i2c: 01 [12:41:37]MH_I2C_Read... [12:41:37]Read from MH i2c: 01 07 00 [12:41:37]MH_I2C_Read... [12:41:37]Read from MH i2c: 01 07 00 90 26 00 00 00 00 00 0F 0E DA [12:41:37]RasterBufferAndPrint [12:41:37]line [12:41:37]line [12:41:37]line [12:41:37]line [12:41:37]line [12:41:37]written 0, free lines is 3600 [12:41:37]MH_Cut [12:41:37]Write to MH i2c: D1 01 00 97 26 01 8F [12:41:37]Write i2c OK [12:41:37]MH_I2C_Read... [12:41:37]Read from MH i2c: D1 [12:41:37]MH_I2C_Read... [12:41:37]Read from MH i2c: D1 01 00 [12:41:37]MH_I2C_Read... [12:41:37]Read from MH i2c: D1 01 00 97 26 00 8E [12:41:37]Write to MH i2c: 01 00 00 98 26 BE [12:41:37]Write i2c OK [12:41:37]MH_I2C_Read... [12:41:38]*** Cut start [12:41:38]*** Partial cut [12:41:38]*** CUTSNS_PIN = 1 [12:41:38]*** CUTSNS_PIN = 0 [12:41:38]*** Brake cut motor [12:41:38]Read from MH i2c: 01 [12:41:38]MH_I2C_Read... [12:41:38]*** Stop cut motor [12:41:38]*** Cut end [12:41:38]Read from MH i2c: 01 07 00 [12:41:38]MH_I2C_Read... [12:41:38]Read from MH i2c: 01 07 00 98 26 00 00 00 00 00 FF 0F D3 [12:41:38]process_action print_text done [12:41:38]requested_data is exist [12:41:38]produce_requested_data [12:41:38]requested_item fm.sn is exist - process it [12:41:38]wFMCommunicate request_size=4 [12:41:38]MH_SAM_APDU [12:41:38]CAPDU: 80 11 00 00 [12:41:38]Write to MH i2c: E2 08 00 99 26 80 11 00 00 00 00 00 00 39 [12:41:38]Write i2c OK [12:41:38]MH_I2C_Read... [12:41:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:41:38]Read from MH i2c: E2 [12:41:38]MH_I2C_Read... [12:41:38]Read from MH i2c: E2 17 00 [12:41:38]MH_I2C_Read... [12:41:38]Read from MH i2c: E2 17 00 99 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 8C [12: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 [12:41:38]wFMCommunicate OK [12:41:38]requested_item fd.num is exist - process it [12:41:38]SAM_PROTO_GetFieldsCounters [12:41:38]wFMCommunicate request_size=4 [12:41:38]MH_SAM_APDU [12:41:38]CAPDU: 80 13 00 00 [12:41:38]Write to MH i2c: E2 08 00 9A 26 80 13 00 00 00 00 00 00 3C [12:41:38]Write i2c OK [12:41:38]MH_I2C_Read... [12:41:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:41:38]Read from MH i2c: E2 [12:41:38]MH_I2C_Read... [12:41:38]Read from MH i2c: E2 62 00 [12:41:38]MH_I2C_Read... [12:41:38]Read from MH i2c: E2 62 00 9A 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 DF 96 01 00 0E 04 04 00 63 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 33 [12:41: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 DF 96 01 00 0E 04 04 00 63 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 [12:41:38]wFMCommunicate OK [12:41:38]SAM_PROTO_GetFieldsCounters done [12:41:38]requested_item shift.num is exist - process it [12:41:38]requested_item shift.opened is exist - process it [12:41:38]req_shift_opened [12:41:38]FM_GetShiftState [12:41:38]SAM_PROTO_GetShiftState [12:41:38]wFMCommunicate request_size=4 [12:41:38]MH_SAM_APDU [12:41:38]CAPDU: 80 13 01 00 [12:41:38]Write to MH i2c: E2 08 00 9B 26 80 13 01 00 00 00 00 00 3E [12:41:38]Write i2c OK [12:41:38]MH_I2C_Read... [12:41:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:41:39]Read from MH i2c: E2 [12:41:39]MH_I2C_Read... [12:41:39]Read from MH i2c: E2 0E 00 [12:41:39]MH_I2C_Read... [12:41:39]Read from MH i2c: E2 0E 00 9B 26 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 51 [12:41:39]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [12:41:39]wFMCommunicate OK [12:41:39]SAM_PROTO_GetShiftState done [12:41:39]FM_GetShiftState done [12:41:39]req_shift_opened done [12:41:39]requested_item shift.open_date is exist - process it [12:41:39]req_shift_open_date [12:41:39]req_shift_open_date done [12:41:39]produce_requested_data done [12:41:39]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104159,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [12:41:39]process_action_free print_text [12:41:39]json_value_free [12:41:39]json_value_free done [12:41:39]process_json_proto returns [12:41:39]Send response to host [12:41:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104159,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [12:41:39]free response buf [12:41:39]execute_script done [12:41:39]execute_script returns [12:41:39]free content buf [12:41:39]Sock 9.Close socket [12:41:39]Sock 9.Thread stoped [12:41:42]OFD Sender: No OFD packet to send [12:41:47]OFD Sender: No OFD packet to send [12:41:52]OFD Sender: No OFD packet to send [12:41:57]OFD Sender: No OFD packet to send [12:42:02]OFD Sender: No OFD packet to send [12:42:07]OFD Sender: No OFD packet to send [12:42:12]OFD Sender: No OFD packet to send [12:42:17]OFD Sender: No OFD packet to send [12:42:22]OFD Sender: No OFD packet to send [12:42:27]OFD Sender: No OFD packet to send [12:42:32]OFD Sender: No OFD packet to send [12:42:37]OFD Sender: No OFD packet to send [12:42:42]OFD Sender: No OFD packet to send [12:42:47]OFD Sender: No OFD packet to send [12:42:52]OFD Sender: No OFD packet to send [12:42:57]OFD Sender: No OFD packet to send [12:43:02]OFD Sender: No OFD packet to send [12:43:07]OFD Sender: No OFD packet to send [12:43:12]OFD Sender: No OFD packet to send [12:43:17]OFD Sender: No OFD packet to send [12:43:22]OFD Sender: No OFD packet to send [12:43:27]OFD Sender: No OFD packet to send [12:43:32]OFD Sender: No OFD packet to send [12:43:37]OFD Sender: No OFD packet to send [12:43:42]OFD Sender: No OFD packet to send [12:43:47]OFD Sender: No OFD packet to send [12:43:52]OFD Sender: No OFD packet to send [12:43:57]OFD Sender: No OFD packet to send [12:43:59]accept exits with 7 [12:43:59]New connection [12:43:59]New thread 3066715492 created [12:43:59]Thread 3066858852 joined [12:43:59]Waiting for new connection... [12:43:59] Sock 7.Parse request [12:43:59]Sock 7.Check first char [12:43:59]Sock 7.First char is OK [12:43:59]request: POST /json_proto HTTP/1.0 [12:43:59]Method: POST [12:43:59]URL: /json_proto [12:43:59]Method is POST - this is cgi request [12:43:59]url: /json_proto [12:43:59]query_string will be loaded in cgi processing [12:43:59]execute_cgi json_proto POST (null) [12:43:59]execute_cgi path=json_proto method=POST [12:43:59]POST find Content-Length [12:43:59]Host: 172.17.38.133:8080 [12:43:59]Content-Length: 677 [12:43:59]Content-Type: application/json [12:43:59] [12:43:59]POST finish read [12:43:59]Found Content-Length = 677 [12:43:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673591", "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" : 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" ] } } [12:43:59]execute_script... [12:43: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)673591", "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" : 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" ] } } [12:43:59]POST & json_proto [12:43:59]process_json_proto [12:43:59]json parsed OK: [12:43:59]protocol is kg_v1.0 [12:43:59]action value=close_receipt [12:43:59]process_action close_receipt [12:43:59]cmd_close_receipt [12:43:59]MH_GetDate [12:43:59]Write to MH i2c: F0 00 00 9C 26 B1 [12:43:59]Write i2c OK [12:43:59]MH_I2C_Read... [12:43:59]Read from MH i2c: F0 [12:43:59]MH_I2C_Read... [12:43:59]Read from MH i2c: F0 09 00 [12:43:59]MH_I2C_Read... [12:43:59]Read from MH i2c: F0 09 00 9C 26 00 94 75 75 66 BD 8F 7C 64 CA [12:43:59]GetLastDocTimeStamp 1718972943 [12:43:59]current date 1718973844 [12:43:59]FM_GetShiftState [12:43:59]SAM_PROTO_GetShiftState [12:43:59]wFMCommunicate request_size=4 [12:43:59]MH_SAM_APDU [12:43:59]CAPDU: 80 13 01 00 [12:43:59]Write to MH i2c: E2 08 00 9D 26 80 13 01 00 00 00 00 00 40 [12:43:59]Write i2c OK [12:43:59]MH_I2C_Read... [12:43:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:43:59]Read from MH i2c: E2 [12:43:59]MH_I2C_Read... [12:43:59]Read from MH i2c: E2 0E 00 [12:43:59]MH_I2C_Read... [12:43:59]Read from MH i2c: E2 0E 00 9D 26 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 53 [12:43:59]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [12:43:59]wFMCommunicate OK [12:43:59]SAM_PROTO_GetShiftState done [12:43:59]FM_GetShiftState done [12:43:59]opened in 1718929509 [12:43:59]opened+sec_in_day 1719015909 [12:43:59]quantity*price = 50030 [12:43:59]sum+1 = 50031 [12:43:59]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 СНО: Общий режим Чек 83 21.06.2024 12:44 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104160 ФПД: 20780584328131 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T124404&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104160&fm=20780584328131&tin=02508201610067®Number=0000000000092785&sum=50000 [12:44:00]StoreToDocumentArchive [12:44:00]shift 355 fd 104160 [12:44:00]save to /storage/0355/doc_00104160 [12:44:00]save last doc name /storage/0355/doc_00104160 to /storage/kkm_last_doc_name [12:44:00]save OK [12:44:00]Clear old archive folders... [12:44:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:44:00]tlvbuf is 01141630 [12:44:00]SAM_PROTO_ClearQueue [12:44:00]wFMCommunicate request_size=4 [12:44:00]MH_SAM_APDU [12:44:00]CAPDU: 80 09 00 00 [12:44:00]Write to MH i2c: E2 08 00 AA 26 80 09 00 00 00 00 00 00 42 [12:44:00]Write i2c OK [12:44:00]MH_I2C_Read... [12:44:00]Read from MH i2c: E2 [12:44:00]MH_I2C_Read... [12:44:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:44:00]Read from MH i2c: E2 03 00 [12:44:00]MH_I2C_Read... [12:44:00]Read from MH i2c: E2 03 00 AA 26 00 90 00 44 [12:44:00]RAPDU: 90 00 [12:44:00]wFMCommunicate OK [12:44:00]SAM_PROTO_ClearQueue done [12:44:00]KKMCreateOFDPacket [12:44:00]OFDProtocolAddRootSTLVToBuf [12:44:00]FM_MakeSignedData [12:44:00]FM_MakeSignedData [12:44:00]SAM_PROTO_SignData [12:44:00]wFMCommunicate request_size=4 [12:44:00]MH_SAM_APDU [12:44:00]CAPDU: 80 0D 01 02 [12:44:00]Write to MH i2c: E2 08 00 AB 26 80 0D 01 02 00 00 00 00 4A [12:44:00]Write i2c OK [12:44:00]MH_I2C_Read... [12:44:00]Read from MH i2c: E2 [12:44:00]MH_I2C_Read... [12:44:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:44:00]Read from MH i2c: E2 03 00 [12:44:00]MH_I2C_Read... [12:44:00]Read from MH i2c: E2 03 00 AB 26 00 90 00 45 [12:44:00]RAPDU: 90 00 [12:44:00]wFMCommunicate OK [12:44:00]wFMCommunicate request_size=255 [12:44:00]MH_SAM_APDU [12:44: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 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 53 00 00 00 F4 03 04 00 94 75 75 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 E0 96 01 00 35 04 06 00 12 [12:44:00]Write to MH i2c: E2 02 01 AC 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 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 53 00 00 00 F4 03 04 00 94 75 75 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 E0 96 01 00 35 04 06 00 12 00 00 F0 [12:44:00]Write i2c OK [12:44:00]MH_I2C_Read... [12:44:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:44:01]Read from MH i2c: E2 [12:44:01]MH_I2C_Read... [12:44:01]Read from MH i2c: E2 03 00 [12:44:01]MH_I2C_Read... [12:44:01]Read from MH i2c: E2 03 00 AC 26 00 90 00 46 [12:44:01]RAPDU: 90 00 [12:44:01]wFMCommunicate OK [12:44:01]wFMCommunicate request_size=10 [12:44:01]MH_SAM_APDU [12:44:01]CAPDU: 80 0D 02 02 05 E6 5B 58 DB C3 [12:44:01]Write to MH i2c: E2 0D 00 AD 26 80 0D 02 02 05 00 E6 5B 58 DB C3 00 00 8E [12:44:01]Write i2c OK [12:44:01]MH_I2C_Read... [12:44:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:44:01]Read from MH i2c: E2 [12:44:01]MH_I2C_Read... [12:44:01]Read from MH i2c: E2 03 00 [12:44:01]MH_I2C_Read... [12:44:01]Read from MH i2c: E2 03 00 AD 26 00 90 00 47 [12:44:01]RAPDU: 90 00 [12:44:01]wFMCommunicate OK [12:44:01]wFMCommunicate request_size=4 [12:44:01]MH_SAM_APDU [12:44:01]CAPDU: 80 0D 03 02 [12:44:01]Write to MH i2c: E2 08 00 AE 26 80 0D 03 02 00 00 00 00 4F [12:44:01]Write i2c OK [12:44:01]MH_I2C_Read... [12:44:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:44:01]Read from MH i2c: E2 [12:44:01]MH_I2C_Read... [12:44:01]Read from MH i2c: E2 0B 00 [12:44:01]MH_I2C_Read... [12:44:01]Read from MH i2c: E2 0B 00 AE 26 00 6A 4E C7 29 F2 27 43 D5 90 00 29 [12:44:01]RAPDU: 6A 4E C7 29 F2 27 43 D5 90 00 [12:44:01]wFMCommunicate OK [12:44:01]SAM_PROTO_SignData done [12:44:01]FM_MakeSignedData done [12:44:01]CreateOFDProtocolMessage [12:44:01]wFMCommunicate request_size=4 [12:44:01]MH_SAM_APDU [12:44:01]CAPDU: 80 11 00 00 [12:44:01]Write to MH i2c: E2 08 00 AF 26 80 11 00 00 00 00 00 00 4F [12:44:01]Write i2c OK [12:44:01]MH_I2C_Read... [12:44:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:44:01]Read from MH i2c: E2 [12:44:01]MH_I2C_Read... [12:44:01]Read from MH i2c: E2 17 00 [12:44:01]MH_I2C_Read... [12:44:01]Read from MH i2c: E2 17 00 AF 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 A2 [12:44:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:44:01]wFMCommunicate OK [12:44:01]CreateOFDProtocolMessage done [12:44:01]OFDSenderStorePacket 104160 [12:44:01]StoreOFDPacket docnum=104160 [12:44: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 6A 81 07 01 47 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 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 53 00 00 00 F4 03 04 00 94 75 75 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 E0 96 01 00 35 04 06 00 12 E6 5B 58 DB C3 6A 4E C7 29 F2 27 43 D5 [12:44:01]CheckFolder [12:44:01]dirname=/storage/ofd_packets [12:44:01]CheckFolder done [12:44:01]ProducePacketName [12:44:01]name=ofd_packets/00104160 [12:44:01]NVStorageSaveData ofd_packets/00104160 [12:44:01]File name is /storage/ofd_packets/00104160 [12:44:01]Write 301 bytes [12:44:01]NVStorageSaveData done [12:44:01]OFDSenderStorePacket done [12:44:01]KKMCreateOFDPacket done [12:44:01]NVStorageSaveData kkm_last_timestamp [12:44:01]File name is /storage/kkm_last_timestamp [12:44:01]Write 4 bytes [12:44:01]NVStorageSaveData done [12:44:01]ExternCall_PrintAddStr [12:44:01]wPrintStart [12:44:01]Write to MH i2c: 01 00 00 B0 26 D6 [12:44:01]Write i2c OK [12:44:01]MH_I2C_Read... [12:44:01]Read from MH i2c: 01 [12:44:01]MH_I2C_Read... [12:44:01]Read from MH i2c: 01 07 00 [12:44:01]MH_I2C_Read... [12:44:01]Read from MH i2c: 01 07 00 B0 26 00 00 00 00 00 FF 0F EB [12:44:01]RasterBufferAndPrint [12:44:01]line Счет N : (1)673591 [12:44:01]line ИНН: 02508201610067 [12:44:01]line Контрольно-Кассовый Чек [12:44:01]line ПРОДАЖА [12:44:01]line ТРК (МРК, ГНК) : 41 [12:44:01]line Товар: 2710124500 [12:44:01]line Аи-95-К-5 [12:44:01]line 6.770 * 73.90 [12:44:01]line = 500.30 [12:44:01]line НДС 12% НСП 1% [12:44:01]line > о реализуемом товаре [12:44:01]line ОКРУГЛЕНИЕ: -0.30 [12:44:01]line ИТОГО: 500.00 [12:44:01]line Внесено: 500.00 [12:44:01]line СДАЧА: 0.00 [12:44:01]line НСП 1% : 4.43 [12:44:01]line НДС 12% : 53.13 [12:44:01]line Наличными: 500.00 [12:44:01]line Безнал.: 0.00 [12:44:01]line Место: АЗС № 120 "Партнер Нефть" [12:44:01]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [12:44:01]line СНО: Общий режим [12:44:01]line Чек 83 21.06.2024 12:44 [12:44:01]line Смена: 355 ФФД: 1.0 [12:44:01]line ЗНМ: 0300000164 [12:44:01]line РНМ: 0000000000092785 [12:44:01]line Версия ККМ: 001 [12:44:01]line ФМ: 0000000000875093 [12:44:01]line ФД: 104160 [12:44:01]line ФПД: 20780584328131 [12:44:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T124404&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104160&fm=20780584328131&tin=02508201610067®Number=0000000000092785&sum=50000 [12:44:01]written 0, free lines is 4095 [12:44:01]OFD Sender: Processing packet 104160 [packets to send 17, broken 16] [12:44:01]ProducePacketName [12:44:01]name=ofd_packets/00104160 [12:44:01]OFD Sender: To server: pG, [12:44:01]CommunicateWithHost lk.salyk.kg:30040 [12:44:01]ConnectInit lk.salyk.kg [12:44:01]Connected sock=9 [12:44:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 6A 81 07 01 47 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 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 53 00 00 00 F4 03 04 00 94 75 75 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 E0 96 01 00 35 04 06 00 12 E6 5B 58 DB C3 6A 4E C7 29 F2 27 43 D5 [12:44:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 94 EA 47 00 C0 AF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 E0 96 01 00 F4 03 04 00 16 1C 75 66 B6 04 01 00 00 1A 66 78 AF 91 F5 32 69 [12:44:02]CommunicateWithHost err = 0 [12:44:02]CheckOFDResponse [12:44:02]1017 (14) - 77093643461234 [12:44:02]1041 (16) - 0000000000875093 [12:44:02]1040 (4) - 104160 [12:44:02]1012 (4) - 21.06.2024 06:22 [12:44:02]1206 (1) - 0 [12:44:02]OFD Sender: Remove packet 104160 [12:44:02]ProducePacketName [12:44:02]name=ofd_packets/00104160 [12:44:02]NVStorageDeleteData [12:44:02]Write to MH i2c: 01 00 00 DB 26 01 [12:44:02]Write i2c OK [12:44:02]MH_I2C_Read... [12:44:02]Read from MH i2c: 01 [12:44:02]MH_I2C_Read... [12:44:02]Read from MH i2c: 01 07 00 [12:44:02]MH_I2C_Read... [12:44:02]Read from MH i2c: 01 07 00 DB 26 00 00 00 00 00 DC 0C F0 [12:44:02]RasterBufferAndPrint [12:44:02]line [12:44:02]line [12:44:02]line [12:44:02]line [12:44:02]line [12:44:02]written 0, free lines is 3298 [12:44:02]MH_Cut [12:44:02]Write to MH i2c: D1 01 00 E2 26 01 DA [12:44:02]Write i2c OK [12:44:02]MH_I2C_Read... [12:44:02]Read from MH i2c: D1 [12:44:02]MH_I2C_Read... [12:44:02]Read from MH i2c: D1 01 00 [12:44:02]MH_I2C_Read... [12:44:02]Read from MH i2c: D1 01 00 E2 26 00 D9 [12:44:02]Write to MH i2c: 01 00 00 E3 26 09 [12:44:02]Write i2c OK [12:44:02]MH_I2C_Read... [12:44:02]OFD Sender: No OFD packet to send [12:44:02]*** Cut start [12:44:02]*** Partial cut [12:44:02]*** CUTSNS_PIN = 1 [12:44:02]*** CUTSNS_PIN = 0 [12:44:03]*** Brake cut motor [12:44:03]Read from MH i2c: 01 [12:44:03]MH_I2C_Read... [12:44:03]*** Stop cut motor [12:44:03]*** Cut end [12:44:03]Read from MH i2c: 01 07 00 [12:44:03]MH_I2C_Read... [12:44:03]Read from MH i2c: 01 07 00 E3 26 00 00 00 00 00 FF 0F 1E [12:44:03]process_action close_receipt done [12:44:03]requested_data is exist [12:44:03]produce_requested_data [12:44:03]requested_item fm.sn is exist - process it [12:44:03]wFMCommunicate request_size=4 [12:44:03]MH_SAM_APDU [12:44:03]CAPDU: 80 11 00 00 [12:44:03]Write to MH i2c: E2 08 00 E4 26 80 11 00 00 00 00 00 00 84 [12:44:03]Write i2c OK [12:44:03]MH_I2C_Read... [12:44:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:44:03]Read from MH i2c: E2 [12:44:03]MH_I2C_Read... [12:44:03]Read from MH i2c: E2 17 00 [12:44:03]MH_I2C_Read... [12:44:03]Read from MH i2c: E2 17 00 E4 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 D7 [12:44:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:44:03]wFMCommunicate OK [12:44:03]requested_item fd.num is exist - process it [12:44:03]SAM_PROTO_GetFieldsCounters [12:44:03]wFMCommunicate request_size=4 [12:44:03]MH_SAM_APDU [12:44:03]CAPDU: 80 13 00 00 [12:44:03]Write to MH i2c: E2 08 00 E5 26 80 13 00 00 00 00 00 00 87 [12:44:03]Write i2c OK [12:44:03]MH_I2C_Read... [12:44:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:44:03]Read from MH i2c: E2 [12:44:03]MH_I2C_Read... [12:44:03]Read from MH i2c: E2 62 00 [12:44:03]MH_I2C_Read... [12:44:03]Read from MH i2c: E2 62 00 E5 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 E0 96 01 00 0E 04 04 00 63 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 82 [12:44:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 96 01 00 0E 04 04 00 63 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:44:03]wFMCommunicate OK [12:44:03]SAM_PROTO_GetFieldsCounters done [12:44:03]requested_item shift.num is exist - process it [12:44:03]requested_item shift.opened is exist - process it [12:44:03]req_shift_opened [12:44:03]FM_GetShiftState [12:44:03]SAM_PROTO_GetShiftState [12:44:03]wFMCommunicate request_size=4 [12:44:03]MH_SAM_APDU [12:44:03]CAPDU: 80 13 01 00 [12:44:03]Write to MH i2c: E2 08 00 E6 26 80 13 01 00 00 00 00 00 89 [12:44:03]Write i2c OK [12:44:03]MH_I2C_Read... [12:44:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:44:03]Read from MH i2c: E2 [12:44:03]MH_I2C_Read... [12:44:03]Read from MH i2c: E2 0E 00 [12:44:03]MH_I2C_Read... [12:44:03]Read from MH i2c: E2 0E 00 E6 26 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 9C [12:44:03]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [12:44:03]wFMCommunicate OK [12:44:03]SAM_PROTO_GetShiftState done [12:44:03]FM_GetShiftState done [12:44:03]req_shift_opened done [12:44:03]requested_item shift.open_date is exist - process it [12:44:03]req_shift_open_date [12:44:03]req_shift_open_date done [12:44:03]produce_requested_data done [12:44:03]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104160,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [12:44:03]process_action_free close_receipt [12:44:03]json_value_free [12:44:03]json_value_free done [12:44:03]process_json_proto returns [12:44:03]Send response to host [12:44:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104160,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [12:44:03]free response buf [12:44:03]execute_script done [12:44:03]execute_script returns [12:44:03]free content buf [12:44:03]Sock 7.Close socket [12:44:03]Sock 7.Thread stoped [12:44:07]OFD Sender: No OFD packet to send [12:44:12]OFD Sender: No OFD packet to send [12:44:17]OFD Sender: No OFD packet to send [12:44:22]OFD Sender: No OFD packet to send [12:44:27]OFD Sender: No OFD packet to send [12:44:32]OFD Sender: No OFD packet to send [12:44:37]OFD Sender: No OFD packet to send [12:44:42]OFD Sender: No OFD packet to send [12:44:47]OFD Sender: No OFD packet to send [12:44:52]OFD Sender: No OFD packet to send [12:44:57]OFD Sender: No OFD packet to send [12:45:02]OFD Sender: No OFD packet to send [12:45:07]OFD Sender: No OFD packet to send [12:45:12]OFD Sender: No OFD packet to send [12:45:17]OFD Sender: No OFD packet to send [12:45:22]OFD Sender: No OFD packet to send [12:45:27]accept exits with 10 [12:45:27]New connection [12:45:27]New thread 3066858852 created [12:45:27]Thread 3066715492 joined [12:45:27]Waiting for new connection... [12:45:27] Sock 10.Parse request [12:45:27]Sock 10.Check first char [12:45:27]Sock 10.First char is OK [12:45:27]request: POST /json_proto HTTP/1.0 [12:45:27]Method: POST [12:45:27]URL: /json_proto [12:45:27]Method is POST - this is cgi request [12:45:27]url: /json_proto [12:45:27]query_string will be loaded in cgi processing [12:45:27]execute_cgi json_proto POST (null) [12:45:27]execute_cgi path=json_proto method=POST [12:45:27]POST find Content-Length [12:45:27]Host: 172.17.38.133:8080 [12:45:27]Content-Length: 819 [12:45:27]Content-Type: application/json [12:45:27] [12:45:27]POST finish read [12:45:27]Found Content-Length = 819 [12:45:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673592", "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" ] } } [12:45:27]execute_script... [12:45: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)673592", "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" ] } } [12:45:27]POST & json_proto [12:45:27]process_json_proto [12:45:27]json parsed OK: [12:45:27]protocol is kg_v1.0 [12:45:27]action value=close_receipt [12:45:27]process_action close_receipt [12:45:27]cmd_close_receipt [12:45:27]MH_GetDate [12:45:27]Write to MH i2c: F0 00 00 E7 26 FC [12:45:27]Write i2c OK [12:45:27]MH_I2C_Read... [12:45:27]Read from MH i2c: F0 [12:45:27]MH_I2C_Read... [12:45:27]Read from MH i2c: F0 09 00 [12:45:27]MH_I2C_Read... [12:45:27]Read from MH i2c: F0 09 00 E7 26 00 EC 75 75 66 BD 8F 7C 64 6D [12:45:27]GetLastDocTimeStamp 1718973844 [12:45:27]current date 1718973932 [12:45:27]FM_GetShiftState [12:45:27]SAM_PROTO_GetShiftState [12:45:27]wFMCommunicate request_size=4 [12:45:27]MH_SAM_APDU [12:45:27]CAPDU: 80 13 01 00 [12:45:27]Write to MH i2c: E2 08 00 E8 26 80 13 01 00 00 00 00 00 8B [12:45:27]Write i2c OK [12:45:27]MH_I2C_Read... [12:45:27]OFD Sender: No OFD packet to send [12:45:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:45:27]Read from MH i2c: E2 [12:45:27]MH_I2C_Read... [12:45:27]Read from MH i2c: E2 0E 00 [12:45:27]MH_I2C_Read... [12:45:27]Read from MH i2c: E2 0E 00 E8 26 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 9E [12:45:27]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [12:45:27]wFMCommunicate OK [12:45:27]SAM_PROTO_GetShiftState done [12:45:27]FM_GetShiftState done [12:45:27]opened in 1718929509 [12:45:27]opened+sec_in_day 1719015909 [12:45:27]quantity*price = 100064 [12:45:27]sum+1 = 100066 [12:45:27]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 СНО: Общий режим Чек 84 21.06.2024 12:45 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875093 ФД: 104161 ФПД: 51941165799306 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T124532&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104161&fm=51941165799306&tin=02508201610067®Number=0000000000092785&sum=100065 [12:45:28]StoreToDocumentArchive [12:45:28]shift 355 fd 104161 [12:45:28]save to /storage/0355/doc_00104161 [12:45:28]save last doc name /storage/0355/doc_00104161 to /storage/kkm_last_doc_name [12:45:28]save OK [12:45:28]Clear old archive folders... [12:45:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:45:28]tlvbuf is 010FDE50 [12:45:28]SAM_PROTO_ClearQueue [12:45:28]wFMCommunicate request_size=4 [12:45:28]MH_SAM_APDU [12:45:28]CAPDU: 80 09 00 00 [12:45:28]Write to MH i2c: E2 08 00 F5 26 80 09 00 00 00 00 00 00 8D [12:45:28]Write i2c OK [12:45:28]MH_I2C_Read... [12:45:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:45:28]Read from MH i2c: E2 [12:45:28]MH_I2C_Read... [12:45:28]Read from MH i2c: E2 03 00 [12:45:28]MH_I2C_Read... [12:45:28]Read from MH i2c: E2 03 00 F5 26 00 90 00 8F [12:45:28]RAPDU: 90 00 [12:45:28]wFMCommunicate OK [12:45:28]SAM_PROTO_ClearQueue done [12:45:28]KKMCreateOFDPacket [12:45:28]OFDProtocolAddRootSTLVToBuf [12:45:28]FM_MakeSignedData [12:45:28]FM_MakeSignedData [12:45:28]SAM_PROTO_SignData [12:45:28]wFMCommunicate request_size=4 [12:45:28]MH_SAM_APDU [12:45:28]CAPDU: 80 0D 01 02 [12:45:28]Write to MH i2c: E2 08 00 F6 26 80 0D 01 02 00 00 00 00 95 [12:45:28]Write i2c OK [12:45:28]MH_I2C_Read... [12:45:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:45:28]Read from MH i2c: E2 [12:45:28]MH_I2C_Read... [12:45:28]Read from MH i2c: E2 03 00 [12:45:28]MH_I2C_Read... [12:45:28]Read from MH i2c: E2 03 00 F6 26 00 90 00 90 [12:45:28]RAPDU: 90 00 [12:45:28]wFMCommunicate OK [12:45:28]wFMCommunicate request_size=255 [12:45:28]MH_SAM_APDU [12:45: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 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 54 00 00 00 F4 03 04 00 EC 75 75 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 E1 96 01 00 35 04 06 00 2F [12:45:28]Write to MH i2c: E2 02 01 F7 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 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 54 00 00 00 F4 03 04 00 EC 75 75 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 E1 96 01 00 35 04 06 00 2F 00 00 BC [12:45:28]Write i2c OK [12:45:28]MH_I2C_Read... [12:45:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:45:29]Read from MH i2c: E2 [12:45:29]MH_I2C_Read... [12:45:29]Read from MH i2c: E2 03 00 [12:45:29]MH_I2C_Read... [12:45:29]Read from MH i2c: E2 03 00 F7 26 00 90 00 91 [12:45:29]RAPDU: 90 00 [12:45:29]wFMCommunicate OK [12:45:29]wFMCommunicate request_size=10 [12:45:29]MH_SAM_APDU [12:45:29]CAPDU: 80 0D 02 02 05 3D 7E BC 97 8A [12:45:29]Write to MH i2c: E2 0D 00 F8 26 80 0D 02 02 05 00 3D 7E BC 97 8A 00 00 3A [12:45:29]Write i2c OK [12:45:29]MH_I2C_Read... [12:45:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:45:29]Read from MH i2c: E2 [12:45:29]MH_I2C_Read... [12:45:29]Read from MH i2c: E2 03 00 [12:45:29]MH_I2C_Read... [12:45:29]Read from MH i2c: E2 03 00 F8 26 00 90 00 92 [12:45:29]RAPDU: 90 00 [12:45:29]wFMCommunicate OK [12:45:29]wFMCommunicate request_size=4 [12:45:29]MH_SAM_APDU [12:45:29]CAPDU: 80 0D 03 02 [12:45:29]Write to MH i2c: E2 08 00 F9 26 80 0D 03 02 00 00 00 00 9A [12:45:29]Write i2c OK [12:45:29]MH_I2C_Read... [12:45:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:45:29]Read from MH i2c: E2 [12:45:29]MH_I2C_Read... [12:45:29]Read from MH i2c: E2 0B 00 [12:45:29]MH_I2C_Read... [12:45:29]Read from MH i2c: E2 0B 00 F9 26 00 CB 1F 09 34 53 0C 4D 54 90 00 C2 [12:45:29]RAPDU: CB 1F 09 34 53 0C 4D 54 90 00 [12:45:29]wFMCommunicate OK [12:45:29]SAM_PROTO_SignData done [12:45:29]FM_MakeSignedData done [12:45:29]CreateOFDProtocolMessage [12:45:29]wFMCommunicate request_size=4 [12:45:29]MH_SAM_APDU [12:45:29]CAPDU: 80 11 00 00 [12:45:29]Write to MH i2c: E2 08 00 FA 26 80 11 00 00 00 00 00 00 9A [12:45:29]Write i2c OK [12:45:29]MH_I2C_Read... [12:45:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:45:29]Read from MH i2c: E2 [12:45:29]MH_I2C_Read... [12:45:29]Read from MH i2c: E2 17 00 [12:45:29]MH_I2C_Read... [12:45:29]Read from MH i2c: E2 17 00 FA 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 ED [12:45: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:45:29]wFMCommunicate OK [12:45:29]CreateOFDProtocolMessage done [12:45:29]OFDSenderStorePacket 104161 [12:45:29]StoreOFDPacket docnum=104161 [12:45: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 0B 8C 07 01 00 A4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 54 00 00 00 F4 03 04 00 EC 75 75 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 E1 96 01 00 35 04 06 00 2F 3D 7E BC 97 8A CB 1F 09 34 53 0C 4D 54 [12:45:29]CheckFolder [12:45:29]dirname=/storage/ofd_packets [12:45:29]CheckFolder done [12:45:29]ProducePacketName [12:45:29]name=ofd_packets/00104161 [12:45:29]NVStorageSaveData ofd_packets/00104161 [12:45:29]File name is /storage/ofd_packets/00104161 [12:45:29]Write 301 bytes [12:45:29]NVStorageSaveData done [12:45:29]OFDSenderStorePacket done [12:45:29]KKMCreateOFDPacket done [12:45:29]NVStorageSaveData kkm_last_timestamp [12:45:29]File name is /storage/kkm_last_timestamp [12:45:29]Write 4 bytes [12:45:29]NVStorageSaveData done [12:45:29]ExternCall_PrintAddStr [12:45:29]wPrintStart [12:45:29]Write to MH i2c: 01 00 00 FB 26 21 [12:45:29]Write i2c OK [12:45:29]MH_I2C_Read... [12:45:29]Read from MH i2c: 01 [12:45:29]MH_I2C_Read... [12:45:29]Read from MH i2c: 01 07 00 [12:45:29]MH_I2C_Read... [12:45:29]Read from MH i2c: 01 07 00 FB 26 00 00 00 00 00 FF 0F 36 [12:45:29]RasterBufferAndPrint [12:45:29]line Счет N : (1)673592 [12:45:29]line ИНН: 02508201610067 [12:45:29]line Контрольно-Кассовый Чек [12:45:29]line ПРОДАЖА [12:45:29]line ТРК (МРК, ГНК) : 32 [12:45:29]line Товар: 2710124130 [12:45:29]line Аи-92-К-5 [12:45:29]line 15.070 * 66.40 [12:45:29]line = 1000.65 [12:45:29]line НДС 12% НСП 1% [12:45:29]line > о реализуемом товаре [12:45:29]line ИТОГО: 1000.65 [12:45:29]line НСП 1% : 8.85 [12:45:29]line НДС 12% : 106.26 [12:45:29]line Наличными: 0.00 [12:45:29]line Безнал.: 1000.65 [12:45:29]line Место: АЗС № 120 "Партнер Нефть" [12:45:29]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [12:45:29]line СНО: Общий режим [12:45:29]line Чек 84 21.06.2024 12:45 [12:45:29]line Смена: 355 ФФД: 1.0 [12:45:29]line ЗНМ: 0300000164 [12:45:29]line РНМ: 0000000000092785 [12:45:29]line Версия ККМ: 001 [12:45:29]line Платежная система: Бакай Банк [12:45:29]line ФМ: 0000000000875093 [12:45:29]line ФД: 104161 [12:45:29]line ФПД: 51941165799306 [12:45:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T124532&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104161&fm=51941165799306&tin=02508201610067®Number=0000000000092785&sum=100065 [12:45:29]OFD Sender: Processing packet 104161 [packets to send 17, broken 16] [12:45:29]ProducePacketName [12:45:29]name=ofd_packets/00104161 [12:45:29]OFD Sender: To server: pG, [12:45:29]CommunicateWithHost lk.salyk.kg:30040 [12:45:29]ConnectInit lk.salyk.kg [12:45:29]written 0, free lines is 4095 [12:45:29]Connected sock=9 [12:45: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 0B 8C 07 01 00 A4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 54 00 00 00 F4 03 04 00 EC 75 75 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 E1 96 01 00 35 04 06 00 2F 3D 7E BC 97 8A CB 1F 09 34 53 0C 4D 54 [12:45: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 1E 93 47 00 CB A1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 E1 96 01 00 F4 03 04 00 6E 1C 75 66 B6 04 01 00 00 13 5B 38 55 EF 73 A2 96 [12:45:30]CommunicateWithHost err = 0 [12:45:30]CheckOFDResponse [12:45:30]1017 (14) - 77093643461234 [12:45:30]1041 (16) - 0000000000875093 [12:45:30]1040 (4) - 104161 [12:45:30]1012 (4) - 21.06.2024 06:23 [12:45:30]1206 (1) - 0 [12:45:30]OFD Sender: Remove packet 104161 [12:45:30]ProducePacketName [12:45:30]name=ofd_packets/00104161 [12:45:30]NVStorageDeleteData [12:45:30]Write to MH i2c: 01 00 00 25 27 4C [12:45:30]Write i2c OK [12:45:30]MH_I2C_Read... [12:45:30]Read from MH i2c: 01 [12:45:30]MH_I2C_Read... [12:45:30]Read from MH i2c: 01 07 00 [12:45:30]MH_I2C_Read... [12:45:30]Read from MH i2c: 01 07 00 25 27 00 00 00 00 00 EE 0C 4D [12:45:30]RasterBufferAndPrint [12:45:30]line [12:45:30]line [12:45:30]line [12:45:30]line [12:45:30]line [12:45:30]written 0, free lines is 3317 [12:45:30]MH_Cut [12:45:30]Write to MH i2c: D1 01 00 2C 27 01 25 [12:45:30]Write i2c OK [12:45:30]MH_I2C_Read... [12:45:30]Read from MH i2c: D1 [12:45:30]MH_I2C_Read... [12:45:30]Read from MH i2c: D1 01 00 [12:45:30]MH_I2C_Read... [12:45:30]Read from MH i2c: D1 01 00 2C 27 00 24 [12:45:30]Write to MH i2c: 01 00 00 2D 27 54 [12:45:30]Write i2c OK [12:45:30]MH_I2C_Read... [12:45:30]OFD Sender: No OFD packet to send [12:45:30]*** Cut start [12:45:30]*** Partial cut [12:45:30]*** CUTSNS_PIN = 1 [12:45:30]*** CUTSNS_PIN = 0 [12:45:31]*** Brake cut motor [12:45:31]Read from MH i2c: 01 [12:45:31]MH_I2C_Read... [12:45:31]*** Stop cut motor [12:45:31]*** Cut end [12:45:31]Read from MH i2c: 01 07 00 [12:45:31]MH_I2C_Read... [12:45:31]Read from MH i2c: 01 07 00 2D 27 00 00 00 00 00 FF 0F 69 [12:45:31]process_action close_receipt done [12:45:31]requested_data is exist [12:45:31]produce_requested_data [12:45:31]requested_item fm.sn is exist - process it [12:45:31]wFMCommunicate request_size=4 [12:45:31]MH_SAM_APDU [12:45:31]CAPDU: 80 11 00 00 [12:45:31]Write to MH i2c: E2 08 00 2E 27 80 11 00 00 00 00 00 00 CF [12:45:31]Write i2c OK [12:45:31]MH_I2C_Read... [12:45:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:45:31]Read from MH i2c: E2 [12:45:31]MH_I2C_Read... [12:45:31]Read from MH i2c: E2 17 00 [12:45:31]MH_I2C_Read... [12:45:31]Read from MH i2c: E2 17 00 2E 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 22 [12: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 [12:45:31]wFMCommunicate OK [12:45:31]requested_item fd.num is exist - process it [12:45:31]SAM_PROTO_GetFieldsCounters [12:45:31]wFMCommunicate request_size=4 [12:45:31]MH_SAM_APDU [12:45:31]CAPDU: 80 13 00 00 [12:45:31]Write to MH i2c: E2 08 00 2F 27 80 13 00 00 00 00 00 00 D2 [12:45:31]Write i2c OK [12:45:31]MH_I2C_Read... [12:45:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:45:31]Read from MH i2c: E2 [12:45:31]MH_I2C_Read... [12:45:31]Read from MH i2c: E2 62 00 [12:45:31]MH_I2C_Read... [12:45:31]Read from MH i2c: E2 62 00 2F 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 E1 96 01 00 0E 04 04 00 63 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 D1 [12:45: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 96 01 00 0E 04 04 00 63 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:45:31]wFMCommunicate OK [12:45:31]SAM_PROTO_GetFieldsCounters done [12:45:31]requested_item shift.num is exist - process it [12:45:31]requested_item shift.opened is exist - process it [12:45:31]req_shift_opened [12:45:31]FM_GetShiftState [12:45:31]SAM_PROTO_GetShiftState [12:45:31]wFMCommunicate request_size=4 [12:45:31]MH_SAM_APDU [12:45:31]CAPDU: 80 13 01 00 [12:45:31]Write to MH i2c: E2 08 00 30 27 80 13 01 00 00 00 00 00 D4 [12:45:31]Write i2c OK [12:45:31]MH_I2C_Read... [12:45:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:45:31]Read from MH i2c: E2 [12:45:31]MH_I2C_Read... [12:45:31]Read from MH i2c: E2 0E 00 [12:45:31]MH_I2C_Read... [12:45:31]Read from MH i2c: E2 0E 00 30 27 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 E7 [12:45:31]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [12:45:31]wFMCommunicate OK [12:45:31]SAM_PROTO_GetShiftState done [12:45:31]FM_GetShiftState done [12:45:31]req_shift_opened done [12:45:31]requested_item shift.open_date is exist - process it [12:45:31]req_shift_open_date [12:45:31]req_shift_open_date done [12:45:31]produce_requested_data done [12:45:31]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104161,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [12:45:31]process_action_free close_receipt [12:45:31]json_value_free [12:45:31]json_value_free done [12:45:31]process_json_proto returns [12:45:31]Send response to host [12:45:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104161,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [12:45:31]free response buf [12:45:31]execute_script done [12:45:31]execute_script returns [12:45:31]free content buf [12:45:31]Sock 10.Close socket [12:45:31]Sock 10.Thread stoped [12:45:35]OFD Sender: No OFD packet to send [12:45:40]OFD Sender: No OFD packet to send [12:45:45]OFD Sender: No OFD packet to send [12:45:50]OFD Sender: No OFD packet to send [12:45:55]OFD Sender: No OFD packet to send [12:46:00]OFD Sender: No OFD packet to send [12:46:05]OFD Sender: No OFD packet to send [12:46:10]OFD Sender: No OFD packet to send [12:46:15]OFD Sender: No OFD packet to send [12:46:20]OFD Sender: No OFD packet to send [12:46:25]OFD Sender: No OFD packet to send [12:46:30]OFD Sender: No OFD packet to send [12:46:35]OFD Sender: No OFD packet to send [12:46:40]OFD Sender: No OFD packet to send [12:46:45]OFD Sender: No OFD packet to send [12:46:50]OFD Sender: No OFD packet to send [12:46:55]OFD Sender: No OFD packet to send [12:47:00]OFD Sender: No OFD packet to send [12:47:05]OFD Sender: No OFD packet to send [12:47:07]accept exits with 7 [12:47:07]New connection [12:47:07]New thread 3066715492 created [12:47:07]Thread 3066858852 joined [12:47:07]Waiting for new connection... [12:47:07] Sock 7.Parse request [12:47:07]Sock 7.Check first char [12:47:07]Sock 7.First char is OK [12:47:07]request: POST /json_proto HTTP/1.0 [12:47:07]Method: POST [12:47:07]URL: /json_proto [12:47:07]Method is POST - this is cgi request [12:47:07]url: /json_proto [12:47:07]query_string will be loaded in cgi processing [12:47:07]execute_cgi json_proto POST (null) [12:47:07]execute_cgi path=json_proto method=POST [12:47:07]POST find Content-Length [12:47:07]Host: 172.17.38.133:8080 [12:47:07]Content-Length: 682 [12:47:07]Content-Type: application/json [12:47:07] [12:47:07]POST finish read [12:47:07]Found Content-Length = 682 [12:47:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673593", "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" : 44.510, "sum" : 2955.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2955.00, "total" : 2955.00, "payments": [ { "type": 0, "sum" : 2955.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:47:07]execute_script... [12:47: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)673593", "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" : 44.510, "sum" : 2955.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2955.00, "total" : 2955.00, "payments": [ { "type": 0, "sum" : 2955.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:47:07]POST & json_proto [12:47:07]process_json_proto [12:47:07]json parsed OK: [12:47:07]protocol is kg_v1.0 [12:47:07]action value=close_receipt [12:47:07]process_action close_receipt [12:47:07]cmd_close_receipt [12:47:07]MH_GetDate [12:47:07]Write to MH i2c: F0 00 00 31 27 47 [12:47:07]Write i2c OK [12:47:07]MH_I2C_Read... [12:47:07]Read from MH i2c: F0 [12:47:07]MH_I2C_Read... [12:47:07]Read from MH i2c: F0 09 00 [12:47:07]MH_I2C_Read... [12:47:07]Read from MH i2c: F0 09 00 31 27 00 4F 76 75 66 BD 8F 7C 64 1C [12:47:07]GetLastDocTimeStamp 1718973932 [12:47:07]current date 1718974031 [12:47:07]FM_GetShiftState [12:47:07]SAM_PROTO_GetShiftState [12:47:07]wFMCommunicate request_size=4 [12:47:07]MH_SAM_APDU [12:47:07]CAPDU: 80 13 01 00 [12:47:07]Write to MH i2c: E2 08 00 32 27 80 13 01 00 00 00 00 00 D6 [12:47:07]Write i2c OK [12:47:07]MH_I2C_Read... [12:47:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:47:07]Read from MH i2c: E2 [12:47:07]MH_I2C_Read... [12:47:07]Read from MH i2c: E2 0E 00 [12:47:07]MH_I2C_Read... [12:47:07]Read from MH i2c: E2 0E 00 32 27 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 E9 [12:47:07]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [12:47:07]wFMCommunicate OK [12:47:07]SAM_PROTO_GetShiftState done [12:47:07]FM_GetShiftState done [12:47:07]opened in 1718929509 [12:47:07]opened+sec_in_day 1719015909 [12:47:07]quantity*price = 295546 [12:47:07]sum+1 = 295547 [12:47:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 2955.00 Внесено: 2955.00 СДАЧА: 0.00 НСП 1% : 26.15 НДС 12% : 313.85 Наличными: 2955.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 85 21.06.2024 12:47 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104162 ФПД: 72842354032729 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T124711&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104162&fm=72842354032729&tin=02508201610067®Number=0000000000092785&sum=295500 [12:47:08]StoreToDocumentArchive [12:47:08]shift 355 fd 104162 [12:47:08]save to /storage/0355/doc_00104162 [12:47:08]save last doc name /storage/0355/doc_00104162 to /storage/kkm_last_doc_name [12:47:08]save OK [12:47:08]Clear old archive folders... [12:47:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:47:08]tlvbuf is 01174C20 [12:47:08]SAM_PROTO_ClearQueue [12:47:08]wFMCommunicate request_size=4 [12:47:08]MH_SAM_APDU [12:47:08]CAPDU: 80 09 00 00 [12:47:08]Write to MH i2c: E2 08 00 3F 27 80 09 00 00 00 00 00 00 D8 [12:47:08]Write i2c OK [12:47:08]MH_I2C_Read... [12:47:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:47:08]Read from MH i2c: E2 [12:47:08]MH_I2C_Read... [12:47:08]Read from MH i2c: E2 03 00 [12:47:08]MH_I2C_Read... [12:47:08]Read from MH i2c: E2 03 00 3F 27 00 90 00 DA [12:47:08]RAPDU: 90 00 [12:47:08]wFMCommunicate OK [12:47:08]SAM_PROTO_ClearQueue done [12:47:08]KKMCreateOFDPacket [12:47:08]OFDProtocolAddRootSTLVToBuf [12:47:08]FM_MakeSignedData [12:47:08]FM_MakeSignedData [12:47:08]SAM_PROTO_SignData [12:47:08]wFMCommunicate request_size=4 [12:47:08]MH_SAM_APDU [12:47:08]CAPDU: 80 0D 01 02 [12:47:08]Write to MH i2c: E2 08 00 40 27 80 0D 01 02 00 00 00 00 E0 [12:47:08]Write i2c OK [12:47:08]MH_I2C_Read... [12:47:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:47:08]Read from MH i2c: E2 [12:47:08]MH_I2C_Read... [12:47:08]Read from MH i2c: E2 03 00 [12:47:08]MH_I2C_Read... [12:47:08]Read from MH i2c: E2 03 00 40 27 00 90 00 DB [12:47:08]RAPDU: 90 00 [12:47:08]wFMCommunicate OK [12:47:08]wFMCommunicate request_size=255 [12:47:08]MH_SAM_APDU [12:47: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 DE AD 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A 82 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 82 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 37 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 7A 00 00 00 00 07 04 06 00 4C 82 04 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 4F 76 75 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 E2 96 01 00 35 04 06 00 42 [12:47:08]Write to MH i2c: E2 02 01 41 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 DE AD 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A 82 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 82 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 37 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 7A 00 00 00 00 07 04 06 00 4C 82 04 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 4F 76 75 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 E2 96 01 00 35 04 06 00 42 00 00 90 [12:47:08]Write i2c OK [12:47:08]MH_I2C_Read... [12:47:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:47:08]Read from MH i2c: E2 [12:47:08]MH_I2C_Read... [12:47:08]Read from MH i2c: E2 03 00 [12:47:08]MH_I2C_Read... [12:47:08]Read from MH i2c: E2 03 00 41 27 00 90 00 DC [12:47:08]RAPDU: 90 00 [12:47:08]wFMCommunicate OK [12:47:08]wFMCommunicate request_size=10 [12:47:08]MH_SAM_APDU [12:47:08]CAPDU: 80 0D 02 02 05 3F EE A3 00 59 [12:47:08]Write to MH i2c: E2 0D 00 42 27 80 0D 02 02 05 00 3F EE A3 00 59 00 00 16 [12:47:08]Write i2c OK [12:47:08]MH_I2C_Read... [12:47:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:47:08]Read from MH i2c: E2 [12:47:08]MH_I2C_Read... [12:47:08]Read from MH i2c: E2 03 00 [12:47:08]MH_I2C_Read... [12:47:08]Read from MH i2c: E2 03 00 42 27 00 90 00 DD [12:47:08]RAPDU: 90 00 [12:47:08]wFMCommunicate OK [12:47:08]wFMCommunicate request_size=4 [12:47:08]MH_SAM_APDU [12:47:08]CAPDU: 80 0D 03 02 [12:47:08]Write to MH i2c: E2 08 00 43 27 80 0D 03 02 00 00 00 00 E5 [12:47:08]Write i2c OK [12:47:08]MH_I2C_Read... [12:47:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:47:09]Read from MH i2c: E2 [12:47:09]MH_I2C_Read... [12:47:09]Read from MH i2c: E2 0B 00 [12:47:09]MH_I2C_Read... [12:47:09]Read from MH i2c: E2 0B 00 43 27 00 28 AA B7 9F 4F 9D E8 EF 90 00 D1 [12:47:09]RAPDU: 28 AA B7 9F 4F 9D E8 EF 90 00 [12:47:09]wFMCommunicate OK [12:47:09]SAM_PROTO_SignData done [12:47:09]FM_MakeSignedData done [12:47:09]CreateOFDProtocolMessage [12:47:09]wFMCommunicate request_size=4 [12:47:09]MH_SAM_APDU [12:47:09]CAPDU: 80 11 00 00 [12:47:09]Write to MH i2c: E2 08 00 44 27 80 11 00 00 00 00 00 00 E5 [12:47:09]Write i2c OK [12:47:09]MH_I2C_Read... [12:47:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:47:09]Read from MH i2c: E2 [12:47:09]MH_I2C_Read... [12:47:09]Read from MH i2c: E2 17 00 [12:47:09]MH_I2C_Read... [12:47:09]Read from MH i2c: E2 17 00 44 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 38 [12:47:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:47:09]wFMCommunicate OK [12:47:09]CreateOFDProtocolMessage done [12:47:09]OFDSenderStorePacket 104162 [12:47:09]StoreOFDPacket docnum=104162 [12:47: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 5B 13 07 01 2A 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 DE AD 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A 82 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 82 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 37 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 7A 00 00 00 00 07 04 06 00 4C 82 04 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 4F 76 75 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 E2 96 01 00 35 04 06 00 42 3F EE A3 00 59 28 AA B7 9F 4F 9D E8 EF [12:47:09]CheckFolder [12:47:09]dirname=/storage/ofd_packets [12:47:09]CheckFolder done [12:47:09]ProducePacketName [12:47:09]name=ofd_packets/00104162 [12:47:09]NVStorageSaveData ofd_packets/00104162 [12:47:09]File name is /storage/ofd_packets/00104162 [12:47:09]Write 301 bytes [12:47:09]NVStorageSaveData done [12:47:09]OFDSenderStorePacket done [12:47:09]KKMCreateOFDPacket done [12:47:09]NVStorageSaveData kkm_last_timestamp [12:47:09]File name is /storage/kkm_last_timestamp [12:47:09]Write 4 bytes [12:47:09]NVStorageSaveData done [12:47:09]ExternCall_PrintAddStr [12:47:09]wPrintStart [12:47:09]Write to MH i2c: 01 00 00 45 27 6C [12:47:09]Write i2c OK [12:47:09]MH_I2C_Read... [12:47:09]Read from MH i2c: 01 [12:47:09]MH_I2C_Read... [12:47:09]Read from MH i2c: 01 07 00 [12:47:09]MH_I2C_Read... [12:47:09]Read from MH i2c: 01 07 00 45 27 00 00 00 00 00 FF 0F 81 [12:47:09]RasterBufferAndPrint [12:47:09]line Счет N : (1)673593 [12:47:09]line ИНН: 02508201610067 [12:47:09]line Контрольно-Кассовый Чек [12:47:09]line ПРОДАЖА [12:47:09]line ТРК (МРК, ГНК) : 42 [12:47:09]line Товар: 2710124130 [12:47:09]line Аи-92-К-5 [12:47:09]line 44.510 * 66.40 [12:47:09]line = 2955.46 [12:47:09]line НДС 12% НСП 1% [12:47:09]line > о реализуемом товаре [12:47:09]line ОКРУГЛЕНИЕ: -0.46 [12:47:09]line ИТОГО: 2955.00 [12:47:09]line Внесено: 2955.00 [12:47:09]line СДАЧА: 0.00 [12:47:09]line НСП 1% : 26.15 [12:47:09]line НДС 12% : 313.85 [12:47:09]line Наличными: 2955.00 [12:47:09]line Безнал.: 0.00 [12:47:09]line Место: АЗС № 120 "Партнер Нефть" [12:47:09]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [12:47:09]line СНО: Общий режим [12:47:09]line Чек 85 21.06.2024 12:47 [12:47:09]line Смена: 355 ФФД: 1.0 [12:47:09]line ЗНМ: 0300000164 [12:47:09]line РНМ: 0000000000092785 [12:47:09]line Версия ККМ: 001 [12:47:09]line ФМ: 0000000000875093 [12:47:09]line ФД: 104162 [12:47:09]line ФПД: 72842354032729 [12:47:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T124711&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104162&fm=72842354032729&tin=02508201610067®Number=0000000000092785&sum=295500 [12:47:09]OFD Sender: Processing packet 104162 [packets to send 17, broken 16] [12:47:09]ProducePacketName [12:47:09]name=ofd_packets/00104162 [12:47:09]OFD Sender: To server: pG, [12:47:09]CommunicateWithHost lk.salyk.kg:30040 [12:47:09]ConnectInit lk.salyk.kg [12:47:09]written 0, free lines is 4095 [12:47:09]Connected sock=10 [12:47: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 5B 13 07 01 2A 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 DE AD 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A 82 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 82 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 37 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 7A 00 00 00 00 07 04 06 00 4C 82 04 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 4F 76 75 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 E2 96 01 00 35 04 06 00 42 3F EE A3 00 59 28 AA B7 9F 4F 9D E8 EF [12:47: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 10 45 47 00 A7 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 E2 96 01 00 F4 03 04 00 D2 1C 75 66 B6 04 01 00 00 79 AF CD 8F BD 0D 00 54 [12:47:09]CommunicateWithHost err = 0 [12:47:09]CheckOFDResponse [12:47:09]1017 (14) - 77093643461234 [12:47:09]1041 (16) - 0000000000875093 [12:47:09]1040 (4) - 104162 [12:47:09]1012 (4) - 21.06.2024 06:25 [12:47:09]1206 (1) - 0 [12:47:09]OFD Sender: Remove packet 104162 [12:47:09]ProducePacketName [12:47:09]name=ofd_packets/00104162 [12:47:09]NVStorageDeleteData [12:47:09]Write to MH i2c: 01 00 00 70 27 97 [12:47:09]Write i2c OK [12:47:09]MH_I2C_Read... [12:47:09]Read from MH i2c: 01 [12:47:09]MH_I2C_Read... [12:47:09]Read from MH i2c: 01 07 00 [12:47:09]MH_I2C_Read... [12:47:09]Read from MH i2c: 01 07 00 70 27 00 00 00 00 00 E4 0C 8E [12:47:09]RasterBufferAndPrint [12:47:09]line [12:47:09]line [12:47:09]line [12:47:09]line [12:47:09]line [12:47:09]written 0, free lines is 3306 [12:47:09]MH_Cut [12:47:09]Write to MH i2c: D1 01 00 77 27 01 70 [12:47:09]Write i2c OK [12:47:09]MH_I2C_Read... [12:47:09]Read from MH i2c: D1 [12:47:09]MH_I2C_Read... [12:47:09]Read from MH i2c: D1 01 00 [12:47:09]MH_I2C_Read... [12:47:09]Read from MH i2c: D1 01 00 77 27 00 6F [12:47:09]Write to MH i2c: 01 00 00 78 27 9F [12:47:09]Write i2c OK [12:47:09]MH_I2C_Read... [12:47:10]OFD Sender: No OFD packet to send [12:47:10]*** Cut start [12:47:10]*** Partial cut [12:47:10]*** CUTSNS_PIN = 1 [12:47:10]*** CUTSNS_PIN = 0 [12:47:10]*** Brake cut motor [12:47:11]Read from MH i2c: 01 [12:47:11]MH_I2C_Read... [12:47:11]*** Stop cut motor [12:47:11]*** Cut end [12:47:11]Read from MH i2c: 01 07 00 [12:47:11]MH_I2C_Read... [12:47:11]Read from MH i2c: 01 07 00 78 27 00 00 00 00 00 FF 0F B4 [12:47:11]process_action close_receipt done [12:47:11]requested_data is exist [12:47:11]produce_requested_data [12:47:11]requested_item fm.sn is exist - process it [12:47:11]wFMCommunicate request_size=4 [12:47:11]MH_SAM_APDU [12:47:11]CAPDU: 80 11 00 00 [12:47:11]Write to MH i2c: E2 08 00 79 27 80 11 00 00 00 00 00 00 1A [12:47:11]Write i2c OK [12:47:11]MH_I2C_Read... [12:47:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:47:11]Read from MH i2c: E2 [12:47:11]MH_I2C_Read... [12:47:11]Read from MH i2c: E2 17 00 [12:47:11]MH_I2C_Read... [12:47:11]Read from MH i2c: E2 17 00 79 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 6D [12:47:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:47:11]wFMCommunicate OK [12:47:11]requested_item fd.num is exist - process it [12:47:11]SAM_PROTO_GetFieldsCounters [12:47:11]wFMCommunicate request_size=4 [12:47:11]MH_SAM_APDU [12:47:11]CAPDU: 80 13 00 00 [12:47:11]Write to MH i2c: E2 08 00 7A 27 80 13 00 00 00 00 00 00 1D [12:47:11]Write i2c OK [12:47:11]MH_I2C_Read... [12:47:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:47:11]Read from MH i2c: E2 [12:47:11]MH_I2C_Read... [12:47:11]Read from MH i2c: E2 62 00 [12:47:11]MH_I2C_Read... [12:47:11]Read from MH i2c: E2 62 00 7A 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 E2 96 01 00 0E 04 04 00 63 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 20 [12:47: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 E2 96 01 00 0E 04 04 00 63 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:47:11]wFMCommunicate OK [12:47:11]SAM_PROTO_GetFieldsCounters done [12:47:11]requested_item shift.num is exist - process it [12:47:11]requested_item shift.opened is exist - process it [12:47:11]req_shift_opened [12:47:11]FM_GetShiftState [12:47:11]SAM_PROTO_GetShiftState [12:47:11]wFMCommunicate request_size=4 [12:47:11]MH_SAM_APDU [12:47:11]CAPDU: 80 13 01 00 [12:47:11]Write to MH i2c: E2 08 00 7B 27 80 13 01 00 00 00 00 00 1F [12:47:11]Write i2c OK [12:47:11]MH_I2C_Read... [12:47:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:47:11]Read from MH i2c: E2 [12:47:11]MH_I2C_Read... [12:47:11]Read from MH i2c: E2 0E 00 [12:47:11]MH_I2C_Read... [12:47:11]Read from MH i2c: E2 0E 00 7B 27 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 32 [12:47:11]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [12:47:11]wFMCommunicate OK [12:47:11]SAM_PROTO_GetShiftState done [12:47:11]FM_GetShiftState done [12:47:11]req_shift_opened done [12:47:11]requested_item shift.open_date is exist - process it [12:47:11]req_shift_open_date [12:47:11]req_shift_open_date done [12:47:11]produce_requested_data done [12:47:11]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104162,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [12:47:11]process_action_free close_receipt [12:47:11]json_value_free [12:47:11]json_value_free done [12:47:11]process_json_proto returns [12:47:11]Send response to host [12:47:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104162,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [12:47:11]free response buf [12:47:11]execute_script done [12:47:11]execute_script returns [12:47:11]free content buf [12:47:11]Sock 7.Close socket [12:47:11]Sock 7.Thread stoped [12:47:15]OFD Sender: No OFD packet to send [12:47:20]OFD Sender: No OFD packet to send [12:47:25]OFD Sender: No OFD packet to send [12:47:30]OFD Sender: No OFD packet to send [12:47:35]OFD Sender: No OFD packet to send [12:47:40]OFD Sender: No OFD packet to send [12:47:45]OFD Sender: No OFD packet to send [12:47:50]OFD Sender: No OFD packet to send [12:47:55]OFD Sender: No OFD packet to send [12:48:00]OFD Sender: No OFD packet to send [12:48:05]OFD Sender: No OFD packet to send [12:48:10]OFD Sender: No OFD packet to send [12:48:15]OFD Sender: No OFD packet to send [12:48:20]OFD Sender: No OFD packet to send [12:48:25]OFD Sender: No OFD packet to send [12:48:30]OFD Sender: No OFD packet to send [12:48:35]OFD Sender: No OFD packet to send [12:48:40]OFD Sender: No OFD packet to send [12:48:45]OFD Sender: No OFD packet to send [12:48:50]OFD Sender: No OFD packet to send [12:48:55]OFD Sender: No OFD packet to send [12:49:00]OFD Sender: No OFD packet to send [12:49:05]OFD Sender: No OFD packet to send [12:49:10]OFD Sender: No OFD packet to send [12:49:15]OFD Sender: No OFD packet to send [12:49:20]OFD Sender: No OFD packet to send [12:49:25]OFD Sender: No OFD packet to send [12:49:30]OFD Sender: No OFD packet to send [12:49:35]OFD Sender: No OFD packet to send [12:49:40]OFD Sender: No OFD packet to send [12:49:45]OFD Sender: No OFD packet to send [12:49:50]OFD Sender: No OFD packet to send [12:49:55]OFD Sender: No OFD packet to send [12:50:00]OFD Sender: No OFD packet to send [12:50:05]OFD Sender: No OFD packet to send [12:50:06]accept exits with 9 [12:50:06]New connection [12:50:06]New thread 3066858852 created [12:50:06]Thread 3066715492 joined [12:50:06]Waiting for new connection... [12:50:06] Sock 9.Parse request [12:50:06]Sock 9.Check first char [12:50:06]Sock 9.First char is OK [12:50:06]request: POST /json_proto HTTP/1.0 [12:50:06]Method: POST [12:50:06]URL: /json_proto [12:50:06]Method is POST - this is cgi request [12:50:06]url: /json_proto [12:50:06]query_string will be loaded in cgi processing [12:50:06]execute_cgi json_proto POST (null) [12:50:06]execute_cgi path=json_proto method=POST [12:50:06]POST find Content-Length [12:50:06]Host: 172.17.38.133:8080 [12:50:06]Content-Length: 816 [12:50:06]Content-Type: application/json [12:50:06] [12:50:06]POST finish read [12:50:06]Found Content-Length = 816 [12:50:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673594", "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 }]} ], "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" ] } } [12:50:06]execute_script... [12:50: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)673594", "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 }]} ], "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" ] } } [12:50:06]POST & json_proto [12:50:06]process_json_proto [12:50:06]json parsed OK: [12:50:06]protocol is kg_v1.0 [12:50:06]action value=close_receipt [12:50:06]process_action close_receipt [12:50:06]cmd_close_receipt [12:50:06]MH_GetDate [12:50:06]Write to MH i2c: F0 00 00 7C 27 92 [12:50:06]Write i2c OK [12:50:06]MH_I2C_Read... [12:50:06]Read from MH i2c: F0 [12:50:06]MH_I2C_Read... [12:50:06]Read from MH i2c: F0 09 00 [12:50:06]MH_I2C_Read... [12:50:06]Read from MH i2c: F0 09 00 7C 27 00 03 77 75 66 BD 8F 7C 64 1C [12:50:06]GetLastDocTimeStamp 1718974031 [12:50:06]current date 1718974211 [12:50:06]FM_GetShiftState [12:50:06]SAM_PROTO_GetShiftState [12:50:06]wFMCommunicate request_size=4 [12:50:06]MH_SAM_APDU [12:50:06]CAPDU: 80 13 01 00 [12:50:06]Write to MH i2c: E2 08 00 7D 27 80 13 01 00 00 00 00 00 21 [12:50:06]Write i2c OK [12:50:06]MH_I2C_Read... [12:50:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:50:06]Read from MH i2c: E2 [12:50:06]MH_I2C_Read... [12:50:06]Read from MH i2c: E2 0E 00 [12:50:06]MH_I2C_Read... [12:50:06]Read from MH i2c: E2 0E 00 7D 27 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 34 [12:50:06]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [12:50:06]wFMCommunicate OK [12:50:06]SAM_PROTO_GetShiftState done [12:50:06]FM_GetShiftState done [12:50:06]opened in 1718929509 [12:50:06]opened+sec_in_day 1719015909 [12:50:06]quantity*price = 50065 [12:50:06]sum+1 = 50067 [12:50:06]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 СНО: Общий режим Чек 86 21.06.2024 12:50 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875093 ФД: 104163 ФПД: 213257779665865 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T125011&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104163&fm=213257779665865&tin=02508201610067®Number=0000000000092785&sum=50066 [12:50:07]StoreToDocumentArchive [12:50:07]shift 355 fd 104163 [12:50:07]save to /storage/0355/doc_00104163 [12:50:07]save last doc name /storage/0355/doc_00104163 to /storage/kkm_last_doc_name [12:50:07]save OK [12:50:07]Clear old archive folders... [12:50:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:50:07]tlvbuf is 0119FAB0 [12:50:07]SAM_PROTO_ClearQueue [12:50:07]wFMCommunicate request_size=4 [12:50:07]MH_SAM_APDU [12:50:07]CAPDU: 80 09 00 00 [12:50:07]Write to MH i2c: E2 08 00 8A 27 80 09 00 00 00 00 00 00 23 [12:50:07]Write i2c OK [12:50:07]MH_I2C_Read... [12:50:07]Read from MH i2c: E2 [12:50:07]MH_I2C_Read... [12:50:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:50:07]Read from MH i2c: E2 03 00 [12:50:07]MH_I2C_Read... [12:50:07]Read from MH i2c: E2 03 00 8A 27 00 90 00 25 [12:50:07]RAPDU: 90 00 [12:50:07]wFMCommunicate OK [12:50:07]SAM_PROTO_ClearQueue done [12:50:07]KKMCreateOFDPacket [12:50:07]OFDProtocolAddRootSTLVToBuf [12:50:07]FM_MakeSignedData [12:50:07]FM_MakeSignedData [12:50:07]SAM_PROTO_SignData [12:50:07]wFMCommunicate request_size=4 [12:50:07]MH_SAM_APDU [12:50:07]CAPDU: 80 0D 01 02 [12:50:07]Write to MH i2c: E2 08 00 8B 27 80 0D 01 02 00 00 00 00 2B [12:50:07]Write i2c OK [12:50:07]MH_I2C_Read... [12:50:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:50:07]Read from MH i2c: E2 [12:50:07]MH_I2C_Read... [12:50:07]Read from MH i2c: E2 03 00 [12:50:07]MH_I2C_Read... [12:50:07]Read from MH i2c: E2 03 00 8B 27 00 90 00 26 [12:50:07]RAPDU: 90 00 [12:50:07]wFMCommunicate OK [12:50:07]wFMCommunicate request_size=255 [12:50:07]MH_SAM_APDU [12:50: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 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 56 00 00 00 F4 03 04 00 03 77 75 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 E3 96 01 00 35 04 06 00 C1 [12:50:07]Write to MH i2c: E2 02 01 8C 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 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 56 00 00 00 F4 03 04 00 03 77 75 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 E3 96 01 00 35 04 06 00 C1 00 00 B3 [12:50:07]Write i2c OK [12:50:07]MH_I2C_Read... [12:50:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:50:08]Read from MH i2c: E2 [12:50:08]MH_I2C_Read... [12:50:08]Read from MH i2c: E2 03 00 [12:50:08]MH_I2C_Read... [12:50:08]Read from MH i2c: E2 03 00 8C 27 00 90 00 27 [12:50:08]RAPDU: 90 00 [12:50:08]wFMCommunicate OK [12:50:08]wFMCommunicate request_size=10 [12:50:08]MH_SAM_APDU [12:50:08]CAPDU: 80 0D 02 02 05 F4 F2 33 DB C9 [12:50:08]Write to MH i2c: E2 0D 00 8D 27 80 0D 02 02 05 00 F4 F2 33 DB C9 00 00 F5 [12:50:08]Write i2c OK [12:50:08]MH_I2C_Read... [12:50:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:50:08]Read from MH i2c: E2 [12:50:08]MH_I2C_Read... [12:50:08]Read from MH i2c: E2 03 00 [12:50:08]MH_I2C_Read... [12:50:08]Read from MH i2c: E2 03 00 8D 27 00 90 00 28 [12:50:08]RAPDU: 90 00 [12:50:08]wFMCommunicate OK [12:50:08]wFMCommunicate request_size=4 [12:50:08]MH_SAM_APDU [12:50:08]CAPDU: 80 0D 03 02 [12:50:08]Write to MH i2c: E2 08 00 8E 27 80 0D 03 02 00 00 00 00 30 [12:50:08]Write i2c OK [12:50:08]MH_I2C_Read... [12:50:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:50:08]Read from MH i2c: E2 [12:50:08]MH_I2C_Read... [12:50:08]Read from MH i2c: E2 0B 00 [12:50:08]MH_I2C_Read... [12:50:08]Read from MH i2c: E2 0B 00 8E 27 00 9E 3C 72 B2 85 AE 2A 05 90 00 91 [12:50:08]RAPDU: 9E 3C 72 B2 85 AE 2A 05 90 00 [12:50:08]wFMCommunicate OK [12:50:08]SAM_PROTO_SignData done [12:50:08]FM_MakeSignedData done [12:50:08]CreateOFDProtocolMessage [12:50:08]wFMCommunicate request_size=4 [12:50:08]MH_SAM_APDU [12:50:08]CAPDU: 80 11 00 00 [12:50:08]Write to MH i2c: E2 08 00 8F 27 80 11 00 00 00 00 00 00 30 [12:50:08]Write i2c OK [12:50:08]MH_I2C_Read... [12:50:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:50:08]Read from MH i2c: E2 [12:50:08]MH_I2C_Read... [12:50:08]Read from MH i2c: E2 17 00 [12:50:08]MH_I2C_Read... [12:50:08]Read from MH i2c: E2 17 00 8F 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 83 [12:50: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:50:08]wFMCommunicate OK [12:50:08]CreateOFDProtocolMessage done [12:50:08]OFDSenderStorePacket 104163 [12:50:08]StoreOFDPacket docnum=104163 [12:50: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 14 B4 07 01 B3 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 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 56 00 00 00 F4 03 04 00 03 77 75 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 E3 96 01 00 35 04 06 00 C1 F4 F2 33 DB C9 9E 3C 72 B2 85 AE 2A 05 [12:50:08]CheckFolder [12:50:08]dirname=/storage/ofd_packets [12:50:08]CheckFolder done [12:50:08]ProducePacketName [12:50:08]name=ofd_packets/00104163 [12:50:08]NVStorageSaveData ofd_packets/00104163 [12:50:08]File name is /storage/ofd_packets/00104163 [12:50:08]Write 301 bytes [12:50:08]NVStorageSaveData done [12:50:08]OFDSenderStorePacket done [12:50:08]KKMCreateOFDPacket done [12:50:08]NVStorageSaveData kkm_last_timestamp [12:50:08]File name is /storage/kkm_last_timestamp [12:50:08]Write 4 bytes [12:50:08]NVStorageSaveData done [12:50:08]ExternCall_PrintAddStr [12:50:08]wPrintStart [12:50:08]Write to MH i2c: 01 00 00 90 27 B7 [12:50:08]Write i2c OK [12:50:08]MH_I2C_Read... [12:50:08]Read from MH i2c: 01 [12:50:08]MH_I2C_Read... [12:50:08]Read from MH i2c: 01 07 00 [12:50:08]MH_I2C_Read... [12:50:08]Read from MH i2c: 01 07 00 90 27 00 00 00 00 00 FF 0F CC [12:50:08]RasterBufferAndPrint [12:50:08]line Счет N : (1)673594 [12:50:08]line ИНН: 02508201610067 [12:50:08]line Контрольно-Кассовый Чек [12:50:08]line ПРОДАЖА [12:50:08]line ТРК (МРК, ГНК) : 42 [12:50:08]line Товар: 2710124130 [12:50:08]line Аи-92-К-5 [12:50:08]line 7.540 * 66.40 [12:50:08]line = 500.66 [12:50:08]line НДС 12% НСП 1% [12:50:08]line > о реализуемом товаре [12:50:08]line ИТОГО: 500.66 [12:50:08]line НСП 1% : 4.43 [12:50:08]line НДС 12% : 53.17 [12:50:08]line Наличными: 0.00 [12:50:08]line Безнал.: 500.66 [12:50:08]line Место: АЗС № 120 "Партнер Нефть" [12:50:08]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [12:50:08]line СНО: Общий режим [12:50:08]line Чек 86 21.06.2024 12:50 [12:50:08]line Смена: 355 ФФД: 1.0 [12:50:08]line ЗНМ: 0300000164 [12:50:08]line РНМ: 0000000000092785 [12:50:08]line Версия ККМ: 001 [12:50:08]line Платежная система: Бакай Банк [12:50:08]line ФМ: 0000000000875093 [12:50:08]line ФД: 104163 [12:50:08]line ФПД: 213257779665865 [12:50:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T125011&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104163&fm=213257779665865&tin=02508201610067®Number=0000000000092785&sum=50066 [12:50:08]OFD Sender: Processing packet 104163 [packets to send 17, broken 16] [12:50:08]ProducePacketName [12:50:08]name=ofd_packets/00104163 [12:50:08]OFD Sender: To server: pG, [12:50:08]CommunicateWithHost lk.salyk.kg:30040 [12:50:08]ConnectInit lk.salyk.kg [12:50:08]written 0, free lines is 4095 [12:50:08]Connected sock=10 [12:50: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 14 B4 07 01 B3 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 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 56 00 00 00 F4 03 04 00 03 77 75 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 E3 96 01 00 35 04 06 00 C1 F4 F2 33 DB C9 9E 3C 72 B2 85 AE 2A 05 [12:50:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 4D 2E 47 00 88 1A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 E3 96 01 00 F4 03 04 00 85 1D 75 66 B6 04 01 00 00 E8 E2 1C B2 BA 57 C4 BC [12:50:08]CommunicateWithHost err = 0 [12:50:08]CheckOFDResponse [12:50:08]1017 (14) - 77093643461234 [12:50:08]1041 (16) - 0000000000875093 [12:50:08]1040 (4) - 104163 [12:50:08]1012 (4) - 21.06.2024 06:28 [12:50:08]1206 (1) - 0 [12:50:08]OFD Sender: Remove packet 104163 [12:50:08]ProducePacketName [12:50:08]name=ofd_packets/00104163 [12:50:08]NVStorageDeleteData [12:50:08]Write to MH i2c: 01 00 00 BA 27 E1 [12:50:08]Write i2c OK [12:50:08]MH_I2C_Read... [12:50:08]Read from MH i2c: 01 [12:50:08]MH_I2C_Read... [12:50:08]Read from MH i2c: 01 07 00 [12:50:08]MH_I2C_Read... [12:50:08]Read from MH i2c: 01 07 00 BA 27 00 00 00 00 00 F5 0C E9 [12:50:08]RasterBufferAndPrint [12:50:08]line [12:50:08]line [12:50:08]line [12:50:08]line [12:50:08]line [12:50:08]written 0, free lines is 3324 [12:50:08]MH_Cut [12:50:08]Write to MH i2c: D1 01 00 C1 27 01 BA [12:50:08]Write i2c OK [12:50:08]MH_I2C_Read... [12:50:08]Read from MH i2c: D1 [12:50:08]MH_I2C_Read... [12:50:08]Read from MH i2c: D1 01 00 [12:50:08]MH_I2C_Read... [12:50:08]Read from MH i2c: D1 01 00 C1 27 00 B9 [12:50:08]Write to MH i2c: 01 00 00 C2 27 E9 [12:50:08]Write i2c OK [12:50:08]MH_I2C_Read... [12:50:09]OFD Sender: No OFD packet to send [12:50:09]*** Cut start [12:50:09]*** Partial cut [12:50:09]*** CUTSNS_PIN = 1 [12:50:09]*** CUTSNS_PIN = 0 [12:50:09]*** Brake cut motor [12:50:10]Read from MH i2c: 01 [12:50:10]MH_I2C_Read... [12:50:10]*** Stop cut motor [12:50:10]*** Cut end [12:50:10]Read from MH i2c: 01 07 00 [12:50:10]MH_I2C_Read... [12:50:10]Read from MH i2c: 01 07 00 C2 27 00 00 00 00 00 FF 0F FE [12:50:10]process_action close_receipt done [12:50:10]requested_data is exist [12:50:10]produce_requested_data [12:50:10]requested_item fm.sn is exist - process it [12:50:10]wFMCommunicate request_size=4 [12:50:10]MH_SAM_APDU [12:50:10]CAPDU: 80 11 00 00 [12:50:10]Write to MH i2c: E2 08 00 C3 27 80 11 00 00 00 00 00 00 64 [12:50:10]Write i2c OK [12:50:10]MH_I2C_Read... [12:50:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:50:10]Read from MH i2c: E2 [12:50:10]MH_I2C_Read... [12:50:10]Read from MH i2c: E2 17 00 [12:50:10]MH_I2C_Read... [12:50:10]Read from MH i2c: E2 17 00 C3 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 B7 [12:50:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:50:10]wFMCommunicate OK [12:50:10]requested_item fd.num is exist - process it [12:50:10]SAM_PROTO_GetFieldsCounters [12:50:10]wFMCommunicate request_size=4 [12:50:10]MH_SAM_APDU [12:50:10]CAPDU: 80 13 00 00 [12:50:10]Write to MH i2c: E2 08 00 C4 27 80 13 00 00 00 00 00 00 67 [12:50:10]Write i2c OK [12:50:10]MH_I2C_Read... [12:50:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:50:10]Read from MH i2c: E2 [12:50:10]MH_I2C_Read... [12:50:10]Read from MH i2c: E2 62 00 [12:50:10]MH_I2C_Read... [12:50:10]Read from MH i2c: E2 62 00 C4 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 E3 96 01 00 0E 04 04 00 63 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 6E [12:50: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 E3 96 01 00 0E 04 04 00 63 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:50:10]wFMCommunicate OK [12:50:10]SAM_PROTO_GetFieldsCounters done [12:50:10]requested_item shift.num is exist - process it [12:50:10]requested_item shift.opened is exist - process it [12:50:10]req_shift_opened [12:50:10]FM_GetShiftState [12:50:10]SAM_PROTO_GetShiftState [12:50:10]wFMCommunicate request_size=4 [12:50:10]MH_SAM_APDU [12:50:10]CAPDU: 80 13 01 00 [12:50:10]Write to MH i2c: E2 08 00 C5 27 80 13 01 00 00 00 00 00 69 [12:50:10]Write i2c OK [12:50:10]MH_I2C_Read... [12:50:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:50:10]Read from MH i2c: E2 [12:50:10]MH_I2C_Read... [12:50:10]Read from MH i2c: E2 0E 00 [12:50:10]MH_I2C_Read... [12:50:10]Read from MH i2c: E2 0E 00 C5 27 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 7C [12:50:10]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [12:50:10]wFMCommunicate OK [12:50:10]SAM_PROTO_GetShiftState done [12:50:10]FM_GetShiftState done [12:50:10]req_shift_opened done [12:50:10]requested_item shift.open_date is exist - process it [12:50:10]req_shift_open_date [12:50:10]req_shift_open_date done [12:50:10]produce_requested_data done [12:50:10]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104163,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [12:50:10]process_action_free close_receipt [12:50:10]json_value_free [12:50:10]json_value_free done [12:50:10]process_json_proto returns [12:50:10]Send response to host [12:50:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104163,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [12:50:10]free response buf [12:50:10]execute_script done [12:50:10]execute_script returns [12:50:10]free content buf [12:50:10]Sock 9.Close socket [12:50:10]Sock 9.Thread stoped [12:50:14]OFD Sender: No OFD packet to send [12:50:19]OFD Sender: No OFD packet to send [12:50:24]OFD Sender: No OFD packet to send [12:50:29]OFD Sender: No OFD packet to send [12:50:34]OFD Sender: No OFD packet to send [12:50:39]OFD Sender: No OFD packet to send [12:50:44]OFD Sender: No OFD packet to send [12:50:49]OFD Sender: No OFD packet to send [12:50:54]OFD Sender: No OFD packet to send [12:50:59]OFD Sender: No OFD packet to send [12:51:04]OFD Sender: No OFD packet to send [12:51:09]OFD Sender: No OFD packet to send [12:51:14]OFD Sender: No OFD packet to send [12:51:19]OFD Sender: No OFD packet to send [12:51:24]OFD Sender: No OFD packet to send [12:51:29]OFD Sender: No OFD packet to send [12:51:34]OFD Sender: No OFD packet to send [12:51:39]OFD Sender: No OFD packet to send [12:51:44]OFD Sender: No OFD packet to send [12:51:49]OFD Sender: No OFD packet to send [12:51:54]OFD Sender: No OFD packet to send [12:51:59]OFD Sender: No OFD packet to send [12:52:04]OFD Sender: No OFD packet to send [12:52:09]OFD Sender: No OFD packet to send [12:52: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: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:59]OFD Sender: No OFD packet to send [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:39]OFD Sender: No OFD packet to send [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:30]accept exits with 7 [12:56:30]New connection [12:56:30]New thread 3066715492 created [12:56:30]Thread 3066858852 joined [12:56:30]Waiting for new connection... [12:56:30] Sock 7.Parse request [12:56:30]Sock 7.Check first char [12:56:30]Sock 7.First char is OK [12:56:30]request: POST /json_proto HTTP/1.0 [12:56:30]Method: POST [12:56:30]URL: /json_proto [12:56:30]Method is POST - this is cgi request [12:56:30]url: /json_proto [12:56:30]query_string will be loaded in cgi processing [12:56:30]execute_cgi json_proto POST (null) [12:56:30]execute_cgi path=json_proto method=POST [12:56:30]POST find Content-Length [12:56:30]Host: 172.17.38.133:8080 [12:56:30]Content-Length: 824 [12:56:30]Content-Type: application/json [12:56:30] [12:56:30]POST finish read [12:56:30]Found Content-Length = 824 [12:56:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673595", "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" : 16.470, "sum" : 1200.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" : 1200.66 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:56:30]execute_script... [12:56: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)673595", "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" : 16.470, "sum" : 1200.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" : 1200.66 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:56:30]POST & json_proto [12:56:30]process_json_proto [12:56:30]json parsed OK: [12:56:30]protocol is kg_v1.0 [12:56:30]action value=close_receipt [12:56:30]process_action close_receipt [12:56:30]cmd_close_receipt [12:56:30]MH_GetDate [12:56:30]Write to MH i2c: F0 00 00 C6 27 DC [12:56:30]Write i2c OK [12:56:30]MH_I2C_Read... [12:56:30]Read from MH i2c: F0 [12:56:30]MH_I2C_Read... [12:56:30]Read from MH i2c: F0 09 00 [12:56:30]MH_I2C_Read... [12:56:30]Read from MH i2c: F0 09 00 C6 27 00 82 78 75 66 BD 8F 7C 64 E6 [12:56:30]GetLastDocTimeStamp 1718974211 [12:56:30]current date 1718974594 [12:56:30]FM_GetShiftState [12:56:30]SAM_PROTO_GetShiftState [12:56:30]wFMCommunicate request_size=4 [12:56:30]MH_SAM_APDU [12:56:30]CAPDU: 80 13 01 00 [12:56:30]Write to MH i2c: E2 08 00 C7 27 80 13 01 00 00 00 00 00 6B [12:56:30]Write i2c OK [12:56:30]MH_I2C_Read... [12:56:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:56:30]Read from MH i2c: E2 [12:56:30]MH_I2C_Read... [12:56:30]Read from MH i2c: E2 0E 00 [12:56:30]MH_I2C_Read... [12:56:30]Read from MH i2c: E2 0E 00 C7 27 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 7E [12:56:30]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [12:56:30]wFMCommunicate OK [12:56:30]SAM_PROTO_GetShiftState done [12:56:30]FM_GetShiftState done [12:56:30]opened in 1718929509 [12:56:30]opened+sec_in_day 1719015909 [12:56:30]quantity*price = 120066 [12:56:30]sum+1 = 120067 [12:56:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1200.66 НСП 1% : 10.62 НДС 12% : 127.50 Наличными: 0.00 Безнал.: 1200.66 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 87 21.06.2024 12:56 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875093 ФД: 104164 ФПД: 229491337015639 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T125634&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104164&fm=229491337015639&tin=02508201610067®Number=0000000000092785&sum=120066 [12:56:31]StoreToDocumentArchive [12:56:31]shift 355 fd 104164 [12:56:31]save to /storage/0355/doc_00104164 [12:56:31]save last doc name /storage/0355/doc_00104164 to /storage/kkm_last_doc_name [12:56:31]save OK [12:56:31]Clear old archive folders... [12:56:31]ProcessDocumentItem done err = 0, tmpTLVsize=252 [12:56:31]tlvbuf is B6F412B0 [12:56:31]SAM_PROTO_ClearQueue [12:56:31]wFMCommunicate request_size=4 [12:56:31]MH_SAM_APDU [12:56:31]CAPDU: 80 09 00 00 [12:56:31]Write to MH i2c: E2 08 00 D4 27 80 09 00 00 00 00 00 00 6D [12:56:31]Write i2c OK [12:56:31]MH_I2C_Read... [12:56:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:56:31]Read from MH i2c: E2 [12:56:31]MH_I2C_Read... [12:56:31]Read from MH i2c: E2 03 00 [12:56:31]MH_I2C_Read... [12:56:31]Read from MH i2c: E2 03 00 D4 27 00 90 00 6F [12:56:31]RAPDU: 90 00 [12:56:31]wFMCommunicate OK [12:56:31]SAM_PROTO_ClearQueue done [12:56:31]KKMCreateOFDPacket [12:56:31]OFDProtocolAddRootSTLVToBuf [12:56:31]FM_MakeSignedData [12:56:31]FM_MakeSignedData [12:56:31]SAM_PROTO_SignData [12:56:31]wFMCommunicate request_size=4 [12:56:31]MH_SAM_APDU [12:56:31]CAPDU: 80 0D 01 02 [12:56:31]Write to MH i2c: E2 08 00 D5 27 80 0D 01 02 00 00 00 00 75 [12:56:31]Write i2c OK [12:56:31]MH_I2C_Read... [12:56:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:56:31]Read from MH i2c: E2 [12:56:31]MH_I2C_Read... [12:56:31]Read from MH i2c: E2 03 00 [12:56:31]MH_I2C_Read... [12:56:31]Read from MH i2c: E2 03 00 D5 27 00 90 00 70 [12:56:31]RAPDU: 90 00 [12:56:31]wFMCommunicate OK [12:56:31]wFMCommunicate request_size=255 [12:56:31]MH_SAM_APDU [12:56: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 56 40 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 02 D5 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 02 D5 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 CE 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 02 D5 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 82 78 75 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 E4 96 01 00 35 04 06 00 [12:56:31]Write to MH i2c: E2 02 01 D6 27 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 40 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 02 D5 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 02 D5 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 CE 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 02 D5 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 82 78 75 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 E4 96 01 00 35 04 06 00 00 00 A8 [12:56:31]Write i2c OK [12:56:31]MH_I2C_Read... [12:56:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:56:31]Read from MH i2c: E2 [12:56:31]MH_I2C_Read... [12:56:31]Read from MH i2c: E2 03 00 [12:56:31]MH_I2C_Read... [12:56:31]Read from MH i2c: E2 03 00 D6 27 00 90 00 71 [12:56:31]RAPDU: 90 00 [12:56:31]wFMCommunicate OK [12:56:31]wFMCommunicate request_size=11 [12:56:31]MH_SAM_APDU [12:56:31]CAPDU: 80 0D 02 02 06 D0 B8 9D 9F 31 57 [12:56:31]Write to MH i2c: E2 0E 00 D7 27 80 0D 02 02 06 00 D0 B8 9D 9F 31 57 00 00 D0 [12:56:31]Write i2c OK [12:56:31]MH_I2C_Read... [12:56:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:56:31]Read from MH i2c: E2 [12:56:31]MH_I2C_Read... [12:56:31]Read from MH i2c: E2 03 00 [12:56:31]MH_I2C_Read... [12:56:31]Read from MH i2c: E2 03 00 D7 27 00 90 00 72 [12:56:31]RAPDU: 90 00 [12:56:31]wFMCommunicate OK [12:56:31]wFMCommunicate request_size=4 [12:56:31]MH_SAM_APDU [12:56:31]CAPDU: 80 0D 03 02 [12:56:31]Write to MH i2c: E2 08 00 D8 27 80 0D 03 02 00 00 00 00 7A [12:56:31]Write i2c OK [12:56:31]MH_I2C_Read... [12:56:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:56:31]Read from MH i2c: E2 [12:56:31]MH_I2C_Read... [12:56:31]Read from MH i2c: E2 0B 00 [12:56:31]MH_I2C_Read... [12:56:31]Read from MH i2c: E2 0B 00 D8 27 00 1D 1D 75 53 B2 B8 EB BC 90 00 8E [12:56:31]RAPDU: 1D 1D 75 53 B2 B8 EB BC 90 00 [12:56:31]wFMCommunicate OK [12:56:31]SAM_PROTO_SignData done [12:56:31]FM_MakeSignedData done [12:56:31]CreateOFDProtocolMessage [12:56:31]wFMCommunicate request_size=4 [12:56:31]MH_SAM_APDU [12:56:31]CAPDU: 80 11 00 00 [12:56:31]Write to MH i2c: E2 08 00 D9 27 80 11 00 00 00 00 00 00 7A [12:56:31]Write i2c OK [12:56:31]MH_I2C_Read... [12:56:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:56:31]Read from MH i2c: E2 [12:56:31]MH_I2C_Read... [12:56:31]Read from MH i2c: E2 17 00 [12:56:31]MH_I2C_Read... [12:56:31]Read from MH i2c: E2 17 00 D9 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 CD [12:56: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:56:31]wFMCommunicate OK [12:56:31]CreateOFDProtocolMessage done [12:56:31]OFDSenderStorePacket 104164 [12:56:31]StoreOFDPacket docnum=104164 [12:56: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 54 B2 08 01 17 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 56 40 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 02 D5 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 02 D5 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 CE 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 02 D5 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 82 78 75 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 E4 96 01 00 35 04 06 00 D0 B8 9D 9F 31 57 1D 1D 75 53 B2 B8 EB BC [12:56:31]CheckFolder [12:56:31]dirname=/storage/ofd_packets [12:56:31]CheckFolder done [12:56:31]ProducePacketName [12:56:31]name=ofd_packets/00104164 [12:56:31]NVStorageSaveData ofd_packets/00104164 [12:56:31]File name is /storage/ofd_packets/00104164 [12:56:31]Write 302 bytes [12:56:31]NVStorageSaveData done [12:56:31]OFDSenderStorePacket done [12:56:31]KKMCreateOFDPacket done [12:56:31]NVStorageSaveData kkm_last_timestamp [12:56:31]File name is /storage/kkm_last_timestamp [12:56:31]Write 4 bytes [12:56:31]NVStorageSaveData done [12:56:31]ExternCall_PrintAddStr [12:56:31]wPrintStart [12:56:31]Write to MH i2c: 01 00 00 DA 27 01 [12:56:31]Write i2c OK [12:56:31]MH_I2C_Read... [12:56:31]Read from MH i2c: 01 [12:56:31]MH_I2C_Read... [12:56:31]Read from MH i2c: 01 07 00 [12:56:31]MH_I2C_Read... [12:56:31]Read from MH i2c: 01 07 00 DA 27 00 00 00 00 00 FF 0F 16 [12:56:31]RasterBufferAndPrint [12:56:31]line Счет N : (1)673595 [12:56:31]line ИНН: 02508201610067 [12:56:31]line Контрольно-Кассовый Чек [12:56:31]line ПРОДАЖА [12:56:31]line ТРК (МРК, ГНК) : 21 [12:56:31]line Товар: 2710194210 [12:56:31]line ДТ(л)-К-5 [12:56:31]line 16.470 * 72.90 [12:56:31]line = 1200.66 [12:56:31]line НДС 12% НСП 1% [12:56:31]line > о реализуемом товаре [12:56:31]line ИТОГО: 1200.66 [12:56:31]line НСП 1% : 10.62 [12:56:31]line НДС 12% : 127.50 [12:56:31]line Наличными: 0.00 [12:56:31]line Безнал.: 1200.66 [12:56:31]line Место: АЗС № 120 "Партнер Нефть" [12:56:31]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [12:56:31]line СНО: Общий режим [12:56:31]line Чек 87 21.06.2024 12:56 [12:56:31]line Смена: 355 ФФД: 1.0 [12:56:31]line ЗНМ: 0300000164 [12:56:31]line РНМ: 0000000000092785 [12:56:31]line Версия ККМ: 001 [12:56:31]line Платежная система: Бакай Банк [12:56:31]line ФМ: 0000000000875093 [12:56:31]line ФД: 104164 [12:56:31]line ФПД: 229491337015639 [12:56:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T125634&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104164&fm=229491337015639&tin=02508201610067®Number=0000000000092785&sum=120066 [12:56:32]OFD Sender: Processing packet 104164 [packets to send 17, broken 16] [12:56:32]ProducePacketName [12:56:32]name=ofd_packets/00104164 [12:56:32]OFD Sender: To server: pG, [12:56:32]CommunicateWithHost lk.salyk.kg:30040 [12:56:32]ConnectInit lk.salyk.kg [12:56:32]written 0, free lines is 4095 [12:56:32]Connected sock=11 [12:56: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 54 B2 08 01 17 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 56 40 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 02 D5 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 02 D5 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 CE 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 02 D5 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 82 78 75 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 E4 96 01 00 35 04 06 00 D0 B8 9D 9F 31 57 1D 1D 75 53 B2 B8 EB BC [12:56:32]Write to MH i2c: 01 00 00 04 28 2C [12:56:32]Write i2c OK [12:56:32]MH_I2C_Read... [12:56:32]Read from MH i2c: 01 [12:56:32]MH_I2C_Read... [12:56:32]Read from MH i2c: 01 07 00 [12:56:32]MH_I2C_Read... [12:56:32]Read from MH i2c: 01 07 00 04 28 00 00 00 00 00 03 0D 43 [12:56:32]RasterBufferAndPrint [12:56:32]line [12:56:32]line [12:56:32]line [12:56:32]line [12:56:32]line [12:56:32]written 0, free lines is 3337 [12:56:32]MH_Cut [12:56:32]Write to MH i2c: D1 01 00 0B 28 01 05 [12:56:32]Write i2c OK [12:56:32]MH_I2C_Read... [12:56:32]Read from MH i2c: D1 [12:56:32]MH_I2C_Read... [12:56:32]Read from MH i2c: D1 01 00 [12:56:32]MH_I2C_Read... [12:56:32]Read from MH i2c: D1 01 00 0B 28 00 04 [12:56:32]Write to MH i2c: 01 00 00 0C 28 34 [12:56:32]Write i2c OK [12:56:32]MH_I2C_Read... [12:56: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 B9 F1 47 00 1F 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 E4 96 01 00 F4 03 04 00 05 1F 75 66 B6 04 01 00 00 B5 36 5F C2 80 97 4E 37 [12:56:32]CommunicateWithHost err = 0 [12:56:32]CheckOFDResponse [12:56:32]1017 (14) - 77093643461234 [12:56:32]1041 (16) - 0000000000875093 [12:56:32]1040 (4) - 104164 [12:56:32]1012 (4) - 21.06.2024 06:34 [12:56:32]1206 (1) - 0 [12:56:32]OFD Sender: Remove packet 104164 [12:56:32]ProducePacketName [12:56:32]name=ofd_packets/00104164 [12:56:32]NVStorageDeleteData [12:56:33]OFD Sender: No OFD packet to send [12:56:33]*** Cut start [12:56:33]*** Partial cut [12:56:33]*** CUTSNS_PIN = 1 [12:56:33]*** CUTSNS_PIN = 0 [12:56:33]*** Brake cut motor [12:56:33]Read from MH i2c: 01 [12:56:33]MH_I2C_Read... [12:56:33]*** Stop cut motor [12:56:33]*** Cut end [12:56:33]Read from MH i2c: 01 07 00 [12:56:33]MH_I2C_Read... [12:56:33]Read from MH i2c: 01 07 00 0C 28 00 00 00 00 00 FF 0F 49 [12:56:33]process_action close_receipt done [12:56:33]requested_data is exist [12:56:33]produce_requested_data [12:56:33]requested_item fm.sn is exist - process it [12:56:33]wFMCommunicate request_size=4 [12:56:33]MH_SAM_APDU [12:56:33]CAPDU: 80 11 00 00 [12:56:33]Write to MH i2c: E2 08 00 0D 28 80 11 00 00 00 00 00 00 AF [12:56:33]Write i2c OK [12:56:33]MH_I2C_Read... [12:56:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:56:33]Read from MH i2c: E2 [12:56:33]MH_I2C_Read... [12:56:33]Read from MH i2c: E2 17 00 [12:56:33]MH_I2C_Read... [12:56:33]Read from MH i2c: E2 17 00 0D 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 02 [12:56: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:56:33]wFMCommunicate OK [12:56:33]requested_item fd.num is exist - process it [12:56:33]SAM_PROTO_GetFieldsCounters [12:56:33]wFMCommunicate request_size=4 [12:56:33]MH_SAM_APDU [12:56:33]CAPDU: 80 13 00 00 [12:56:33]Write to MH i2c: E2 08 00 0E 28 80 13 00 00 00 00 00 00 B2 [12:56:33]Write i2c OK [12:56:33]MH_I2C_Read... [12:56:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:56:34]Read from MH i2c: E2 [12:56:34]MH_I2C_Read... [12:56:34]Read from MH i2c: E2 62 00 [12:56:34]MH_I2C_Read... [12:56:34]Read from MH i2c: E2 62 00 0E 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 E4 96 01 00 0E 04 04 00 63 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 BD [12:56: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 E4 96 01 00 0E 04 04 00 63 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:56:34]wFMCommunicate OK [12:56:34]SAM_PROTO_GetFieldsCounters done [12:56:34]requested_item shift.num is exist - process it [12:56:34]requested_item shift.opened is exist - process it [12:56:34]req_shift_opened [12:56:34]FM_GetShiftState [12:56:34]SAM_PROTO_GetShiftState [12:56:34]wFMCommunicate request_size=4 [12:56:34]MH_SAM_APDU [12:56:34]CAPDU: 80 13 01 00 [12:56:34]Write to MH i2c: E2 08 00 0F 28 80 13 01 00 00 00 00 00 B4 [12:56:34]Write i2c OK [12:56:34]MH_I2C_Read... [12:56:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:56:34]Read from MH i2c: E2 [12:56:34]MH_I2C_Read... [12:56:34]Read from MH i2c: E2 0E 00 [12:56:34]MH_I2C_Read... [12:56:34]Read from MH i2c: E2 0E 00 0F 28 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 C7 [12:56:34]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [12:56:34]wFMCommunicate OK [12:56:34]SAM_PROTO_GetShiftState done [12:56:34]FM_GetShiftState done [12:56:34]req_shift_opened done [12:56:34]requested_item shift.open_date is exist - process it [12:56:34]req_shift_open_date [12:56:34]req_shift_open_date done [12:56:34]produce_requested_data done [12:56:34]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104164,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [12:56:34]process_action_free close_receipt [12:56:34]json_value_free [12:56:34]json_value_free done [12:56:34]process_json_proto returns [12:56:34]Send response to host [12:56:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104164,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [12:56:34]free response buf [12:56:34]execute_script done [12:56:34]execute_script returns [12:56:34]free content buf [12:56:34]Sock 7.Close socket [12:56:34]Sock 7.Thread stoped [12:56:38]OFD Sender: No OFD packet to send [12:56:43]OFD Sender: No OFD packet to send [12:56:48]OFD Sender: No OFD packet to send [12:56:53]OFD Sender: No OFD packet to send [12:56:58]OFD Sender: No OFD packet to send [12:57:03]OFD Sender: No OFD packet to send [12:57:08]OFD Sender: No OFD packet to send [12:57:13]OFD Sender: No OFD packet to send [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:23]OFD Sender: No OFD packet to send [12:58:28]OFD Sender: No OFD packet to send [12:58:33]OFD Sender: No OFD packet to send [12:58:38]OFD Sender: No OFD packet to send [12:58:43]OFD Sender: No OFD packet to send [12:58:48]OFD Sender: No OFD packet to send [12:58:53]OFD Sender: No OFD packet to send [12:58:58]OFD Sender: No OFD packet to send [12:59:03]OFD Sender: No OFD packet to send [12:59:08]OFD Sender: No OFD packet to send [12:59:13]OFD Sender: No OFD packet to send [12:59:18]OFD Sender: No OFD packet to send [12:59:23]OFD Sender: No OFD packet to send [12:59:28]OFD Sender: No OFD packet to send [12:59:33]OFD Sender: No OFD packet to send [12:59:38]OFD Sender: No OFD packet to send [12:59:43]OFD Sender: No OFD packet to send [12:59:48]OFD Sender: No OFD packet to send [12:59:53]OFD Sender: No OFD packet to send [12:59:58]OFD Sender: No OFD packet to send [13:00:03]OFD Sender: No OFD packet to send [13:00:08]OFD Sender: No OFD packet to send [13:00:13]OFD Sender: No OFD packet to send [13:00:18]OFD Sender: No OFD packet to send [13:00:23]OFD Sender: No OFD packet to send [13:00:28]OFD Sender: No OFD packet to send [13:00:33]OFD Sender: No OFD packet to send [13:00:38]OFD Sender: No OFD packet to send [13:00:43]OFD Sender: No OFD packet to send [13:00:48]OFD Sender: No OFD packet to send [13:00:53]OFD Sender: No OFD packet to send [13:00:58]OFD Sender: No OFD packet to send [13:01:03]OFD Sender: No OFD packet to send [13:01:08]OFD Sender: No OFD packet to send [13:01:13]OFD Sender: No OFD packet to send [13:01:18]OFD Sender: No OFD packet to send [13:01:23]OFD Sender: No OFD packet to send [13:01:28]OFD Sender: No OFD packet to send [13:01:33]OFD Sender: No OFD packet to send [13:01:38]OFD Sender: No OFD packet to send [13:01:43]OFD Sender: No OFD packet to send [13:01:48]OFD Sender: No OFD packet to send [13:01:53]OFD Sender: No OFD packet to send [13:01:58]OFD Sender: No OFD packet to send [13:02:03]OFD Sender: No OFD packet to send [13:02:08]OFD Sender: No OFD packet to send [13:02:13]OFD Sender: No OFD packet to send [13:02:18]OFD Sender: No OFD packet to send [13:02:23]OFD Sender: No OFD packet to send [13:02:28]OFD Sender: No OFD packet to send [13:02:33]OFD Sender: No OFD packet to send [13:02:38]OFD Sender: No OFD packet to send [13:02:43]OFD Sender: No OFD packet to send [13:02:48]OFD Sender: No OFD packet to send [13:02:53]OFD Sender: No OFD packet to send [13:02:58]OFD Sender: No OFD packet to send [13:03:03]OFD Sender: No OFD packet to send [13:03:08]OFD Sender: No OFD packet to send [13:03:13]OFD Sender: No OFD packet to send [13:03:18]OFD Sender: No OFD packet to send [13:03:23]OFD Sender: No OFD packet to send [13:03:28]OFD Sender: No OFD packet to send [13:03:33]OFD Sender: No OFD packet to send [13:03:38]OFD Sender: No OFD packet to send [13:03:43]OFD Sender: No OFD packet to send [13:03:48]OFD Sender: No OFD packet to send [13:03:53]OFD Sender: No OFD packet to send [13:03:58]OFD Sender: No OFD packet to send [13:04:03]OFD Sender: No OFD packet to send [13:04:08]OFD Sender: No OFD packet to send [13:04:13]OFD Sender: No OFD packet to send [13:04:18]OFD Sender: No OFD packet to send [13:04:23]OFD Sender: No OFD packet to send [13:04:28]OFD Sender: No OFD packet to send [13:04:33]OFD Sender: No OFD packet to send [13:04:38]OFD Sender: No OFD packet to send [13:04:43]OFD Sender: No OFD packet to send [13:04:48]OFD Sender: No OFD packet to send [13:04:53]OFD Sender: No OFD packet to send [13:04:58]OFD Sender: No OFD packet to send [13:05:03]OFD Sender: No OFD packet to send [13:05:08]OFD Sender: No OFD packet to send [13:05:13]OFD Sender: No OFD packet to send [13:05:18]OFD Sender: No OFD packet to send [13:05:23]OFD Sender: No OFD packet to send [13:05:28]OFD Sender: No OFD packet to send [13:05:33]OFD Sender: No OFD packet to send [13:05:38]OFD Sender: No OFD packet to send [13:05:43]OFD Sender: No OFD packet to send [13:05:48]OFD Sender: No OFD packet to send [13:05:53]OFD Sender: No OFD packet to send [13:05:58]OFD Sender: No OFD packet to send [13:06:03]OFD Sender: No OFD packet to send [13:06:08]OFD Sender: No OFD packet to send [13:06:13]OFD Sender: No OFD packet to send [13:06:18]OFD Sender: No OFD packet to send [13:06:23]OFD Sender: No OFD packet to send [13:06:28]OFD Sender: No OFD packet to send [13:06:33]OFD Sender: No OFD packet to send [13:06:38]OFD Sender: No OFD packet to send [13:06:43]OFD Sender: No OFD packet to send [13:06:48]OFD Sender: No OFD packet to send [13:06:53]OFD Sender: No OFD packet to send [13:06:58]OFD Sender: No OFD packet to send [13:07:03]OFD Sender: No OFD packet to send [13:07:08]OFD Sender: No OFD packet to send [13:07:13]OFD Sender: No OFD packet to send [13:07:18]OFD Sender: No OFD packet to send [13:07:23]OFD Sender: No OFD packet to send [13:07:28]OFD Sender: No OFD packet to send [13:07:33]OFD Sender: No OFD packet to send [13:07:35]accept exits with 9 [13:07:35]New connection [13:07:35]New thread 3066858852 created [13:07:35]Thread 3066715492 joined [13:07:35]Waiting for new connection... [13:07:35] Sock 9.Parse request [13:07:35]Sock 9.Check first char [13:07:35]Sock 9.First char is OK [13:07:35]request: POST /json_proto HTTP/1.0 [13:07:35]Method: POST [13:07:35]URL: /json_proto [13:07:35]Method is POST - this is cgi request [13:07:35]url: /json_proto [13:07:35]query_string will be loaded in cgi processing [13:07:35]execute_cgi json_proto POST (null) [13:07:35]execute_cgi path=json_proto method=POST [13:07:35]POST find Content-Length [13:07:35]Host: 172.17.38.133:8080 [13:07:35]Content-Length: 687 [13:07:35]Content-Type: application/json [13:07:35] [13:07:35]POST finish read [13:07:35]Found Content-Length = 687 [13:07:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673596", "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" : 33.000, "sum" : 2405.70, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2405.00, "total" : 2405.00, "payments": [ { "type": 0, "sum" : 2405.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:07:35]execute_script... [13:07: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)673596", "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" : 33.000, "sum" : 2405.70, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2405.00, "total" : 2405.00, "payments": [ { "type": 0, "sum" : 2405.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:07:35]POST & json_proto [13:07:35]process_json_proto [13:07:35]json parsed OK: [13:07:35]protocol is kg_v1.0 [13:07:35]action value=close_receipt [13:07:35]process_action close_receipt [13:07:35]cmd_close_receipt [13:07:35]MH_GetDate [13:07:35]Write to MH i2c: F0 00 00 10 28 27 [13:07:35]Write i2c OK [13:07:35]MH_I2C_Read... [13:07:35]Read from MH i2c: F0 [13:07:35]MH_I2C_Read... [13:07:35]Read from MH i2c: F0 09 00 [13:07:35]MH_I2C_Read... [13:07:35]Read from MH i2c: F0 09 00 10 28 00 1B 7B 75 66 BD 8F 7C 64 CD [13:07:35]GetLastDocTimeStamp 1718974594 [13:07:35]current date 1718975259 [13:07:35]FM_GetShiftState [13:07:35]SAM_PROTO_GetShiftState [13:07:35]wFMCommunicate request_size=4 [13:07:35]MH_SAM_APDU [13:07:35]CAPDU: 80 13 01 00 [13:07:35]Write to MH i2c: E2 08 00 11 28 80 13 01 00 00 00 00 00 B6 [13:07:35]Write i2c OK [13:07:35]MH_I2C_Read... [13:07:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:07:35]Read from MH i2c: E2 [13:07:35]MH_I2C_Read... [13:07:35]Read from MH i2c: E2 0E 00 [13:07:35]MH_I2C_Read... [13:07:35]Read from MH i2c: E2 0E 00 11 28 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 C9 [13:07:35]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [13:07:35]wFMCommunicate OK [13:07:35]SAM_PROTO_GetShiftState done [13:07:35]FM_GetShiftState done [13:07:35]opened in 1718929509 [13:07:35]opened+sec_in_day 1719015909 [13:07:35]quantity*price = 240570 [13:07:35]sum+1 = 240571 [13:07:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.70 ИТОГО: 2405.00 Внесено: 2405.00 СДАЧА: 0.00 НСП 1% : 21.29 НДС 12% : 255.47 Наличными: 2405.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 88 21.06.2024 13:07 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104165 ФПД: 267087888765503 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T130739&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104165&fm=267087888765503&tin=02508201610067®Number=0000000000092785&sum=240500 [13:07:36]StoreToDocumentArchive [13:07:36]shift 355 fd 104165 [13:07:36]save to /storage/0355/doc_00104165 [13:07:36]save last doc name /storage/0355/doc_00104165 to /storage/kkm_last_doc_name [13:07:36]save OK [13:07:36]Clear old archive folders... [13:07:36]ProcessDocumentItem done err = 0, tmpTLVsize=252 [13:07:36]tlvbuf is 01141700 [13:07:36]SAM_PROTO_ClearQueue [13:07:36]wFMCommunicate request_size=4 [13:07:36]MH_SAM_APDU [13:07:36]CAPDU: 80 09 00 00 [13:07:36]Write to MH i2c: E2 08 00 1E 28 80 09 00 00 00 00 00 00 B8 [13:07:36]Write i2c OK [13:07:36]MH_I2C_Read... [13:07:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:07:36]Read from MH i2c: E2 [13:07:36]MH_I2C_Read... [13:07:36]Read from MH i2c: E2 03 00 [13:07:36]MH_I2C_Read... [13:07:36]Read from MH i2c: E2 03 00 1E 28 00 90 00 BA [13:07:36]RAPDU: 90 00 [13:07:36]wFMCommunicate OK [13:07:36]SAM_PROTO_ClearQueue done [13:07:36]KKMCreateOFDPacket [13:07:36]OFDProtocolAddRootSTLVToBuf [13:07:36]FM_MakeSignedData [13:07:36]FM_MakeSignedData [13:07:36]SAM_PROTO_SignData [13:07:36]wFMCommunicate request_size=4 [13:07:36]MH_SAM_APDU [13:07:36]CAPDU: 80 0D 01 02 [13:07:36]Write to MH i2c: E2 08 00 1F 28 80 0D 01 02 00 00 00 00 C0 [13:07:36]Write i2c OK [13:07:36]MH_I2C_Read... [13:07:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:07:36]Read from MH i2c: E2 [13:07:36]MH_I2C_Read... [13:07:36]Read from MH i2c: E2 03 00 [13:07:36]MH_I2C_Read... [13:07:36]Read from MH i2c: E2 03 00 1F 28 00 90 00 BB [13:07:36]RAPDU: 90 00 [13:07:36]wFMCommunicate OK [13:07:36]wFMCommunicate request_size=255 [13:07:36]MH_SAM_APDU [13:07:36]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 E8 80 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 BA AB 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 AB 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CB 63 00 00 00 00 07 04 06 00 74 AB 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 1B 7B 75 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 E5 96 01 00 35 04 06 00 [13:07:36]Write to MH i2c: E2 02 01 20 28 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 E8 80 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 BA AB 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 AB 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CB 63 00 00 00 00 07 04 06 00 74 AB 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 1B 7B 75 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 E5 96 01 00 35 04 06 00 00 00 E5 [13:07:36]Write i2c OK [13:07:36]MH_I2C_Read... [13:07:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:07:36]Read from MH i2c: E2 [13:07:36]MH_I2C_Read... [13:07:36]Read from MH i2c: E2 03 00 [13:07:36]MH_I2C_Read... [13:07:36]Read from MH i2c: E2 03 00 20 28 00 90 00 BC [13:07:36]RAPDU: 90 00 [13:07:36]wFMCommunicate OK [13:07:36]wFMCommunicate request_size=11 [13:07:36]MH_SAM_APDU [13:07:36]CAPDU: 80 0D 02 02 06 F2 EA 3E BB D2 3F [13:07:36]Write to MH i2c: E2 0E 00 21 28 80 0D 02 02 06 00 F2 EA 3E BB D2 3F 00 00 B5 [13:07:36]Write i2c OK [13:07:36]MH_I2C_Read... [13:07:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:07:36]Read from MH i2c: E2 [13:07:36]MH_I2C_Read... [13:07:36]Read from MH i2c: E2 03 00 [13:07:36]MH_I2C_Read... [13:07:36]Read from MH i2c: E2 03 00 21 28 00 90 00 BD [13:07:36]RAPDU: 90 00 [13:07:36]wFMCommunicate OK [13:07:36]wFMCommunicate request_size=4 [13:07:36]MH_SAM_APDU [13:07:36]CAPDU: 80 0D 03 02 [13:07:36]Write to MH i2c: E2 08 00 22 28 80 0D 03 02 00 00 00 00 C5 [13:07:36]Write i2c OK [13:07:36]MH_I2C_Read... [13:07:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:07:36]Read from MH i2c: E2 [13:07:36]MH_I2C_Read... [13:07:36]Read from MH i2c: E2 0B 00 [13:07:36]MH_I2C_Read... [13:07:36]Read from MH i2c: E2 0B 00 22 28 00 1E 76 3A 85 A6 A0 A8 30 90 00 37 [13:07:36]RAPDU: 1E 76 3A 85 A6 A0 A8 30 90 00 [13:07:36]wFMCommunicate OK [13:07:36]SAM_PROTO_SignData done [13:07:36]FM_MakeSignedData done [13:07:36]CreateOFDProtocolMessage [13:07:36]wFMCommunicate request_size=4 [13:07:36]MH_SAM_APDU [13:07:36]CAPDU: 80 11 00 00 [13:07:36]Write to MH i2c: E2 08 00 23 28 80 11 00 00 00 00 00 00 C5 [13:07:36]Write i2c OK [13:07:36]MH_I2C_Read... [13:07:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:07:36]Read from MH i2c: E2 [13:07:36]MH_I2C_Read... [13:07:36]Read from MH i2c: E2 17 00 [13:07:36]MH_I2C_Read... [13:07:36]Read from MH i2c: E2 17 00 23 28 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:07: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:07:36]wFMCommunicate OK [13:07:36]CreateOFDProtocolMessage done [13:07:36]OFDSenderStorePacket 104165 [13:07:36]StoreOFDPacket docnum=104165 [13:07: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 A7 F0 08 01 9D B2 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 E8 80 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 BA AB 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 AB 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CB 63 00 00 00 00 07 04 06 00 74 AB 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 1B 7B 75 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 E5 96 01 00 35 04 06 00 F2 EA 3E BB D2 3F 1E 76 3A 85 A6 A0 A8 30 [13:07:36]CheckFolder [13:07:36]dirname=/storage/ofd_packets [13:07:36]CheckFolder done [13:07:36]ProducePacketName [13:07:36]name=ofd_packets/00104165 [13:07:36]NVStorageSaveData ofd_packets/00104165 [13:07:36]File name is /storage/ofd_packets/00104165 [13:07:36]Write 302 bytes [13:07:36]NVStorageSaveData done [13:07:36]OFDSenderStorePacket done [13:07:36]KKMCreateOFDPacket done [13:07:36]NVStorageSaveData kkm_last_timestamp [13:07:36]File name is /storage/kkm_last_timestamp [13:07:36]Write 4 bytes [13:07:36]NVStorageSaveData done [13:07:36]ExternCall_PrintAddStr [13:07:36]wPrintStart [13:07:36]Write to MH i2c: 01 00 00 24 28 4C [13:07:36]Write i2c OK [13:07:36]MH_I2C_Read... [13:07:36]Read from MH i2c: 01 [13:07:36]MH_I2C_Read... [13:07:36]Read from MH i2c: 01 07 00 [13:07:36]MH_I2C_Read... [13:07:36]Read from MH i2c: 01 07 00 24 28 00 00 00 00 00 FF 0F 61 [13:07:36]RasterBufferAndPrint [13:07:36]line Счет N : (1)673596 [13:07:36]line ИНН: 02508201610067 [13:07:36]line Контрольно-Кассовый Чек [13:07:36]line ПРОДАЖА [13:07:36]line ТРК (МРК, ГНК) : 21 [13:07:36]line Товар: 2710194210 [13:07:36]line ДТ(л)-К-5 [13:07:36]line 33.000 * 72.90 [13:07:36]line = 2405.70 [13:07:36]line НДС 12% НСП 1% [13:07:36]line > о реализуемом товаре [13:07:36]line ОКРУГЛЕНИЕ: -0.70 [13:07:36]line ИТОГО: 2405.00 [13:07:36]line Внесено: 2405.00 [13:07:36]line СДАЧА: 0.00 [13:07:36]line НСП 1% : 21.29 [13:07:36]line НДС 12% : 255.47 [13:07:36]line Наличными: 2405.00 [13:07:36]line Безнал.: 0.00 [13:07:36]line Место: АЗС № 120 "Партнер Нефть" [13:07:36]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [13:07:36]line СНО: Общий режим [13:07:36]line Чек 88 21.06.2024 13:07 [13:07:36]line Смена: 355 ФФД: 1.0 [13:07:36]line ЗНМ: 0300000164 [13:07:36]line РНМ: 0000000000092785 [13:07:36]line Версия ККМ: 001 [13:07:36]line ФМ: 0000000000875093 [13:07:36]line ФД: 104165 [13:07:36]line ФПД: 267087888765503 [13:07:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T130739&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104165&fm=267087888765503&tin=02508201610067®Number=0000000000092785&sum=240500 [13:07:37]OFD Sender: Processing packet 104165 [packets to send 17, broken 16] [13:07:37]ProducePacketName [13:07:37]name=ofd_packets/00104165 [13:07:37]OFD Sender: To server: pG, [13:07:37]CommunicateWithHost lk.salyk.kg:30040 [13:07:37]ConnectInit lk.salyk.kg [13:07:37]written 0, free lines is 4095 [13:07:37]Connected sock=10 [13:07: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 10 01 00 00 A7 F0 08 01 9D B2 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 E8 80 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 BA AB 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 AB 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CB 63 00 00 00 00 07 04 06 00 74 AB 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 1B 7B 75 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 E5 96 01 00 35 04 06 00 F2 EA 3E BB D2 3F 1E 76 3A 85 A6 A0 A8 30 [13:07: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 FB 64 47 00 F7 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 E5 96 01 00 F4 03 04 00 9E 21 75 66 B6 04 01 00 00 20 79 AD 14 32 D7 6C 31 [13:07:37]CommunicateWithHost err = 0 [13:07:37]CheckOFDResponse [13:07:37]1017 (14) - 77093643461234 [13:07:37]1041 (16) - 0000000000875093 [13:07:37]1040 (4) - 104165 [13:07:37]1012 (4) - 21.06.2024 06:45 [13:07:37]1206 (1) - 0 [13:07:37]OFD Sender: Remove packet 104165 [13:07:37]ProducePacketName [13:07:37]name=ofd_packets/00104165 [13:07:37]NVStorageDeleteData [13:07:37]Write to MH i2c: 01 00 00 4F 28 77 [13:07:37]Write i2c OK [13:07:37]MH_I2C_Read... [13:07:37]Read from MH i2c: 01 [13:07:37]MH_I2C_Read... [13:07:37]Read from MH i2c: 01 07 00 [13:07:37]MH_I2C_Read... [13:07:37]Read from MH i2c: 01 07 00 4F 28 00 00 00 00 00 EB 0C 75 [13:07:37]RasterBufferAndPrint [13:07:37]line [13:07:37]line [13:07:37]line [13:07:37]line [13:07:37]line [13:07:37]written 0, free lines is 3313 [13:07:37]MH_Cut [13:07:37]Write to MH i2c: D1 01 00 56 28 01 50 [13:07:37]Write i2c OK [13:07:37]MH_I2C_Read... [13:07:37]Read from MH i2c: D1 [13:07:37]MH_I2C_Read... [13:07:37]Read from MH i2c: D1 01 00 [13:07:37]MH_I2C_Read... [13:07:37]Read from MH i2c: D1 01 00 56 28 00 4F [13:07:37]Write to MH i2c: 01 00 00 57 28 7F [13:07:37]Write i2c OK [13:07:37]MH_I2C_Read... [13:07:38]OFD Sender: No OFD packet to send [13:07:38]*** Cut start [13:07:38]*** Partial cut [13:07:38]*** CUTSNS_PIN = 1 [13:07:38]*** CUTSNS_PIN = 0 [13:07:38]*** Brake cut motor [13:07:38]Read from MH i2c: 01 [13:07:38]MH_I2C_Read... [13:07:38]*** Stop cut motor [13:07:38]*** Cut end [13:07:38]Read from MH i2c: 01 07 00 [13:07:38]MH_I2C_Read... [13:07:38]Read from MH i2c: 01 07 00 57 28 00 00 00 00 00 FF 0F 94 [13:07:38]process_action close_receipt done [13:07:38]requested_data is exist [13:07:38]produce_requested_data [13:07:38]requested_item fm.sn is exist - process it [13:07:38]wFMCommunicate request_size=4 [13:07:38]MH_SAM_APDU [13:07:38]CAPDU: 80 11 00 00 [13:07:38]Write to MH i2c: E2 08 00 58 28 80 11 00 00 00 00 00 00 FA [13:07:38]Write i2c OK [13:07:38]MH_I2C_Read... [13:07:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:07:38]Read from MH i2c: E2 [13:07:38]MH_I2C_Read... [13:07:38]Read from MH i2c: E2 17 00 [13:07:38]MH_I2C_Read... [13:07:39]Read from MH i2c: E2 17 00 58 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 4D [13:07: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:07:39]wFMCommunicate OK [13:07:39]requested_item fd.num is exist - process it [13:07:39]SAM_PROTO_GetFieldsCounters [13:07:39]wFMCommunicate request_size=4 [13:07:39]MH_SAM_APDU [13:07:39]CAPDU: 80 13 00 00 [13:07:39]Write to MH i2c: E2 08 00 59 28 80 13 00 00 00 00 00 00 FD [13:07:39]Write i2c OK [13:07:39]MH_I2C_Read... [13:07:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:07:39]Read from MH i2c: E2 [13:07:39]MH_I2C_Read... [13:07:39]Read from MH i2c: E2 62 00 [13:07:39]MH_I2C_Read... [13:07:39]Read from MH i2c: E2 62 00 59 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 E5 96 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 0C [13:07: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 E5 96 01 00 0E 04 04 00 63 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 [13:07:39]wFMCommunicate OK [13:07:39]SAM_PROTO_GetFieldsCounters done [13:07:39]requested_item shift.num is exist - process it [13:07:39]requested_item shift.opened is exist - process it [13:07:39]req_shift_opened [13:07:39]FM_GetShiftState [13:07:39]SAM_PROTO_GetShiftState [13:07:39]wFMCommunicate request_size=4 [13:07:39]MH_SAM_APDU [13:07:39]CAPDU: 80 13 01 00 [13:07:39]Write to MH i2c: E2 08 00 5A 28 80 13 01 00 00 00 00 00 FF [13:07:39]Write i2c OK [13:07:39]MH_I2C_Read... [13:07:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:07:39]Read from MH i2c: E2 [13:07:39]MH_I2C_Read... [13:07:39]Read from MH i2c: E2 0E 00 [13:07:39]MH_I2C_Read... [13:07:39]Read from MH i2c: E2 0E 00 5A 28 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 12 [13:07:39]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [13:07:39]wFMCommunicate OK [13:07:39]SAM_PROTO_GetShiftState done [13:07:39]FM_GetShiftState done [13:07:39]req_shift_opened done [13:07:39]requested_item shift.open_date is exist - process it [13:07:39]req_shift_open_date [13:07:39]req_shift_open_date done [13:07:39]produce_requested_data done [13:07:39]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104165,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [13:07:39]process_action_free close_receipt [13:07:39]json_value_free [13:07:39]json_value_free done [13:07:39]process_json_proto returns [13:07:39]Send response to host [13:07:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104165,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [13:07:39]free response buf [13:07:39]execute_script done [13:07:39]execute_script returns [13:07:39]free content buf [13:07:39]Sock 9.Close socket [13:07:39]Sock 9.Thread stoped [13:07:43]OFD Sender: No OFD packet to send [13:07:48]OFD Sender: No OFD packet to send [13:07:53]OFD Sender: No OFD packet to send [13:07:58]OFD Sender: No OFD packet to send [13:08:03]OFD Sender: No OFD packet to send [13:08:08]OFD Sender: No OFD packet to send [13:08:13]OFD Sender: No OFD packet to send [13:08:18]OFD Sender: No OFD packet to send [13:08:23]OFD Sender: No OFD packet to send [13:08:28]OFD Sender: No OFD packet to send [13:08:33]OFD Sender: No OFD packet to send [13:08:38]OFD Sender: No OFD packet to send [13:08:43]OFD Sender: No OFD packet to send [13:08:48]OFD Sender: No OFD packet to send [13:08:53]OFD Sender: No OFD packet to send [13:08:58]OFD Sender: No OFD packet to send [13:09:03]OFD Sender: No OFD packet to send [13:09:08]OFD Sender: No OFD packet to send [13:09:13]OFD Sender: No OFD packet to send [13:09:18]OFD Sender: No OFD packet to send [13:09:23]OFD Sender: No OFD packet to send [13:09:28]OFD Sender: No OFD packet to send [13:09:33]OFD Sender: No OFD packet to send [13:09:38]OFD Sender: No OFD packet to send [13:09:43]OFD Sender: No OFD packet to send [13:09:48]OFD Sender: No OFD packet to send [13:09:53]OFD Sender: No OFD packet to send [13:09:58]OFD Sender: No OFD packet to send [13:10:03]OFD Sender: No OFD packet to send [13:10:08]OFD Sender: No OFD packet to send [13:10:13]OFD Sender: No OFD packet to send [13:10:18]OFD Sender: No OFD packet to send [13:10:23]OFD Sender: No OFD packet to send [13:10:28]OFD Sender: No OFD packet to send [13:10:33]OFD Sender: No OFD packet to send [13:10:38]OFD Sender: No OFD packet to send [13:10:43]OFD Sender: No OFD packet to send [13:10:48]OFD Sender: No OFD packet to send [13:10:53]OFD Sender: No OFD packet to send [13:10:58]OFD Sender: No OFD packet to send [13:10:59]accept exits with 7 [13:10:59]New connection [13:10:59]New thread 3066715492 created [13:10:59]Thread 3066858852 joined [13:10:59]Waiting for new connection... [13:10:59] Sock 7.Parse request [13:10:59]Sock 7.Check first char [13:10:59]Sock 7.First char is OK [13:10:59]request: POST /json_proto HTTP/1.0 [13:10:59]Method: POST [13:10:59]URL: /json_proto [13:10:59]Method is POST - this is cgi request [13:10:59]url: /json_proto [13:10:59]query_string will be loaded in cgi processing [13:10:59]execute_cgi json_proto POST (null) [13:10:59]execute_cgi path=json_proto method=POST [13:10:59]POST find Content-Length [13:10:59]Host: 172.17.38.133:8080 [13:10:59]Content-Length: 677 [13:10:59]Content-Type: application/json [13:10:59] [13:10:59]POST finish read [13:10:59]Found Content-Length = 677 [13:10:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673598", "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" ] } } [13:10:59]execute_script... [13:10: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)673598", "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" ] } } [13:10:59]POST & json_proto [13:10:59]process_json_proto [13:10:59]json parsed OK: [13:10:59]protocol is kg_v1.0 [13:10:59]action value=close_receipt [13:10:59]process_action close_receipt [13:10:59]cmd_close_receipt [13:10:59]MH_GetDate [13:10:59]Write to MH i2c: F0 00 00 5B 28 72 [13:10:59]Write i2c OK [13:10:59]MH_I2C_Read... [13:10:59]Read from MH i2c: F0 [13:10:59]MH_I2C_Read... [13:10:59]Read from MH i2c: F0 09 00 [13:10:59]MH_I2C_Read... [13:10:59]Read from MH i2c: F0 09 00 5B 28 00 E8 7B 75 66 BD 8F 7C 64 E5 [13:10:59]GetLastDocTimeStamp 1718975259 [13:10:59]current date 1718975464 [13:10:59]FM_GetShiftState [13:10:59]SAM_PROTO_GetShiftState [13:10:59]wFMCommunicate request_size=4 [13:10:59]MH_SAM_APDU [13:10:59]CAPDU: 80 13 01 00 [13:10:59]Write to MH i2c: E2 08 00 5C 28 80 13 01 00 00 00 00 00 01 [13:10:59]Write i2c OK [13:10:59]MH_I2C_Read... [13:10:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:10:59]Read from MH i2c: E2 [13:10:59]MH_I2C_Read... [13:10:59]Read from MH i2c: E2 0E 00 [13:10:59]MH_I2C_Read... [13:10:59]Read from MH i2c: E2 0E 00 5C 28 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 14 [13:10:59]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [13:10:59]wFMCommunicate OK [13:10:59]SAM_PROTO_GetShiftState done [13:10:59]FM_GetShiftState done [13:10:59]opened in 1718929509 [13:10:59]opened+sec_in_day 1719015909 [13:10:59]quantity*price = 30012 [13:10:59]sum+1 = 30014 [13:10:59]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 СНО: Общий режим Чек 89 21.06.2024 13:11 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104166 ФПД: 253070341972703 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T131104&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104166&fm=253070341972703&tin=02508201610067®Number=0000000000092785&sum=30000 [13:11:00]StoreToDocumentArchive [13:11:00]shift 355 fd 104166 [13:11:00]save to /storage/0355/doc_00104166 [13:11:00]save last doc name /storage/0355/doc_00104166 to /storage/kkm_last_doc_name [13:11:00]save OK [13:11:00]Clear old archive folders... [13:11:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:11:00]tlvbuf is 01174E70 [13:11:00]SAM_PROTO_ClearQueue [13:11:00]wFMCommunicate request_size=4 [13:11:00]MH_SAM_APDU [13:11:00]CAPDU: 80 09 00 00 [13:11:00]Write to MH i2c: E2 08 00 69 28 80 09 00 00 00 00 00 00 03 [13:11:00]Write i2c OK [13:11:00]MH_I2C_Read... [13:11:00]Read from MH i2c: E2 [13:11:00]MH_I2C_Read... [13:11:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:11:00]Read from MH i2c: E2 03 00 [13:11:00]MH_I2C_Read... [13:11:00]Read from MH i2c: E2 03 00 69 28 00 90 00 05 [13:11:00]RAPDU: 90 00 [13:11:00]wFMCommunicate OK [13:11:00]SAM_PROTO_ClearQueue done [13:11:00]KKMCreateOFDPacket [13:11:00]OFDProtocolAddRootSTLVToBuf [13:11:00]FM_MakeSignedData [13:11:00]FM_MakeSignedData [13:11:00]SAM_PROTO_SignData [13:11:00]wFMCommunicate request_size=4 [13:11:00]MH_SAM_APDU [13:11:00]CAPDU: 80 0D 01 02 [13:11:00]Write to MH i2c: E2 08 00 6A 28 80 0D 01 02 00 00 00 00 0B [13:11:00]Write i2c OK [13:11:00]MH_I2C_Read... [13:11:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:11:00]Read from MH i2c: E2 [13:11:00]MH_I2C_Read... [13:11:00]Read from MH i2c: E2 03 00 [13:11:00]MH_I2C_Read... [13:11:00]Read from MH i2c: E2 03 00 6A 28 00 90 00 06 [13:11:00]RAPDU: 90 00 [13:11:00]wFMCommunicate OK [13:11:00]wFMCommunicate request_size=255 [13:11:00]MH_SAM_APDU [13:11: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 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 59 00 00 00 F4 03 04 00 E8 7B 75 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 E6 96 01 00 35 04 06 00 E6 [13:11:00]Write to MH i2c: E2 02 01 6B 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 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 59 00 00 00 F4 03 04 00 E8 7B 75 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 E6 96 01 00 35 04 06 00 E6 00 00 C1 [13:11:00]Write i2c OK [13:11:00]MH_I2C_Read... [13:11:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:11:01]Read from MH i2c: E2 [13:11:01]MH_I2C_Read... [13:11:01]Read from MH i2c: E2 03 00 [13:11:01]MH_I2C_Read... [13:11:01]Read from MH i2c: E2 03 00 6B 28 00 90 00 07 [13:11:01]RAPDU: 90 00 [13:11:01]wFMCommunicate OK [13:11:01]wFMCommunicate request_size=10 [13:11:01]MH_SAM_APDU [13:11:01]CAPDU: 80 0D 02 02 05 2A 87 D6 22 DF [13:11:01]Write to MH i2c: E2 0D 00 6C 28 80 0D 02 02 05 00 2A 87 D6 22 DF 00 00 A0 [13:11:01]Write i2c OK [13:11:01]MH_I2C_Read... [13:11:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:11:01]Read from MH i2c: E2 [13:11:01]MH_I2C_Read... [13:11:01]Read from MH i2c: E2 03 00 [13:11:01]MH_I2C_Read... [13:11:01]Read from MH i2c: E2 03 00 6C 28 00 90 00 08 [13:11:01]RAPDU: 90 00 [13:11:01]wFMCommunicate OK [13:11:01]wFMCommunicate request_size=4 [13:11:01]MH_SAM_APDU [13:11:01]CAPDU: 80 0D 03 02 [13:11:01]Write to MH i2c: E2 08 00 6D 28 80 0D 03 02 00 00 00 00 10 [13:11:01]Write i2c OK [13:11:01]MH_I2C_Read... [13:11:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:11:01]Read from MH i2c: E2 [13:11:01]MH_I2C_Read... [13:11:01]Read from MH i2c: E2 0B 00 [13:11:01]MH_I2C_Read... [13:11:01]Read from MH i2c: E2 0B 00 6D 28 00 C5 4B 86 90 92 19 AE C5 90 00 55 [13:11:01]RAPDU: C5 4B 86 90 92 19 AE C5 90 00 [13:11:01]wFMCommunicate OK [13:11:01]SAM_PROTO_SignData done [13:11:01]FM_MakeSignedData done [13:11:01]CreateOFDProtocolMessage [13:11:01]wFMCommunicate request_size=4 [13:11:01]MH_SAM_APDU [13:11:01]CAPDU: 80 11 00 00 [13:11:01]Write to MH i2c: E2 08 00 6E 28 80 11 00 00 00 00 00 00 10 [13:11:01]Write i2c OK [13:11:01]MH_I2C_Read... [13:11:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:11:01]Read from MH i2c: E2 [13:11:01]MH_I2C_Read... [13:11:01]Read from MH i2c: E2 17 00 [13:11:01]MH_I2C_Read... [13:11:01]Read from MH i2c: E2 17 00 6E 28 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:11: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:11:01]wFMCommunicate OK [13:11:01]CreateOFDProtocolMessage done [13:11:01]OFDSenderStorePacket 104166 [13:11:01]StoreOFDPacket docnum=104166 [13:11: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 D1 D8 07 01 7E CD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 59 00 00 00 F4 03 04 00 E8 7B 75 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 E6 96 01 00 35 04 06 00 E6 2A 87 D6 22 DF C5 4B 86 90 92 19 AE C5 [13:11:01]CheckFolder [13:11:01]dirname=/storage/ofd_packets [13:11:01]CheckFolder done [13:11:01]ProducePacketName [13:11:01]name=ofd_packets/00104166 [13:11:01]NVStorageSaveData ofd_packets/00104166 [13:11:01]File name is /storage/ofd_packets/00104166 [13:11:01]Write 301 bytes [13:11:01]NVStorageSaveData done [13:11:01]OFDSenderStorePacket done [13:11:01]KKMCreateOFDPacket done [13:11:01]NVStorageSaveData kkm_last_timestamp [13:11:01]File name is /storage/kkm_last_timestamp [13:11:01]Write 4 bytes [13:11:01]NVStorageSaveData done [13:11:01]ExternCall_PrintAddStr [13:11:01]wPrintStart [13:11:01]Write to MH i2c: 01 00 00 6F 28 97 [13:11:01]Write i2c OK [13:11:01]MH_I2C_Read... [13:11:01]Read from MH i2c: 01 [13:11:01]MH_I2C_Read... [13:11:01]Read from MH i2c: 01 07 00 [13:11:01]MH_I2C_Read... [13:11:01]Read from MH i2c: 01 07 00 6F 28 00 00 00 00 00 FF 0F AC [13:11:01]RasterBufferAndPrint [13:11:01]line Счет N : (1)673598 [13:11:01]line ИНН: 02508201610067 [13:11:01]line Контрольно-Кассовый Чек [13:11:01]line ПРОДАЖА [13:11:01]line ТРК (МРК, ГНК) : 32 [13:11:01]line Товар: 2710124130 [13:11:01]line Аи-92-К-5 [13:11:01]line 4.520 * 66.40 [13:11:01]line = 300.13 [13:11:01]line НДС 12% НСП 1% [13:11:01]line > о реализуемом товаре [13:11:01]line ОКРУГЛЕНИЕ: -0.13 [13:11:01]line ИТОГО: 300.00 [13:11:01]line Внесено: 300.00 [13:11:01]line СДАЧА: 0.00 [13:11:01]line НСП 1% : 2.66 [13:11:01]line НДС 12% : 31.87 [13:11:01]line Наличными: 300.00 [13:11:01]line Безнал.: 0.00 [13:11:01]line Место: АЗС № 120 "Партнер Нефть" [13:11:01]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [13:11:01]line СНО: Общий режим [13:11:01]line Чек 89 21.06.2024 13:11 [13:11:01]line Смена: 355 ФФД: 1.0 [13:11:01]line ЗНМ: 0300000164 [13:11:01]line РНМ: 0000000000092785 [13:11:01]line Версия ККМ: 001 [13:11:01]line ФМ: 0000000000875093 [13:11:01]line ФД: 104166 [13:11:01]line ФПД: 253070341972703 [13:11:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T131104&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104166&fm=253070341972703&tin=02508201610067®Number=0000000000092785&sum=30000 [13:11:01]written 0, free lines is 4095 [13:11:01]OFD Sender: Processing packet 104166 [packets to send 17, broken 16] [13:11:01]ProducePacketName [13:11:01]name=ofd_packets/00104166 [13:11:01]OFD Sender: To server: pG, [13:11:01]CommunicateWithHost lk.salyk.kg:30040 [13:11:01]ConnectInit lk.salyk.kg [13:11:01]Connected sock=10 [13:11: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 D1 D8 07 01 7E CD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 59 00 00 00 F4 03 04 00 E8 7B 75 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 E6 96 01 00 35 04 06 00 E6 2A 87 D6 22 DF C5 4B 86 90 92 19 AE C5 [13:11:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 B8 FF 47 00 C0 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 E6 96 01 00 F4 03 04 00 6A 22 75 66 B6 04 01 00 00 45 51 73 09 83 4F 82 5C [13:11:02]CommunicateWithHost err = 0 [13:11:02]CheckOFDResponse [13:11:02]1017 (14) - 77093643461234 [13:11:02]1041 (16) - 0000000000875093 [13:11:02]1040 (4) - 104166 [13:11:02]1012 (4) - 21.06.2024 06:49 [13:11:02]1206 (1) - 0 [13:11:02]OFD Sender: Remove packet 104166 [13:11:02]ProducePacketName [13:11:02]name=ofd_packets/00104166 [13:11:02]NVStorageDeleteData [13:11:02]Write to MH i2c: 01 00 00 9A 28 C2 [13:11:02]Write i2c OK [13:11:02]MH_I2C_Read... [13:11:02]Read from MH i2c: 01 [13:11:02]MH_I2C_Read... [13:11:02]Read from MH i2c: 01 07 00 [13:11:02]MH_I2C_Read... [13:11:02]Read from MH i2c: 01 07 00 9A 28 00 00 00 00 00 EE 0C C3 [13:11:02]RasterBufferAndPrint [13:11:02]line [13:11:02]line [13:11:02]line [13:11:02]line [13:11:02]line [13:11:02]written 0, free lines is 3316 [13:11:02]MH_Cut [13:11:02]Write to MH i2c: D1 01 00 A1 28 01 9B [13:11:02]Write i2c OK [13:11:02]MH_I2C_Read... [13:11:02]Read from MH i2c: D1 [13:11:02]MH_I2C_Read... [13:11:02]Read from MH i2c: D1 01 00 [13:11:02]MH_I2C_Read... [13:11:02]Read from MH i2c: D1 01 00 A1 28 00 9A [13:11:02]Write to MH i2c: 01 00 00 A2 28 CA [13:11:02]Write i2c OK [13:11:02]MH_I2C_Read... [13:11:02]OFD Sender: No OFD packet to send [13:11:02]*** Cut start [13:11:02]*** Partial cut [13:11:02]*** CUTSNS_PIN = 1 [13:11:02]*** CUTSNS_PIN = 0 [13:11:03]*** Brake cut motor [13:11:03]Read from MH i2c: 01 [13:11:03]MH_I2C_Read... [13:11:03]*** Stop cut motor [13:11:03]*** Cut end [13:11:03]Read from MH i2c: 01 07 00 [13:11:03]MH_I2C_Read... [13:11:03]Read from MH i2c: 01 07 00 A2 28 00 00 00 00 00 FF 0F DF [13:11:03]process_action close_receipt done [13:11:03]requested_data is exist [13:11:03]produce_requested_data [13:11:03]requested_item fm.sn is exist - process it [13:11:03]wFMCommunicate request_size=4 [13:11:03]MH_SAM_APDU [13:11:03]CAPDU: 80 11 00 00 [13:11:03]Write to MH i2c: E2 08 00 A3 28 80 11 00 00 00 00 00 00 45 [13:11:03]Write i2c OK [13:11:03]MH_I2C_Read... [13:11:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:11:03]Read from MH i2c: E2 [13:11:03]MH_I2C_Read... [13:11:03]Read from MH i2c: E2 17 00 [13:11:03]MH_I2C_Read... [13:11:03]Read from MH i2c: E2 17 00 A3 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 98 [13:11: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:11:03]wFMCommunicate OK [13:11:03]requested_item fd.num is exist - process it [13:11:03]SAM_PROTO_GetFieldsCounters [13:11:03]wFMCommunicate request_size=4 [13:11:03]MH_SAM_APDU [13:11:03]CAPDU: 80 13 00 00 [13:11:03]Write to MH i2c: E2 08 00 A4 28 80 13 00 00 00 00 00 00 48 [13:11:03]Write i2c OK [13:11:03]MH_I2C_Read... [13:11:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:11:03]Read from MH i2c: E2 [13:11:03]MH_I2C_Read... [13:11:03]Read from MH i2c: E2 62 00 [13:11:03]MH_I2C_Read... [13:11:03]Read from MH i2c: E2 62 00 A4 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 E6 96 01 00 0E 04 04 00 63 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 5B [13:11: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 E6 96 01 00 0E 04 04 00 63 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 [13:11:03]wFMCommunicate OK [13:11:03]SAM_PROTO_GetFieldsCounters done [13:11:03]requested_item shift.num is exist - process it [13:11:03]requested_item shift.opened is exist - process it [13:11:03]req_shift_opened [13:11:03]FM_GetShiftState [13:11:03]SAM_PROTO_GetShiftState [13:11:03]wFMCommunicate request_size=4 [13:11:03]MH_SAM_APDU [13:11:03]CAPDU: 80 13 01 00 [13:11:03]Write to MH i2c: E2 08 00 A5 28 80 13 01 00 00 00 00 00 4A [13:11:03]Write i2c OK [13:11:03]MH_I2C_Read... [13:11:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:11:03]Read from MH i2c: E2 [13:11:03]MH_I2C_Read... [13:11:03]Read from MH i2c: E2 0E 00 [13:11:03]MH_I2C_Read... [13:11:03]Read from MH i2c: E2 0E 00 A5 28 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 5D [13:11:03]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [13:11:03]wFMCommunicate OK [13:11:03]SAM_PROTO_GetShiftState done [13:11:03]FM_GetShiftState done [13:11:03]req_shift_opened done [13:11:03]requested_item shift.open_date is exist - process it [13:11:03]req_shift_open_date [13:11:03]req_shift_open_date done [13:11:03]produce_requested_data done [13:11:03]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104166,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [13:11:03]process_action_free close_receipt [13:11:03]json_value_free [13:11:03]json_value_free done [13:11:03]process_json_proto returns [13:11:03]Send response to host [13:11:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104166,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [13:11:03]free response buf [13:11:03]execute_script done [13:11:03]execute_script returns [13:11:03]free content buf [13:11:03]Sock 7.Close socket [13:11:03]Sock 7.Thread stoped [13:11:07]OFD Sender: No OFD packet to send [13:11:12]OFD Sender: No OFD packet to send [13:11:17]OFD Sender: No OFD packet to send [13:11:22]OFD Sender: No OFD packet to send [13:11:27]OFD Sender: No OFD packet to send [13:11:32]OFD Sender: No OFD packet to send [13:11:37]OFD Sender: No OFD packet to send [13:11:42]OFD Sender: No OFD packet to send [13:11:47]OFD Sender: No OFD packet to send [13:11:51]accept exits with 9 [13:11:51]New connection [13:11:51]New thread 3066858852 created [13:11:51]Thread 3066715492 joined [13:11:51]Waiting for new connection... [13:11:51] Sock 9.Parse request [13:11:51]Sock 9.Check first char [13:11:51]Sock 9.First char is OK [13:11:51]request: POST /json_proto HTTP/1.0 [13:11:51]Method: POST [13:11:51]URL: /json_proto [13:11:51]Method is POST - this is cgi request [13:11:51]url: /json_proto [13:11:51]query_string will be loaded in cgi processing [13:11:51]execute_cgi json_proto POST (null) [13:11:51]execute_cgi path=json_proto method=POST [13:11:51]POST find Content-Length [13:11:51]Host: 172.17.38.133:8080 [13:11:51]Content-Length: 687 [13:11:51]Content-Type: application/json [13:11:51] [13:11:51]POST finish read [13:11:51]Found Content-Length = 687 [13:11:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673597", "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.440, "sum" : 1490.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1490.00, "total" : 1490.00, "payments": [ { "type": 0, "sum" : 1490.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:11:51]execute_script... [13:11:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673597", "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.440, "sum" : 1490.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1490.00, "total" : 1490.00, "payments": [ { "type": 0, "sum" : 1490.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:11:51]POST & json_proto [13:11:51]process_json_proto [13:11:51]json parsed OK: [13:11:51]protocol is kg_v1.0 [13:11:51]action value=close_receipt [13:11:51]process_action close_receipt [13:11:51]cmd_close_receipt [13:11:51]MH_GetDate [13:11:51]Write to MH i2c: F0 00 00 A6 28 BD [13:11:51]Write i2c OK [13:11:51]MH_I2C_Read... [13:11:51]Read from MH i2c: F0 [13:11:51]MH_I2C_Read... [13:11:51]Read from MH i2c: F0 09 00 [13:11:51]MH_I2C_Read... [13:11:51]Read from MH i2c: F0 09 00 A6 28 00 1C 7C 75 66 BD 8F 7C 64 65 [13:11:51]GetLastDocTimeStamp 1718975464 [13:11:51]current date 1718975516 [13:11:51]FM_GetShiftState [13:11:51]SAM_PROTO_GetShiftState [13:11:51]wFMCommunicate request_size=4 [13:11:51]MH_SAM_APDU [13:11:51]CAPDU: 80 13 01 00 [13:11:51]Write to MH i2c: E2 08 00 A7 28 80 13 01 00 00 00 00 00 4C [13:11:51]Write i2c OK [13:11:51]MH_I2C_Read... [13:11:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:11:51]Read from MH i2c: E2 [13:11:51]MH_I2C_Read... [13:11:51]Read from MH i2c: E2 0E 00 [13:11:51]MH_I2C_Read... [13:11:51]Read from MH i2c: E2 0E 00 A7 28 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 5F [13:11:51]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [13:11:51]wFMCommunicate OK [13:11:51]SAM_PROTO_GetShiftState done [13:11:51]FM_GetShiftState done [13:11:51]opened in 1718929509 [13:11:51]opened+sec_in_day 1719015909 [13:11:51]quantity*price = 149007 [13:11:51]sum+1 = 149009 [13:11:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 1490.00 Внесено: 1490.00 СДАЧА: 0.00 НСП 1% : 13.19 НДС 12% : 158.24 Наличными: 1490.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 90 21.06.2024 13:11 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104167 ФПД: 248707998697977 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T131156&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104167&fm=248707998697977&tin=02508201610067®Number=0000000000092785&sum=149000 [13:11:52]StoreToDocumentArchive [13:11:52]shift 355 fd 104167 [13:11:52]save to /storage/0355/doc_00104167 [13:11:52]save last doc name /storage/0355/doc_00104167 to /storage/kkm_last_doc_name [13:11:52]save OK [13:11:52]Clear old archive folders... [13:11:52]ProcessDocumentItem done err = 0, tmpTLVsize=252 [13:11:52]tlvbuf is 0118B6E0 [13:11:52]SAM_PROTO_ClearQueue [13:11:52]wFMCommunicate request_size=4 [13:11:52]MH_SAM_APDU [13:11:52]CAPDU: 80 09 00 00 [13:11:52]Write to MH i2c: E2 08 00 B4 28 80 09 00 00 00 00 00 00 4E [13:11:52]Write i2c OK [13:11:52]MH_I2C_Read... [13:11:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:11:52]Read from MH i2c: E2 [13:11:52]MH_I2C_Read... [13:11:52]Read from MH i2c: E2 03 00 [13:11:52]MH_I2C_Read... [13:11:52]Read from MH i2c: E2 03 00 B4 28 00 90 00 50 [13:11:52]RAPDU: 90 00 [13:11:52]wFMCommunicate OK [13:11:52]SAM_PROTO_ClearQueue done [13:11:52]KKMCreateOFDPacket [13:11:52]OFDProtocolAddRootSTLVToBuf [13:11:52]FM_MakeSignedData [13:11:52]FM_MakeSignedData [13:11:52]SAM_PROTO_SignData [13:11:52]wFMCommunicate request_size=4 [13:11:52]MH_SAM_APDU [13:11:52]CAPDU: 80 0D 01 02 [13:11:52]Write to MH i2c: E2 08 00 B5 28 80 0D 01 02 00 00 00 00 56 [13:11:52]Write i2c OK [13:11:52]MH_I2C_Read... [13:11:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:11:52]Read from MH i2c: E2 [13:11:52]MH_I2C_Read... [13:11:52]Read from MH i2c: E2 03 00 [13:11:52]MH_I2C_Read... [13:11:52]Read from MH i2c: E2 03 00 B5 28 00 90 00 51 [13:11:52]RAPDU: 90 00 [13:11:52]wFMCommunicate OK [13:11:52]wFMCommunicate request_size=255 [13:11:52]MH_SAM_APDU [13:11:52]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 D8 4F 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 10 46 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 46 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 27 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D0 3D 00 00 00 00 07 04 06 00 08 46 02 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 1C 7C 75 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 E7 96 01 00 35 04 06 00 [13:11:52]Write to MH i2c: E2 02 01 B6 28 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 D8 4F 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 10 46 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 46 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 27 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D0 3D 00 00 00 00 07 04 06 00 08 46 02 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 1C 7C 75 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 E7 96 01 00 35 04 06 00 00 00 3E [13:11:52]Write i2c OK [13:11:52]MH_I2C_Read... [13:11:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:11:53]Read from MH i2c: E2 [13:11:53]MH_I2C_Read... [13:11:53]Read from MH i2c: E2 03 00 [13:11:53]MH_I2C_Read... [13:11:53]Read from MH i2c: E2 03 00 B6 28 00 90 00 52 [13:11:53]RAPDU: 90 00 [13:11:53]wFMCommunicate OK [13:11:53]wFMCommunicate request_size=11 [13:11:53]MH_SAM_APDU [13:11:53]CAPDU: 80 0D 02 02 06 E2 32 D7 EA 49 F9 [13:11:53]Write to MH i2c: E2 0E 00 B7 28 80 0D 02 02 06 00 E2 32 D7 EA 49 F9 00 00 7C [13:11:53]Write i2c OK [13:11:53]MH_I2C_Read... [13:11:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:11:53]Read from MH i2c: E2 [13:11:53]MH_I2C_Read... [13:11:53]Read from MH i2c: E2 03 00 [13:11:53]MH_I2C_Read... [13:11:53]Read from MH i2c: E2 03 00 B7 28 00 90 00 53 [13:11:53]RAPDU: 90 00 [13:11:53]wFMCommunicate OK [13:11:53]wFMCommunicate request_size=4 [13:11:53]MH_SAM_APDU [13:11:53]CAPDU: 80 0D 03 02 [13:11:53]Write to MH i2c: E2 08 00 B8 28 80 0D 03 02 00 00 00 00 5B [13:11:53]Write i2c OK [13:11:53]MH_I2C_Read... [13:11:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:11:53]Read from MH i2c: E2 [13:11:53]MH_I2C_Read... [13:11:53]Read from MH i2c: E2 0B 00 [13:11:53]MH_I2C_Read... [13:11:53]Read from MH i2c: E2 0B 00 B8 28 00 98 8E 14 11 A3 08 B7 DF 90 00 E8 [13:11:53]RAPDU: 98 8E 14 11 A3 08 B7 DF 90 00 [13:11:53]wFMCommunicate OK [13:11:53]SAM_PROTO_SignData done [13:11:53]FM_MakeSignedData done [13:11:53]CreateOFDProtocolMessage [13:11:53]wFMCommunicate request_size=4 [13:11:53]MH_SAM_APDU [13:11:53]CAPDU: 80 11 00 00 [13:11:53]Write to MH i2c: E2 08 00 B9 28 80 11 00 00 00 00 00 00 5B [13:11:53]Write i2c OK [13:11:53]MH_I2C_Read... [13:11:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:11:53]Read from MH i2c: E2 [13:11:53]MH_I2C_Read... [13:11:53]Read from MH i2c: E2 17 00 [13:11:53]MH_I2C_Read... [13:11:53]Read from MH i2c: E2 17 00 B9 28 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:11: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:11:53]wFMCommunicate OK [13:11:53]CreateOFDProtocolMessage done [13:11:53]OFDSenderStorePacket 104167 [13:11:53]StoreOFDPacket docnum=104167 [13:11: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 10 01 00 00 FA DC 08 01 BD F1 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 D8 4F 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 10 46 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 46 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 27 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D0 3D 00 00 00 00 07 04 06 00 08 46 02 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 1C 7C 75 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 E7 96 01 00 35 04 06 00 E2 32 D7 EA 49 F9 98 8E 14 11 A3 08 B7 DF [13:11:53]CheckFolder [13:11:53]dirname=/storage/ofd_packets [13:11:53]CheckFolder done [13:11:53]ProducePacketName [13:11:53]name=ofd_packets/00104167 [13:11:53]NVStorageSaveData ofd_packets/00104167 [13:11:53]File name is /storage/ofd_packets/00104167 [13:11:53]Write 302 bytes [13:11:53]NVStorageSaveData done [13:11:53]OFDSenderStorePacket done [13:11:53]KKMCreateOFDPacket done [13:11:53]NVStorageSaveData kkm_last_timestamp [13:11:53]File name is /storage/kkm_last_timestamp [13:11:53]Write 4 bytes [13:11:53]NVStorageSaveData done [13:11:53]ExternCall_PrintAddStr [13:11:53]wPrintStart [13:11:53]Write to MH i2c: 01 00 00 BA 28 E2 [13:11:53]Write i2c OK [13:11:53]MH_I2C_Read... [13:11:53]Read from MH i2c: 01 [13:11:53]MH_I2C_Read... [13:11:53]Read from MH i2c: 01 07 00 [13:11:53]MH_I2C_Read... [13:11:53]Read from MH i2c: 01 07 00 BA 28 00 00 00 00 00 FF 0F F7 [13:11:53]RasterBufferAndPrint [13:11:53]line Счет N : (1)673597 [13:11:53]line ИНН: 02508201610067 [13:11:53]line Контрольно-Кассовый Чек [13:11:53]line ПРОДАЖА [13:11:53]line ТРК (МРК, ГНК) : 21 [13:11:53]line Товар: 2710194210 [13:11:53]line ДТ(л)-К-5 [13:11:53]line 20.440 * 72.90 [13:11:53]line = 1490.08 [13:11:53]line НДС 12% НСП 1% [13:11:53]line > о реализуемом товаре [13:11:53]line ОКРУГЛЕНИЕ: -0.08 [13:11:53]line ИТОГО: 1490.00 [13:11:53]line Внесено: 1490.00 [13:11:53]line СДАЧА: 0.00 [13:11:53]line НСП 1% : 13.19 [13:11:53]line НДС 12% : 158.24 [13:11:53]line Наличными: 1490.00 [13:11:53]line Безнал.: 0.00 [13:11:53]line Место: АЗС № 120 "Партнер Нефть" [13:11:53]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [13:11:53]line СНО: Общий режим [13:11:53]line Чек 90 21.06.2024 13:11 [13:11:53]line Смена: 355 ФФД: 1.0 [13:11:53]line ЗНМ: 0300000164 [13:11:53]line РНМ: 0000000000092785 [13:11:53]line Версия ККМ: 001 [13:11:53]line ФМ: 0000000000875093 [13:11:53]line ФД: 104167 [13:11:53]line ФПД: 248707998697977 [13:11:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T131156&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104167&fm=248707998697977&tin=02508201610067®Number=0000000000092785&sum=149000 [13:11:53]OFD Sender: Processing packet 104167 [packets to send 17, broken 16] [13:11:53]ProducePacketName [13:11:53]name=ofd_packets/00104167 [13:11:53]OFD Sender: To server: pG, [13:11:53]CommunicateWithHost lk.salyk.kg:30040 [13:11:53]ConnectInit lk.salyk.kg [13:11:53]written 0, free lines is 4095 [13:11:53]Connected sock=10 [13:11:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 FA DC 08 01 BD F1 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 D8 4F 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 10 46 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 46 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 27 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D0 3D 00 00 00 00 07 04 06 00 08 46 02 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 1C 7C 75 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 E7 96 01 00 35 04 06 00 E2 32 D7 EA 49 F9 98 8E 14 11 A3 08 B7 DF [13:11: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 85 2C 47 00 0C 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 E7 96 01 00 F4 03 04 00 9E 22 75 66 B6 04 01 00 00 28 E2 0C E9 D9 30 F6 6D [13:11:53]CommunicateWithHost err = 0 [13:11:53]CheckOFDResponse [13:11:53]1017 (14) - 77093643461234 [13:11:53]1041 (16) - 0000000000875093 [13:11:53]1040 (4) - 104167 [13:11:53]1012 (4) - 21.06.2024 06:50 [13:11:53]1206 (1) - 0 [13:11:53]OFD Sender: Remove packet 104167 [13:11:53]ProducePacketName [13:11:53]name=ofd_packets/00104167 [13:11:53]NVStorageDeleteData [13:11:54]Write to MH i2c: 01 00 00 E5 28 0D [13:11:54]Write i2c OK [13:11:54]MH_I2C_Read... [13:11:54]Read from MH i2c: 01 [13:11:54]MH_I2C_Read... [13:11:54]Read from MH i2c: 01 07 00 [13:11:54]MH_I2C_Read... [13:11:54]Read from MH i2c: 01 07 00 E5 28 00 00 00 00 00 F3 0C 13 [13:11:54]RasterBufferAndPrint [13:11:54]line [13:11:54]line [13:11:54]line [13:11:54]line [13:11:54]line [13:11:54]written 0, free lines is 3321 [13:11:54]MH_Cut [13:11:54]Write to MH i2c: D1 01 00 EC 28 01 E6 [13:11:54]Write i2c OK [13:11:54]MH_I2C_Read... [13:11:54]Read from MH i2c: D1 [13:11:54]MH_I2C_Read... [13:11:54]Read from MH i2c: D1 01 00 [13:11:54]MH_I2C_Read... [13:11:54]Read from MH i2c: D1 01 00 EC 28 00 E5 [13:11:54]Write to MH i2c: 01 00 00 ED 28 15 [13:11:54]Write i2c OK [13:11:54]MH_I2C_Read... [13:11:54]OFD Sender: No OFD packet to send [13:11:54]*** Cut start [13:11:54]*** Partial cut [13:11:54]*** CUTSNS_PIN = 1 [13:11:54]*** CUTSNS_PIN = 0 [13:11:54]*** Brake cut motor [13:11:55]Read from MH i2c: 01 [13:11:55]MH_I2C_Read... [13:11:55]*** Stop cut motor [13:11:55]*** Cut end [13:11:55]Read from MH i2c: 01 07 00 [13:11:55]MH_I2C_Read... [13:11:55]Read from MH i2c: 01 07 00 ED 28 00 00 00 00 00 FF 0F 2A [13:11:55]process_action close_receipt done [13:11:55]requested_data is exist [13:11:55]produce_requested_data [13:11:55]requested_item fm.sn is exist - process it [13:11:55]wFMCommunicate request_size=4 [13:11:55]MH_SAM_APDU [13:11:55]CAPDU: 80 11 00 00 [13:11:55]Write to MH i2c: E2 08 00 EE 28 80 11 00 00 00 00 00 00 90 [13:11:55]Write i2c OK [13:11:55]MH_I2C_Read... [13:11:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:11:55]Read from MH i2c: E2 [13:11:55]MH_I2C_Read... [13:11:55]Read from MH i2c: E2 17 00 [13:11:55]MH_I2C_Read... [13:11:55]Read from MH i2c: E2 17 00 EE 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 E3 [13:11:55]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:55]wFMCommunicate OK [13:11:55]requested_item fd.num is exist - process it [13:11:55]SAM_PROTO_GetFieldsCounters [13:11:55]wFMCommunicate request_size=4 [13:11:55]MH_SAM_APDU [13:11:55]CAPDU: 80 13 00 00 [13:11:55]Write to MH i2c: E2 08 00 EF 28 80 13 00 00 00 00 00 00 93 [13:11:55]Write i2c OK [13:11:55]MH_I2C_Read... [13:11:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:11:55]Read from MH i2c: E2 [13:11:55]MH_I2C_Read... [13:11:55]Read from MH i2c: E2 62 00 [13:11:55]MH_I2C_Read... [13:11:55]Read from MH i2c: E2 62 00 EF 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 E7 96 01 00 0E 04 04 00 63 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 AA [13:11: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 E7 96 01 00 0E 04 04 00 63 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 [13:11:55]wFMCommunicate OK [13:11:55]SAM_PROTO_GetFieldsCounters done [13:11:55]requested_item shift.num is exist - process it [13:11:55]requested_item shift.opened is exist - process it [13:11:55]req_shift_opened [13:11:55]FM_GetShiftState [13:11:55]SAM_PROTO_GetShiftState [13:11:55]wFMCommunicate request_size=4 [13:11:55]MH_SAM_APDU [13:11:55]CAPDU: 80 13 01 00 [13:11:55]Write to MH i2c: E2 08 00 F0 28 80 13 01 00 00 00 00 00 95 [13:11:55]Write i2c OK [13:11:55]MH_I2C_Read... [13:11:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:11:55]Read from MH i2c: E2 [13:11:55]MH_I2C_Read... [13:11:55]Read from MH i2c: E2 0E 00 [13:11:55]MH_I2C_Read... [13:11:55]Read from MH i2c: E2 0E 00 F0 28 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 A8 [13:11:55]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [13:11:55]wFMCommunicate OK [13:11:55]SAM_PROTO_GetShiftState done [13:11:55]FM_GetShiftState done [13:11:55]req_shift_opened done [13:11:55]requested_item shift.open_date is exist - process it [13:11:55]req_shift_open_date [13:11:55]req_shift_open_date done [13:11:55]produce_requested_data done [13:11:55]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104167,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [13:11:55]process_action_free close_receipt [13:11:55]json_value_free [13:11:55]json_value_free done [13:11:55]process_json_proto returns [13:11:55]Send response to host [13:11:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104167,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [13:11:55]free response buf [13:11:55]execute_script done [13:11:55]execute_script returns [13:11:55]free content buf [13:11:55]Sock 9.Close socket [13:11:55]Sock 9.Thread stoped [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:55]accept exits with 7 [13:16:55]New connection [13:16:55]New thread 3066715492 created [13:16:55]Thread 3066858852 joined [13:16:55]Waiting for new connection... [13:16:55] Sock 7.Parse request [13:16:55]Sock 7.Check first char [13:16:55]Sock 7.First char is OK [13:16:55]request: POST /json_proto HTTP/1.0 [13:16:55]Method: POST [13:16:55]URL: /json_proto [13:16:55]Method is POST - this is cgi request [13:16:55]url: /json_proto [13:16:55]query_string will be loaded in cgi processing [13:16:55]execute_cgi json_proto POST (null) [13:16:55]execute_cgi path=json_proto method=POST [13:16:55]POST find Content-Length [13:16:55]Host: 172.17.38.133:8080 [13:16:55]Content-Length: 682 [13:16:55]Content-Type: application/json [13:16:55] [13:16:55]POST finish read [13:16:55]Found Content-Length = 682 [13:16:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673599", "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.370, "sum" : 3500.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3500.00, "total" : 3500.00, "payments": [ { "type": 0, "sum" : 3500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:16:55]execute_script... [13:16: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)673599", "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.370, "sum" : 3500.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3500.00, "total" : 3500.00, "payments": [ { "type": 0, "sum" : 3500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:16:55]POST & json_proto [13:16:55]process_json_proto [13:16:55]json parsed OK: [13:16:55]protocol is kg_v1.0 [13:16:55]action value=close_receipt [13:16:55]process_action close_receipt [13:16:55]cmd_close_receipt [13:16:55]MH_GetDate [13:16:55]Write to MH i2c: F0 00 00 F1 28 08 [13:16:55]Write i2c OK [13:16:55]MH_I2C_Read... [13:16:55]Read from MH i2c: F0 [13:16:55]MH_I2C_Read... [13:16:55]Read from MH i2c: F0 09 00 [13:16:55]MH_I2C_Read... [13:16:55]Read from MH i2c: F0 09 00 F1 28 00 4B 7D 75 66 BD 8F 7C 64 E0 [13:16:55]GetLastDocTimeStamp 1718975516 [13:16:55]current date 1718975819 [13:16:55]FM_GetShiftState [13:16:55]SAM_PROTO_GetShiftState [13:16:55]wFMCommunicate request_size=4 [13:16:55]MH_SAM_APDU [13:16:55]CAPDU: 80 13 01 00 [13:16:55]Write to MH i2c: E2 08 00 F2 28 80 13 01 00 00 00 00 00 97 [13:16:55]Write i2c OK [13:16:55]MH_I2C_Read... [13:16:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:16:55]Read from MH i2c: E2 [13:16:55]MH_I2C_Read... [13:16:55]Read from MH i2c: E2 0E 00 [13:16:55]MH_I2C_Read... [13:16:55]Read from MH i2c: E2 0E 00 F2 28 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 AA [13:16:55]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [13:16:55]wFMCommunicate OK [13:16:55]SAM_PROTO_GetShiftState done [13:16:55]FM_GetShiftState done [13:16:55]opened in 1718929509 [13:16:55]opened+sec_in_day 1719015909 [13:16:55]quantity*price = 350064 [13:16:55]sum+1 = 350065 [13:16:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.64 ИТОГО: 3500.00 Внесено: 3500.00 СДАЧА: 0.00 НСП 1% : 30.98 НДС 12% : 371.75 Наличными: 3500.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 91 21.06.2024 13:16 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104168 ФПД: 123447134053947 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T131659&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104168&fm=123447134053947&tin=02508201610067®Number=0000000000092785&sum=350000 [13:16:56]StoreToDocumentArchive [13:16:56]shift 355 fd 104168 [13:16:56]save to /storage/0355/doc_00104168 [13:16:56]save last doc name /storage/0355/doc_00104168 to /storage/kkm_last_doc_name [13:16:56]save OK [13:16:56]Clear old archive folders... [13:16:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:16:56]tlvbuf is 0110FEE0 [13:16:56]SAM_PROTO_ClearQueue [13:16:56]wFMCommunicate request_size=4 [13:16:56]MH_SAM_APDU [13:16:56]CAPDU: 80 09 00 00 [13:16:56]Write to MH i2c: E2 08 00 FF 28 80 09 00 00 00 00 00 00 99 [13:16:56]Write i2c OK [13:16:56]MH_I2C_Read... [13:16:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:16:56]Read from MH i2c: E2 [13:16:56]MH_I2C_Read... [13:16:56]Read from MH i2c: E2 03 00 [13:16:56]MH_I2C_Read... [13:16:56]Read from MH i2c: E2 03 00 FF 28 00 90 00 9B [13:16:56]RAPDU: 90 00 [13:16:56]wFMCommunicate OK [13:16:56]SAM_PROTO_ClearQueue done [13:16:56]KKMCreateOFDPacket [13:16:56]OFDProtocolAddRootSTLVToBuf [13:16:56]FM_MakeSignedData [13:16:56]FM_MakeSignedData [13:16:56]SAM_PROTO_SignData [13:16:56]wFMCommunicate request_size=4 [13:16:56]MH_SAM_APDU [13:16:56]CAPDU: 80 0D 01 02 [13:16:56]Write to MH i2c: E2 08 00 00 29 80 0D 01 02 00 00 00 00 A2 [13:16:56]Write i2c OK [13:16:56]MH_I2C_Read... [13:16:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:16:56]Read from MH i2c: E2 [13:16:56]MH_I2C_Read... [13:16:56]Read from MH i2c: E2 03 00 [13:16:56]MH_I2C_Read... [13:16:56]Read from MH i2c: E2 03 00 00 29 00 90 00 9D [13:16:56]RAPDU: 90 00 [13:16:56]wFMCommunicate OK [13:16:56]wFMCommunicate request_size=255 [13:16:56]MH_SAM_APDU [13:16: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 0A B9 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 70 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 91 00 00 00 00 07 04 06 00 30 57 05 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 4B 7D 75 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 E8 96 01 00 35 04 06 00 70 [13:16:56]Write to MH i2c: E2 02 01 01 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 0A B9 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 70 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 91 00 00 00 00 07 04 06 00 30 57 05 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 4B 7D 75 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 E8 96 01 00 35 04 06 00 70 00 00 96 [13:16:56]Write i2c OK [13:16:56]MH_I2C_Read... [13:16:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:16:56]Read from MH i2c: E2 [13:16:56]MH_I2C_Read... [13:16:56]Read from MH i2c: E2 03 00 [13:16:56]MH_I2C_Read... [13:16:56]Read from MH i2c: E2 03 00 01 29 00 90 00 9E [13:16:56]RAPDU: 90 00 [13:16:56]wFMCommunicate OK [13:16:56]wFMCommunicate request_size=10 [13:16:56]MH_SAM_APDU [13:16:56]CAPDU: 80 0D 02 02 05 46 46 92 E6 3B [13:16:56]Write to MH i2c: E2 0D 00 02 29 80 0D 02 02 05 00 46 46 92 E6 3B 00 00 EE [13:16:56]Write i2c OK [13:16:56]MH_I2C_Read... [13:16:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:16:56]Read from MH i2c: E2 [13:16:56]MH_I2C_Read... [13:16:56]Read from MH i2c: E2 03 00 [13:16:56]MH_I2C_Read... [13:16:56]Read from MH i2c: E2 03 00 02 29 00 90 00 9F [13:16:56]RAPDU: 90 00 [13:16:56]wFMCommunicate OK [13:16:56]wFMCommunicate request_size=4 [13:16:56]MH_SAM_APDU [13:16:56]CAPDU: 80 0D 03 02 [13:16:56]Write to MH i2c: E2 08 00 03 29 80 0D 03 02 00 00 00 00 A7 [13:16:56]Write i2c OK [13:16:56]MH_I2C_Read... [13:16:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:16:56]Read from MH i2c: E2 [13:16:56]MH_I2C_Read... [13:16:56]Read from MH i2c: E2 0B 00 [13:16:56]MH_I2C_Read... [13:16:56]Read from MH i2c: E2 0B 00 03 29 00 CC EA 94 F5 B5 C8 39 7F 90 00 1C [13:16:56]RAPDU: CC EA 94 F5 B5 C8 39 7F 90 00 [13:16:56]wFMCommunicate OK [13:16:56]SAM_PROTO_SignData done [13:16:56]FM_MakeSignedData done [13:16:56]CreateOFDProtocolMessage [13:16:56]wFMCommunicate request_size=4 [13:16:56]MH_SAM_APDU [13:16:56]CAPDU: 80 11 00 00 [13:16:56]Write to MH i2c: E2 08 00 04 29 80 11 00 00 00 00 00 00 A7 [13:16:56]Write i2c OK [13:16:56]MH_I2C_Read... [13:16:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:16:56]Read from MH i2c: E2 [13:16:56]MH_I2C_Read... [13:16:56]Read from MH i2c: E2 17 00 [13:16:56]MH_I2C_Read... [13:16:56]Read from MH i2c: E2 17 00 04 29 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:16:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [13:16:56]wFMCommunicate OK [13:16:56]CreateOFDProtocolMessage done [13:16:56]OFDSenderStorePacket 104168 [13:16:56]StoreOFDPacket docnum=104168 [13:16: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 8C 3E 07 01 77 32 5A 03 01 00 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 0A B9 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 70 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 91 00 00 00 00 07 04 06 00 30 57 05 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 4B 7D 75 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 E8 96 01 00 35 04 06 00 70 46 46 92 E6 3B CC EA 94 F5 B5 C8 39 7F [13:16:56]CheckFolder [13:16:56]dirname=/storage/ofd_packets [13:16:56]CheckFolder done [13:16:56]ProducePacketName [13:16:56]name=ofd_packets/00104168 [13:16:56]NVStorageSaveData ofd_packets/00104168 [13:16:56]File name is /storage/ofd_packets/00104168 [13:16:56]Write 301 bytes [13:16:56]NVStorageSaveData done [13:16:56]OFDSenderStorePacket done [13:16:56]KKMCreateOFDPacket done [13:16:56]NVStorageSaveData kkm_last_timestamp [13:16:56]File name is /storage/kkm_last_timestamp [13:16:56]Write 4 bytes [13:16:56]NVStorageSaveData done [13:16:56]ExternCall_PrintAddStr [13:16:56]wPrintStart [13:16:56]Write to MH i2c: 01 00 00 05 29 2E [13:16:56]Write i2c OK [13:16:56]MH_I2C_Read... [13:16:56]Read from MH i2c: 01 [13:16:56]MH_I2C_Read... [13:16:56]Read from MH i2c: 01 07 00 [13:16:56]MH_I2C_Read... [13:16:56]Read from MH i2c: 01 07 00 05 29 00 00 00 00 00 FF 0F 43 [13:16:56]RasterBufferAndPrint [13:16:56]line Счет N : (1)673599 [13:16:56]line ИНН: 02508201610067 [13:16:56]line Контрольно-Кассовый Чек [13:16:56]line ПРОДАЖА [13:16:56]line ТРК (МРК, ГНК) : 41 [13:16:56]line Товар: 2710124500 [13:16:56]line Аи-95-К-5 [13:16:56]line 47.370 * 73.90 [13:16:56]line = 3500.64 [13:16:56]line НДС 12% НСП 1% [13:16:56]line > о реализуемом товаре [13:16:56]line ОКРУГЛЕНИЕ: -0.64 [13:16:56]line ИТОГО: 3500.00 [13:16:56]line Внесено: 3500.00 [13:16:56]line СДАЧА: 0.00 [13:16:56]line НСП 1% : 30.98 [13:16:56]line НДС 12% : 371.75 [13:16:56]line Наличными: 3500.00 [13:16:56]line Безнал.: 0.00 [13:16:56]line Место: АЗС № 120 "Партнер Нефть" [13:16:56]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [13:16:56]line СНО: Общий режим [13:16:56]line Чек 91 21.06.2024 13:16 [13:16:56]line Смена: 355 ФФД: 1.0 [13:16:56]line ЗНМ: 0300000164 [13:16:56]line РНМ: 0000000000092785 [13:16:56]line Версия ККМ: 001 [13:16:56]line ФМ: 0000000000875093 [13:16:56]line ФД: 104168 [13:16:56]line ФПД: 123447134053947 [13:16:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T131659&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104168&fm=123447134053947&tin=02508201610067®Number=0000000000092785&sum=350000 [13:16:57]OFD Sender: Processing packet 104168 [packets to send 17, broken 16] [13:16:57]ProducePacketName [13:16:57]name=ofd_packets/00104168 [13:16:57]OFD Sender: To server: pG, [13:16:57]CommunicateWithHost lk.salyk.kg:30040 [13:16:57]ConnectInit lk.salyk.kg [13:16:57]written 0, free lines is 4095 [13:16:57]Connected sock=11 [13:16: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 8C 3E 07 01 77 32 5A 03 01 00 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 0A B9 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 70 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 91 00 00 00 00 07 04 06 00 30 57 05 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 4B 7D 75 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 E8 96 01 00 35 04 06 00 70 46 46 92 E6 3B CC EA 94 F5 B5 C8 39 7F [13:16:57]Write to MH i2c: 01 00 00 30 29 59 [13:16:57]Write i2c OK [13:16:57]MH_I2C_Read... [13:16:57]Read from MH i2c: 01 [13:16:57]MH_I2C_Read... [13:16:57]Read from MH i2c: 01 07 00 [13:16:57]MH_I2C_Read... [13:16:57]Read from MH i2c: 01 07 00 30 29 00 00 00 00 00 F9 0C 65 [13:16:57]RasterBufferAndPrint [13:16:57]line [13:16:57]line [13:16:57]line [13:16:57]line [13:16:57]line [13:16:57]written 0, free lines is 3328 [13:16:57]MH_Cut [13:16:57]Write to MH i2c: D1 01 00 37 29 01 32 [13:16:57]Write i2c OK [13:16:57]MH_I2C_Read... [13:16:57]Read from MH i2c: D1 [13:16:57]MH_I2C_Read... [13:16:57]Read from MH i2c: D1 01 00 [13:16:57]MH_I2C_Read... [13:16:57]Read from MH i2c: D1 01 00 37 29 00 31 [13:16:57]Write to MH i2c: 01 00 00 38 29 61 [13:16:57]Write i2c OK [13:16:57]MH_I2C_Read... [13:16: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 E4 8D 47 00 AF 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 E8 96 01 00 F4 03 04 00 CE 23 75 66 B6 04 01 00 00 14 E9 75 4A 9B F4 ED 88 [13:16:57]CommunicateWithHost err = 0 [13:16:57]CheckOFDResponse [13:16:57]1017 (14) - 77093643461234 [13:16:57]1041 (16) - 0000000000875093 [13:16:57]1040 (4) - 104168 [13:16:57]1012 (4) - 21.06.2024 06:55 [13:16:57]1206 (1) - 0 [13:16:57]OFD Sender: Remove packet 104168 [13:16:57]ProducePacketName [13:16:57]name=ofd_packets/00104168 [13:16:57]NVStorageDeleteData [13:16:58]OFD Sender: No OFD packet to send [13:16:58]*** Cut start [13:16:58]*** Partial cut [13:16:58]*** CUTSNS_PIN = 1 [13:16:58]*** CUTSNS_PIN = 0 [13:16:58]*** Brake cut motor [13:16:58]Read from MH i2c: 01 [13:16:58]MH_I2C_Read... [13:16:58]*** Stop cut motor [13:16:58]*** Cut end [13:16:58]Read from MH i2c: 01 07 00 [13:16:58]MH_I2C_Read... [13:16:58]Read from MH i2c: 01 07 00 38 29 00 00 00 00 00 FF 0F 76 [13:16:58]process_action close_receipt done [13:16:58]requested_data is exist [13:16:58]produce_requested_data [13:16:58]requested_item fm.sn is exist - process it [13:16:58]wFMCommunicate request_size=4 [13:16:58]MH_SAM_APDU [13:16:58]CAPDU: 80 11 00 00 [13:16:58]Write to MH i2c: E2 08 00 39 29 80 11 00 00 00 00 00 00 DC [13:16:58]Write i2c OK [13:16:58]MH_I2C_Read... [13:16:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:16:58]Read from MH i2c: E2 [13:16:58]MH_I2C_Read... [13:16:58]Read from MH i2c: E2 17 00 [13:16:58]MH_I2C_Read... [13:16:58]Read from MH i2c: E2 17 00 39 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 2F [13:16:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [13:16:58]wFMCommunicate OK [13:16:58]requested_item fd.num is exist - process it [13:16:58]SAM_PROTO_GetFieldsCounters [13:16:58]wFMCommunicate request_size=4 [13:16:58]MH_SAM_APDU [13:16:58]CAPDU: 80 13 00 00 [13:16:58]Write to MH i2c: E2 08 00 3A 29 80 13 00 00 00 00 00 00 DF [13:16:58]Write i2c OK [13:16:58]MH_I2C_Read... [13:16:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:16:59]Read from MH i2c: E2 [13:16:59]MH_I2C_Read... [13:16:59]Read from MH i2c: E2 62 00 [13:16:59]MH_I2C_Read... [13:16:59]Read from MH i2c: E2 62 00 3A 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 E8 96 01 00 0E 04 04 00 63 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 FA [13:16: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 E8 96 01 00 0E 04 04 00 63 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:16:59]wFMCommunicate OK [13:16:59]SAM_PROTO_GetFieldsCounters done [13:16:59]requested_item shift.num is exist - process it [13:16:59]requested_item shift.opened is exist - process it [13:16:59]req_shift_opened [13:16:59]FM_GetShiftState [13:16:59]SAM_PROTO_GetShiftState [13:16:59]wFMCommunicate request_size=4 [13:16:59]MH_SAM_APDU [13:16:59]CAPDU: 80 13 01 00 [13:16:59]Write to MH i2c: E2 08 00 3B 29 80 13 01 00 00 00 00 00 E1 [13:16:59]Write i2c OK [13:16:59]MH_I2C_Read... [13:16:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:16:59]Read from MH i2c: E2 [13:16:59]MH_I2C_Read... [13:16:59]Read from MH i2c: E2 0E 00 [13:16:59]MH_I2C_Read... [13:16:59]Read from MH i2c: E2 0E 00 3B 29 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 F4 [13:16:59]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [13:16:59]wFMCommunicate OK [13:16:59]SAM_PROTO_GetShiftState done [13:16:59]FM_GetShiftState done [13:16:59]req_shift_opened done [13:16:59]requested_item shift.open_date is exist - process it [13:16:59]req_shift_open_date [13:16:59]req_shift_open_date done [13:16:59]produce_requested_data done [13:16:59]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104168,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [13:16:59]process_action_free close_receipt [13:16:59]json_value_free [13:16:59]json_value_free done [13:16:59]process_json_proto returns [13:16:59]Send response to host [13:16:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104168,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [13:16:59]free response buf [13:16:59]execute_script done [13:16:59]execute_script returns [13:16:59]free content buf [13:16:59]Sock 7.Close socket [13:16:59]Sock 7.Thread stoped [13:17:03]OFD Sender: No OFD packet to send [13:17:08]OFD Sender: No OFD packet to send [13:17:13]OFD Sender: No OFD packet to send [13:17:18]OFD Sender: No OFD packet to send [13:17:23]OFD Sender: No OFD packet to send [13:17:28]OFD Sender: No OFD packet to send [13:17:33]OFD Sender: No OFD packet to send [13:17:38]OFD Sender: No OFD packet to send [13:17:43]OFD Sender: No OFD packet to send [13:17:48]OFD Sender: No OFD packet to send [13:17:53]OFD Sender: No OFD packet to send [13:17:58]OFD Sender: No OFD packet to send [13:18:03]OFD Sender: No OFD packet to send [13:18:08]OFD Sender: No OFD packet to send [13:18:13]OFD Sender: No OFD packet to send [13:18:18]OFD Sender: No OFD packet to send [13:18:23]OFD Sender: No OFD packet to send [13:18:28]OFD Sender: No OFD packet to send [13:18:33]OFD Sender: No OFD packet to send [13:18:38]OFD Sender: No OFD packet to send [13:18:43]OFD Sender: No OFD packet to send [13:18:48]OFD Sender: No OFD packet to send [13:18:53]OFD Sender: No OFD packet to send [13:18:58]OFD Sender: No OFD packet to send [13:19:03]OFD Sender: No OFD packet to send [13:19:08]OFD Sender: No OFD packet to send [13:19:13]OFD Sender: No OFD packet to send [13:19:18]OFD Sender: No OFD packet to send [13:19:23]OFD Sender: No OFD packet to send [13:19:28]OFD Sender: No OFD packet to send [13:19:33]OFD Sender: No OFD packet to send [13:19:38]OFD Sender: No OFD packet to send [13:19:43]OFD Sender: No OFD packet to send [13:19:48]OFD Sender: No OFD packet to send [13:19:53]OFD Sender: No OFD packet to send [13:19:58]OFD Sender: No OFD packet to send [13:20:03]OFD Sender: No OFD packet to send [13:20:08]OFD Sender: No OFD packet to send [13:20:13]OFD Sender: No OFD packet to send [13:20:18]OFD Sender: No OFD packet to send [13:20:23]OFD Sender: No OFD packet to send [13:20:28]OFD Sender: No OFD packet to send [13:20:33]OFD Sender: No OFD packet to send [13:20:38]OFD Sender: No OFD packet to send [13:20:43]OFD Sender: No OFD packet to send [13:20:48]OFD Sender: No OFD packet to send [13:20:53]OFD Sender: No OFD packet to send [13:20:58]OFD Sender: No OFD packet to send [13:21:03]OFD Sender: No OFD packet to send [13:21:08]OFD Sender: No OFD packet to send [13:21:13]OFD Sender: No OFD packet to send [13:21:18]OFD Sender: No OFD packet to send [13:21:23]OFD Sender: No OFD packet to send [13:21:28]OFD Sender: No OFD packet to send [13:21:33]OFD Sender: No OFD packet to send [13:21:38]OFD Sender: No OFD packet to send [13:21:43]OFD Sender: No OFD packet to send [13:21:48]OFD Sender: No OFD packet to send [13:21:53]OFD Sender: No OFD packet to send [13:21:58]OFD Sender: No OFD packet to send [13:22:03]OFD Sender: No OFD packet to send [13:22:08]OFD Sender: No OFD packet to send [13:22:13]OFD Sender: No OFD packet to send [13:22:18]OFD Sender: No OFD packet to send [13:22:23]OFD Sender: No OFD packet to send [13:22:28]OFD Sender: No OFD packet to send [13:22:33]OFD Sender: No OFD packet to send [13:22:38]OFD Sender: No OFD packet to send [13:22:43]OFD Sender: No OFD packet to send [13:22:44]accept exits with 9 [13:22:44]New connection [13:22:44]New thread 3066858852 created [13:22:44]Thread 3066715492 joined [13:22:44]Waiting for new connection... [13:22:44] Sock 9.Parse request [13:22:44]Sock 9.Check first char [13:22:44]Sock 9.First char is OK [13:22:44]request: POST /json_proto HTTP/1.0 [13:22:44]Method: POST [13:22:44]URL: /json_proto [13:22:44]Method is POST - this is cgi request [13:22:44]url: /json_proto [13:22:44]query_string will be loaded in cgi processing [13:22:44]execute_cgi json_proto POST (null) [13:22:44]execute_cgi path=json_proto method=POST [13:22:44]POST find Content-Length [13:22:44]Host: 172.17.38.133:8080 [13:22:44]Content-Length: 682 [13:22:44]Content-Type: application/json [13:22:44] [13:22:44]POST finish read [13:22:44]Found Content-Length = 682 [13:22:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673600", "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:22:44]execute_script... [13:22: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)673600", "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:22:44]POST & json_proto [13:22:44]process_json_proto [13:22:44]json parsed OK: [13:22:44]protocol is kg_v1.0 [13:22:44]action value=close_receipt [13:22:44]process_action close_receipt [13:22:44]cmd_close_receipt [13:22:44]MH_GetDate [13:22:44]Write to MH i2c: F0 00 00 3C 29 54 [13:22:44]Write i2c OK [13:22:44]MH_I2C_Read... [13:22:44]Read from MH i2c: F0 [13:22:44]MH_I2C_Read... [13:22:44]Read from MH i2c: F0 09 00 [13:22:44]MH_I2C_Read... [13:22:44]Read from MH i2c: F0 09 00 3C 29 00 A8 7E 75 66 BD 8F 7C 64 8A [13:22:44]GetLastDocTimeStamp 1718975819 [13:22:44]current date 1718976168 [13:22:44]FM_GetShiftState [13:22:44]SAM_PROTO_GetShiftState [13:22:44]wFMCommunicate request_size=4 [13:22:44]MH_SAM_APDU [13:22:44]CAPDU: 80 13 01 00 [13:22:44]Write to MH i2c: E2 08 00 3D 29 80 13 01 00 00 00 00 00 E3 [13:22:44]Write i2c OK [13:22:44]MH_I2C_Read... [13:22:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:22:44]Read from MH i2c: E2 [13:22:44]MH_I2C_Read... [13:22:44]Read from MH i2c: E2 0E 00 [13:22:44]MH_I2C_Read... [13:22:44]Read from MH i2c: E2 0E 00 3D 29 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 F6 [13:22:44]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [13:22:44]wFMCommunicate OK [13:22:44]SAM_PROTO_GetShiftState done [13:22:44]FM_GetShiftState done [13:22:44]opened in 1718929509 [13:22:44]opened+sec_in_day 1719015909 [13:22:44]quantity*price = 100064 [13:22:44]sum+1 = 100066 [13:22: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 СНО: Общий режим Чек 92 21.06.2024 13:22 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104169 ФПД: 259743159672042 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T132248&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104169&fm=259743159672042&tin=02508201610067®Number=0000000000092785&sum=100000 [13:22:45]StoreToDocumentArchive [13:22:45]shift 355 fd 104169 [13:22:45]save to /storage/0355/doc_00104169 [13:22:45]save last doc name /storage/0355/doc_00104169 to /storage/kkm_last_doc_name [13:22:45]save OK [13:22:45]Clear old archive folders... [13:22:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:22:45]tlvbuf is 0113EEB0 [13:22:45]SAM_PROTO_ClearQueue [13:22:45]wFMCommunicate request_size=4 [13:22:45]MH_SAM_APDU [13:22:45]CAPDU: 80 09 00 00 [13:22:45]Write to MH i2c: E2 08 00 4A 29 80 09 00 00 00 00 00 00 E5 [13:22:45]Write i2c OK [13:22:45]MH_I2C_Read... [13:22:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:22:45]Read from MH i2c: E2 [13:22:45]MH_I2C_Read... [13:22:45]Read from MH i2c: E2 03 00 [13:22:45]MH_I2C_Read... [13:22:45]Read from MH i2c: E2 03 00 4A 29 00 90 00 E7 [13:22:45]RAPDU: 90 00 [13:22:45]wFMCommunicate OK [13:22:45]SAM_PROTO_ClearQueue done [13:22:45]KKMCreateOFDPacket [13:22:45]OFDProtocolAddRootSTLVToBuf [13:22:45]FM_MakeSignedData [13:22:45]FM_MakeSignedData [13:22:45]SAM_PROTO_SignData [13:22:45]wFMCommunicate request_size=4 [13:22:45]MH_SAM_APDU [13:22:45]CAPDU: 80 0D 01 02 [13:22:45]Write to MH i2c: E2 08 00 4B 29 80 0D 01 02 00 00 00 00 ED [13:22:45]Write i2c OK [13:22:45]MH_I2C_Read... [13:22:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:22:45]Read from MH i2c: E2 [13:22:45]MH_I2C_Read... [13:22:45]Read from MH i2c: E2 03 00 [13:22:45]MH_I2C_Read... [13:22:45]Read from MH i2c: E2 03 00 4B 29 00 90 00 E8 [13:22:45]RAPDU: 90 00 [13:22:45]wFMCommunicate OK [13:22:45]wFMCommunicate request_size=255 [13:22:45]MH_SAM_APDU [13:22: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 5C 00 00 00 F4 03 04 00 A8 7E 75 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 E9 96 01 00 35 04 06 00 EC [13:22:45]Write to MH i2c: E2 02 01 4C 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 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 5C 00 00 00 F4 03 04 00 A8 7E 75 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 E9 96 01 00 35 04 06 00 EC 00 00 24 [13:22:45]Write i2c OK [13:22:45]MH_I2C_Read... [13:22:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:22:45]Read from MH i2c: E2 [13:22:45]MH_I2C_Read... [13:22:45]Read from MH i2c: E2 03 00 [13:22:45]MH_I2C_Read... [13:22:45]Read from MH i2c: E2 03 00 4C 29 00 90 00 E9 [13:22:45]RAPDU: 90 00 [13:22:45]wFMCommunicate OK [13:22:45]wFMCommunicate request_size=10 [13:22:45]MH_SAM_APDU [13:22:45]CAPDU: 80 0D 02 02 05 3C 2A C3 DC EA [13:22:45]Write to MH i2c: E2 0D 00 4D 29 80 0D 02 02 05 00 3C 2A C3 DC EA 00 00 E9 [13:22:45]Write i2c OK [13:22:45]MH_I2C_Read... [13:22:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:22:45]Read from MH i2c: E2 [13:22:45]MH_I2C_Read... [13:22:45]Read from MH i2c: E2 03 00 [13:22:45]MH_I2C_Read... [13:22:45]Read from MH i2c: E2 03 00 4D 29 00 90 00 EA [13:22:45]RAPDU: 90 00 [13:22:45]wFMCommunicate OK [13:22:45]wFMCommunicate request_size=4 [13:22:45]MH_SAM_APDU [13:22:45]CAPDU: 80 0D 03 02 [13:22:45]Write to MH i2c: E2 08 00 4E 29 80 0D 03 02 00 00 00 00 F2 [13:22:45]Write i2c OK [13:22:45]MH_I2C_Read... [13:22:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:22:45]Read from MH i2c: E2 [13:22:45]MH_I2C_Read... [13:22:45]Read from MH i2c: E2 0B 00 [13:22:45]MH_I2C_Read... [13:22:45]Read from MH i2c: E2 0B 00 4E 29 00 BB D1 3E A2 6D 8B 70 96 90 00 5D [13:22:45]RAPDU: BB D1 3E A2 6D 8B 70 96 90 00 [13:22:45]wFMCommunicate OK [13:22:45]SAM_PROTO_SignData done [13:22:45]FM_MakeSignedData done [13:22:45]CreateOFDProtocolMessage [13:22:45]wFMCommunicate request_size=4 [13:22:45]MH_SAM_APDU [13:22:45]CAPDU: 80 11 00 00 [13:22:45]Write to MH i2c: E2 08 00 4F 29 80 11 00 00 00 00 00 00 F2 [13:22:45]Write i2c OK [13:22:45]MH_I2C_Read... [13:22:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:22:45]Read from MH i2c: E2 [13:22:45]MH_I2C_Read... [13:22:45]Read from MH i2c: E2 17 00 [13:22:45]MH_I2C_Read... [13:22:45]Read from MH i2c: E2 17 00 4F 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 45 [13:22: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:22:45]wFMCommunicate OK [13:22:45]CreateOFDProtocolMessage done [13:22:45]OFDSenderStorePacket 104169 [13:22:45]StoreOFDPacket docnum=104169 [13:22: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 8C D3 07 01 3D 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 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 5C 00 00 00 F4 03 04 00 A8 7E 75 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 E9 96 01 00 35 04 06 00 EC 3C 2A C3 DC EA BB D1 3E A2 6D 8B 70 96 [13:22:45]CheckFolder [13:22:45]dirname=/storage/ofd_packets [13:22:45]CheckFolder done [13:22:45]ProducePacketName [13:22:45]name=ofd_packets/00104169 [13:22:45]NVStorageSaveData ofd_packets/00104169 [13:22:45]File name is /storage/ofd_packets/00104169 [13:22:45]Write 301 bytes [13:22:45]NVStorageSaveData done [13:22:45]OFDSenderStorePacket done [13:22:45]KKMCreateOFDPacket done [13:22:45]NVStorageSaveData kkm_last_timestamp [13:22:45]File name is /storage/kkm_last_timestamp [13:22:45]Write 4 bytes [13:22:45]NVStorageSaveData done [13:22:45]ExternCall_PrintAddStr [13:22:45]wPrintStart [13:22:45]Write to MH i2c: 01 00 00 50 29 79 [13:22:45]Write i2c OK [13:22:45]MH_I2C_Read... [13:22:45]Read from MH i2c: 01 [13:22:45]MH_I2C_Read... [13:22:45]Read from MH i2c: 01 07 00 [13:22:45]MH_I2C_Read... [13:22:45]Read from MH i2c: 01 07 00 50 29 00 00 00 00 00 FF 0F 8E [13:22:45]RasterBufferAndPrint [13:22:45]line Счет N : (1)673600 [13:22:45]line ИНН: 02508201610067 [13:22:45]line Контрольно-Кассовый Чек [13:22:45]line ПРОДАЖА [13:22:45]line ТРК (МРК, ГНК) : 42 [13:22:45]line Товар: 2710124130 [13:22:45]line Аи-92-К-5 [13:22:45]line 15.070 * 66.40 [13:22:45]line = 1000.65 [13:22:45]line НДС 12% НСП 1% [13:22:45]line > о реализуемом товаре [13:22:45]line ОКРУГЛЕНИЕ: -0.65 [13:22:45]line ИТОГО: 1000.00 [13:22:45]line Внесено: 1000.00 [13:22:45]line СДАЧА: 0.00 [13:22:45]line НСП 1% : 8.85 [13:22:45]line НДС 12% : 106.26 [13:22:45]line Наличными: 1000.00 [13:22:45]line Безнал.: 0.00 [13:22:45]line Место: АЗС № 120 "Партнер Нефть" [13:22:45]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [13:22:45]line СНО: Общий режим [13:22:45]line Чек 92 21.06.2024 13:22 [13:22:45]line Смена: 355 ФФД: 1.0 [13:22:45]line ЗНМ: 0300000164 [13:22:45]line РНМ: 0000000000092785 [13:22:45]line Версия ККМ: 001 [13:22:45]line ФМ: 0000000000875093 [13:22:45]line ФД: 104169 [13:22:45]line ФПД: 259743159672042 [13:22:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T132248&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104169&fm=259743159672042&tin=02508201610067®Number=0000000000092785&sum=100000 [13:22:46]OFD Sender: Processing packet 104169 [packets to send 17, broken 16] [13:22:46]ProducePacketName [13:22:46]name=ofd_packets/00104169 [13:22:46]OFD Sender: To server: pG, [13:22:46]CommunicateWithHost lk.salyk.kg:30040 [13:22:46]ConnectInit lk.salyk.kg [13:22:46]written 0, free lines is 4095 [13:22:46]Connected sock=11 [13:22: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 8C D3 07 01 3D 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 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 5C 00 00 00 F4 03 04 00 A8 7E 75 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 E9 96 01 00 35 04 06 00 EC 3C 2A C3 DC EA BB D1 3E A2 6D 8B 70 96 [13:22:46]Write to MH i2c: 01 00 00 7B 29 A4 [13:22:46]Write i2c OK [13:22:46]MH_I2C_Read... [13:22:46]Read from MH i2c: 01 [13:22:46]MH_I2C_Read... [13:22:46]Read from MH i2c: 01 07 00 [13:22:46]MH_I2C_Read... [13:22:46]Read from MH i2c: 01 07 00 7B 29 00 00 00 00 00 E7 0C 9E [13:22:46]RasterBufferAndPrint [13:22:46]line [13:22:46]line [13:22:46]line [13:22:46]line [13:22:46]line [13:22:46]written 0, free lines is 3309 [13:22:46]MH_Cut [13:22:46]Write to MH i2c: D1 01 00 82 29 01 7D [13:22:46]Write i2c OK [13:22:46]MH_I2C_Read... [13:22:46]Read from MH i2c: D1 [13:22:46]MH_I2C_Read... [13:22:46]Read from MH i2c: D1 01 00 [13:22:46]MH_I2C_Read... [13:22:46]Read from MH i2c: D1 01 00 82 29 00 7C [13:22:46]Write to MH i2c: 01 00 00 83 29 AC [13:22:46]Write i2c OK [13:22:46]MH_I2C_Read... [13:22: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 7F 47 00 FC 64 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 E9 96 01 00 F4 03 04 00 2B 25 75 66 B6 04 01 00 00 21 22 E2 3B F0 80 B8 3E [13:22:46]CommunicateWithHost err = 0 [13:22:46]CheckOFDResponse [13:22:46]1017 (14) - 77093643461234 [13:22:46]1041 (16) - 0000000000875093 [13:22:46]1040 (4) - 104169 [13:22:46]1012 (4) - 21.06.2024 07:00 [13:22:46]1206 (1) - 0 [13:22:46]OFD Sender: Remove packet 104169 [13:22:46]ProducePacketName [13:22:46]name=ofd_packets/00104169 [13:22:46]NVStorageDeleteData [13:22:47]OFD Sender: No OFD packet to send [13:22:47]*** Cut start [13:22:47]*** Partial cut [13:22:47]*** CUTSNS_PIN = 1 [13:22:47]*** CUTSNS_PIN = 0 [13:22:47]*** Brake cut motor [13:22:47]Read from MH i2c: 01 [13:22:47]MH_I2C_Read... [13:22:47]*** Stop cut motor [13:22:47]*** Cut end [13:22:47]Read from MH i2c: 01 07 00 [13:22:47]MH_I2C_Read... [13:22:47]Read from MH i2c: 01 07 00 83 29 00 00 00 00 00 FF 0F C1 [13:22:47]process_action close_receipt done [13:22:47]requested_data is exist [13:22:47]produce_requested_data [13:22:47]requested_item fm.sn is exist - process it [13:22:47]wFMCommunicate request_size=4 [13:22:47]MH_SAM_APDU [13:22:47]CAPDU: 80 11 00 00 [13:22:47]Write to MH i2c: E2 08 00 84 29 80 11 00 00 00 00 00 00 27 [13:22:47]Write i2c OK [13:22:47]MH_I2C_Read... [13:22:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:22:47]Read from MH i2c: E2 [13:22:47]MH_I2C_Read... [13:22:47]Read from MH i2c: E2 17 00 [13:22:47]MH_I2C_Read... [13:22:47]Read from MH i2c: E2 17 00 84 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 7A [13: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 [13:22:47]wFMCommunicate OK [13:22:47]requested_item fd.num is exist - process it [13:22:47]SAM_PROTO_GetFieldsCounters [13:22:47]wFMCommunicate request_size=4 [13:22:47]MH_SAM_APDU [13:22:47]CAPDU: 80 13 00 00 [13:22:47]Write to MH i2c: E2 08 00 85 29 80 13 00 00 00 00 00 00 2A [13:22:47]Write i2c OK [13:22:47]MH_I2C_Read... [13:22:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:22:48]Read from MH i2c: E2 [13:22:48]MH_I2C_Read... [13:22:48]Read from MH i2c: E2 62 00 [13:22:48]MH_I2C_Read... [13:22:48]Read from MH i2c: E2 62 00 85 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 E9 96 01 00 0E 04 04 00 63 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 49 [13:22: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 96 01 00 0E 04 04 00 63 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 [13:22:48]wFMCommunicate OK [13:22:48]SAM_PROTO_GetFieldsCounters done [13:22:48]requested_item shift.num is exist - process it [13:22:48]requested_item shift.opened is exist - process it [13:22:48]req_shift_opened [13:22:48]FM_GetShiftState [13:22:48]SAM_PROTO_GetShiftState [13:22:48]wFMCommunicate request_size=4 [13:22:48]MH_SAM_APDU [13:22:48]CAPDU: 80 13 01 00 [13:22:48]Write to MH i2c: E2 08 00 86 29 80 13 01 00 00 00 00 00 2C [13:22:48]Write i2c OK [13:22:48]MH_I2C_Read... [13:22:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:22:48]Read from MH i2c: E2 [13:22:48]MH_I2C_Read... [13:22:48]Read from MH i2c: E2 0E 00 [13:22:48]MH_I2C_Read... [13:22:48]Read from MH i2c: E2 0E 00 86 29 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 3F [13:22:48]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [13:22:48]wFMCommunicate OK [13:22:48]SAM_PROTO_GetShiftState done [13:22:48]FM_GetShiftState done [13:22:48]req_shift_opened done [13:22:48]requested_item shift.open_date is exist - process it [13:22:48]req_shift_open_date [13:22:48]req_shift_open_date done [13:22:48]produce_requested_data done [13:22:48]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104169,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [13:22:48]process_action_free close_receipt [13:22:48]json_value_free [13:22:48]json_value_free done [13:22:48]process_json_proto returns [13:22:48]Send response to host [13:22:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104169,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [13:22:48]free response buf [13:22:48]execute_script done [13:22:48]execute_script returns [13:22:48]free content buf [13:22:48]Sock 9.Close socket [13:22:48]Sock 9.Thread stoped [13:22:52]OFD Sender: No OFD packet to send [13:22:57]OFD Sender: No OFD packet to send [13:23:02]OFD Sender: No OFD packet to send [13:23:07]OFD Sender: No OFD packet to send [13:23:12]OFD Sender: No OFD packet to send [13:23:17]OFD Sender: No OFD packet to send [13:23:22]OFD Sender: No OFD packet to send [13:23:27]OFD Sender: No OFD packet to send [13:23:32]OFD Sender: No OFD packet to send [13:23:37]OFD Sender: No OFD packet to send [13:23:42]OFD Sender: No OFD packet to send [13:23:47]OFD Sender: No OFD packet to send [13:23:52]OFD Sender: No OFD packet to send [13:23:57]OFD Sender: No OFD packet to send [13:24:02]OFD Sender: No OFD packet to send [13:24:07]OFD Sender: No OFD packet to send [13:24:12]OFD Sender: No OFD packet to send [13:24:17]OFD Sender: No OFD packet to send [13:24:22]OFD Sender: No OFD packet to send [13:24:27]OFD Sender: No OFD packet to send [13:24:32]OFD Sender: No OFD packet to send [13:24:37]OFD Sender: No OFD packet to send [13:24:42]OFD Sender: No OFD packet to send [13:24:47]OFD Sender: No OFD packet to send [13:24:52]OFD Sender: No OFD packet to send [13:24:57]OFD Sender: No OFD packet to send [13:25:02]OFD Sender: No OFD packet to send [13:25:07]OFD Sender: No OFD packet to send [13:25:12]OFD Sender: No OFD packet to send [13:25:17]OFD Sender: No OFD packet to send [13:25:22]OFD Sender: No OFD packet to send [13:25:27]OFD Sender: No OFD packet to send [13:25:32]OFD Sender: No OFD packet to send [13:25:37]OFD Sender: No OFD packet to send [13:25:42]OFD Sender: No OFD packet to send [13:25:47]OFD Sender: No OFD packet to send [13:25:52]OFD Sender: No OFD packet to send [13:25:57]OFD Sender: No OFD packet to send [13:26:02]OFD Sender: No OFD packet to send [13:26:07]OFD Sender: No OFD packet to send [13:26:09]accept exits with 7 [13:26:09]New connection [13:26:09]New thread 3066715492 created [13:26:09]Thread 3066858852 joined [13:26:09]Waiting for new connection... [13:26:09] Sock 7.Parse request [13:26:09]Sock 7.Check first char [13:26:09]Sock 7.First char is OK [13:26:09]request: POST /json_proto HTTP/1.0 [13:26:09]Method: POST [13:26:09]URL: /json_proto [13:26:09]Method is POST - this is cgi request [13:26:09]url: /json_proto [13:26:09]query_string will be loaded in cgi processing [13:26:09]execute_cgi json_proto POST (null) [13:26:09]execute_cgi path=json_proto method=POST [13:26:09]POST find Content-Length [13:26:09]Host: 172.17.38.133:8080 [13:26:09]Content-Length: 677 [13:26:09]Content-Type: application/json [13:26:09] [13:26:09]POST finish read [13:26:09]Found Content-Length = 677 [13:26:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673601", "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:26:09]execute_script... [13:26: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)673601", "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:26:09]POST & json_proto [13:26:09]process_json_proto [13:26:09]json parsed OK: [13:26:09]protocol is kg_v1.0 [13:26:09]action value=close_receipt [13:26:09]process_action close_receipt [13:26:09]cmd_close_receipt [13:26:09]MH_GetDate [13:26:09]Write to MH i2c: F0 00 00 87 29 9F [13:26:09]Write i2c OK [13:26:09]MH_I2C_Read... [13:26:09]Read from MH i2c: F0 [13:26:09]MH_I2C_Read... [13:26:09]Read from MH i2c: F0 09 00 [13:26:09]MH_I2C_Read... [13:26:09]Read from MH i2c: F0 09 00 87 29 00 76 7F 75 66 BD 8F 7C 64 A4 [13:26:09]GetLastDocTimeStamp 1718976168 [13:26:09]current date 1718976374 [13:26:09]FM_GetShiftState [13:26:09]SAM_PROTO_GetShiftState [13:26:09]wFMCommunicate request_size=4 [13:26:09]MH_SAM_APDU [13:26:09]CAPDU: 80 13 01 00 [13:26:09]Write to MH i2c: E2 08 00 88 29 80 13 01 00 00 00 00 00 2E [13:26:09]Write i2c OK [13:26:09]MH_I2C_Read... [13:26:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:26:09]Read from MH i2c: E2 [13:26:09]MH_I2C_Read... [13:26:09]Read from MH i2c: E2 0E 00 [13:26:09]MH_I2C_Read... [13:26:09]Read from MH i2c: E2 0E 00 88 29 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 41 [13:26:09]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [13:26:09]wFMCommunicate OK [13:26:09]SAM_PROTO_GetShiftState done [13:26:09]FM_GetShiftState done [13:26:09]opened in 1718929509 [13:26:09]opened+sec_in_day 1719015909 [13:26:09]quantity*price = 60025 [13:26:09]sum+1 = 60027 [13:26:09]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 СНО: Общий режим Чек 93 21.06.2024 13:26 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104170 ФПД: 23831348705455 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T132614&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104170&fm=23831348705455&tin=02508201610067®Number=0000000000092785&sum=60000 [13:26:11]StoreToDocumentArchive [13:26:11]shift 355 fd 104170 [13:26:11]save to /storage/0355/doc_00104170 [13:26:11]save last doc name /storage/0355/doc_00104170 to /storage/kkm_last_doc_name [13:26:11]save OK [13:26:11]Clear old archive folders... [13:26:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:26:11]tlvbuf is 011787B0 [13:26:11]SAM_PROTO_ClearQueue [13:26:11]wFMCommunicate request_size=4 [13:26:11]MH_SAM_APDU [13:26:11]CAPDU: 80 09 00 00 [13:26:11]Write to MH i2c: E2 08 00 95 29 80 09 00 00 00 00 00 00 30 [13:26:11]Write i2c OK [13:26:11]MH_I2C_Read... [13:26:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:26:11]Read from MH i2c: E2 [13:26:11]MH_I2C_Read... [13:26:11]Read from MH i2c: E2 03 00 [13:26:11]MH_I2C_Read... [13:26:11]Read from MH i2c: E2 03 00 95 29 00 90 00 32 [13:26:11]RAPDU: 90 00 [13:26:11]wFMCommunicate OK [13:26:11]SAM_PROTO_ClearQueue done [13:26:11]KKMCreateOFDPacket [13:26:11]OFDProtocolAddRootSTLVToBuf [13:26:11]FM_MakeSignedData [13:26:11]FM_MakeSignedData [13:26:11]SAM_PROTO_SignData [13:26:11]wFMCommunicate request_size=4 [13:26:11]MH_SAM_APDU [13:26:11]CAPDU: 80 0D 01 02 [13:26:11]Write to MH i2c: E2 08 00 96 29 80 0D 01 02 00 00 00 00 38 [13:26:11]Write i2c OK [13:26:11]MH_I2C_Read... [13:26:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:26:11]Read from MH i2c: E2 [13:26:11]MH_I2C_Read... [13:26:11]Read from MH i2c: E2 03 00 [13:26:11]MH_I2C_Read... [13:26:11]Read from MH i2c: E2 03 00 96 29 00 90 00 33 [13:26:11]RAPDU: 90 00 [13:26:11]wFMCommunicate OK [13:26:11]wFMCommunicate request_size=255 [13:26:11]MH_SAM_APDU [13:26: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 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 5D 00 00 00 F4 03 04 00 76 7F 75 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 EA 96 01 00 35 04 06 00 15 [13:26:11]Write to MH i2c: E2 02 01 97 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 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 5D 00 00 00 F4 03 04 00 76 7F 75 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 EA 96 01 00 35 04 06 00 15 00 00 F6 [13:26:11]Write i2c OK [13:26:11]MH_I2C_Read... [13:26:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:26:11]Read from MH i2c: E2 [13:26:11]MH_I2C_Read... [13:26:11]Read from MH i2c: E2 03 00 [13:26:11]MH_I2C_Read... [13:26:11]Read from MH i2c: E2 03 00 97 29 00 90 00 34 [13:26:11]RAPDU: 90 00 [13:26:11]wFMCommunicate OK [13:26:11]wFMCommunicate request_size=10 [13:26:11]MH_SAM_APDU [13:26:11]CAPDU: 80 0D 02 02 05 AC AB 12 F8 AF [13:26:11]Write to MH i2c: E2 0D 00 98 29 80 0D 02 02 05 00 AC AB 12 F8 AF 00 00 55 [13:26:11]Write i2c OK [13:26:11]MH_I2C_Read... [13:26:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:26:11]Read from MH i2c: E2 [13:26:11]MH_I2C_Read... [13:26:11]Read from MH i2c: E2 03 00 [13:26:11]MH_I2C_Read... [13:26:11]Read from MH i2c: E2 03 00 98 29 00 90 00 35 [13:26:11]RAPDU: 90 00 [13:26:11]wFMCommunicate OK [13:26:11]wFMCommunicate request_size=4 [13:26:11]MH_SAM_APDU [13:26:11]CAPDU: 80 0D 03 02 [13:26:11]Write to MH i2c: E2 08 00 99 29 80 0D 03 02 00 00 00 00 3D [13:26:11]Write i2c OK [13:26:11]MH_I2C_Read... [13:26:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:26:11]Read from MH i2c: E2 [13:26:11]MH_I2C_Read... [13:26:11]Read from MH i2c: E2 0B 00 [13:26:11]MH_I2C_Read... [13:26:11]Read from MH i2c: E2 0B 00 99 29 00 81 5E CA 34 31 E6 71 16 90 00 B9 [13:26:11]RAPDU: 81 5E CA 34 31 E6 71 16 90 00 [13:26:11]wFMCommunicate OK [13:26:11]SAM_PROTO_SignData done [13:26:11]FM_MakeSignedData done [13:26:11]CreateOFDProtocolMessage [13:26:11]wFMCommunicate request_size=4 [13:26:11]MH_SAM_APDU [13:26:11]CAPDU: 80 11 00 00 [13:26:11]Write to MH i2c: E2 08 00 9A 29 80 11 00 00 00 00 00 00 3D [13:26:11]Write i2c OK [13:26:11]MH_I2C_Read... [13:26:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:26:11]Read from MH i2c: E2 [13:26:11]MH_I2C_Read... [13:26:11]Read from MH i2c: E2 17 00 [13:26:11]MH_I2C_Read... [13:26:11]Read from MH i2c: E2 17 00 9A 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 90 [13:26: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:26:11]wFMCommunicate OK [13:26:11]CreateOFDProtocolMessage done [13:26:11]OFDSenderStorePacket 104170 [13:26:11]StoreOFDPacket docnum=104170 [13:26: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 C7 CB 07 01 73 A5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 5D 00 00 00 F4 03 04 00 76 7F 75 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 EA 96 01 00 35 04 06 00 15 AC AB 12 F8 AF 81 5E CA 34 31 E6 71 16 [13:26:11]CheckFolder [13:26:11]dirname=/storage/ofd_packets [13:26:11]CheckFolder done [13:26:11]ProducePacketName [13:26:11]name=ofd_packets/00104170 [13:26:11]NVStorageSaveData ofd_packets/00104170 [13:26:11]File name is /storage/ofd_packets/00104170 [13:26:11]Write 301 bytes [13:26:11]NVStorageSaveData done [13:26:11]OFDSenderStorePacket done [13:26:11]KKMCreateOFDPacket done [13:26:11]NVStorageSaveData kkm_last_timestamp [13:26:11]File name is /storage/kkm_last_timestamp [13:26:11]Write 4 bytes [13:26:11]NVStorageSaveData done [13:26:11]ExternCall_PrintAddStr [13:26:11]wPrintStart [13:26:11]Write to MH i2c: 01 00 00 9B 29 C4 [13:26:11]Write i2c OK [13:26:11]MH_I2C_Read... [13:26:11]Read from MH i2c: 01 [13:26:11]MH_I2C_Read... [13:26:11]Read from MH i2c: 01 07 00 [13:26:11]MH_I2C_Read... [13:26:11]Read from MH i2c: 01 07 00 9B 29 00 00 00 00 00 FF 0F D9 [13:26:11]RasterBufferAndPrint [13:26:11]line Счет N : (1)673601 [13:26:11]line ИНН: 02508201610067 [13:26:11]line Контрольно-Кассовый Чек [13:26:11]line ПРОДАЖА [13:26:11]line ТРК (МРК, ГНК) : 32 [13:26:11]line Товар: 2710124130 [13:26:11]line Аи-92-К-5 [13:26:11]line 9.040 * 66.40 [13:26:11]line = 600.26 [13:26:11]line НДС 12% НСП 1% [13:26:11]line > о реализуемом товаре [13:26:11]line ОКРУГЛЕНИЕ: -0.26 [13:26:11]line ИТОГО: 600.00 [13:26:11]line Внесено: 600.00 [13:26:11]line СДАЧА: 0.00 [13:26:11]line НСП 1% : 5.31 [13:26:11]line НДС 12% : 63.74 [13:26:11]line Наличными: 600.00 [13:26:11]line Безнал.: 0.00 [13:26:11]line Место: АЗС № 120 "Партнер Нефть" [13:26:11]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [13:26:11]line СНО: Общий режим [13:26:11]line Чек 93 21.06.2024 13:26 [13:26:11]line Смена: 355 ФФД: 1.0 [13:26:11]line ЗНМ: 0300000164 [13:26:11]line РНМ: 0000000000092785 [13:26:11]line Версия ККМ: 001 [13:26:11]line ФМ: 0000000000875093 [13:26:11]line ФД: 104170 [13:26:11]line ФПД: 23831348705455 [13:26:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T132614&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104170&fm=23831348705455&tin=02508201610067®Number=0000000000092785&sum=60000 [13:26:11]OFD Sender: Processing packet 104170 [packets to send 17, broken 16] [13:26:11]ProducePacketName [13:26:11]name=ofd_packets/00104170 [13:26:11]OFD Sender: To server: pG, [13:26:11]CommunicateWithHost lk.salyk.kg:30040 [13:26:11]ConnectInit lk.salyk.kg [13:26:11]written 0, free lines is 4095 [13:26:12]Connected sock=10 [13:26: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 C7 CB 07 01 73 A5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 5D 00 00 00 F4 03 04 00 76 7F 75 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 EA 96 01 00 35 04 06 00 15 AC AB 12 F8 AF 81 5E CA 34 31 E6 71 16 [13:26: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 56 09 47 00 36 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 EA 96 01 00 F4 03 04 00 F8 25 75 66 B6 04 01 00 00 10 2F 07 F2 0C 4C 2D 4B [13:26:12]CommunicateWithHost err = 0 [13:26:12]CheckOFDResponse [13:26:12]1017 (14) - 77093643461234 [13:26:12]1041 (16) - 0000000000875093 [13:26:12]1040 (4) - 104170 [13:26:12]1012 (4) - 21.06.2024 07:04 [13:26:12]1206 (1) - 0 [13:26:12]OFD Sender: Remove packet 104170 [13:26:12]ProducePacketName [13:26:12]name=ofd_packets/00104170 [13:26:12]NVStorageDeleteData [13:26:12]Write to MH i2c: 01 00 00 C6 29 EF [13:26:12]Write i2c OK [13:26:12]MH_I2C_Read... [13:26:12]Read from MH i2c: 01 [13:26:12]MH_I2C_Read... [13:26:12]Read from MH i2c: 01 07 00 [13:26:12]MH_I2C_Read... [13:26:12]Read from MH i2c: 01 07 00 C6 29 00 00 00 00 00 E8 0C EA [13:26:12]RasterBufferAndPrint [13:26:12]line [13:26:12]line [13:26:12]line [13:26:12]line [13:26:12]line [13:26:12]written 0, free lines is 3310 [13:26:12]MH_Cut [13:26:12]Write to MH i2c: D1 01 00 CD 29 01 C8 [13:26:12]Write i2c OK [13:26:12]MH_I2C_Read... [13:26:12]Read from MH i2c: D1 [13:26:12]MH_I2C_Read... [13:26:12]Read from MH i2c: D1 01 00 [13:26:12]MH_I2C_Read... [13:26:12]Read from MH i2c: D1 01 00 CD 29 00 C7 [13:26:12]Write to MH i2c: 01 00 00 CE 29 F7 [13:26:12]Write i2c OK [13:26:12]MH_I2C_Read... [13:26:12]OFD Sender: No OFD packet to send [13:26:13]*** Cut start [13:26:13]*** Partial cut [13:26:13]*** CUTSNS_PIN = 1 [13:26:13]*** CUTSNS_PIN = 0 [13:26:13]*** Brake cut motor [13:26:13]Read from MH i2c: 01 [13:26:13]MH_I2C_Read... [13:26:13]*** Stop cut motor [13:26:13]*** Cut end [13:26:13]Read from MH i2c: 01 07 00 [13:26:13]MH_I2C_Read... [13:26:13]Read from MH i2c: 01 07 00 CE 29 00 00 00 00 00 FF 0F 0C [13:26:13]process_action close_receipt done [13:26:13]requested_data is exist [13:26:13]produce_requested_data [13:26:13]requested_item fm.sn is exist - process it [13:26:13]wFMCommunicate request_size=4 [13:26:13]MH_SAM_APDU [13:26:13]CAPDU: 80 11 00 00 [13:26:13]Write to MH i2c: E2 08 00 CF 29 80 11 00 00 00 00 00 00 72 [13:26:13]Write i2c OK [13:26:13]MH_I2C_Read... [13:26:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:26:13]Read from MH i2c: E2 [13:26:13]MH_I2C_Read... [13:26:13]Read from MH i2c: E2 17 00 [13:26:13]MH_I2C_Read... [13:26:13]Read from MH i2c: E2 17 00 CF 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 C5 [13:26: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:26:13]wFMCommunicate OK [13:26:13]requested_item fd.num is exist - process it [13:26:13]SAM_PROTO_GetFieldsCounters [13:26:13]wFMCommunicate request_size=4 [13:26:13]MH_SAM_APDU [13:26:13]CAPDU: 80 13 00 00 [13:26:13]Write to MH i2c: E2 08 00 D0 29 80 13 00 00 00 00 00 00 75 [13:26:13]Write i2c OK [13:26:13]MH_I2C_Read... [13:26:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:26:13]Read from MH i2c: E2 [13:26:13]MH_I2C_Read... [13:26:13]Read from MH i2c: E2 62 00 [13:26:13]MH_I2C_Read... [13:26:13]Read from MH i2c: E2 62 00 D0 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 EA 96 01 00 0E 04 04 00 63 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 98 [13:26: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 EA 96 01 00 0E 04 04 00 63 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 [13:26:13]wFMCommunicate OK [13:26:13]SAM_PROTO_GetFieldsCounters done [13:26:13]requested_item shift.num is exist - process it [13:26:13]requested_item shift.opened is exist - process it [13:26:13]req_shift_opened [13:26:13]FM_GetShiftState [13:26:13]SAM_PROTO_GetShiftState [13:26:13]wFMCommunicate request_size=4 [13:26:13]MH_SAM_APDU [13:26:13]CAPDU: 80 13 01 00 [13:26:13]Write to MH i2c: E2 08 00 D1 29 80 13 01 00 00 00 00 00 77 [13:26:13]Write i2c OK [13:26:13]MH_I2C_Read... [13:26:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:26:13]Read from MH i2c: E2 [13:26:13]MH_I2C_Read... [13:26:13]Read from MH i2c: E2 0E 00 [13:26:13]MH_I2C_Read... [13:26:13]Read from MH i2c: E2 0E 00 D1 29 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 8A [13:26:13]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [13:26:13]wFMCommunicate OK [13:26:13]SAM_PROTO_GetShiftState done [13:26:13]FM_GetShiftState done [13:26:13]req_shift_opened done [13:26:13]requested_item shift.open_date is exist - process it [13:26:13]req_shift_open_date [13:26:13]req_shift_open_date done [13:26:13]produce_requested_data done [13:26:13]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104170,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [13:26:13]process_action_free close_receipt [13:26:13]json_value_free [13:26:13]json_value_free done [13:26:13]process_json_proto returns [13:26:13]Send response to host [13:26:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104170,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [13:26:13]free response buf [13:26:13]execute_script done [13:26:13]execute_script returns [13:26:13]free content buf [13:26:13]Sock 7.Close socket [13:26:13]Sock 7.Thread stoped [13:26:17]OFD Sender: No OFD packet to send [13:26:22]OFD Sender: No OFD packet to send [13:26:27]OFD Sender: No OFD packet to send [13:26:32]OFD Sender: No OFD packet to send [13:26:37]OFD Sender: No OFD packet to send [13:26:42]OFD Sender: No OFD packet to send [13:26:47]OFD Sender: No OFD packet to send [13:26:52]OFD Sender: No OFD packet to send [13:26:57]OFD Sender: No OFD packet to send [13:27:02]OFD Sender: No OFD packet to send [13:27:07]OFD Sender: No OFD packet to send [13:27:12]OFD Sender: No OFD packet to send [13:27:17]OFD Sender: No OFD packet to send [13:27:22]OFD Sender: No OFD packet to send [13:27:27]OFD Sender: No OFD packet to send [13:27:32]OFD Sender: No OFD packet to send [13:27:37]OFD Sender: No OFD packet to send [13:27:42]OFD Sender: No OFD packet to send [13:27:47]OFD Sender: No OFD packet to send [13:27:52]OFD Sender: No OFD packet to send [13:27:56]accept exits with 9 [13:27:56]New connection [13:27:56]New thread 3066858852 created [13:27:56]Thread 3066715492 joined [13:27:56]Waiting for new connection... [13:27:56] Sock 9.Parse request [13:27:56]Sock 9.Check first char [13:27:56]Sock 9.First char is OK [13:27:56]request: POST /json_proto HTTP/1.0 [13:27:56]Method: POST [13:27:56]URL: /json_proto [13:27:56]Method is POST - this is cgi request [13:27:56]url: /json_proto [13:27:56]query_string will be loaded in cgi processing [13:27:56]execute_cgi json_proto POST (null) [13:27:56]execute_cgi path=json_proto method=POST [13:27:56]POST find Content-Length [13:27:56]Host: 172.17.38.133:8080 [13:27:56]Content-Length: 1195 [13:27:56]Content-Type: application/json [13:27:56] [13:27:56]POST finish read [13:27:56]Found Content-Length = 1195 [13:27: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 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)673602\u000A21.06.2024 13:05\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 18.760 x 66.40\u000A\u0418\u0422\u041E\u0413: 1245.66\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\u000A24106\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:27:56]execute_script... [13:27: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 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)673602\u000A21.06.2024 13:05\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 18.760 x 66.40\u000A\u0418\u0422\u041E\u0413: 1245.66\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\u000A24106\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:27:56]POST & json_proto [13:27:56]process_json_proto [13:27:56]json parsed OK: [13:27:56]protocol is kg_v1.0 [13:27:56]action value=print_text [13:27:56]process_action print_text [13:27:56]cmd_print_text [13:27:56]ExternCall_PrintAddStr [13:27:56]wPrintStart [13:27:56]Write to MH i2c: 01 00 00 D2 29 FB [13:27:56]Write i2c OK [13:27:56]MH_I2C_Read... [13:27:56]Read from MH i2c: 01 [13:27:56]MH_I2C_Read... [13:27:56]Read from MH i2c: 01 07 00 [13:27:56]MH_I2C_Read... [13:27:56]Read from MH i2c: 01 07 00 D2 29 00 00 00 00 00 FF 0F 10 [13:27:56]RasterBufferAndPrint [13:27:56]line *****ТОВАРНЫЙ ЧЕК***** [13:27:56]line АЗС 120 [13:27:56]line Партнер нефть [13:27:56]line 02508201610067 [13:27:56]line Кассир : Асанбаев Н. [13:27:56]line Счет N : (1)673602 [13:27:56]line 21.06.2024 13:05 [13:27:56]line ПРОДАЖА [13:27:56]line ТРК (МРК, ГНК): 42 [13:27:56]line Вид ГСМ : 2710124130 [13:27:56]line Аи-92-К-5 [13:27:56]line 18.760 x 66.40 [13:27:56]line ИТОГ: 1245.66 [13:27:56]line Тип оплаты: Талоны: Топливная Карта [13:27:56]line 24106 [13:27:56]line ______________________ [13:27:56]line (подпись) [13:27:56]written 0, free lines is 4095 [13:27:56]Write to MH i2c: 01 00 00 E6 29 0F [13:27:56]Write i2c OK [13:27:56]MH_I2C_Read... [13:27:56]Read from MH i2c: 01 [13:27:56]MH_I2C_Read... [13:27:56]Read from MH i2c: 01 07 00 [13:27:56]MH_I2C_Read... [13:27:56]Read from MH i2c: 01 07 00 E6 29 00 00 00 00 00 10 0E 34 [13:27:56]RasterBufferAndPrint [13:27:56]line [13:27:56]line [13:27:56]line [13:27:56]line [13:27:56]line [13:27:56]written 0, free lines is 3601 [13:27:56]MH_Cut [13:27:56]Write to MH i2c: D1 01 00 ED 29 01 E8 [13:27:56]Write i2c OK [13:27:56]MH_I2C_Read... [13:27:56]Read from MH i2c: D1 [13:27:56]MH_I2C_Read... [13:27:56]Read from MH i2c: D1 01 00 [13:27:56]MH_I2C_Read... [13:27:56]Read from MH i2c: D1 01 00 ED 29 00 E7 [13:27:56]Write to MH i2c: 01 00 00 EE 29 17 [13:27:56]Write i2c OK [13:27:56]MH_I2C_Read... [13:27:57]*** Cut start [13:27:57]*** Partial cut [13:27:57]*** CUTSNS_PIN = 1 [13:27:57]*** CUTSNS_PIN = 0 [13:27:57]*** Brake cut motor [13:27:57]Read from MH i2c: 01 [13:27:57]MH_I2C_Read... [13:27:57]*** Stop cut motor [13:27:57]*** Cut end [13:27:57]Read from MH i2c: 01 07 00 [13:27:57]MH_I2C_Read... [13:27:57]Read from MH i2c: 01 07 00 EE 29 00 00 00 00 00 FF 0F 2C [13:27:57]process_action print_text done [13:27:57]requested_data is exist [13:27:57]produce_requested_data [13:27:57]requested_item fm.sn is exist - process it [13:27:57]wFMCommunicate request_size=4 [13:27:57]MH_SAM_APDU [13:27:57]CAPDU: 80 11 00 00 [13:27:57]Write to MH i2c: E2 08 00 EF 29 80 11 00 00 00 00 00 00 92 [13:27:57]Write i2c OK [13:27:57]MH_I2C_Read... [13:27:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:27:57]Read from MH i2c: E2 [13:27:57]MH_I2C_Read... [13:27:57]Read from MH i2c: E2 17 00 [13:27:57]MH_I2C_Read... [13:27:57]Read from MH i2c: E2 17 00 EF 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 E5 [13: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 [13:27:57]wFMCommunicate OK [13:27:57]requested_item fd.num is exist - process it [13:27:57]SAM_PROTO_GetFieldsCounters [13:27:57]wFMCommunicate request_size=4 [13:27:57]MH_SAM_APDU [13:27:57]CAPDU: 80 13 00 00 [13:27:57]Write to MH i2c: E2 08 00 F0 29 80 13 00 00 00 00 00 00 95 [13:27:57]Write i2c OK [13:27:57]MH_I2C_Read... [13:27:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:27:57]Read from MH i2c: E2 [13:27:57]MH_I2C_Read... [13:27:57]Read from MH i2c: E2 62 00 [13:27:57]MH_I2C_Read... [13:27:57]Read from MH i2c: E2 62 00 F0 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 EA 96 01 00 0E 04 04 00 63 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 B8 [13: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 EA 96 01 00 0E 04 04 00 63 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 [13:27:57]wFMCommunicate OK [13:27:57]SAM_PROTO_GetFieldsCounters done [13:27:57]requested_item shift.num is exist - process it [13:27:57]requested_item shift.opened is exist - process it [13:27:57]req_shift_opened [13:27:57]FM_GetShiftState [13:27:57]SAM_PROTO_GetShiftState [13:27:57]wFMCommunicate request_size=4 [13:27:57]MH_SAM_APDU [13:27:57]CAPDU: 80 13 01 00 [13:27:57]Write to MH i2c: E2 08 00 F1 29 80 13 01 00 00 00 00 00 97 [13:27:57]Write i2c OK [13:27:57]MH_I2C_Read... [13:27:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:27:57]Read from MH i2c: E2 [13:27:57]MH_I2C_Read... [13:27:57]Read from MH i2c: E2 0E 00 [13:27:57]MH_I2C_Read... [13:27:57]Read from MH i2c: E2 0E 00 F1 29 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 AA [13:27:57]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [13:27:57]wFMCommunicate OK [13:27:57]SAM_PROTO_GetShiftState done [13:27:57]FM_GetShiftState done [13:27:57]req_shift_opened done [13:27:57]requested_item shift.open_date is exist - process it [13:27:57]req_shift_open_date [13:27:57]req_shift_open_date done [13:27:57]produce_requested_data done [13:27:57]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104170,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [13:27:57]process_action_free print_text [13:27:57]json_value_free [13:27:57]json_value_free done [13:27:57]process_json_proto returns [13:27:57]Send response to host [13:27:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104170,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [13:27:57]free response buf [13:27:57]execute_script done [13:27:57]execute_script returns [13:27:57]free content buf [13:27:57]Sock 9.Close socket [13:27:57]Sock 9.Thread stoped [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:38]OFD Sender: No OFD packet to send [13:29:43]OFD Sender: No OFD packet to send [13:32:26]ConnectInit Can't connect to host [13:32:28]OFD Sender: No OFD packet to send [13:32:33]OFD Sender: No OFD packet to send [13:32:38]OFD Sender: No OFD packet to send [13:32:43]OFD Sender: No OFD packet to send [13:32: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:08]OFD Sender: No OFD packet to send [13:33:13]OFD Sender: No OFD packet to send [13:33:18]OFD Sender: No OFD packet to send [13:33:23]OFD Sender: No OFD packet to send [13:33:28]OFD Sender: No OFD packet to send [13:33:33]OFD Sender: No OFD packet to send [13:33:38]OFD Sender: No OFD packet to send [13:33:43]OFD Sender: No OFD packet to send [13:33:48]OFD Sender: No OFD packet to send [13:33:53]OFD Sender: No OFD packet to send [13:33:58]OFD Sender: No OFD packet to send [13:34:03]OFD Sender: No OFD packet to send [13:34:08]OFD Sender: No OFD packet to send [13:34:13]OFD Sender: No OFD packet to send [13:34:18]OFD Sender: No OFD packet to send [13:34:23]OFD Sender: No OFD packet to send [13:34:28]OFD Sender: No OFD packet to send [13:34:33]OFD Sender: No OFD packet to send [13:34:38]OFD Sender: No OFD packet to send [13:34:43]OFD Sender: No OFD packet to send [13:34:48]OFD Sender: No OFD packet to send [13:34:53]OFD Sender: No OFD packet to send [13:34:58]OFD Sender: No OFD packet to send [13:35:03]OFD Sender: No OFD packet to send [13:35:08]OFD Sender: No OFD packet to send [13:35:13]OFD Sender: No OFD packet to send [13:35:18]OFD Sender: No OFD packet to send [13:35:23]OFD Sender: No OFD packet to send [13:35:28]OFD Sender: No OFD packet to send [13:35:33]OFD Sender: No OFD packet to send [13:35:38]OFD Sender: No OFD packet to send [13:35:43]OFD Sender: No OFD packet to send [13:35:48]OFD Sender: No OFD packet to send [13:35:53]OFD Sender: No OFD packet to send [13:35:58]OFD Sender: No OFD packet to send [13:36:03]OFD Sender: No OFD packet to send [13:36:08]OFD Sender: No OFD packet to send [13:36:13]OFD Sender: No OFD packet to send [13:36:18]OFD Sender: No OFD packet to send [13:36:23]OFD Sender: No OFD packet to send [13:36:28]OFD Sender: No OFD packet to send [13:36:33]OFD Sender: No OFD packet to send [13:36:38]OFD Sender: No OFD packet to send [13:36:43]OFD Sender: No OFD packet to send [13:36:48]OFD Sender: No OFD packet to send [13:36:53]OFD Sender: No OFD packet to send [13:36:58]OFD Sender: No OFD packet to send [13:37:03]OFD Sender: No OFD packet to send [13:37:08]OFD Sender: No OFD packet to send [13:37:13]OFD Sender: No OFD packet to send [13:37:18]OFD Sender: No OFD packet to send [13:37:23]OFD Sender: No OFD packet to send [13:37:28]OFD Sender: No OFD packet to send [13:37:29]accept exits with 6 [13:37:29]New connection [13:37:29]New thread 3066637668 created [13:37:29]Waiting for new connection... [13:37:29] Sock 6.Parse request [13:37:29]Sock 6.Check first char [13:37:29]Sock 6.First char is OK [13:37:29]request: POST /json_proto HTTP/1.0 [13:37:29]Method: POST [13:37:29]URL: /json_proto [13:37:29]Method is POST - this is cgi request [13:37:29]url: /json_proto [13:37:29]query_string will be loaded in cgi processing [13:37:29]execute_cgi json_proto POST (null) [13:37:29]execute_cgi path=json_proto method=POST [13:37:29]POST find Content-Length [13:37:29]Host: 172.17.38.133:8080 [13:37:29]Content-Length: 816 [13:37:29]Content-Type: application/json [13:37:29] [13:37:29]POST finish read [13:37:29]Found Content-Length = 816 [13:37:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673604", "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.430, "sum" : 493.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 493.35 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:37:29]execute_script... [13:37: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)673604", "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.430, "sum" : 493.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 493.35 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:37:29]POST & json_proto [13:37:29]process_json_proto [13:37:29]json parsed OK: [13:37:29]protocol is kg_v1.0 [13:37:29]action value=close_receipt [13:37:29]process_action close_receipt [13:37:29]cmd_close_receipt [13:37:29]MH_GetDate [13:37:29]Write to MH i2c: F0 00 00 10 00 FF [13:37:29]Write i2c OK [13:37:29]MH_I2C_Read... [13:37:29]Read from MH i2c: F0 [13:37:29]MH_I2C_Read... [13:37:29]Read from MH i2c: F0 09 00 [13:37:29]MH_I2C_Read... [13:37:29]Read from MH i2c: F0 09 00 10 00 00 1A 82 75 66 BD 8F 7C 64 AB [13:37:29]GetLastDocTimeStamp 1718976374 [13:37:29]current date 1718977050 [13:37:29]FM_GetShiftState [13:37:29]SAM_PROTO_GetShiftState [13:37:29]wFMCommunicate request_size=4 [13:37:29]MH_SAM_APDU [13:37:29]CAPDU: 80 13 01 00 [13:37:29]Write to MH i2c: E2 08 00 11 00 80 13 01 00 00 00 00 00 8E [13:37:29]Write i2c OK [13:37:29]MH_I2C_Read... [13:37:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:37:29]Read from MH i2c: E2 [13:37:29]MH_I2C_Read... [13:37:29]Read from MH i2c: E2 0E 00 [13:37:29]MH_I2C_Read... [13:37:29]Read from MH i2c: E2 0E 00 11 00 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 A1 [13:37:29]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [13:37:29]wFMCommunicate OK [13:37:29]SAM_PROTO_GetShiftState done [13:37:29]FM_GetShiftState done [13:37:29]opened in 1718929509 [13:37:29]opened+sec_in_day 1719015909 [13:37:29]quantity*price = 49335 [13:37:29]sum+1 = 49336 [13:37:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 493.35 НСП 1% : 4.37 НДС 12% : 52.39 Наличными: 0.00 Безнал.: 493.35 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 94 21.06.2024 13:37 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875093 ФД: 104171 ФПД: 30799200245809 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T133730&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104171&fm=30799200245809&tin=02508201610067®Number=0000000000092785&sum=49335 [13:37:30]StoreToDocumentArchive [13:37:30]shift 355 fd 104171 [13:37:30]save to /storage/0355/doc_00104171 [13:37:30]save last doc name /storage/0355/doc_00104171 to /storage/kkm_last_doc_name [13:37:30]save OK [13:37:30]Clear old archive folders... [13:37:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:37:30]tlvbuf is 0037EBC0 [13:37:30]SAM_PROTO_ClearQueue [13:37:30]wFMCommunicate request_size=4 [13:37:30]MH_SAM_APDU [13:37:30]CAPDU: 80 09 00 00 [13:37:30]Write to MH i2c: E2 08 00 1E 00 80 09 00 00 00 00 00 00 90 [13:37:30]Write i2c OK [13:37:30]MH_I2C_Read... [13:37:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:37:30]Read from MH i2c: E2 [13:37:30]MH_I2C_Read... [13:37:30]Read from MH i2c: E2 03 00 [13:37:30]MH_I2C_Read... [13:37:30]Read from MH i2c: E2 03 00 1E 00 00 90 00 92 [13:37:30]RAPDU: 90 00 [13:37:30]wFMCommunicate OK [13:37:30]SAM_PROTO_ClearQueue done [13:37:30]KKMCreateOFDPacket [13:37:30]OFDProtocolAddRootSTLVToBuf [13:37:30]FM_MakeSignedData [13:37:30]FM_MakeSignedData [13:37:30]SAM_PROTO_SignData [13:37:30]wFMCommunicate request_size=4 [13:37:30]MH_SAM_APDU [13:37:30]CAPDU: 80 0D 01 02 [13:37:30]Write to MH i2c: E2 08 00 1F 00 80 0D 01 02 00 00 00 00 98 [13:37:30]Write i2c OK [13:37:30]MH_I2C_Read... [13:37:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:37:30]Read from MH i2c: E2 [13:37:30]MH_I2C_Read... [13:37:30]Read from MH i2c: E2 03 00 [13:37:30]MH_I2C_Read... [13:37:30]Read from MH i2c: E2 03 00 1F 00 00 90 00 93 [13:37:30]RAPDU: 90 00 [13:37:30]wFMCommunicate OK [13:37:30]wFMCommunicate request_size=255 [13:37:30]MH_SAM_APDU [13:37: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 06 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 B7 C0 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B7 C0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B7 C0 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 1A 82 75 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 EB 96 01 00 35 04 06 00 1C [13:37:30]Write to MH i2c: E2 02 01 20 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 06 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 B7 C0 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B7 C0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B7 C0 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 1A 82 75 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 EB 96 01 00 35 04 06 00 1C 00 00 51 [13:37:30]Write i2c OK [13:37:30]MH_I2C_Read... [13:37:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:37:30]Read from MH i2c: E2 [13:37:30]MH_I2C_Read... [13:37:30]Read from MH i2c: E2 03 00 [13:37:30]MH_I2C_Read... [13:37:30]Read from MH i2c: E2 03 00 20 00 00 90 00 94 [13:37:30]RAPDU: 90 00 [13:37:30]wFMCommunicate OK [13:37:30]wFMCommunicate request_size=10 [13:37:30]MH_SAM_APDU [13:37:30]CAPDU: 80 0D 02 02 05 02 FF 63 D8 31 [13:37:30]Write to MH i2c: E2 0D 00 21 00 80 0D 02 02 05 00 02 FF 63 D8 31 00 00 12 [13:37:30]Write i2c OK [13:37:30]MH_I2C_Read... [13:37:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:37:30]Read from MH i2c: E2 [13:37:30]MH_I2C_Read... [13:37:30]Read from MH i2c: E2 03 00 [13:37:30]MH_I2C_Read... [13:37:30]Read from MH i2c: E2 03 00 21 00 00 90 00 95 [13:37:30]RAPDU: 90 00 [13:37:30]wFMCommunicate OK [13:37:30]wFMCommunicate request_size=4 [13:37:30]MH_SAM_APDU [13:37:30]CAPDU: 80 0D 03 02 [13:37:30]Write to MH i2c: E2 08 00 22 00 80 0D 03 02 00 00 00 00 9D [13:37:30]Write i2c OK [13:37:30]MH_I2C_Read... [13:37:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:37:30]Read from MH i2c: E2 [13:37:30]MH_I2C_Read... [13:37:30]Read from MH i2c: E2 0B 00 [13:37:30]MH_I2C_Read... [13:37:30]Read from MH i2c: E2 0B 00 22 00 00 12 0B 88 2C E7 C1 47 B4 90 00 12 [13:37:30]RAPDU: 12 0B 88 2C E7 C1 47 B4 90 00 [13:37:30]wFMCommunicate OK [13:37:30]SAM_PROTO_SignData done [13:37:30]FM_MakeSignedData done [13:37:30]CreateOFDProtocolMessage [13:37:30]wFMCommunicate request_size=4 [13:37:30]MH_SAM_APDU [13:37:30]CAPDU: 80 11 00 00 [13:37:30]Write to MH i2c: E2 08 00 23 00 80 11 00 00 00 00 00 00 9D [13:37:30]Write i2c OK [13:37:30]MH_I2C_Read... [13:37:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:37:30]Read from MH i2c: E2 [13:37:30]MH_I2C_Read... [13:37:30]Read from MH i2c: E2 17 00 [13:37:30]MH_I2C_Read... [13:37:30]Read from MH i2c: E2 17 00 23 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 F0 [13: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 [13:37:30]wFMCommunicate OK [13:37:30]CreateOFDProtocolMessage done [13:37:30]OFDSenderStorePacket 104171 [13:37:30]StoreOFDPacket docnum=104171 [13:37: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 F5 99 07 01 57 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 06 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 B7 C0 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B7 C0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B7 C0 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 1A 82 75 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 EB 96 01 00 35 04 06 00 1C 02 FF 63 D8 31 12 0B 88 2C E7 C1 47 B4 [13:37:30]CheckFolder [13:37:30]dirname=/storage/ofd_packets [13:37:30]CheckFolder done [13:37:30]ProducePacketName [13:37:30]name=ofd_packets/00104171 [13:37:30]NVStorageSaveData ofd_packets/00104171 [13:37:30]File name is /storage/ofd_packets/00104171 [13:37:30]Write 301 bytes [13:37:30]NVStorageSaveData done [13:37:30]OFDSenderStorePacket done [13:37:30]KKMCreateOFDPacket done [13:37:30]NVStorageSaveData kkm_last_timestamp [13:37:30]File name is /storage/kkm_last_timestamp [13:37:30]Write 4 bytes [13:37:30]NVStorageSaveData done [13:37:30]ExternCall_PrintAddStr [13:37:30]wPrintStart [13:37:30]Write to MH i2c: 01 00 00 24 00 24 [13:37:30]Write i2c OK [13:37:30]MH_I2C_Read... [13:37:30]Read from MH i2c: 01 [13:37:30]MH_I2C_Read... [13:37:30]Read from MH i2c: 01 07 00 [13:37:30]MH_I2C_Read... [13:37:30]Read from MH i2c: 01 07 00 24 00 00 00 00 00 00 FF 0F 39 [13:37:30]RasterBufferAndPrint [13:37:30]line Счет N : (1)673604 [13:37:30]line ИНН: 02508201610067 [13:37:30]line Контрольно-Кассовый Чек [13:37:30]line ПРОДАЖА [13:37:30]line ТРК (МРК, ГНК) : 42 [13:37:30]line Товар: 2710124130 [13:37:30]line Аи-92-К-5 [13:37:30]line 7.430 * 66.40 [13:37:30]line = 493.35 [13:37:30]line НДС 12% НСП 1% [13:37:30]line > о реализуемом товаре [13:37:30]line ИТОГО: 493.35 [13:37:30]line НСП 1% : 4.37 [13:37:30]line НДС 12% : 52.39 [13:37:30]line Наличными: 0.00 [13:37:30]line Безнал.: 493.35 [13:37:30]line Место: АЗС № 120 "Партнер Нефть" [13:37:30]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [13:37:30]line СНО: Общий режим [13:37:30]line Чек 94 21.06.2024 13:37 [13:37:30]line Смена: 355 ФФД: 1.0 [13:37:30]line ЗНМ: 0300000164 [13:37:30]line РНМ: 0000000000092785 [13:37:30]line Версия ККМ: 001 [13:37:30]line Платежная система: Бакай Банк [13:37:30]line ФМ: 0000000000875093 [13:37:30]line ФД: 104171 [13:37:30]line ФПД: 30799200245809 [13:37:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T133730&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104171&fm=30799200245809&tin=02508201610067®Number=0000000000092785&sum=49335 [13:37:30]written 0, free lines is 4095 [13:37:30]OFD Sender: Processing packet 104171 [packets to send 17, broken 16] [13:37:30]ProducePacketName [13:37:30]name=ofd_packets/00104171 [13:37:30]OFD Sender: To server: pG, [13:37:30]CommunicateWithHost lk.salyk.kg:30040 [13:37:30]ConnectInit lk.salyk.kg [13:37:31]Connected sock=11 [13:37: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 F5 99 07 01 57 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 06 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 B7 C0 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B7 C0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B7 C0 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 1A 82 75 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 EB 96 01 00 35 04 06 00 1C 02 FF 63 D8 31 12 0B 88 2C E7 C1 47 B4 [13:37: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 D1 E1 47 00 DE 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 EB 96 01 00 F4 03 04 00 9C 28 75 66 B6 04 01 00 00 31 20 6B AF 91 0F 9B AA [13:37:31]CommunicateWithHost err = 0 [13:37:31]CheckOFDResponse [13:37:31]1017 (14) - 77093643461234 [13:37:31]1041 (16) - 0000000000875093 [13:37:31]1040 (4) - 104171 [13:37:31]1012 (4) - 21.06.2024 07:15 [13:37:31]1206 (1) - 0 [13:37:31]OFD Sender: Remove packet 104171 [13:37:31]ProducePacketName [13:37:31]name=ofd_packets/00104171 [13:37:31]NVStorageDeleteData [13:37:31]Write to MH i2c: 01 00 00 4E 00 4E [13:37:31]Write i2c OK [13:37:31]MH_I2C_Read... [13:37:31]Read from MH i2c: 01 [13:37:31]MH_I2C_Read... [13:37:31]Read from MH i2c: 01 07 00 [13:37:31]MH_I2C_Read... [13:37:31]Read from MH i2c: 01 07 00 4E 00 00 00 00 00 00 FB 0C 5C [13:37:31]RasterBufferAndPrint [13:37:31]line [13:37:31]line [13:37:31]line [13:37:31]line [13:37:31]line [13:37:31]written 0, free lines is 3329 [13:37:31]MH_Cut [13:37:31]Write to MH i2c: D1 01 00 55 00 01 27 [13:37:31]Write i2c OK [13:37:31]MH_I2C_Read... [13:37:31]Read from MH i2c: D1 [13:37:31]MH_I2C_Read... [13:37:31]Read from MH i2c: D1 01 00 [13:37:31]MH_I2C_Read... [13:37:31]Read from MH i2c: D1 01 00 55 00 00 26 [13:37:31]Write to MH i2c: 01 00 00 56 00 56 [13:37:31]Write i2c OK [13:37:31]MH_I2C_Read... [13:37:31]OFD Sender: No OFD packet to send [13:37:32]*** Cut start [13:37:32]*** Partial cut [13:37:32]*** CUTSNS_PIN = 1 [13:37:32]*** CUTSNS_PIN = 0 [13:37:32]*** Brake cut motor [13:37:32]Read from MH i2c: 01 [13:37:32]MH_I2C_Read... [13:37:32]*** Stop cut motor [13:37:32]*** Cut end [13:37:32]Read from MH i2c: 01 07 00 [13:37:32]MH_I2C_Read... [13:37:32]Read from MH i2c: 01 07 00 56 00 00 00 00 00 00 FF 0F 6B [13:37:32]process_action close_receipt done [13:37:32]requested_data is exist [13:37:32]produce_requested_data [13:37:32]requested_item fm.sn is exist - process it [13:37:32]wFMCommunicate request_size=4 [13:37:32]MH_SAM_APDU [13:37:32]CAPDU: 80 11 00 00 [13:37:32]Write to MH i2c: E2 08 00 57 00 80 11 00 00 00 00 00 00 D1 [13:37:32]Write i2c OK [13:37:32]MH_I2C_Read... [13:37:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:37:32]Read from MH i2c: E2 [13:37:32]MH_I2C_Read... [13:37:32]Read from MH i2c: E2 17 00 [13:37:32]MH_I2C_Read... [13:37:32]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 [13:37: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:37:32]wFMCommunicate OK [13:37:32]requested_item fd.num is exist - process it [13:37:32]SAM_PROTO_GetFieldsCounters [13:37:32]wFMCommunicate request_size=4 [13:37:32]MH_SAM_APDU [13:37:32]CAPDU: 80 13 00 00 [13:37:32]Write to MH i2c: E2 08 00 58 00 80 13 00 00 00 00 00 00 D4 [13:37:32]Write i2c OK [13:37:32]MH_I2C_Read... [13:37:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:37:32]Read from MH i2c: E2 [13:37:32]MH_I2C_Read... [13:37:32]Read from MH i2c: E2 62 00 [13:37:32]MH_I2C_Read... [13:37:32]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 EB 96 01 00 0E 04 04 00 63 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 FB [13:37: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 EB 96 01 00 0E 04 04 00 63 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 [13:37:32]wFMCommunicate OK [13:37:32]SAM_PROTO_GetFieldsCounters done [13:37:32]requested_item shift.num is exist - process it [13:37:32]requested_item shift.opened is exist - process it [13:37:32]req_shift_opened [13:37:32]FM_GetShiftState [13:37:32]SAM_PROTO_GetShiftState [13:37:32]wFMCommunicate request_size=4 [13:37:32]MH_SAM_APDU [13:37:32]CAPDU: 80 13 01 00 [13:37:32]Write to MH i2c: E2 08 00 59 00 80 13 01 00 00 00 00 00 D6 [13:37:32]Write i2c OK [13:37:32]MH_I2C_Read... [13:37:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:37:32]Read from MH i2c: E2 [13:37:32]MH_I2C_Read... [13:37:32]Read from MH i2c: E2 0E 00 [13:37:32]MH_I2C_Read... [13:37:32]Read from MH i2c: E2 0E 00 59 00 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 E9 [13:37:32]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [13:37:32]wFMCommunicate OK [13:37:32]SAM_PROTO_GetShiftState done [13:37:32]FM_GetShiftState done [13:37:32]req_shift_opened done [13:37:32]requested_item shift.open_date is exist - process it [13:37:32]req_shift_open_date [13:37:32]req_shift_open_date done [13:37:32]produce_requested_data done [13:37:32]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104171,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [13:37:32]process_action_free close_receipt [13:37:32]json_value_free [13:37:32]json_value_free done [13:37:32]process_json_proto returns [13:37:32]Send response to host [13:37:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104171,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [13:37:32]free response buf [13:37:32]execute_script done [13:37:32]execute_script returns [13:37:32]free content buf [13:37:32]Sock 6.Close socket [13:37:32]Sock 6.Thread stoped [13:37:36]OFD Sender: No OFD packet to send [13:37:41]OFD Sender: No OFD packet to send [13:37:46]OFD Sender: No OFD packet to send [13:37:51]OFD Sender: No OFD packet to send [13:37:56]OFD Sender: No OFD packet to send [13:38:01]OFD Sender: No OFD packet to send [13:38:06]OFD Sender: No OFD packet to send [13:38:11]OFD Sender: No OFD packet to send [13:38:15]accept exits with 9 [13:38:15]New connection [13:38:15]New thread 3066494308 created [13:38:15]Thread 3066637668 joined [13:38:15]Waiting for new connection... [13:38:15] Sock 9.Parse request [13:38:15]Sock 9.Check first char [13:38:15]Sock 9.First char is OK [13:38:15]request: POST /json_proto HTTP/1.0 [13:38:15]Method: POST [13:38:15]URL: /json_proto [13:38:15]Method is POST - this is cgi request [13:38:15]url: /json_proto [13:38:15]query_string will be loaded in cgi processing [13:38:15]execute_cgi json_proto POST (null) [13:38:15]execute_cgi path=json_proto method=POST [13:38:15]POST find Content-Length [13:38:15]Host: 172.17.38.133:8080 [13:38:15]Content-Length: 682 [13:38:15]Content-Type: application/json [13:38:15] [13:38:15]POST finish read [13:38:15]Found Content-Length = 682 [13:38:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673603", "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:38:15]execute_script... [13:38: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)673603", "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:38:15]POST & json_proto [13:38:15]process_json_proto [13:38:15]json parsed OK: [13:38:15]protocol is kg_v1.0 [13:38:15]action value=close_receipt [13:38:15]process_action close_receipt [13:38:15]cmd_close_receipt [13:38:15]MH_GetDate [13:38:15]Write to MH i2c: F0 00 00 5A 00 49 [13:38:15]Write i2c OK [13:38:15]MH_I2C_Read... [13:38:15]Read from MH i2c: F0 [13:38:15]MH_I2C_Read... [13:38:15]Read from MH i2c: F0 09 00 [13:38:15]MH_I2C_Read... [13:38:15]Read from MH i2c: F0 09 00 5A 00 00 48 82 75 66 BD 8F 7C 64 23 [13:38:15]GetLastDocTimeStamp 1718977050 [13:38:15]current date 1718977096 [13:38:15]FM_GetShiftState [13:38:15]SAM_PROTO_GetShiftState [13:38:15]wFMCommunicate request_size=4 [13:38:15]MH_SAM_APDU [13:38:15]CAPDU: 80 13 01 00 [13:38:15]Write to MH i2c: E2 08 00 5B 00 80 13 01 00 00 00 00 00 D8 [13:38:15]Write i2c OK [13:38:15]MH_I2C_Read... [13:38:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:38:15]Read from MH i2c: E2 [13:38:15]MH_I2C_Read... [13:38:15]Read from MH i2c: E2 0E 00 [13:38:15]MH_I2C_Read... [13:38:15]Read from MH i2c: E2 0E 00 5B 00 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 EB [13:38:15]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [13:38:15]wFMCommunicate OK [13:38:15]SAM_PROTO_GetShiftState done [13:38:15]FM_GetShiftState done [13:38:15]opened in 1718929509 [13:38:15]opened+sec_in_day 1719015909 [13:38:15]quantity*price = 200063 [13:38:15]sum+1 = 200064 [13:38:15]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 СНО: Общий режим Чек 95 21.06.2024 13:38 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104172 ФПД: 101126243342139 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T133816&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104172&fm=101126243342139&tin=02508201610067®Number=0000000000092785&sum=200000 [13:38:16]StoreToDocumentArchive [13:38:16]shift 355 fd 104172 [13:38:16]save to /storage/0355/doc_00104172 [13:38:16]save last doc name /storage/0355/doc_00104172 to /storage/kkm_last_doc_name [13:38:16]save OK [13:38:16]Clear old archive folders... [13:38:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:38:16]tlvbuf is 00369580 [13:38:16]SAM_PROTO_ClearQueue [13:38:16]wFMCommunicate request_size=4 [13:38:16]MH_SAM_APDU [13:38:16]CAPDU: 80 09 00 00 [13:38:16]Write to MH i2c: E2 08 00 68 00 80 09 00 00 00 00 00 00 DA [13:38:16]Write i2c OK [13:38:16]MH_I2C_Read... [13:38:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:38:16]Read from MH i2c: E2 [13:38:16]MH_I2C_Read... [13:38:16]Read from MH i2c: E2 03 00 [13:38:16]MH_I2C_Read... [13:38:16]Read from MH i2c: E2 03 00 68 00 00 90 00 DC [13:38:16]RAPDU: 90 00 [13:38:16]wFMCommunicate OK [13:38:16]SAM_PROTO_ClearQueue done [13:38:16]KKMCreateOFDPacket [13:38:16]OFDProtocolAddRootSTLVToBuf [13:38:16]FM_MakeSignedData [13:38:16]FM_MakeSignedData [13:38:16]SAM_PROTO_SignData [13:38:16]wFMCommunicate request_size=4 [13:38:16]MH_SAM_APDU [13:38:16]CAPDU: 80 0D 01 02 [13:38:16]Write to MH i2c: E2 08 00 69 00 80 0D 01 02 00 00 00 00 E2 [13:38:16]Write i2c OK [13:38:16]MH_I2C_Read... [13:38:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:38:16]Read from MH i2c: E2 [13:38:16]MH_I2C_Read... [13:38:16]Read from MH i2c: E2 03 00 [13:38:16]MH_I2C_Read... [13:38:16]Read from MH i2c: E2 03 00 69 00 00 90 00 DD [13:38:16]RAPDU: 90 00 [13:38:16]wFMCommunicate OK [13:38:16]wFMCommunicate request_size=255 [13:38:16]MH_SAM_APDU [13:38: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 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 5F 00 00 00 F4 03 04 00 48 82 75 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 EC 96 01 00 35 04 06 00 5B [13:38:16]Write to MH i2c: E2 02 01 6A 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 5F 00 00 00 F4 03 04 00 48 82 75 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 EC 96 01 00 35 04 06 00 5B 00 00 D7 [13:38:16]Write i2c OK [13:38:16]MH_I2C_Read... [13:38:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:38:16]Read from MH i2c: E2 [13:38:16]MH_I2C_Read... [13:38:16]Read from MH i2c: E2 03 00 [13:38:16]MH_I2C_Read... [13:38:16]Read from MH i2c: E2 03 00 6A 00 00 90 00 DE [13:38:16]RAPDU: 90 00 [13:38:16]wFMCommunicate OK [13:38:16]wFMCommunicate request_size=10 [13:38:16]MH_SAM_APDU [13:38:16]CAPDU: 80 0D 02 02 05 F9 49 CF D7 3B [13:38:16]Write to MH i2c: E2 0D 00 6B 00 80 0D 02 02 05 00 F9 49 CF D7 3B 00 00 12 [13:38:16]Write i2c OK [13:38:16]MH_I2C_Read... [13:38:16]Read from MH i2c: E2 [13:38:16]MH_I2C_Read... [13:38:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:38:16]Read from MH i2c: E2 03 00 [13:38:16]MH_I2C_Read... [13:38:16]Read from MH i2c: E2 03 00 6B 00 00 90 00 DF [13:38:16]RAPDU: 90 00 [13:38:16]wFMCommunicate OK [13:38:16]wFMCommunicate request_size=4 [13:38:16]MH_SAM_APDU [13:38:16]CAPDU: 80 0D 03 02 [13:38:16]Write to MH i2c: E2 08 00 6C 00 80 0D 03 02 00 00 00 00 E7 [13:38:16]Write i2c OK [13:38:16]MH_I2C_Read... [13:38:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:38:16]Read from MH i2c: E2 [13:38:16]MH_I2C_Read... [13:38:16]Read from MH i2c: E2 0B 00 [13:38:16]MH_I2C_Read... [13:38:16]Read from MH i2c: E2 0B 00 6C 00 00 FB 86 2F 7E CE B0 43 E1 90 00 B8 [13:38:16]RAPDU: FB 86 2F 7E CE B0 43 E1 90 00 [13:38:16]wFMCommunicate OK [13:38:16]SAM_PROTO_SignData done [13:38:16]FM_MakeSignedData done [13:38:16]CreateOFDProtocolMessage [13:38:16]wFMCommunicate request_size=4 [13:38:16]MH_SAM_APDU [13:38:16]CAPDU: 80 11 00 00 [13:38:16]Write to MH i2c: E2 08 00 6D 00 80 11 00 00 00 00 00 00 E7 [13:38:16]Write i2c OK [13:38:16]MH_I2C_Read... [13:38:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:38:16]Read from MH i2c: E2 [13:38:16]MH_I2C_Read... [13:38:16]Read from MH i2c: E2 17 00 [13:38:16]MH_I2C_Read... [13:38:16]Read from MH i2c: E2 17 00 6D 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 3A [13:38:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [13:38:16]wFMCommunicate OK [13:38:16]CreateOFDProtocolMessage done [13:38:16]OFDSenderStorePacket 104172 [13:38:16]StoreOFDPacket docnum=104172 [13:38: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 A1 EC 07 01 32 E4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 5F 00 00 00 F4 03 04 00 48 82 75 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 EC 96 01 00 35 04 06 00 5B F9 49 CF D7 3B FB 86 2F 7E CE B0 43 E1 [13:38:16]CheckFolder [13:38:16]dirname=/storage/ofd_packets [13:38:16]CheckFolder done [13:38:16]ProducePacketName [13:38:16]name=ofd_packets/00104172 [13:38:16]NVStorageSaveData ofd_packets/00104172 [13:38:16]File name is /storage/ofd_packets/00104172 [13:38:16]Write 301 bytes [13:38:16]NVStorageSaveData done [13:38:16]OFDSenderStorePacket done [13:38:16]KKMCreateOFDPacket done [13:38:16]NVStorageSaveData kkm_last_timestamp [13:38:16]File name is /storage/kkm_last_timestamp [13:38:16]Write 4 bytes [13:38:16]NVStorageSaveData done [13:38:16]ExternCall_PrintAddStr [13:38:16]wPrintStart [13:38:16]Write to MH i2c: 01 00 00 6E 00 6E [13:38:16]Write i2c OK [13:38:16]MH_I2C_Read... [13:38:16]Read from MH i2c: 01 [13:38:16]MH_I2C_Read... [13:38:16]Read from MH i2c: 01 07 00 [13:38:16]MH_I2C_Read... [13:38:16]Read from MH i2c: 01 07 00 6E 00 00 00 00 00 00 FF 0F 83 [13:38:16]RasterBufferAndPrint [13:38:16]line Счет N : (1)673603 [13:38:16]line ИНН: 02508201610067 [13:38:16]line Контрольно-Кассовый Чек [13:38:16]line ПРОДАЖА [13:38:16]line ТРК (МРК, ГНК) : 32 [13:38:16]line Товар: 2710124130 [13:38:16]line Аи-92-К-5 [13:38:16]line 30.130 * 66.40 [13:38:16]line = 2000.63 [13:38:16]line НДС 12% НСП 1% [13:38:16]line > о реализуемом товаре [13:38:16]line ОКРУГЛЕНИЕ: -0.63 [13:38:16]line ИТОГО: 2000.00 [13:38:16]line Внесено: 2000.00 [13:38:16]line СДАЧА: 0.00 [13:38:16]line НСП 1% : 17.70 [13:38:16]line НДС 12% : 212.46 [13:38:16]line Наличными: 2000.00 [13:38:16]line Безнал.: 0.00 [13:38:16]line Место: АЗС № 120 "Партнер Нефть" [13:38:16]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [13:38:16]line СНО: Общий режим [13:38:16]line Чек 95 21.06.2024 13:38 [13:38:16]line Смена: 355 ФФД: 1.0 [13:38:16]line ЗНМ: 0300000164 [13:38:16]line РНМ: 0000000000092785 [13:38:16]line Версия ККМ: 001 [13:38:16]line ФМ: 0000000000875093 [13:38:16]line ФД: 104172 [13:38:16]line ФПД: 101126243342139 [13:38:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T133816&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104172&fm=101126243342139&tin=02508201610067®Number=0000000000092785&sum=200000 [13:38:16]written 0, free lines is 4095 [13:38:16]OFD Sender: Processing packet 104172 [packets to send 17, broken 16] [13:38:16]ProducePacketName [13:38:16]name=ofd_packets/00104172 [13:38:16]OFD Sender: To server: pG, [13:38:16]CommunicateWithHost lk.salyk.kg:30040 [13:38:16]ConnectInit lk.salyk.kg [13:38:17]Connected sock=10 [13:38: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 A1 EC 07 01 32 E4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 5F 00 00 00 F4 03 04 00 48 82 75 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 EC 96 01 00 35 04 06 00 5B F9 49 CF D7 3B FB 86 2F 7E CE B0 43 E1 [13:38: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 89 97 47 00 71 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 EC 96 01 00 F4 03 04 00 CA 28 75 66 B6 04 01 00 00 45 32 D2 55 5D E6 59 AE [13:38:17]CommunicateWithHost err = 0 [13:38:17]CheckOFDResponse [13:38:17]1017 (14) - 77093643461234 [13:38:17]1041 (16) - 0000000000875093 [13:38:17]1040 (4) - 104172 [13:38:17]1012 (4) - 21.06.2024 07:16 [13:38:17]1206 (1) - 0 [13:38:17]OFD Sender: Remove packet 104172 [13:38:17]ProducePacketName [13:38:17]name=ofd_packets/00104172 [13:38:17]NVStorageDeleteData [13:38:17]Write to MH i2c: 01 00 00 99 00 99 [13:38:17]Write i2c OK [13:38:17]MH_I2C_Read... [13:38:17]Read from MH i2c: 01 [13:38:17]MH_I2C_Read... [13:38:17]Read from MH i2c: 01 07 00 [13:38:17]MH_I2C_Read... [13:38:17]Read from MH i2c: 01 07 00 99 00 00 00 00 00 00 EF 0C 9B [13:38:17]RasterBufferAndPrint [13:38:17]line [13:38:17]line [13:38:17]line [13:38:17]line [13:38:17]line [13:38:17]written 0, free lines is 3317 [13:38:17]MH_Cut [13:38:17]Write to MH i2c: D1 01 00 A0 00 01 72 [13:38:17]Write i2c OK [13:38:17]MH_I2C_Read... [13:38:17]Read from MH i2c: D1 [13:38:17]MH_I2C_Read... [13:38:17]Read from MH i2c: D1 01 00 [13:38:17]MH_I2C_Read... [13:38:17]Read from MH i2c: D1 01 00 A0 00 00 71 [13:38:17]Write to MH i2c: 01 00 00 A1 00 A1 [13:38:17]Write i2c OK [13:38:17]MH_I2C_Read... [13:38:17]OFD Sender: No OFD packet to send [13:38:18]*** Cut start [13:38:18]*** Partial cut [13:38:18]*** CUTSNS_PIN = 1 [13:38:18]*** CUTSNS_PIN = 0 [13:38:18]*** Brake cut motor [13:38:18]Read from MH i2c: 01 [13:38:18]MH_I2C_Read... [13:38:18]*** Stop cut motor [13:38:18]*** Cut end [13:38:18]Read from MH i2c: 01 07 00 [13:38:18]MH_I2C_Read... [13:38:18]Read from MH i2c: 01 07 00 A1 00 00 00 00 00 00 FF 0F B6 [13:38:18]process_action close_receipt done [13:38:18]requested_data is exist [13:38:18]produce_requested_data [13:38:18]requested_item fm.sn is exist - process it [13:38:18]wFMCommunicate request_size=4 [13:38:18]MH_SAM_APDU [13:38:18]CAPDU: 80 11 00 00 [13:38:18]Write to MH i2c: E2 08 00 A2 00 80 11 00 00 00 00 00 00 1C [13:38:18]Write i2c OK [13:38:18]MH_I2C_Read... [13:38:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:38:18]Read from MH i2c: E2 [13:38:18]MH_I2C_Read... [13:38:18]Read from MH i2c: E2 17 00 [13:38:18]MH_I2C_Read... [13:38:18]Read from MH i2c: E2 17 00 A2 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 6F [13:38: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:38:18]wFMCommunicate OK [13:38:18]requested_item fd.num is exist - process it [13:38:18]SAM_PROTO_GetFieldsCounters [13:38:18]wFMCommunicate request_size=4 [13:38:18]MH_SAM_APDU [13:38:18]CAPDU: 80 13 00 00 [13:38:18]Write to MH i2c: E2 08 00 A3 00 80 13 00 00 00 00 00 00 1F [13:38:18]Write i2c OK [13:38:18]MH_I2C_Read... [13:38:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:38:18]Read from MH i2c: E2 [13:38:18]MH_I2C_Read... [13:38:18]Read from MH i2c: E2 62 00 [13:38:18]MH_I2C_Read... [13:38:18]Read from MH i2c: E2 62 00 A3 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 EC 96 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 4A [13:38: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 EC 96 01 00 0E 04 04 00 63 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:38:18]wFMCommunicate OK [13:38:18]SAM_PROTO_GetFieldsCounters done [13:38:18]requested_item shift.num is exist - process it [13:38:18]requested_item shift.opened is exist - process it [13:38:18]req_shift_opened [13:38:18]FM_GetShiftState [13:38:18]SAM_PROTO_GetShiftState [13:38:18]wFMCommunicate request_size=4 [13:38:18]MH_SAM_APDU [13:38:18]CAPDU: 80 13 01 00 [13:38:18]Write to MH i2c: E2 08 00 A4 00 80 13 01 00 00 00 00 00 21 [13:38:18]Write i2c OK [13:38:18]MH_I2C_Read... [13:38:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:38:18]Read from MH i2c: E2 [13:38:18]MH_I2C_Read... [13:38:18]Read from MH i2c: E2 0E 00 [13:38:18]MH_I2C_Read... [13:38:18]Read from MH i2c: E2 0E 00 A4 00 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 34 [13:38:18]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [13:38:18]wFMCommunicate OK [13:38:18]SAM_PROTO_GetShiftState done [13:38:18]FM_GetShiftState done [13:38:18]req_shift_opened done [13:38:18]requested_item shift.open_date is exist - process it [13:38:18]req_shift_open_date [13:38:18]req_shift_open_date done [13:38:18]produce_requested_data done [13:38:18]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104172,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [13:38:18]process_action_free close_receipt [13:38:18]json_value_free [13:38:18]json_value_free done [13:38:18]process_json_proto returns [13:38:18]Send response to host [13:38:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104172,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [13:38:18]free response buf [13:38:18]execute_script done [13:38:18]execute_script returns [13:38:18]free content buf [13:38:18]Sock 9.Close socket [13:38:18]Sock 9.Thread stoped [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:37]accept exits with 8 [13:40:37]New connection [13:40:37]New thread 3066637668 created [13:40:37]Thread 3066494308 joined [13:40:37]Waiting for new connection... [13:40:37] Sock 8.Parse request [13:40:37]Sock 8.Check first char [13:40:37]Sock 8.First char is OK [13:40:37]request: POST /json_proto HTTP/1.0 [13:40:37]Method: POST [13:40:37]URL: /json_proto [13:40:37]Method is POST - this is cgi request [13:40:37]url: /json_proto [13:40:37]query_string will be loaded in cgi processing [13:40:37]execute_cgi json_proto POST (null) [13:40:37]execute_cgi path=json_proto method=POST [13:40:37]POST find Content-Length [13:40:37]Host: 172.17.38.133:8080 [13:40:37]Content-Length: 677 [13:40:37]Content-Type: application/json [13:40:37] [13:40:37]POST finish read [13:40:37]Found Content-Length = 677 [13:40:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673605", "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:40:37]execute_script... [13:40:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673605", "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:40:37]POST & json_proto [13:40:37]process_json_proto [13:40:37]json parsed OK: [13:40:37]protocol is kg_v1.0 [13:40:37]action value=close_receipt [13:40:37]process_action close_receipt [13:40:37]cmd_close_receipt [13:40:37]MH_GetDate [13:40:37]Write to MH i2c: F0 00 00 A5 00 94 [13:40:37]Write i2c OK [13:40:37]MH_I2C_Read... [13:40:37]Read from MH i2c: F0 [13:40:37]MH_I2C_Read... [13:40:37]Read from MH i2c: F0 09 00 [13:40:37]MH_I2C_Read... [13:40:37]Read from MH i2c: F0 09 00 A5 00 00 D6 82 75 66 BD 8F 7C 64 FC [13:40:37]GetLastDocTimeStamp 1718977096 [13:40:37]current date 1718977238 [13:40:37]FM_GetShiftState [13:40:37]SAM_PROTO_GetShiftState [13:40:37]wFMCommunicate request_size=4 [13:40:37]MH_SAM_APDU [13:40:37]CAPDU: 80 13 01 00 [13:40:37]Write to MH i2c: E2 08 00 A6 00 80 13 01 00 00 00 00 00 23 [13:40:37]Write i2c OK [13:40:37]MH_I2C_Read... [13:40:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:40:37]Read from MH i2c: E2 [13:40:37]MH_I2C_Read... [13:40:37]Read from MH i2c: E2 0E 00 [13:40:37]MH_I2C_Read... [13:40:37]Read from MH i2c: E2 0E 00 A6 00 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 36 [13:40:37]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [13:40:37]wFMCommunicate OK [13:40:37]SAM_PROTO_GetShiftState done [13:40:37]FM_GetShiftState done [13:40:37]opened in 1718929509 [13:40:37]opened+sec_in_day 1719015909 [13:40:37]quantity*price = 60025 [13:40:37]sum+1 = 60027 [13:40:37]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 СНО: Общий режим Чек 96 21.06.2024 13:40 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104173 ФПД: 169194138681040 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T134038&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104173&fm=169194138681040&tin=02508201610067®Number=0000000000092785&sum=60000 [13:40:39]StoreToDocumentArchive [13:40:39]shift 355 fd 104173 [13:40:39]save to /storage/0355/doc_00104173 [13:40:39]save last doc name /storage/0355/doc_00104173 to /storage/kkm_last_doc_name [13:40:39]save OK [13:40:39]Clear old archive folders... [13:40:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:40:39]tlvbuf is 0036AEB0 [13:40:39]SAM_PROTO_ClearQueue [13:40:39]wFMCommunicate request_size=4 [13:40:39]MH_SAM_APDU [13:40:39]CAPDU: 80 09 00 00 [13:40:39]Write to MH i2c: E2 08 00 B3 00 80 09 00 00 00 00 00 00 25 [13:40:39]Write i2c OK [13:40:39]MH_I2C_Read... [13:40:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:40:39]Read from MH i2c: E2 [13:40:39]MH_I2C_Read... [13:40:39]Read from MH i2c: E2 03 00 [13:40:39]MH_I2C_Read... [13:40:39]Read from MH i2c: E2 03 00 B3 00 00 90 00 27 [13:40:39]RAPDU: 90 00 [13:40:39]wFMCommunicate OK [13:40:39]SAM_PROTO_ClearQueue done [13:40:39]KKMCreateOFDPacket [13:40:39]OFDProtocolAddRootSTLVToBuf [13:40:39]FM_MakeSignedData [13:40:39]FM_MakeSignedData [13:40:39]SAM_PROTO_SignData [13:40:39]wFMCommunicate request_size=4 [13:40:39]MH_SAM_APDU [13:40:39]CAPDU: 80 0D 01 02 [13:40:39]Write to MH i2c: E2 08 00 B4 00 80 0D 01 02 00 00 00 00 2D [13:40:39]Write i2c OK [13:40:39]MH_I2C_Read... [13:40:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:40:39]Read from MH i2c: E2 [13:40:39]MH_I2C_Read... [13:40:39]Read from MH i2c: E2 03 00 [13:40:39]MH_I2C_Read... [13:40:39]Read from MH i2c: E2 03 00 B4 00 00 90 00 28 [13:40:39]RAPDU: 90 00 [13:40:39]wFMCommunicate OK [13:40:39]wFMCommunicate request_size=255 [13:40:39]MH_SAM_APDU [13:40:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 60 00 00 00 F4 03 04 00 D6 82 75 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 ED 96 01 00 35 04 06 00 99 [13:40:39]Write to MH i2c: E2 02 01 B5 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 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 60 00 00 00 F4 03 04 00 D6 82 75 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 ED 96 01 00 35 04 06 00 99 00 00 D8 [13:40:39]Write i2c OK [13:40:39]MH_I2C_Read... [13:40:39]Read from MH i2c: E2 [13:40:39]MH_I2C_Read... [13:40:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:40:39]Read from MH i2c: E2 03 00 [13:40:39]MH_I2C_Read... [13:40:39]Read from MH i2c: E2 03 00 B5 00 00 90 00 29 [13:40:39]RAPDU: 90 00 [13:40:39]wFMCommunicate OK [13:40:39]wFMCommunicate request_size=10 [13:40:39]MH_SAM_APDU [13:40:39]CAPDU: 80 0D 02 02 05 E1 94 88 BE D0 [13:40:39]Write to MH i2c: E2 0D 00 B6 00 80 0D 02 02 05 00 E1 94 88 BE D0 00 00 C5 [13:40:39]Write i2c OK [13:40:39]MH_I2C_Read... [13:40:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:40:39]Read from MH i2c: E2 [13:40:39]MH_I2C_Read... [13:40:39]Read from MH i2c: E2 03 00 [13:40:39]MH_I2C_Read... [13:40:39]Read from MH i2c: E2 03 00 B6 00 00 90 00 2A [13:40:39]RAPDU: 90 00 [13:40:39]wFMCommunicate OK [13:40:39]wFMCommunicate request_size=4 [13:40:39]MH_SAM_APDU [13:40:39]CAPDU: 80 0D 03 02 [13:40:39]Write to MH i2c: E2 08 00 B7 00 80 0D 03 02 00 00 00 00 32 [13:40:39]Write i2c OK [13:40:39]MH_I2C_Read... [13:40:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:40:39]Read from MH i2c: E2 [13:40:39]MH_I2C_Read... [13:40:39]Read from MH i2c: E2 0B 00 [13:40:39]MH_I2C_Read... [13:40:39]Read from MH i2c: E2 0B 00 B7 00 00 0E 68 EA 69 48 0E AE 21 90 00 21 [13:40:39]RAPDU: 0E 68 EA 69 48 0E AE 21 90 00 [13:40:39]wFMCommunicate OK [13:40:39]SAM_PROTO_SignData done [13:40:39]FM_MakeSignedData done [13:40:39]CreateOFDProtocolMessage [13:40:39]wFMCommunicate request_size=4 [13:40:39]MH_SAM_APDU [13:40:39]CAPDU: 80 11 00 00 [13:40:39]Write to MH i2c: E2 08 00 B8 00 80 11 00 00 00 00 00 00 32 [13:40:39]Write i2c OK [13:40:39]MH_I2C_Read... [13:40:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:40:39]Read from MH i2c: E2 [13:40:39]MH_I2C_Read... [13:40:39]Read from MH i2c: E2 17 00 [13:40:39]MH_I2C_Read... [13:40:39]Read from MH i2c: E2 17 00 B8 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 85 [13:40: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:40:39]wFMCommunicate OK [13:40:39]CreateOFDProtocolMessage done [13:40:39]OFDSenderStorePacket 104173 [13:40:39]StoreOFDPacket docnum=104173 [13:40: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 DA 0D 07 01 0C 51 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 60 00 00 00 F4 03 04 00 D6 82 75 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 ED 96 01 00 35 04 06 00 99 E1 94 88 BE D0 0E 68 EA 69 48 0E AE 21 [13:40:39]CheckFolder [13:40:39]dirname=/storage/ofd_packets [13:40:39]CheckFolder done [13:40:39]ProducePacketName [13:40:39]name=ofd_packets/00104173 [13:40:39]NVStorageSaveData ofd_packets/00104173 [13:40:39]File name is /storage/ofd_packets/00104173 [13:40:39]Write 301 bytes [13:40:39]NVStorageSaveData done [13:40:39]OFDSenderStorePacket done [13:40:39]KKMCreateOFDPacket done [13:40:39]NVStorageSaveData kkm_last_timestamp [13:40:39]File name is /storage/kkm_last_timestamp [13:40:39]Write 4 bytes [13:40:39]NVStorageSaveData done [13:40:39]ExternCall_PrintAddStr [13:40:39]wPrintStart [13:40:39]Write to MH i2c: 01 00 00 B9 00 B9 [13:40:39]Write i2c OK [13:40:39]MH_I2C_Read... [13:40:39]Read from MH i2c: 01 [13:40:39]MH_I2C_Read... [13:40:39]Read from MH i2c: 01 07 00 [13:40:39]MH_I2C_Read... [13:40:39]Read from MH i2c: 01 07 00 B9 00 00 00 00 00 00 FF 0F CE [13:40:39]RasterBufferAndPrint [13:40:39]line Счет N : (1)673605 [13:40:39]line ИНН: 02508201610067 [13:40:39]line Контрольно-Кассовый Чек [13:40:39]line ПРОДАЖА [13:40:39]line ТРК (МРК, ГНК) : 32 [13:40:39]line Товар: 2710124130 [13:40:39]line Аи-92-К-5 [13:40:39]line 9.040 * 66.40 [13:40:39]line = 600.26 [13:40:39]line НДС 12% НСП 1% [13:40:39]line > о реализуемом товаре [13:40:39]line ОКРУГЛЕНИЕ: -0.26 [13:40:39]line ИТОГО: 600.00 [13:40:39]line Внесено: 600.00 [13:40:39]line СДАЧА: 0.00 [13:40:39]line НСП 1% : 5.31 [13:40:39]line НДС 12% : 63.74 [13:40:39]line Наличными: 600.00 [13:40:39]line Безнал.: 0.00 [13:40:39]line Место: АЗС № 120 "Партнер Нефть" [13:40:39]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [13:40:39]line СНО: Общий режим [13:40:39]line Чек 96 21.06.2024 13:40 [13:40:39]line Смена: 355 ФФД: 1.0 [13:40:39]line ЗНМ: 0300000164 [13:40:39]line РНМ: 0000000000092785 [13:40:39]line Версия ККМ: 001 [13:40:39]line ФМ: 0000000000875093 [13:40:39]line ФД: 104173 [13:40:39]line ФПД: 169194138681040 [13:40:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T134038&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104173&fm=169194138681040&tin=02508201610067®Number=0000000000092785&sum=60000 [13:40:39]OFD Sender: Processing packet 104173 [packets to send 17, broken 16] [13:40:39]ProducePacketName [13:40:39]name=ofd_packets/00104173 [13:40:39]OFD Sender: To server: pG, [13:40:39]CommunicateWithHost lk.salyk.kg:30040 [13:40:39]ConnectInit lk.salyk.kg [13:40:39]written 0, free lines is 4095 [13:40:40]Connected sock=10 [13:40: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 0F 01 00 00 DA 0D 07 01 0C 51 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 60 00 00 00 F4 03 04 00 D6 82 75 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 ED 96 01 00 35 04 06 00 99 E1 94 88 BE D0 0E 68 EA 69 48 0E AE 21 [13:40: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 1A 46 47 00 CC AF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 ED 96 01 00 F4 03 04 00 59 29 75 66 B6 04 01 00 00 B4 7F C3 D5 CB B5 09 E3 [13:40:40]CommunicateWithHost err = 0 [13:40:40]CheckOFDResponse [13:40:40]1017 (14) - 77093643461234 [13:40:40]1041 (16) - 0000000000875093 [13:40:40]1040 (4) - 104173 [13:40:40]1012 (4) - 21.06.2024 07:18 [13:40:40]1206 (1) - 0 [13:40:40]OFD Sender: Remove packet 104173 [13:40:40]ProducePacketName [13:40:40]name=ofd_packets/00104173 [13:40:40]NVStorageDeleteData [13:40:40]Write to MH i2c: 01 00 00 E4 00 E4 [13:40:40]Write i2c OK [13:40:40]MH_I2C_Read... [13:40:40]Read from MH i2c: 01 [13:40:40]MH_I2C_Read... [13:40:40]Read from MH i2c: 01 07 00 [13:40:40]MH_I2C_Read... [13:40:40]Read from MH i2c: 01 07 00 E4 00 00 00 00 00 00 E6 0C DD [13:40:40]RasterBufferAndPrint [13:40:40]line [13:40:40]line [13:40:40]line [13:40:40]line [13:40:40]line [13:40:40]written 0, free lines is 3309 [13:40:40]MH_Cut [13:40:40]Write to MH i2c: D1 01 00 EB 00 01 BD [13:40:40]Write i2c OK [13:40:40]MH_I2C_Read... [13:40:40]Read from MH i2c: D1 [13:40:40]MH_I2C_Read... [13:40:40]Read from MH i2c: D1 01 00 [13:40:40]MH_I2C_Read... [13:40:40]Read from MH i2c: D1 01 00 EB 00 00 BC [13:40:40]Write to MH i2c: 01 00 00 EC 00 EC [13:40:40]Write i2c OK [13:40:40]MH_I2C_Read... [13:40:40]OFD Sender: No OFD packet to send [13:40:41]*** Cut start [13:40:41]*** Partial cut [13:40:41]*** CUTSNS_PIN = 1 [13:40:41]*** CUTSNS_PIN = 0 [13:40:41]*** Brake cut motor [13:40:41]Read from MH i2c: 01 [13:40:41]MH_I2C_Read... [13:40:41]*** Stop cut motor [13:40:41]*** Cut end [13:40:41]Read from MH i2c: 01 07 00 [13:40:41]MH_I2C_Read... [13:40:41]Read from MH i2c: 01 07 00 EC 00 00 00 00 00 00 FF 0F 01 [13:40:41]process_action close_receipt done [13:40:41]requested_data is exist [13:40:41]produce_requested_data [13:40:41]requested_item fm.sn is exist - process it [13:40:41]wFMCommunicate request_size=4 [13:40:41]MH_SAM_APDU [13:40:41]CAPDU: 80 11 00 00 [13:40:41]Write to MH i2c: E2 08 00 ED 00 80 11 00 00 00 00 00 00 67 [13:40:41]Write i2c OK [13:40:41]MH_I2C_Read... [13:40:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:40:41]Read from MH i2c: E2 [13:40:41]MH_I2C_Read... [13:40:41]Read from MH i2c: E2 17 00 [13:40:41]MH_I2C_Read... [13:40:41]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 [13:40:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [13:40:41]wFMCommunicate OK [13:40:41]requested_item fd.num is exist - process it [13:40:41]SAM_PROTO_GetFieldsCounters [13:40:41]wFMCommunicate request_size=4 [13:40:41]MH_SAM_APDU [13:40:41]CAPDU: 80 13 00 00 [13:40:41]Write to MH i2c: E2 08 00 EE 00 80 13 00 00 00 00 00 00 6A [13:40:41]Write i2c OK [13:40:41]MH_I2C_Read... [13:40:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:40:41]Read from MH i2c: E2 [13:40:41]MH_I2C_Read... [13:40:41]Read from MH i2c: E2 62 00 [13:40:41]MH_I2C_Read... [13:40:41]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 ED 96 01 00 0E 04 04 00 63 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 99 [13:40: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 ED 96 01 00 0E 04 04 00 63 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:40:41]wFMCommunicate OK [13:40:41]SAM_PROTO_GetFieldsCounters done [13:40:41]requested_item shift.num is exist - process it [13:40:41]requested_item shift.opened is exist - process it [13:40:41]req_shift_opened [13:40:41]FM_GetShiftState [13:40:41]SAM_PROTO_GetShiftState [13:40:41]wFMCommunicate request_size=4 [13:40:41]MH_SAM_APDU [13:40:41]CAPDU: 80 13 01 00 [13:40:41]Write to MH i2c: E2 08 00 EF 00 80 13 01 00 00 00 00 00 6C [13:40:41]Write i2c OK [13:40:41]MH_I2C_Read... [13:40:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:40:41]Read from MH i2c: E2 [13:40:41]MH_I2C_Read... [13:40:41]Read from MH i2c: E2 0E 00 [13:40:41]MH_I2C_Read... [13:40:41]Read from MH i2c: E2 0E 00 EF 00 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 7F [13:40:41]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [13:40:41]wFMCommunicate OK [13:40:41]SAM_PROTO_GetShiftState done [13:40:41]FM_GetShiftState done [13:40:41]req_shift_opened done [13:40:41]requested_item shift.open_date is exist - process it [13:40:41]req_shift_open_date [13:40:41]req_shift_open_date done [13:40:41]produce_requested_data done [13:40:41]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104173,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [13:40:41]process_action_free close_receipt [13:40:41]json_value_free [13:40:41]json_value_free done [13:40:41]process_json_proto returns [13:40:41]Send response to host [13:40:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104173,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [13:40:41]free response buf [13:40:41]execute_script done [13:40:41]execute_script returns [13:40:41]free content buf [13:40:41]Sock 8.Close socket [13:40:41]Sock 8.Thread stoped [13:40:45]OFD Sender: No OFD packet to send [13:40:48]accept exits with 9 [13:40:48]New connection [13:40:48]New thread 3066494308 created [13:40:48]Thread 3066637668 joined [13:40:48]Waiting for new connection... [13:40:48] Sock 9.Parse request [13:40:48]Sock 9.Check first char [13:40:48]Sock 9.First char is OK [13:40:48]request: POST /json_proto HTTP/1.0 [13:40:48]Method: POST [13:40:48]URL: /json_proto [13:40:48]Method is POST - this is cgi request [13:40:48]url: /json_proto [13:40:48]query_string will be loaded in cgi processing [13:40:48]execute_cgi json_proto POST (null) [13:40:48]execute_cgi path=json_proto method=POST [13:40:48]POST find Content-Length [13:40:48]Host: 172.17.38.133:8080 [13:40:48]Content-Length: 678 [13:40:48]Content-Type: application/json [13:40:48] [13:40:48]POST finish read [13:40:48]Found Content-Length = 678 [13:40:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673606", "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" ] } } [13:40:48]execute_script... [13:40: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)673606", "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" ] } } [13:40:48]POST & json_proto [13:40:48]process_json_proto [13:40:48]json parsed OK: [13:40:48]protocol is kg_v1.0 [13:40:48]action value=close_receipt [13:40:48]process_action close_receipt [13:40:48]cmd_close_receipt [13:40:48]MH_GetDate [13:40:48]Write to MH i2c: F0 00 00 F0 00 DF [13:40:48]Write i2c OK [13:40:48]MH_I2C_Read... [13:40:48]Read from MH i2c: F0 [13:40:48]MH_I2C_Read... [13:40:48]Read from MH i2c: F0 09 00 [13:40:48]MH_I2C_Read... [13:40:48]Read from MH i2c: F0 09 00 F0 00 00 E1 82 75 66 BD 8F 7C 64 52 [13:40:48]GetLastDocTimeStamp 1718977238 [13:40:48]current date 1718977249 [13:40:48]FM_GetShiftState [13:40:48]SAM_PROTO_GetShiftState [13:40:48]wFMCommunicate request_size=4 [13:40:48]MH_SAM_APDU [13:40:48]CAPDU: 80 13 01 00 [13:40:48]Write to MH i2c: E2 08 00 F1 00 80 13 01 00 00 00 00 00 6E [13:40:48]Write i2c OK [13:40:48]MH_I2C_Read... [13:40:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:40:48]Read from MH i2c: E2 [13:40:48]MH_I2C_Read... [13:40:48]Read from MH i2c: E2 0E 00 [13:40:48]MH_I2C_Read... [13:40:48]Read from MH i2c: E2 0E 00 F1 00 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 81 [13:40:48]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [13:40:48]wFMCommunicate OK [13:40:48]SAM_PROTO_GetShiftState done [13:40:48]FM_GetShiftState done [13:40:48]opened in 1718929509 [13:40:48]opened+sec_in_day 1719015909 [13:40:48]quantity*price = 70052 [13:40:48]sum+1 = 70053 [13:40:48]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 СНО: Общий режим Чек 97 21.06.2024 13:40 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104174 ФПД: 117510027994395 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T134049&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104174&fm=117510027994395&tin=02508201610067®Number=0000000000092785&sum=70000 [13:40:49]StoreToDocumentArchive [13:40:49]shift 355 fd 104174 [13:40:49]save to /storage/0355/doc_00104174 [13:40:49]save last doc name /storage/0355/doc_00104174 to /storage/kkm_last_doc_name [13:40:49]save OK [13:40:49]Clear old archive folders... [13:40:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:40:49]tlvbuf is 00368690 [13:40:49]SAM_PROTO_ClearQueue [13:40:49]wFMCommunicate request_size=4 [13:40:49]MH_SAM_APDU [13:40:49]CAPDU: 80 09 00 00 [13:40:49]Write to MH i2c: E2 08 00 FE 00 80 09 00 00 00 00 00 00 70 [13:40:49]Write i2c OK [13:40:49]MH_I2C_Read... [13:40:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:40:49]Read from MH i2c: E2 [13:40:49]MH_I2C_Read... [13:40:49]Read from MH i2c: E2 03 00 [13:40:49]MH_I2C_Read... [13:40:49]Read from MH i2c: E2 03 00 FE 00 00 90 00 72 [13:40:49]RAPDU: 90 00 [13:40:49]wFMCommunicate OK [13:40:49]SAM_PROTO_ClearQueue done [13:40:49]KKMCreateOFDPacket [13:40:49]OFDProtocolAddRootSTLVToBuf [13:40:49]FM_MakeSignedData [13:40:49]FM_MakeSignedData [13:40:49]SAM_PROTO_SignData [13:40:49]wFMCommunicate request_size=4 [13:40:49]MH_SAM_APDU [13:40:49]CAPDU: 80 0D 01 02 [13:40:49]Write to MH i2c: E2 08 00 FF 00 80 0D 01 02 00 00 00 00 78 [13:40:49]Write i2c OK [13:40:49]MH_I2C_Read... [13:40:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:40:49]Read from MH i2c: E2 [13:40:49]MH_I2C_Read... [13:40:49]Read from MH i2c: E2 03 00 [13:40:49]MH_I2C_Read... [13:40:49]Read from MH i2c: E2 03 00 FF 00 00 90 00 73 [13:40:49]RAPDU: 90 00 [13:40:49]wFMCommunicate OK [13:40:49]wFMCommunicate request_size=255 [13:40:49]MH_SAM_APDU [13:40: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 61 00 00 00 F4 03 04 00 E1 82 75 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 EE 96 01 00 35 04 06 00 6A [13:40: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 61 00 00 00 F4 03 04 00 E1 82 75 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 EE 96 01 00 35 04 06 00 6A 00 00 37 [13:40:49]Write i2c OK [13:40:49]MH_I2C_Read... [13:40:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:40:49]Read from MH i2c: E2 [13:40:49]MH_I2C_Read... [13:40:49]Read from MH i2c: E2 03 00 [13:40:49]MH_I2C_Read... [13:40:49]Read from MH i2c: E2 03 00 00 01 00 90 00 75 [13:40:49]RAPDU: 90 00 [13:40:49]wFMCommunicate OK [13:40:49]wFMCommunicate request_size=10 [13:40:49]MH_SAM_APDU [13:40:49]CAPDU: 80 0D 02 02 05 DF EF 79 E5 1B [13:40:49]Write to MH i2c: E2 0D 00 01 01 80 0D 02 02 05 00 DF EF 79 E5 1B 00 00 CD [13:40:49]Write i2c OK [13:40:49]MH_I2C_Read... [13:40:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:40:49]Read from MH i2c: E2 [13:40:49]MH_I2C_Read... [13:40:49]Read from MH i2c: E2 03 00 [13:40:49]MH_I2C_Read... [13:40:49]Read from MH i2c: E2 03 00 01 01 00 90 00 76 [13:40:49]RAPDU: 90 00 [13:40:49]wFMCommunicate OK [13:40:49]wFMCommunicate request_size=4 [13:40:49]MH_SAM_APDU [13:40:49]CAPDU: 80 0D 03 02 [13:40:49]Write to MH i2c: E2 08 00 02 01 80 0D 03 02 00 00 00 00 7E [13:40:49]Write i2c OK [13:40:49]MH_I2C_Read... [13:40:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:40:49]Read from MH i2c: E2 [13:40:49]MH_I2C_Read... [13:40:49]Read from MH i2c: E2 0B 00 [13:40:49]MH_I2C_Read... [13:40:49]Read from MH i2c: E2 0B 00 02 01 00 93 6F D6 08 F2 DB 63 27 90 00 B6 [13:40:49]RAPDU: 93 6F D6 08 F2 DB 63 27 90 00 [13:40:49]wFMCommunicate OK [13:40:49]SAM_PROTO_SignData done [13:40:49]FM_MakeSignedData done [13:40:49]CreateOFDProtocolMessage [13:40:49]wFMCommunicate request_size=4 [13:40:49]MH_SAM_APDU [13:40:49]CAPDU: 80 11 00 00 [13:40:49]Write to MH i2c: E2 08 00 03 01 80 11 00 00 00 00 00 00 7E [13:40:49]Write i2c OK [13:40:49]MH_I2C_Read... [13:40:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:40:49]Read from MH i2c: E2 [13:40:49]MH_I2C_Read... [13:40:49]Read from MH i2c: E2 17 00 [13:40:49]MH_I2C_Read... [13:40: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 [13:40:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [13:40:49]wFMCommunicate OK [13:40:49]CreateOFDProtocolMessage done [13:40:49]OFDSenderStorePacket 104174 [13:40:49]StoreOFDPacket docnum=104174 [13:40: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 E1 90 07 01 2D 8C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 61 00 00 00 F4 03 04 00 E1 82 75 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 EE 96 01 00 35 04 06 00 6A DF EF 79 E5 1B 93 6F D6 08 F2 DB 63 27 [13:40:49]CheckFolder [13:40:49]dirname=/storage/ofd_packets [13:40:49]CheckFolder done [13:40:49]ProducePacketName [13:40:49]name=ofd_packets/00104174 [13:40:49]NVStorageSaveData ofd_packets/00104174 [13:40:49]File name is /storage/ofd_packets/00104174 [13:40:49]Write 301 bytes [13:40:49]NVStorageSaveData done [13:40:49]OFDSenderStorePacket done [13:40:49]KKMCreateOFDPacket done [13:40:49]NVStorageSaveData kkm_last_timestamp [13:40:49]File name is /storage/kkm_last_timestamp [13:40:49]Write 4 bytes [13:40:49]NVStorageSaveData done [13:40:49]ExternCall_PrintAddStr [13:40:49]wPrintStart [13:40:49]Write to MH i2c: 01 00 00 04 01 05 [13:40:49]Write i2c OK [13:40:49]MH_I2C_Read... [13:40:49]Read from MH i2c: 01 [13:40:49]MH_I2C_Read... [13:40:49]Read from MH i2c: 01 07 00 [13:40:49]MH_I2C_Read... [13:40:49]Read from MH i2c: 01 07 00 04 01 00 00 00 00 00 FF 0F 1A [13:40:49]RasterBufferAndPrint [13:40:49]line Счет N : (1)673606 [13:40:49]line ИНН: 02508201610067 [13:40:49]line Контрольно-Кассовый Чек [13:40:49]line ПРОДАЖА [13:40:49]line ТРК (МРК, ГНК) : 42 [13:40:49]line Товар: 2710124130 [13:40:49]line Аи-92-К-5 [13:40:49]line 10.550 * 66.40 [13:40:49]line = 700.52 [13:40:49]line НДС 12% НСП 1% [13:40:49]line > о реализуемом товаре [13:40:49]line ОКРУГЛЕНИЕ: -0.52 [13:40:49]line ИТОГО: 700.00 [13:40:49]line Внесено: 700.00 [13:40:49]line СДАЧА: 0.00 [13:40:49]line НСП 1% : 6.20 [13:40:49]line НДС 12% : 74.39 [13:40:49]line Наличными: 700.00 [13:40:49]line Безнал.: 0.00 [13:40:49]line Место: АЗС № 120 "Партнер Нефть" [13:40:49]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [13:40:49]line СНО: Общий режим [13:40:49]line Чек 97 21.06.2024 13:40 [13:40:49]line Смена: 355 ФФД: 1.0 [13:40:49]line ЗНМ: 0300000164 [13:40:49]line РНМ: 0000000000092785 [13:40:49]line Версия ККМ: 001 [13:40:49]line ФМ: 0000000000875093 [13:40:49]line ФД: 104174 [13:40:49]line ФПД: 117510027994395 [13:40:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T134049&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104174&fm=117510027994395&tin=02508201610067®Number=0000000000092785&sum=70000 [13:40:50]OFD Sender: Processing packet 104174 [packets to send 17, broken 16] [13:40:50]ProducePacketName [13:40:50]name=ofd_packets/00104174 [13:40:50]OFD Sender: To server: pG, [13:40:50]CommunicateWithHost lk.salyk.kg:30040 [13:40:50]ConnectInit lk.salyk.kg [13:40:50]written 0, free lines is 4095 [13:40:50]Connected sock=10 [13:40: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 E1 90 07 01 2D 8C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 61 00 00 00 F4 03 04 00 E1 82 75 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 EE 96 01 00 35 04 06 00 6A DF EF 79 E5 1B 93 6F D6 08 F2 DB 63 27 [13:40: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 B9 54 47 00 2D EA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 EE 96 01 00 F4 03 04 00 63 29 75 66 B6 04 01 00 00 3B A7 29 75 4D 4D 56 E4 [13:40:50]CommunicateWithHost err = 0 [13:40:50]CheckOFDResponse [13:40:50]1017 (14) - 77093643461234 [13:40:50]1041 (16) - 0000000000875093 [13:40:50]1040 (4) - 104174 [13:40:50]1012 (4) - 21.06.2024 07:18 [13:40:50]1206 (1) - 0 [13:40:50]OFD Sender: Remove packet 104174 [13:40:50]ProducePacketName [13:40:50]name=ofd_packets/00104174 [13:40:50]NVStorageDeleteData [13:40:50]Write to MH i2c: 01 00 00 2F 01 30 [13:40:50]Write i2c OK [13:40:50]MH_I2C_Read... [13:40:50]Read from MH i2c: 01 [13:40:50]MH_I2C_Read... [13:40:50]Read from MH i2c: 01 07 00 [13:40:50]MH_I2C_Read... [13:40:50]Read from MH i2c: 01 07 00 2F 01 00 00 00 00 00 D8 0C 1B [13:40:50]RasterBufferAndPrint [13:40:50]line [13:40:50]line [13:40:50]line [13:40:50]line [13:40:50]line [13:40:50]written 0, free lines is 3298 [13:40:50]MH_Cut [13:40:50]Write to MH i2c: D1 01 00 36 01 01 09 [13:40:50]Write i2c OK [13:40:50]MH_I2C_Read... [13:40:50]Read from MH i2c: D1 [13:40:50]MH_I2C_Read... [13:40:50]Read from MH i2c: D1 01 00 [13:40:50]MH_I2C_Read... [13:40:50]Read from MH i2c: D1 01 00 36 01 00 08 [13:40:50]Write to MH i2c: 01 00 00 37 01 38 [13:40:50]Write i2c OK [13:40:50]MH_I2C_Read... [13:40:51]OFD Sender: No OFD packet to send [13:40:51]*** Cut start [13:40:51]*** Partial cut [13:40:51]*** CUTSNS_PIN = 1 [13:40:51]*** CUTSNS_PIN = 0 [13:40:51]*** Brake cut motor [13:40:52]Read from MH i2c: 01 [13:40:52]MH_I2C_Read... [13:40:52]*** Stop cut motor [13:40:52]*** Cut end [13:40:52]Read from MH i2c: 01 07 00 [13:40:52]MH_I2C_Read... [13:40:52]Read from MH i2c: 01 07 00 37 01 00 00 00 00 00 FF 0F 4D [13:40:52]process_action close_receipt done [13:40:52]requested_data is exist [13:40:52]produce_requested_data [13:40:52]requested_item fm.sn is exist - process it [13:40:52]wFMCommunicate request_size=4 [13:40:52]MH_SAM_APDU [13:40:52]CAPDU: 80 11 00 00 [13:40:52]Write to MH i2c: E2 08 00 38 01 80 11 00 00 00 00 00 00 B3 [13:40:52]Write i2c OK [13:40:52]MH_I2C_Read... [13:40:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:40:52]Read from MH i2c: E2 [13:40:52]MH_I2C_Read... [13:40:52]Read from MH i2c: E2 17 00 [13:40:52]MH_I2C_Read... [13:40:52]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 [13:40: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:40:52]wFMCommunicate OK [13:40:52]requested_item fd.num is exist - process it [13:40:52]SAM_PROTO_GetFieldsCounters [13:40:52]wFMCommunicate request_size=4 [13:40:52]MH_SAM_APDU [13:40:52]CAPDU: 80 13 00 00 [13:40:52]Write to MH i2c: E2 08 00 39 01 80 13 00 00 00 00 00 00 B6 [13:40:52]Write i2c OK [13:40:52]MH_I2C_Read... [13:40:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:40:52]Read from MH i2c: E2 [13:40:52]MH_I2C_Read... [13:40:52]Read from MH i2c: E2 62 00 [13:40:52]MH_I2C_Read... [13:40:52]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 EE 96 01 00 0E 04 04 00 63 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 E9 [13:40: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 EE 96 01 00 0E 04 04 00 63 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:40:52]wFMCommunicate OK [13:40:52]SAM_PROTO_GetFieldsCounters done [13:40:52]requested_item shift.num is exist - process it [13:40:52]requested_item shift.opened is exist - process it [13:40:52]req_shift_opened [13:40:52]FM_GetShiftState [13:40:52]SAM_PROTO_GetShiftState [13:40:52]wFMCommunicate request_size=4 [13:40:52]MH_SAM_APDU [13:40:52]CAPDU: 80 13 01 00 [13:40:52]Write to MH i2c: E2 08 00 3A 01 80 13 01 00 00 00 00 00 B8 [13:40:52]Write i2c OK [13:40:52]MH_I2C_Read... [13:40:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:40:52]Read from MH i2c: E2 [13:40:52]MH_I2C_Read... [13:40:52]Read from MH i2c: E2 0E 00 [13:40:52]MH_I2C_Read... [13:40:52]Read from MH i2c: E2 0E 00 3A 01 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 CB [13:40:52]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [13:40:52]wFMCommunicate OK [13:40:52]SAM_PROTO_GetShiftState done [13:40:52]FM_GetShiftState done [13:40:52]req_shift_opened done [13:40:52]requested_item shift.open_date is exist - process it [13:40:52]req_shift_open_date [13:40:52]req_shift_open_date done [13:40:52]produce_requested_data done [13:40:52]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104174,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [13:40:52]process_action_free close_receipt [13:40:52]json_value_free [13:40:52]json_value_free done [13:40:52]process_json_proto returns [13:40:52]Send response to host [13:40:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104174,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [13:40:52]free response buf [13:40:52]execute_script done [13:40:52]execute_script returns [13:40:52]free content buf [13:40:52]Sock 9.Close socket [13:40:52]Sock 9.Thread stoped [13:40:56]OFD Sender: No OFD packet to send [13:41:01]OFD Sender: No OFD packet to send [13:41:06]OFD Sender: No OFD packet to send [13:41:11]OFD Sender: No OFD packet to send [13:41:16]OFD Sender: No OFD packet to send [13:41:21]OFD Sender: No OFD packet to send [13:41:26]OFD Sender: No OFD packet to send [13:41:31]OFD Sender: No OFD packet to send [13:41:36]OFD Sender: No OFD packet to send [13:41:41]OFD Sender: No OFD packet to send [13:41:46]OFD Sender: No OFD packet to send [13:41:51]OFD Sender: No OFD packet to send [13:41:56]OFD Sender: No OFD packet to send [13:42:01]OFD Sender: No OFD packet to send [13:42:06]OFD Sender: No OFD packet to send [13:42:11]OFD Sender: No OFD packet to send [13:42:16]OFD Sender: No OFD packet to send [13:42:21]OFD Sender: No OFD packet to send [13:42:26]OFD Sender: No OFD packet to send [13:42:31]OFD Sender: No OFD packet to send [13:42:36]OFD Sender: No OFD packet to send [13:42:41]OFD Sender: No OFD packet to send [13:42:46]OFD Sender: No OFD packet to send [13:42:51]OFD Sender: No OFD packet to send [13:42:56]OFD Sender: No OFD packet to send [13:43:01]OFD Sender: No OFD packet to send [13:43:06]OFD Sender: No OFD packet to send [13:43:11]OFD Sender: No OFD packet to send [13:43:16]OFD Sender: No OFD packet to send [13:43:21]OFD Sender: No OFD packet to send [13:43:26]OFD Sender: No OFD packet to send [13:43:31]OFD Sender: No OFD packet to send [13:43:36]OFD Sender: No OFD packet to send [13:43:41]OFD Sender: No OFD packet to send [13:43:46]OFD Sender: No OFD packet to send [13:43:51]OFD Sender: No OFD packet to send [13:43:56]OFD Sender: No OFD packet to send [13:44:01]OFD Sender: No OFD packet to send [13:44:06]OFD Sender: No OFD packet to send [13:44:11]OFD Sender: No OFD packet to send [13:44:16]OFD Sender: No OFD packet to send [13:44:21]OFD Sender: No OFD packet to send [13:44:26]OFD Sender: No OFD packet to send [13:44:31]OFD Sender: No OFD packet to send [13:44:36]OFD Sender: No OFD packet to send [13:44:41]OFD Sender: No OFD packet to send [13:44:42]accept exits with 8 [13:44:42]New connection [13:44:42]New thread 3066637668 created [13:44:42]Thread 3066494308 joined [13:44:42]Waiting for new connection... [13:44:42] Sock 8.Parse request [13:44:42]Sock 8.Check first char [13:44:42]Sock 8.First char is OK [13:44:42]request: POST /json_proto HTTP/1.0 [13:44:42]Method: POST [13:44:42]URL: /json_proto [13:44:42]Method is POST - this is cgi request [13:44:42]url: /json_proto [13:44:42]query_string will be loaded in cgi processing [13:44:42]execute_cgi json_proto POST (null) [13:44:42]execute_cgi path=json_proto method=POST [13:44:42]POST find Content-Length [13:44:42]Host: 172.17.38.133:8080 [13:44:42]Content-Length: 803 [13:44:42]Content-Type: application/json [13:44:42] [13:44:42]POST finish read [13:44:42]Found Content-Length = 803 [13:44:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673607", "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.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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.17 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:44:42]execute_script... [13:44: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)673607", "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.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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.17 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:44:42]POST & json_proto [13:44:42]process_json_proto [13:44:42]json parsed OK: [13:44:42]protocol is kg_v1.0 [13:44:42]action value=close_receipt [13:44:42]process_action close_receipt [13:44:42]cmd_close_receipt [13:44:42]MH_GetDate [13:44:42]Write to MH i2c: F0 00 00 3B 01 2B [13:44:42]Write i2c OK [13:44:42]MH_I2C_Read... [13:44:42]Read from MH i2c: F0 [13:44:42]MH_I2C_Read... [13:44:42]Read from MH i2c: F0 09 00 [13:44:42]MH_I2C_Read... [13:44:42]Read from MH i2c: F0 09 00 3B 01 00 CB 83 75 66 BD 8F 7C 64 89 [13:44:42]GetLastDocTimeStamp 1718977249 [13:44:42]current date 1718977483 [13:44:42]FM_GetShiftState [13:44:42]SAM_PROTO_GetShiftState [13:44:42]wFMCommunicate request_size=4 [13:44:42]MH_SAM_APDU [13:44:42]CAPDU: 80 13 01 00 [13:44:42]Write to MH i2c: E2 08 00 3C 01 80 13 01 00 00 00 00 00 BA [13:44:42]Write i2c OK [13:44:42]MH_I2C_Read... [13:44:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:44:43]Read from MH i2c: E2 [13:44:43]MH_I2C_Read... [13:44:43]Read from MH i2c: E2 0E 00 [13:44:43]MH_I2C_Read... [13:44:43]Read from MH i2c: E2 0E 00 3C 01 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 CD [13:44:43]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [13:44:43]wFMCommunicate OK [13:44:43]SAM_PROTO_GetShiftState done [13:44:43]FM_GetShiftState done [13:44:43]opened in 1718929509 [13:44:43]opened+sec_in_day 1719015909 [13:44:43]quantity*price = 150017 [13:44:43]sum+1 = 150018 [13:44:43]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 СНО: Общий режим Чек 98 21.06.2024 13:44 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875093 ФД: 104175 ФПД: 185514555612010 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T134444&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104175&fm=185514555612010&tin=02508201610067®Number=0000000000092785&sum=150017 [13:44:44]StoreToDocumentArchive [13:44:44]shift 355 fd 104175 [13:44:44]save to /storage/0355/doc_00104175 [13:44:44]save last doc name /storage/0355/doc_00104175 to /storage/kkm_last_doc_name [13:44:44]save OK [13:44:44]Clear old archive folders... [13:44:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:44:44]tlvbuf is 00388780 [13:44:44]SAM_PROTO_ClearQueue [13:44:44]wFMCommunicate request_size=4 [13:44:44]MH_SAM_APDU [13:44:44]CAPDU: 80 09 00 00 [13:44:44]Write to MH i2c: E2 08 00 49 01 80 09 00 00 00 00 00 00 BC [13:44:44]Write i2c OK [13:44:44]MH_I2C_Read... [13:44:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:44:44]Read from MH i2c: E2 [13:44:44]MH_I2C_Read... [13:44:44]Read from MH i2c: E2 03 00 [13:44:44]MH_I2C_Read... [13:44:44]Read from MH i2c: E2 03 00 49 01 00 90 00 BE [13:44:44]RAPDU: 90 00 [13:44:44]wFMCommunicate OK [13:44:44]SAM_PROTO_ClearQueue done [13:44:44]KKMCreateOFDPacket [13:44:44]OFDProtocolAddRootSTLVToBuf [13:44:44]FM_MakeSignedData [13:44:44]FM_MakeSignedData [13:44:44]SAM_PROTO_SignData [13:44:44]wFMCommunicate request_size=4 [13:44:44]MH_SAM_APDU [13:44:44]CAPDU: 80 0D 01 02 [13:44:44]Write to MH i2c: E2 08 00 4A 01 80 0D 01 02 00 00 00 00 C4 [13:44:44]Write i2c OK [13:44:44]MH_I2C_Read... [13:44:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:44:44]Read from MH i2c: E2 [13:44:44]MH_I2C_Read... [13:44:44]Read from MH i2c: E2 03 00 [13:44:44]MH_I2C_Read... [13:44:44]Read from MH i2c: E2 03 00 4A 01 00 90 00 BF [13:44:44]RAPDU: 90 00 [13:44:44]wFMCommunicate OK [13:44:44]wFMCommunicate request_size=255 [13:44:44]MH_SAM_APDU [13:44: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 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 62 00 00 00 F4 03 04 00 CC 83 75 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 EF 96 01 00 35 04 06 00 A8 [13:44:44]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 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 62 00 00 00 F4 03 04 00 CC 83 75 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 EF 96 01 00 35 04 06 00 A8 00 00 20 [13:44:44]Write i2c OK [13:44:44]MH_I2C_Read... [13:44:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:44:44]Read from MH i2c: E2 [13:44:44]MH_I2C_Read... [13:44:44]Read from MH i2c: E2 03 00 [13:44:44]MH_I2C_Read... [13:44:44]Read from MH i2c: E2 03 00 4B 01 00 90 00 C0 [13:44:44]RAPDU: 90 00 [13:44:44]wFMCommunicate OK [13:44:44]wFMCommunicate request_size=10 [13:44:44]MH_SAM_APDU [13:44:44]CAPDU: 80 0D 02 02 05 B9 79 30 1B 6A [13:44:44]Write to MH i2c: E2 0D 00 4C 01 80 0D 02 02 05 00 B9 79 30 1B 6A 00 00 B8 [13:44:44]Write i2c OK [13:44:44]MH_I2C_Read... [13:44:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:44:44]Read from MH i2c: E2 [13:44:44]MH_I2C_Read... [13:44:44]Read from MH i2c: E2 03 00 [13:44:44]MH_I2C_Read... [13:44:44]Read from MH i2c: E2 03 00 4C 01 00 90 00 C1 [13:44:44]RAPDU: 90 00 [13:44:44]wFMCommunicate OK [13:44:44]wFMCommunicate request_size=4 [13:44:44]MH_SAM_APDU [13:44:44]CAPDU: 80 0D 03 02 [13:44:44]Write to MH i2c: E2 08 00 4D 01 80 0D 03 02 00 00 00 00 C9 [13:44:44]Write i2c OK [13:44:44]MH_I2C_Read... [13:44:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:44:44]Read from MH i2c: E2 [13:44:44]MH_I2C_Read... [13:44:44]Read from MH i2c: E2 0B 00 [13:44:44]MH_I2C_Read... [13:44:44]Read from MH i2c: E2 0B 00 4D 01 00 6D E2 55 0A DB 03 E8 B4 90 00 F2 [13:44:44]RAPDU: 6D E2 55 0A DB 03 E8 B4 90 00 [13:44:44]wFMCommunicate OK [13:44:44]SAM_PROTO_SignData done [13:44:44]FM_MakeSignedData done [13:44:44]CreateOFDProtocolMessage [13:44:44]wFMCommunicate request_size=4 [13:44:44]MH_SAM_APDU [13:44:44]CAPDU: 80 11 00 00 [13:44:44]Write to MH i2c: E2 08 00 4E 01 80 11 00 00 00 00 00 00 C9 [13:44:44]Write i2c OK [13:44:44]MH_I2C_Read... [13:44:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:44:44]Read from MH i2c: E2 [13:44:44]MH_I2C_Read... [13:44:44]Read from MH i2c: E2 17 00 [13:44:44]MH_I2C_Read... [13:44:44]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 [13:44:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [13:44:44]wFMCommunicate OK [13:44:44]CreateOFDProtocolMessage done [13:44:44]OFDSenderStorePacket 104175 [13:44:44]StoreOFDPacket docnum=104175 [13:44: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 C4 B5 07 01 D4 25 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 62 00 00 00 F4 03 04 00 CC 83 75 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 EF 96 01 00 35 04 06 00 A8 B9 79 30 1B 6A 6D E2 55 0A DB 03 E8 B4 [13:44:44]CheckFolder [13:44:44]dirname=/storage/ofd_packets [13:44:44]CheckFolder done [13:44:44]ProducePacketName [13:44:44]name=ofd_packets/00104175 [13:44:44]NVStorageSaveData ofd_packets/00104175 [13:44:44]File name is /storage/ofd_packets/00104175 [13:44:44]Write 301 bytes [13:44:44]NVStorageSaveData done [13:44:44]OFDSenderStorePacket done [13:44:44]KKMCreateOFDPacket done [13:44:44]NVStorageSaveData kkm_last_timestamp [13:44:44]File name is /storage/kkm_last_timestamp [13:44:44]Write 4 bytes [13:44:44]NVStorageSaveData done [13:44:44]ExternCall_PrintAddStr [13:44:44]wPrintStart [13:44:44]Write to MH i2c: 01 00 00 4F 01 50 [13:44:44]Write i2c OK [13:44:44]MH_I2C_Read... [13:44:44]Read from MH i2c: 01 [13:44:44]MH_I2C_Read... [13:44:44]Read from MH i2c: 01 07 00 [13:44:44]MH_I2C_Read... [13:44:44]Read from MH i2c: 01 07 00 4F 01 00 00 00 00 00 FF 0F 65 [13:44:44]RasterBufferAndPrint [13:44:44]line Счет N : (1)673607 [13:44:44]line ИНН: 02508201610067 [13:44:44]line Контрольно-Кассовый Чек [13:44:44]line ПРОДАЖА [13:44:44]line ТРК (МРК, ГНК) : 31 [13:44:44]line Товар: 2710124500 [13:44:44]line Аи-95-К-5 [13:44:44]line 20.300 * 73.90 [13:44:44]line = 1500.17 [13:44:44]line НДС 12% НСП 1% [13:44:44]line > о реализуемом товаре [13:44:44]line ИТОГО: 1500.17 [13:44:44]line НСП 1% : 13.28 [13:44:44]line НДС 12% : 159.31 [13:44:44]line Наличными: 0.00 [13:44:44]line Безнал.: 1500.17 [13:44:44]line Место: АЗС № 120 "Партнер Нефть" [13:44:44]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [13:44:44]line СНО: Общий режим [13:44:44]line Чек 98 21.06.2024 13:44 [13:44:44]line Смена: 355 ФФД: 1.0 [13:44:44]line ЗНМ: 0300000164 [13:44:44]line РНМ: 0000000000092785 [13:44:44]line Версия ККМ: 001 [13:44:44]line Платежная система: O! деньги [13:44:44]line ФМ: 0000000000875093 [13:44:44]line ФД: 104175 [13:44:44]line ФПД: 185514555612010 [13:44:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T134444&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104175&fm=185514555612010&tin=02508201610067®Number=0000000000092785&sum=150017 [13:44:45]written 0, free lines is 4095 [13:44:45]OFD Sender: Processing packet 104175 [packets to send 17, broken 16] [13:44:45]ProducePacketName [13:44:45]name=ofd_packets/00104175 [13:44:45]OFD Sender: To server: pG, [13:44:45]CommunicateWithHost lk.salyk.kg:30040 [13:44:45]ConnectInit lk.salyk.kg [13:44:45]Connected sock=10 [13:44:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 C4 B5 07 01 D4 25 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 62 00 00 00 F4 03 04 00 CC 83 75 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 EF 96 01 00 35 04 06 00 A8 B9 79 30 1B 6A 6D E2 55 0A DB 03 E8 B4 [13:44: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 F8 04 47 00 A8 A1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 EF 96 01 00 F4 03 04 00 4E 2A 75 66 B6 04 01 00 00 83 1B 67 CD B1 5D 4D 65 [13:44:45]CommunicateWithHost err = 0 [13:44:45]CheckOFDResponse [13:44:45]1017 (14) - 77093643461234 [13:44:45]1041 (16) - 0000000000875093 [13:44:45]1040 (4) - 104175 [13:44:45]1012 (4) - 21.06.2024 07:22 [13:44:45]1206 (1) - 0 [13:44:45]OFD Sender: Remove packet 104175 [13:44:45]ProducePacketName [13:44:45]name=ofd_packets/00104175 [13:44:45]NVStorageDeleteData [13:44:45]Write to MH i2c: 01 00 00 79 01 7A [13:44:45]Write i2c OK [13:44:45]MH_I2C_Read... [13:44:45]Read from MH i2c: 01 [13:44:45]MH_I2C_Read... [13:44:45]Read from MH i2c: 01 07 00 [13:44:45]MH_I2C_Read... [13:44:45]Read from MH i2c: 01 07 00 79 01 00 00 00 00 00 E4 0C 71 [13:44:45]RasterBufferAndPrint [13:44:45]line [13:44:45]line [13:44:45]line [13:44:45]line [13:44:45]line [13:44:45]written 0, free lines is 3306 [13:44:45]MH_Cut [13:44:45]Write to MH i2c: D1 01 00 80 01 01 53 [13:44:45]Write i2c OK [13:44:45]MH_I2C_Read... [13:44:45]Read from MH i2c: D1 [13:44:45]MH_I2C_Read... [13:44:45]Read from MH i2c: D1 01 00 [13:44:45]MH_I2C_Read... [13:44:45]Read from MH i2c: D1 01 00 80 01 00 52 [13:44:45]Write to MH i2c: 01 00 00 81 01 82 [13:44:45]Write i2c OK [13:44:45]MH_I2C_Read... [13:44:45]OFD Sender: No OFD packet to send [13:44:46]*** Cut start [13:44:46]*** Partial cut [13:44:46]*** CUTSNS_PIN = 1 [13:44:46]*** CUTSNS_PIN = 0 [13:44:46]*** Brake cut motor [13:44:46]Read from MH i2c: 01 [13:44:46]MH_I2C_Read... [13:44:46]*** Stop cut motor [13:44:46]*** Cut end [13:44:46]Read from MH i2c: 01 07 00 [13:44:46]MH_I2C_Read... [13:44:46]Read from MH i2c: 01 07 00 81 01 00 00 00 00 00 FF 0F 97 [13:44:46]process_action close_receipt done [13:44:46]requested_data is exist [13:44:46]produce_requested_data [13:44:46]requested_item fm.sn is exist - process it [13:44:46]wFMCommunicate request_size=4 [13:44:46]MH_SAM_APDU [13:44:46]CAPDU: 80 11 00 00 [13:44:46]Write to MH i2c: E2 08 00 82 01 80 11 00 00 00 00 00 00 FD [13:44:46]Write i2c OK [13:44:46]MH_I2C_Read... [13:44:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:44:46]Read from MH i2c: E2 [13:44:46]MH_I2C_Read... [13:44:46]Read from MH i2c: E2 17 00 [13:44:46]MH_I2C_Read... [13:44:46]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 [13:44: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:44:46]wFMCommunicate OK [13:44:46]requested_item fd.num is exist - process it [13:44:46]SAM_PROTO_GetFieldsCounters [13:44:46]wFMCommunicate request_size=4 [13:44:46]MH_SAM_APDU [13:44:46]CAPDU: 80 13 00 00 [13:44:46]Write to MH i2c: E2 08 00 83 01 80 13 00 00 00 00 00 00 00 [13:44:46]Write i2c OK [13:44:46]MH_I2C_Read... [13:44:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:44:47]Read from MH i2c: E2 [13:44:47]MH_I2C_Read... [13:44:47]Read from MH i2c: E2 62 00 [13:44:47]MH_I2C_Read... [13:44:47]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 EF 96 01 00 0E 04 04 00 63 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 37 [13:44:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 96 01 00 0E 04 04 00 63 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:44:47]wFMCommunicate OK [13:44:47]SAM_PROTO_GetFieldsCounters done [13:44:47]requested_item shift.num is exist - process it [13:44:47]requested_item shift.opened is exist - process it [13:44:47]req_shift_opened [13:44:47]FM_GetShiftState [13:44:47]SAM_PROTO_GetShiftState [13:44:47]wFMCommunicate request_size=4 [13:44:47]MH_SAM_APDU [13:44:47]CAPDU: 80 13 01 00 [13:44:47]Write to MH i2c: E2 08 00 84 01 80 13 01 00 00 00 00 00 02 [13:44:47]Write i2c OK [13:44:47]MH_I2C_Read... [13:44:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:44:47]Read from MH i2c: E2 [13:44:47]MH_I2C_Read... [13:44:47]Read from MH i2c: E2 0E 00 [13:44:47]MH_I2C_Read... [13:44:47]Read from MH i2c: E2 0E 00 84 01 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 15 [13:44:47]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [13:44:47]wFMCommunicate OK [13:44:47]SAM_PROTO_GetShiftState done [13:44:47]FM_GetShiftState done [13:44:47]req_shift_opened done [13:44:47]requested_item shift.open_date is exist - process it [13:44:47]req_shift_open_date [13:44:47]req_shift_open_date done [13:44:47]produce_requested_data done [13:44:47]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104175,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [13:44:47]process_action_free close_receipt [13:44:47]json_value_free [13:44:47]json_value_free done [13:44:47]process_json_proto returns [13:44:47]Send response to host [13:44:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104175,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [13:44:47]free response buf [13:44:47]execute_script done [13:44:47]execute_script returns [13:44:47]free content buf [13:44:47]Sock 8.Close socket [13:44:47]Sock 8.Thread stoped [13:44:50]OFD Sender: No OFD packet to send [13:44:55]OFD Sender: No OFD packet to send [13:45:00]OFD Sender: No OFD packet to send [13:45:05]OFD Sender: No OFD packet to send [13:45:10]OFD Sender: No OFD packet to send [13:45:15]OFD Sender: No OFD packet to send [13:45:20]OFD Sender: No OFD packet to send [13:45:25]OFD Sender: No OFD packet to send [13:45:30]OFD Sender: No OFD packet to send [13:45:35]OFD Sender: No OFD packet to send [13:45:40]OFD Sender: No OFD packet to send [13:45:45]OFD Sender: No OFD packet to send [13:45:50]OFD Sender: No OFD packet to send [13:45:55]OFD Sender: No OFD packet to send [13:46:00]OFD Sender: No OFD packet to send [13:46:05]OFD Sender: No OFD packet to send [13:46:10]OFD Sender: No OFD packet to send [13:46:16]OFD Sender: No OFD packet to send [13:46:21]OFD Sender: No OFD packet to send [13:46:26]OFD Sender: No OFD packet to send [13:46:31]OFD Sender: No OFD packet to send [13:46:36]OFD Sender: No OFD packet to send [13:46:41]OFD Sender: No OFD packet to send [13:46:46]OFD Sender: No OFD packet to send [13:46:51]OFD Sender: No OFD packet to send [13:46:56]OFD Sender: No OFD packet to send [13:47:01]OFD Sender: No OFD packet to send [13:47:06]OFD Sender: No OFD packet to send [13:47:11]OFD Sender: No OFD packet to send [13:47:16]OFD Sender: No OFD packet to send [13:47:21]OFD Sender: No OFD packet to send [13:47:26]OFD Sender: No OFD packet to send [13:47:31]OFD Sender: No OFD packet to send [13:47:36]OFD Sender: No OFD packet to send [13:47:41]OFD Sender: No OFD packet to send [13:47:46]OFD Sender: No OFD packet to send [13:47:51]OFD Sender: No OFD packet to send [13:47:56]OFD Sender: No OFD packet to send [13:48:01]OFD Sender: No OFD packet to send [13:48:05]accept exits with 9 [13:48:05]New connection [13:48:05]New thread 3066494308 created [13:48:05]Thread 3066637668 joined [13:48:05]Waiting for new connection... [13:48:05] Sock 9.Parse request [13:48:05]Sock 9.Check first char [13:48:05]Sock 9.First char is OK [13:48:05]request: POST /json_proto HTTP/1.0 [13:48:05]Method: POST [13:48:05]URL: /json_proto [13:48:05]Method is POST - this is cgi request [13:48:05]url: /json_proto [13:48:05]query_string will be loaded in cgi processing [13:48:05]execute_cgi json_proto POST (null) [13:48:05]execute_cgi path=json_proto method=POST [13:48:05]POST find Content-Length [13:48:05]Host: 172.17.38.133:8080 [13:48:05]Content-Length: 677 [13:48:05]Content-Type: application/json [13:48:05] [13:48:05]POST finish read [13:48:05]Found Content-Length = 677 [13:48:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673609", "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" ] } } [13:48:05]execute_script... [13:48: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)673609", "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" ] } } [13:48:05]POST & json_proto [13:48:05]process_json_proto [13:48:05]json parsed OK: [13:48:05]protocol is kg_v1.0 [13:48:05]action value=close_receipt [13:48:05]process_action close_receipt [13:48:05]cmd_close_receipt [13:48:05]MH_GetDate [13:48:05]Write to MH i2c: F0 00 00 85 01 75 [13:48:05]Write i2c OK [13:48:05]MH_I2C_Read... [13:48:05]Read from MH i2c: F0 [13:48:05]MH_I2C_Read... [13:48:05]Read from MH i2c: F0 09 00 [13:48:05]MH_I2C_Read... [13:48:05]Read from MH i2c: F0 09 00 85 01 00 96 84 75 66 BD 8F 7C 64 9F [13:48:05]GetLastDocTimeStamp 1718977484 [13:48:05]current date 1718977686 [13:48:05]FM_GetShiftState [13:48:05]SAM_PROTO_GetShiftState [13:48:05]wFMCommunicate request_size=4 [13:48:05]MH_SAM_APDU [13:48:05]CAPDU: 80 13 01 00 [13:48:05]Write to MH i2c: E2 08 00 86 01 80 13 01 00 00 00 00 00 04 [13:48:05]Write i2c OK [13:48:05]MH_I2C_Read... [13:48:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:48:05]Read from MH i2c: E2 [13:48:05]MH_I2C_Read... [13:48:05]Read from MH i2c: E2 0E 00 [13:48:05]MH_I2C_Read... [13:48:05]Read from MH i2c: E2 0E 00 86 01 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 17 [13:48:05]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [13:48:05]wFMCommunicate OK [13:48:05]SAM_PROTO_GetShiftState done [13:48:05]FM_GetShiftState done [13:48:05]opened in 1718929509 [13:48:05]opened+sec_in_day 1719015909 [13:48:05]quantity*price = 50065 [13:48:05]sum+1 = 50067 [13:48: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 СНО: Общий режим Чек 99 21.06.2024 13:48 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104176 ФПД: 150271830544313 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T134806&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104176&fm=150271830544313&tin=02508201610067®Number=0000000000092785&sum=50000 [13:48:06]StoreToDocumentArchive [13:48:06]shift 355 fd 104176 [13:48:06]save to /storage/0355/doc_00104176 [13:48:06]save last doc name /storage/0355/doc_00104176 to /storage/kkm_last_doc_name [13:48:06]save OK [13:48:06]Clear old archive folders... [13:48:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:48:06]tlvbuf is 0035E680 [13:48:06]SAM_PROTO_ClearQueue [13:48:06]wFMCommunicate request_size=4 [13:48:06]MH_SAM_APDU [13:48:06]CAPDU: 80 09 00 00 [13:48:06]Write to MH i2c: E2 08 00 93 01 80 09 00 00 00 00 00 00 06 [13:48:06]Write i2c OK [13:48:06]MH_I2C_Read... [13:48:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:48:06]Read from MH i2c: E2 [13:48:06]MH_I2C_Read... [13:48:06]Read from MH i2c: E2 03 00 [13:48:06]MH_I2C_Read... [13:48:06]Read from MH i2c: E2 03 00 93 01 00 90 00 08 [13:48:06]RAPDU: 90 00 [13:48:06]wFMCommunicate OK [13:48:06]SAM_PROTO_ClearQueue done [13:48:06]KKMCreateOFDPacket [13:48:06]OFDProtocolAddRootSTLVToBuf [13:48:06]FM_MakeSignedData [13:48:06]FM_MakeSignedData [13:48:06]SAM_PROTO_SignData [13:48:06]wFMCommunicate request_size=4 [13:48:06]MH_SAM_APDU [13:48:06]CAPDU: 80 0D 01 02 [13:48:06]Write to MH i2c: E2 08 00 94 01 80 0D 01 02 00 00 00 00 0E [13:48:06]Write i2c OK [13:48:06]MH_I2C_Read... [13:48:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:48:06]Read from MH i2c: E2 [13:48:06]MH_I2C_Read... [13:48:06]Read from MH i2c: E2 03 00 [13:48:06]MH_I2C_Read... [13:48:06]Read from MH i2c: E2 03 00 94 01 00 90 00 09 [13:48:06]RAPDU: 90 00 [13:48:06]wFMCommunicate OK [13:48:06]wFMCommunicate request_size=255 [13:48:06]MH_SAM_APDU [13:48: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 63 00 00 00 F4 03 04 00 96 84 75 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 F0 96 01 00 35 04 06 00 88 [13:48:06]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 63 00 00 00 F4 03 04 00 96 84 75 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 F0 96 01 00 35 04 06 00 88 00 00 93 [13:48:06]Write i2c OK [13:48:06]MH_I2C_Read... [13:48:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:48:06]Read from MH i2c: E2 [13:48:06]MH_I2C_Read... [13:48:06]Read from MH i2c: E2 03 00 [13:48:06]MH_I2C_Read... [13:48:06]Read from MH i2c: E2 03 00 95 01 00 90 00 0A [13:48:06]RAPDU: 90 00 [13:48:06]wFMCommunicate OK [13:48:06]wFMCommunicate request_size=10 [13:48:06]MH_SAM_APDU [13:48:06]CAPDU: 80 0D 02 02 05 AB E3 14 4F B9 [13:48:06]Write to MH i2c: E2 0D 00 96 01 80 0D 02 02 05 00 AB E3 14 4F B9 00 00 C5 [13:48:06]Write i2c OK [13:48:06]MH_I2C_Read... [13:48:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:48:06]Read from MH i2c: E2 [13:48:06]MH_I2C_Read... [13:48:06]Read from MH i2c: E2 03 00 [13:48:06]MH_I2C_Read... [13:48:06]Read from MH i2c: E2 03 00 96 01 00 90 00 0B [13:48:06]RAPDU: 90 00 [13:48:06]wFMCommunicate OK [13:48:06]wFMCommunicate request_size=4 [13:48:06]MH_SAM_APDU [13:48:06]CAPDU: 80 0D 03 02 [13:48:06]Write to MH i2c: E2 08 00 97 01 80 0D 03 02 00 00 00 00 13 [13:48:06]Write i2c OK [13:48:06]MH_I2C_Read... [13:48:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:48:06]Read from MH i2c: E2 [13:48:06]MH_I2C_Read... [13:48:06]Read from MH i2c: E2 0B 00 [13:48:06]MH_I2C_Read... [13:48:06]Read from MH i2c: E2 0B 00 97 01 00 0B E3 B7 7C CE 36 2C 5F 90 00 C4 [13:48:06]RAPDU: 0B E3 B7 7C CE 36 2C 5F 90 00 [13:48:06]wFMCommunicate OK [13:48:06]SAM_PROTO_SignData done [13:48:06]FM_MakeSignedData done [13:48:06]CreateOFDProtocolMessage [13:48:06]wFMCommunicate request_size=4 [13:48:06]MH_SAM_APDU [13:48:06]CAPDU: 80 11 00 00 [13:48:06]Write to MH i2c: E2 08 00 98 01 80 11 00 00 00 00 00 00 13 [13:48:06]Write i2c OK [13:48:06]MH_I2C_Read... [13:48:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:48:06]Read from MH i2c: E2 [13:48:06]MH_I2C_Read... [13:48:06]Read from MH i2c: E2 17 00 [13:48:06]MH_I2C_Read... [13:48:06]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 [13:48:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [13:48:06]wFMCommunicate OK [13:48:06]CreateOFDProtocolMessage done [13:48:06]OFDSenderStorePacket 104176 [13:48:06]StoreOFDPacket docnum=104176 [13:48: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 1C 6E 07 01 F7 38 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 63 00 00 00 F4 03 04 00 96 84 75 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 F0 96 01 00 35 04 06 00 88 AB E3 14 4F B9 0B E3 B7 7C CE 36 2C 5F [13:48:06]CheckFolder [13:48:06]dirname=/storage/ofd_packets [13:48:06]CheckFolder done [13:48:06]ProducePacketName [13:48:06]name=ofd_packets/00104176 [13:48:06]NVStorageSaveData ofd_packets/00104176 [13:48:06]File name is /storage/ofd_packets/00104176 [13:48:06]Write 301 bytes [13:48:06]NVStorageSaveData done [13:48:06]OFDSenderStorePacket done [13:48:06]KKMCreateOFDPacket done [13:48:06]NVStorageSaveData kkm_last_timestamp [13:48:06]File name is /storage/kkm_last_timestamp [13:48:06]Write 4 bytes [13:48:06]NVStorageSaveData done [13:48:06]ExternCall_PrintAddStr [13:48:06]wPrintStart [13:48:06]Write to MH i2c: 01 00 00 99 01 9A [13:48:06]Write i2c OK [13:48:06]MH_I2C_Read... [13:48:06]Read from MH i2c: 01 [13:48:06]MH_I2C_Read... [13:48:06]Read from MH i2c: 01 07 00 [13:48:06]MH_I2C_Read... [13:48:06]Read from MH i2c: 01 07 00 99 01 00 00 00 00 00 FF 0F AF [13:48:06]RasterBufferAndPrint [13:48:06]line Счет N : (1)673609 [13:48:06]line ИНН: 02508201610067 [13:48:06]line Контрольно-Кассовый Чек [13:48:06]line ПРОДАЖА [13:48:06]line ТРК (МРК, ГНК) : 42 [13:48:06]line Товар: 2710124130 [13:48:06]line Аи-92-К-5 [13:48:06]line 7.540 * 66.40 [13:48:06]line = 500.66 [13:48:06]line НДС 12% НСП 1% [13:48:06]line > о реализуемом товаре [13:48:06]line ОКРУГЛЕНИЕ: -0.66 [13:48:06]line ИТОГО: 500.00 [13:48:06]line Внесено: 500.00 [13:48:06]line СДАЧА: 0.00 [13:48:06]line НСП 1% : 4.43 [13:48:06]line НДС 12% : 53.17 [13:48:06]line Наличными: 500.00 [13:48:06]line Безнал.: 0.00 [13:48:06]line Место: АЗС № 120 "Партнер Нефть" [13:48:06]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [13:48:06]line СНО: Общий режим [13:48:06]line Чек 99 21.06.2024 13:48 [13:48:06]line Смена: 355 ФФД: 1.0 [13:48:06]line ЗНМ: 0300000164 [13:48:06]line РНМ: 0000000000092785 [13:48:06]line Версия ККМ: 001 [13:48:06]line ФМ: 0000000000875093 [13:48:06]line ФД: 104176 [13:48:06]line ФПД: 150271830544313 [13:48:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T134806&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104176&fm=150271830544313&tin=02508201610067®Number=0000000000092785&sum=50000 [13:48:07]OFD Sender: Processing packet 104176 [packets to send 17, broken 16] [13:48:07]ProducePacketName [13:48:07]name=ofd_packets/00104176 [13:48:07]OFD Sender: To server: pG, [13:48:07]CommunicateWithHost lk.salyk.kg:30040 [13:48:07]ConnectInit lk.salyk.kg [13:48:07]written 0, free lines is 4095 [13:48:07]Connected sock=10 [13:48: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 1C 6E 07 01 F7 38 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 63 00 00 00 F4 03 04 00 96 84 75 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 F0 96 01 00 35 04 06 00 88 AB E3 14 4F B9 0B E3 B7 7C CE 36 2C 5F [13:48: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 C6 7D 47 00 3E 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 F0 96 01 00 F4 03 04 00 18 2B 75 66 B6 04 01 00 00 8B CC 10 C7 21 A2 03 A5 [13:48:07]CommunicateWithHost err = 0 [13:48:07]CheckOFDResponse [13:48:07]1017 (14) - 77093643461234 [13:48:07]1041 (16) - 0000000000875093 [13:48:07]1040 (4) - 104176 [13:48:07]1012 (4) - 21.06.2024 07:26 [13:48:07]1206 (1) - 0 [13:48:07]OFD Sender: Remove packet 104176 [13:48:07]ProducePacketName [13:48:07]name=ofd_packets/00104176 [13:48:07]NVStorageDeleteData [13:48:07]Write to MH i2c: 01 00 00 C4 01 C5 [13:48:07]Write i2c OK [13:48:07]MH_I2C_Read... [13:48:07]Read from MH i2c: 01 [13:48:07]MH_I2C_Read... [13:48:07]Read from MH i2c: 01 07 00 [13:48:07]MH_I2C_Read... [13:48:07]Read from MH i2c: 01 07 00 C4 01 00 00 00 00 00 D4 0C AC [13:48:07]RasterBufferAndPrint [13:48:07]line [13:48:07]line [13:48:07]line [13:48:07]line [13:48:07]line [13:48:07]written 0, free lines is 3292 [13:48:07]MH_Cut [13:48:07]Write to MH i2c: D1 01 00 CB 01 01 9E [13:48:07]Write i2c OK [13:48:07]MH_I2C_Read... [13:48:07]Read from MH i2c: D1 [13:48:07]MH_I2C_Read... [13:48:07]Read from MH i2c: D1 01 00 [13:48:07]MH_I2C_Read... [13:48:07]Read from MH i2c: D1 01 00 CB 01 00 9D [13:48:07]Write to MH i2c: 01 00 00 CC 01 CD [13:48:07]Write i2c OK [13:48:07]MH_I2C_Read... [13:48:08]OFD Sender: No OFD packet to send [13:48:08]*** Cut start [13:48:08]*** Partial cut [13:48:08]*** CUTSNS_PIN = 1 [13:48:08]*** CUTSNS_PIN = 0 [13:48:08]*** Brake cut motor [13:48:09]Read from MH i2c: 01 [13:48:09]MH_I2C_Read... [13:48:09]*** Stop cut motor [13:48:09]*** Cut end [13:48:09]Read from MH i2c: 01 07 00 [13:48:09]MH_I2C_Read... [13:48:09]Read from MH i2c: 01 07 00 CC 01 00 00 00 00 00 FF 0F E2 [13:48:09]process_action close_receipt done [13:48:09]requested_data is exist [13:48:09]produce_requested_data [13:48:09]requested_item fm.sn is exist - process it [13:48:09]wFMCommunicate request_size=4 [13:48:09]MH_SAM_APDU [13:48:09]CAPDU: 80 11 00 00 [13:48:09]Write to MH i2c: E2 08 00 CD 01 80 11 00 00 00 00 00 00 48 [13:48:09]Write i2c OK [13:48:09]MH_I2C_Read... [13:48:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:48:09]Read from MH i2c: E2 [13:48:09]MH_I2C_Read... [13:48:09]Read from MH i2c: E2 17 00 [13:48:09]MH_I2C_Read... [13:48:09]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 [13:48:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [13:48:09]wFMCommunicate OK [13:48:09]requested_item fd.num is exist - process it [13:48:09]SAM_PROTO_GetFieldsCounters [13:48:09]wFMCommunicate request_size=4 [13:48:09]MH_SAM_APDU [13:48:09]CAPDU: 80 13 00 00 [13:48:09]Write to MH i2c: E2 08 00 CE 01 80 13 00 00 00 00 00 00 4B [13:48:09]Write i2c OK [13:48:09]MH_I2C_Read... [13:48:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:48:09]Read from MH i2c: E2 [13:48:09]MH_I2C_Read... [13:48:09]Read from MH i2c: E2 62 00 [13:48:09]MH_I2C_Read... [13:48:09]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 F0 96 01 00 0E 04 04 00 63 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 86 [13:48: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 F0 96 01 00 0E 04 04 00 63 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:48:09]wFMCommunicate OK [13:48:09]SAM_PROTO_GetFieldsCounters done [13:48:09]requested_item shift.num is exist - process it [13:48:09]requested_item shift.opened is exist - process it [13:48:09]req_shift_opened [13:48:09]FM_GetShiftState [13:48:09]SAM_PROTO_GetShiftState [13:48:09]wFMCommunicate request_size=4 [13:48:09]MH_SAM_APDU [13:48:09]CAPDU: 80 13 01 00 [13:48:09]Write to MH i2c: E2 08 00 CF 01 80 13 01 00 00 00 00 00 4D [13:48:09]Write i2c OK [13:48:09]MH_I2C_Read... [13:48:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:48:09]Read from MH i2c: E2 [13:48:09]MH_I2C_Read... [13:48:09]Read from MH i2c: E2 0E 00 [13:48:09]MH_I2C_Read... [13:48:09]Read from MH i2c: E2 0E 00 CF 01 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 60 [13:48:09]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [13:48:09]wFMCommunicate OK [13:48:09]SAM_PROTO_GetShiftState done [13:48:09]FM_GetShiftState done [13:48:09]req_shift_opened done [13:48:09]requested_item shift.open_date is exist - process it [13:48:09]req_shift_open_date [13:48:09]req_shift_open_date done [13:48:09]produce_requested_data done [13:48:09]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104176,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [13:48:09]process_action_free close_receipt [13:48:09]json_value_free [13:48:09]json_value_free done [13:48:09]process_json_proto returns [13:48:09]Send response to host [13:48:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104176,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [13:48:09]free response buf [13:48:09]execute_script done [13:48:09]execute_script returns [13:48:09]free content buf [13:48:09]Sock 9.Close socket [13:48:09]Sock 9.Thread stoped [13:48:13]OFD Sender: No OFD packet to send [13:48:18]OFD Sender: No OFD packet to send [13:48:23]OFD Sender: No OFD packet to send [13:48:28]OFD Sender: No OFD packet to send [13:48:33]OFD Sender: No OFD packet to send [13:48:38]OFD Sender: No OFD packet to send [13:48:40]accept exits with 8 [13:48:40]New connection [13:48:40]New thread 3066637668 created [13:48:40]Thread 3066494308 joined [13:48:40]Waiting for new connection... [13:48:40] Sock 8.Parse request [13:48:40]Sock 8.Check first char [13:48:40]Sock 8.First char is OK [13:48:40]request: POST /json_proto HTTP/1.0 [13:48:40]Method: POST [13:48:40]URL: /json_proto [13:48:40]Method is POST - this is cgi request [13:48:40]url: /json_proto [13:48:40]query_string will be loaded in cgi processing [13:48:40]execute_cgi json_proto POST (null) [13:48:40]execute_cgi path=json_proto method=POST [13:48:40]POST find Content-Length [13:48:40]Host: 172.17.38.133:8080 [13:48:40]Content-Length: 682 [13:48:40]Content-Type: application/json [13:48:40] [13:48:40]POST finish read [13:48:40]Found Content-Length = 682 [13:48:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673608", "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" ] } } [13:48:40]execute_script... [13:48: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)673608", "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" ] } } [13:48:40]POST & json_proto [13:48:40]process_json_proto [13:48:40]json parsed OK: [13:48:40]protocol is kg_v1.0 [13:48:40]action value=close_receipt [13:48:40]process_action close_receipt [13:48:40]cmd_close_receipt [13:48:40]MH_GetDate [13:48:40]Write to MH i2c: F0 00 00 D0 01 C0 [13:48:40]Write i2c OK [13:48:40]MH_I2C_Read... [13:48:40]Read from MH i2c: F0 [13:48:40]MH_I2C_Read... [13:48:40]Read from MH i2c: F0 09 00 [13:48:40]MH_I2C_Read... [13:48:40]Read from MH i2c: F0 09 00 D0 01 00 B9 84 75 66 BD 8F 7C 64 0D [13:48:40]GetLastDocTimeStamp 1718977686 [13:48:40]current date 1718977721 [13:48:40]FM_GetShiftState [13:48:40]SAM_PROTO_GetShiftState [13:48:40]wFMCommunicate request_size=4 [13:48:40]MH_SAM_APDU [13:48:40]CAPDU: 80 13 01 00 [13:48:40]Write to MH i2c: E2 08 00 D1 01 80 13 01 00 00 00 00 00 4F [13:48:40]Write i2c OK [13:48:40]MH_I2C_Read... [13:48:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:48:40]Read from MH i2c: E2 [13:48:40]MH_I2C_Read... [13:48:40]Read from MH i2c: E2 0E 00 [13:48:40]MH_I2C_Read... [13:48:40]Read from MH i2c: E2 0E 00 D1 01 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 62 [13:48:40]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [13:48:40]wFMCommunicate OK [13:48:40]SAM_PROTO_GetShiftState done [13:48:40]FM_GetShiftState done [13:48:40]opened in 1718929509 [13:48:40]opened+sec_in_day 1719015909 [13:48:40]quantity*price = 160024 [13:48:40]sum+1 = 160025 [13:48:40]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 СНО: Общий режим Чек 100 21.06.2024 13:48 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104177 ФПД: 4220311374313 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T134841&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104177&fm=4220311374313&tin=02508201610067®Number=0000000000092785&sum=160000 [13:48:41]StoreToDocumentArchive [13:48:41]shift 355 fd 104177 [13:48:41]save to /storage/0355/doc_00104177 [13:48:41]save last doc name /storage/0355/doc_00104177 to /storage/kkm_last_doc_name [13:48:41]save OK [13:48:41]Clear old archive folders... [13:48:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:48:41]tlvbuf is 0035FFB0 [13:48:41]SAM_PROTO_ClearQueue [13:48:41]wFMCommunicate request_size=4 [13:48:41]MH_SAM_APDU [13:48:41]CAPDU: 80 09 00 00 [13:48:41]Write to MH i2c: E2 08 00 DE 01 80 09 00 00 00 00 00 00 51 [13:48:41]Write i2c OK [13:48:41]MH_I2C_Read... [13:48:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:48:41]Read from MH i2c: E2 [13:48:41]MH_I2C_Read... [13:48:41]Read from MH i2c: E2 03 00 [13:48:41]MH_I2C_Read... [13:48:41]Read from MH i2c: E2 03 00 DE 01 00 90 00 53 [13:48:41]RAPDU: 90 00 [13:48:41]wFMCommunicate OK [13:48:41]SAM_PROTO_ClearQueue done [13:48:41]KKMCreateOFDPacket [13:48:41]OFDProtocolAddRootSTLVToBuf [13:48:41]FM_MakeSignedData [13:48:41]FM_MakeSignedData [13:48:41]SAM_PROTO_SignData [13:48:41]wFMCommunicate request_size=4 [13:48:41]MH_SAM_APDU [13:48:41]CAPDU: 80 0D 01 02 [13:48:41]Write to MH i2c: E2 08 00 DF 01 80 0D 01 02 00 00 00 00 59 [13:48:41]Write i2c OK [13:48:41]MH_I2C_Read... [13:48:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:48:41]Read from MH i2c: E2 [13:48:41]MH_I2C_Read... [13:48:41]Read from MH i2c: E2 03 00 [13:48:41]MH_I2C_Read... [13:48:41]Read from MH i2c: E2 03 00 DF 01 00 90 00 54 [13:48:41]RAPDU: 90 00 [13:48:41]wFMCommunicate OK [13:48:41]wFMCommunicate request_size=255 [13:48:41]MH_SAM_APDU [13:48: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 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 64 00 00 00 F4 03 04 00 B9 84 75 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 F1 96 01 00 35 04 06 00 03 [13:48:41]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 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 64 00 00 00 F4 03 04 00 B9 84 75 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 F1 96 01 00 35 04 06 00 03 00 00 01 [13:48:41]Write i2c OK [13:48:41]MH_I2C_Read... [13:48:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:48:42]Read from MH i2c: E2 [13:48:42]MH_I2C_Read... [13:48:42]Read from MH i2c: E2 03 00 [13:48:42]MH_I2C_Read... [13:48:42]Read from MH i2c: E2 03 00 E0 01 00 90 00 55 [13:48:42]RAPDU: 90 00 [13:48:42]wFMCommunicate OK [13:48:42]wFMCommunicate request_size=10 [13:48:42]MH_SAM_APDU [13:48:42]CAPDU: 80 0D 02 02 05 D6 9E 29 09 E9 [13:48:42]Write to MH i2c: E2 0D 00 E1 01 80 0D 02 02 05 00 D6 9E 29 09 E9 00 00 F5 [13:48:42]Write i2c OK [13:48:42]MH_I2C_Read... [13:48:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:48:42]Read from MH i2c: E2 [13:48:42]MH_I2C_Read... [13:48:42]Read from MH i2c: E2 03 00 [13:48:42]MH_I2C_Read... [13:48:42]Read from MH i2c: E2 03 00 E1 01 00 90 00 56 [13:48:42]RAPDU: 90 00 [13:48:42]wFMCommunicate OK [13:48:42]wFMCommunicate request_size=4 [13:48:42]MH_SAM_APDU [13:48:42]CAPDU: 80 0D 03 02 [13:48:42]Write to MH i2c: E2 08 00 E2 01 80 0D 03 02 00 00 00 00 5E [13:48:42]Write i2c OK [13:48:42]MH_I2C_Read... [13:48:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:48:42]Read from MH i2c: E2 [13:48:42]MH_I2C_Read... [13:48:42]Read from MH i2c: E2 0B 00 [13:48:42]MH_I2C_Read... [13:48:42]Read from MH i2c: E2 0B 00 E2 01 00 30 6D 74 F2 38 CE B2 99 90 00 B3 [13:48:42]RAPDU: 30 6D 74 F2 38 CE B2 99 90 00 [13:48:42]wFMCommunicate OK [13:48:42]SAM_PROTO_SignData done [13:48:42]FM_MakeSignedData done [13:48:42]CreateOFDProtocolMessage [13:48:42]wFMCommunicate request_size=4 [13:48:42]MH_SAM_APDU [13:48:42]CAPDU: 80 11 00 00 [13:48:42]Write to MH i2c: E2 08 00 E3 01 80 11 00 00 00 00 00 00 5E [13:48:42]Write i2c OK [13:48:42]MH_I2C_Read... [13:48:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:48:42]Read from MH i2c: E2 [13:48:42]MH_I2C_Read... [13:48:42]Read from MH i2c: E2 17 00 [13:48:42]MH_I2C_Read... [13:48:42]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 [13: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 [13:48:42]wFMCommunicate OK [13:48:42]CreateOFDProtocolMessage done [13:48:42]OFDSenderStorePacket 104177 [13:48:42]StoreOFDPacket docnum=104177 [13:48: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 24 FC 07 01 E0 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 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 64 00 00 00 F4 03 04 00 B9 84 75 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 F1 96 01 00 35 04 06 00 03 D6 9E 29 09 E9 30 6D 74 F2 38 CE B2 99 [13:48:42]CheckFolder [13:48:42]dirname=/storage/ofd_packets [13:48:42]CheckFolder done [13:48:42]ProducePacketName [13:48:42]name=ofd_packets/00104177 [13:48:42]NVStorageSaveData ofd_packets/00104177 [13:48:42]File name is /storage/ofd_packets/00104177 [13:48:42]Write 301 bytes [13:48:42]NVStorageSaveData done [13:48:42]OFDSenderStorePacket done [13:48:42]KKMCreateOFDPacket done [13:48:42]NVStorageSaveData kkm_last_timestamp [13:48:42]File name is /storage/kkm_last_timestamp [13:48:42]Write 4 bytes [13:48:42]NVStorageSaveData done [13:48:42]ExternCall_PrintAddStr [13:48:42]wPrintStart [13:48:42]Write to MH i2c: 01 00 00 E4 01 E5 [13:48:42]Write i2c OK [13:48:42]MH_I2C_Read... [13:48:42]Read from MH i2c: 01 [13:48:42]MH_I2C_Read... [13:48:42]Read from MH i2c: 01 07 00 [13:48:42]MH_I2C_Read... [13:48:42]Read from MH i2c: 01 07 00 E4 01 00 00 00 00 00 FF 0F FA [13:48:42]RasterBufferAndPrint [13:48:42]line Счет N : (1)673608 [13:48:42]line ИНН: 02508201610067 [13:48:42]line Контрольно-Кассовый Чек [13:48:42]line ПРОДАЖА [13:48:42]line ТРК (МРК, ГНК) : 32 [13:48:42]line Товар: 2710124130 [13:48:42]line Аи-92-К-5 [13:48:42]line 24.100 * 66.40 [13:48:42]line = 1600.24 [13:48:42]line НДС 12% НСП 1% [13:48:42]line > о реализуемом товаре [13:48:42]line ОКРУГЛЕНИЕ: -0.24 [13:48:42]line ИТОГО: 1600.00 [13:48:42]line Внесено: 1600.00 [13:48:42]line СДАЧА: 0.00 [13:48:42]line НСП 1% : 14.16 [13:48:42]line НДС 12% : 169.94 [13:48:42]line Наличными: 1600.00 [13:48:42]line Безнал.: 0.00 [13:48:42]line Место: АЗС № 120 "Партнер Нефть" [13:48:42]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [13:48:42]line СНО: Общий режим [13:48:42]line Чек 100 21.06.2024 13:48 [13:48:42]line Смена: 355 ФФД: 1.0 [13:48:42]line ЗНМ: 0300000164 [13:48:42]line РНМ: 0000000000092785 [13:48:42]line Версия ККМ: 001 [13:48:42]line ФМ: 0000000000875093 [13:48:42]line ФД: 104177 [13:48:42]line ФПД: 4220311374313 [13:48:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T134841&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104177&fm=4220311374313&tin=02508201610067®Number=0000000000092785&sum=160000 [13:48:42]OFD Sender: Processing packet 104177 [packets to send 17, broken 16] [13:48:42]ProducePacketName [13:48:42]name=ofd_packets/00104177 [13:48:42]OFD Sender: To server: pG, [13:48:42]CommunicateWithHost lk.salyk.kg:30040 [13:48:42]ConnectInit lk.salyk.kg [13:48:42]written 0, free lines is 4095 [13:48:42]Connected sock=10 [13:48: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 24 FC 07 01 E0 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 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 64 00 00 00 F4 03 04 00 B9 84 75 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 F1 96 01 00 35 04 06 00 03 D6 9E 29 09 E9 30 6D 74 F2 38 CE B2 99 [13:48: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 BD 6F 47 00 4D 43 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 F1 96 01 00 F4 03 04 00 3C 2B 75 66 B6 04 01 00 00 6E 69 FF 71 D5 93 BA 32 [13:48:43]CommunicateWithHost err = 0 [13:48:43]CheckOFDResponse [13:48:43]1017 (14) - 77093643461234 [13:48:43]1041 (16) - 0000000000875093 [13:48:43]1040 (4) - 104177 [13:48:43]1012 (4) - 21.06.2024 07:26 [13:48:43]1206 (1) - 0 [13:48:43]OFD Sender: Remove packet 104177 [13:48:43]ProducePacketName [13:48:43]name=ofd_packets/00104177 [13:48:43]NVStorageDeleteData [13:48:43]Write to MH i2c: 01 00 00 0F 02 11 [13:48:43]Write i2c OK [13:48:43]MH_I2C_Read... [13:48:43]Read from MH i2c: 01 [13:48:43]MH_I2C_Read... [13:48:43]Read from MH i2c: 01 07 00 [13:48:43]MH_I2C_Read... [13:48:43]Read from MH i2c: 01 07 00 0F 02 00 00 00 00 00 EE 0C 12 [13:48:43]RasterBufferAndPrint [13:48:43]line [13:48:43]line [13:48:43]line [13:48:43]line [13:48:43]line [13:48:43]written 0, free lines is 3316 [13:48:43]MH_Cut [13:48:43]Write to MH i2c: D1 01 00 16 02 01 EA [13:48:43]Write i2c OK [13:48:43]MH_I2C_Read... [13:48:43]Read from MH i2c: D1 [13:48:43]MH_I2C_Read... [13:48:43]Read from MH i2c: D1 01 00 [13:48:43]MH_I2C_Read... [13:48:43]Read from MH i2c: D1 01 00 16 02 00 E9 [13:48:43]Write to MH i2c: 01 00 00 17 02 19 [13:48:43]Write i2c OK [13:48:43]MH_I2C_Read... [13:48:43]OFD Sender: No OFD packet to send [13:48:43]*** Cut start [13:48:43]*** Partial cut [13:48:43]*** CUTSNS_PIN = 1 [13:48:43]*** CUTSNS_PIN = 0 [13:48:44]*** Brake cut motor [13:48:44]Read from MH i2c: 01 [13:48:44]MH_I2C_Read... [13:48:44]*** Stop cut motor [13:48:44]*** Cut end [13:48:44]Read from MH i2c: 01 07 00 [13:48:44]MH_I2C_Read... [13:48:44]Read from MH i2c: 01 07 00 17 02 00 00 00 00 00 FF 0F 2E [13:48:44]process_action close_receipt done [13:48:44]requested_data is exist [13:48:44]produce_requested_data [13:48:44]requested_item fm.sn is exist - process it [13:48:44]wFMCommunicate request_size=4 [13:48:44]MH_SAM_APDU [13:48:44]CAPDU: 80 11 00 00 [13:48:44]Write to MH i2c: E2 08 00 18 02 80 11 00 00 00 00 00 00 94 [13:48:44]Write i2c OK [13:48:44]MH_I2C_Read... [13:48:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:48:44]Read from MH i2c: E2 [13:48:44]MH_I2C_Read... [13:48:44]Read from MH i2c: E2 17 00 [13:48:44]MH_I2C_Read... [13:48:44]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 [13:48:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [13:48:44]wFMCommunicate OK [13:48:44]requested_item fd.num is exist - process it [13:48:44]SAM_PROTO_GetFieldsCounters [13:48:44]wFMCommunicate request_size=4 [13:48:44]MH_SAM_APDU [13:48:44]CAPDU: 80 13 00 00 [13:48:44]Write to MH i2c: E2 08 00 19 02 80 13 00 00 00 00 00 00 97 [13:48:44]Write i2c OK [13:48:44]MH_I2C_Read... [13:48:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:48:44]Read from MH i2c: E2 [13:48:44]MH_I2C_Read... [13:48:44]Read from MH i2c: E2 62 00 [13:48:44]MH_I2C_Read... [13:48:44]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 F1 96 01 00 0E 04 04 00 63 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 D6 [13:48: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 F1 96 01 00 0E 04 04 00 63 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:48:44]wFMCommunicate OK [13:48:44]SAM_PROTO_GetFieldsCounters done [13:48:44]requested_item shift.num is exist - process it [13:48:44]requested_item shift.opened is exist - process it [13:48:44]req_shift_opened [13:48:44]FM_GetShiftState [13:48:44]SAM_PROTO_GetShiftState [13:48:44]wFMCommunicate request_size=4 [13:48:44]MH_SAM_APDU [13:48:44]CAPDU: 80 13 01 00 [13:48:44]Write to MH i2c: E2 08 00 1A 02 80 13 01 00 00 00 00 00 99 [13:48:44]Write i2c OK [13:48:44]MH_I2C_Read... [13:48:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:48:44]Read from MH i2c: E2 [13:48:44]MH_I2C_Read... [13:48:44]Read from MH i2c: E2 0E 00 [13:48:44]MH_I2C_Read... [13:48:44]Read from MH i2c: E2 0E 00 1A 02 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 AC [13:48:44]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [13:48:44]wFMCommunicate OK [13:48:44]SAM_PROTO_GetShiftState done [13:48:44]FM_GetShiftState done [13:48:44]req_shift_opened done [13:48:44]requested_item shift.open_date is exist - process it [13:48:44]req_shift_open_date [13:48:44]req_shift_open_date done [13:48:44]produce_requested_data done [13:48:44]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104177,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [13:48:44]process_action_free close_receipt [13:48:44]json_value_free [13:48:44]json_value_free done [13:48:44]process_json_proto returns [13:48:44]Send response to host [13:48:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104177,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [13:48:44]free response buf [13:48:44]execute_script done [13:48:44]execute_script returns [13:48:44]free content buf [13:48:44]Sock 8.Close socket [13:48:44]Sock 8.Thread stoped [13:48:48]OFD Sender: No OFD packet to send [13:48:53]OFD Sender: No OFD packet to send [13:48:58]OFD Sender: No OFD packet to send [13:49:03]OFD Sender: No OFD packet to send [13:49:08]OFD Sender: No OFD packet to send [13:49:13]OFD Sender: No OFD packet to send [13:49:18]OFD Sender: No OFD packet to send [13:49:23]OFD Sender: No OFD packet to send [13:49:28]OFD Sender: No OFD packet to send [13:49:33]OFD Sender: No OFD packet to send [13:49:38]OFD Sender: No OFD packet to send [13:49:43]OFD Sender: No OFD packet to send [13:49:48]OFD Sender: No OFD packet to send [13:49:53]OFD Sender: No OFD packet to send [13:49:58]OFD Sender: No OFD packet to send [13:50:03]OFD Sender: No OFD packet to send [13:50:08]OFD Sender: No OFD packet to send [13:50:13]OFD Sender: No OFD packet to send [13:50:18]OFD Sender: No OFD packet to send [13:50:23]OFD Sender: No OFD packet to send [13:50:28]OFD Sender: No OFD packet to send [13:50:33]OFD Sender: No OFD packet to send [13:50:38]OFD Sender: No OFD packet to send [13:50:43]OFD Sender: No OFD packet to send [13:50:48]OFD Sender: No OFD packet to send [13:50:53]OFD Sender: No OFD packet to send [13:50:58]OFD Sender: No OFD packet to send [13:51:03]OFD Sender: No OFD packet to send [13:51:08]OFD Sender: No OFD packet to send [13:51:13]OFD Sender: No OFD packet to send [13:51:18]OFD Sender: No OFD packet to send [13:51:23]OFD Sender: No OFD packet to send [13:51:28]OFD Sender: No OFD packet to send [13:51:33]OFD Sender: No OFD packet to send [13:51:38]OFD Sender: No OFD packet to send [13:51:43]OFD Sender: No OFD packet to send [13:51:48]OFD Sender: No OFD packet to send [13:51:53]OFD Sender: No OFD packet to send [13:51:58]OFD Sender: No OFD packet to send [13:52:03]OFD Sender: No OFD packet to send [13:52:08]OFD Sender: No OFD packet to send [13:52:13]OFD Sender: No OFD packet to send [13:52:18]OFD Sender: No OFD packet to send [13:52:23]OFD Sender: No OFD packet to send [13:52:28]OFD Sender: No OFD packet to send [13:52:33]OFD Sender: No OFD packet to send [13:52:38]OFD Sender: No OFD packet to send [13:52:43]OFD Sender: No OFD packet to send [13:52:48]OFD Sender: No OFD packet to send [13:52:53]OFD Sender: No OFD packet to send [13:52:58]OFD Sender: No OFD packet to send [13:53:03]OFD Sender: No OFD packet to send [13:53:08]OFD Sender: No OFD packet to send [13:53:13]OFD Sender: No OFD packet to send [13:53:18]OFD Sender: No OFD packet to send [13:53:23]OFD Sender: No OFD packet to send [13:53:28]OFD Sender: No OFD packet to send [13:53:33]OFD Sender: No OFD packet to send [13:53:38]OFD Sender: No OFD packet to send [13:53:43]OFD Sender: No OFD packet to send [13:53:48]OFD Sender: No OFD packet to send [13:53:53]OFD Sender: No OFD packet to send [13:53:58]OFD Sender: No OFD packet to send [13:54:03]OFD Sender: No OFD packet to send [13:54:08]OFD Sender: No OFD packet to send [13:54:13]OFD Sender: No OFD packet to send [13:54:18]OFD Sender: No OFD packet to send [13:54:23]OFD Sender: No OFD packet to send [13:54:28]OFD Sender: No OFD packet to send [13:54:33]OFD Sender: No OFD packet to send [13:54:38]OFD Sender: No OFD packet to send [13:54:43]OFD Sender: No OFD packet to send [13:54:48]OFD Sender: No OFD packet to send [13:54:53]OFD Sender: No OFD packet to send [13:54:58]OFD Sender: No OFD packet to send [13:55:03]OFD Sender: No OFD packet to send [13:55:08]OFD Sender: No OFD packet to send [13:55:13]OFD Sender: No OFD packet to send [13:55:18]OFD Sender: No OFD packet to send [13:55:23]OFD Sender: No OFD packet to send [13:55:28]OFD Sender: No OFD packet to send [13:55:33]accept exits with 9 [13:55:33]New connection [13:55:33]New thread 3066494308 created [13:55:33]Thread 3066637668 joined [13:55:33]Waiting for new connection... [13:55:33] Sock 9.Parse request [13:55:33]Sock 9.Check first char [13:55:33]Sock 9.First char is OK [13:55:33]request: POST /json_proto HTTP/1.0 [13:55:33]Method: POST [13:55:33]URL: /json_proto [13:55:33]Method is POST - this is cgi request [13:55:33]url: /json_proto [13:55:33]query_string will be loaded in cgi processing [13:55:33]execute_cgi json_proto POST (null) [13:55:33]execute_cgi path=json_proto method=POST [13:55:33]POST find Content-Length [13:55:33]Host: 172.17.38.133:8080 [13:55:33]Content-Length: 1184 [13:55:33]Content-Type: application/json [13:55:33] [13:55:33]POST finish read [13:55:33]Found Content-Length = 1184 [13:55:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 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)673610\u000A21.06.2024 13:32\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\u000A4104046\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:55:33]execute_script... [13:55:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 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)673610\u000A21.06.2024 13:32\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\u000A4104046\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:55:33]POST & json_proto [13:55:33]process_json_proto [13:55:33]json parsed OK: [13:55:33]protocol is kg_v1.0 [13:55:33]action value=print_text [13:55:33]process_action print_text [13:55:33]cmd_print_text [13:55:33]ExternCall_PrintAddStr [13:55:33]wPrintStart [13:55:33]Write to MH i2c: 01 00 00 1B 02 1D [13:55:33]Write i2c OK [13:55:33]MH_I2C_Read... [13:55:33]Read from MH i2c: 01 [13:55:33]MH_I2C_Read... [13:55:33]Read from MH i2c: 01 07 00 [13:55:33]MH_I2C_Read... [13:55:33]Read from MH i2c: 01 07 00 1B 02 00 00 00 00 00 FF 0F 32 [13:55:33]RasterBufferAndPrint [13:55:33]line *****ТОВАРНЫЙ ЧЕК***** [13:55:33]line АЗС 120 [13:55:33]line Партнер нефть [13:55:33]line 02508201610067 [13:55:33]line Кассир : Асанбаев Н. [13:55:33]line Счет N : (1)673610 [13:55:33]line 21.06.2024 13:32 [13:55:33]line ПРОДАЖА [13:55:33]line ТРК (МРК, ГНК): 32 [13:55:33]line Вид ГСМ : 2710124130 [13:55:33]line Аи-92-К-5 [13:55:33]line 10.000 x 66.40 [13:55:33]line ИТОГ: 664.00 [13:55:33]line Тип оплаты: Талоны: Партнер нефть [13:55:33]line 4104046 [13:55:33]line ______________________ [13:55:33]line (подпись) [13:55:33]written 0, free lines is 4095 [13:55:33]Write to MH i2c: 01 00 00 2F 02 31 [13:55:33]Write i2c OK [13:55:33]MH_I2C_Read... [13:55:33]Read from MH i2c: 01 [13:55:33]MH_I2C_Read... [13:55:33]Read from MH i2c: 01 07 00 [13:55:33]MH_I2C_Read... [13:55:33]Read from MH i2c: 01 07 00 2F 02 00 00 00 00 00 12 0E 58 [13:55:33]RasterBufferAndPrint [13:55:33]line [13:55:33]line [13:55:33]line [13:55:33]line [13:55:33]line [13:55:33]written 0, free lines is 3603 [13:55:33]MH_Cut [13:55:33]Write to MH i2c: D1 01 00 36 02 01 0A [13:55:33]Write i2c OK [13:55:33]MH_I2C_Read... [13:55:33]Read from MH i2c: D1 [13:55:33]MH_I2C_Read... [13:55:33]Read from MH i2c: D1 01 00 [13:55:33]MH_I2C_Read... [13:55:33]Read from MH i2c: D1 01 00 36 02 00 09 [13:55:33]Write to MH i2c: 01 00 00 37 02 39 [13:55:33]Write i2c OK [13:55:33]MH_I2C_Read... [13:55:34]OFD Sender: No OFD packet to send [13:55:34]*** Cut start [13:55:34]*** Partial cut [13:55:34]*** CUTSNS_PIN = 1 [13:55:34]*** CUTSNS_PIN = 0 [13:55:34]*** Brake cut motor [13:55:34]Read from MH i2c: 01 [13:55:34]MH_I2C_Read... [13:55:34]*** Stop cut motor [13:55:34]*** Cut end [13:55:34]Read from MH i2c: 01 07 00 [13:55:34]MH_I2C_Read... [13:55:34]Read from MH i2c: 01 07 00 37 02 00 00 00 00 00 FF 0F 4E [13:55:34]process_action print_text done [13:55:34]requested_data is exist [13:55:34]produce_requested_data [13:55:34]requested_item fm.sn is exist - process it [13:55:34]wFMCommunicate request_size=4 [13:55:34]MH_SAM_APDU [13:55:34]CAPDU: 80 11 00 00 [13:55:34]Write to MH i2c: E2 08 00 38 02 80 11 00 00 00 00 00 00 B4 [13:55:34]Write i2c OK [13:55:34]MH_I2C_Read... [13:55:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:55:34]Read from MH i2c: E2 [13:55:34]MH_I2C_Read... [13:55:34]Read from MH i2c: E2 17 00 [13:55:34]MH_I2C_Read... [13:55:34]Read from MH i2c: E2 17 00 38 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 07 [13:55:34]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:34]wFMCommunicate OK [13:55:34]requested_item fd.num is exist - process it [13:55:34]SAM_PROTO_GetFieldsCounters [13:55:34]wFMCommunicate request_size=4 [13:55:34]MH_SAM_APDU [13:55:34]CAPDU: 80 13 00 00 [13:55:34]Write to MH i2c: E2 08 00 39 02 80 13 00 00 00 00 00 00 B7 [13:55:34]Write i2c OK [13:55:34]MH_I2C_Read... [13:55:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:55:34]Read from MH i2c: E2 [13:55:34]MH_I2C_Read... [13:55:34]Read from MH i2c: E2 62 00 [13:55:34]MH_I2C_Read... [13:55:34]Read from MH i2c: E2 62 00 39 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 F1 96 01 00 0E 04 04 00 63 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 F6 [13:55: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 F1 96 01 00 0E 04 04 00 63 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:55:34]wFMCommunicate OK [13:55:34]SAM_PROTO_GetFieldsCounters done [13:55:34]requested_item shift.num is exist - process it [13:55:34]requested_item shift.opened is exist - process it [13:55:34]req_shift_opened [13:55:34]FM_GetShiftState [13:55:34]SAM_PROTO_GetShiftState [13:55:34]wFMCommunicate request_size=4 [13:55:34]MH_SAM_APDU [13:55:34]CAPDU: 80 13 01 00 [13:55:34]Write to MH i2c: E2 08 00 3A 02 80 13 01 00 00 00 00 00 B9 [13:55:34]Write i2c OK [13:55:34]MH_I2C_Read... [13:55:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:55:34]Read from MH i2c: E2 [13:55:34]MH_I2C_Read... [13:55:34]Read from MH i2c: E2 0E 00 [13:55:34]MH_I2C_Read... [13:55:34]Read from MH i2c: E2 0E 00 3A 02 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 CC [13:55:34]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [13:55:34]wFMCommunicate OK [13:55:34]SAM_PROTO_GetShiftState done [13:55:34]FM_GetShiftState done [13:55:34]req_shift_opened done [13:55:34]requested_item shift.open_date is exist - process it [13:55:34]req_shift_open_date [13:55:34]req_shift_open_date done [13:55:34]produce_requested_data done [13:55:34]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104177,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [13:55:34]process_action_free print_text [13:55:34]json_value_free [13:55:34]json_value_free done [13:55:34]process_json_proto returns [13:55:34]Send response to host [13:55:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104177,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [13:55:34]free response buf [13:55:34]execute_script done [13:55:34]execute_script returns [13:55:34]free content buf [13:55:34]Sock 9.Close socket [13:55:34]Sock 9.Thread stoped [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:36]accept exits with 8 [13:57:36]New connection [13:57:36]New thread 3066637668 created [13:57:36]Thread 3066494308 joined [13:57:36]Waiting for new connection... [13:57:36] Sock 8.Parse request [13:57:36]Sock 8.Check first char [13:57:36]Sock 8.First char is OK [13:57:36]request: POST /json_proto HTTP/1.0 [13:57:36]Method: POST [13:57:36]URL: /json_proto [13:57:36]Method is POST - this is cgi request [13:57:36]url: /json_proto [13:57:36]query_string will be loaded in cgi processing [13:57:36]execute_cgi json_proto POST (null) [13:57:36]execute_cgi path=json_proto method=POST [13:57:36]POST find Content-Length [13:57:36]Host: 172.17.38.133:8080 [13:57:36]Content-Length: 682 [13:57:36]Content-Type: application/json [13:57:36] [13:57:36]POST finish read [13:57:36]Found Content-Length = 682 [13:57:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673611", "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.000, "sum" : 4655.70, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 4655.00, "payments": [ { "type": 0, "sum" : 4655.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:57:36]execute_script... [13:57: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)673611", "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.000, "sum" : 4655.70, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 4655.00, "payments": [ { "type": 0, "sum" : 4655.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:57:36]POST & json_proto [13:57:36]process_json_proto [13:57:36]json parsed OK: [13:57:36]protocol is kg_v1.0 [13:57:36]action value=close_receipt [13:57:36]process_action close_receipt [13:57:36]cmd_close_receipt [13:57:36]MH_GetDate [13:57:36]Write to MH i2c: F0 00 00 3B 02 2C [13:57:36]Write i2c OK [13:57:36]MH_I2C_Read... [13:57:36]Read from MH i2c: F0 [13:57:36]MH_I2C_Read... [13:57:36]Read from MH i2c: F0 09 00 [13:57:36]MH_I2C_Read... [13:57:36]Read from MH i2c: F0 09 00 3B 02 00 D2 86 75 66 BD 8F 7C 64 94 [13:57:36]GetLastDocTimeStamp 1718977721 [13:57:36]current date 1718978258 [13:57:36]FM_GetShiftState [13:57:36]SAM_PROTO_GetShiftState [13:57:36]wFMCommunicate request_size=4 [13:57:36]MH_SAM_APDU [13:57:36]CAPDU: 80 13 01 00 [13:57:36]Write to MH i2c: E2 08 00 3C 02 80 13 01 00 00 00 00 00 BB [13:57:36]Write i2c OK [13:57:36]MH_I2C_Read... [13:57:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:57:37]Read from MH i2c: E2 [13:57:37]MH_I2C_Read... [13:57:37]Read from MH i2c: E2 0E 00 [13:57:37]MH_I2C_Read... [13:57:37]Read from MH i2c: E2 0E 00 3C 02 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 CE [13:57:37]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [13:57:37]wFMCommunicate OK [13:57:37]SAM_PROTO_GetShiftState done [13:57:37]FM_GetShiftState done [13:57:37]opened in 1718929509 [13:57:37]opened+sec_in_day 1719015909 [13:57:37]quantity*price = 465570 [13:57:37]sum+1 = 465571 [13:57:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.70 ИТОГО: 4655.00 Внесено: 5000.00 СДАЧА: 345.00 НСП 1% : 41.20 НДС 12% : 494.41 Наличными: 4655.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 101 21.06.2024 13:57 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104178 ФПД: 77881192378798 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T135738&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104178&fm=77881192378798&tin=02508201610067®Number=0000000000092785&sum=465500 [13:57:38]StoreToDocumentArchive [13:57:38]shift 355 fd 104178 [13:57:38]save to /storage/0355/doc_00104178 [13:57:38]save last doc name /storage/0355/doc_00104178 to /storage/kkm_last_doc_name [13:57:38]save OK [13:57:38]Clear old archive folders... [13:57:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:57:38]tlvbuf is 00363370 [13:57:38]SAM_PROTO_ClearQueue [13:57:38]wFMCommunicate request_size=4 [13:57:38]MH_SAM_APDU [13:57:38]CAPDU: 80 09 00 00 [13:57:38]Write to MH i2c: E2 08 00 49 02 80 09 00 00 00 00 00 00 BD [13:57:38]Write i2c OK [13:57:38]MH_I2C_Read... [13:57:38]Read from MH i2c: E2 [13:57:38]MH_I2C_Read... [13:57:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:57:38]Read from MH i2c: E2 03 00 [13:57:38]MH_I2C_Read... [13:57:38]Read from MH i2c: E2 03 00 49 02 00 90 00 BF [13:57:38]RAPDU: 90 00 [13:57:38]wFMCommunicate OK [13:57:38]SAM_PROTO_ClearQueue done [13:57:38]KKMCreateOFDPacket [13:57:38]OFDProtocolAddRootSTLVToBuf [13:57:38]FM_MakeSignedData [13:57:38]FM_MakeSignedData [13:57:38]SAM_PROTO_SignData [13:57:38]wFMCommunicate request_size=4 [13:57:38]MH_SAM_APDU [13:57:38]CAPDU: 80 0D 01 02 [13:57:38]Write to MH i2c: E2 08 00 4A 02 80 0D 01 02 00 00 00 00 C5 [13:57:38]Write i2c OK [13:57:38]MH_I2C_Read... [13:57:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:57:38]Read from MH i2c: E2 [13:57:38]MH_I2C_Read... [13:57:38]Read from MH i2c: E2 03 00 [13:57:38]MH_I2C_Read... [13:57:38]Read from MH i2c: E2 03 00 4A 02 00 90 00 C0 [13:57:38]RAPDU: 90 00 [13:57:38]wFMCommunicate OK [13:57:38]wFMCommunicate request_size=255 [13:57:38]MH_SAM_APDU [13:57: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 18 F6 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 A2 1A 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 1A 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 18 10 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 C1 00 00 00 00 07 04 06 00 5C 1A 07 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 D2 86 75 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 F2 96 01 00 35 04 06 00 46 [13:57:38]Write to MH i2c: E2 02 01 4B 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 18 F6 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 A2 1A 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 1A 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 18 10 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 C1 00 00 00 00 07 04 06 00 5C 1A 07 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 D2 86 75 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 F2 96 01 00 35 04 06 00 46 00 00 73 [13:57:38]Write i2c OK [13:57:38]MH_I2C_Read... [13:57:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:57:38]Read from MH i2c: E2 [13:57:38]MH_I2C_Read... [13:57:38]Read from MH i2c: E2 03 00 [13:57:38]MH_I2C_Read... [13:57:38]Read from MH i2c: E2 03 00 4B 02 00 90 00 C1 [13:57:38]RAPDU: 90 00 [13:57:38]wFMCommunicate OK [13:57:38]wFMCommunicate request_size=10 [13:57:38]MH_SAM_APDU [13:57:38]CAPDU: 80 0D 02 02 05 D5 20 CE 71 AE [13:57:38]Write to MH i2c: E2 0D 00 4C 02 80 0D 02 02 05 00 D5 20 CE 71 AE 00 00 B4 [13:57:38]Write i2c OK [13:57:38]MH_I2C_Read... [13:57:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:57:38]Read from MH i2c: E2 [13:57:38]MH_I2C_Read... [13:57:38]Read from MH i2c: E2 03 00 [13:57:38]MH_I2C_Read... [13:57:38]Read from MH i2c: E2 03 00 4C 02 00 90 00 C2 [13:57:38]RAPDU: 90 00 [13:57:38]wFMCommunicate OK [13:57:38]wFMCommunicate request_size=4 [13:57:38]MH_SAM_APDU [13:57:38]CAPDU: 80 0D 03 02 [13:57:38]Write to MH i2c: E2 08 00 4D 02 80 0D 03 02 00 00 00 00 CA [13:57:38]Write i2c OK [13:57:38]MH_I2C_Read... [13:57:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:57:38]Read from MH i2c: E2 [13:57:38]MH_I2C_Read... [13:57:38]Read from MH i2c: E2 0B 00 [13:57:38]MH_I2C_Read... [13:57:38]Read from MH i2c: E2 0B 00 4D 02 00 2C 36 EF C6 B9 69 52 53 90 00 A9 [13:57:38]RAPDU: 2C 36 EF C6 B9 69 52 53 90 00 [13:57:38]wFMCommunicate OK [13:57:38]SAM_PROTO_SignData done [13:57:38]FM_MakeSignedData done [13:57:38]CreateOFDProtocolMessage [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 4E 02 80 11 00 00 00 00 00 00 CA [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 4E 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 1D [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]CreateOFDProtocolMessage done [13:57:38]OFDSenderStorePacket 104178 [13:57:38]StoreOFDPacket docnum=104178 [13:57: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 41 AF 07 01 6E A3 5A 03 01 00 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 18 F6 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 A2 1A 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 1A 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 18 10 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 C1 00 00 00 00 07 04 06 00 5C 1A 07 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 D2 86 75 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 F2 96 01 00 35 04 06 00 46 D5 20 CE 71 AE 2C 36 EF C6 B9 69 52 53 [13:57:38]CheckFolder [13:57:38]dirname=/storage/ofd_packets [13:57:38]CheckFolder done [13:57:38]ProducePacketName [13:57:38]name=ofd_packets/00104178 [13:57:38]NVStorageSaveData ofd_packets/00104178 [13:57:38]File name is /storage/ofd_packets/00104178 [13:57:38]Write 301 bytes [13:57:38]NVStorageSaveData done [13:57:38]OFDSenderStorePacket done [13:57:38]KKMCreateOFDPacket done [13:57:38]NVStorageSaveData kkm_last_timestamp [13:57:38]File name is /storage/kkm_last_timestamp [13:57:38]Write 4 bytes [13:57:38]NVStorageSaveData done [13:57:38]ExternCall_PrintAddStr [13:57:38]wPrintStart [13:57:38]Write to MH i2c: 01 00 00 4F 02 51 [13:57:38]Write i2c OK [13:57:38]MH_I2C_Read... [13:57:38]Read from MH i2c: 01 [13:57:38]MH_I2C_Read... [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 4F 02 00 00 00 00 00 FF 0F 66 [13:57:38]RasterBufferAndPrint [13:57:38]line Счет N : (1)673611 [13:57:38]line ИНН: 02508201610067 [13:57:38]line Контрольно-Кассовый Чек [13:57:38]line ПРОДАЖА [13:57:38]line ТРК (МРК, ГНК) : 41 [13:57:38]line Товар: 2710124500 [13:57:38]line Аи-95-К-5 [13:57:38]line 63.000 * 73.90 [13:57:38]line = 4655.70 [13:57:38]line НДС 12% НСП 1% [13:57:38]line > о реализуемом товаре [13:57:38]line ОКРУГЛЕНИЕ: -0.70 [13:57:38]line ИТОГО: 4655.00 [13:57:38]line Внесено: 5000.00 [13:57:38]line СДАЧА: 345.00 [13:57:38]line НСП 1% : 41.20 [13:57:38]line НДС 12% : 494.41 [13:57:38]line Наличными: 4655.00 [13:57:38]line Безнал.: 0.00 [13:57:38]line Место: АЗС № 120 "Партнер Нефть" [13:57:38]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [13:57:38]line СНО: Общий режим [13:57:38]line Чек 101 21.06.2024 13:57 [13:57:38]line Смена: 355 ФФД: 1.0 [13:57:38]line ЗНМ: 0300000164 [13:57:38]line РНМ: 0000000000092785 [13:57:38]line Версия ККМ: 001 [13:57:38]line ФМ: 0000000000875093 [13:57:38]line ФД: 104178 [13:57:38]line ФПД: 77881192378798 [13:57:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T135738&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104178&fm=77881192378798&tin=02508201610067®Number=0000000000092785&sum=465500 [13:57:38]OFD Sender: Processing packet 104178 [packets to send 17, broken 16] [13:57:38]ProducePacketName [13:57:38]name=ofd_packets/00104178 [13:57:38]OFD Sender: To server: pG, [13:57:38]CommunicateWithHost lk.salyk.kg:30040 [13:57:38]ConnectInit lk.salyk.kg [13:57:38]written 0, free lines is 4095 [13:57:39]Connected sock=10 [13:57: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 41 AF 07 01 6E A3 5A 03 01 00 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 18 F6 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 A2 1A 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 1A 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 18 10 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 C1 00 00 00 00 07 04 06 00 5C 1A 07 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 D2 86 75 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 F2 96 01 00 35 04 06 00 46 D5 20 CE 71 AE 2C 36 EF C6 B9 69 52 53 [13:57: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 86 8A 47 00 6E 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 F2 96 01 00 F4 03 04 00 54 2D 75 66 B6 04 01 00 00 57 D0 F2 26 8C 10 87 8C [13:57:39]CommunicateWithHost err = 0 [13:57:39]CheckOFDResponse [13:57:39]1017 (14) - 77093643461234 [13:57:39]1041 (16) - 0000000000875093 [13:57:39]1040 (4) - 104178 [13:57:39]1012 (4) - 21.06.2024 07:35 [13:57:39]1206 (1) - 0 [13:57:39]OFD Sender: Remove packet 104178 [13:57:39]ProducePacketName [13:57:39]name=ofd_packets/00104178 [13:57:39]NVStorageDeleteData [13:57:39]Write to MH i2c: 01 00 00 7A 02 7C [13:57:39]Write i2c OK [13:57:39]MH_I2C_Read... [13:57:39]Read from MH i2c: 01 [13:57:39]MH_I2C_Read... [13:57:39]Read from MH i2c: 01 07 00 [13:57:39]MH_I2C_Read... [13:57:39]Read from MH i2c: 01 07 00 7A 02 00 00 00 00 00 EA 0C 79 [13:57:39]RasterBufferAndPrint [13:57:39]line [13:57:39]line [13:57:39]line [13:57:39]line [13:57:39]line [13:57:39]written 0, free lines is 3312 [13:57:39]MH_Cut [13:57:39]Write to MH i2c: D1 01 00 81 02 01 55 [13:57:39]Write i2c OK [13:57:39]MH_I2C_Read... [13:57:39]Read from MH i2c: D1 [13:57:39]MH_I2C_Read... [13:57:39]Read from MH i2c: D1 01 00 [13:57:39]MH_I2C_Read... [13:57:39]Read from MH i2c: D1 01 00 81 02 00 54 [13:57:39]Write to MH i2c: 01 00 00 82 02 84 [13:57:39]Write i2c OK [13:57:39]MH_I2C_Read... [13:57:39]OFD Sender: No OFD packet to send [13:57:40]*** Cut start [13:57:40]*** Partial cut [13:57:40]*** CUTSNS_PIN = 1 [13:57:40]*** CUTSNS_PIN = 0 [13:57:40]*** Brake cut motor [13:57:40]Read from MH i2c: 01 [13:57:40]MH_I2C_Read... [13:57:40]*** Stop cut motor [13:57:40]*** Cut end [13:57:40]Read from MH i2c: 01 07 00 [13:57:40]MH_I2C_Read... [13:57:40]Read from MH i2c: 01 07 00 82 02 00 00 00 00 00 FF 0F 99 [13:57:40]process_action close_receipt done [13:57:40]requested_data is exist [13:57:40]produce_requested_data [13:57:40]requested_item fm.sn is exist - process it [13:57:40]wFMCommunicate request_size=4 [13:57:40]MH_SAM_APDU [13:57:40]CAPDU: 80 11 00 00 [13:57:40]Write to MH i2c: E2 08 00 83 02 80 11 00 00 00 00 00 00 FF [13:57:40]Write i2c OK [13:57:40]MH_I2C_Read... [13:57:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:57:40]Read from MH i2c: E2 [13:57:40]MH_I2C_Read... [13:57:40]Read from MH i2c: E2 17 00 [13:57:40]MH_I2C_Read... [13:57:40]Read from MH i2c: E2 17 00 83 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 52 [13:57:40]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:40]wFMCommunicate OK [13:57:40]requested_item fd.num is exist - process it [13:57:40]SAM_PROTO_GetFieldsCounters [13:57:40]wFMCommunicate request_size=4 [13:57:40]MH_SAM_APDU [13:57:40]CAPDU: 80 13 00 00 [13:57:40]Write to MH i2c: E2 08 00 84 02 80 13 00 00 00 00 00 00 02 [13:57:40]Write i2c OK [13:57:40]MH_I2C_Read... [13:57:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:57:40]Read from MH i2c: E2 [13:57:40]MH_I2C_Read... [13:57:40]Read from MH i2c: E2 62 00 [13:57:40]MH_I2C_Read... [13:57:40]Read from MH i2c: E2 62 00 84 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 F2 96 01 00 0E 04 04 00 63 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 45 [13:57: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 F2 96 01 00 0E 04 04 00 63 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:57:40]wFMCommunicate OK [13:57:40]SAM_PROTO_GetFieldsCounters done [13:57:40]requested_item shift.num is exist - process it [13:57:40]requested_item shift.opened is exist - process it [13:57:40]req_shift_opened [13:57:40]FM_GetShiftState [13:57:40]SAM_PROTO_GetShiftState [13:57:40]wFMCommunicate request_size=4 [13:57:40]MH_SAM_APDU [13:57:40]CAPDU: 80 13 01 00 [13:57:40]Write to MH i2c: E2 08 00 85 02 80 13 01 00 00 00 00 00 04 [13:57:40]Write i2c OK [13:57:40]MH_I2C_Read... [13:57:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:57:41]Read from MH i2c: E2 [13:57:41]MH_I2C_Read... [13:57:41]Read from MH i2c: E2 0E 00 [13:57:41]MH_I2C_Read... [13:57:41]Read from MH i2c: E2 0E 00 85 02 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 17 [13:57:41]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [13:57:41]wFMCommunicate OK [13:57:41]SAM_PROTO_GetShiftState done [13:57:41]FM_GetShiftState done [13:57:41]req_shift_opened done [13:57:41]requested_item shift.open_date is exist - process it [13:57:41]req_shift_open_date [13:57:41]req_shift_open_date done [13:57:41]produce_requested_data done [13:57:41]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104178,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [13:57:41]process_action_free close_receipt [13:57:41]json_value_free [13:57:41]json_value_free done [13:57:41]process_json_proto returns [13:57:41]Send response to host [13:57:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104178,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [13:57:41]free response buf [13:57:41]execute_script done [13:57:41]execute_script returns [13:57:41]free content buf [13:57:41]Sock 8.Close socket [13:57:41]Sock 8.Thread stoped [13:57:44]OFD Sender: No OFD packet to send [13:57:49]OFD Sender: No OFD packet to send [13:57:54]OFD Sender: No OFD packet to send [13:57:59]OFD Sender: No OFD packet to send [13:58:04]OFD Sender: No OFD packet to send [13:58:09]OFD Sender: No OFD packet to send [13:58:14]OFD Sender: No OFD packet to send [13:58:19]OFD Sender: No OFD packet to send [13:58:24]OFD Sender: No OFD packet to send [13:58:29]OFD Sender: No OFD packet to send [13:58:34]OFD Sender: No OFD packet to send [13:58:39]OFD Sender: No OFD packet to send [13:58:44]OFD Sender: No OFD packet to send [13:58:49]OFD Sender: No OFD packet to send [13:58:54]OFD Sender: No OFD packet to send [13:58:59]OFD Sender: No OFD packet to send [13:59:04]OFD Sender: No OFD packet to send [13:59:09]OFD Sender: No OFD packet to send [13:59:14]OFD Sender: No OFD packet to send [13:59:19]OFD Sender: No OFD packet to send [13:59:24]OFD Sender: No OFD packet to send [13:59:29]OFD Sender: No OFD packet to send [13:59:34]OFD Sender: No OFD packet to send [13:59:39]OFD Sender: No OFD packet to send [13:59:44]OFD Sender: No OFD packet to send [13:59:49]OFD Sender: No OFD packet to send [13:59:52]accept exits with 9 [13:59:52]New connection [13:59:52]New thread 3066494308 created [13:59:52]Thread 3066637668 joined [13:59:52]Waiting for new connection... [13:59:52] Sock 9.Parse request [13:59:52]Sock 9.Check first char [13:59:52]Sock 9.First char is OK [13:59:52]request: POST /json_proto HTTP/1.0 [13:59:52]Method: POST [13:59:52]URL: /json_proto [13:59:52]Method is POST - this is cgi request [13:59:52]url: /json_proto [13:59:52]query_string will be loaded in cgi processing [13:59:52]execute_cgi json_proto POST (null) [13:59:52]execute_cgi path=json_proto method=POST [13:59:52]POST find Content-Length [13:59:52]Host: 172.17.38.133:8080 [13:59:52]Content-Length: 677 [13:59:52]Content-Type: application/json [13:59:52] [13:59:52]POST finish read [13:59:52]Found Content-Length = 677 [13:59:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673612", "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" ] } } [13:59:52]execute_script... [13:59: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)673612", "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" ] } } [13:59:52]POST & json_proto [13:59:52]process_json_proto [13:59:52]json parsed OK: [13:59:52]protocol is kg_v1.0 [13:59:52]action value=close_receipt [13:59:52]process_action close_receipt [13:59:52]cmd_close_receipt [13:59:52]MH_GetDate [13:59:52]Write to MH i2c: F0 00 00 86 02 77 [13:59:52]Write i2c OK [13:59:52]MH_I2C_Read... [13:59:52]Read from MH i2c: F0 [13:59:52]MH_I2C_Read... [13:59:52]Read from MH i2c: F0 09 00 [13:59:52]MH_I2C_Read... [13:59:52]Read from MH i2c: F0 09 00 86 02 00 59 87 75 66 BD 8F 7C 64 67 [13:59:52]GetLastDocTimeStamp 1718978258 [13:59:52]current date 1718978393 [13:59:52]FM_GetShiftState [13:59:52]SAM_PROTO_GetShiftState [13:59:52]wFMCommunicate request_size=4 [13:59:52]MH_SAM_APDU [13:59:52]CAPDU: 80 13 01 00 [13:59:52]Write to MH i2c: E2 08 00 87 02 80 13 01 00 00 00 00 00 06 [13:59:52]Write i2c OK [13:59:52]MH_I2C_Read... [13:59:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:59:52]Read from MH i2c: E2 [13:59:52]MH_I2C_Read... [13:59:52]Read from MH i2c: E2 0E 00 [13:59:52]MH_I2C_Read... [13:59:52]Read from MH i2c: E2 0E 00 87 02 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 19 [13:59:52]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [13:59:52]wFMCommunicate OK [13:59:52]SAM_PROTO_GetShiftState done [13:59:52]FM_GetShiftState done [13:59:52]opened in 1718929509 [13:59:52]opened+sec_in_day 1719015909 [13:59:52]quantity*price = 65005 [13:59:52]sum+1 = 65007 [13:59:52]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 СНО: Общий режим Чек 102 21.06.2024 13:59 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104179 ФПД: 46300863516505 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T135953&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104179&fm=46300863516505&tin=02508201610067®Number=0000000000092785&sum=65000 [13:59:53]StoreToDocumentArchive [13:59:53]shift 355 fd 104179 [13:59:53]save to /storage/0355/doc_00104179 [13:59:53]save last doc name /storage/0355/doc_00104179 to /storage/kkm_last_doc_name [13:59:53]save OK [13:59:53]Clear old archive folders... [13:59:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:59:53]tlvbuf is 003755D0 [13:59:53]SAM_PROTO_ClearQueue [13:59:53]wFMCommunicate request_size=4 [13:59:53]MH_SAM_APDU [13:59:53]CAPDU: 80 09 00 00 [13:59:53]Write to MH i2c: E2 08 00 94 02 80 09 00 00 00 00 00 00 08 [13:59:53]Write i2c OK [13:59:53]MH_I2C_Read... [13:59:53]Read from MH i2c: E2 [13:59:53]MH_I2C_Read... [13:59:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:59:53]Read from MH i2c: E2 03 00 [13:59:53]MH_I2C_Read... [13:59:53]Read from MH i2c: E2 03 00 94 02 00 90 00 0A [13:59:53]RAPDU: 90 00 [13:59:53]wFMCommunicate OK [13:59:53]SAM_PROTO_ClearQueue done [13:59:53]KKMCreateOFDPacket [13:59:53]OFDProtocolAddRootSTLVToBuf [13:59:53]FM_MakeSignedData [13:59:53]FM_MakeSignedData [13:59:53]SAM_PROTO_SignData [13:59:53]wFMCommunicate request_size=4 [13:59:53]MH_SAM_APDU [13:59:53]CAPDU: 80 0D 01 02 [13:59:53]Write to MH i2c: E2 08 00 95 02 80 0D 01 02 00 00 00 00 10 [13:59:53]Write i2c OK [13:59:53]MH_I2C_Read... [13:59:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:59:53]Read from MH i2c: E2 [13:59:53]MH_I2C_Read... [13:59:53]Read from MH i2c: E2 03 00 [13:59:53]MH_I2C_Read... [13:59:53]Read from MH i2c: E2 03 00 95 02 00 90 00 0B [13:59:53]RAPDU: 90 00 [13:59:53]wFMCommunicate OK [13:59:53]wFMCommunicate request_size=255 [13:59:53]MH_SAM_APDU [13:59: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 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 66 00 00 00 F4 03 04 00 59 87 75 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 F3 96 01 00 35 04 06 00 2A [13:59:53]Write to MH i2c: E2 02 01 96 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 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 66 00 00 00 F4 03 04 00 59 87 75 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 F3 96 01 00 35 04 06 00 2A 00 00 CD [13:59:53]Write i2c OK [13:59:53]MH_I2C_Read... [13:59:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:59:53]Read from MH i2c: E2 [13:59:53]MH_I2C_Read... [13:59:53]Read from MH i2c: E2 03 00 [13:59:53]MH_I2C_Read... [13:59:53]Read from MH i2c: E2 03 00 96 02 00 90 00 0C [13:59:53]RAPDU: 90 00 [13:59:53]wFMCommunicate OK [13:59:53]wFMCommunicate request_size=10 [13:59:53]MH_SAM_APDU [13:59:53]CAPDU: 80 0D 02 02 05 1C 42 85 CF 59 [13:59:53]Write to MH i2c: E2 0D 00 97 02 80 0D 02 02 05 00 1C 42 85 CF 59 00 00 28 [13:59:53]Write i2c OK [13:59:53]MH_I2C_Read... [13:59:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:59:54]Read from MH i2c: E2 [13:59:54]MH_I2C_Read... [13:59:54]Read from MH i2c: E2 03 00 [13:59:54]MH_I2C_Read... [13:59:54]Read from MH i2c: E2 03 00 97 02 00 90 00 0D [13:59:54]RAPDU: 90 00 [13:59:54]wFMCommunicate OK [13:59:54]wFMCommunicate request_size=4 [13:59:54]MH_SAM_APDU [13:59:54]CAPDU: 80 0D 03 02 [13:59:54]Write to MH i2c: E2 08 00 98 02 80 0D 03 02 00 00 00 00 15 [13:59:54]Write i2c OK [13:59:54]MH_I2C_Read... [13:59:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:59:54]Read from MH i2c: E2 [13:59:54]MH_I2C_Read... [13:59:54]Read from MH i2c: E2 0B 00 [13:59:54]MH_I2C_Read... [13:59:54]Read from MH i2c: E2 0B 00 98 02 00 77 CB 09 2C 2D BC 33 97 90 00 40 [13:59:54]RAPDU: 77 CB 09 2C 2D BC 33 97 90 00 [13:59:54]wFMCommunicate OK [13:59:54]SAM_PROTO_SignData done [13:59:54]FM_MakeSignedData done [13:59:54]CreateOFDProtocolMessage [13:59:54]wFMCommunicate request_size=4 [13:59:54]MH_SAM_APDU [13:59:54]CAPDU: 80 11 00 00 [13:59:54]Write to MH i2c: E2 08 00 99 02 80 11 00 00 00 00 00 00 15 [13:59:54]Write i2c OK [13:59:54]MH_I2C_Read... [13:59:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:59:54]Read from MH i2c: E2 [13:59:54]MH_I2C_Read... [13:59:54]Read from MH i2c: E2 17 00 [13:59:54]MH_I2C_Read... [13:59:54]Read from MH i2c: E2 17 00 99 02 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:59: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:59:54]wFMCommunicate OK [13:59:54]CreateOFDProtocolMessage done [13:59:54]OFDSenderStorePacket 104179 [13:59:54]StoreOFDPacket docnum=104179 [13:59: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 60 3C 07 01 36 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 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 66 00 00 00 F4 03 04 00 59 87 75 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 F3 96 01 00 35 04 06 00 2A 1C 42 85 CF 59 77 CB 09 2C 2D BC 33 97 [13:59:54]CheckFolder [13:59:54]dirname=/storage/ofd_packets [13:59:54]CheckFolder done [13:59:54]ProducePacketName [13:59:54]name=ofd_packets/00104179 [13:59:54]NVStorageSaveData ofd_packets/00104179 [13:59:54]File name is /storage/ofd_packets/00104179 [13:59:54]Write 301 bytes [13:59:54]NVStorageSaveData done [13:59:54]OFDSenderStorePacket done [13:59:54]KKMCreateOFDPacket done [13:59:54]NVStorageSaveData kkm_last_timestamp [13:59:54]File name is /storage/kkm_last_timestamp [13:59:54]Write 4 bytes [13:59:54]NVStorageSaveData done [13:59:54]ExternCall_PrintAddStr [13:59:54]wPrintStart [13:59:54]Write to MH i2c: 01 00 00 9A 02 9C [13:59:54]Write i2c OK [13:59:54]MH_I2C_Read... [13:59:54]Read from MH i2c: 01 [13:59:54]MH_I2C_Read... [13:59:54]Read from MH i2c: 01 07 00 [13:59:54]MH_I2C_Read... [13:59:54]Read from MH i2c: 01 07 00 9A 02 00 00 00 00 00 FF 0F B1 [13:59:54]RasterBufferAndPrint [13:59:54]line Счет N : (1)673612 [13:59:54]line ИНН: 02508201610067 [13:59:54]line Контрольно-Кассовый Чек [13:59:54]line ПРОДАЖА [13:59:54]line ТРК (МРК, ГНК) : 32 [13:59:54]line Товар: 2710124130 [13:59:54]line Аи-92-К-5 [13:59:54]line 9.790 * 66.40 [13:59:54]line = 650.06 [13:59:54]line НДС 12% НСП 1% [13:59:54]line > о реализуемом товаре [13:59:54]line ОКРУГЛЕНИЕ: -0.06 [13:59:54]line ИТОГО: 650.00 [13:59:54]line Внесено: 650.00 [13:59:54]line СДАЧА: 0.00 [13:59:54]line НСП 1% : 5.75 [13:59:54]line НДС 12% : 69.03 [13:59:54]line Наличными: 650.00 [13:59:54]line Безнал.: 0.00 [13:59:54]line Место: АЗС № 120 "Партнер Нефть" [13:59:54]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [13:59:54]line СНО: Общий режим [13:59:54]line Чек 102 21.06.2024 13:59 [13:59:54]line Смена: 355 ФФД: 1.0 [13:59:54]line ЗНМ: 0300000164 [13:59:54]line РНМ: 0000000000092785 [13:59:54]line Версия ККМ: 001 [13:59:54]line ФМ: 0000000000875093 [13:59:54]line ФД: 104179 [13:59:54]line ФПД: 46300863516505 [13:59:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T135953&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104179&fm=46300863516505&tin=02508201610067®Number=0000000000092785&sum=65000 [13:59:54]written 0, free lines is 4095 [13:59:54]OFD Sender: Processing packet 104179 [packets to send 17, broken 16] [13:59:54]ProducePacketName [13:59:54]name=ofd_packets/00104179 [13:59:54]OFD Sender: To server: pG, [13:59:54]CommunicateWithHost lk.salyk.kg:30040 [13:59:54]ConnectInit lk.salyk.kg [13:59:54]Connected sock=11 [13:59:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 60 3C 07 01 36 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 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 66 00 00 00 F4 03 04 00 59 87 75 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 F3 96 01 00 35 04 06 00 2A 1C 42 85 CF 59 77 CB 09 2C 2D BC 33 97 [13:59:54]Write to MH i2c: 01 00 00 C5 02 C7 [13:59:54]Write i2c OK [13:59:54]MH_I2C_Read... [13:59:54]Read from MH i2c: 01 [13:59:54]MH_I2C_Read... [13:59:54]Read from MH i2c: 01 07 00 [13:59:54]MH_I2C_Read... [13:59:54]Read from MH i2c: 01 07 00 C5 02 00 00 00 00 00 EE 0C C8 [13:59:54]RasterBufferAndPrint [13:59:54]line [13:59:54]line [13:59:54]line [13:59:54]line [13:59:54]line [13:59:54]written 0, free lines is 3316 [13:59:54]MH_Cut [13:59:54]Write to MH i2c: D1 01 00 CC 02 01 A0 [13:59:54]Write i2c OK [13:59:54]MH_I2C_Read... [13:59:54]Read from MH i2c: D1 [13:59:54]MH_I2C_Read... [13:59:54]Read from MH i2c: D1 01 00 [13:59:54]MH_I2C_Read... [13:59:54]Read from MH i2c: D1 01 00 CC 02 00 9F [13:59:54]Write to MH i2c: 01 00 00 CD 02 CF [13:59:54]Write i2c OK [13:59:54]MH_I2C_Read... [13:59: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 CC 66 47 00 40 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 F3 96 01 00 F4 03 04 00 DB 2D 75 66 B6 04 01 00 00 FB 2F BC 6E 92 10 93 D6 [13:59:54]CommunicateWithHost err = 0 [13:59:54]CheckOFDResponse [13:59:54]1017 (14) - 77093643461234 [13:59:54]1041 (16) - 0000000000875093 [13:59:54]1040 (4) - 104179 [13:59:54]1012 (4) - 21.06.2024 07:38 [13:59:54]1206 (1) - 0 [13:59:54]OFD Sender: Remove packet 104179 [13:59:54]ProducePacketName [13:59:54]name=ofd_packets/00104179 [13:59:54]NVStorageDeleteData [13:59:55]OFD Sender: No OFD packet to send [13:59:55]*** Cut start [13:59:55]*** Partial cut [13:59:55]*** CUTSNS_PIN = 1 [13:59:55]*** CUTSNS_PIN = 0 [13:59:55]*** Brake cut motor [13:59:56]Read from MH i2c: 01 [13:59:56]MH_I2C_Read... [13:59:56]*** Stop cut motor [13:59:56]*** Cut end [13:59:56]Read from MH i2c: 01 07 00 [13:59:56]MH_I2C_Read... [13:59:56]Read from MH i2c: 01 07 00 CD 02 00 00 00 00 00 FF 0F E4 [13:59:56]process_action close_receipt done [13:59:56]requested_data is exist [13:59:56]produce_requested_data [13:59:56]requested_item fm.sn is exist - process it [13:59:56]wFMCommunicate request_size=4 [13:59:56]MH_SAM_APDU [13:59:56]CAPDU: 80 11 00 00 [13:59:56]Write to MH i2c: E2 08 00 CE 02 80 11 00 00 00 00 00 00 4A [13:59:56]Write i2c OK [13:59:56]MH_I2C_Read... [13:59:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:59:56]Read from MH i2c: E2 [13:59:56]MH_I2C_Read... [13:59:56]Read from MH i2c: E2 17 00 [13:59:56]MH_I2C_Read... [13:59:56]Read from MH i2c: E2 17 00 CE 02 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:59:56]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:56]wFMCommunicate OK [13:59:56]requested_item fd.num is exist - process it [13:59:56]SAM_PROTO_GetFieldsCounters [13:59:56]wFMCommunicate request_size=4 [13:59:56]MH_SAM_APDU [13:59:56]CAPDU: 80 13 00 00 [13:59:56]Write to MH i2c: E2 08 00 CF 02 80 13 00 00 00 00 00 00 4D [13:59:56]Write i2c OK [13:59:56]MH_I2C_Read... [13:59:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:59:56]Read from MH i2c: E2 [13:59:56]MH_I2C_Read... [13:59:56]Read from MH i2c: E2 62 00 [13:59:56]MH_I2C_Read... [13:59:56]Read from MH i2c: E2 62 00 CF 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 F3 96 01 00 0E 04 04 00 63 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 94 [13:59: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 F3 96 01 00 0E 04 04 00 63 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:59:56]wFMCommunicate OK [13:59:56]SAM_PROTO_GetFieldsCounters done [13:59:56]requested_item shift.num is exist - process it [13:59:56]requested_item shift.opened is exist - process it [13:59:56]req_shift_opened [13:59:56]FM_GetShiftState [13:59:56]SAM_PROTO_GetShiftState [13:59:56]wFMCommunicate request_size=4 [13:59:56]MH_SAM_APDU [13:59:56]CAPDU: 80 13 01 00 [13:59:56]Write to MH i2c: E2 08 00 D0 02 80 13 01 00 00 00 00 00 4F [13:59:56]Write i2c OK [13:59:56]MH_I2C_Read... [13:59:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:59:56]Read from MH i2c: E2 [13:59:56]MH_I2C_Read... [13:59:56]Read from MH i2c: E2 0E 00 [13:59:56]MH_I2C_Read... [13:59:56]Read from MH i2c: E2 0E 00 D0 02 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 62 [13:59:56]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [13:59:56]wFMCommunicate OK [13:59:56]SAM_PROTO_GetShiftState done [13:59:56]FM_GetShiftState done [13:59:56]req_shift_opened done [13:59:56]requested_item shift.open_date is exist - process it [13:59:56]req_shift_open_date [13:59:56]req_shift_open_date done [13:59:56]produce_requested_data done [13:59:56]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104179,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [13:59:56]process_action_free close_receipt [13:59:56]json_value_free [13:59:56]json_value_free done [13:59:56]process_json_proto returns [13:59:56]Send response to host [13:59:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104179,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [13:59:56]free response buf [13:59:56]execute_script done [13:59:56]execute_script returns [13:59:56]free content buf [13:59:56]Sock 9.Close socket [13:59:56]Sock 9.Thread stoped [14:00:00]OFD Sender: No OFD packet to send [14:00:05]OFD Sender: No OFD packet to send [14:00:10]OFD Sender: No OFD packet to send [14:00:15]OFD Sender: No OFD packet to send [14:00:20]OFD Sender: No OFD packet to send [14:00:25]OFD Sender: No OFD packet to send [14:00:30]OFD Sender: No OFD packet to send [14:00:35]OFD Sender: No OFD packet to send [14:00:40]OFD Sender: No OFD packet to send [14:01:34]ConnectInit Can't connect to host [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:51]accept exits with 8 [14:01:51]New connection [14:01:51]New thread 3066637668 created [14:01:51]Thread 3066494308 joined [14:01:51]Waiting for new connection... [14:01:51] Sock 8.Parse request [14:01:51]Sock 8.Check first char [14:01:51]Sock 8.First char is OK [14:01:51]request: POST /json_proto HTTP/1.0 [14:01:51]Method: POST [14:01:51]URL: /json_proto [14:01:51]Method is POST - this is cgi request [14:01:51]url: /json_proto [14:01:51]query_string will be loaded in cgi processing [14:01:51]execute_cgi json_proto POST (null) [14:01:51]execute_cgi path=json_proto method=POST [14:01:51]POST find Content-Length [14:01:51]Host: 172.17.38.133:8080 [14:01:51]Content-Length: 682 [14:01:51]Content-Type: application/json [14:01:51] [14:01:51]POST finish read [14:01:51]Found Content-Length = 682 [14:01:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673613", "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 }]} ], "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:01:51]execute_script... [14:01: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)673613", "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 }]} ], "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:01:51]POST & json_proto [14:01:51]process_json_proto [14:01:51]json parsed OK: [14:01:51]protocol is kg_v1.0 [14:01:51]action value=close_receipt [14:01:51]process_action close_receipt [14:01:51]cmd_close_receipt [14:01:51]MH_GetDate [14:01:51]Write to MH i2c: F0 00 00 D1 02 C2 [14:01:51]Write i2c OK [14:01:51]MH_I2C_Read... [14:01:51]Read from MH i2c: F0 [14:01:51]MH_I2C_Read... [14:01:51]Read from MH i2c: F0 09 00 [14:01:51]MH_I2C_Read... [14:01:51]Read from MH i2c: F0 09 00 D1 02 00 D0 87 75 66 BD 8F 7C 64 29 [14:01:51]GetLastDocTimeStamp 1718978393 [14:01:51]current date 1718978512 [14:01:51]FM_GetShiftState [14:01:51]SAM_PROTO_GetShiftState [14:01:51]wFMCommunicate request_size=4 [14:01:51]MH_SAM_APDU [14:01:51]CAPDU: 80 13 01 00 [14:01:51]Write to MH i2c: E2 08 00 D2 02 80 13 01 00 00 00 00 00 51 [14:01:51]Write i2c OK [14:01:51]MH_I2C_Read... [14:01:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:01:51]Read from MH i2c: E2 [14:01:51]MH_I2C_Read... [14:01:51]Read from MH i2c: E2 0E 00 [14:01:51]MH_I2C_Read... [14:01:51]Read from MH i2c: E2 0E 00 D2 02 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 64 [14:01:51]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [14:01:51]wFMCommunicate OK [14:01:51]SAM_PROTO_GetShiftState done [14:01:51]FM_GetShiftState done [14:01:51]opened in 1718929509 [14:01:51]opened+sec_in_day 1719015909 [14:01:51]quantity*price = 100060 [14:01:51]sum+1 = 100062 [14:01:51]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре ИТОГО: 13500.35 НСП 1% : 119.47 НДС 12% : 1433.66 Наличными: 0.00 Безнал.: 13500.35 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 104 21.06.2024 14:16 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875093 ФД: 104181 ФПД: 32169259004699 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T141659&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104181&fm=32169259004699&tin=02508201610067®Number=0000000000092785&sum=1350035 [14:16:59]StoreToDocumentArchive [14:16:59]shift 355 fd 104181 [14:16:59]save to /storage/0355/doc_00104181 [14:16:59]save last doc name /storage/0355/doc_00104181 to /storage/kkm_last_doc_name [14:16:59]save OK [14:16:59]Clear old archive folders... [14:16:59]ProcessDocumentItem done err = 0, tmpTLVsize=252 [14:16:59]tlvbuf is 00940010 [14:16:59]SAM_PROTO_ClearQueue [14:16:59]wFMCommunicate request_size=4 [14:16:59]MH_SAM_APDU [14:16:59]CAPDU: 80 09 00 00 [14:16:59]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [14:16:59]Write i2c OK [14:16:59]MH_I2C_Read... [14:17:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:17:00]Read from MH i2c: E2 [14:17:00]MH_I2C_Read... [14:17:00]Read from MH i2c: E2 03 00 [14:17:00]MH_I2C_Read... [14:17:00]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [14:17:00]RAPDU: 90 00 [14:17:00]wFMCommunicate OK [14:17:00]SAM_PROTO_ClearQueue done [14:17:00]KKMCreateOFDPacket [14:17:00]OFDProtocolAddRootSTLVToBuf [14:17:00]FM_MakeSignedData [14:17:00]FM_MakeSignedData [14:17:00]SAM_PROTO_SignData [14:17:00]wFMCommunicate request_size=4 [14:17:00]MH_SAM_APDU [14:17:00]CAPDU: 80 0D 01 02 [14:17:00]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [14:17:00]Write i2c OK [14:17:00]MH_I2C_Read... [14:17:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:17:00]Read from MH i2c: E2 [14:17:00]MH_I2C_Read... [14:17:00]Read from MH i2c: E2 03 00 [14:17:00]MH_I2C_Read... [14:17:00]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [14:17:00]RAPDU: 90 00 [14:17:00]wFMCommunicate OK [14:17:00]wFMCommunicate request_size=255 [14:17:00]MH_SAM_APDU [14:17: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 66 D3 02 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 93 99 14 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 93 99 14 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AB 2E 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 06 30 02 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 93 99 14 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 5B 8B 75 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 F5 96 01 00 35 04 06 00 [14:17:00]Write to MH i2c: E2 02 01 2D 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 66 D3 02 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 93 99 14 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 93 99 14 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AB 2E 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 06 30 02 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 93 99 14 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 5B 8B 75 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 F5 96 01 00 35 04 06 00 00 00 AB [14:17:00]Write i2c OK [14:17:00]MH_I2C_Read... [14:17:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:17:00]Read from MH i2c: E2 [14:17:00]MH_I2C_Read... [14:17:00]Read from MH i2c: E2 03 00 [14:17:00]MH_I2C_Read... [14:17:00]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [14:17:00]RAPDU: 90 00 [14:17:00]wFMCommunicate OK [14:17:00]wFMCommunicate request_size=11 [14:17:00]MH_SAM_APDU [14:17:00]CAPDU: 80 0D 02 02 06 1D 41 FD 41 73 1B [14:17:00]Write to MH i2c: E2 0E 00 2E 00 80 0D 02 02 06 00 1D 41 FD 41 73 1B 00 00 DE [14:17:00]Write i2c OK [14:17:00]MH_I2C_Read... [14:17:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:17:00]Read from MH i2c: E2 [14:17:00]MH_I2C_Read... [14:17:00]Read from MH i2c: E2 03 00 [14:17:00]MH_I2C_Read... [14:17:00]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [14:17:00]RAPDU: 90 00 [14:17:00]wFMCommunicate OK [14:17:00]wFMCommunicate request_size=4 [14:17:00]MH_SAM_APDU [14:17:00]CAPDU: 80 0D 03 02 [14:17:00]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [14:17:00]Write i2c OK [14:17:00]MH_I2C_Read... [14:17:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:17:00]Read from MH i2c: E2 [14:17:00]MH_I2C_Read... [14:17:00]Read from MH i2c: E2 0B 00 [14:17:00]MH_I2C_Read... [14:17:00]Read from MH i2c: E2 0B 00 2F 00 00 A6 52 08 E8 79 8C D3 1E 90 00 89 [14:17:00]RAPDU: A6 52 08 E8 79 8C D3 1E 90 00 [14:17:00]wFMCommunicate OK [14:17:00]SAM_PROTO_SignData done [14:17:00]FM_MakeSignedData done [14:17:00]CreateOFDProtocolMessage [14:17:00]wFMCommunicate request_size=4 [14:17:00]MH_SAM_APDU [14:17:00]CAPDU: 80 11 00 00 [14:17:00]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [14:17:00]Write i2c OK [14:17:00]MH_I2C_Read... [14:17:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:17:00]Read from MH i2c: E2 [14:17:00]MH_I2C_Read... [14:17:00]Read from MH i2c: E2 17 00 [14:17:00]MH_I2C_Read... [14:17:00]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 FD [14:17:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [14:17:00]wFMCommunicate OK [14:17:00]CreateOFDProtocolMessage done [14:17:00]OFDSenderStorePacket 104181 [14:17:00]StoreOFDPacket docnum=104181 [14:17: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 F4 71 08 01 F7 57 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 D3 02 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 93 99 14 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 93 99 14 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AB 2E 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 06 30 02 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 93 99 14 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 5B 8B 75 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 F5 96 01 00 35 04 06 00 1D 41 FD 41 73 1B A6 52 08 E8 79 8C D3 1E [14:17:00]CheckFolder [14:17:00]dirname=/storage/ofd_packets [14:17:00]CheckFolder done [14:17:00]ProducePacketName [14:17:00]name=ofd_packets/00104181 [14:17:00]NVStorageSaveData ofd_packets/00104181 [14:17:00]File name is /storage/ofd_packets/00104181 [14:17:00]Write 302 bytes [14:17:00]NVStorageSaveData done [14:17:00]OFDSenderStorePacket done [14:17:00]KKMCreateOFDPacket done [14:17:00]NVStorageSaveData kkm_last_timestamp [14:17:00]File name is /storage/kkm_last_timestamp [14:17:00]Write 4 bytes [14:17:00]NVStorageSaveData done [14:17:00]ExternCall_PrintAddStr [14:17:00]wPrintStart [14:17:00]Write to MH i2c: 01 00 00 31 00 31 [14:17:00]Write i2c OK [14:17:00]MH_I2C_Read... [14:17:00]Read from MH i2c: 01 [14:17:00]MH_I2C_Read... [14:17:00]Read from MH i2c: 01 07 00 [14:17:00]MH_I2C_Read... [14:17:00]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [14:17:00]RasterBufferAndPrint [14:17:00]line Счет N : (1)673614 [14:17:00]line ИНН: 02508201610067 [14:17:01]line Контрольно-Кассовый Чек [14:17:01]line ПРОДАЖА [14:17:01]line ТРК (МРК, ГНК) : 11 [14:17:01]line Товар: 2710194210 [14:17:01]line ДТ(л)-К-5 [14:17:01]line 185.190 * 72.90 [14:17:01]line = 13500.35 [14:17:01]line НДС 12% НСП 1% [14:17:01]line > о реализуемом товаре [14:17:01]line ИТОГО: 13500.35 [14:17:01]line НСП 1% : 119.47 [14:17:01]line НДС 12% : 1433.66 [14:17:01]line Наличными: 0.00 [14:17:01]line Безнал.: 13500.35 [14:17:01]line Место: АЗС № 120 "Партнер Нефть" [14:17:01]OFD Sender: Processing packet 104181 [packets to send 17, broken 16] [14:17:01]ProducePacketName [14:17:01]name=ofd_packets/00104181 [14:17:01]OFD Sender: To server: pG, [14:17:01]CommunicateWithHost lk.salyk.kg:30040 [14:17:01]ConnectInit lk.salyk.kg [14:17:01]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [14:17:01]line СНО: Общий режим [14:17:01]line Чек 104 21.06.2024 14:16 [14:17:01]line Смена: 355 ФФД: 1.0 [14:17:01]line ЗНМ: 0300000164 [14:17:01]line РНМ: 0000000000092785 [14:17:01]line Версия ККМ: 001 [14:17:01]line Платежная система: O! деньги [14:17:01]line ФМ: 0000000000875093 [14:17:01]line ФД: 104181 [14:17:01]line ФПД: 32169259004699 [14:17:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T141659&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104181&fm=32169259004699&tin=02508201610067®Number=0000000000092785&sum=1350035 [14:17:01]written 0, free lines is 4095 [14:17:01]Connected sock=10 [14:17:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 F4 71 08 01 F7 57 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 D3 02 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 93 99 14 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 93 99 14 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AB 2E 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 06 30 02 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 93 99 14 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 5B 8B 75 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 F5 96 01 00 35 04 06 00 1D 41 FD 41 73 1B A6 52 08 E8 79 8C D3 1E [14:17:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 C8 26 47 00 5F 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 F5 96 01 00 F4 03 04 00 DE 31 75 66 B6 04 01 00 00 7D 9B 00 D6 1B 9D 21 27 [14:17:01]CommunicateWithHost err = 0 [14:17:01]CheckOFDResponse [14:17:01]1017 (14) - 77093643461234 [14:17:01]1041 (16) - 0000000000875093 [14:17:01]1040 (4) - 104181 [14:17:01]1012 (4) - 21.06.2024 07:55 [14:17:01]1206 (1) - 0 [14:17:01]OFD Sender: Remove packet 104181 [14:17:01]ProducePacketName [14:17:01]name=ofd_packets/00104181 [14:17:01]NVStorageDeleteData [14:17:01]Write to MH i2c: 01 00 00 5B 00 5B [14:17:01]Write i2c OK [14:17:01]MH_I2C_Read... [14:17:01]Read from MH i2c: 01 [14:17:01]MH_I2C_Read... [14:17:01]Read from MH i2c: 01 07 00 [14:17:01]MH_I2C_Read... [14:17:01]Read from MH i2c: 01 07 00 5B 00 00 00 00 00 00 14 0D 83 [14:17:01]RasterBufferAndPrint [14:17:01]line [14:17:01]line [14:17:01]line [14:17:01]line [14:17:01]line [14:17:01]written 0, free lines is 3367 [14:17:01]MH_Cut [14:17:01]Write to MH i2c: D1 01 00 62 00 01 34 [14:17:01]Write i2c OK [14:17:01]MH_I2C_Read... [14:17:01]Read from MH i2c: D1 [14:17:01]MH_I2C_Read... [14:17:01]Read from MH i2c: D1 01 00 [14:17:01]MH_I2C_Read... [14:17:01]Read from MH i2c: D1 01 00 62 00 00 33 [14:17:01]Write to MH i2c: 01 00 00 63 00 63 [14:17:01]Write i2c OK [14:17:01]MH_I2C_Read... [14:17:02]OFD Sender: No OFD packet to send [14:17:02]*** Cut start [14:17:02]*** Partial cut [14:17:02]*** CUTSNS_PIN = 1 [14:17:02]*** CUTSNS_PIN = 0 [14:17:02]*** Brake cut motor [14:17:03]Read from MH i2c: 01 [14:17:03]MH_I2C_Read... [14:17:03]*** Stop cut motor [14:17:03]*** Cut end [14:17:03]Read from MH i2c: 01 07 00 [14:17:03]MH_I2C_Read... [14:17:03]Read from MH i2c: 01 07 00 63 00 00 00 00 00 00 FF 0F 78 [14:17:03]process_action close_receipt done [14:17:03]requested_data is exist [14:17:03]produce_requested_data [14:17:03]requested_item fm.sn is exist - process it [14:17:03]wFMCommunicate request_size=4 [14:17:03]MH_SAM_APDU [14:17:03]CAPDU: 80 11 00 00 [14:17:03]Write to MH i2c: E2 08 00 64 00 80 11 00 00 00 00 00 00 DE [14:17:03]Write i2c OK [14:17:03]MH_I2C_Read... [14:17:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:17:03]Read from MH i2c: E2 [14:17:03]MH_I2C_Read... [14:17:03]Read from MH i2c: E2 17 00 [14:17:03]MH_I2C_Read... [14:17:03]Read from MH i2c: E2 17 00 64 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 31 [14:17: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:17:03]wFMCommunicate OK [14:17:03]requested_item fd.num is exist - process it [14:17:03]SAM_PROTO_GetFieldsCounters [14:17:03]wFMCommunicate request_size=4 [14:17:03]MH_SAM_APDU [14:17:03]CAPDU: 80 13 00 00 [14:17:03]Write to MH i2c: E2 08 00 65 00 80 13 00 00 00 00 00 00 E1 [14:17:03]Write i2c OK [14:17:03]MH_I2C_Read... [14:17:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:17:03]Read from MH i2c: E2 [14:17:03]MH_I2C_Read... [14:17:03]Read from MH i2c: E2 62 00 [14:17:03]MH_I2C_Read... [14:17:03]Read from MH i2c: E2 62 00 65 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 96 01 00 0E 04 04 00 63 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 30 [14:17:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 96 01 00 0E 04 04 00 63 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 [14:17:03]wFMCommunicate OK [14:17:03]SAM_PROTO_GetFieldsCounters done [14:17:03]requested_item shift.num is exist - process it [14:17:03]requested_item shift.opened is exist - process it [14:17:03]req_shift_opened [14:17:03]FM_GetShiftState [14:17:03]SAM_PROTO_GetShiftState [14:17:03]wFMCommunicate request_size=4 [14:17:03]MH_SAM_APDU [14:17:03]CAPDU: 80 13 01 00 [14:17:03]Write to MH i2c: E2 08 00 66 00 80 13 01 00 00 00 00 00 E3 [14:17:03]Write i2c OK [14:17:03]MH_I2C_Read... [14:17:03]Read from MH i2c: E2 [14:17:03]MH_I2C_Read... [14:17:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:17:03]Read from MH i2c: E2 0E 00 [14:17:03]MH_I2C_Read... [14:17:03]Read from MH i2c: E2 0E 00 66 00 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 F6 [14:17:03]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [14:17:03]wFMCommunicate OK [14:17:03]SAM_PROTO_GetShiftState done [14:17:03]FM_GetShiftState done [14:17:03]req_shift_opened done [14:17:03]requested_item shift.open_date is exist - process it [14:17:03]req_shift_open_date [14:17:03]req_shift_open_date done [14:17:03]produce_requested_data done [14:17:03]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104181,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [14:17:03]process_action_free close_receipt [14:17:03]json_value_free [14:17:03]json_value_free done [14:17:03]process_json_proto returns [14:17:03]Send response to host [14:17:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104181,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [14:17:03]free response buf [14:17:03]execute_script done [14:17:03]execute_script returns [14:17:03]free content buf [14:17:03]Sock 9.Close socket [14:17:03]Sock 9.Thread stoped [14:17:07]OFD Sender: No OFD packet to send [14:17:12]OFD Sender: No OFD packet to send [14:17:17]OFD Sender: No OFD packet to send [14:17:22]OFD Sender: No OFD packet to send [14:17:27]OFD Sender: No OFD packet to send [14:17:32]OFD Sender: No OFD packet to send [14:17:37]OFD Sender: No OFD packet to send [14:17:42]OFD Sender: No OFD packet to send [14:17:47]OFD Sender: No OFD packet to send [14:17:52]OFD Sender: No OFD packet to send [14:17:57]OFD Sender: No OFD packet to send [14:18:02]OFD Sender: No OFD packet to send [14:18:07]OFD Sender: No OFD packet to send [14:18:12]OFD Sender: No OFD packet to send [14:18:17]OFD Sender: No OFD packet to send [14:18:22]OFD Sender: No OFD packet to send [14:18:27]OFD Sender: No OFD packet to send [14:18:32]OFD Sender: No OFD packet to send [14:18:37]OFD Sender: No OFD packet to send [14:18:42]OFD Sender: No OFD packet to send [14:18:47]OFD Sender: No OFD packet to send [14:18:52]OFD Sender: No OFD packet to send [14:18:57]OFD Sender: No OFD packet to send [14:19:02]OFD Sender: No OFD packet to send [14:19:07]OFD Sender: No OFD packet to send [14:19:12]OFD Sender: No OFD packet to send [14:19:17]OFD Sender: No OFD packet to send [14:19:22]OFD Sender: No OFD packet to send [14:19:26]accept exits with 7 [14:19:26]New connection [14:19:26]New thread 3066584420 created [14:19:26]Thread 3066727780 joined [14:19:26]Waiting for new connection... [14:19:26] Sock 7.Parse request [14:19:26]Sock 7.Check first char [14:19:26]Sock 7.First char is OK [14:19:26]request: POST /json_proto HTTP/1.0 [14:19:26]Method: POST [14:19:26]URL: /json_proto [14:19:26]Method is POST - this is cgi request [14:19:26]url: /json_proto [14:19:26]query_string will be loaded in cgi processing [14:19:26]execute_cgi json_proto POST (null) [14:19:26]execute_cgi path=json_proto method=POST [14:19:26]POST find Content-Length [14:19:26]Host: 172.17.38.133:8080 [14:19:26]Content-Length: 805 [14:19:26]Content-Type: application/json [14:19:26] [14:19:26]POST finish read [14:19:26]Found Content-Length = 805 [14:19:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673616", "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 }]} ], "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" : 500.09 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:19:26]execute_script... [14:19: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)673616", "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 }]} ], "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" : 500.09 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:19:26]POST & json_proto [14:19:26]process_json_proto [14:19:26]json parsed OK: [14:19:26]protocol is kg_v1.0 [14:19:26]action value=close_receipt [14:19:26]process_action close_receipt [14:19:26]cmd_close_receipt [14:19:26]MH_GetDate [14:19:26]Write to MH i2c: F0 00 00 67 00 56 [14:19:26]Write i2c OK [14:19:26]MH_I2C_Read... [14:19:26]Read from MH i2c: F0 [14:19:26]MH_I2C_Read... [14:19:26]Read from MH i2c: F0 09 00 [14:19:26]MH_I2C_Read... [14:19:26]Read from MH i2c: F0 09 00 67 00 00 EF 8B 75 66 BD 8F 7C 64 E0 [14:19:26]GetLastDocTimeStamp 1718979419 [14:19:26]current date 1718979567 [14:19:26]FM_GetShiftState [14:19:26]SAM_PROTO_GetShiftState [14:19:26]wFMCommunicate request_size=4 [14:19:26]MH_SAM_APDU [14:19:26]CAPDU: 80 13 01 00 [14:19:26]Write to MH i2c: E2 08 00 68 00 80 13 01 00 00 00 00 00 E5 [14:19:26]Write i2c OK [14:19:26]MH_I2C_Read... [14:19:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:19:26]Read from MH i2c: E2 [14:19:26]MH_I2C_Read... [14:19:26]Read from MH i2c: E2 0E 00 [14:19:26]MH_I2C_Read... [14:19:26]Read from MH i2c: E2 0E 00 68 00 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 F8 [14:19:26]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [14:19:26]wFMCommunicate OK [14:19:26]SAM_PROTO_GetShiftState done [14:19:26]FM_GetShiftState done [14:19:26]opened in 1718929509 [14:19:26]opened+sec_in_day 1719015909 [14:19:26]quantity*price = 50009 [14:19:26]sum+1 = 50010 [14:19:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.09 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 0.00 Безнал.: 500.09 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 105 21.06.2024 14:19 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875093 ФД: 104182 ФПД: 230714300417080 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T141927&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104182&fm=230714300417080&tin=02508201610067®Number=0000000000092785&sum=50009 [14:19:27]StoreToDocumentArchive [14:19:27]shift 355 fd 104182 [14:19:27]save to /storage/0355/doc_00104182 [14:19:27]save last doc name /storage/0355/doc_00104182 to /storage/kkm_last_doc_name [14:19:27]save OK [14:19:27]Clear old archive folders... [14:19:27]ProcessDocumentItem done err = 0, tmpTLVsize=252 [14:19:27]tlvbuf is 0093E940 [14:19:27]SAM_PROTO_ClearQueue [14:19:27]wFMCommunicate request_size=4 [14:19:27]MH_SAM_APDU [14:19:27]CAPDU: 80 09 00 00 [14:19:27]Write to MH i2c: E2 08 00 75 00 80 09 00 00 00 00 00 00 E7 [14:19:27]Write i2c OK [14:19:27]MH_I2C_Read... [14:19:27]Read from MH i2c: E2 [14:19:27]MH_I2C_Read... [14:19:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:19:27]Read from MH i2c: E2 03 00 [14:19:27]MH_I2C_Read... [14:19:27]Read from MH i2c: E2 03 00 75 00 00 90 00 E9 [14:19:27]RAPDU: 90 00 [14:19:27]wFMCommunicate OK [14:19:27]SAM_PROTO_ClearQueue done [14:19:27]KKMCreateOFDPacket [14:19:27]OFDProtocolAddRootSTLVToBuf [14:19:27]FM_MakeSignedData [14:19:27]FM_MakeSignedData [14:19:27]SAM_PROTO_SignData [14:19:27]wFMCommunicate request_size=4 [14:19:27]MH_SAM_APDU [14:19:27]CAPDU: 80 0D 01 02 [14:19:27]Write to MH i2c: E2 08 00 76 00 80 0D 01 02 00 00 00 00 EF [14:19:27]Write i2c OK [14:19:27]MH_I2C_Read... [14:19:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:19:27]Read from MH i2c: E2 [14:19:27]MH_I2C_Read... [14:19:27]Read from MH i2c: E2 03 00 [14:19:27]MH_I2C_Read... [14:19:27]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [14:19:27]RAPDU: 90 00 [14:19:27]wFMCommunicate OK [14:19:27]wFMCommunicate request_size=255 [14:19:27]MH_SAM_APDU [14:19: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 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 59 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 59 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 EF 8B 75 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 F6 96 01 00 35 04 06 00 [14:19:27]Write to MH i2c: E2 02 01 77 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 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 59 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 59 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 EF 8B 75 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 F6 96 01 00 35 04 06 00 00 00 48 [14:19:27]Write i2c OK [14:19:27]MH_I2C_Read... [14:19:27]OFD Sender: No OFD packet to send [14:19:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:19:27]Read from MH i2c: E2 [14:19:27]MH_I2C_Read... [14:19:27]Read from MH i2c: E2 03 00 [14:19:27]MH_I2C_Read... [14:19:27]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [14:19:27]RAPDU: 90 00 [14:19:27]wFMCommunicate OK [14:19:27]wFMCommunicate request_size=11 [14:19:27]MH_SAM_APDU [14:19:27]CAPDU: 80 0D 02 02 06 D1 D5 5B EB C4 38 [14:19:27]Write to MH i2c: E2 0E 00 78 00 80 0D 02 02 06 00 D1 D5 5B EB C4 38 00 00 E6 [14:19:27]Write i2c OK [14:19:27]MH_I2C_Read... [14:19:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:19:27]Read from MH i2c: E2 [14:19:27]MH_I2C_Read... [14:19:27]Read from MH i2c: E2 03 00 [14:19:27]MH_I2C_Read... [14:19:27]Read from MH i2c: E2 03 00 78 00 00 90 00 EC [14:19:27]RAPDU: 90 00 [14:19:27]wFMCommunicate OK [14:19:27]wFMCommunicate request_size=4 [14:19:27]MH_SAM_APDU [14:19:27]CAPDU: 80 0D 03 02 [14:19:27]Write to MH i2c: E2 08 00 79 00 80 0D 03 02 00 00 00 00 F4 [14:19:27]Write i2c OK [14:19:27]MH_I2C_Read... [14:19:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:19:27]Read from MH i2c: E2 [14:19:27]MH_I2C_Read... [14:19:27]Read from MH i2c: E2 0B 00 [14:19:27]MH_I2C_Read... [14:19:27]Read from MH i2c: E2 0B 00 79 00 00 B7 41 7D 62 C1 01 5B AD 90 00 96 [14:19:27]RAPDU: B7 41 7D 62 C1 01 5B AD 90 00 [14:19:27]wFMCommunicate OK [14:19:27]SAM_PROTO_SignData done [14:19:27]FM_MakeSignedData done [14:19:27]CreateOFDProtocolMessage [14:19:27]wFMCommunicate request_size=4 [14:19:27]MH_SAM_APDU [14:19:27]CAPDU: 80 11 00 00 [14:19:27]Write to MH i2c: E2 08 00 7A 00 80 11 00 00 00 00 00 00 F4 [14:19:27]Write i2c OK [14:19:27]MH_I2C_Read... [14:19:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:19:27]Read from MH i2c: E2 [14:19:27]MH_I2C_Read... [14:19:27]Read from MH i2c: E2 17 00 [14:19:27]MH_I2C_Read... [14:19:27]Read from MH i2c: E2 17 00 7A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 47 [14:19:27]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:27]wFMCommunicate OK [14:19:27]CreateOFDProtocolMessage done [14:19:27]OFDSenderStorePacket 104182 [14:19:27]StoreOFDPacket docnum=104182 [14:19: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 47 E5 08 01 D3 8C 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 59 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 59 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 EF 8B 75 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 F6 96 01 00 35 04 06 00 D1 D5 5B EB C4 38 B7 41 7D 62 C1 01 5B AD [14:19:27]CheckFolder [14:19:27]dirname=/storage/ofd_packets [14:19:27]CheckFolder done [14:19:27]ProducePacketName [14:19:27]name=ofd_packets/00104182 [14:19:27]NVStorageSaveData ofd_packets/00104182 [14:19:27]File name is /storage/ofd_packets/00104182 [14:19:27]Write 302 bytes [14:19:27]NVStorageSaveData done [14:19:27]OFDSenderStorePacket done [14:19:27]KKMCreateOFDPacket done [14:19:27]NVStorageSaveData kkm_last_timestamp [14:19:27]File name is /storage/kkm_last_timestamp [14:19:27]Write 4 bytes [14:19:27]NVStorageSaveData done [14:19:27]ExternCall_PrintAddStr [14:19:27]wPrintStart [14:19:27]Write to MH i2c: 01 00 00 7B 00 7B [14:19:27]Write i2c OK [14:19:27]MH_I2C_Read... [14:19:27]Read from MH i2c: 01 [14:19:27]MH_I2C_Read... [14:19:27]Read from MH i2c: 01 07 00 [14:19:27]MH_I2C_Read... [14:19:27]Read from MH i2c: 01 07 00 7B 00 00 00 00 00 00 FF 0F 90 [14:19:27]RasterBufferAndPrint [14:19:27]line Счет N : (1)673616 [14:19:27]line ИНН: 02508201610067 [14:19:27]line Контрольно-Кассовый Чек [14:19:27]line ПРОДАЖА [14:19:27]line ТРК (МРК, ГНК) : 21 [14:19:27]line Товар: 2710194210 [14:19:27]line ДТ(л)-К-5 [14:19:27]line 6.860 * 72.90 [14:19:27]line = 500.09 [14:19:27]line НДС 12% НСП 1% [14:19:27]line > о реализуемом товаре [14:19:27]line ИТОГО: 500.09 [14:19:27]line НСП 1% : 4.43 [14:19:27]line НДС 12% : 53.11 [14:19:27]line Наличными: 0.00 [14:19:27]line Безнал.: 500.09 [14:19:27]line Место: АЗС № 120 "Партнер Нефть" [14:19:27]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [14:19:27]line СНО: Общий режим [14:19:27]line Чек 105 21.06.2024 14:19 [14:19:27]line Смена: 355 ФФД: 1.0 [14:19:27]line ЗНМ: 0300000164 [14:19:27]line РНМ: 0000000000092785 [14:19:27]line Версия ККМ: 001 [14:19:27]line Платежная система: O! деньги [14:19:27]line ФМ: 0000000000875093 [14:19:27]line ФД: 104182 [14:19:27]line ФПД: 230714300417080 [14:19:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T141927&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104182&fm=230714300417080&tin=02508201610067®Number=0000000000092785&sum=50009 [14:19:28]OFD Sender: Processing packet 104182 [packets to send 17, broken 16] [14:19:28]ProducePacketName [14:19:28]name=ofd_packets/00104182 [14:19:28]OFD Sender: To server: pG, [14:19:28]CommunicateWithHost lk.salyk.kg:30040 [14:19:28]ConnectInit lk.salyk.kg [14:19:28]written 0, free lines is 4095 [14:19:28]Write to MH i2c: 01 00 00 A5 00 A5 [14:19:28]Write i2c OK [14:19:28]MH_I2C_Read... [14:19:28]Read from MH i2c: 01 [14:19:28]MH_I2C_Read... [14:19:28]Read from MH i2c: 01 07 00 [14:19:28]MH_I2C_Read... [14:19:28]Read from MH i2c: 01 07 00 A5 00 00 00 00 00 00 EA 0C A2 [14:19:28]RasterBufferAndPrint [14:19:28]line [14:19:28]line [14:19:28]line [14:19:28]line [14:19:28]line [14:19:28]written 0, free lines is 3312 [14:19:28]MH_Cut [14:19:28]Write to MH i2c: D1 01 00 AC 00 01 7E [14:19:28]Write i2c OK [14:19:28]MH_I2C_Read... [14:19:28]Read from MH i2c: D1 [14:19:28]MH_I2C_Read... [14:19:28]Read from MH i2c: D1 01 00 [14:19:28]MH_I2C_Read... [14:19:28]Read from MH i2c: D1 01 00 AC 00 00 7D [14:19:28]Write to MH i2c: 01 00 00 AD 00 AD [14:19:28]Write i2c OK [14:19:28]MH_I2C_Read... [14:19:29]*** Cut start [14:19:29]*** Partial cut [14:19:29]*** CUTSNS_PIN = 1 [14:19:29]*** CUTSNS_PIN = 0 [14:19:29]*** Brake cut motor [14:19:29]Read from MH i2c: 01 [14:19:29]MH_I2C_Read... [14:19:29]*** Stop cut motor [14:19:29]*** Cut end [14:19:29]Read from MH i2c: 01 07 00 [14:19:29]MH_I2C_Read... [14:19:29]Read from MH i2c: 01 07 00 AD 00 00 00 00 00 00 FF 0F C2 [14:19:29]process_action close_receipt done [14:19:29]requested_data is exist [14:19:29]produce_requested_data [14:19:29]requested_item fm.sn is exist - process it [14:19:29]wFMCommunicate request_size=4 [14:19:29]MH_SAM_APDU [14:19:29]CAPDU: 80 11 00 00 [14:19:29]Write to MH i2c: E2 08 00 AE 00 80 11 00 00 00 00 00 00 28 [14:19:29]Write i2c OK [14:19:29]MH_I2C_Read... [14:19:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:19:29]Read from MH i2c: E2 [14:19:29]MH_I2C_Read... [14:19:29]Read from MH i2c: E2 17 00 [14:19:29]MH_I2C_Read... [14:19:29]Read from MH i2c: E2 17 00 AE 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 7B [14:19:29]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:29]wFMCommunicate OK [14:19:29]requested_item fd.num is exist - process it [14:19:29]SAM_PROTO_GetFieldsCounters [14:19:29]wFMCommunicate request_size=4 [14:19:29]MH_SAM_APDU [14:19:29]CAPDU: 80 13 00 00 [14:19:29]Write to MH i2c: E2 08 00 AF 00 80 13 00 00 00 00 00 00 2B [14:19:29]Write i2c OK [14:19:29]MH_I2C_Read... [14:19:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:19:30]Read from MH i2c: E2 [14:19:30]MH_I2C_Read... [14:19:30]Read from MH i2c: E2 62 00 [14:19:30]MH_I2C_Read... [14:19:30]Read from MH i2c: E2 62 00 AF 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 96 01 00 0E 04 04 00 63 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 7E [14:19: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 F6 96 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:19:30]wFMCommunicate OK [14:19:30]SAM_PROTO_GetFieldsCounters done [14:19:30]requested_item shift.num is exist - process it [14:19:30]requested_item shift.opened is exist - process it [14:19:30]req_shift_opened [14:19:30]FM_GetShiftState [14:19:30]SAM_PROTO_GetShiftState [14:19:30]wFMCommunicate request_size=4 [14:19:30]MH_SAM_APDU [14:19:30]CAPDU: 80 13 01 00 [14:19:30]Write to MH i2c: E2 08 00 B0 00 80 13 01 00 00 00 00 00 2D [14:19:30]Write i2c OK [14:19:30]MH_I2C_Read... [14:19:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:19:30]Read from MH i2c: E2 [14:19:30]MH_I2C_Read... [14:19:30]Read from MH i2c: E2 0E 00 [14:19:30]MH_I2C_Read... [14:19:30]Read from MH i2c: E2 0E 00 B0 00 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 40 [14:19:30]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [14:19:30]wFMCommunicate OK [14:19:30]SAM_PROTO_GetShiftState done [14:19:30]FM_GetShiftState done [14:19:30]req_shift_opened done [14:19:30]requested_item shift.open_date is exist - process it [14:19:30]req_shift_open_date [14:19:30]req_shift_open_date done [14:19:30]produce_requested_data done [14:19:30]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104182,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [14:19:30]process_action_free close_receipt [14:19:30]json_value_free [14:19:30]json_value_free done [14:19:30]process_json_proto returns [14:19:30]Send response to host [14:19:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104182,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [14:19:30]free response buf [14:19:30]execute_script done [14:19:30]execute_script returns [14:19:30]free content buf [14:19:30]Sock 7.Close socket [14:19:30]Sock 7.Thread stoped [14:21:23]accept exits with 9 [14:21:23]New connection [14:21:23]New thread 3066727780 created [14:21:23]Thread 3066584420 joined [14:21:23]Waiting for new connection... [14:21:23] Sock 9.Parse request [14:21:23]Sock 9.Check first char [14:21:23]Sock 9.First char is OK [14:21:23]request: POST /json_proto HTTP/1.0 [14:21:23]Method: POST [14:21:23]URL: /json_proto [14:21:23]Method is POST - this is cgi request [14:21:23]url: /json_proto [14:21:23]query_string will be loaded in cgi processing [14:21:23]execute_cgi json_proto POST (null) [14:21:23]execute_cgi path=json_proto method=POST [14:21:23]POST find Content-Length [14:21:23]Host: 172.17.38.133:8080 [14:21:23]Content-Length: 678 [14:21:23]Content-Type: application/json [14:21:23] [14:21:23]POST finish read [14:21:23]Found Content-Length = 678 [14:21:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673617", "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.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" ] } } [14:21:23]execute_script... [14:21: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)673617", "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.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" ] } } [14:21:23]POST & json_proto [14:21:23]process_json_proto [14:21:23]json parsed OK: [14:21:23]protocol is kg_v1.0 [14:21:23]action value=close_receipt [14:21:23]process_action close_receipt [14:21:23]cmd_close_receipt [14:21:23]MH_GetDate [14:21:23]Write to MH i2c: F0 00 00 B1 00 A0 [14:21:23]Write i2c OK [14:21:23]MH_I2C_Read... [14:21:23]Read from MH i2c: F0 [14:21:23]MH_I2C_Read... [14:21:23]Read from MH i2c: F0 09 00 [14:21:23]MH_I2C_Read... [14:21:23]Read from MH i2c: F0 09 00 B1 00 00 64 8C 75 66 BD 8F 7C 64 A0 [14:21:23]GetLastDocTimeStamp 1718979567 [14:21:23]current date 1718979684 [14:21:23]FM_GetShiftState [14:21:23]SAM_PROTO_GetShiftState [14:21:23]wFMCommunicate request_size=4 [14:21:23]MH_SAM_APDU [14:21:23]CAPDU: 80 13 01 00 [14:21:23]Write to MH i2c: E2 08 00 B2 00 80 13 01 00 00 00 00 00 2F [14:21:23]Write i2c OK [14:21:23]MH_I2C_Read... [14:21:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:21:23]Read from MH i2c: E2 [14:21:23]MH_I2C_Read... [14:21:23]Read from MH i2c: E2 0E 00 [14:21:23]MH_I2C_Read... [14:21:23]Read from MH i2c: E2 0E 00 B2 00 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 42 [14:21:23]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [14:21:23]wFMCommunicate OK [14:21:23]SAM_PROTO_GetShiftState done [14:21:23]FM_GetShiftState done [14:21:23]opened in 1718929509 [14:21:23]opened+sec_in_day 1719015909 [14:21:23]quantity*price = 67064 [14:21:23]sum+1 = 67065 [14:21:23]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 СНО: Общий режим Чек 106 21.06.2024 14:21 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104183 ФПД: 207749564204992 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T142124&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104183&fm=207749564204992&tin=02508201610067®Number=0000000000092785&sum=67000 [14:21:24]StoreToDocumentArchive [14:21:24]shift 355 fd 104183 [14:21:24]save to /storage/0355/doc_00104183 [14:21:24]save last doc name /storage/0355/doc_00104183 to /storage/kkm_last_doc_name [14:21:24]save OK [14:21:24]Clear old archive folders... [14:21:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:21:24]tlvbuf is 0094E140 [14:21:24]SAM_PROTO_ClearQueue [14:21:24]wFMCommunicate request_size=4 [14:21:24]MH_SAM_APDU [14:21:24]CAPDU: 80 09 00 00 [14:21:24]Write to MH i2c: E2 08 00 BF 00 80 09 00 00 00 00 00 00 31 [14:21:24]Write i2c OK [14:21:24]MH_I2C_Read... [14:21:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:21:24]Read from MH i2c: E2 [14:21:24]MH_I2C_Read... [14:21:24]Read from MH i2c: E2 03 00 [14:21:24]MH_I2C_Read... [14:21:24]Read from MH i2c: E2 03 00 BF 00 00 90 00 33 [14:21:24]RAPDU: 90 00 [14:21:24]wFMCommunicate OK [14:21:24]SAM_PROTO_ClearQueue done [14:21:24]KKMCreateOFDPacket [14:21:24]OFDProtocolAddRootSTLVToBuf [14:21:24]FM_MakeSignedData [14:21:24]FM_MakeSignedData [14:21:24]SAM_PROTO_SignData [14:21:24]wFMCommunicate request_size=4 [14:21:24]MH_SAM_APDU [14:21:24]CAPDU: 80 0D 01 02 [14:21:24]Write to MH i2c: E2 08 00 C0 00 80 0D 01 02 00 00 00 00 39 [14:21:24]Write i2c OK [14:21:24]MH_I2C_Read... [14:21:24]Read from MH i2c: E2 [14:21:24]MH_I2C_Read... [14:21:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:21:24]Read from MH i2c: E2 03 00 [14:21:24]MH_I2C_Read... [14:21:24]Read from MH i2c: E2 03 00 C0 00 00 90 00 34 [14:21:24]RAPDU: 90 00 [14:21:24]wFMCommunicate OK [14:21:24]wFMCommunicate request_size=255 [14:21:24]MH_SAM_APDU [14:21: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 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 6A 00 00 00 F4 03 04 00 64 8C 75 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 F7 96 01 00 35 04 06 00 BC [14:21:24]Write to MH i2c: E2 02 01 C1 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 6A 00 00 00 F4 03 04 00 64 8C 75 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 F7 96 01 00 35 04 06 00 BC 00 00 8A [14:21:24]Write i2c OK [14:21:24]MH_I2C_Read... [14:21:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:21:25]Read from MH i2c: E2 [14:21:25]MH_I2C_Read... [14:21:25]Read from MH i2c: E2 03 00 [14:21:25]MH_I2C_Read... [14:21:25]Read from MH i2c: E2 03 00 C1 00 00 90 00 35 [14:21:25]RAPDU: 90 00 [14:21:25]wFMCommunicate OK [14:21:25]wFMCommunicate request_size=10 [14:21:25]MH_SAM_APDU [14:21:25]CAPDU: 80 0D 02 02 05 F2 76 FA 07 C0 [14:21:25]Write to MH i2c: E2 0D 00 C2 00 80 0D 02 02 05 00 F2 76 FA 07 C0 00 00 6F [14:21:25]Write i2c OK [14:21:25]MH_I2C_Read... [14:21:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:21:25]Read from MH i2c: E2 [14:21:25]MH_I2C_Read... [14:21:25]Read from MH i2c: E2 03 00 [14:21:25]MH_I2C_Read... [14:21:25]Read from MH i2c: E2 03 00 C2 00 00 90 00 36 [14:21:25]RAPDU: 90 00 [14:21:25]wFMCommunicate OK [14:21:25]wFMCommunicate request_size=4 [14:21:25]MH_SAM_APDU [14:21:25]CAPDU: 80 0D 03 02 [14:21:25]Write to MH i2c: E2 08 00 C3 00 80 0D 03 02 00 00 00 00 3E [14:21:25]Write i2c OK [14:21:25]MH_I2C_Read... [14:21:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:21:25]Read from MH i2c: E2 [14:21:25]MH_I2C_Read... [14:21:25]Read from MH i2c: E2 0B 00 [14:21:25]MH_I2C_Read... [14:21:25]Read from MH i2c: E2 0B 00 C3 00 00 33 51 3F 79 59 61 76 A4 90 00 4F [14:21:25]RAPDU: 33 51 3F 79 59 61 76 A4 90 00 [14:21:25]wFMCommunicate OK [14:21:25]SAM_PROTO_SignData done [14:21:25]FM_MakeSignedData done [14:21:25]CreateOFDProtocolMessage [14:21:25]wFMCommunicate request_size=4 [14:21:25]MH_SAM_APDU [14:21:25]CAPDU: 80 11 00 00 [14:21:25]Write to MH i2c: E2 08 00 C4 00 80 11 00 00 00 00 00 00 3E [14:21:25]Write i2c OK [14:21:25]MH_I2C_Read... [14:21:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:21:25]Read from MH i2c: E2 [14:21:25]MH_I2C_Read... [14:21:25]Read from MH i2c: E2 17 00 [14:21:25]MH_I2C_Read... [14:21:25]Read from MH i2c: E2 17 00 C4 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 91 [14:21:25]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:25]wFMCommunicate OK [14:21:25]CreateOFDProtocolMessage done [14:21:25]OFDSenderStorePacket 104183 [14:21:25]StoreOFDPacket docnum=104183 [14:21: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 88 27 07 01 E6 71 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 6A 00 00 00 F4 03 04 00 64 8C 75 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 F7 96 01 00 35 04 06 00 BC F2 76 FA 07 C0 33 51 3F 79 59 61 76 A4 [14:21:25]CheckFolder [14:21:25]dirname=/storage/ofd_packets [14:21:25]CheckFolder done [14:21:25]ProducePacketName [14:21:25]name=ofd_packets/00104183 [14:21:25]NVStorageSaveData ofd_packets/00104183 [14:21:25]File name is /storage/ofd_packets/00104183 [14:21:25]Write 301 bytes [14:21:25]NVStorageSaveData done [14:21:25]OFDSenderStorePacket done [14:21:25]KKMCreateOFDPacket done [14:21:25]NVStorageSaveData kkm_last_timestamp [14:21:25]File name is /storage/kkm_last_timestamp [14:21:25]Write 4 bytes [14:21:25]NVStorageSaveData done [14:21:25]ExternCall_PrintAddStr [14:21:25]wPrintStart [14:21:25]Write to MH i2c: 01 00 00 C5 00 C5 [14:21:25]Write i2c OK [14:21:25]MH_I2C_Read... [14:21:25]Read from MH i2c: 01 [14:21:25]MH_I2C_Read... [14:21:25]Read from MH i2c: 01 07 00 [14:21:25]MH_I2C_Read... [14:21:25]Read from MH i2c: 01 07 00 C5 00 00 00 00 00 00 FF 0F DA [14:21:25]RasterBufferAndPrint [14:21:25]line Счет N : (1)673617 [14:21:25]line ИНН: 02508201610067 [14:21:25]line Контрольно-Кассовый Чек [14:21:25]line ПРОДАЖА [14:21:25]line ТРК (МРК, ГНК) : 42 [14:21:25]line Товар: 2710124130 [14:21:25]line Аи-92-К-5 [14:21:25]line 10.100 * 66.40 [14:21:25]line = 670.64 [14:21:25]line НДС 12% НСП 1% [14:21:25]line > о реализуемом товаре [14:21:25]line ОКРУГЛЕНИЕ: -0.64 [14:21:25]line ИТОГО: 670.00 [14:21:25]line Внесено: 670.00 [14:21:25]line СДАЧА: 0.00 [14:21:25]line НСП 1% : 5.93 [14:21:25]line НДС 12% : 71.22 [14:21:25]line Наличными: 670.00 [14:21:25]line Безнал.: 0.00 [14:21:25]line Место: АЗС № 120 "Партнер Нефть" [14:21:25]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [14:21:25]line СНО: Общий режим [14:21:25]line Чек 106 21.06.2024 14:21 [14:21:25]line Смена: 355 ФФД: 1.0 [14:21:25]line ЗНМ: 0300000164 [14:21:25]line РНМ: 0000000000092785 [14:21:25]line Версия ККМ: 001 [14:21:25]line ФМ: 0000000000875093 [14:21:25]line ФД: 104183 [14:21:25]line ФПД: 207749564204992 [14:21:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T142124&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104183&fm=207749564204992&tin=02508201610067®Number=0000000000092785&sum=67000 [14:21:25]written 0, free lines is 4095 [14:21:26]Write to MH i2c: 01 00 00 F0 00 F0 [14:21:26]Write i2c OK [14:21:26]MH_I2C_Read... [14:21:26]Read from MH i2c: 01 [14:21:26]MH_I2C_Read... [14:21:26]Read from MH i2c: 01 07 00 [14:21:26]MH_I2C_Read... [14:21:26]Read from MH i2c: 01 07 00 F0 00 00 00 00 00 00 E5 0C E8 [14:21:26]RasterBufferAndPrint [14:21:26]line [14:21:26]line [14:21:26]line [14:21:26]line [14:21:26]line [14:21:26]written 0, free lines is 3307 [14:21:26]MH_Cut [14:21:26]Write to MH i2c: D1 01 00 F7 00 01 C9 [14:21:26]Write i2c OK [14:21:26]MH_I2C_Read... [14:21:26]Read from MH i2c: D1 [14:21:26]MH_I2C_Read... [14:21:26]Read from MH i2c: D1 01 00 [14:21:26]MH_I2C_Read... [14:21:26]Read from MH i2c: D1 01 00 F7 00 00 C8 [14:21:26]Write to MH i2c: 01 00 00 F8 00 F8 [14:21:26]Write i2c OK [14:21:26]MH_I2C_Read... [14:21:26]*** Cut start [14:21:26]*** Partial cut [14:21:26]*** CUTSNS_PIN = 1 [14:21:26]*** CUTSNS_PIN = 0 [14:21:27]*** Brake cut motor [14:21:27]Read from MH i2c: 01 [14:21:27]MH_I2C_Read... [14:21:27]*** Stop cut motor [14:21:27]*** Cut end [14:21:27]Read from MH i2c: 01 07 00 [14:21:27]MH_I2C_Read... [14:21:27]Read from MH i2c: 01 07 00 F8 00 00 00 00 00 00 FF 0F 0D [14:21:27]process_action close_receipt done [14:21:27]requested_data is exist [14:21:27]produce_requested_data [14:21:27]requested_item fm.sn is exist - process it [14:21:27]wFMCommunicate request_size=4 [14:21:27]MH_SAM_APDU [14:21:27]CAPDU: 80 11 00 00 [14:21:27]Write to MH i2c: E2 08 00 F9 00 80 11 00 00 00 00 00 00 73 [14:21:27]Write i2c OK [14:21:27]MH_I2C_Read... [14:21:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:21:27]Read from MH i2c: E2 [14:21:27]MH_I2C_Read... [14:21:27]Read from MH i2c: E2 17 00 [14:21:27]MH_I2C_Read... [14:21:27]Read from MH i2c: E2 17 00 F9 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 C6 [14: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 [14:21:27]wFMCommunicate OK [14:21:27]requested_item fd.num is exist - process it [14:21:27]SAM_PROTO_GetFieldsCounters [14:21:27]wFMCommunicate request_size=4 [14:21:27]MH_SAM_APDU [14:21:27]CAPDU: 80 13 00 00 [14:21:27]Write to MH i2c: E2 08 00 FA 00 80 13 00 00 00 00 00 00 76 [14:21:27]Write i2c OK [14:21:27]MH_I2C_Read... [14:21:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:21:27]Read from MH i2c: E2 [14:21:27]MH_I2C_Read... [14:21:27]Read from MH i2c: E2 62 00 [14:21:27]MH_I2C_Read... [14:21:27]Read from MH i2c: E2 62 00 FA 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 96 01 00 0E 04 04 00 63 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 CD [14:21: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 F7 96 01 00 0E 04 04 00 63 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 [14:21:27]wFMCommunicate OK [14:21:27]SAM_PROTO_GetFieldsCounters done [14:21:27]requested_item shift.num is exist - process it [14:21:27]requested_item shift.opened is exist - process it [14:21:27]req_shift_opened [14:21:27]FM_GetShiftState [14:21:27]SAM_PROTO_GetShiftState [14:21:27]wFMCommunicate request_size=4 [14:21:27]MH_SAM_APDU [14:21:27]CAPDU: 80 13 01 00 [14:21:27]Write to MH i2c: E2 08 00 FB 00 80 13 01 00 00 00 00 00 78 [14:21:27]Write i2c OK [14:21:27]MH_I2C_Read... [14:21:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:21:27]Read from MH i2c: E2 [14:21:27]MH_I2C_Read... [14:21:27]Read from MH i2c: E2 0E 00 [14:21:27]MH_I2C_Read... [14:21:27]Read from MH i2c: E2 0E 00 FB 00 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 8B [14:21:27]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [14:21:27]wFMCommunicate OK [14:21:27]SAM_PROTO_GetShiftState done [14:21:27]FM_GetShiftState done [14:21:27]req_shift_opened done [14:21:27]requested_item shift.open_date is exist - process it [14:21:27]req_shift_open_date [14:21:27]req_shift_open_date done [14:21:27]produce_requested_data done [14:21:27]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104183,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [14:21:27]process_action_free close_receipt [14:21:27]json_value_free [14:21:27]json_value_free done [14:21:27]process_json_proto returns [14:21:27]Send response to host [14:21:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104183,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [14:21:27]free response buf [14:21:27]execute_script done [14:21:27]execute_script returns [14:21:27]free content buf [14:21:27]Sock 9.Close socket [14:21:27]Sock 9.Thread stoped [14:21:41]ConnectInit Can't connect to host [14:21:41]CommunicateWithHost connect error [14:21:41]CommunicateWithHost err = -1 [14:21:41]OFD Sender: Server communicate error [14:21:41]OFD Sender: Processing packet 104182 [packets to send 18, broken 16] [14:21:41]ProducePacketName [14:21:41]name=ofd_packets/00104182 [14:21:41]OFD Sender: To server: pG, [14:21:41]CommunicateWithHost lk.salyk.kg:30040 [14:21:41]ConnectInit lk.salyk.kg [14:21:41]Connected sock=9 [14:21:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 47 E5 08 01 D3 8C 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 59 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 59 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 EF 8B 75 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 F6 96 01 00 35 04 06 00 D1 D5 5B EB C4 38 B7 41 7D 62 C1 01 5B AD [14:21: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 A7 16 47 00 98 DF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 F6 96 01 00 F4 03 04 00 F6 32 75 66 B6 04 01 00 00 76 9B 56 83 CF 72 A0 8D [14:21:41]CommunicateWithHost err = 0 [14:21:41]CheckOFDResponse [14:21:41]1017 (14) - 77093643461234 [14:21:41]1041 (16) - 0000000000875093 [14:21:41]1040 (4) - 104182 [14:21:41]1012 (4) - 21.06.2024 07:59 [14:21:41]1206 (1) - 0 [14:21:41]OFD Sender: Remove packet 104182 [14:21:41]ProducePacketName [14:21:41]name=ofd_packets/00104182 [14:21:41]NVStorageDeleteData [14:21:42]OFD Sender: Processing packet 104183 [packets to send 17, broken 16] [14:21:42]ProducePacketName [14:21:42]name=ofd_packets/00104183 [14:21:42]OFD Sender: To server: pG, [14:21:42]CommunicateWithHost lk.salyk.kg:30040 [14:21:42]ConnectInit lk.salyk.kg [14:21:42]Connected sock=9 [14:21: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 88 27 07 01 E6 71 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 6A 00 00 00 F4 03 04 00 64 8C 75 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 F7 96 01 00 35 04 06 00 BC F2 76 FA 07 C0 33 51 3F 79 59 61 76 A4 [14:21: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 01 C7 47 00 F2 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 F7 96 01 00 F4 03 04 00 F7 32 75 66 B6 04 01 00 00 94 B4 52 89 D5 FB 18 50 [14:21:42]CommunicateWithHost err = 0 [14:21:42]CheckOFDResponse [14:21:42]1017 (14) - 77093643461234 [14:21:42]1041 (16) - 0000000000875093 [14:21:42]1040 (4) - 104183 [14:21:42]1012 (4) - 21.06.2024 07:59 [14:21:42]1206 (1) - 0 [14:21:42]OFD Sender: Remove packet 104183 [14:21:42]ProducePacketName [14:21:42]name=ofd_packets/00104183 [14:21:42]NVStorageDeleteData [14:21:43]OFD Sender: No OFD packet to send [14:21:48]OFD Sender: No OFD packet to send [14:21:53]OFD Sender: No OFD packet to send [14:21:58]OFD Sender: No OFD packet to send [14:22:03]OFD Sender: No OFD packet to send [14:22:08]OFD Sender: No OFD packet to send [14:22:13]OFD Sender: No OFD packet to send [14:22:18]OFD Sender: No OFD packet to send [14:22:23]OFD Sender: No OFD packet to send [14:22:28]OFD Sender: No OFD packet to send [14:22:33]OFD Sender: No OFD packet to send [14:22:38]OFD Sender: No OFD packet to send [14:22:43]OFD Sender: No OFD packet to send [14:22:48]OFD Sender: No OFD packet to send [14:22:53]OFD Sender: No OFD packet to send [14:22:56]accept exits with 7 [14:22:56]New connection [14:22:56]New thread 3066584420 created [14:22:56]Thread 3066727780 joined [14:22:56]Waiting for new connection... [14:22:56] Sock 7.Parse request [14:22:56]Sock 7.Check first char [14:22:56]Sock 7.First char is OK [14:22:56]request: POST /json_proto HTTP/1.0 [14:22:56]Method: POST [14:22:56]URL: /json_proto [14:22:56]Method is POST - this is cgi request [14:22:56]url: /json_proto [14:22:56]query_string will be loaded in cgi processing [14:22:56]execute_cgi json_proto POST (null) [14:22:56]execute_cgi path=json_proto method=POST [14:22:56]POST find Content-Length [14:22:56]Host: 172.17.38.133:8080 [14:22:56]Content-Length: 811 [14:22:56]Content-Type: application/json [14:22:56] [14:22:56]POST finish read [14:22:56]Found Content-Length = 811 [14:22:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673615", "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" : 185.190, "sum" : 13500.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 13500.35 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:22:56]execute_script... [14:22: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)673615", "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" : 185.190, "sum" : 13500.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 13500.35 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:22:56]POST & json_proto [14:22:56]process_json_proto [14:22:56]json parsed OK: [14:22:56]protocol is kg_v1.0 [14:22:56]action value=close_receipt [14:22:56]process_action close_receipt [14:22:56]cmd_close_receipt [14:22:56]MH_GetDate [14:22:56]Write to MH i2c: F0 00 00 FC 00 EB [14:22:56]Write i2c OK [14:22:56]MH_I2C_Read... [14:22:56]Read from MH i2c: F0 [14:22:56]MH_I2C_Read... [14:22:56]Read from MH i2c: F0 09 00 [14:22:56]MH_I2C_Read... [14:22:56]Read from MH i2c: F0 09 00 FC 00 00 C1 8C 75 66 BD 8F 7C 64 48 [14:22:56]GetLastDocTimeStamp 1718979684 [14:22:56]current date 1718979777 [14:22:56]FM_GetShiftState [14:22:56]SAM_PROTO_GetShiftState [14:22:56]wFMCommunicate request_size=4 [14:22:56]MH_SAM_APDU [14:22:56]CAPDU: 80 13 01 00 [14:22:56]Write to MH i2c: E2 08 00 FD 00 80 13 01 00 00 00 00 00 7A [14:22:56]Write i2c OK [14:22:56]MH_I2C_Read... [14:22:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:22:56]Read from MH i2c: E2 [14:22:56]MH_I2C_Read... [14:22:56]Read from MH i2c: E2 0E 00 [14:22:56]MH_I2C_Read... [14:22:56]Read from MH i2c: E2 0E 00 FD 00 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 8D [14:22:56]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [14:22:56]wFMCommunicate OK [14:22:56]SAM_PROTO_GetShiftState done [14:22:56]FM_GetShiftState done [14:22:56]opened in 1718929509 [14:22:56]opened+sec_in_day 1719015909 [14:22:56]quantity*price = 1350035 [14:22:56]sum+1 = 1350036 [14:22:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 13500.35 НСП 1% : 119.47 НДС 12% : 1433.66 Наличными: 0.00 Безнал.: 13500.35 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 107 21.06.2024 14:22 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875093 ФД: 104184 ФПД: 92878315670509 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T142257&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104184&fm=92878315670509&tin=02508201610067®Number=0000000000092785&sum=1350035 [14:22:57]StoreToDocumentArchive [14:22:57]shift 355 fd 104184 [14:22:57]save to /storage/0355/doc_00104184 [14:22:57]save last doc name /storage/0355/doc_00104184 to /storage/kkm_last_doc_name [14:22:57]save OK [14:22:57]Clear old archive folders... [14:22:57]ProcessDocumentItem done err = 0, tmpTLVsize=252 [14:22:57]tlvbuf is 008F2100 [14:22:57]SAM_PROTO_ClearQueue [14:22:57]wFMCommunicate request_size=4 [14:22:57]MH_SAM_APDU [14:22:57]CAPDU: 80 09 00 00 [14:22:57]Write to MH i2c: E2 08 00 0A 01 80 09 00 00 00 00 00 00 7D [14:22:57]Write i2c OK [14:22:57]MH_I2C_Read... [14:22:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:22:57]Read from MH i2c: E2 [14:22:57]MH_I2C_Read... [14:22:57]Read from MH i2c: E2 03 00 [14:22:57]MH_I2C_Read... [14:22:57]Read from MH i2c: E2 03 00 0A 01 00 90 00 7F [14:22:57]RAPDU: 90 00 [14:22:57]wFMCommunicate OK [14:22:57]SAM_PROTO_ClearQueue done [14:22:57]KKMCreateOFDPacket [14:22:57]OFDProtocolAddRootSTLVToBuf [14:22:57]FM_MakeSignedData [14:22:57]FM_MakeSignedData [14:22:57]SAM_PROTO_SignData [14:22:57]wFMCommunicate request_size=4 [14:22:57]MH_SAM_APDU [14:22:57]CAPDU: 80 0D 01 02 [14:22:57]Write to MH i2c: E2 08 00 0B 01 80 0D 01 02 00 00 00 00 85 [14:22:57]Write i2c OK [14:22:57]MH_I2C_Read... [14:22:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:22:58]Read from MH i2c: E2 [14:22:58]MH_I2C_Read... [14:22:58]Read from MH i2c: E2 03 00 [14:22:58]MH_I2C_Read... [14:22:58]Read from MH i2c: E2 03 00 0B 01 00 90 00 80 [14:22:58]RAPDU: 90 00 [14:22:58]wFMCommunicate OK [14:22:58]wFMCommunicate request_size=255 [14:22:58]MH_SAM_APDU [14:22: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 66 D3 02 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 93 99 14 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 93 99 14 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AB 2E 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 06 30 02 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 93 99 14 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 C1 8C 75 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 F8 96 01 00 35 04 06 00 [14:22:58]Write to MH i2c: E2 02 01 0C 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 66 D3 02 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 93 99 14 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 93 99 14 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AB 2E 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 06 30 02 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 93 99 14 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 C1 8C 75 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 F8 96 01 00 35 04 06 00 00 00 F8 [14:22:58]Write i2c OK [14:22:58]MH_I2C_Read... [14:22:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:22:58]Read from MH i2c: E2 [14:22:58]MH_I2C_Read... [14:22:58]Read from MH i2c: E2 03 00 [14:22:58]MH_I2C_Read... [14:22:58]Read from MH i2c: E2 03 00 0C 01 00 90 00 81 [14:22:58]RAPDU: 90 00 [14:22:58]wFMCommunicate OK [14:22:58]wFMCommunicate request_size=11 [14:22:58]MH_SAM_APDU [14:22:58]CAPDU: 80 0D 02 02 06 54 78 EB 03 4B ED [14:22:58]Write to MH i2c: E2 0E 00 0D 01 80 0D 02 02 06 00 54 78 EB 03 4B ED 00 00 86 [14:22:58]Write i2c OK [14:22:58]MH_I2C_Read... [14:22:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:22:58]Read from MH i2c: E2 [14:22:58]MH_I2C_Read... [14:22:58]Read from MH i2c: E2 03 00 [14:22:58]MH_I2C_Read... [14:22:58]Read from MH i2c: E2 03 00 0D 01 00 90 00 82 [14:22:58]RAPDU: 90 00 [14:22:58]wFMCommunicate OK [14:22:58]wFMCommunicate request_size=4 [14:22:58]MH_SAM_APDU [14:22:58]CAPDU: 80 0D 03 02 [14:22:58]Write to MH i2c: E2 08 00 0E 01 80 0D 03 02 00 00 00 00 8A [14:22:58]Write i2c OK [14:22:58]MH_I2C_Read... [14:22:58]OFD Sender: No OFD packet to send [14:22:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:22:58]Read from MH i2c: E2 [14:22:58]MH_I2C_Read... [14:22:58]Read from MH i2c: E2 0B 00 [14:22:58]MH_I2C_Read... [14:22:58]Read from MH i2c: E2 0B 00 0E 01 00 9A CA 71 55 19 BB 40 11 90 00 DA [14:22:58]RAPDU: 9A CA 71 55 19 BB 40 11 90 00 [14:22:58]wFMCommunicate OK [14:22:58]SAM_PROTO_SignData done [14:22:58]FM_MakeSignedData done [14:22:58]CreateOFDProtocolMessage [14:22:58]wFMCommunicate request_size=4 [14:22:58]MH_SAM_APDU [14:22:58]CAPDU: 80 11 00 00 [14:22:58]Write to MH i2c: E2 08 00 0F 01 80 11 00 00 00 00 00 00 8A [14:22:58]Write i2c OK [14:22:58]MH_I2C_Read... [14:22:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:22:58]Read from MH i2c: E2 [14:22:58]MH_I2C_Read... [14:22:58]Read from MH i2c: E2 17 00 [14:22:58]MH_I2C_Read... [14:22:58]Read from MH i2c: E2 17 00 0F 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 DD [14:22: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:22:58]wFMCommunicate OK [14:22:58]CreateOFDProtocolMessage done [14:22:58]OFDSenderStorePacket 104184 [14:22:58]StoreOFDPacket docnum=104184 [14:22: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 A8 06 08 01 34 D3 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 D3 02 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 93 99 14 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 93 99 14 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AB 2E 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 06 30 02 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 93 99 14 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 C1 8C 75 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 F8 96 01 00 35 04 06 00 54 78 EB 03 4B ED 9A CA 71 55 19 BB 40 11 [14:22:58]CheckFolder [14:22:58]dirname=/storage/ofd_packets [14:22:58]CheckFolder done [14:22:58]ProducePacketName [14:22:58]name=ofd_packets/00104184 [14:22:58]NVStorageSaveData ofd_packets/00104184 [14:22:58]File name is /storage/ofd_packets/00104184 [14:22:58]Write 302 bytes [14:22:58]NVStorageSaveData done [14:22:58]OFDSenderStorePacket done [14:22:58]KKMCreateOFDPacket done [14:22:58]NVStorageSaveData kkm_last_timestamp [14:22:58]File name is /storage/kkm_last_timestamp [14:22:58]Write 4 bytes [14:22:58]NVStorageSaveData done [14:22:58]ExternCall_PrintAddStr [14:22:58]wPrintStart [14:22:58]Write to MH i2c: 01 00 00 10 01 11 [14:22:58]Write i2c OK [14:22:58]MH_I2C_Read... [14:22:58]Read from MH i2c: 01 [14:22:58]MH_I2C_Read... [14:22:58]Read from MH i2c: 01 07 00 [14:22:58]MH_I2C_Read... [14:22:58]Read from MH i2c: 01 07 00 10 01 00 00 00 00 00 FF 0F 26 [14:22:58]RasterBufferAndPrint [14:22:58]line Счет N : (1)673615 [14:22:58]line ИНН: 02508201610067 [14:22:58]line Контрольно-Кассовый Чек [14:22:58]line ПРОДАЖА [14:22:58]line ТРК (МРК, ГНК) : 11 [14:22:58]line Товар: 2710194210 [14:22:58]line ДТ(л)-К-5 [14:22:58]line 185.190 * 72.90 [14:22:58]line = 13500.35 [14:22:58]line НДС 12% НСП 1% [14:22:58]line > о реализуемом товаре [14:22:58]line ИТОГО: 13500.35 [14:22:58]line НСП 1% : 119.47 [14:22:58]line НДС 12% : 1433.66 [14:22:58]line Наличными: 0.00 [14:22:58]line Безнал.: 13500.35 [14:22:58]line Место: АЗС № 120 "Партнер Нефть" [14:22:58]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [14:22:58]line СНО: Общий режим [14:22:58]line Чек 107 21.06.2024 14:22 [14:22:58]line Смена: 355 ФФД: 1.0 [14:22:58]line ЗНМ: 0300000164 [14:22:58]line РНМ: 0000000000092785 [14:22:58]line Версия ККМ: 001 [14:22:58]line Платежная система: O! деньги [14:22:58]line ФМ: 0000000000875093 [14:22:58]line ФД: 104184 [14:22:58]line ФПД: 92878315670509 [14:22:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T142257&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104184&fm=92878315670509&tin=02508201610067®Number=0000000000092785&sum=1350035 [14:22:58]OFD Sender: Processing packet 104184 [packets to send 17, broken 16] [14:22:58]ProducePacketName [14:22:58]name=ofd_packets/00104184 [14:22:58]OFD Sender: To server: pG, [14:22:58]CommunicateWithHost lk.salyk.kg:30040 [14:22:58]ConnectInit lk.salyk.kg [14:22:58]written 0, free lines is 4095 [14:22:58]Connected sock=10 [14:22: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 10 01 00 00 A8 06 08 01 34 D3 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 D3 02 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 93 99 14 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 93 99 14 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AB 2E 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 06 30 02 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 93 99 14 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 C1 8C 75 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 F8 96 01 00 35 04 06 00 54 78 EB 03 4B ED 9A CA 71 55 19 BB 40 11 [14:22: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 20 CD 47 00 CB 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 F8 96 01 00 F4 03 04 00 43 33 75 66 B6 04 01 00 00 D8 B7 9F 6A 72 15 B5 05 [14:22:59]CommunicateWithHost err = 0 [14:22:59]CheckOFDResponse [14:22:59]1017 (14) - 77093643461234 [14:22:59]1041 (16) - 0000000000875093 [14:22:59]1040 (4) - 104184 [14:22:59]1012 (4) - 21.06.2024 08:01 [14:22:59]1206 (1) - 0 [14:22:59]OFD Sender: Remove packet 104184 [14:22:59]ProducePacketName [14:22:59]name=ofd_packets/00104184 [14:22:59]NVStorageDeleteData [14:22:59]Write to MH i2c: 01 00 00 3A 01 3B [14:22:59]Write i2c OK [14:22:59]MH_I2C_Read... [14:22:59]Read from MH i2c: 01 [14:22:59]MH_I2C_Read... [14:22:59]Read from MH i2c: 01 07 00 [14:22:59]MH_I2C_Read... [14:22:59]Read from MH i2c: 01 07 00 3A 01 00 00 00 00 00 FE 0C 4C [14:22:59]RasterBufferAndPrint [14:22:59]line [14:22:59]line [14:22:59]line [14:22:59]line [14:22:59]line [14:22:59]written 0, free lines is 3332 [14:22:59]MH_Cut [14:22:59]Write to MH i2c: D1 01 00 41 01 01 14 [14:22:59]Write i2c OK [14:22:59]MH_I2C_Read... [14:22:59]Read from MH i2c: D1 [14:22:59]MH_I2C_Read... [14:22:59]Read from MH i2c: D1 01 00 [14:22:59]MH_I2C_Read... [14:22:59]Read from MH i2c: D1 01 00 41 01 00 13 [14:22:59]Write to MH i2c: 01 00 00 42 01 43 [14:22:59]Write i2c OK [14:22:59]MH_I2C_Read... [14:22:59]OFD Sender: No OFD packet to send [14:22:59]*** Cut start [14:22:59]*** Partial cut [14:22:59]*** CUTSNS_PIN = 1 [14:22:59]*** CUTSNS_PIN = 0 [14:23:00]*** Brake cut motor [14:23:00]Read from MH i2c: 01 [14:23:00]MH_I2C_Read... [14:23:00]*** Stop cut motor [14:23:00]*** Cut end [14:23:00]Read from MH i2c: 01 07 00 [14:23:00]MH_I2C_Read... [14:23:00]Read from MH i2c: 01 07 00 42 01 00 00 00 00 00 FF 0F 58 [14:23:00]process_action close_receipt done [14:23:00]requested_data is exist [14:23:00]produce_requested_data [14:23:00]requested_item fm.sn is exist - process it [14:23:00]wFMCommunicate request_size=4 [14:23:00]MH_SAM_APDU [14:23:00]CAPDU: 80 11 00 00 [14:23:00]Write to MH i2c: E2 08 00 43 01 80 11 00 00 00 00 00 00 BE [14:23:00]Write i2c OK [14:23:00]MH_I2C_Read... [14:23:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:23:00]Read from MH i2c: E2 [14:23:00]MH_I2C_Read... [14:23:00]Read from MH i2c: E2 17 00 [14:23:00]MH_I2C_Read... [14:23:00]Read from MH i2c: E2 17 00 43 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 11 [14:23:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [14:23:00]wFMCommunicate OK [14:23:00]requested_item fd.num is exist - process it [14:23:00]SAM_PROTO_GetFieldsCounters [14:23:00]wFMCommunicate request_size=4 [14:23:00]MH_SAM_APDU [14:23:00]CAPDU: 80 13 00 00 [14:23:00]Write to MH i2c: E2 08 00 44 01 80 13 00 00 00 00 00 00 C1 [14:23:00]Write i2c OK [14:23:00]MH_I2C_Read... [14:23:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:23:00]Read from MH i2c: E2 [14:23:00]MH_I2C_Read... [14:23:00]Read from MH i2c: E2 62 00 [14:23:00]MH_I2C_Read... [14:23:00]Read from MH i2c: E2 62 00 44 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 96 01 00 0E 04 04 00 63 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 1C [14:23: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 F8 96 01 00 0E 04 04 00 63 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 [14:23:00]wFMCommunicate OK [14:23:00]SAM_PROTO_GetFieldsCounters done [14:23:00]requested_item shift.num is exist - process it [14:23:00]requested_item shift.opened is exist - process it [14:23:00]req_shift_opened [14:23:00]FM_GetShiftState [14:23:00]SAM_PROTO_GetShiftState [14:23:00]wFMCommunicate request_size=4 [14:23:00]MH_SAM_APDU [14:23:00]CAPDU: 80 13 01 00 [14:23:00]Write to MH i2c: E2 08 00 45 01 80 13 01 00 00 00 00 00 C3 [14:23:00]Write i2c OK [14:23:00]MH_I2C_Read... [14:23:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:23:00]Read from MH i2c: E2 [14:23:00]MH_I2C_Read... [14:23:00]Read from MH i2c: E2 0E 00 [14:23:00]MH_I2C_Read... [14:23:00]Read from MH i2c: E2 0E 00 45 01 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 D6 [14:23:00]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [14:23:00]wFMCommunicate OK [14:23:00]SAM_PROTO_GetShiftState done [14:23:00]FM_GetShiftState done [14:23:00]req_shift_opened done [14:23:00]requested_item shift.open_date is exist - process it [14:23:00]req_shift_open_date [14:23:00]req_shift_open_date done [14:23:00]produce_requested_data done [14:23:00]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104184,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [14:23:00]process_action_free close_receipt [14:23:00]json_value_free [14:23:00]json_value_free done [14:23:00]process_json_proto returns [14:23:00]Send response to host [14:23:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104184,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [14:23:00]free response buf [14:23:00]execute_script done [14:23:00]execute_script returns [14:23:00]free content buf [14:23:00]Sock 7.Close socket [14:23:00]Sock 7.Thread stoped [14:23:04]OFD Sender: No OFD packet to send [14:23:09]OFD Sender: No OFD packet to send [14:23:14]OFD Sender: No OFD packet to send [14:23:19]OFD Sender: No OFD packet to send [14:23:24]OFD Sender: No OFD packet to send [14:23:29]OFD Sender: No OFD packet to send [14:23:34]OFD Sender: No OFD packet to send [14:23:39]OFD Sender: No OFD packet to send [14:23:44]OFD Sender: No OFD packet to send [14:23:49]OFD Sender: No OFD packet to send [14:23:54]OFD Sender: No OFD packet to send [14:23:59]OFD Sender: No OFD packet to send [14:24:04]OFD Sender: No OFD packet to send [14:24:09]OFD Sender: No OFD packet to send [14:24:14]OFD Sender: No OFD packet to send [14:24:19]OFD Sender: No OFD packet to send [14:24:24]OFD Sender: No OFD packet to send [14:24:29]OFD Sender: No OFD packet to send [14:24:34]OFD Sender: No OFD packet to send [14:24:39]OFD Sender: No OFD packet to send [14:24:44]OFD Sender: No OFD packet to send [14:24:49]OFD Sender: No OFD packet to send [14:24:54]OFD Sender: No OFD packet to send [14:24:59]OFD Sender: No OFD packet to send [14:25:04]OFD Sender: No OFD packet to send [14:25:09]OFD Sender: No OFD packet to send [14:25:14]OFD Sender: No OFD packet to send [14:25:19]OFD Sender: No OFD packet to send [14:25:24]OFD Sender: No OFD packet to send [14:25:29]OFD Sender: No OFD packet to send [14:25:34]OFD Sender: No OFD packet to send [14:25:39]OFD Sender: No OFD packet to send [14:25:44]OFD Sender: No OFD packet to send [14:25:49]OFD Sender: No OFD packet to send [14:25:54]OFD Sender: No OFD packet to send [14:25:59]OFD Sender: No OFD packet to send [14:26:04]OFD Sender: No OFD packet to send [14:26:09]OFD Sender: No OFD packet to send [14:26:14]OFD Sender: No OFD packet to send [14:26:19]OFD Sender: No OFD packet to send [14:26:24]OFD Sender: No OFD packet to send [14:26:29]OFD Sender: No OFD packet to send [14:26:34]OFD Sender: No OFD packet to send [14:26:39]OFD Sender: No OFD packet to send [14:26:44]OFD Sender: No OFD packet to send [14:26:49]OFD Sender: No OFD packet to send [14:26:54]OFD Sender: No OFD packet to send [14:26:59]accept exits with 9 [14:26:59]New connection [14:26:59]New thread 3066727780 created [14:26:59]Thread 3066584420 joined [14:26:59]Waiting for new connection... [14:26:59] Sock 9.Parse request [14:26:59]Sock 9.Check first char [14:26:59]Sock 9.First char is OK [14:26:59]request: POST /json_proto HTTP/1.0 [14:26:59]Method: POST [14:26:59]URL: /json_proto [14:26:59]Method is POST - this is cgi request [14:26:59]url: /json_proto [14:26:59]query_string will be loaded in cgi processing [14:26:59]execute_cgi json_proto POST (null) [14:26:59]execute_cgi path=json_proto method=POST [14:26:59]POST find Content-Length [14:26:59]Host: 172.17.38.133:8080 [14:26:59]Content-Length: 1194 [14:26:59]Content-Type: application/json [14:26:59] [14:26:59]POST finish read [14:26:59]Found Content-Length = 1194 [14:26:59]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)673618\u000A21.06.2024 14:04\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\u000A03468\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:26:59]execute_script... [14:26:59]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)673618\u000A21.06.2024 14:04\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\u000A03468\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:26:59]POST & json_proto [14:26:59]process_json_proto [14:26:59]json parsed OK: [14:26:59]protocol is kg_v1.0 [14:26:59]action value=print_text [14:26:59]process_action print_text [14:26:59]cmd_print_text [14:26:59]ExternCall_PrintAddStr [14:26:59]wPrintStart [14:26:59]Write to MH i2c: 01 00 00 46 01 47 [14:26:59]Write i2c OK [14:26:59]MH_I2C_Read... [14:26:59]Read from MH i2c: 01 [14:26:59]MH_I2C_Read... [14:26:59]Read from MH i2c: 01 07 00 [14:26:59]MH_I2C_Read... [14:26:59]Read from MH i2c: 01 07 00 46 01 00 00 00 00 00 FF 0F 5C [14:26:59]RasterBufferAndPrint [14:26:59]line *****ТОВАРНЫЙ ЧЕК***** [14:26:59]line АЗС 120 [14:26:59]line Партнер нефть [14:26:59]line 02508201610067 [14:26:59]line Кассир : Асанбаев Н. [14:26:59]line Счет N : (1)673618 [14:26:59]line 21.06.2024 14:04 [14:26:59]line ПРОДАЖА [14:26:59]line ТРК (МРК, ГНК): 42 [14:26:59]line Вид ГСМ : 2710124130 [14:26:59]line Аи-92-К-5 [14:26:59]line 10.000 x 66.40 [14:26:59]line ИТОГ: 664.00 [14:26:59]line Тип оплаты: Талоны: Топливная Карта [14:26:59]line 03468 [14:26:59]line ______________________ [14:26:59]line (подпись) [14:26:59]written 0, free lines is 4095 [14:26:59]Write to MH i2c: 01 00 00 5A 01 5B [14:26:59]Write i2c OK [14:26:59]MH_I2C_Read... [14:26:59]Read from MH i2c: 01 [14:26:59]MH_I2C_Read... [14:26:59]Read from MH i2c: 01 07 00 [14:26:59]MH_I2C_Read... [14:26:59]Read from MH i2c: 01 07 00 5A 01 00 00 00 00 00 11 0E 81 [14:26:59]RasterBufferAndPrint [14:26:59]line [14:26:59]line [14:26:59]line [14:26:59]line [14:26:59]line [14:26:59]written 0, free lines is 3602 [14:26:59]MH_Cut [14:26:59]Write to MH i2c: D1 01 00 61 01 01 34 [14:26:59]Write i2c OK [14:26:59]MH_I2C_Read... [14:26:59]Read from MH i2c: D1 [14:26:59]MH_I2C_Read... [14:26:59]Read from MH i2c: D1 01 00 [14:26:59]MH_I2C_Read... [14:26:59]Read from MH i2c: D1 01 00 61 01 00 33 [14:26:59]Write to MH i2c: 01 00 00 62 01 63 [14:26:59]Write i2c OK [14:26:59]MH_I2C_Read... [14:26:59]OFD Sender: No OFD packet to send [14:26:59]*** Cut start [14:26:59]*** Partial cut [14:26:59]*** CUTSNS_PIN = 1 [14:27:00]*** CUTSNS_PIN = 0 [14:27:00]*** Brake cut motor [14:27:00]Read from MH i2c: 01 [14:27:00]MH_I2C_Read... [14:27:00]*** Stop cut motor [14:27:00]*** Cut end [14:27:00]Read from MH i2c: 01 07 00 [14:27:00]MH_I2C_Read... [14:27:00]Read from MH i2c: 01 07 00 62 01 00 00 00 00 00 FF 0F 78 [14:27:00]process_action print_text done [14:27:00]requested_data is exist [14:27:00]produce_requested_data [14:27:00]requested_item fm.sn is exist - process it [14:27:00]wFMCommunicate request_size=4 [14:27:00]MH_SAM_APDU [14:27:00]CAPDU: 80 11 00 00 [14:27:00]Write to MH i2c: E2 08 00 63 01 80 11 00 00 00 00 00 00 DE [14:27:00]Write i2c OK [14:27:00]MH_I2C_Read... [14:27:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:27:00]Read from MH i2c: E2 [14:27:00]MH_I2C_Read... [14:27:00]Read from MH i2c: E2 17 00 [14:27:00]MH_I2C_Read... [14:27:00]Read from MH i2c: E2 17 00 63 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 31 [14: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 [14:27:00]wFMCommunicate OK [14:27:00]requested_item fd.num is exist - process it [14:27:00]SAM_PROTO_GetFieldsCounters [14:27:00]wFMCommunicate request_size=4 [14:27:00]MH_SAM_APDU [14:27:00]CAPDU: 80 13 00 00 [14:27:00]Write to MH i2c: E2 08 00 64 01 80 13 00 00 00 00 00 00 E1 [14:27:00]Write i2c OK [14:27:00]MH_I2C_Read... [14:27:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:27:00]Read from MH i2c: E2 [14:27:00]MH_I2C_Read... [14:27:00]Read from MH i2c: E2 62 00 [14:27:00]MH_I2C_Read... [14:27:00]Read from MH i2c: E2 62 00 64 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 F8 96 01 00 0E 04 04 00 63 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 3C [14:27: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 F8 96 01 00 0E 04 04 00 63 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 [14:27:00]wFMCommunicate OK [14:27:00]SAM_PROTO_GetFieldsCounters done [14:27:00]requested_item shift.num is exist - process it [14:27:00]requested_item shift.opened is exist - process it [14:27:00]req_shift_opened [14:27:00]FM_GetShiftState [14:27:00]SAM_PROTO_GetShiftState [14:27:00]wFMCommunicate request_size=4 [14:27:00]MH_SAM_APDU [14:27:00]CAPDU: 80 13 01 00 [14:27:00]Write to MH i2c: E2 08 00 65 01 80 13 01 00 00 00 00 00 E3 [14:27:00]Write i2c OK [14:27:00]MH_I2C_Read... [14:27:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:27:00]Read from MH i2c: E2 [14:27:00]MH_I2C_Read... [14:27:00]Read from MH i2c: E2 0E 00 [14:27:00]MH_I2C_Read... [14:27:00]Read from MH i2c: E2 0E 00 65 01 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 F6 [14:27:00]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [14:27:00]wFMCommunicate OK [14:27:00]SAM_PROTO_GetShiftState done [14:27:00]FM_GetShiftState done [14:27:00]req_shift_opened done [14:27:00]requested_item shift.open_date is exist - process it [14:27:00]req_shift_open_date [14:27:00]req_shift_open_date done [14:27:00]produce_requested_data done [14:27:00]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104184,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [14:27:00]process_action_free print_text [14:27:00]json_value_free [14:27:00]json_value_free done [14:27:00]process_json_proto returns [14:27:00]Send response to host [14:27:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104184,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [14:27:00]free response buf [14:27:00]execute_script done [14:27:00]execute_script returns [14:27:00]free content buf [14:27:00]Sock 9.Close socket [14:27:00]Sock 9.Thread stoped [14:27:04]OFD Sender: No OFD packet to send [14:27:09]OFD Sender: No OFD packet to send [14:27:14]OFD Sender: No OFD packet to send [14:27:19]OFD Sender: No OFD packet to send [14:27:24]OFD Sender: No OFD packet to send [14:27:29]OFD Sender: No OFD packet to send [14:27:34]OFD Sender: No OFD packet to send [14:27:39]OFD Sender: No OFD packet to send [14:27:44]OFD Sender: No OFD packet to send [14:27:49]OFD Sender: No OFD packet to send [14:27:54]OFD Sender: No OFD packet to send [14:27:59]OFD Sender: No OFD packet to send [14:28:04]OFD Sender: No OFD packet to send [14:28:09]OFD Sender: No OFD packet to send [14:28:14]OFD Sender: No OFD packet to send [14:28:19]OFD Sender: No OFD packet to send [14:28:24]OFD Sender: No OFD packet to send [14:28:29]OFD Sender: No OFD packet to send [14:28:34]OFD Sender: No OFD packet to send [14:28:39]OFD Sender: No OFD packet to send [14:28:44]OFD Sender: No OFD packet to send [14:28:49]OFD Sender: No OFD packet to send [14:28:54]OFD Sender: No OFD packet to send [14:28:59]OFD Sender: No OFD packet to send [14:29:04]OFD Sender: No OFD packet to send [14:29:09]OFD Sender: No OFD packet to send [14:29:14]OFD Sender: No OFD packet to send [14:29:19]OFD Sender: No OFD packet to send [14:29:25]OFD Sender: No OFD packet to send [14:29:30]OFD Sender: No OFD packet to send [14:29:35]OFD Sender: No OFD packet to send [14:29:40]OFD Sender: No OFD packet to send [14:29:45]OFD Sender: No OFD packet to send [14:29:50]OFD Sender: No OFD packet to send [16:01:50]Read from MH i2c: E2 [16:01:50]MH_I2C_Read... [16:01:50]Read from MH i2c: E2 FD 00 [16:01:50]MH_I2C_Read... [16:01:50]Read from MH i2c: E2 FD 00 19 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 90 00 B3 [16:01:50]RAPDU: 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 90 00 [16:01:50]wFMCommunicate OK [16:01:50]wFMCommunicate request_size=4 [16:01:50]MH_SAM_APDU [16:01:50]CAPDU: 80 17 00 00 [16:01:50]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [16:01:50]Write i2c OK [16:01:50]MH_I2C_Read... [16:01:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:01:51]Read from MH i2c: E2 [16:01:51]MH_I2C_Read... [16:01:51]Read from MH i2c: E2 FD 00 [16:01:51]MH_I2C_Read... [16:01:51]Read from MH i2c: E2 FD 00 1A 00 00 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 90 00 57 [16:01:51]RAPDU: 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 90 00 [16:01:51]wFMCommunicate OK [16:01:51]wFMCommunicate request_size=4 [16:01:51]MH_SAM_APDU [16:01:51]CAPDU: 80 17 00 00 [16:01:51]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [16:01:51]Write i2c OK [16:01:51]MH_I2C_Read... [16:01:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:01:51]Read from MH i2c: E2 [16:01:51]MH_I2C_Read... [16:01:51]Read from MH i2c: E2 FD 00 [16:01:51]MH_I2C_Read... [16:01:51]Read from MH i2c: E2 FD 00 1B 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 0E [16:01:51]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [16:01:51]wFMCommunicate OK [16:01:51]wFMCommunicate request_size=4 [16:01:51]MH_SAM_APDU [16:01:51]CAPDU: 80 17 00 00 [16:01:51]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [16:01:51]Write i2c OK [16:01:51]MH_I2C_Read... [16:01:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 202! [16:01:51]Read from MH i2c: E2 [16:01:51]MH_I2C_Read... [16:01:51]Read from MH i2c: E2 CD 00 [16:01:51]MH_I2C_Read... [16:01:51]Read from MH i2c: E2 CD 00 1C 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 80 [16:01:51]RAPDU: 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [16:01:51]wFMCommunicate OK [16:01:51]SAM_PROTO_GetShiftData done [16:01:51]requested_item shift.sale.total_cash is exist - process it [16:01:51]requested_item shift.sale_refund.total is exist - process it [16:01:51]requested_item shift.sale_refund.total_cash is exist - process it [16:01:51]requested_item shift.buy.total is exist - process it [16:01:51]requested_item shift.buy.total_cash is exist - process it [16:01:51]produce_requested_data done [16:01:51]produce_requested_data return {"fm.sale.total":182625325.79,"fm.sale_refund.total":4048941.00,"fm.buy.total":0.00,"shift.sale.total":188334.30,"shift.sale.total_cash":108234.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} [16:01:51]process_action_free get_value [16:01:51]json_value_free [16:01:51]json_value_free done [16:01:51]process_json_proto returns [16:01:51]Send response to host [16:01:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":182625325.79,"fm.sale_refund.total":4048941.00,"fm.buy.total":0.00,"shift.sale.total":188334.30,"shift.sale.total_cash":108234.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}}} [16:01:51]free response buf [16:01:51]execute_script done [16:01:51]execute_script returns [16:01:51]free content buf [16:01:51]Sock 7.Close socket [16:01:51]Sock 7.Thread stoped [16:01:51]ConnectInit Can't connect to host [16:01:54]OFD Sender: No OFD packet to send [16:01:56]ConnectInit Can't connect to host [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:54]OFD Sender: No OFD packet to send [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]OFD Sender: No OFD packet to send [16:03:24]OFD Sender: No OFD packet to send [16:03:29]OFD Sender: No OFD packet to send [16:03:34]OFD Sender: No OFD packet to send [16:03:39]OFD Sender: No OFD packet to send [16:03:44]OFD Sender: No OFD packet to send [16:03:49]OFD Sender: No OFD packet to send [16:03:54]OFD Sender: No OFD packet to send [16:03:59]OFD Sender: No OFD packet to send [16:04:04]OFD Sender: No OFD packet to send [16:04:09]OFD Sender: No OFD packet to send [16:04:14]OFD Sender: No OFD packet to send [16:04:19]OFD Sender: No OFD packet to send [16:04:24]OFD Sender: No OFD packet to send [16:04:29]OFD Sender: No OFD packet to send [16:04:34]OFD Sender: No OFD packet to send [16:04:39]OFD Sender: No OFD packet to send [16:04:44]OFD Sender: No OFD packet to send [16:04:49]OFD Sender: No OFD packet to send [16:04:54]OFD Sender: No OFD packet to send [16:04:59]OFD Sender: No OFD packet to send [16:05:04]OFD Sender: No OFD packet to send [16:05:09]OFD Sender: No OFD packet to send [16:05:14]OFD Sender: No OFD packet to send [16:05:19]OFD Sender: No OFD packet to send [16:05:24]OFD Sender: No OFD packet to send [16:05:29]OFD Sender: No OFD packet to send [16:05:34]OFD Sender: No OFD packet to send [16:05:39]OFD Sender: No OFD packet to send [16:05:44]OFD Sender: No OFD packet to send [16:05:49]OFD Sender: No OFD packet to send [16:05:54]OFD Sender: No OFD packet to send [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:37]accept exits with 9 [16:06:37]New connection [16:06:37]New thread 3066932580 created [16:06:37]Thread 3066789220 joined [16:06:37]Waiting for new connection... [16:06:37] Sock 9.Parse request [16:06:37]Sock 9.Check first char [16:06:37]Sock 9.First char is OK [16:06:37]request: POST /json_proto HTTP/1.0 [16:06:37]Method: POST [16:06:37]URL: /json_proto [16:06:37]Method is POST - this is cgi request [16:06:37]url: /json_proto [16:06:37]query_string will be loaded in cgi processing [16:06:37]execute_cgi json_proto POST (null) [16:06:37]execute_cgi path=json_proto method=POST [16:06:37]POST find Content-Length [16:06:37]Host: 172.17.38.133:8080 [16:06:37]Content-Length: 215 [16:06:37]Content-Type: application/json [16:06:37] [16:06:37]POST finish read [16:06:37]Found Content-Length = 215 [16:06:37]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" ] } } [16:06:37]execute_script... [16:06:37]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" ] } } [16:06:37]POST & json_proto [16:06:37]process_json_proto [16:06:37]json parsed OK: [16:06:37]protocol is kg_v1.0 [16:06:37]action value=get_value [16:06:37]process_action get_value [16:06:37]cmd_get_value [16:06:37]process_action get_value done [16:06:37]requested_data is exist [16:06:37]produce_requested_data [16:06:37]requested_item kkm.sn is exist - process it [16:06:37]requested_item kkm.ver is exist - process it [16:06:37]requested_item fm.sn is exist - process it [16:06:37]wFMCommunicate request_size=4 [16:06:37]MH_SAM_APDU [16:06:37]CAPDU: 80 11 00 00 [16:06:37]Write to MH i2c: E2 08 00 1D 00 80 11 00 00 00 00 00 00 97 [16:06:37]Write i2c OK [16:06:37]MH_I2C_Read... [16:06:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:06:37]Read from MH i2c: E2 [16:06:37]MH_I2C_Read... [16:06:37]Read from MH i2c: E2 17 00 [16:06:37]MH_I2C_Read... [16:06:37]Read from MH i2c: E2 17 00 1D 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 EA [16:06:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [16:06:37]wFMCommunicate OK [16:06:37]requested_item fd.num is exist - process it [16:06:37]SAM_PROTO_GetFieldsCounters [16:06:37]wFMCommunicate request_size=4 [16:06:37]MH_SAM_APDU [16:06:37]CAPDU: 80 13 00 00 [16:06:37]Write to MH i2c: E2 08 00 1E 00 80 13 00 00 00 00 00 00 9A [16:06:37]Write i2c OK [16:06:37]MH_I2C_Read... [16:06:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:06:37]Read from MH i2c: E2 [16:06:37]MH_I2C_Read... [16:06:37]Read from MH i2c: E2 62 00 [16:06:37]MH_I2C_Read... [16:06:37]Read from MH i2c: E2 62 00 1E 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 F8 96 01 00 0E 04 04 00 63 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 F5 [16:06:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 96 01 00 0E 04 04 00 63 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 [16:06:37]wFMCommunicate OK [16:06:37]SAM_PROTO_GetFieldsCounters done [16:06:37]requested_item shift.num is exist - process it [16:06:37]requested_item shift.opened is exist - process it [16:06:37]req_shift_opened [16:06:37]FM_GetShiftState [16:06:37]SAM_PROTO_GetShiftState [16:06:37]wFMCommunicate request_size=4 [16:06:37]MH_SAM_APDU [16:06:37]CAPDU: 80 13 01 00 [16:06:37]Write to MH i2c: E2 08 00 1F 00 80 13 01 00 00 00 00 00 9C [16:06:37]Write i2c OK [16:06:37]MH_I2C_Read... [16:06:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:06:37]Read from MH i2c: E2 [16:06:37]MH_I2C_Read... [16:06:37]Read from MH i2c: E2 0E 00 [16:06:37]MH_I2C_Read... [16:06:37]Read from MH i2c: E2 0E 00 1F 00 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 AF [16:06:37]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [16:06:37]wFMCommunicate OK [16:06:37]SAM_PROTO_GetShiftState done [16:06:37]FM_GetShiftState done [16:06:37]req_shift_opened done [16:06:37]requested_item shift.open_date is exist - process it [16:06:37]req_shift_open_date [16:06:37]req_shift_open_date done [16:06:37]produce_requested_data done [16:06:37]produce_requested_data return {"kkm.sn":"0300000164","kkm.ver":"001","fm.sn":"0000000000875093","fd.num":104184,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [16:06:37]process_action_free get_value [16:06:37]json_value_free [16:06:37]json_value_free done [16:06:37]process_json_proto returns [16:06:37]Send response to host [16:06:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000164","kkm.ver":"001","fm.sn":"0000000000875093","fd.num":104184,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [16:06:37]free response buf [16:06:37]execute_script done [16:06:37]execute_script returns [16:06:37]free content buf [16:06:37]Sock 9.Close socket [16:06:37]Sock 9.Thread stoped [16:06:37]accept exits with 7 [16:06:37]New connection [16:06:37]New thread 3066789220 created [16:06:37]Thread 3066932580 joined [16:06:37]Waiting for new connection... [16:06:37] Sock 7.Parse request [16:06:37]Sock 7.Check first char [16:06:37]Sock 7.First char is OK [16:06:37]request: POST /json_proto HTTP/1.0 [16:06:37]Method: POST [16:06:37]URL: /json_proto [16:06:37]Method is POST - this is cgi request [16:06:37]url: /json_proto [16:06:37]query_string will be loaded in cgi processing [16:06:37]execute_cgi json_proto POST (null) [16:06:37]execute_cgi path=json_proto method=POST [16:06:37]POST find Content-Length [16:06:37]Host: 172.17.38.133:8080 [16:06:37]Content-Length: 331 [16:06:37]Content-Type: application/json [16:06:37] [16:06:37]POST finish read [16:06:37]Found Content-Length = 331 [16:06:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [16:06:37]execute_script... [16:06:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [16:06:37]POST & json_proto [16:06:37]process_json_proto [16:06:37]json parsed OK: [16:06:37]protocol is kg_v1.0 [16:06:37]action value=get_value [16:06:37]process_action get_value [16:06:37]cmd_get_value [16:06:37]process_action get_value done [16:06:37]requested_data is exist [16:06:37]produce_requested_data [16:06:37]requested_item fm.sale.total is exist - process it [16:06:37]SAM_PROTO_GetFMData [16:06:37]wFMCommunicate request_size=4 [16:06:37]MH_SAM_APDU [16:06:37]CAPDU: 80 13 03 00 [16:06:37]Write to MH i2c: E2 08 00 20 00 80 13 03 00 00 00 00 00 9F [16:06:37]Write i2c OK [16:06:37]MH_I2C_Read... [16:06:38]Read from MH i2c: E2 [16:06:38]MH_I2C_Read... [16:06:38]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [16:06:38]Read from MH i2c: E2 FD 00 [16:06:38]MH_I2C_Read... [16:06:38]Read from MH i2c: E2 FD 00 20 00 00 C5 04 85 04 C1 04 6E 04 04 00 32 94 01 00 69 04 A3 00 6F 04 04 00 D9 8F 01 00 B1 04 05 00 E3 21 88 40 04 70 04 05 00 88 ED C1 5B 03 72 04 04 00 5B 34 C6 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 2F A8 9C 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 AE 41 A2 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 C7 [16:06:38]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 32 94 01 00 69 04 A3 00 6F 04 04 00 D9 8F 01 00 B1 04 05 00 E3 21 88 40 04 70 04 05 00 88 ED C1 5B 03 72 04 04 00 5B 34 C6 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 2F A8 9C 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 AE 41 A2 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 [16:06:38]wFMCommunicate OK [16:06:38]wFMCommunicate request_size=4 [16:06:38]MH_SAM_APDU [16:06:38]CAPDU: 80 17 00 00 [16:06:38]Write to MH i2c: E2 08 00 21 00 80 17 00 00 00 00 00 00 A1 [16:06:38]Write i2c OK [16:06:38]MH_I2C_Read... [16:06:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:06:38]Read from MH i2c: E2 [16:06:38]MH_I2C_Read... [16:06:38]Read from MH i2c: E2 FD 00 [16:06:38]MH_I2C_Read... [16:06:38]Read from MH i2c: E2 FD 00 21 00 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 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 77 [16:06:38]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 [16:06:38]wFMCommunicate OK [16:06:38]wFMCommunicate request_size=4 [16:06:38]MH_SAM_APDU [16:06:38]CAPDU: 80 17 00 00 [16:06:38]Write to MH i2c: E2 08 00 22 00 80 17 00 00 00 00 00 00 A2 [16:06:38]Write i2c OK [16:06:38]MH_I2C_Read... [16:06:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:06:38]Read from MH i2c: E2 [16:06:38]MH_I2C_Read... [16:06:38]Read from MH i2c: E2 FD 00 [16:06:38]MH_I2C_Read... [16:06:38]Read from MH i2c: E2 FD 00 22 00 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 B4 [16:06:38]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [16:06:38]wFMCommunicate OK [16:06:38]wFMCommunicate request_size=4 [16:06:38]MH_SAM_APDU [16:06:38]CAPDU: 80 17 00 00 [16:06:38]Write to MH i2c: E2 08 00 23 00 80 17 00 00 00 00 00 00 A3 [16:06:38]Write i2c OK [16:06:38]MH_I2C_Read... [16:06:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:06:39]Read from MH i2c: E2 [16:06:39]MH_I2C_Read... [16:06:39]Read from MH i2c: E2 FD 00 [16:06:39]MH_I2C_Read... [16:06:39]Read from MH i2c: E2 FD 00 23 00 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 2F [16:06:39]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 [16:06:39]wFMCommunicate OK [16:06:39]wFMCommunicate request_size=4 [16:06:39]MH_SAM_APDU [16:06:39]CAPDU: 80 17 00 00 [16:06:39]Write to MH i2c: E2 08 00 24 00 80 17 00 00 00 00 00 00 A4 [16:06:39]Write i2c OK [16:06:39]MH_I2C_Read... [16:06:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [16:06:39]Read from MH i2c: E2 [16:06:39]MH_I2C_Read... [16:06:39]Read from MH i2c: E2 E2 00 [16:06:39]MH_I2C_Read... [16:06:39]Read from MH i2c: E2 E2 00 24 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 82 [16:06:39]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 [16:06:39]wFMCommunicate OK [16:06:39]SAM_PROTO_GetFMData done [16:06:39]requested_item fm.sale_refund.total is exist - process it [16:06:39]requested_item fm.buy.total is exist - process it [16:06:39]requested_item shift.sale.total is exist - process it [16:06:39]SAM_PROTO_GetShiftData [16:06:39]wFMCommunicate request_size=4 [16:06:39]MH_SAM_APDU [16:06:39]CAPDU: 80 13 02 00 [16:06:39]Write to MH i2c: E2 08 00 25 00 80 13 02 00 00 00 00 00 A3 [16:06:39]Write i2c OK [16:06:39]MH_I2C_Read... [16:06:39]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [16:06:39]Read from MH i2c: E2 [16:06:39]MH_I2C_Read... [16:06:39]Read from MH i2c: E2 FD 00 [16:06:39]MH_I2C_Read... [16:06:39]Read from MH i2c: E2 FD 00 25 00 00 B0 04 AA 04 AC 04 6E 04 04 00 6B 00 00 00 69 04 9D 00 6F 04 04 00 6B 00 00 00 B1 04 04 00 16 60 1F 01 70 04 03 00 E8 26 A5 72 04 03 00 2E 39 7A 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 EB 85 1E 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 19 8B 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 AA [16:06:39]RAPDU: B0 04 AA 04 AC 04 6E 04 04 00 6B 00 00 00 69 04 9D 00 6F 04 04 00 6B 00 00 00 B1 04 04 00 16 60 1F 01 70 04 03 00 E8 26 A5 72 04 03 00 2E 39 7A 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 EB 85 1E 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 19 8B 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [16:06:39]wFMCommunicate OK [16:06:39]wFMCommunicate request_size=4 [16:06:39]MH_SAM_APDU [16:06:39]CAPDU: 80 17 00 00 [16:06:39]Write to MH i2c: E2 08 00 26 00 80 17 00 00 00 00 00 00 A6 [16:06:39]Write i2c OK [16:06:39]MH_I2C_Read... [16:06:39]OFD Sender: No OFD packet to send [16:06:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:06:40]Read from MH i2c: E2 [16:06:40]MH_I2C_Read... [16:06:40]Read from MH i2c: E2 FD 00 [16:06:40]MH_I2C_Read... [16:06:40]Read from MH i2c: E2 FD 00 26 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 90 00 C0 [16:06:40]RAPDU: 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 90 00 [16:06:40]wFMCommunicate OK [16:06:40]wFMCommunicate request_size=4 [16:06:40]MH_SAM_APDU [16:06:40]CAPDU: 80 17 00 00 [16:06:40]Write to MH i2c: E2 08 00 27 00 80 17 00 00 00 00 00 00 A7 [16:06:40]Write i2c OK [16:06:40]MH_I2C_Read... [16:06:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:06:40]Read from MH i2c: E2 [16:06:40]MH_I2C_Read... [16:06:40]Read from MH i2c: E2 FD 00 [16:06:40]MH_I2C_Read... [16:06:40]Read from MH i2c: E2 FD 00 27 00 00 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 90 00 64 [16:06:40]RAPDU: 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 90 00 [16:06:40]wFMCommunicate OK [16:06:40]wFMCommunicate request_size=4 [16:06:40]MH_SAM_APDU [16:06:40]CAPDU: 80 17 00 00 [16:06:40]Write to MH i2c: E2 08 00 28 00 80 17 00 00 00 00 00 00 A8 [16:06:40]Write i2c OK [16:06:40]MH_I2C_Read... [16:06:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:06:40]Read from MH i2c: E2 [16:06:40]MH_I2C_Read... [16:06:40]Read from MH i2c: E2 FD 00 [16:06:40]MH_I2C_Read... [16:06:40]Read from MH i2c: E2 FD 00 28 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 1B [16:06:40]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [16:06:40]wFMCommunicate OK [16:06:40]wFMCommunicate request_size=4 [16:06:40]MH_SAM_APDU [16:06:40]CAPDU: 80 17 00 00 [16:06:40]Write to MH i2c: E2 08 00 29 00 80 17 00 00 00 00 00 00 A9 [16:06:40]Write i2c OK [16:06:40]MH_I2C_Read... [16:06:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 202! [16:06:40]Read from MH i2c: E2 [16:06:40]MH_I2C_Read... [16:06:40]Read from MH i2c: E2 CD 00 [16:06:40]MH_I2C_Read... [16:06:40]Read from MH i2c: E2 CD 00 29 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 8D [16:06:40]RAPDU: 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [16:06:40]wFMCommunicate OK [16:06:40]SAM_PROTO_GetShiftData done [16:06:40]requested_item shift.sale.total_cash is exist - process it [16:06:40]requested_item shift.sale_refund.total is exist - process it [16:06:40]requested_item shift.sale_refund.total_cash is exist - process it [16:06:40]requested_item shift.buy.total is exist - process it [16:06:40]requested_item shift.buy.total_cash is exist - process it [16:06:40]produce_requested_data done [16:06:40]produce_requested_data return {"fm.sale.total":182625325.79,"fm.sale_refund.total":4048941.00,"fm.buy.total":0.00,"shift.sale.total":188334.30,"shift.sale.total_cash":108234.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} [16:06:40]process_action_free get_value [16:06:40]json_value_free [16:06:40]json_value_free done [16:06:40]process_json_proto returns [16:06:40]Send response to host [16:06:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":182625325.79,"fm.sale_refund.total":4048941.00,"fm.buy.total":0.00,"shift.sale.total":188334.30,"shift.sale.total_cash":108234.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}}} [16:06:40]free response buf [16:06:40]execute_script done [16:06:40]execute_script returns [16:06:40]free content buf [16:06:40]Sock 7.Close socket [16:06:40]Sock 7.Thread stoped [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]OFD Sender: No OFD packet to send [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:30]accept exits with 9 [16:09:30]New connection [16:09:30]New thread 3066932580 created [16:09:30]Thread 3066789220 joined [16:09:30]Waiting for new connection... [16:09:30] Sock 9.Parse request [16:09:30]Sock 9.Check first char [16:09:30]Sock 9.First char is OK [16:09:30]request: POST /json_proto HTTP/1.0 [16:09:30]Method: POST [16:09:30]URL: /json_proto [16:09:30]Method is POST - this is cgi request [16:09:30]url: /json_proto [16:09:30]query_string will be loaded in cgi processing [16:09:30]execute_cgi json_proto POST (null) [16:09:30]execute_cgi path=json_proto method=POST [16:09:30]POST find Content-Length [16:09:30]Host: 172.17.38.133:8080 [16:09:30]Content-Length: 215 [16:09:30]Content-Type: application/json [16:09:30] [16:09:30]POST finish read [16:09:30]Found Content-Length = 215 [16:09:30]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" ] } } [16:09:30]execute_script... [16:09:30]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" ] } } [16:09:30]POST & json_proto [16:09:30]process_json_proto [16:09:30]json parsed OK: [16:09:30]protocol is kg_v1.0 [16:09:30]action value=get_value [16:09:30]process_action get_value [16:09:30]cmd_get_value [16:09:30]process_action get_value done [16:09:30]requested_data is exist [16:09:30]produce_requested_data [16:09:30]requested_item kkm.sn is exist - process it [16:09:30]requested_item kkm.ver is exist - process it [16:09:30]requested_item fm.sn is exist - process it [16:09:30]wFMCommunicate request_size=4 [16:09:30]MH_SAM_APDU [16:09:30]CAPDU: 80 11 00 00 [16:09:30]Write to MH i2c: E2 08 00 2A 00 80 11 00 00 00 00 00 00 A4 [16:09:30]Write i2c OK [16:09:30]MH_I2C_Read... [16:09:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:09:30]Read from MH i2c: E2 [16:09:30]MH_I2C_Read... [16:09:30]Read from MH i2c: E2 17 00 [16:09:30]MH_I2C_Read... [16:09:30]Read from MH i2c: E2 17 00 2A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 F7 [16: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 [16:09:30]wFMCommunicate OK [16:09:30]requested_item fd.num is exist - process it [16:09:30]SAM_PROTO_GetFieldsCounters [16:09:30]wFMCommunicate request_size=4 [16:09:30]MH_SAM_APDU [16:09:30]CAPDU: 80 13 00 00 [16:09:30]Write to MH i2c: E2 08 00 2B 00 80 13 00 00 00 00 00 00 A7 [16:09:30]Write i2c OK [16:09:30]MH_I2C_Read... [16:09:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:09:30]Read from MH i2c: E2 [16:09:30]MH_I2C_Read... [16:09:30]Read from MH i2c: E2 62 00 [16:09:30]MH_I2C_Read... [16:09:30]Read from MH i2c: E2 62 00 2B 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 F8 96 01 00 0E 04 04 00 63 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 02 [16:09:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 96 01 00 0E 04 04 00 63 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 [16:09:30]wFMCommunicate OK [16:09:30]SAM_PROTO_GetFieldsCounters done [16:09:30]requested_item shift.num is exist - process it [16:09:30]requested_item shift.opened is exist - process it [16:09:30]req_shift_opened [16:09:30]FM_GetShiftState [16:09:30]SAM_PROTO_GetShiftState [16:09:30]wFMCommunicate request_size=4 [16:09:30]MH_SAM_APDU [16:09:30]CAPDU: 80 13 01 00 [16:09:30]Write to MH i2c: E2 08 00 2C 00 80 13 01 00 00 00 00 00 A9 [16:09:30]Write i2c OK [16:09:30]MH_I2C_Read... [16:09:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:09:30]Read from MH i2c: E2 [16:09:30]MH_I2C_Read... [16:09:30]Read from MH i2c: E2 0E 00 [16:09:30]MH_I2C_Read... [16:09:30]Read from MH i2c: E2 0E 00 2C 00 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 BC [16:09:30]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [16:09:30]wFMCommunicate OK [16:09:30]SAM_PROTO_GetShiftState done [16:09:30]FM_GetShiftState done [16:09:30]req_shift_opened done [16:09:30]requested_item shift.open_date is exist - process it [16:09:30]req_shift_open_date [16:09:30]req_shift_open_date done [16:09:30]produce_requested_data done [16:09:30]produce_requested_data return {"kkm.sn":"0300000164","kkm.ver":"001","fm.sn":"0000000000875093","fd.num":104184,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [16:09:30]process_action_free get_value [16:09:30]json_value_free [16:09:30]json_value_free done [16:09:30]process_json_proto returns [16:09:30]Send response to host [16:09:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000164","kkm.ver":"001","fm.sn":"0000000000875093","fd.num":104184,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [16:09:30]free response buf [16:09:30]execute_script done [16:09:30]execute_script returns [16:09:30]free content buf [16:09:30]Sock 9.Close socket [16:09:30]Sock 9.Thread stoped [16:09:30]accept exits with 7 [16:09:30]New connection [16:09:30]New thread 3066789220 created [16:09:30]Thread 3066932580 joined [16:09:30]Waiting for new connection... [16:09:30] Sock 7.Parse request [16:09:30]Sock 7.Check first char [16:09:30]Sock 7.First char is OK [16:09:30]request: POST /json_proto HTTP/1.0 [16:09:30]Method: POST [16:09:30]URL: /json_proto [16:09:30]Method is POST - this is cgi request [16:09:30]url: /json_proto [16:09:30]query_string will be loaded in cgi processing [16:09:30]execute_cgi json_proto POST (null) [16:09:30]execute_cgi path=json_proto method=POST [16:09:30]POST find Content-Length [16:09:30]Host: 172.17.38.133:8080 [16:09:30]Content-Length: 331 [16:09:30]Content-Type: application/json [16:09:30] [16:09:30]POST finish read [16:09:30]Found Content-Length = 331 [16:09:30]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" ] } } [16:09:30]execute_script... [16:09:30]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" ] } } [16:09:30]POST & json_proto [16:09:30]process_json_proto [16:09:30]json parsed OK: [16:09:30]protocol is kg_v1.0 [16:09:30]action value=get_value [16:09:30]process_action get_value [16:09:30]cmd_get_value [16:09:30]process_action get_value done [16:09:30]requested_data is exist [16:09:30]produce_requested_data [16:09:30]requested_item fm.sale.total is exist - process it [16:09:30]SAM_PROTO_GetFMData [16:09:30]wFMCommunicate request_size=4 [16:09:30]MH_SAM_APDU [16:09:30]CAPDU: 80 13 03 00 [16:09:30]Write to MH i2c: E2 08 00 2D 00 80 13 03 00 00 00 00 00 AC [16:09:30]Write i2c OK [16:09:30]MH_I2C_Read... [16:09:31]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [16:09:31]Read from MH i2c: E2 [16:09:31]MH_I2C_Read... [16:09:31]Read from MH i2c: E2 FD 00 [16:09:31]MH_I2C_Read... [16:09:31]Read from MH i2c: E2 FD 00 2D 00 00 C5 04 85 04 C1 04 6E 04 04 00 32 94 01 00 69 04 A3 00 6F 04 04 00 D9 8F 01 00 B1 04 05 00 E3 21 88 40 04 70 04 05 00 88 ED C1 5B 03 72 04 04 00 5B 34 C6 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 2F A8 9C 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 AE 41 A2 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 D4 [16:09:31]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 32 94 01 00 69 04 A3 00 6F 04 04 00 D9 8F 01 00 B1 04 05 00 E3 21 88 40 04 70 04 05 00 88 ED C1 5B 03 72 04 04 00 5B 34 C6 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 2F A8 9C 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 AE 41 A2 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 [16:09:31]wFMCommunicate OK [16:09:31]wFMCommunicate request_size=4 [16:09:31]MH_SAM_APDU [16:09:31]CAPDU: 80 17 00 00 [16:09:31]Write to MH i2c: E2 08 00 2E 00 80 17 00 00 00 00 00 00 AE [16:09:31]Write i2c OK [16:09:31]MH_I2C_Read... [16:09:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:09:31]Read from MH i2c: E2 [16:09:31]MH_I2C_Read... [16:09:31]Read from MH i2c: E2 FD 00 [16:09:31]MH_I2C_Read... [16:09:31]Read from MH i2c: E2 FD 00 2E 00 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 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 84 [16:09:31]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 [16:09:31]wFMCommunicate OK [16:09:31]wFMCommunicate request_size=4 [16:09:31]MH_SAM_APDU [16:09:31]CAPDU: 80 17 00 00 [16:09:31]Write to MH i2c: E2 08 00 2F 00 80 17 00 00 00 00 00 00 AF [16:09:31]Write i2c OK [16:09:31]MH_I2C_Read... [16:09:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:09:31]Read from MH i2c: E2 [16:09:31]MH_I2C_Read... [16:09:31]Read from MH i2c: E2 FD 00 [16:09:31]MH_I2C_Read... [16:09:31]Read from MH i2c: E2 FD 00 2F 00 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 C1 [16:09:31]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 [16:09:31]wFMCommunicate OK [16:09:31]wFMCommunicate request_size=4 [16:09:31]MH_SAM_APDU [16:09:31]CAPDU: 80 17 00 00 [16:09:31]Write to MH i2c: E2 08 00 30 00 80 17 00 00 00 00 00 00 B0 [16:09:31]Write i2c OK [16:09:31]MH_I2C_Read... [16:09:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:09:32]Read from MH i2c: E2 [16:09:32]MH_I2C_Read... [16:09:32]Read from MH i2c: E2 FD 00 [16:09:32]MH_I2C_Read... [16:09:32]Read from MH i2c: E2 FD 00 30 00 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 3C [16:09:32]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 [16:09:32]wFMCommunicate OK [16:09:32]wFMCommunicate request_size=4 [16:09:32]MH_SAM_APDU [16:09:32]CAPDU: 80 17 00 00 [16:09:32]Write to MH i2c: E2 08 00 31 00 80 17 00 00 00 00 00 00 B1 [16:09:32]Write i2c OK [16:09:32]MH_I2C_Read... [16:09:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [16:09:32]Read from MH i2c: E2 [16:09:32]MH_I2C_Read... [16:09:32]Read from MH i2c: E2 E2 00 [16:09:32]MH_I2C_Read... [16:09:32]Read from MH i2c: E2 E2 00 31 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 8F [16:09:32]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 [16:09:32]wFMCommunicate OK [16:09:32]SAM_PROTO_GetFMData done [16:09:32]requested_item fm.sale_refund.total is exist - process it [16:09:32]requested_item fm.buy.total is exist - process it [16:09:32]requested_item shift.sale.total is exist - process it [16:09:32]SAM_PROTO_GetShiftData [16:09:32]wFMCommunicate request_size=4 [16:09:32]MH_SAM_APDU [16:09:32]CAPDU: 80 13 02 00 [16:09:32]Write to MH i2c: E2 08 00 32 00 80 13 02 00 00 00 00 00 B0 [16:09:32]Write i2c OK [16:09:32]MH_I2C_Read... [16:09:32]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [16:09:32]Read from MH i2c: E2 [16:09:32]MH_I2C_Read... [16:09:32]Read from MH i2c: E2 FD 00 [16:09:32]MH_I2C_Read... [16:09:32]Read from MH i2c: E2 FD 00 32 00 00 B0 04 AA 04 AC 04 6E 04 04 00 6B 00 00 00 69 04 9D 00 6F 04 04 00 6B 00 00 00 B1 04 04 00 16 60 1F 01 70 04 03 00 E8 26 A5 72 04 03 00 2E 39 7A 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 EB 85 1E 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 19 8B 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 B7 [16:09:32]RAPDU: B0 04 AA 04 AC 04 6E 04 04 00 6B 00 00 00 69 04 9D 00 6F 04 04 00 6B 00 00 00 B1 04 04 00 16 60 1F 01 70 04 03 00 E8 26 A5 72 04 03 00 2E 39 7A 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 EB 85 1E 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 19 8B 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [16:09:32]wFMCommunicate OK [16:09:32]wFMCommunicate request_size=4 [16:09:32]MH_SAM_APDU [16:09:32]CAPDU: 80 17 00 00 [16:09:32]Write to MH i2c: E2 08 00 33 00 80 17 00 00 00 00 00 00 B3 [16:09:32]Write i2c OK [16:09:32]MH_I2C_Read... [16:09:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:09:32]Read from MH i2c: E2 [16:09:32]MH_I2C_Read... [16:09:32]Read from MH i2c: E2 FD 00 [16:09:32]MH_I2C_Read... [16:09:33]Read from MH i2c: E2 FD 00 33 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 90 00 CD [16:09:33]RAPDU: 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 90 00 [16:09:33]wFMCommunicate OK [16:09:33]wFMCommunicate request_size=4 [16:09:33]MH_SAM_APDU [16:09:33]CAPDU: 80 17 00 00 [16:09:33]Write to MH i2c: E2 08 00 34 00 80 17 00 00 00 00 00 00 B4 [16:09:33]Write i2c OK [16:09:33]MH_I2C_Read... [16:09:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:09:33]Read from MH i2c: E2 [16:09:33]MH_I2C_Read... [16:09:33]Read from MH i2c: E2 FD 00 [16:09:33]MH_I2C_Read... [16:09:33]Read from MH i2c: E2 FD 00 34 00 00 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 90 00 71 [16:09:33]RAPDU: 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 90 00 [16:09:33]wFMCommunicate OK [16:09:33]wFMCommunicate request_size=4 [16:09:33]MH_SAM_APDU [16:09:33]CAPDU: 80 17 00 00 [16:09:33]Write to MH i2c: E2 08 00 35 00 80 17 00 00 00 00 00 00 B5 [16:09:33]Write i2c OK [16:09:33]MH_I2C_Read... [16:09:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:09:33]Read from MH i2c: E2 [16:09:33]MH_I2C_Read... [16:09:33]Read from MH i2c: E2 FD 00 [16:09:33]MH_I2C_Read... [16:09:33]Read from MH i2c: E2 FD 00 35 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 28 [16:09:33]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [16:09:33]wFMCommunicate OK [16:09:33]wFMCommunicate request_size=4 [16:09:33]MH_SAM_APDU [16:09:33]CAPDU: 80 17 00 00 [16:09:33]Write to MH i2c: E2 08 00 36 00 80 17 00 00 00 00 00 00 B6 [16:09:33]Write i2c OK [16:09:33]MH_I2C_Read... [16:09:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 202! [16:09:33]Read from MH i2c: E2 [16:09:33]MH_I2C_Read... [16:09:33]Read from MH i2c: E2 CD 00 [16:09:33]MH_I2C_Read... [16:09:33]Read from MH i2c: E2 CD 00 36 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9A [16:09:33]RAPDU: 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [16:09:33]wFMCommunicate OK [16:09:33]SAM_PROTO_GetShiftData done [16:09:33]requested_item shift.sale.total_cash is exist - process it [16:09:33]requested_item shift.sale_refund.total is exist - process it [16:09:33]requested_item shift.sale_refund.total_cash is exist - process it [16:09:33]requested_item shift.buy.total is exist - process it [16:09:33]requested_item shift.buy.total_cash is exist - process it [16:09:33]produce_requested_data done [16:09:33]produce_requested_data return {"fm.sale.total":182625325.79,"fm.sale_refund.total":4048941.00,"fm.buy.total":0.00,"shift.sale.total":188334.30,"shift.sale.total_cash":108234.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} [16:09:33]process_action_free get_value [16:09:33]json_value_free [16:09:33]json_value_free done [16:09:33]process_json_proto returns [16:09:33]Send response to host [16:09:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":182625325.79,"fm.sale_refund.total":4048941.00,"fm.buy.total":0.00,"shift.sale.total":188334.30,"shift.sale.total_cash":108234.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}}} [16:09:33]free response buf [16:09:33]execute_script done [16:09:33]execute_script returns [16:09:33]free content buf [16:09:33]Sock 7.Close socket [16:09:33]Sock 7.Thread stoped [16:09:35]OFD Sender: No OFD packet to send [16:09:40]OFD Sender: No OFD packet to send [16:09:45]OFD Sender: No OFD packet to send [16:09:50]OFD Sender: No OFD packet to send [16:09:55]OFD Sender: No OFD packet to send [16:10:00]OFD Sender: No OFD packet to send [16:10:05]OFD Sender: No OFD packet to send [16:10:10]OFD Sender: No OFD packet to send [16:10:15]OFD Sender: No OFD packet to send [16:10:20]OFD Sender: No OFD packet to send [16:10:25]OFD Sender: No OFD packet to send [16:10:30]OFD Sender: No OFD packet to send [16:10:35]OFD Sender: No OFD packet to send [16:10:40]OFD Sender: No OFD packet to send [16:10:45]OFD Sender: No OFD packet to send [16:10:50]OFD Sender: No OFD packet to send [16:10:51]accept exits with 9 [16:10:51]New connection [16:10:51]New thread 3066932580 created [16:10:51]Thread 3066789220 joined [16:10:51]Waiting for new connection... [16:10:51] Sock 9.Parse request [16:10:51]Sock 9.Check first char [16:10:51]Sock 9.First char is OK [16:10:51]request: POST /json_proto HTTP/1.0 [16:10:51]Method: POST [16:10:51]URL: /json_proto [16:10:51]Method is POST - this is cgi request [16:10:51]url: /json_proto [16:10:51]query_string will be loaded in cgi processing [16:10:51]execute_cgi json_proto POST (null) [16:10:51]execute_cgi path=json_proto method=POST [16:10:51]POST find Content-Length [16:10:51]Host: 172.17.38.133:8080 [16:10:51]Content-Length: 215 [16:10:51]Content-Type: application/json [16:10:51] [16:10:51]POST finish read [16:10:51]Found Content-Length = 215 [16:10:51]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" ] } } [16:10:51]execute_script... [16:10:51]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" ] } } [16:10:51]POST & json_proto [16:10:51]process_json_proto [16:10:51]json parsed OK: [16:10:51]protocol is kg_v1.0 [16:10:51]action value=get_value [16:10:51]process_action get_value [16:10:51]cmd_get_value [16:10:51]process_action get_value done [16:10:51]requested_data is exist [16:10:51]produce_requested_data [16:10:51]requested_item kkm.sn is exist - process it [16:10:51]requested_item kkm.ver is exist - process it [16:10:51]requested_item fm.sn is exist - process it [16:10:51]wFMCommunicate request_size=4 [16:10:51]MH_SAM_APDU [16:10:51]CAPDU: 80 11 00 00 [16:10:51]Write to MH i2c: E2 08 00 37 00 80 11 00 00 00 00 00 00 B1 [16:10:51]Write i2c OK [16:10:51]MH_I2C_Read... [16:10:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:10:51]Read from MH i2c: E2 [16:10:51]MH_I2C_Read... [16:10:51]Read from MH i2c: E2 17 00 [16:10:51]MH_I2C_Read... [16:10:51]Read from MH i2c: E2 17 00 37 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 04 [16:10:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [16:10:51]wFMCommunicate OK [16:10:51]requested_item fd.num is exist - process it [16:10:51]SAM_PROTO_GetFieldsCounters [16:10:51]wFMCommunicate request_size=4 [16:10:51]MH_SAM_APDU [16:10:51]CAPDU: 80 13 00 00 [16:10:51]Write to MH i2c: E2 08 00 38 00 80 13 00 00 00 00 00 00 B4 [16:10:51]Write i2c OK [16:10:51]MH_I2C_Read... [16:10:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:10:51]Read from MH i2c: E2 [16:10:51]MH_I2C_Read... [16:10:51]Read from MH i2c: E2 62 00 [16:10:51]MH_I2C_Read... [16:10:51]Read from MH i2c: E2 62 00 38 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 F8 96 01 00 0E 04 04 00 63 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 0F [16:10: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 F8 96 01 00 0E 04 04 00 63 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 [16:10:51]wFMCommunicate OK [16:10:51]SAM_PROTO_GetFieldsCounters done [16:10:51]requested_item shift.num is exist - process it [16:10:51]requested_item shift.opened is exist - process it [16:10:51]req_shift_opened [16:10:51]FM_GetShiftState [16:10:51]SAM_PROTO_GetShiftState [16:10:51]wFMCommunicate request_size=4 [16:10:51]MH_SAM_APDU [16:10:51]CAPDU: 80 13 01 00 [16:10:51]Write to MH i2c: E2 08 00 39 00 80 13 01 00 00 00 00 00 B6 [16:10:51]Write i2c OK [16:10:51]MH_I2C_Read... [16:10:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:10:51]Read from MH i2c: E2 [16:10:51]MH_I2C_Read... [16:10:51]Read from MH i2c: E2 0E 00 [16:10:51]MH_I2C_Read... [16:10:51]Read from MH i2c: E2 0E 00 39 00 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 C9 [16:10:51]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [16:10:51]wFMCommunicate OK [16:10:51]SAM_PROTO_GetShiftState done [16:10:51]FM_GetShiftState done [16:10:51]req_shift_opened done [16:10:51]requested_item shift.open_date is exist - process it [16:10:51]req_shift_open_date [16:10:51]req_shift_open_date done [16:10:51]produce_requested_data done [16:10:51]produce_requested_data return {"kkm.sn":"0300000164","kkm.ver":"001","fm.sn":"0000000000875093","fd.num":104184,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [16:10:51]process_action_free get_value [16:10:51]json_value_free [16:10:51]json_value_free done [16:10:51]process_json_proto returns [16:10:51]Send response to host [16:10:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000164","kkm.ver":"001","fm.sn":"0000000000875093","fd.num":104184,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [16:10:51]free response buf [16:10:51]execute_script done [16:10:51]execute_script returns [16:10:51]free content buf [16:10:51]Sock 9.Close socket [16:10:51]Sock 9.Thread stoped [16:10:51]accept exits with 7 [16:10:51]New connection [16:10:51]New thread 3066789220 created [16:10:51]Thread 3066932580 joined [16:10:51]Waiting for new connection... [16:10:51] Sock 7.Parse request [16:10:51]Sock 7.Check first char [16:10:51]Sock 7.First char is OK [16:10:51]request: POST /json_proto HTTP/1.0 [16:10:51]Method: POST [16:10:51]URL: /json_proto [16:10:51]Method is POST - this is cgi request [16:10:51]url: /json_proto [16:10:51]query_string will be loaded in cgi processing [16:10:51]execute_cgi json_proto POST (null) [16:10:51]execute_cgi path=json_proto method=POST [16:10:51]POST find Content-Length [16:10:51]Host: 172.17.38.133:8080 [16:10:51]Content-Length: 331 [16:10:51]Content-Type: application/json [16:10:51] [16:10:51]POST finish read [16:10:51]Found Content-Length = 331 [16:10:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [16:10:51]execute_script... [16:10:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [16:10:51]POST & json_proto [16:10:51]process_json_proto [16:10:51]json parsed OK: [16:10:51]protocol is kg_v1.0 [16:10:51]action value=get_value [16:10:51]process_action get_value [16:10:51]cmd_get_value [16:10:51]process_action get_value done [16:10:51]requested_data is exist [16:10:51]produce_requested_data [16:10:51]requested_item fm.sale.total is exist - process it [16:10:51]SAM_PROTO_GetFMData [16:10:51]wFMCommunicate request_size=4 [16:10:51]MH_SAM_APDU [16:10:51]CAPDU: 80 13 03 00 [16:10:51]Write to MH i2c: E2 08 00 3A 00 80 13 03 00 00 00 00 00 B9 [16:10:51]Write i2c OK [16:10:51]MH_I2C_Read... [16:10:52]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [16:10:52]Read from MH i2c: E2 [16:10:52]MH_I2C_Read... [16:10:52]Read from MH i2c: E2 FD 00 [16:10:52]MH_I2C_Read... [16:10:52]Read from MH i2c: E2 FD 00 3A 00 00 C5 04 85 04 C1 04 6E 04 04 00 32 94 01 00 69 04 A3 00 6F 04 04 00 D9 8F 01 00 B1 04 05 00 E3 21 88 40 04 70 04 05 00 88 ED C1 5B 03 72 04 04 00 5B 34 C6 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 2F A8 9C 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 AE 41 A2 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 E1 [16:10:52]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 32 94 01 00 69 04 A3 00 6F 04 04 00 D9 8F 01 00 B1 04 05 00 E3 21 88 40 04 70 04 05 00 88 ED C1 5B 03 72 04 04 00 5B 34 C6 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 2F A8 9C 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 AE 41 A2 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 [16:10:52]wFMCommunicate OK [16:10:52]wFMCommunicate request_size=4 [16:10:52]MH_SAM_APDU [16:10:52]CAPDU: 80 17 00 00 [16:10:52]Write to MH i2c: E2 08 00 3B 00 80 17 00 00 00 00 00 00 BB [16:10:52]Write i2c OK [16:10:52]MH_I2C_Read... [16:10:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:10:52]Read from MH i2c: E2 [16:10:52]MH_I2C_Read... [16:10:52]Read from MH i2c: E2 FD 00 [16:10:52]MH_I2C_Read... [16:10:52]Read from MH i2c: E2 FD 00 3B 00 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 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 91 [16:10:52]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 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 [16:10:52]wFMCommunicate OK [16:10:52]wFMCommunicate request_size=4 [16:10:52]MH_SAM_APDU [16:10:52]CAPDU: 80 17 00 00 [16:10:52]Write to MH i2c: E2 08 00 3C 00 80 17 00 00 00 00 00 00 BC [16:10:52]Write i2c OK [16:10:52]MH_I2C_Read... [16:10:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:10:52]Read from MH i2c: E2 [16:10:52]MH_I2C_Read... [16:10:52]Read from MH i2c: E2 FD 00 [16:10:52]MH_I2C_Read... [16:10:52]Read from MH i2c: E2 FD 00 3C 00 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 CE [16:10:52]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [16:10:52]wFMCommunicate OK [16:10:52]wFMCommunicate request_size=4 [16:10:52]MH_SAM_APDU [16:10:52]CAPDU: 80 17 00 00 [16:10:52]Write to MH i2c: E2 08 00 3D 00 80 17 00 00 00 00 00 00 BD [16:10:52]Write i2c OK [16:10:52]MH_I2C_Read... [16:10:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:10:53]Read from MH i2c: E2 [16:10:53]MH_I2C_Read... [16:10:53]Read from MH i2c: E2 FD 00 [16:10:53]MH_I2C_Read... [16:10:53]Read from MH i2c: E2 FD 00 3D 00 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 49 [16:10:53]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 [16:10:53]wFMCommunicate OK [16:10:53]wFMCommunicate request_size=4 [16:10:53]MH_SAM_APDU [16:10:53]CAPDU: 80 17 00 00 [16:10:53]Write to MH i2c: E2 08 00 3E 00 80 17 00 00 00 00 00 00 BE [16:10:53]Write i2c OK [16:10:53]MH_I2C_Read... [16:10:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [16:10:53]Read from MH i2c: E2 [16:10:53]MH_I2C_Read... [16:10:53]Read from MH i2c: E2 E2 00 [16:10:53]MH_I2C_Read... [16:10:53]Read from MH i2c: E2 E2 00 3E 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9C [16:10:53]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [16:10:53]wFMCommunicate OK [16:10:53]SAM_PROTO_GetFMData done [16:10:53]requested_item fm.sale_refund.total is exist - process it [16:10:53]requested_item fm.buy.total is exist - process it [16:10:53]requested_item shift.sale.total is exist - process it [16:10:53]SAM_PROTO_GetShiftData [16:10:53]wFMCommunicate request_size=4 [16:10:53]MH_SAM_APDU [16:10:53]CAPDU: 80 13 02 00 [16:10:53]Write to MH i2c: E2 08 00 3F 00 80 13 02 00 00 00 00 00 BD [16:10:53]Write i2c OK [16:10:53]MH_I2C_Read... [16:10:53]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [16:10:53]Read from MH i2c: E2 [16:10:53]MH_I2C_Read... [16:10:53]Read from MH i2c: E2 FD 00 [16:10:53]MH_I2C_Read... [16:10:53]Read from MH i2c: E2 FD 00 3F 00 00 B0 04 AA 04 AC 04 6E 04 04 00 6B 00 00 00 69 04 9D 00 6F 04 04 00 6B 00 00 00 B1 04 04 00 16 60 1F 01 70 04 03 00 E8 26 A5 72 04 03 00 2E 39 7A 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 EB 85 1E 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 19 8B 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 C4 [16:10:53]RAPDU: B0 04 AA 04 AC 04 6E 04 04 00 6B 00 00 00 69 04 9D 00 6F 04 04 00 6B 00 00 00 B1 04 04 00 16 60 1F 01 70 04 03 00 E8 26 A5 72 04 03 00 2E 39 7A 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 EB 85 1E 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 19 8B 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [16:10:53]wFMCommunicate OK [16:10:53]wFMCommunicate request_size=4 [16:10:53]MH_SAM_APDU [16:10:53]CAPDU: 80 17 00 00 [16:10:53]Write to MH i2c: E2 08 00 40 00 80 17 00 00 00 00 00 00 C0 [16:10:53]Write i2c OK [16:10:53]MH_I2C_Read... [16:10:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:10:54]Read from MH i2c: E2 [16:10:54]MH_I2C_Read... [16:10:54]Read from MH i2c: E2 FD 00 [16:10:54]MH_I2C_Read... [16:10:54]Read from MH i2c: E2 FD 00 40 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 90 00 DA [16:10:54]RAPDU: 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 90 00 [16:10:54]wFMCommunicate OK [16:10:54]wFMCommunicate request_size=4 [16:10:54]MH_SAM_APDU [16:10:54]CAPDU: 80 17 00 00 [16:10:54]Write to MH i2c: E2 08 00 41 00 80 17 00 00 00 00 00 00 C1 [16:10:54]Write i2c OK [16:10:54]MH_I2C_Read... [16:10:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:10:54]Read from MH i2c: E2 [16:10:54]MH_I2C_Read... [16:10:54]Read from MH i2c: E2 FD 00 [16:10:54]MH_I2C_Read... [16:10:54]Read from MH i2c: E2 FD 00 41 00 00 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 90 00 7E [16:10:54]RAPDU: 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 90 00 [16:10:54]wFMCommunicate OK [16:10:54]wFMCommunicate request_size=4 [16:10:54]MH_SAM_APDU [16:10:54]CAPDU: 80 17 00 00 [16:10:54]Write to MH i2c: E2 08 00 42 00 80 17 00 00 00 00 00 00 C2 [16:10:54]Write i2c OK [16:10:54]MH_I2C_Read... [16:10:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:10:54]Read from MH i2c: E2 [16:10:54]MH_I2C_Read... [16:10:54]Read from MH i2c: E2 FD 00 [16:10:54]MH_I2C_Read... [16:10:54]Read from MH i2c: E2 FD 00 42 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 35 [16:10:54]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [16:10:54]wFMCommunicate OK [16:10:54]wFMCommunicate request_size=4 [16:10:54]MH_SAM_APDU [16:10:54]CAPDU: 80 17 00 00 [16:10:54]Write to MH i2c: E2 08 00 43 00 80 17 00 00 00 00 00 00 C3 [16:10:54]Write i2c OK [16:10:54]MH_I2C_Read... [16:10:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 202! [16:10:54]Read from MH i2c: E2 [16:10:54]MH_I2C_Read... [16:10:54]Read from MH i2c: E2 CD 00 [16:10:54]MH_I2C_Read... [16:10:54]Read from MH i2c: E2 CD 00 43 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [16:10:54]RAPDU: 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [16:10:54]wFMCommunicate OK [16:10:54]SAM_PROTO_GetShiftData done [16:10:54]requested_item shift.sale.total_cash is exist - process it [16:10:54]requested_item shift.sale_refund.total is exist - process it [16:10:54]requested_item shift.sale_refund.total_cash is exist - process it [16:10:54]requested_item shift.buy.total is exist - process it [16:10:54]requested_item shift.buy.total_cash is exist - process it [16:10:54]produce_requested_data done [16:10:54]produce_requested_data return {"fm.sale.total":182625325.79,"fm.sale_refund.total":4048941.00,"fm.buy.total":0.00,"shift.sale.total":188334.30,"shift.sale.total_cash":108234.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} [16:10:54]process_action_free get_value [16:10:54]json_value_free [16:10:54]json_value_free done [16:10:54]process_json_proto returns [16:10:54]Send response to host [16:10:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":182625325.79,"fm.sale_refund.total":4048941.00,"fm.buy.total":0.00,"shift.sale.total":188334.30,"shift.sale.total_cash":108234.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}}} [16:10:54]free response buf [16:10:54]execute_script done [16:10:54]execute_script returns [16:10:54]free content buf [16:10:54]Sock 7.Close socket [16:10:54]Sock 7.Thread stoped [16:10:55]OFD Sender: No OFD packet to send [16:11:00]OFD Sender: No OFD packet to send [16:11:05]OFD Sender: No OFD packet to send [16:11:10]OFD Sender: No OFD packet to send [16:11:15]OFD Sender: No OFD packet to send [16:11:20]OFD Sender: No OFD packet to send [16:11:25]OFD Sender: No OFD packet to send [16:11:30]OFD Sender: No OFD packet to send [16:11:35]OFD Sender: No OFD packet to send [16:11:40]OFD Sender: No OFD packet to send [16:11:45]OFD Sender: No OFD packet to send [16:11:50]OFD Sender: No OFD packet to send [16:11:55]OFD Sender: No OFD packet to send [16:12:00]OFD Sender: No OFD packet to send [16:12:05]OFD Sender: No OFD packet to send [16:12:10]OFD Sender: No OFD packet to send [16:12:15]OFD Sender: No OFD packet to send [16:12:20]OFD Sender: No OFD packet to send [16:12:25]OFD Sender: No OFD packet to send [16:12:30]OFD Sender: No OFD packet to send [16:12:35]OFD Sender: No OFD packet to send [16:12:40]OFD Sender: No OFD packet to send [16:12:45]OFD Sender: No OFD packet to send [16:12:50]OFD Sender: No OFD packet to send [16:12:55]OFD Sender: No OFD packet to send [16:13:00]OFD Sender: No OFD packet to send [16:13:05]OFD Sender: No OFD packet to send [16:13:10]OFD Sender: No OFD packet to send [16:13:15]OFD Sender: No OFD packet to send [16:13:20]OFD Sender: No OFD packet to send [16:13:25]OFD Sender: No OFD packet to send [16:13:30]OFD Sender: No OFD packet to send [16:13:35]OFD Sender: No OFD packet to send [16:13:40]OFD Sender: No OFD packet to send [16:13:45]OFD Sender: No OFD packet to send [16:13:50]OFD Sender: No OFD packet to send [16:13:55]OFD Sender: No OFD packet to send [16:14:00]OFD Sender: No OFD packet to send [16:14:05]OFD Sender: No OFD packet to send [16:14:10]OFD Sender: No OFD packet to send [16:14:15]OFD Sender: No OFD packet to send [16:14:20]OFD Sender: No OFD packet to send [16:14:25]OFD Sender: No OFD packet to send [16:14:30]OFD Sender: No OFD packet to send [16:14:35]OFD Sender: No OFD packet to send [16:14:40]OFD Sender: No OFD packet to send [16:14:45]OFD Sender: No OFD packet to send [16:14:50]OFD Sender: No OFD packet to send [16:14:55]OFD Sender: No OFD packet to send [16:15:00]OFD Sender: No OFD packet to send [16:15:05]OFD Sender: No OFD packet to send [16:15:10]OFD Sender: No OFD packet to send [16:15:15]OFD Sender: No OFD packet to send [16:15:20]OFD Sender: No OFD packet to send [16:15:25]OFD Sender: No OFD packet to send [16:15:30]OFD Sender: No OFD packet to send [16:15:35]OFD Sender: No OFD packet to send [16:15:40]OFD Sender: No OFD packet to send [16:15:45]OFD Sender: No OFD packet to send [16:15:50]OFD Sender: No OFD packet to send [16:15:55]OFD Sender: No OFD packet to send [16:16:00]OFD Sender: No OFD packet to send [16:16:05]OFD Sender: No OFD packet to send [16:16:10]OFD Sender: No OFD packet to send [16:16:15]OFD Sender: No OFD packet to send [16:16:20]OFD Sender: No OFD packet to send [16:16:24]accept exits with 9 [16:16:24]New connection [16:16:24]New thread 3066932580 created [16:16:24]Thread 3066789220 joined [16:16:24]Waiting for new connection... [16:16:24] Sock 9.Parse request [16:16:24]Sock 9.Check first char [16:16:24]Sock 9.First char is OK [16:16:24]request: POST /json_proto HTTP/1.0 [16:16:24]Method: POST [16:16:24]URL: /json_proto [16:16:24]Method is POST - this is cgi request [16:16:24]url: /json_proto [16:16:24]query_string will be loaded in cgi processing [16:16:24]execute_cgi json_proto POST (null) [16:16:24]execute_cgi path=json_proto method=POST [16:16:24]POST find Content-Length [16:16:24]Host: 172.17.38.133:8080 [16:16:24]Content-Length: 215 [16:16:24]Content-Type: application/json [16:16:24] [16:16:24]POST finish read [16:16:24]Found Content-Length = 215 [16:16:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:16:24]execute_script... [16:16:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:16:24]POST & json_proto [16:16:24]process_json_proto [16:16:24]json parsed OK: [16:16:24]protocol is kg_v1.0 [16:16:24]action value=get_value [16:16:24]process_action get_value [16:16:24]cmd_get_value [16:16:24]process_action get_value done [16:16:24]requested_data is exist [16:16:24]produce_requested_data [16:16:24]requested_item kkm.sn is exist - process it [16:16:24]requested_item kkm.ver is exist - process it [16:16:24]requested_item fm.sn is exist - process it [16:16:24]wFMCommunicate request_size=4 [16:16:24]MH_SAM_APDU [16:16:24]CAPDU: 80 11 00 00 [16:16:24]Write to MH i2c: E2 08 00 44 00 80 11 00 00 00 00 00 00 BE [16:16:24]Write i2c OK [16:16:24]MH_I2C_Read... [16:16:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:16:25]Read from MH i2c: E2 [16:16:25]MH_I2C_Read... [16:16:25]Read from MH i2c: E2 17 00 [16:16:25]MH_I2C_Read... [16:16:25]Read from MH i2c: E2 17 00 44 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 11 [16:16:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [16:16:25]wFMCommunicate OK [16:16:25]requested_item fd.num is exist - process it [16:16:25]SAM_PROTO_GetFieldsCounters [16:16:25]wFMCommunicate request_size=4 [16:16:25]MH_SAM_APDU [16:16:25]CAPDU: 80 13 00 00 [16:16:25]Write to MH i2c: E2 08 00 45 00 80 13 00 00 00 00 00 00 C1 [16:16:25]Write i2c OK [16:16:25]MH_I2C_Read... [16:16:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:16:25]Read from MH i2c: E2 [16:16:25]MH_I2C_Read... [16:16:25]Read from MH i2c: E2 62 00 [16:16:25]MH_I2C_Read... [16:16:25]Read from MH i2c: E2 62 00 45 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 F8 96 01 00 0E 04 04 00 63 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 1C [16:16: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 F8 96 01 00 0E 04 04 00 63 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 [16:16:25]wFMCommunicate OK [16:16:25]SAM_PROTO_GetFieldsCounters done [16:16:25]requested_item shift.num is exist - process it [16:16:25]requested_item shift.opened is exist - process it [16:16:25]req_shift_opened [16:16:25]FM_GetShiftState [16:16:25]SAM_PROTO_GetShiftState [16:16:25]wFMCommunicate request_size=4 [16:16:25]MH_SAM_APDU [16:16:25]CAPDU: 80 13 01 00 [16:16:25]Write to MH i2c: E2 08 00 46 00 80 13 01 00 00 00 00 00 C3 [16:16:25]Write i2c OK [16:16:25]MH_I2C_Read... [16:16:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:16:25]Read from MH i2c: E2 [16:16:25]MH_I2C_Read... [16:16:25]Read from MH i2c: E2 0E 00 [16:16:25]MH_I2C_Read... [16:16:25]Read from MH i2c: E2 0E 00 46 00 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 D6 [16:16:25]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [16:16:25]wFMCommunicate OK [16:16:25]SAM_PROTO_GetShiftState done [16:16:25]FM_GetShiftState done [16:16:25]req_shift_opened done [16:16:25]requested_item shift.open_date is exist - process it [16:16:25]req_shift_open_date [16:16:25]req_shift_open_date done [16:16:25]produce_requested_data done [16:16:25]produce_requested_data return {"kkm.sn":"0300000164","kkm.ver":"001","fm.sn":"0000000000875093","fd.num":104184,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [16:16:25]process_action_free get_value [16:16:25]json_value_free [16:16:25]json_value_free done [16:16:25]process_json_proto returns [16:16:25]Send response to host [16:16:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000164","kkm.ver":"001","fm.sn":"0000000000875093","fd.num":104184,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [16:16:25]free response buf [16:16:25]execute_script done [16:16:25]execute_script returns [16:16:25]free content buf [16:16:25]Sock 9.Close socket [16:16:25]Sock 9.Thread stoped [16:16:25]accept exits with 7 [16:16:25]New connection [16:16:25]New thread 3066789220 created [16:16:25]Thread 3066932580 joined [16:16:25]Waiting for new connection... [16:16:25] Sock 7.Parse request [16:16:25]Sock 7.Check first char [16:16:25]Sock 7.First char is OK [16:16:25]request: POST /json_proto HTTP/1.0 [16:16:25]Method: POST [16:16:25]URL: /json_proto [16:16:25]Method is POST - this is cgi request [16:16:25]url: /json_proto [16:16:25]query_string will be loaded in cgi processing [16:16:25]execute_cgi json_proto POST (null) [16:16:25]execute_cgi path=json_proto method=POST [16:16:25]POST find Content-Length [16:16:25]Host: 172.17.38.133:8080 [16:16:25]Content-Length: 331 [16:16:25]Content-Type: application/json [16:16:25] [16:16:25]POST finish read [16:16:25]Found Content-Length = 331 [16:16:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [16:16:25]execute_script... [16:16:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [16:16:25]POST & json_proto [16:16:25]process_json_proto [16:16:25]json parsed OK: [16:16:25]protocol is kg_v1.0 [16:16:25]action value=get_value [16:16:25]process_action get_value [16:16:25]cmd_get_value [16:16:25]process_action get_value done [16:16:25]requested_data is exist [16:16:25]produce_requested_data [16:16:25]requested_item fm.sale.total is exist - process it [16:16:25]SAM_PROTO_GetFMData [16:16:25]wFMCommunicate request_size=4 [16:16:25]MH_SAM_APDU [16:16:25]CAPDU: 80 13 03 00 [16:16:25]Write to MH i2c: E2 08 00 47 00 80 13 03 00 00 00 00 00 C6 [16:16:25]Write i2c OK [16:16:25]MH_I2C_Read... [16:16:25]OFD Sender: No OFD packet to send [16:16:25]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [16:16:25]Read from MH i2c: E2 [16:16:25]MH_I2C_Read... [16:16:25]Read from MH i2c: E2 FD 00 [16:16:25]MH_I2C_Read... [16:16:25]Read from MH i2c: E2 FD 00 47 00 00 C5 04 85 04 C1 04 6E 04 04 00 32 94 01 00 69 04 A3 00 6F 04 04 00 D9 8F 01 00 B1 04 05 00 E3 21 88 40 04 70 04 05 00 88 ED C1 5B 03 72 04 04 00 5B 34 C6 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 2F A8 9C 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 AE 41 A2 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 EE [16:16:25]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 32 94 01 00 69 04 A3 00 6F 04 04 00 D9 8F 01 00 B1 04 05 00 E3 21 88 40 04 70 04 05 00 88 ED C1 5B 03 72 04 04 00 5B 34 C6 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 2F A8 9C 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 AE 41 A2 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 [16:16:25]wFMCommunicate OK [16:16:25]wFMCommunicate request_size=4 [16:16:25]MH_SAM_APDU [16:16:25]CAPDU: 80 17 00 00 [16:16:25]Write to MH i2c: E2 08 00 48 00 80 17 00 00 00 00 00 00 C8 [16:16:25]Write i2c OK [16:16:25]MH_I2C_Read... [16:16:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:16:26]Read from MH i2c: E2 [16:16:26]MH_I2C_Read... [16:16:26]Read from MH i2c: E2 FD 00 [16:16:26]MH_I2C_Read... [16:16:26]Read from MH i2c: E2 FD 00 48 00 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 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 9E [16:16:26]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 [16:16:26]wFMCommunicate OK [16:16:26]wFMCommunicate request_size=4 [16:16:26]MH_SAM_APDU [16:16:26]CAPDU: 80 17 00 00 [16:16:26]Write to MH i2c: E2 08 00 49 00 80 17 00 00 00 00 00 00 C9 [16:16:26]Write i2c OK [16:16:26]MH_I2C_Read... [16:16:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:16:26]Read from MH i2c: E2 [16:16:26]MH_I2C_Read... [16:16:26]Read from MH i2c: E2 FD 00 [16:16:26]MH_I2C_Read... [16:16:26]Read from MH i2c: E2 FD 00 49 00 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 DB [16:16:26]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 [16:16:26]wFMCommunicate OK [16:16:26]wFMCommunicate request_size=4 [16:16:26]MH_SAM_APDU [16:16:26]CAPDU: 80 17 00 00 [16:16:26]Write to MH i2c: E2 08 00 4A 00 80 17 00 00 00 00 00 00 CA [16:16:26]Write i2c OK [16:16:26]MH_I2C_Read... [16:16:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:16:26]Read from MH i2c: E2 [16:16:26]MH_I2C_Read... [16:16:26]Read from MH i2c: E2 FD 00 [16:16:26]MH_I2C_Read... [16:16:26]Read from MH i2c: E2 FD 00 4A 00 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 56 [16:16:26]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 [16:16:26]wFMCommunicate OK [16:16:26]wFMCommunicate request_size=4 [16:16:26]MH_SAM_APDU [16:16:26]CAPDU: 80 17 00 00 [16:16:26]Write to MH i2c: E2 08 00 4B 00 80 17 00 00 00 00 00 00 CB [16:16:26]Write i2c OK [16:16:26]MH_I2C_Read... [16:16:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [16:16:26]Read from MH i2c: E2 [16:16:26]MH_I2C_Read... [16:16:26]Read from MH i2c: E2 E2 00 [16:16:26]MH_I2C_Read... [16:16:26]Read from MH i2c: E2 E2 00 4B 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 A9 [16:16:26]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 [16:16:26]wFMCommunicate OK [16:16:26]SAM_PROTO_GetFMData done [16:16:26]requested_item fm.sale_refund.total is exist - process it [16:16:26]requested_item fm.buy.total is exist - process it [16:16:26]requested_item shift.sale.total is exist - process it [16:16:26]SAM_PROTO_GetShiftData [16:16:26]wFMCommunicate request_size=4 [16:16:26]MH_SAM_APDU [16:16:26]CAPDU: 80 13 02 00 [16:16:26]Write to MH i2c: E2 08 00 4C 00 80 13 02 00 00 00 00 00 CA [16:16:26]Write i2c OK [16:16:26]MH_I2C_Read... [16:16:27]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [16:16:27]Read from MH i2c: E2 [16:16:27]MH_I2C_Read... [16:16:27]Read from MH i2c: E2 FD 00 [16:16:27]MH_I2C_Read... [16:16:27]Read from MH i2c: E2 FD 00 4C 00 00 B0 04 AA 04 AC 04 6E 04 04 00 6B 00 00 00 69 04 9D 00 6F 04 04 00 6B 00 00 00 B1 04 04 00 16 60 1F 01 70 04 03 00 E8 26 A5 72 04 03 00 2E 39 7A 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 EB 85 1E 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 19 8B 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 D1 [16:16:27]RAPDU: B0 04 AA 04 AC 04 6E 04 04 00 6B 00 00 00 69 04 9D 00 6F 04 04 00 6B 00 00 00 B1 04 04 00 16 60 1F 01 70 04 03 00 E8 26 A5 72 04 03 00 2E 39 7A 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 EB 85 1E 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 19 8B 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [16:16:27]wFMCommunicate OK [16:16:27]wFMCommunicate request_size=4 [16:16:27]MH_SAM_APDU [16:16:27]CAPDU: 80 17 00 00 [16:16:27]Write to MH i2c: E2 08 00 4D 00 80 17 00 00 00 00 00 00 CD [16:16:27]Write i2c OK [16:16:27]MH_I2C_Read... [16:16:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:16:27]Read from MH i2c: E2 [16:16:27]MH_I2C_Read... [16:16:27]Read from MH i2c: E2 FD 00 [16:16:27]MH_I2C_Read... [16:16:27]Read from MH i2c: E2 FD 00 4D 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 90 00 E7 [16:16:27]RAPDU: 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 90 00 [16:16:27]wFMCommunicate OK [16:16:27]wFMCommunicate request_size=4 [16:16:27]MH_SAM_APDU [16:16:27]CAPDU: 80 17 00 00 [16:16:27]Write to MH i2c: E2 08 00 4E 00 80 17 00 00 00 00 00 00 CE [16:16:27]Write i2c OK [16:16:27]MH_I2C_Read... [16:16:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:16:27]Read from MH i2c: E2 [16:16:27]MH_I2C_Read... [16:16:27]Read from MH i2c: E2 FD 00 [16:16:27]MH_I2C_Read... [16:16:27]Read from MH i2c: E2 FD 00 4E 00 00 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 90 00 8B [16:16:27]RAPDU: 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 90 00 [16:16:27]wFMCommunicate OK [16:16:27]wFMCommunicate request_size=4 [16:16:27]MH_SAM_APDU [16:16:27]CAPDU: 80 17 00 00 [16:16:27]Write to MH i2c: E2 08 00 4F 00 80 17 00 00 00 00 00 00 CF [16:16:27]Write i2c OK [16:16:27]MH_I2C_Read... [16:16:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:16:28]Read from MH i2c: E2 [16:16:28]MH_I2C_Read... [16:16:28]Read from MH i2c: E2 FD 00 [16:16:28]MH_I2C_Read... [16:16:28]Read from MH i2c: E2 FD 00 4F 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 42 [16:16:28]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [16:16:28]wFMCommunicate OK [16:16:28]wFMCommunicate request_size=4 [16:16:28]MH_SAM_APDU [16:16:28]CAPDU: 80 17 00 00 [16:16:28]Write to MH i2c: E2 08 00 50 00 80 17 00 00 00 00 00 00 D0 [16:16:28]Write i2c OK [16:16:28]MH_I2C_Read... [16:16:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 202! [16:16:28]Read from MH i2c: E2 [16:16:28]MH_I2C_Read... [16:16:28]Read from MH i2c: E2 CD 00 [16:16:28]MH_I2C_Read... [16:16:28]Read from MH i2c: E2 CD 00 50 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 B4 [16:16:28]RAPDU: 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [16:16:28]wFMCommunicate OK [16:16:28]SAM_PROTO_GetShiftData done [16:16:28]requested_item shift.sale.total_cash is exist - process it [16:16:28]requested_item shift.sale_refund.total is exist - process it [16:16:28]requested_item shift.sale_refund.total_cash is exist - process it [16:16:28]requested_item shift.buy.total is exist - process it [16:16:28]requested_item shift.buy.total_cash is exist - process it [16:16:28]produce_requested_data done [16:16:28]produce_requested_data return {"fm.sale.total":182625325.79,"fm.sale_refund.total":4048941.00,"fm.buy.total":0.00,"shift.sale.total":188334.30,"shift.sale.total_cash":108234.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} [16:16:28]process_action_free get_value [16:16:28]json_value_free [16:16:28]json_value_free done [16:16:28]process_json_proto returns [16:16:28]Send response to host [16:16:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":182625325.79,"fm.sale_refund.total":4048941.00,"fm.buy.total":0.00,"shift.sale.total":188334.30,"shift.sale.total_cash":108234.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}}} [16:16:28]free response buf [16:16:28]execute_script done [16:16:28]execute_script returns [16:16:28]free content buf [16:16:28]Sock 7.Close socket [16:16:28]Sock 7.Thread stoped [16:16:30]OFD Sender: No OFD packet to send [16:16:35]OFD Sender: No OFD packet to send [16:16:40]OFD Sender: No OFD packet to send [16:16:45]OFD Sender: No OFD packet to send [16:16:50]OFD Sender: No OFD packet to send [16:16:55]OFD Sender: No OFD packet to send [16:17:00]OFD Sender: No OFD packet to send [16:17:05]OFD Sender: No OFD packet to send [16:17:10]OFD Sender: No OFD packet to send [16:17:15]OFD Sender: No OFD packet to send [16:17:20]OFD Sender: No OFD packet to send [16:17:25]OFD Sender: No OFD packet to send [16:17:30]OFD Sender: No OFD packet to send [16:17:35]OFD Sender: No OFD packet to send [16:17:40]OFD Sender: No OFD packet to send [16:17:45]OFD Sender: No OFD packet to send [16:17:50]OFD Sender: No OFD packet to send [16:17:55]OFD Sender: No OFD packet to send [16:18:00]OFD Sender: No OFD packet to send [16:18:05]OFD Sender: No OFD packet to send [16:18:10]OFD Sender: No OFD packet to send [16:18:15]OFD Sender: No OFD packet to send [16:18:20]OFD Sender: No OFD packet to send [16:18:25]OFD Sender: No OFD packet to send [16:18:30]OFD Sender: No OFD packet to send [16:18:35]OFD Sender: No OFD packet to send [16:18:40]OFD Sender: No OFD packet to send [16:18:45]OFD Sender: No OFD packet to send [16:18:50]OFD Sender: No OFD packet to send [16:18:55]OFD Sender: No OFD packet to send [16:19:00]OFD Sender: No OFD packet to send [16:19:05]OFD Sender: No OFD packet to send [16:19:10]OFD Sender: No OFD packet to send [16:19:15]OFD Sender: No OFD packet to send [16:19:20]OFD Sender: No OFD packet to send [16:19:25]OFD Sender: No OFD packet to send [16:19:30]OFD Sender: No OFD packet to send [16:19:35]OFD Sender: No OFD packet to send [16:19:40]OFD Sender: No OFD packet to send [16:19:45]OFD Sender: No OFD packet to send [16:19:50]OFD Sender: No OFD packet to send [16:19:55]OFD Sender: No OFD packet to send [16:20:00]OFD Sender: No OFD packet to send [16:20:05]OFD Sender: No OFD packet to send [16:20:10]OFD Sender: No OFD packet to send [16:20:15]OFD Sender: No OFD packet to send [16:20:20]OFD Sender: No OFD packet to send [16:20:25]OFD Sender: No OFD packet to send [16:20:30]OFD Sender: No OFD packet to send [16:20:35]OFD Sender: No OFD packet to send [16:20:40]OFD Sender: No OFD packet to send [16:20:45]OFD Sender: No OFD packet to send [16:20:50]OFD Sender: No OFD packet to send [16:20:55]OFD Sender: No OFD packet to send [16:21:00]OFD Sender: No OFD packet to send [16:21:05]OFD Sender: No OFD packet to send [16:21:10]OFD Sender: No OFD packet to send [16:21:13]accept exits with 9 [16:21:13]New connection [16:21:13]New thread 3066932580 created [16:21:13]Thread 3066789220 joined [16:21:13]Waiting for new connection... [16:21:13] Sock 9.Parse request [16:21:13]Sock 9.Check first char [16:21:13]Sock 9.First char is OK [16:21:13]request: POST /json_proto HTTP/1.0 [16:21:13]Method: POST [16:21:13]URL: /json_proto [16:21:13]Method is POST - this is cgi request [16:21:13]url: /json_proto [16:21:13]query_string will be loaded in cgi processing [16:21:13]execute_cgi json_proto POST (null) [16:21:13]execute_cgi path=json_proto method=POST [16:21:13]POST find Content-Length [16:21:13]Host: 172.17.38.133:8080 [16:21:13]Content-Length: 682 [16:21:13]Content-Type: application/json [16:21:13] [16:21:13]POST finish read [16:21:13]Found Content-Length = 682 [16:21:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673619", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124100", "name": "\u0410\u0438-92-\u041A-1", "price" : 66.40, "quantity" : 20.040, "sum" : 1330.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1330.00, "total" : 1330.00, "payments": [ { "type": 0, "sum" : 1330.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:21:13]execute_script... [16:21: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)673619", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124100", "name": "\u0410\u0438-92-\u041A-1", "price" : 66.40, "quantity" : 20.040, "sum" : 1330.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1330.00, "total" : 1330.00, "payments": [ { "type": 0, "sum" : 1330.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:21:13]POST & json_proto [16:21:13]process_json_proto [16:21:13]json parsed OK: [16:21:13]protocol is kg_v1.0 [16:21:13]action value=close_receipt [16:21:13]process_action close_receipt [16:21:13]cmd_close_receipt [16:21:13]MH_GetDate [16:21:13]Write to MH i2c: F0 00 00 51 00 40 [16:21:13]Write i2c OK [16:21:13]MH_I2C_Read... [16:21:13]Read from MH i2c: F0 [16:21:13]MH_I2C_Read... [16:21:13]Read from MH i2c: F0 09 00 [16:21:13]MH_I2C_Read... [16:21:13]Read from MH i2c: F0 09 00 51 00 00 79 A8 75 66 BD 8F 7C 64 71 [16:21:13]GetLastDocTimeStamp 1718979777 [16:21:13]current date 1718986873 [16:21:13]FM_GetShiftState [16:21:13]SAM_PROTO_GetShiftState [16:21:13]wFMCommunicate request_size=4 [16:21:13]MH_SAM_APDU [16:21:13]CAPDU: 80 13 01 00 [16:21:13]Write to MH i2c: E2 08 00 52 00 80 13 01 00 00 00 00 00 CF [16:21:13]Write i2c OK [16:21:13]MH_I2C_Read... [16:21:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:21:13]Read from MH i2c: E2 [16:21:13]MH_I2C_Read... [16:21:13]Read from MH i2c: E2 0E 00 [16:21:13]MH_I2C_Read... [16:21:13]Read from MH i2c: E2 0E 00 52 00 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 E2 [16:21:13]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [16:21:13]wFMCommunicate OK [16:21:13]SAM_PROTO_GetShiftState done [16:21:13]FM_GetShiftState done [16:21:13]opened in 1718929509 [16:21:13]opened+sec_in_day 1719015909 [16:21:13]quantity*price = 133065 [16:21:13]sum+1 = 133067 [16:21:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 1330.00 Внесено: 1330.00 СДАЧА: 0.00 НСП 1% : 11.78 НДС 12% : 141.31 Наличными: 1330.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 108 21.06.2024 16:21 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104185 ФПД: 13904715734822 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T162113&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104185&fm=13904715734822&tin=02508201610067®Number=0000000000092785&sum=133000 [16:21:14]StoreToDocumentArchive [16:21:14]shift 355 fd 104185 [16:21:14]save to /storage/0355/doc_00104185 [16:21:14]save last doc name /storage/0355/doc_00104185 to /storage/kkm_last_doc_name [16:21:14]save OK [16:21:14]Clear old archive folders... [16:21:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:21:14]tlvbuf is 010C2A60 [16:21:14]SAM_PROTO_ClearQueue [16:21:14]wFMCommunicate request_size=4 [16:21:14]MH_SAM_APDU [16:21:14]CAPDU: 80 09 00 00 [16:21:14]Write to MH i2c: E2 08 00 5F 00 80 09 00 00 00 00 00 00 D1 [16:21:14]Write i2c OK [16:21:14]MH_I2C_Read... [16:21:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:21:14]Read from MH i2c: E2 [16:21:14]MH_I2C_Read... [16:21:14]Read from MH i2c: E2 03 00 [16:21:14]MH_I2C_Read... [16:21:14]Read from MH i2c: E2 03 00 5F 00 00 90 00 D3 [16:21:14]RAPDU: 90 00 [16:21:14]wFMCommunicate OK [16:21:14]SAM_PROTO_ClearQueue done [16:21:14]KKMCreateOFDPacket [16:21:14]OFDProtocolAddRootSTLVToBuf [16:21:14]FM_MakeSignedData [16:21:14]FM_MakeSignedData [16:21:14]SAM_PROTO_SignData [16:21:14]wFMCommunicate request_size=4 [16:21:14]MH_SAM_APDU [16:21:14]CAPDU: 80 0D 01 02 [16:21:14]Write to MH i2c: E2 08 00 60 00 80 0D 01 02 00 00 00 00 D9 [16:21:14]Write i2c OK [16:21:14]MH_I2C_Read... [16:21:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:21:14]Read from MH i2c: E2 [16:21:14]MH_I2C_Read... [16:21:14]Read from MH i2c: E2 03 00 [16:21:14]MH_I2C_Read... [16:21:14]Read from MH i2c: E2 03 00 60 00 00 90 00 D4 [16:21:14]RAPDU: 90 00 [16:21:14]wFMCommunicate OK [16:21:14]wFMCommunicate request_size=255 [16:21:14]MH_SAM_APDU [16:21: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 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 31 FF 03 08 00 03 48 4E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 CA 07 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 07 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9A 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 37 00 00 00 00 07 04 06 00 88 07 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 79 A8 75 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 F9 96 01 00 35 04 06 00 0C [16:21:14]Write to MH i2c: E2 02 01 61 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 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 31 FF 03 08 00 03 48 4E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 CA 07 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 07 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9A 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 37 00 00 00 00 07 04 06 00 88 07 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 79 A8 75 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 F9 96 01 00 35 04 06 00 0C 00 00 E6 [16:21:14]Write i2c OK [16:21:14]MH_I2C_Read... [16:21:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:21:14]Read from MH i2c: E2 [16:21:14]MH_I2C_Read... [16:21:14]Read from MH i2c: E2 03 00 [16:21:14]MH_I2C_Read... [16:21:14]Read from MH i2c: E2 03 00 61 00 00 90 00 D5 [16:21:14]RAPDU: 90 00 [16:21:14]wFMCommunicate OK [16:21:14]wFMCommunicate request_size=10 [16:21:14]MH_SAM_APDU [16:21:14]CAPDU: 80 0D 02 02 05 A5 71 A4 5F 26 [16:21:14]Write to MH i2c: E2 0D 00 62 00 80 0D 02 02 05 00 A5 71 A4 5F 26 00 00 25 [16:21:14]Write i2c OK [16:21:14]MH_I2C_Read... [16:21:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:21:14]Read from MH i2c: E2 [16:21:14]MH_I2C_Read... [16:21:14]Read from MH i2c: E2 03 00 [16:21:14]MH_I2C_Read... [16:21:14]Read from MH i2c: E2 03 00 62 00 00 90 00 D6 [16:21:14]RAPDU: 90 00 [16:21:14]wFMCommunicate OK [16:21:14]wFMCommunicate request_size=4 [16:21:14]MH_SAM_APDU [16:21:14]CAPDU: 80 0D 03 02 [16:21:14]Write to MH i2c: E2 08 00 63 00 80 0D 03 02 00 00 00 00 DE [16:21:14]Write i2c OK [16:21:14]MH_I2C_Read... [16:21:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:21:14]Read from MH i2c: E2 [16:21:14]MH_I2C_Read... [16:21:14]Read from MH i2c: E2 0B 00 [16:21:14]MH_I2C_Read... [16:21:14]Read from MH i2c: E2 0B 00 63 00 00 3A 0D 9F F8 1D 7C B8 88 90 00 96 [16:21:14]RAPDU: 3A 0D 9F F8 1D 7C B8 88 90 00 [16:21:14]wFMCommunicate OK [16:21:14]SAM_PROTO_SignData done [16:21:14]FM_MakeSignedData done [16:21:14]CreateOFDProtocolMessage [16:21:14]wFMCommunicate request_size=4 [16:21:14]MH_SAM_APDU [16:21:14]CAPDU: 80 11 00 00 [16:21:14]Write to MH i2c: E2 08 00 64 00 80 11 00 00 00 00 00 00 DE [16:21:14]Write i2c OK [16:21:14]MH_I2C_Read... [16:21:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:21:14]Read from MH i2c: E2 [16:21:14]MH_I2C_Read... [16:21:14]Read from MH i2c: E2 17 00 [16:21:14]MH_I2C_Read... [16:21:14]Read from MH i2c: E2 17 00 64 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 31 [16:21:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [16:21:14]wFMCommunicate OK [16:21:14]CreateOFDProtocolMessage done [16:21:14]OFDSenderStorePacket 104185 [16:21:14]StoreOFDPacket docnum=104185 [16:21: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 74 00 07 01 9B 12 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 31 FF 03 08 00 03 48 4E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 CA 07 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 07 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9A 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 37 00 00 00 00 07 04 06 00 88 07 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 79 A8 75 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 F9 96 01 00 35 04 06 00 0C A5 71 A4 5F 26 3A 0D 9F F8 1D 7C B8 88 [16:21:14]CheckFolder [16:21:14]dirname=/storage/ofd_packets [16:21:14]CheckFolder done [16:21:14]ProducePacketName [16:21:14]name=ofd_packets/00104185 [16:21:14]NVStorageSaveData ofd_packets/00104185 [16:21:14]File name is /storage/ofd_packets/00104185 [16:21:14]Write 301 bytes [16:21:14]NVStorageSaveData done [16:21:14]OFDSenderStorePacket done [16:21:14]KKMCreateOFDPacket done [16:21:14]NVStorageSaveData kkm_last_timestamp [16:21:14]File name is /storage/kkm_last_timestamp [16:21:14]Write 4 bytes [16:21:14]NVStorageSaveData done [16:21:14]ExternCall_PrintAddStr [16:21:14]wPrintStart [16:21:14]Write to MH i2c: 01 00 00 65 00 65 [16:21:14]Write i2c OK [16:21:14]MH_I2C_Read... [16:21:14]Read from MH i2c: 01 [16:21:14]MH_I2C_Read... [16:21:14]Read from MH i2c: 01 07 00 [16:21:14]MH_I2C_Read... [16:21:14]Read from MH i2c: 01 07 00 65 00 00 00 00 00 00 FF 0F 7A [16:21:14]RasterBufferAndPrint [16:21:14]line Счет N : (1)673619 [16:21:14]line ИНН: 02508201610067 [16:21:14]line Контрольно-Кассовый Чек [16:21:14]line ПРОДАЖА [16:21:14]line ТРК (МРК, ГНК) : 32 [16:21:14]line Товар: 2710124100 [16:21:14]line Аи-92-К-1 [16:21:14]line 20.040 * 66.40 [16:21:14]line = 1330.66 [16:21:14]line НДС 12% НСП 1% [16:21:14]line > о реализуемом товаре [16:21:14]line ОКРУГЛЕНИЕ: -0.66 [16:21:14]line ИТОГО: 1330.00 [16:21:14]line Внесено: 1330.00 [16:21:14]line СДАЧА: 0.00 [16:21:14]line НСП 1% : 11.78 [16:21:14]line НДС 12% : 141.31 [16:21:14]line Наличными: 1330.00 [16:21:14]line Безнал.: 0.00 [16:21:14]line Место: АЗС № 120 "Партнер Нефть" [16:21:14]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [16:21:14]line СНО: Общий режим [16:21:14]line Чек 108 21.06.2024 16:21 [16:21:14]line Смена: 355 ФФД: 1.0 [16:21:14]line ЗНМ: 0300000164 [16:21:14]line РНМ: 0000000000092785 [16:21:14]line Версия ККМ: 001 [16:21:14]line ФМ: 0000000000875093 [16:21:14]line ФД: 104185 [16:21:14]line ФПД: 13904715734822 [16:21:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T162113&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104185&fm=13904715734822&tin=02508201610067®Number=0000000000092785&sum=133000 [16:21:14]OFD Sender: Processing packet 104185 [packets to send 17, broken 16] [16:21:14]ProducePacketName [16:21:14]name=ofd_packets/00104185 [16:21:14]OFD Sender: To server: pG, [16:21:14]CommunicateWithHost lk.salyk.kg:30040 [16:21:15]ConnectInit lk.salyk.kg [16:21:15]written 0, free lines is 4095 [16:21:15]Connected sock=10 [16:21: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 74 00 07 01 9B 12 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 31 FF 03 08 00 03 48 4E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 CA 07 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 07 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9A 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 37 00 00 00 00 07 04 06 00 88 07 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 79 A8 75 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 F9 96 01 00 35 04 06 00 0C A5 71 A4 5F 26 3A 0D 9F F8 1D 7C B8 88 [16:21: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 31 4F 47 00 9E 76 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 F9 96 01 00 F4 03 04 00 FB 4E 75 66 B6 04 01 00 00 0B 89 43 56 84 B5 03 3D [16:21:15]CommunicateWithHost err = 0 [16:21:15]CheckOFDResponse [16:21:15]1017 (14) - 77093643461234 [16:21:15]1041 (16) - 0000000000875093 [16:21:15]1040 (4) - 104185 [16:21:15]1012 (4) - 21.06.2024 09:59 [16:21:15]1206 (1) - 0 [16:21:15]OFD Sender: Remove packet 104185 [16:21:15]ProducePacketName [16:21:15]name=ofd_packets/00104185 [16:21:15]NVStorageDeleteData [16:21:15]Write to MH i2c: 01 00 00 90 00 90 [16:21:15]Write i2c OK [16:21:15]MH_I2C_Read... [16:21:15]Read from MH i2c: 01 [16:21:15]MH_I2C_Read... [16:21:15]Read from MH i2c: 01 07 00 [16:21:15]MH_I2C_Read... [16:21:15]Read from MH i2c: 01 07 00 90 00 00 00 00 00 00 ED 0C 90 [16:21:15]RasterBufferAndPrint [16:21:15]line [16:21:15]line [16:21:15]line [16:21:15]line [16:21:15]line [16:21:15]written 0, free lines is 3315 [16:21:15]MH_Cut [16:21:15]Write to MH i2c: D1 01 00 97 00 01 69 [16:21:15]Write i2c OK [16:21:15]MH_I2C_Read... [16:21:15]Read from MH i2c: D1 [16:21:15]MH_I2C_Read... [16:21:15]Read from MH i2c: D1 01 00 [16:21:15]MH_I2C_Read... [16:21:15]Read from MH i2c: D1 01 00 97 00 00 68 [16:21:15]Write to MH i2c: 01 00 00 98 00 98 [16:21:15]Write i2c OK [16:21:15]MH_I2C_Read... [16:21:16]OFD Sender: No OFD packet to send [16:21:16]*** Cut start [16:21:16]*** Partial cut [16:21:16]*** CUTSNS_PIN = 1 [16:21:16]*** CUTSNS_PIN = 0 [16:21:16]*** Brake cut motor [16:21:16]Read from MH i2c: 01 [16:21:17]MH_I2C_Read... [16:21:17]*** Stop cut motor [16:21:17]*** Cut end [16:21:17]Read from MH i2c: 01 07 00 [16:21:17]MH_I2C_Read... [16:21:17]Read from MH i2c: 01 07 00 98 00 00 00 00 00 00 FF 0F AD [16:21:17]process_action close_receipt done [16:21:17]requested_data is exist [16:21:17]produce_requested_data [16:21:17]requested_item fm.sn is exist - process it [16:21:17]wFMCommunicate request_size=4 [16:21:17]MH_SAM_APDU [16:21:17]CAPDU: 80 11 00 00 [16:21:17]Write to MH i2c: E2 08 00 99 00 80 11 00 00 00 00 00 00 13 [16:21:17]Write i2c OK [16:21:17]MH_I2C_Read... [16:21:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:21:17]Read from MH i2c: E2 [16:21:17]MH_I2C_Read... [16:21:17]Read from MH i2c: E2 17 00 [16:21:17]MH_I2C_Read... [16:21:17]Read from MH i2c: E2 17 00 99 00 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:21: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:21:17]wFMCommunicate OK [16:21:17]requested_item fd.num is exist - process it [16:21:17]SAM_PROTO_GetFieldsCounters [16:21:17]wFMCommunicate request_size=4 [16:21:17]MH_SAM_APDU [16:21:17]CAPDU: 80 13 00 00 [16:21:17]Write to MH i2c: E2 08 00 9A 00 80 13 00 00 00 00 00 00 16 [16:21:17]Write i2c OK [16:21:17]MH_I2C_Read... [16:21:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:21:17]Read from MH i2c: E2 [16:21:17]MH_I2C_Read... [16:21:17]Read from MH i2c: E2 62 00 [16:21:17]MH_I2C_Read... [16:21:17]Read from MH i2c: E2 62 00 9A 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 F9 96 01 00 0E 04 04 00 63 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 75 [16:21: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 F9 96 01 00 0E 04 04 00 63 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 [16:21:17]wFMCommunicate OK [16:21:17]SAM_PROTO_GetFieldsCounters done [16:21:17]requested_item shift.num is exist - process it [16:21:17]requested_item shift.opened is exist - process it [16:21:17]req_shift_opened [16:21:17]FM_GetShiftState [16:21:17]SAM_PROTO_GetShiftState [16:21:17]wFMCommunicate request_size=4 [16:21:17]MH_SAM_APDU [16:21:17]CAPDU: 80 13 01 00 [16:21:17]Write to MH i2c: E2 08 00 9B 00 80 13 01 00 00 00 00 00 18 [16:21:17]Write i2c OK [16:21:17]MH_I2C_Read... [16:21:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:21:17]Read from MH i2c: E2 [16:21:17]MH_I2C_Read... [16:21:17]Read from MH i2c: E2 0E 00 [16:21:17]MH_I2C_Read... [16:21:17]Read from MH i2c: E2 0E 00 9B 00 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 2B [16:21:17]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [16:21:17]wFMCommunicate OK [16:21:17]SAM_PROTO_GetShiftState done [16:21:17]FM_GetShiftState done [16:21:17]req_shift_opened done [16:21:17]requested_item shift.open_date is exist - process it [16:21:17]req_shift_open_date [16:21:17]req_shift_open_date done [16:21:17]produce_requested_data done [16:21:17]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104185,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [16:21:17]process_action_free close_receipt [16:21:17]json_value_free [16:21:17]json_value_free done [16:21:17]process_json_proto returns [16:21:17]Send response to host [16:21:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104185,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [16:21:17]free response buf [16:21:17]execute_script done [16:21:17]execute_script returns [16:21:17]free content buf [16:21:17]Sock 9.Close socket [16:21:17]Sock 9.Thread stoped [16:21:17]accept exits with 7 [16:21:17]New connection [16:21:17]New thread 3066789220 created [16:21:17]Thread 3066932580 joined [16:21:17]Waiting for new connection... [16:21:17] Sock 7.Parse request [16:21:17]Sock 7.Check first char [16:21:17]Sock 7.First char is OK [16:21:17]request: POST /json_proto HTTP/1.0 [16:21:17]Method: POST [16:21:17]URL: /json_proto [16:21:17]Method is POST - this is cgi request [16:21:17]url: /json_proto [16:21:17]query_string will be loaded in cgi processing [16:21:17]execute_cgi json_proto POST (null) [16:21:17]execute_cgi path=json_proto method=POST [16:21:17]POST find Content-Length [16:21:17]Host: 172.17.38.133:8080 [16:21:17]Content-Length: 215 [16:21:17]Content-Type: application/json [16:21:17] [16:21:17]POST finish read [16:21:17]Found Content-Length = 215 [16:21:17]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" ] } } [16:21:17]execute_script... [16:21:17]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" ] } } [16:21:17]POST & json_proto [16:21:17]process_json_proto [16:21:17]json parsed OK: [16:21:17]protocol is kg_v1.0 [16:21:17]action value=get_value [16:21:17]process_action get_value [16:21:17]cmd_get_value [16:21:17]process_action get_value done [16:21:17]requested_data is exist [16:21:17]produce_requested_data [16:21:17]requested_item kkm.sn is exist - process it [16:21:17]requested_item kkm.ver is exist - process it [16:21:17]requested_item fm.sn is exist - process it [16:21:17]wFMCommunicate request_size=4 [16:21:17]MH_SAM_APDU [16:21:17]CAPDU: 80 11 00 00 [16:21:17]Write to MH i2c: E2 08 00 9C 00 80 11 00 00 00 00 00 00 16 [16:21:17]Write i2c OK [16:21:17]MH_I2C_Read... [16:21:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:21:17]Read from MH i2c: E2 [16:21:17]MH_I2C_Read... [16:21:17]Read from MH i2c: E2 17 00 [16:21:17]MH_I2C_Read... [16:21:17]Read from MH i2c: E2 17 00 9C 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 69 [16:21: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:21:17]wFMCommunicate OK [16:21:17]requested_item fd.num is exist - process it [16:21:17]SAM_PROTO_GetFieldsCounters [16:21:17]wFMCommunicate request_size=4 [16:21:17]MH_SAM_APDU [16:21:17]CAPDU: 80 13 00 00 [16:21:17]Write to MH i2c: E2 08 00 9D 00 80 13 00 00 00 00 00 00 19 [16:21:17]Write i2c OK [16:21:17]MH_I2C_Read... [16:21:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:21:17]Read from MH i2c: E2 [16:21:17]MH_I2C_Read... [16:21:17]Read from MH i2c: E2 62 00 [16:21:17]MH_I2C_Read... [16:21:17]Read from MH i2c: E2 62 00 9D 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 F9 96 01 00 0E 04 04 00 63 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 78 [16:21: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 F9 96 01 00 0E 04 04 00 63 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 [16:21:17]wFMCommunicate OK [16:21:17]SAM_PROTO_GetFieldsCounters done [16:21:17]requested_item shift.num is exist - process it [16:21:17]requested_item shift.opened is exist - process it [16:21:17]req_shift_opened [16:21:17]FM_GetShiftState [16:21:17]SAM_PROTO_GetShiftState [16:21:17]wFMCommunicate request_size=4 [16:21:17]MH_SAM_APDU [16:21:17]CAPDU: 80 13 01 00 [16:21:17]Write to MH i2c: E2 08 00 9E 00 80 13 01 00 00 00 00 00 1B [16:21:17]Write i2c OK [16:21:17]MH_I2C_Read... [16:21:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:21:17]Read from MH i2c: E2 [16:21:17]MH_I2C_Read... [16:21:17]Read from MH i2c: E2 0E 00 [16:21:17]MH_I2C_Read... [16:21:17]Read from MH i2c: E2 0E 00 9E 00 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 2E [16:21:17]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [16:21:17]wFMCommunicate OK [16:21:17]SAM_PROTO_GetShiftState done [16:21:17]FM_GetShiftState done [16:21:17]req_shift_opened done [16:21:17]requested_item shift.open_date is exist - process it [16:21:17]req_shift_open_date [16:21:17]req_shift_open_date done [16:21:17]produce_requested_data done [16:21:17]produce_requested_data return {"kkm.sn":"0300000164","kkm.ver":"001","fm.sn":"0000000000875093","fd.num":104185,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [16:21:17]process_action_free get_value [16:21:17]json_value_free [16:21:17]json_value_free done [16:21:17]process_json_proto returns [16:21:17]Send response to host [16:21:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000164","kkm.ver":"001","fm.sn":"0000000000875093","fd.num":104185,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [16:21:17]free response buf [16:21:17]execute_script done [16:21:17]execute_script returns [16:21:17]free content buf [16:21:17]Sock 7.Close socket [16:21:17]Sock 7.Thread stoped [16:21:18]accept exits with 9 [16:21:18]New connection [16:21:18]New thread 3066932580 created [16:21:18]Thread 3066789220 joined [16:21:18]Waiting for new connection... [16:21:18] Sock 9.Parse request [16:21:18]Sock 9.Check first char [16:21:18]Sock 9.First char is OK [16:21:18]request: POST /json_proto HTTP/1.0 [16:21:18]Method: POST [16:21:18]URL: /json_proto [16:21:18]Method is POST - this is cgi request [16:21:18]url: /json_proto [16:21:18]query_string will be loaded in cgi processing [16:21:18]execute_cgi json_proto POST (null) [16:21:18]execute_cgi path=json_proto method=POST [16:21:18]POST find Content-Length [16:21:18]Host: 172.17.38.133:8080 [16:21:18]Content-Length: 331 [16:21:18]Content-Type: application/json [16:21:18] [16:21:18]POST finish read [16:21:18]Found Content-Length = 331 [16:21:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [16:21:18]execute_script... [16:21:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [16:21:18]POST & json_proto [16:21:18]process_json_proto [16:21:18]json parsed OK: [16:21:18]protocol is kg_v1.0 [16:21:18]action value=get_value [16:21:18]process_action get_value [16:21:18]cmd_get_value [16:21:18]process_action get_value done [16:21:18]requested_data is exist [16:21:18]produce_requested_data [16:21:18]requested_item fm.sale.total is exist - process it [16:21:18]SAM_PROTO_GetFMData [16:21:18]wFMCommunicate request_size=4 [16:21:18]MH_SAM_APDU [16:21:18]CAPDU: 80 13 03 00 [16:21:18]Write to MH i2c: E2 08 00 9F 00 80 13 03 00 00 00 00 00 1E [16:21:18]Write i2c OK [16:21:18]MH_I2C_Read... [16:21:19]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [16:21:19]Read from MH i2c: E2 [16:21:19]MH_I2C_Read... [16:21:19]Read from MH i2c: E2 FD 00 [16:21:19]MH_I2C_Read... [16:21:19]Read from MH i2c: E2 FD 00 9F 00 00 C5 04 85 04 C1 04 6E 04 04 00 33 94 01 00 69 04 A3 00 6F 04 04 00 DA 8F 01 00 B1 04 05 00 6B 29 8A 40 04 70 04 05 00 10 F5 C3 5B 03 72 04 04 00 5B 34 C6 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 62 DF 9C 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 48 46 A2 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 75 [16:21:19]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 33 94 01 00 69 04 A3 00 6F 04 04 00 DA 8F 01 00 B1 04 05 00 6B 29 8A 40 04 70 04 05 00 10 F5 C3 5B 03 72 04 04 00 5B 34 C6 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 62 DF 9C 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 48 46 A2 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 [16:21:19]wFMCommunicate OK [16:21:19]wFMCommunicate request_size=4 [16:21:19]MH_SAM_APDU [16:21:19]CAPDU: 80 17 00 00 [16:21:19]Write to MH i2c: E2 08 00 A0 00 80 17 00 00 00 00 00 00 20 [16:21:19]Write i2c OK [16:21:19]MH_I2C_Read... [16:21:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:21:19]Read from MH i2c: E2 [16:21:19]MH_I2C_Read... [16:21:19]Read from MH i2c: E2 FD 00 [16:21:19]MH_I2C_Read... [16:21:19]Read from MH i2c: E2 FD 00 A0 00 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 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 F6 [16:21:19]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 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 [16:21:19]wFMCommunicate OK [16:21:19]wFMCommunicate request_size=4 [16:21:19]MH_SAM_APDU [16:21:19]CAPDU: 80 17 00 00 [16:21:19]Write to MH i2c: E2 08 00 A1 00 80 17 00 00 00 00 00 00 21 [16:21:19]Write i2c OK [16:21:19]MH_I2C_Read... [16:21:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:21:19]Read from MH i2c: E2 [16:21:19]MH_I2C_Read... [16:21:19]Read from MH i2c: E2 FD 00 [16:21:19]MH_I2C_Read... [16:21:19]Read from MH i2c: E2 FD 00 A1 00 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 33 [16:21:19]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 [16:21:19]wFMCommunicate OK [16:21:19]wFMCommunicate request_size=4 [16:21:19]MH_SAM_APDU [16:21:19]CAPDU: 80 17 00 00 [16:21:19]Write to MH i2c: E2 08 00 A2 00 80 17 00 00 00 00 00 00 22 [16:21:19]Write i2c OK [16:21:19]MH_I2C_Read... [16:21:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:21:20]Read from MH i2c: E2 [16:21:20]MH_I2C_Read... [16:21:20]Read from MH i2c: E2 FD 00 [16:21:20]MH_I2C_Read... [16:21:20]Read from MH i2c: E2 FD 00 A2 00 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 AE [16:21:20]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [16:21:20]wFMCommunicate OK [16:21:20]wFMCommunicate request_size=4 [16:21:20]MH_SAM_APDU [16:21:20]CAPDU: 80 17 00 00 [16:21:20]Write to MH i2c: E2 08 00 A3 00 80 17 00 00 00 00 00 00 23 [16:21:20]Write i2c OK [16:21:20]MH_I2C_Read... [16:21:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [16:21:20]Read from MH i2c: E2 [16:21:20]MH_I2C_Read... [16:21:20]Read from MH i2c: E2 E2 00 [16:21:20]MH_I2C_Read... [16:21:20]Read from MH i2c: E2 E2 00 A3 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 01 [16:21:20]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [16:21:20]wFMCommunicate OK [16:21:20]SAM_PROTO_GetFMData done [16:21:20]requested_item fm.sale_refund.total is exist - process it [16:21:20]requested_item fm.buy.total is exist - process it [16:21:20]requested_item shift.sale.total is exist - process it [16:21:20]SAM_PROTO_GetShiftData [16:21:20]wFMCommunicate request_size=4 [16:21:20]MH_SAM_APDU [16:21:20]CAPDU: 80 13 02 00 [16:21:20]Write to MH i2c: E2 08 00 A4 00 80 13 02 00 00 00 00 00 22 [16:21:20]Write i2c OK [16:21:20]MH_I2C_Read... [16:21:20]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [16:21:20]Read from MH i2c: E2 [16:21:20]MH_I2C_Read... [16:21:20]Read from MH i2c: E2 FD 00 [16:21:20]MH_I2C_Read... [16:21:20]Read from MH i2c: E2 FD 00 A4 00 00 B0 04 AA 04 AC 04 6E 04 04 00 6C 00 00 00 69 04 9D 00 6F 04 04 00 6C 00 00 00 B1 04 04 00 9E 67 21 01 70 04 03 00 70 2E A7 72 04 03 00 2E 39 7A 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 1E BD 1E 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 B3 8F 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 57 [16:21:20]RAPDU: B0 04 AA 04 AC 04 6E 04 04 00 6C 00 00 00 69 04 9D 00 6F 04 04 00 6C 00 00 00 B1 04 04 00 9E 67 21 01 70 04 03 00 70 2E A7 72 04 03 00 2E 39 7A 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 1E BD 1E 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 B3 8F 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [16:21:20]wFMCommunicate OK [16:21:20]wFMCommunicate request_size=4 [16:21:20]MH_SAM_APDU [16:21:20]CAPDU: 80 17 00 00 [16:21:20]Write to MH i2c: E2 08 00 A5 00 80 17 00 00 00 00 00 00 25 [16:21:20]Write i2c OK [16:21:20]MH_I2C_Read... [16:21:21]OFD Sender: No OFD packet to send [16:21:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:21:21]Read from MH i2c: E2 [16:21:21]MH_I2C_Read... [16:21:21]Read from MH i2c: E2 FD 00 [16:21:21]MH_I2C_Read... [16:21:21]Read from MH i2c: E2 FD 00 A5 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 90 00 3F [16:21:21]RAPDU: 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 90 00 [16:21:21]wFMCommunicate OK [16:21:21]wFMCommunicate request_size=4 [16:21:21]MH_SAM_APDU [16:21:21]CAPDU: 80 17 00 00 [16:21:21]Write to MH i2c: E2 08 00 A6 00 80 17 00 00 00 00 00 00 26 [16:21:21]Write i2c OK [16:21:21]MH_I2C_Read... [16:21:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:21:21]Read from MH i2c: E2 [16:21:21]MH_I2C_Read... [16:21:21]Read from MH i2c: E2 FD 00 [16:21:21]MH_I2C_Read... [16:21:21]Read from MH i2c: E2 FD 00 A6 00 00 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 90 00 E3 [16:21:21]RAPDU: 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 90 00 [16:21:21]wFMCommunicate OK [16:21:21]wFMCommunicate request_size=4 [16:21:21]MH_SAM_APDU [16:21:21]CAPDU: 80 17 00 00 [16:21:21]Write to MH i2c: E2 08 00 A7 00 80 17 00 00 00 00 00 00 27 [16:21:21]Write i2c OK [16:21:21]MH_I2C_Read... [16:21:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:21:21]Read from MH i2c: E2 [16:21:21]MH_I2C_Read... [16:21:21]Read from MH i2c: E2 FD 00 [16:21:21]MH_I2C_Read... [16:21:21]Read from MH i2c: E2 FD 00 A7 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 9A [16:21:22]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [16:21:22]wFMCommunicate OK [16:21:22]wFMCommunicate request_size=4 [16:21:22]MH_SAM_APDU [16:21:22]CAPDU: 80 17 00 00 [16:21:22]Write to MH i2c: E2 08 00 A8 00 80 17 00 00 00 00 00 00 28 [16:21:22]Write i2c OK [16:21:22]MH_I2C_Read... [16:21:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 202! [16:21:22]Read from MH i2c: E2 [16:21:22]MH_I2C_Read... [16:21:22]Read from MH i2c: E2 CD 00 [16:21:22]MH_I2C_Read... [16:21:22]Read from MH i2c: E2 CD 00 A8 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 0C [16:21:22]RAPDU: 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [16:21:22]wFMCommunicate OK [16:21:22]SAM_PROTO_GetShiftData done [16:21:22]requested_item shift.sale.total_cash is exist - process it [16:21:22]requested_item shift.sale_refund.total is exist - process it [16:21:22]requested_item shift.sale_refund.total_cash is exist - process it [16:21:22]requested_item shift.buy.total is exist - process it [16:21:22]requested_item shift.buy.total_cash is exist - process it [16:21:22]produce_requested_data done [16:21:22]produce_requested_data return {"fm.sale.total":182626655.79,"fm.sale_refund.total":4048941.00,"fm.buy.total":0.00,"shift.sale.total":189664.30,"shift.sale.total_cash":109564.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} [16:21:22]process_action_free get_value [16:21:22]json_value_free [16:21:22]json_value_free done [16:21:22]process_json_proto returns [16:21:22]Send response to host [16:21:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":182626655.79,"fm.sale_refund.total":4048941.00,"fm.buy.total":0.00,"shift.sale.total":189664.30,"shift.sale.total_cash":109564.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}}} [16:21:22]free response buf [16:21:22]execute_script done [16:21:22]execute_script returns [16:21:22]free content buf [16:21:22]Sock 9.Close socket [16:21:22]Sock 9.Thread stoped [16:21:26]OFD Sender: No OFD packet to send [16:21:31]OFD Sender: No OFD packet to send [16:21:36]OFD Sender: No OFD packet to send [16:21:41]OFD Sender: No OFD packet to send [16:21:46]OFD Sender: No OFD packet to send [16:21:51]OFD Sender: No OFD packet to send [16:21:56]OFD Sender: No OFD packet to send [16:22:01]OFD Sender: No OFD packet to send [16:22:06]OFD Sender: No OFD packet to send [16:22:11]OFD Sender: No OFD packet to send [16:22:16]OFD Sender: No OFD packet to send [16:22:21]OFD Sender: No OFD packet to send [16:22:26]OFD Sender: No OFD packet to send [16:22:31]OFD Sender: No OFD packet to send [16:22:36]OFD Sender: No OFD packet to send [16:22:41]OFD Sender: No OFD packet to send [16:22:46]OFD Sender: No OFD packet to send [16:22:51]OFD Sender: No OFD packet to send [16:22:56]OFD Sender: No OFD packet to send [16:23:01]OFD Sender: No OFD packet to send [16:23:06]OFD Sender: No OFD packet to send [16:23:11]OFD Sender: No OFD packet to send [16:23:16]OFD Sender: No OFD packet to send [16:23:21]OFD Sender: No OFD packet to send [16:23:26]OFD Sender: No OFD packet to send [16:23:31]OFD Sender: No OFD packet to send [16:23:36]OFD Sender: No OFD packet to send [16:23:41]OFD Sender: No OFD packet to send [16:23:46]OFD Sender: No OFD packet to send [16:23:51]OFD Sender: No OFD packet to send [16:23:56]OFD Sender: No OFD packet to send [16:24:01]OFD Sender: No OFD packet to send [16:24:06]OFD Sender: No OFD packet to send [16:24:11]OFD Sender: No OFD packet to send [16:24:16]OFD Sender: No OFD packet to send [16:24:21]OFD Sender: No OFD packet to send [16:24:26]OFD Sender: No OFD packet to send [16:24:31]OFD Sender: No OFD packet to send [16:24:36]OFD Sender: No OFD packet to send [16:24:41]OFD Sender: No OFD packet to send [16:24:46]OFD Sender: No OFD packet to send [16:24:51]OFD Sender: No OFD packet to send [16:24:56]OFD Sender: No OFD packet to send [16:25:01]OFD Sender: No OFD packet to send [16:25:06]OFD Sender: No OFD packet to send [16:25:11]OFD Sender: No OFD packet to send [16:25:16]OFD Sender: No OFD packet to send [16:25:21]OFD Sender: No OFD packet to send [16:25:26]OFD Sender: No OFD packet to send [16:25:31]OFD Sender: No OFD packet to send [16:25:36]OFD Sender: No OFD packet to send [16:25:39]accept exits with 7 [16:25:39]New connection [16:25:39]New thread 3066789220 created [16:25:39]Thread 3066932580 joined [16:25:39]Waiting for new connection... [16:25:39] Sock 7.Parse request [16:25:39]Sock 7.Check first char [16:25:39]Sock 7.First char is OK [16:25:39]request: POST /json_proto HTTP/1.0 [16:25:39]Method: POST [16:25:39]URL: /json_proto [16:25:39]Method is POST - this is cgi request [16:25:39]url: /json_proto [16:25:39]query_string will be loaded in cgi processing [16:25:39]execute_cgi json_proto POST (null) [16:25:39]execute_cgi path=json_proto method=POST [16:25:39]POST find Content-Length [16:25:39]Host: 172.17.38.133:8080 [16:25:39]Content-Length: 1196 [16:25:39]Content-Type: application/json [16:25:39] [16:25:39]POST finish read [16:25:39]Found Content-Length = 1196 [16:25: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 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)673620\u000A21.06.2024 16:02\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\u000A1\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:25:39]execute_script... [16:25: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 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)673620\u000A21.06.2024 16:02\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\u000A1\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:25:39]POST & json_proto [16:25:39]process_json_proto [16:25:39]json parsed OK: [16:25:39]protocol is kg_v1.0 [16:25:39]action value=print_text [16:25:39]process_action print_text [16:25:39]cmd_print_text [16:25:39]ExternCall_PrintAddStr [16:25:39]wPrintStart [16:25:39]Write to MH i2c: 01 00 00 A9 00 A9 [16:25:39]Write i2c OK [16:25:39]MH_I2C_Read... [16:25:39]Read from MH i2c: 01 [16:25:39]MH_I2C_Read... [16:25:39]Read from MH i2c: 01 07 00 [16:25:39]MH_I2C_Read... [16:25:39]Read from MH i2c: 01 07 00 A9 00 00 00 00 00 00 FF 0F BE [16:25:39]RasterBufferAndPrint [16:25:39]line *****ТОВАРНЫЙ ЧЕК***** [16:25:39]line АЗС 120 [16:25:39]line Партнер нефть [16:25:39]line 02508201610067 [16:25:39]line Кассир : Асанбаев Н. [16:25:39]line Счет N : (1)673620 [16:25:39]line 21.06.2024 16:02 [16:25:39]line ПРОДАЖА [16:25:39]line ТРК (МРК, ГНК): 11 [16:25:39]line Вид ГСМ : 2710194210 [16:25:39]line ДТ(л)-К-5 [16:25:39]line 20.000 x 72.90 [16:25:39]line ИТОГ: 1458.00 [16:25:39]line Тип оплаты: Талоны: Топливная Карта [16:25:39]line 1 [16:25:39]line ______________________ [16:25:39]line (подпись) [16:25:39]written 0, free lines is 4095 [16:25:39]Write to MH i2c: 01 00 00 BD 00 BD [16:25:39]Write i2c OK [16:25:39]MH_I2C_Read... [16:25:39]Read from MH i2c: 01 [16:25:39]MH_I2C_Read... [16:25:39]Read from MH i2c: 01 07 00 [16:25:39]MH_I2C_Read... [16:25:39]Read from MH i2c: 01 07 00 BD 00 00 00 00 00 00 0E 0E E0 [16:25:39]RasterBufferAndPrint [16:25:39]line [16:25:39]line [16:25:39]line [16:25:39]line [16:25:39]line [16:25:39]written 0, free lines is 3600 [16:25:39]MH_Cut [16:25:39]Write to MH i2c: D1 01 00 C4 00 01 96 [16:25:39]Write i2c OK [16:25:39]MH_I2C_Read... [16:25:39]Read from MH i2c: D1 [16:25:39]MH_I2C_Read... [16:25:39]Read from MH i2c: D1 01 00 [16:25:39]MH_I2C_Read... [16:25:39]Read from MH i2c: D1 01 00 C4 00 00 95 [16:25:39]Write to MH i2c: 01 00 00 C5 00 C5 [16:25:39]Write i2c OK [16:25:39]MH_I2C_Read... [16:25:40]*** Cut start [16:25:40]*** Partial cut [16:25:40]*** CUTSNS_PIN = 1 [16:25:40]*** CUTSNS_PIN = 0 [16:25:40]*** Brake cut motor [16:25:40]Read from MH i2c: 01 [16:25:40]MH_I2C_Read... [16:25:40]*** Stop cut motor [16:25:40]*** Cut end [16:25:40]Read from MH i2c: 01 07 00 [16:25:40]MH_I2C_Read... [16:25:40]Read from MH i2c: 01 07 00 C5 00 00 00 00 00 00 FF 0F DA [16:25:40]process_action print_text done [16:25:40]requested_data is exist [16:25:40]produce_requested_data [16:25:40]requested_item fm.sn is exist - process it [16:25:40]wFMCommunicate request_size=4 [16:25:40]MH_SAM_APDU [16:25:40]CAPDU: 80 11 00 00 [16:25:40]Write to MH i2c: E2 08 00 C6 00 80 11 00 00 00 00 00 00 40 [16:25:40]Write i2c OK [16:25:40]MH_I2C_Read... [16:25:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:25:40]Read from MH i2c: E2 [16:25:40]MH_I2C_Read... [16:25:40]Read from MH i2c: E2 17 00 [16:25:40]MH_I2C_Read... [16:25:40]Read from MH i2c: E2 17 00 C6 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 93 [16:25: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:25:40]wFMCommunicate OK [16:25:40]requested_item fd.num is exist - process it [16:25:40]SAM_PROTO_GetFieldsCounters [16:25:40]wFMCommunicate request_size=4 [16:25:40]MH_SAM_APDU [16:25:40]CAPDU: 80 13 00 00 [16:25:40]Write to MH i2c: E2 08 00 C7 00 80 13 00 00 00 00 00 00 43 [16:25:40]Write i2c OK [16:25:40]MH_I2C_Read... [16:25:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:25:41]Read from MH i2c: E2 [16:25:41]MH_I2C_Read... [16:25:41]Read from MH i2c: E2 62 00 [16:25:41]MH_I2C_Read... [16:25:41]Read from MH i2c: E2 62 00 C7 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 F9 96 01 00 0E 04 04 00 63 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 A2 [16:25:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 96 01 00 0E 04 04 00 63 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 [16:25:41]wFMCommunicate OK [16:25:41]SAM_PROTO_GetFieldsCounters done [16:25:41]requested_item shift.num is exist - process it [16:25:41]requested_item shift.opened is exist - process it [16:25:41]req_shift_opened [16:25:41]FM_GetShiftState [16:25:41]SAM_PROTO_GetShiftState [16:25:41]wFMCommunicate request_size=4 [16:25:41]MH_SAM_APDU [16:25:41]CAPDU: 80 13 01 00 [16:25:41]Write to MH i2c: E2 08 00 C8 00 80 13 01 00 00 00 00 00 45 [16:25:41]Write i2c OK [16:25:41]MH_I2C_Read... [16:25:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:25:41]Read from MH i2c: E2 [16:25:41]MH_I2C_Read... [16:25:41]Read from MH i2c: E2 0E 00 [16:25:41]MH_I2C_Read... [16:25:41]Read from MH i2c: E2 0E 00 C8 00 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 58 [16:25:41]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [16:25:41]wFMCommunicate OK [16:25:41]SAM_PROTO_GetShiftState done [16:25:41]FM_GetShiftState done [16:25:41]req_shift_opened done [16:25:41]requested_item shift.open_date is exist - process it [16:25:41]req_shift_open_date [16:25:41]req_shift_open_date done [16:25:41]produce_requested_data done [16:25:41]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104185,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [16:25:41]process_action_free print_text [16:25:41]json_value_free [16:25:41]json_value_free done [16:25:41]process_json_proto returns [16:25:41]Send response to host [16:25:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104185,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [16:25:41]free response buf [16:25:41]execute_script done [16:25:41]execute_script returns [16:25:41]free content buf [16:25:41]Sock 7.Close socket [16:25:41]Sock 7.Thread stoped [16:25:41]OFD Sender: No OFD packet to send [16:25:46]OFD Sender: No OFD packet to send [16:25:51]OFD Sender: No OFD packet to send [16:25:56]OFD Sender: No OFD packet to send [16:26:01]OFD Sender: No OFD packet to send [16:26:06]OFD Sender: No OFD packet to send [16:26:11]OFD Sender: No OFD packet to send [16:26:16]OFD Sender: No OFD packet to send [16:26:21]OFD Sender: No OFD packet to send [16:26:26]OFD Sender: No OFD packet to send [16:26:31]OFD Sender: No OFD packet to send [16:26:36]OFD Sender: No OFD packet to send [16:26:41]OFD Sender: No OFD packet to send [16:26:46]OFD Sender: No OFD packet to send [16:26:51]OFD Sender: No OFD packet to send [16:26:56]OFD Sender: No OFD packet to send [16:27:01]OFD Sender: No OFD packet to send [16:27:06]OFD Sender: No OFD packet to send [16:27:11]OFD Sender: No OFD packet to send [16:27:16]OFD Sender: No OFD packet to send [16:27:21]OFD Sender: No OFD packet to send [16:27:26]OFD Sender: No OFD packet to send [16:27:31]OFD Sender: No OFD packet to send [16:27:36]OFD Sender: No OFD packet to send [16:27:41]OFD Sender: No OFD packet to send [16:27:46]OFD Sender: No OFD packet to send [16:27:51]OFD Sender: No OFD packet to send [16:27:56]OFD Sender: No OFD packet to send [16:28:01]OFD Sender: No OFD packet to send [16:28:06]OFD Sender: No OFD packet to send [16:28:11]OFD Sender: No OFD packet to send [16:28:16]OFD Sender: No OFD packet to send [16:28:21]OFD Sender: No OFD packet to send [16:28:26]OFD Sender: No OFD packet to send [16:28:31]OFD Sender: No OFD packet to send [16:28:36]OFD Sender: No OFD packet to send [16:28:41]OFD Sender: No OFD packet to send [16:28:46]OFD Sender: No OFD packet to send [16:28:51]OFD Sender: No OFD packet to send [16:28:56]OFD Sender: No OFD packet to send [16:29:01]OFD Sender: No OFD packet to send [16:29:06]OFD Sender: No OFD packet to send [16:29:11]OFD Sender: No OFD packet to send [16:29:16]OFD Sender: No OFD packet to send [16:29:21]OFD Sender: No OFD packet to send [16:29:26]OFD Sender: No OFD packet to send [16:29:31]OFD Sender: No OFD packet to send [16:29:36]OFD Sender: No OFD packet to send [16:29:41]OFD Sender: No OFD packet to send [16:29:44]accept exits with 9 [16:29:44]New connection [16:29:44]New thread 3066932580 created [16:29:44]Thread 3066789220 joined [16:29:44]Waiting for new connection... [16:29:44] Sock 9.Parse request [16:29:44]Sock 9.Check first char [16:29:44]Sock 9.First char is OK [16:29:44]request: POST /json_proto HTTP/1.0 [16:29:44]Method: POST [16:29:44]URL: /json_proto [16:29:44]Method is POST - this is cgi request [16:29:44]url: /json_proto [16:29:44]query_string will be loaded in cgi processing [16:29:44]execute_cgi json_proto POST (null) [16:29:44]execute_cgi path=json_proto method=POST [16:29:44]POST find Content-Length [16:29:44]Host: 172.17.38.133:8080 [16:29:44]Content-Length: 1196 [16:29:44]Content-Type: application/json [16:29:44] [16:29:44]POST finish read [16:29:44]Found Content-Length = 1196 [16:29: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 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)673621\u000A21.06.2024 16:06\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\u000A1\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:29:44]execute_script... [16:29: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 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)673621\u000A21.06.2024 16:06\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\u000A1\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:29:44]POST & json_proto [16:29:44]process_json_proto [16:29:44]json parsed OK: [16:29:44]protocol is kg_v1.0 [16:29:44]action value=print_text [16:29:44]process_action print_text [16:29:44]cmd_print_text [16:29:44]ExternCall_PrintAddStr [16:29:44]wPrintStart [16:29:44]Write to MH i2c: 01 00 00 C9 00 C9 [16:29:44]Write i2c OK [16:29:44]MH_I2C_Read... [16:29:44]Read from MH i2c: 01 [16:29:44]MH_I2C_Read... [16:29:44]Read from MH i2c: 01 07 00 [16:29:44]MH_I2C_Read... [16:29:44]Read from MH i2c: 01 07 00 C9 00 00 00 00 00 00 FF 0F DE [16:29:44]RasterBufferAndPrint [16:29:44]line *****ТОВАРНЫЙ ЧЕК***** [16:29:44]line АЗС 120 [16:29:44]line Партнер нефть [16:29:44]line 02508201610067 [16:29:44]line Кассир : Асанбаев Н. [16:29:44]line Счет N : (1)673621 [16:29:44]line 21.06.2024 16:06 [16:29:44]line ПРОДАЖА [16:29:44]line ТРК (МРК, ГНК): 11 [16:29:44]line Вид ГСМ : 2710194210 [16:29:44]line ДТ(л)-К-5 [16:29:44]line 20.000 x 72.90 [16:29:44]line ИТОГ: 1458.00 [16:29:44]line Тип оплаты: Талоны: Топливная Карта [16:29:44]line 1 [16:29:44]line ______________________ [16:29:44]line (подпись) [16:29:44]written 0, free lines is 4095 [16:29:44]Write to MH i2c: 01 00 00 DD 00 DD [16:29:44]Write i2c OK [16:29:44]MH_I2C_Read... [16:29:44]Read from MH i2c: 01 [16:29:44]MH_I2C_Read... [16:29:44]Read from MH i2c: 01 07 00 [16:29:44]MH_I2C_Read... [16:29:44]Read from MH i2c: 01 07 00 DD 00 00 00 00 00 00 0E 0E 00 [16:29:44]RasterBufferAndPrint [16:29:44]line [16:29:44]line [16:29:44]line [16:29:44]line [16:29:44]line [16:29:44]written 0, free lines is 3599 [16:29:44]MH_Cut [16:29:44]Write to MH i2c: D1 01 00 E4 00 01 B6 [16:29:44]Write i2c OK [16:29:44]MH_I2C_Read... [16:29:44]Read from MH i2c: D1 [16:29:44]MH_I2C_Read... [16:29:44]Read from MH i2c: D1 01 00 [16:29:44]MH_I2C_Read... [16:29:44]Read from MH i2c: D1 01 00 E4 00 00 B5 [16:29:44]Write to MH i2c: 01 00 00 E5 00 E5 [16:29:44]Write i2c OK [16:29:44]MH_I2C_Read... [16:29:44]*** Cut start [16:29:44]*** Partial cut [16:29:44]*** CUTSNS_PIN = 1 [16:29:44]*** CUTSNS_PIN = 0 [16:29:45]*** Brake cut motor [16:29:45]Read from MH i2c: 01 [16:29:45]MH_I2C_Read... [16:29:45]*** Stop cut motor [16:29:45]*** Cut end [16:29:45]Read from MH i2c: 01 07 00 [16:29:45]MH_I2C_Read... [16:29:45]Read from MH i2c: 01 07 00 E5 00 00 00 00 00 00 FF 0F FA [16:29:45]process_action print_text done [16:29:45]requested_data is exist [16:29:45]produce_requested_data [16:29:45]requested_item fm.sn is exist - process it [16:29:45]wFMCommunicate request_size=4 [16:29:45]MH_SAM_APDU [16:29:45]CAPDU: 80 11 00 00 [16:29:45]Write to MH i2c: E2 08 00 E6 00 80 11 00 00 00 00 00 00 60 [16:29:45]Write i2c OK [16:29:45]MH_I2C_Read... [16:29:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:29:45]Read from MH i2c: E2 [16:29:45]MH_I2C_Read... [16:29:45]Read from MH i2c: E2 17 00 [16:29:45]MH_I2C_Read... [16:29:45]Read from MH i2c: E2 17 00 E6 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 B3 [16:29:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [16:29:45]wFMCommunicate OK [16:29:45]requested_item fd.num is exist - process it [16:29:45]SAM_PROTO_GetFieldsCounters [16:29:45]wFMCommunicate request_size=4 [16:29:45]MH_SAM_APDU [16:29:45]CAPDU: 80 13 00 00 [16:29:45]Write to MH i2c: E2 08 00 E7 00 80 13 00 00 00 00 00 00 63 [16:29:45]Write i2c OK [16:29:45]MH_I2C_Read... [16:29:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:29:45]Read from MH i2c: E2 [16:29:45]MH_I2C_Read... [16:29:45]Read from MH i2c: E2 62 00 [16:29:45]MH_I2C_Read... [16:29:45]Read from MH i2c: E2 62 00 E7 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 F9 96 01 00 0E 04 04 00 63 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 C2 [16:29: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 F9 96 01 00 0E 04 04 00 63 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 [16:29:45]wFMCommunicate OK [16:29:45]SAM_PROTO_GetFieldsCounters done [16:29:45]requested_item shift.num is exist - process it [16:29:45]requested_item shift.opened is exist - process it [16:29:45]req_shift_opened [16:29:45]FM_GetShiftState [16:29:45]SAM_PROTO_GetShiftState [16:29:45]wFMCommunicate request_size=4 [16:29:45]MH_SAM_APDU [16:29:45]CAPDU: 80 13 01 00 [16:29:45]Write to MH i2c: E2 08 00 E8 00 80 13 01 00 00 00 00 00 65 [16:29:45]Write i2c OK [16:29:45]MH_I2C_Read... [16:29:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:29:45]Read from MH i2c: E2 [16:29:45]MH_I2C_Read... [16:29:45]Read from MH i2c: E2 0E 00 [16:29:45]MH_I2C_Read... [16:29:45]Read from MH i2c: E2 0E 00 E8 00 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 78 [16:29:45]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [16:29:45]wFMCommunicate OK [16:29:45]SAM_PROTO_GetShiftState done [16:29:45]FM_GetShiftState done [16:29:45]req_shift_opened done [16:29:45]requested_item shift.open_date is exist - process it [16:29:45]req_shift_open_date [16:29:45]req_shift_open_date done [16:29:45]produce_requested_data done [16:29:45]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104185,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [16:29:45]process_action_free print_text [16:29:45]json_value_free [16:29:45]json_value_free done [16:29:45]process_json_proto returns [16:29:45]Send response to host [16:29:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104185,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [16:29:45]free response buf [16:29:45]execute_script done [16:29:45]execute_script returns [16:29:45]free content buf [16:29:45]Sock 9.Close socket [16:29:45]Sock 9.Thread stoped [16:29:46]OFD Sender: No OFD packet to send [16:29:51]OFD Sender: No OFD packet to send [16:29:56]OFD Sender: No OFD packet to send [16:30:01]OFD Sender: No OFD packet to send [16:30:06]OFD Sender: No OFD packet to send [16:30:11]OFD Sender: No OFD packet to send [16:30:16]OFD Sender: No OFD packet to send [16:30:21]OFD Sender: No OFD packet to send [16:30:26]OFD Sender: No OFD packet to send [16:30:31]OFD Sender: No OFD packet to send [16:30:36]OFD Sender: No OFD packet to send [16:30:41]OFD Sender: No OFD packet to send [16:30:46]OFD Sender: No OFD packet to send [16:30:51]OFD Sender: No OFD packet to send [16:30:56]OFD Sender: No OFD packet to send [16:31:01]OFD Sender: No OFD packet to send [16:31:06]OFD Sender: No OFD packet to send [16:31:11]OFD Sender: No OFD packet to send [16:31:16]OFD Sender: No OFD packet to send [16:31:21]OFD Sender: No OFD packet to send [16:31:24]accept exits with 7 [16:31:24]New connection [16:31:24]New thread 3066789220 created [16:31:24]Thread 3066932580 joined [16:31:24]Waiting for new connection... [16:31:24] Sock 7.Parse request [16:31:24]Sock 7.Check first char [16:31:24]Sock 7.First char is OK [16:31:24]request: POST /json_proto HTTP/1.0 [16:31:24]Method: POST [16:31:24]URL: /json_proto [16:31:24]Method is POST - this is cgi request [16:31:24]url: /json_proto [16:31:24]query_string will be loaded in cgi processing [16:31:24]execute_cgi json_proto POST (null) [16:31:24]execute_cgi path=json_proto method=POST [16:31:24]POST find Content-Length [16:31:24]Host: 172.17.38.133:8080 [16:31:24]Content-Length: 1184 [16:31:24]Content-Type: application/json [16:31:24] [16:31:24]POST finish read [16:31:24]Found Content-Length = 1184 [16:31:24]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)673622\u000A21.06.2024 16:08\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\u000A3545241\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:31:24]execute_script... [16:31:24]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)673622\u000A21.06.2024 16:08\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\u000A3545241\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:31:24]POST & json_proto [16:31:24]process_json_proto [16:31:24]json parsed OK: [16:31:24]protocol is kg_v1.0 [16:31:24]action value=print_text [16:31:24]process_action print_text [16:31:24]cmd_print_text [16:31:24]ExternCall_PrintAddStr [16:31:24]wPrintStart [16:31:24]Write to MH i2c: 01 00 00 E9 00 E9 [16:31:24]Write i2c OK [16:31:24]MH_I2C_Read... [16:31:24]Read from MH i2c: 01 [16:31:24]MH_I2C_Read... [16:31:24]Read from MH i2c: 01 07 00 [16:31:24]MH_I2C_Read... [16:31:24]Read from MH i2c: 01 07 00 E9 00 00 00 00 00 00 FF 0F FE [16:31:24]RasterBufferAndPrint [16:31:24]line *****ТОВАРНЫЙ ЧЕК***** [16:31:24]line АЗС 120 [16:31:24]line Партнер нефть [16:31:24]line 02508201610067 [16:31:24]line Кассир : Асанбаев Н. [16:31:24]line Счет N : (1)673622 [16:31:24]line 21.06.2024 16:08 [16:31:24]line ПРОДАЖА [16:31:24]line ТРК (МРК, ГНК): 32 [16:31:24]line Вид ГСМ : 2710124130 [16:31:24]line Аи-92-К-5 [16:31:24]line 10.000 x 66.40 [16:31:24]line ИТОГ: 664.00 [16:31:24]line Тип оплаты: Талоны: Партнер нефть [16:31:24]line 3545241 [16:31:24]line ______________________ [16:31:24]line (подпись) [16:31:24]written 0, free lines is 4095 [16:31:24]Write to MH i2c: 01 00 00 FD 00 FD [16:31:24]Write i2c OK [16:31:24]MH_I2C_Read... [16:31:24]Read from MH i2c: 01 [16:31:24]MH_I2C_Read... [16:31:24]Read from MH i2c: 01 07 00 [16:31:24]MH_I2C_Read... [16:31:24]Read from MH i2c: 01 07 00 FD 00 00 00 00 00 00 12 0E 24 [16:31:24]RasterBufferAndPrint [16:31:24]line [16:31:24]line [16:31:24]line [16:31:24]line [16:31:24]line [16:31:24]written 0, free lines is 3604 [16:31:24]MH_Cut [16:31:24]Write to MH i2c: D1 01 00 04 01 01 D7 [16:31:24]Write i2c OK [16:31:24]MH_I2C_Read... [16:31:24]Read from MH i2c: D1 [16:31:24]MH_I2C_Read... [16:31:24]Read from MH i2c: D1 01 00 [16:31:24]MH_I2C_Read... [16:31:24]Read from MH i2c: D1 01 00 04 01 00 D6 [16:31:24]Write to MH i2c: 01 00 00 05 01 06 [16:31:24]Write i2c OK [16:31:24]MH_I2C_Read... [16:31:25]*** Cut start [16:31:25]*** Partial cut [16:31:25]*** CUTSNS_PIN = 1 [16:31:25]*** CUTSNS_PIN = 0 [16:31:25]*** Brake cut motor [16:31:26]Read from MH i2c: 01 [16:31:26]MH_I2C_Read... [16:31:26]*** Stop cut motor [16:31:26]*** Cut end [16:31:26]Read from MH i2c: 01 07 00 [16:31:26]MH_I2C_Read... [16:31:26]Read from MH i2c: 01 07 00 05 01 00 00 00 00 00 FF 0F 1B [16:31:26]process_action print_text done [16:31:26]requested_data is exist [16:31:26]produce_requested_data [16:31:26]requested_item fm.sn is exist - process it [16:31:26]wFMCommunicate request_size=4 [16:31:26]MH_SAM_APDU [16:31:26]CAPDU: 80 11 00 00 [16:31:26]Write to MH i2c: E2 08 00 06 01 80 11 00 00 00 00 00 00 81 [16:31:26]Write i2c OK [16:31:26]MH_I2C_Read... [16:31:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:31:26]Read from MH i2c: E2 [16:31:26]MH_I2C_Read... [16:31:26]Read from MH i2c: E2 17 00 [16:31:26]MH_I2C_Read... [16:31:26]Read from MH i2c: E2 17 00 06 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 D4 [16:31:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [16:31:26]wFMCommunicate OK [16:31:26]requested_item fd.num is exist - process it [16:31:26]SAM_PROTO_GetFieldsCounters [16:31:26]wFMCommunicate request_size=4 [16:31:26]MH_SAM_APDU [16:31:26]CAPDU: 80 13 00 00 [16:31:26]Write to MH i2c: E2 08 00 07 01 80 13 00 00 00 00 00 00 84 [16:31:26]Write i2c OK [16:31:26]MH_I2C_Read... [16:31:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:31:26]Read from MH i2c: E2 [16:31:26]MH_I2C_Read... [16:31:26]Read from MH i2c: E2 62 00 [16:31:26]MH_I2C_Read... [16:31:26]Read from MH i2c: E2 62 00 07 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 F9 96 01 00 0E 04 04 00 63 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 E3 [16:31: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 F9 96 01 00 0E 04 04 00 63 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 [16:31:26]wFMCommunicate OK [16:31:26]SAM_PROTO_GetFieldsCounters done [16:31:26]requested_item shift.num is exist - process it [16:31:26]requested_item shift.opened is exist - process it [16:31:26]req_shift_opened [16:31:26]FM_GetShiftState [16:31:26]SAM_PROTO_GetShiftState [16:31:26]wFMCommunicate request_size=4 [16:31:26]MH_SAM_APDU [16:31:26]CAPDU: 80 13 01 00 [16:31:26]Write to MH i2c: E2 08 00 08 01 80 13 01 00 00 00 00 00 86 [16:31:26]Write i2c OK [16:31:26]MH_I2C_Read... [16:31:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:31:26]Read from MH i2c: E2 [16:31:26]MH_I2C_Read... [16:31:26]Read from MH i2c: E2 0E 00 [16:31:26]MH_I2C_Read... [16:31:26]Read from MH i2c: E2 0E 00 08 01 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 99 [16:31:26]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [16:31:26]wFMCommunicate OK [16:31:26]SAM_PROTO_GetShiftState done [16:31:26]FM_GetShiftState done [16:31:26]req_shift_opened done [16:31:26]requested_item shift.open_date is exist - process it [16:31:26]req_shift_open_date [16:31:26]req_shift_open_date done [16:31:26]produce_requested_data done [16:31:26]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104185,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [16:31:26]process_action_free print_text [16:31:26]json_value_free [16:31:26]json_value_free done [16:31:26]process_json_proto returns [16:31:26]Send response to host [16:31:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104185,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [16:31:26]free response buf [16:31:26]execute_script done [16:31:26]execute_script returns [16:31:26]free content buf [16:31:26]Sock 7.Close socket [16:31:26]Sock 7.Thread stoped [16:31:26]OFD Sender: No OFD packet to send [16:31:31]OFD Sender: No OFD packet to send [16:31:36]OFD Sender: No OFD packet to send [16:31:41]OFD Sender: No OFD packet to send [16:31:46]OFD Sender: No OFD packet to send [16:31:51]OFD Sender: No OFD packet to send [16:31:56]OFD Sender: No OFD packet to send [16:32:01]OFD Sender: No OFD packet to send [16:32:06]OFD Sender: No OFD packet to send [16:32:11]OFD Sender: No OFD packet to send [16:32:16]OFD Sender: No OFD packet to send [16:32:21]OFD Sender: No OFD packet to send [16:32:26]OFD Sender: No OFD packet to send [16:32:31]OFD Sender: No OFD packet to send [16:32:36]OFD Sender: No OFD packet to send [16:32:41]OFD Sender: No OFD packet to send [16:32:46]OFD Sender: No OFD packet to send [16:32:51]OFD Sender: No OFD packet to send [16:32:56]OFD Sender: No OFD packet to send [16:33:01]OFD Sender: No OFD packet to send [16:33:06]OFD Sender: No OFD packet to send [16:33:11]OFD Sender: No OFD packet to send [16:33:16]OFD Sender: No OFD packet to send [16:33:21]OFD Sender: No OFD packet to send [16:33:26]OFD Sender: No OFD packet to send [16:33:31]OFD Sender: No OFD packet to send [16:33:36]OFD Sender: No OFD packet to send [16:33:38]accept exits with 9 [16:33:38]New connection [16:33:38]New thread 3066932580 created [16:33:38]Thread 3066789220 joined [16:33:38]Waiting for new connection... [16:33:38] Sock 9.Parse request [16:33:38]Sock 9.Check first char [16:33:38]Sock 9.First char is OK [16:33:38]request: POST /json_proto HTTP/1.0 [16:33:38]Method: POST [16:33:38]URL: /json_proto [16:33:38]Method is POST - this is cgi request [16:33:38]url: /json_proto [16:33:38]query_string will be loaded in cgi processing [16:33:38]execute_cgi json_proto POST (null) [16:33:38]execute_cgi path=json_proto method=POST [16:33:38]POST find Content-Length [16:33:38]Host: 172.17.38.133:8080 [16:33:38]Content-Length: 677 [16:33:38]Content-Type: application/json [16:33:38] [16:33:38]POST finish read [16:33:38]Found Content-Length = 677 [16:33:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673623", "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" ] } } [16:33:38]execute_script... [16:33: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)673623", "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" ] } } [16:33:38]POST & json_proto [16:33:38]process_json_proto [16:33:38]json parsed OK: [16:33:38]protocol is kg_v1.0 [16:33:38]action value=close_receipt [16:33:38]process_action close_receipt [16:33:38]cmd_close_receipt [16:33:38]MH_GetDate [16:33:38]Write to MH i2c: F0 00 00 09 01 F9 [16:33:38]Write i2c OK [16:33:38]MH_I2C_Read... [16:33:38]Read from MH i2c: F0 [16:33:38]MH_I2C_Read... [16:33:38]Read from MH i2c: F0 09 00 [16:33:38]MH_I2C_Read... [16:33:38]Read from MH i2c: F0 09 00 09 01 00 62 AB 75 66 BD 8F 7C 64 16 [16:33:38]GetLastDocTimeStamp 1718986873 [16:33:38]current date 1718987618 [16:33:38]FM_GetShiftState [16:33:38]SAM_PROTO_GetShiftState [16:33:38]wFMCommunicate request_size=4 [16:33:38]MH_SAM_APDU [16:33:38]CAPDU: 80 13 01 00 [16:33:38]Write to MH i2c: E2 08 00 0A 01 80 13 01 00 00 00 00 00 88 [16:33:38]Write i2c OK [16:33:38]MH_I2C_Read... [16:33:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:33:38]Read from MH i2c: E2 [16:33:38]MH_I2C_Read... [16:33:38]Read from MH i2c: E2 0E 00 [16:33:38]MH_I2C_Read... [16:33:38]Read from MH i2c: E2 0E 00 0A 01 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 9B [16:33:38]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [16:33:38]wFMCommunicate OK [16:33:38]SAM_PROTO_GetShiftState done [16:33:38]FM_GetShiftState done [16:33:38]opened in 1718929509 [16:33:38]opened+sec_in_day 1719015909 [16:33:38]quantity*price = 40039 [16:33:38]sum+1 = 40040 [16:33:38]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 СНО: Общий режим Чек 109 21.06.2024 16:33 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104186 ФПД: 140697511504905 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T163338&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104186&fm=140697511504905&tin=02508201610067®Number=0000000000092785&sum=40000 [16:33:39]StoreToDocumentArchive [16:33:39]shift 355 fd 104186 [16:33:39]save to /storage/0355/doc_00104186 [16:33:39]save last doc name /storage/0355/doc_00104186 to /storage/kkm_last_doc_name [16:33:39]save OK [16:33:39]Clear old archive folders... [16:33:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:33:39]tlvbuf is 010B95E0 [16:33:39]SAM_PROTO_ClearQueue [16:33:39]wFMCommunicate request_size=4 [16:33:39]MH_SAM_APDU [16:33:39]CAPDU: 80 09 00 00 [16:33:39]Write to MH i2c: E2 08 00 17 01 80 09 00 00 00 00 00 00 8A [16:33:39]Write i2c OK [16:33:39]MH_I2C_Read... [16:33:39]Read from MH i2c: E2 [16:33:39]MH_I2C_Read... [16:33:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:33:39]Read from MH i2c: E2 03 00 [16:33:39]MH_I2C_Read... [16:33:39]Read from MH i2c: E2 03 00 17 01 00 90 00 8C [16:33:39]RAPDU: 90 00 [16:33:39]wFMCommunicate OK [16:33:39]SAM_PROTO_ClearQueue done [16:33:39]KKMCreateOFDPacket [16:33:39]OFDProtocolAddRootSTLVToBuf [16:33:39]FM_MakeSignedData [16:33:39]FM_MakeSignedData [16:33:39]SAM_PROTO_SignData [16:33:39]wFMCommunicate request_size=4 [16:33:39]MH_SAM_APDU [16:33:39]CAPDU: 80 0D 01 02 [16:33:39]Write to MH i2c: E2 08 00 18 01 80 0D 01 02 00 00 00 00 92 [16:33:39]Write i2c OK [16:33:39]MH_I2C_Read... [16:33:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:33:39]Read from MH i2c: E2 [16:33:39]MH_I2C_Read... [16:33:39]Read from MH i2c: E2 03 00 [16:33:39]MH_I2C_Read... [16:33:39]Read from MH i2c: E2 03 00 18 01 00 90 00 8D [16:33:39]RAPDU: 90 00 [16:33:39]wFMCommunicate OK [16:33:39]wFMCommunicate request_size=255 [16:33:39]MH_SAM_APDU [16:33:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 6D 00 00 00 F4 03 04 00 62 AB 75 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 FA 96 01 00 35 04 06 00 7F [16:33:39]Write to MH i2c: E2 02 01 19 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 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 6D 00 00 00 F4 03 04 00 62 AB 75 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 FA 96 01 00 35 04 06 00 7F 00 00 E3 [16:33:39]Write i2c OK [16:33:39]MH_I2C_Read... [16:33:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:33:39]Read from MH i2c: E2 [16:33:39]MH_I2C_Read... [16:33:39]Read from MH i2c: E2 03 00 [16:33:39]MH_I2C_Read... [16:33:39]Read from MH i2c: E2 03 00 19 01 00 90 00 8E [16:33:39]RAPDU: 90 00 [16:33:39]wFMCommunicate OK [16:33:39]wFMCommunicate request_size=10 [16:33:39]MH_SAM_APDU [16:33:39]CAPDU: 80 0D 02 02 05 F6 B1 31 AC 09 [16:33:39]Write to MH i2c: E2 0D 00 1A 01 80 0D 02 02 05 00 F6 B1 31 AC 09 00 00 2C [16:33:39]Write i2c OK [16:33:39]MH_I2C_Read... [16:33:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:33:39]Read from MH i2c: E2 [16:33:39]MH_I2C_Read... [16:33:39]Read from MH i2c: E2 03 00 [16:33:39]MH_I2C_Read... [16:33:39]Read from MH i2c: E2 03 00 1A 01 00 90 00 8F [16:33:39]RAPDU: 90 00 [16:33:39]wFMCommunicate OK [16:33:39]wFMCommunicate request_size=4 [16:33:39]MH_SAM_APDU [16:33:39]CAPDU: 80 0D 03 02 [16:33:39]Write to MH i2c: E2 08 00 1B 01 80 0D 03 02 00 00 00 00 97 [16:33:39]Write i2c OK [16:33:39]MH_I2C_Read... [16:33:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:33:39]Read from MH i2c: E2 [16:33:39]MH_I2C_Read... [16:33:39]Read from MH i2c: E2 0B 00 [16:33:39]MH_I2C_Read... [16:33:39]Read from MH i2c: E2 0B 00 1B 01 00 36 24 82 EE AE 56 C0 46 90 00 6C [16:33:39]RAPDU: 36 24 82 EE AE 56 C0 46 90 00 [16:33:39]wFMCommunicate OK [16:33:39]SAM_PROTO_SignData done [16:33:39]FM_MakeSignedData done [16:33:39]CreateOFDProtocolMessage [16:33:39]wFMCommunicate request_size=4 [16:33:39]MH_SAM_APDU [16:33:39]CAPDU: 80 11 00 00 [16:33:39]Write to MH i2c: E2 08 00 1C 01 80 11 00 00 00 00 00 00 97 [16:33:39]Write i2c OK [16:33:39]MH_I2C_Read... [16:33:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:33:39]Read from MH i2c: E2 [16:33:39]MH_I2C_Read... [16:33:39]Read from MH i2c: E2 17 00 [16:33:39]MH_I2C_Read... [16:33:39]Read from MH i2c: E2 17 00 1C 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 EA [16:33:39]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:39]wFMCommunicate OK [16:33:39]CreateOFDProtocolMessage done [16:33:39]OFDSenderStorePacket 104186 [16:33:39]StoreOFDPacket docnum=104186 [16:33: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 64 9D 07 01 75 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 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 6D 00 00 00 F4 03 04 00 62 AB 75 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 FA 96 01 00 35 04 06 00 7F F6 B1 31 AC 09 36 24 82 EE AE 56 C0 46 [16:33:39]CheckFolder [16:33:39]dirname=/storage/ofd_packets [16:33:39]CheckFolder done [16:33:39]ProducePacketName [16:33:39]name=ofd_packets/00104186 [16:33:39]NVStorageSaveData ofd_packets/00104186 [16:33:39]File name is /storage/ofd_packets/00104186 [16:33:39]Write 301 bytes [16:33:39]NVStorageSaveData done [16:33:39]OFDSenderStorePacket done [16:33:39]KKMCreateOFDPacket done [16:33:39]NVStorageSaveData kkm_last_timestamp [16:33:39]File name is /storage/kkm_last_timestamp [16:33:39]Write 4 bytes [16:33:39]NVStorageSaveData done [16:33:39]ExternCall_PrintAddStr [16:33:39]wPrintStart [16:33:39]Write to MH i2c: 01 00 00 1D 01 1E [16:33:39]Write i2c OK [16:33:39]MH_I2C_Read... [16:33:39]Read from MH i2c: 01 [16:33:39]MH_I2C_Read... [16:33:39]Read from MH i2c: 01 07 00 [16:33:39]MH_I2C_Read... [16:33:39]Read from MH i2c: 01 07 00 1D 01 00 00 00 00 00 FF 0F 33 [16:33:39]RasterBufferAndPrint [16:33:39]line Счет N : (1)673623 [16:33:39]line ИНН: 02508201610067 [16:33:39]line Контрольно-Кассовый Чек [16:33:39]line ПРОДАЖА [16:33:39]line ТРК (МРК, ГНК) : 32 [16:33:39]line Товар: 2710124130 [16:33:39]line Аи-92-К-5 [16:33:39]line 6.030 * 66.40 [16:33:39]line = 400.39 [16:33:39]line НДС 12% НСП 1% [16:33:39]line > о реализуемом товаре [16:33:39]line ОКРУГЛЕНИЕ: -0.39 [16:33:39]line ИТОГО: 400.00 [16:33:39]line Внесено: 400.00 [16:33:39]line СДАЧА: 0.00 [16:33:39]line НСП 1% : 3.54 [16:33:39]line НДС 12% : 42.52 [16:33:39]line Наличными: 400.00 [16:33:39]line Безнал.: 0.00 [16:33:39]line Место: АЗС № 120 "Партнер Нефть" [16:33:39]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [16:33:39]line СНО: Общий режим [16:33:39]line Чек 109 21.06.2024 16:33 [16:33:39]line Смена: 355 ФФД: 1.0 [16:33:39]line ЗНМ: 0300000164 [16:33:39]line РНМ: 0000000000092785 [16:33:39]line Версия ККМ: 001 [16:33:39]line ФМ: 0000000000875093 [16:33:39]line ФД: 104186 [16:33:39]line ФПД: 140697511504905 [16:33:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T163338&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104186&fm=140697511504905&tin=02508201610067®Number=0000000000092785&sum=40000 [16:33:40]OFD Sender: Processing packet 104186 [packets to send 17, broken 16] [16:33:40]ProducePacketName [16:33:40]name=ofd_packets/00104186 [16:33:40]OFD Sender: To server: pG, [16:33:40]CommunicateWithHost lk.salyk.kg:30040 [16:33:40]ConnectInit lk.salyk.kg [16:33:40]written 0, free lines is 4095 [16:33:40]Connected sock=10 [16:33: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 0F 01 00 00 64 9D 07 01 75 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 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 6D 00 00 00 F4 03 04 00 62 AB 75 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 FA 96 01 00 35 04 06 00 7F F6 B1 31 AC 09 36 24 82 EE AE 56 C0 46 [16:33: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 24 81 47 00 89 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 FA 96 01 00 F4 03 04 00 E4 51 75 66 B6 04 01 00 00 7B 83 EA 58 71 1E F7 93 [16:33:40]CommunicateWithHost err = 0 [16:33:40]CheckOFDResponse [16:33:40]1017 (14) - 77093643461234 [16:33:40]1041 (16) - 0000000000875093 [16:33:40]1040 (4) - 104186 [16:33:40]1012 (4) - 21.06.2024 10:11 [16:33:40]1206 (1) - 0 [16:33:40]OFD Sender: Remove packet 104186 [16:33:40]ProducePacketName [16:33:40]name=ofd_packets/00104186 [16:33:40]NVStorageDeleteData [16:33:40]Write to MH i2c: 01 00 00 48 01 49 [16:33:40]Write i2c OK [16:33:40]MH_I2C_Read... [16:33:40]Read from MH i2c: 01 [16:33:40]MH_I2C_Read... [16:33:40]Read from MH i2c: 01 07 00 [16:33:40]MH_I2C_Read... [16:33:40]Read from MH i2c: 01 07 00 48 01 00 00 00 00 00 ED 0C 49 [16:33:40]RasterBufferAndPrint [16:33:40]line [16:33:40]line [16:33:40]line [16:33:40]line [16:33:40]line [16:33:40]written 0, free lines is 3315 [16:33:40]MH_Cut [16:33:40]Write to MH i2c: D1 01 00 4F 01 01 22 [16:33:40]Write i2c OK [16:33:40]MH_I2C_Read... [16:33:40]Read from MH i2c: D1 [16:33:40]MH_I2C_Read... [16:33:40]Read from MH i2c: D1 01 00 [16:33:40]MH_I2C_Read... [16:33:40]Read from MH i2c: D1 01 00 4F 01 00 21 [16:33:40]Write to MH i2c: 01 00 00 50 01 51 [16:33:40]Write i2c OK [16:33:40]MH_I2C_Read... [16:33:41]OFD Sender: No OFD packet to send [16:33:41]*** Cut start [16:33:41]*** Partial cut [16:33:41]*** CUTSNS_PIN = 1 [16:33:41]*** CUTSNS_PIN = 0 [16:33:41]*** Brake cut motor [16:33:41]Read from MH i2c: 01 [16:33:41]MH_I2C_Read... [16:33:41]*** Stop cut motor [16:33:41]*** Cut end [16:33:41]Read from MH i2c: 01 07 00 [16:33:41]MH_I2C_Read... [16:33:41]Read from MH i2c: 01 07 00 50 01 00 00 00 00 00 FF 0F 66 [16:33:41]process_action close_receipt done [16:33:41]requested_data is exist [16:33:41]produce_requested_data [16:33:41]requested_item fm.sn is exist - process it [16:33:41]wFMCommunicate request_size=4 [16:33:41]MH_SAM_APDU [16:33:41]CAPDU: 80 11 00 00 [16:33:41]Write to MH i2c: E2 08 00 51 01 80 11 00 00 00 00 00 00 CC [16:33:41]Write i2c OK [16:33:41]MH_I2C_Read... [16:33:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:33:42]Read from MH i2c: E2 [16:33:42]MH_I2C_Read... [16:33:42]Read from MH i2c: E2 17 00 [16:33:42]MH_I2C_Read... [16:33:42]Read from MH i2c: E2 17 00 51 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 1F [16:33: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:33:42]wFMCommunicate OK [16:33:42]requested_item fd.num is exist - process it [16:33:42]SAM_PROTO_GetFieldsCounters [16:33:42]wFMCommunicate request_size=4 [16:33:42]MH_SAM_APDU [16:33:42]CAPDU: 80 13 00 00 [16:33:42]Write to MH i2c: E2 08 00 52 01 80 13 00 00 00 00 00 00 CF [16:33:42]Write i2c OK [16:33:42]MH_I2C_Read... [16:33:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:33:42]Read from MH i2c: E2 [16:33:42]MH_I2C_Read... [16:33:42]Read from MH i2c: E2 62 00 [16:33:42]MH_I2C_Read... [16:33:42]Read from MH i2c: E2 62 00 52 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 FA 96 01 00 0E 04 04 00 63 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 32 [16:33: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 FA 96 01 00 0E 04 04 00 63 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 [16:33:42]wFMCommunicate OK [16:33:42]SAM_PROTO_GetFieldsCounters done [16:33:42]requested_item shift.num is exist - process it [16:33:42]requested_item shift.opened is exist - process it [16:33:42]req_shift_opened [16:33:42]FM_GetShiftState [16:33:42]SAM_PROTO_GetShiftState [16:33:42]wFMCommunicate request_size=4 [16:33:42]MH_SAM_APDU [16:33:42]CAPDU: 80 13 01 00 [16:33:42]Write to MH i2c: E2 08 00 53 01 80 13 01 00 00 00 00 00 D1 [16:33:42]Write i2c OK [16:33:42]MH_I2C_Read... [16:33:42]Read from MH i2c: E2 [16:33:42]MH_I2C_Read... [16:33:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:33:42]Read from MH i2c: E2 0E 00 [16:33:42]MH_I2C_Read... [16:33:42]Read from MH i2c: E2 0E 00 53 01 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 E4 [16:33:42]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [16:33:42]wFMCommunicate OK [16:33:42]SAM_PROTO_GetShiftState done [16:33:42]FM_GetShiftState done [16:33:42]req_shift_opened done [16:33:42]requested_item shift.open_date is exist - process it [16:33:42]req_shift_open_date [16:33:42]req_shift_open_date done [16:33:42]produce_requested_data done [16:33:42]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104186,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [16:33:42]process_action_free close_receipt [16:33:42]json_value_free [16:33:42]json_value_free done [16:33:42]process_json_proto returns [16:33:42]Send response to host [16:33:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104186,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [16:33:42]free response buf [16:33:42]execute_script done [16:33:42]execute_script returns [16:33:42]free content buf [16:33:42]Sock 9.Close socket [16:33:42]Sock 9.Thread stoped [16:33:46]OFD Sender: No OFD packet to send [16:33:51]OFD Sender: No OFD packet to send [16:33:56]OFD Sender: No OFD packet to send [16:34:01]OFD Sender: No OFD packet to send [16:34:06]OFD Sender: No OFD packet to send [16:34:11]OFD Sender: No OFD packet to send [16:34:16]OFD Sender: No OFD packet to send [16:34:21]OFD Sender: No OFD packet to send [16:34:26]OFD Sender: No OFD packet to send [16:34:31]OFD Sender: No OFD packet to send [16:34:36]OFD Sender: No OFD packet to send [16:34:41]OFD Sender: No OFD packet to send [16:34:46]OFD Sender: No OFD packet to send [16:34:51]OFD Sender: No OFD packet to send [16:34:56]OFD Sender: No OFD packet to send [16:35:01]OFD Sender: No OFD packet to send [16:35:06]OFD Sender: No OFD packet to send [16:35:11]OFD Sender: No OFD packet to send [16:35:16]OFD Sender: No OFD packet to send [16:35:21]OFD Sender: No OFD packet to send [16:35:26]OFD Sender: No OFD packet to send [16:35:31]OFD Sender: No OFD packet to send [16:35:36]OFD Sender: No OFD packet to send [16:35:41]OFD Sender: No OFD packet to send [16:35:46]OFD Sender: No OFD packet to send [16:35:51]OFD Sender: No OFD packet to send [16:35:56]OFD Sender: No OFD packet to send [16:36:01]OFD Sender: No OFD packet to send [16:36:06]OFD Sender: No OFD packet to send [16:36:11]OFD Sender: No OFD packet to send [16:36:16]OFD Sender: No OFD packet to send [16:36:21]OFD Sender: No OFD packet to send [16:36:26]OFD Sender: No OFD packet to send [16:36:31]OFD Sender: No OFD packet to send [16:36:36]OFD Sender: No OFD packet to send [16:36:41]OFD Sender: No OFD packet to send [16:36:46]OFD Sender: No OFD packet to send [16:36:51]OFD Sender: No OFD packet to send [16:36:56]OFD Sender: No OFD packet to send [16:37:01]OFD Sender: No OFD packet to send [16:37:06]OFD Sender: No OFD packet to send [16:37:11]OFD Sender: No OFD packet to send [16:37:16]OFD Sender: No OFD packet to send [16:37:21]OFD Sender: No OFD packet to send [16:37:26]OFD Sender: No OFD packet to send [16:37:31]OFD Sender: No OFD packet to send [16:37:36]OFD Sender: No OFD packet to send [16:37:41]OFD Sender: No OFD packet to send [16:37:46]OFD Sender: No OFD packet to send [16:37:51]OFD Sender: No OFD packet to send [16:37:56]OFD Sender: No OFD packet to send [16:38:01]OFD Sender: No OFD packet to send [16:38:06]OFD Sender: No OFD packet to send [16:38:11]OFD Sender: No OFD packet to send [16:38:16]OFD Sender: No OFD packet to send [16:38:21]OFD Sender: No OFD packet to send [16:38:26]OFD Sender: No OFD packet to send [16:38:31]OFD Sender: No OFD packet to send [16:38:36]OFD Sender: No OFD packet to send [16:38:41]OFD Sender: No OFD packet to send [16:38:46]OFD Sender: No OFD packet to send [16:38:51]OFD Sender: No OFD packet to send [16:38:56]OFD Sender: No OFD packet to send [16:39:01]OFD Sender: No OFD packet to send [16:39:06]OFD Sender: No OFD packet to send [16:39:11]OFD Sender: No OFD packet to send [16:39:16]OFD Sender: No OFD packet to send [16:39:21]OFD Sender: No OFD packet to send [16:39:26]OFD Sender: No OFD packet to send [16:39:31]OFD Sender: No OFD packet to send [16:39:36]OFD Sender: No OFD packet to send [16:39:41]OFD Sender: No OFD packet to send [16:39:46]OFD Sender: No OFD packet to send [16:39:51]OFD Sender: No OFD packet to send [16:39:56]OFD Sender: No OFD packet to send [16:40:01]OFD Sender: No OFD packet to send [16:40:06]OFD Sender: No OFD packet to send [16:40:11]OFD Sender: No OFD packet to send [16:40:16]OFD Sender: No OFD packet to send [16:40:21]OFD Sender: No OFD packet to send [16:40:26]OFD Sender: No OFD packet to send [16:40:31]OFD Sender: No OFD packet to send [16:40:36]OFD Sender: No OFD packet to send [16:40:41]OFD Sender: No OFD packet to send [16:40:46]OFD Sender: No OFD packet to send [16:40:51]OFD Sender: No OFD packet to send [16:40:56]OFD Sender: No OFD packet to send [16:41:01]OFD Sender: No OFD packet to send [16:41:06]OFD Sender: No OFD packet to send [16:41:11]OFD Sender: No OFD packet to send [16:41:16]OFD Sender: No OFD packet to send [16:41:21]OFD Sender: No OFD packet to send [16:41:26]OFD Sender: No OFD packet to send [16:41:31]OFD Sender: No OFD packet to send [16:41:36]OFD Sender: No OFD packet to send [16:41:41]OFD Sender: No OFD packet to send [16:41:46]OFD Sender: No OFD packet to send [16:41:51]OFD Sender: No OFD packet to send [16:41:56]OFD Sender: No OFD packet to send [16:42:01]OFD Sender: No OFD packet to send [16:42:06]OFD Sender: No OFD packet to send [16:42:11]OFD Sender: No OFD packet to send [16:42:16]OFD Sender: No OFD packet to send [16:42:21]OFD Sender: No OFD packet to send [16:42:26]OFD Sender: No OFD packet to send [16:42:31]OFD Sender: No OFD packet to send [16:42:35]accept exits with 7 [16:42:35]New connection [16:42:35]New thread 3066789220 created [16:42:35]Thread 3066932580 joined [16:42:35]Waiting for new connection... [16:42:35] Sock 7.Parse request [16:42:35]Sock 7.Check first char [16:42:35]Sock 7.First char is OK [16:42:35]request: POST /json_proto HTTP/1.0 [16:42:35]Method: POST [16:42:35]URL: /json_proto [16:42:35]Method is POST - this is cgi request [16:42:35]url: /json_proto [16:42:35]query_string will be loaded in cgi processing [16:42:35]execute_cgi json_proto POST (null) [16:42:35]execute_cgi path=json_proto method=POST [16:42:35]POST find Content-Length [16:42:35]Host: 172.17.38.133:8080 [16:42:35]Content-Length: 1193 [16:42:35]Content-Type: application/json [16:42:35] [16:42:35]POST finish read [16:42:35]Found Content-Length = 1193 [16:42:35]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)673624\u000A21.06.2024 16: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 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\u000A3888487;3888361\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:42:35]execute_script... [16:42:35]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)673624\u000A21.06.2024 16: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 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\u000A3888487;3888361\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:42:35]POST & json_proto [16:42:35]process_json_proto [16:42:35]json parsed OK: [16:42:35]protocol is kg_v1.0 [16:42:35]action value=print_text [16:42:35]process_action print_text [16:42:35]cmd_print_text [16:42:35]ExternCall_PrintAddStr [16:42:35]wPrintStart [16:42:35]Write to MH i2c: 01 00 00 54 01 55 [16:42:35]Write i2c OK [16:42:35]MH_I2C_Read... [16:42:35]Read from MH i2c: 01 [16:42:35]MH_I2C_Read... [16:42:35]Read from MH i2c: 01 07 00 [16:42:35]MH_I2C_Read... [16:42:35]Read from MH i2c: 01 07 00 54 01 00 00 00 00 00 FF 0F 6A [16:42:35]RasterBufferAndPrint [16:42:35]line *****ТОВАРНЫЙ ЧЕК***** [16:42:35]line АЗС 120 [16:42:35]line Партнер нефть [16:42:35]line 02508201610067 [16:42:35]line Кассир : Асанбаев Н. [16:42:35]line Счет N : (1)673624 [16:42:35]line 21.06.2024 16:19 [16:42:35]line ПРОДАЖА [16:42:35]line ТРК (МРК, ГНК): 42 [16:42:35]line Вид ГСМ : 2710124130 [16:42:35]line Аи-92-К-5 [16:42:35]line 20.000 x 66.40 [16:42:35]line ИТОГ: 1328.00 [16:42:35]line Тип оплаты: Талоны: Партнер нефть [16:42:35]line 3888487;3888361 [16:42:35]line ______________________ [16:42:35]line (подпись) [16:42:35]written 0, free lines is 4095 [16:42:35]Write to MH i2c: 01 00 00 68 01 69 [16:42:35]Write i2c OK [16:42:35]MH_I2C_Read... [16:42:35]Read from MH i2c: 01 [16:42:35]MH_I2C_Read... [16:42:35]Read from MH i2c: 01 07 00 [16:42:35]MH_I2C_Read... [16:42:35]Read from MH i2c: 01 07 00 68 01 00 00 00 00 00 18 0E 96 [16:42:35]RasterBufferAndPrint [16:42:35]line [16:42:35]line [16:42:35]line [16:42:35]line [16:42:35]line [16:42:35]written 0, free lines is 3610 [16:42:35]MH_Cut [16:42:35]Write to MH i2c: D1 01 00 6F 01 01 42 [16:42:35]Write i2c OK [16:42:35]MH_I2C_Read... [16:42:35]Read from MH i2c: D1 [16:42:35]MH_I2C_Read... [16:42:35]Read from MH i2c: D1 01 00 [16:42:35]MH_I2C_Read... [16:42:35]Read from MH i2c: D1 01 00 6F 01 00 41 [16:42:35]Write to MH i2c: 01 00 00 70 01 71 [16:42:35]Write i2c OK [16:42:35]MH_I2C_Read... [16:42:35]*** Cut start [16:42:35]*** Partial cut [16:42:35]*** CUTSNS_PIN = 1 [16:42:36]*** CUTSNS_PIN = 0 [16:42:36]*** Brake cut motor [16:42:36]OFD Sender: No OFD packet to send [16:42:36]Read from MH i2c: 01 [16:42:36]MH_I2C_Read... [16:42:36]*** Stop cut motor [16:42:36]*** Cut end [16:42:36]Read from MH i2c: 01 07 00 [16:42:36]MH_I2C_Read... [16:42:36]Read from MH i2c: 01 07 00 70 01 00 00 00 00 00 FF 0F 86 [16:42:36]process_action print_text done [16:42:36]requested_data is exist [16:42:36]produce_requested_data [16:42:36]requested_item fm.sn is exist - process it [16:42:36]wFMCommunicate request_size=4 [16:42:36]MH_SAM_APDU [16:42:36]CAPDU: 80 11 00 00 [16:42:36]Write to MH i2c: E2 08 00 71 01 80 11 00 00 00 00 00 00 EC [16:42:36]Write i2c OK [16:42:36]MH_I2C_Read... [16:42:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:42:36]Read from MH i2c: E2 [16:42:36]MH_I2C_Read... [16:42:36]Read from MH i2c: E2 17 00 [16:42:36]MH_I2C_Read... [16:42:36]Read from MH i2c: E2 17 00 71 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 3F [16:42: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:42:36]wFMCommunicate OK [16:42:36]requested_item fd.num is exist - process it [16:42:36]SAM_PROTO_GetFieldsCounters [16:42:36]wFMCommunicate request_size=4 [16:42:36]MH_SAM_APDU [16:42:36]CAPDU: 80 13 00 00 [16:42:36]Write to MH i2c: E2 08 00 72 01 80 13 00 00 00 00 00 00 EF [16:42:36]Write i2c OK [16:42:36]MH_I2C_Read... [16:42:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:42:36]Read from MH i2c: E2 [16:42:36]MH_I2C_Read... [16:42:36]Read from MH i2c: E2 62 00 [16:42:36]MH_I2C_Read... [16:42:36]Read from MH i2c: E2 62 00 72 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 FA 96 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 6D 00 00 00 5E 04 04 00 6D 00 00 00 57 04 04 00 6E 00 00 00 19 04 04 00 00 00 00 00 90 00 52 [16:42: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 FA 96 01 00 0E 04 04 00 63 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 [16:42:36]wFMCommunicate OK [16:42:36]SAM_PROTO_GetFieldsCounters done [16:42:36]requested_item shift.num is exist - process it [16:42:36]requested_item shift.opened is exist - process it [16:42:36]req_shift_opened [16:42:36]FM_GetShiftState [16:42:36]SAM_PROTO_GetShiftState [16:42:36]wFMCommunicate request_size=4 [16:42:36]MH_SAM_APDU [16:42:36]CAPDU: 80 13 01 00 [16:42:36]Write to MH i2c: E2 08 00 73 01 80 13 01 00 00 00 00 00 F1 [16:42:36]Write i2c OK [16:42:36]MH_I2C_Read... [16:42:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:42:36]Read from MH i2c: E2 [16:42:36]MH_I2C_Read... [16:42:36]Read from MH i2c: E2 0E 00 [16:42:36]MH_I2C_Read... [16:42:36]Read from MH i2c: E2 0E 00 73 01 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 04 [16:42:36]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [16:42:36]wFMCommunicate OK [16:42:36]SAM_PROTO_GetShiftState done [16:42:36]FM_GetShiftState done [16:42:36]req_shift_opened done [16:42:36]requested_item shift.open_date is exist - process it [16:42:36]req_shift_open_date [16:42:36]req_shift_open_date done [16:42:36]produce_requested_data done [16:42:36]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104186,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [16:42:36]process_action_free print_text [16:42:36]json_value_free [16:42:36]json_value_free done [16:42:36]process_json_proto returns [16:42:36]Send response to host [16:42:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104186,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [16:42:36]free response buf [16:42:36]execute_script done [16:42:36]execute_script returns [16:42:36]free content buf [16:42:36]Sock 7.Close socket [16:42:36]Sock 7.Thread stoped [16:42:41]OFD Sender: No OFD packet to send [16:42:46]OFD Sender: No OFD packet to send [16:42:50]accept exits with 9 [16:42:50]New connection [16:42:50]New thread 3066932580 created [16:42:50]Thread 3066789220 joined [16:42:50]Waiting for new connection... [16:42:50] Sock 9.Parse request [16:42:50]Sock 9.Check first char [16:42:50]Sock 9.First char is OK [16:42:50]request: POST /json_proto HTTP/1.0 [16:42:50]Method: POST [16:42:50]URL: /json_proto [16:42:50]Method is POST - this is cgi request [16:42:50]url: /json_proto [16:42:50]query_string will be loaded in cgi processing [16:42:50]execute_cgi json_proto POST (null) [16:42:50]execute_cgi path=json_proto method=POST [16:42:50]POST find Content-Length [16:42:50]Host: 172.17.38.133:8080 [16:42:50]Content-Length: 677 [16:42:50]Content-Type: application/json [16:42:50] [16:42:50]POST finish read [16:42:50]Found Content-Length = 677 [16:42:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673625", "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.820, "sum" : 320.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 320.00, "total" : 320.00, "payments": [ { "type": 0, "sum" : 320.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:42:50]execute_script... [16:42: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)673625", "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.820, "sum" : 320.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 320.00, "total" : 320.00, "payments": [ { "type": 0, "sum" : 320.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:42:50]POST & json_proto [16:42:50]process_json_proto [16:42:50]json parsed OK: [16:42:50]protocol is kg_v1.0 [16:42:50]action value=close_receipt [16:42:50]process_action close_receipt [16:42:50]cmd_close_receipt [16:42:50]MH_GetDate [16:42:50]Write to MH i2c: F0 00 00 74 01 64 [16:42:50]Write i2c OK [16:42:50]MH_I2C_Read... [16:42:50]Read from MH i2c: F0 [16:42:50]MH_I2C_Read... [16:42:50]Read from MH i2c: F0 09 00 [16:42:50]MH_I2C_Read... [16:42:50]Read from MH i2c: F0 09 00 74 01 00 8B AD 75 66 BD 8F 7C 64 AC [16:42:50]GetLastDocTimeStamp 1718987618 [16:42:50]current date 1718988171 [16:42:50]FM_GetShiftState [16:42:50]SAM_PROTO_GetShiftState [16:42:50]wFMCommunicate request_size=4 [16:42:50]MH_SAM_APDU [16:42:50]CAPDU: 80 13 01 00 [16:42:50]Write to MH i2c: E2 08 00 75 01 80 13 01 00 00 00 00 00 F3 [16:42:50]Write i2c OK [16:42:50]MH_I2C_Read... [16:42:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:42:50]Read from MH i2c: E2 [16:42:50]MH_I2C_Read... [16:42:50]Read from MH i2c: E2 0E 00 [16:42:50]MH_I2C_Read... [16:42:50]Read from MH i2c: E2 0E 00 75 01 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 06 [16:42:50]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [16:42:50]wFMCommunicate OK [16:42:50]SAM_PROTO_GetShiftState done [16:42:50]FM_GetShiftState done [16:42:50]opened in 1718929509 [16:42:50]opened+sec_in_day 1719015909 [16:42:50]quantity*price = 32004 [16:42:50]sum+1 = 32006 [16:42:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 320.00 Внесено: 320.00 СДАЧА: 0.00 НСП 1% : 2.83 НДС 12% : 33.99 Наличными: 320.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 110 21.06.2024 16:42 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104187 ФПД: 25887505495572 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T164251&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104187&fm=25887505495572&tin=02508201610067®Number=0000000000092785&sum=32000 [16:42:51]StoreToDocumentArchive [16:42:51]shift 355 fd 104187 [16:42:51]save to /storage/0355/doc_00104187 [16:42:51]save last doc name /storage/0355/doc_00104187 to /storage/kkm_last_doc_name [16:42:51]save OK [16:42:51]Clear old archive folders... [16:42:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:42:51]tlvbuf is B6ED5680 [16:42:51]SAM_PROTO_ClearQueue [16:42:51]wFMCommunicate request_size=4 [16:42:51]MH_SAM_APDU [16:42:51]CAPDU: 80 09 00 00 [16:42:51]Write to MH i2c: E2 08 00 82 01 80 09 00 00 00 00 00 00 F5 [16:42:51]Write i2c OK [16:42:51]MH_I2C_Read... [16:42:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:42:51]Read from MH i2c: E2 [16:42:51]MH_I2C_Read... [16:42:51]Read from MH i2c: E2 03 00 [16:42:51]MH_I2C_Read... [16:42:51]Read from MH i2c: E2 03 00 82 01 00 90 00 F7 [16:42:51]RAPDU: 90 00 [16:42:51]wFMCommunicate OK [16:42:51]SAM_PROTO_ClearQueue done [16:42:51]KKMCreateOFDPacket [16:42:51]OFDProtocolAddRootSTLVToBuf [16:42:51]FM_MakeSignedData [16:42:51]FM_MakeSignedData [16:42:51]SAM_PROTO_SignData [16:42:51]wFMCommunicate request_size=4 [16:42:51]MH_SAM_APDU [16:42:51]CAPDU: 80 0D 01 02 [16:42:51]Write to MH i2c: E2 08 00 83 01 80 0D 01 02 00 00 00 00 FD [16:42:51]Write i2c OK [16:42:51]MH_I2C_Read... [16:42:52]Read from MH i2c: E2 [16:42:52]MH_I2C_Read... [16:42:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:42:52]Read from MH i2c: E2 03 00 [16:42:52]MH_I2C_Read... [16:42:52]Read from MH i2c: E2 03 00 83 01 00 90 00 F8 [16:42:52]RAPDU: 90 00 [16:42:52]wFMCommunicate OK [16:42:52]wFMCommunicate request_size=255 [16:42:52]MH_SAM_APDU [16:42: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 D4 12 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 05 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 8B AD 75 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 FB 96 01 00 35 04 06 00 17 [16:42:52]Write to MH i2c: E2 02 01 84 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 D4 12 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 05 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 8B AD 75 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 FB 96 01 00 35 04 06 00 17 00 00 76 [16:42:52]Write i2c OK [16:42:52]MH_I2C_Read... [16:42:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:42:52]Read from MH i2c: E2 [16:42:52]MH_I2C_Read... [16:42:52]Read from MH i2c: E2 03 00 [16:42:52]MH_I2C_Read... [16:42:52]Read from MH i2c: E2 03 00 84 01 00 90 00 F9 [16:42:52]RAPDU: 90 00 [16:42:52]wFMCommunicate OK [16:42:52]wFMCommunicate request_size=10 [16:42:52]MH_SAM_APDU [16:42:52]CAPDU: 80 0D 02 02 05 8B 67 91 B6 14 [16:42:52]Write to MH i2c: E2 0D 00 85 01 80 0D 02 02 05 00 8B 67 91 B6 14 00 00 57 [16:42:52]Write i2c OK [16:42:52]MH_I2C_Read... [16:42:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:42:52]Read from MH i2c: E2 [16:42:52]MH_I2C_Read... [16:42:52]Read from MH i2c: E2 03 00 [16:42:52]MH_I2C_Read... [16:42:52]Read from MH i2c: E2 03 00 85 01 00 90 00 FA [16:42:52]RAPDU: 90 00 [16:42:52]wFMCommunicate OK [16:42:52]wFMCommunicate request_size=4 [16:42:52]MH_SAM_APDU [16:42:52]CAPDU: 80 0D 03 02 [16:42:52]Write to MH i2c: E2 08 00 86 01 80 0D 03 02 00 00 00 00 02 [16:42:52]Write i2c OK [16:42:52]MH_I2C_Read... [16:42:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:42:52]Read from MH i2c: E2 [16:42:52]MH_I2C_Read... [16:42:52]Read from MH i2c: E2 0B 00 [16:42:52]MH_I2C_Read... [16:42:52]Read from MH i2c: E2 0B 00 86 01 00 BF F0 2A B1 07 18 D2 43 90 00 C1 [16:42:52]RAPDU: BF F0 2A B1 07 18 D2 43 90 00 [16:42:52]wFMCommunicate OK [16:42:52]SAM_PROTO_SignData done [16:42:52]FM_MakeSignedData done [16:42:52]CreateOFDProtocolMessage [16:42:52]wFMCommunicate request_size=4 [16:42:52]MH_SAM_APDU [16:42:52]CAPDU: 80 11 00 00 [16:42:52]Write to MH i2c: E2 08 00 87 01 80 11 00 00 00 00 00 00 02 [16:42:52]Write i2c OK [16:42:52]MH_I2C_Read... [16:42:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:42:52]Read from MH i2c: E2 [16:42:52]MH_I2C_Read... [16:42:52]Read from MH i2c: E2 17 00 [16:42:52]MH_I2C_Read... [16:42:52]Read from MH i2c: E2 17 00 87 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 55 [16:42:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [16:42:52]wFMCommunicate OK [16:42:52]CreateOFDProtocolMessage done [16:42:52]OFDSenderStorePacket 104187 [16:42:52]StoreOFDPacket docnum=104187 [16:42: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 50 BE 07 01 BF 7D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 12 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 05 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 8B AD 75 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 FB 96 01 00 35 04 06 00 17 8B 67 91 B6 14 BF F0 2A B1 07 18 D2 43 [16:42:52]CheckFolder [16:42:52]dirname=/storage/ofd_packets [16:42:52]CheckFolder done [16:42:52]ProducePacketName [16:42:52]name=ofd_packets/00104187 [16:42:52]NVStorageSaveData ofd_packets/00104187 [16:42:52]File name is /storage/ofd_packets/00104187 [16:42:52]Write 301 bytes [16:42:52]NVStorageSaveData done [16:42:52]OFDSenderStorePacket done [16:42:52]KKMCreateOFDPacket done [16:42:52]NVStorageSaveData kkm_last_timestamp [16:42:52]File name is /storage/kkm_last_timestamp [16:42:52]Write 4 bytes [16:42:52]NVStorageSaveData done [16:42:52]ExternCall_PrintAddStr [16:42:52]wPrintStart [16:42:52]Write to MH i2c: 01 00 00 88 01 89 [16:42:52]Write i2c OK [16:42:52]MH_I2C_Read... [16:42:52]Read from MH i2c: 01 [16:42:52]MH_I2C_Read... [16:42:52]Read from MH i2c: 01 07 00 [16:42:52]MH_I2C_Read... [16:42:52]Read from MH i2c: 01 07 00 88 01 00 00 00 00 00 FF 0F 9E [16:42:52]RasterBufferAndPrint [16:42:52]line Счет N : (1)673625 [16:42:52]line ИНН: 02508201610067 [16:42:52]line Контрольно-Кассовый Чек [16:42:52]line ПРОДАЖА [16:42:52]line ТРК (МРК, ГНК) : 32 [16:42:52]line Товар: 2710124130 [16:42:52]line Аи-92-К-5 [16:42:52]line 4.820 * 66.40 [16:42:52]line = 320.05 [16:42:52]line НДС 12% НСП 1% [16:42:52]line > о реализуемом товаре [16:42:52]line ОКРУГЛЕНИЕ: -0.05 [16:42:52]line ИТОГО: 320.00 [16:42:52]line Внесено: 320.00 [16:42:52]line СДАЧА: 0.00 [16:42:52]line НСП 1% : 2.83 [16:42:52]line НДС 12% : 33.99 [16:42:52]line Наличными: 320.00 [16:42:52]line Безнал.: 0.00 [16:42:52]line Место: АЗС № 120 "Партнер Нефть" [16:42:52]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [16:42:52]line СНО: Общий режим [16:42:52]line Чек 110 21.06.2024 16:42 [16:42:52]line Смена: 355 ФФД: 1.0 [16:42:52]line ЗНМ: 0300000164 [16:42:52]line РНМ: 0000000000092785 [16:42:52]line Версия ККМ: 001 [16:42:52]line ФМ: 0000000000875093 [16:42:52]line ФД: 104187 [16:42:52]line ФПД: 25887505495572 [16:42:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T164251&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104187&fm=25887505495572&tin=02508201610067®Number=0000000000092785&sum=32000 [16:42:52]OFD Sender: Processing packet 104187 [packets to send 17, broken 16] [16:42:52]ProducePacketName [16:42:52]name=ofd_packets/00104187 [16:42:52]OFD Sender: To server: pG, [16:42:52]CommunicateWithHost lk.salyk.kg:30040 [16:42:52]ConnectInit lk.salyk.kg [16:42:52]written 0, free lines is 4095 [16:42:52]Connected sock=10 [16:42: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 50 BE 07 01 BF 7D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 12 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 05 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 8B AD 75 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 FB 96 01 00 35 04 06 00 17 8B 67 91 B6 14 BF F0 2A B1 07 18 D2 43 [16:42: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 CF 06 47 00 59 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 FB 96 01 00 F4 03 04 00 0D 54 75 66 B6 04 01 00 00 07 98 39 66 FC B5 14 1A [16:42:53]CommunicateWithHost err = 0 [16:42:53]CheckOFDResponse [16:42:53]1017 (14) - 77093643461234 [16:42:53]1041 (16) - 0000000000875093 [16:42:53]1040 (4) - 104187 [16:42:53]1012 (4) - 21.06.2024 10:21 [16:42:53]1206 (1) - 0 [16:42:53]OFD Sender: Remove packet 104187 [16:42:53]ProducePacketName [16:42:53]name=ofd_packets/00104187 [16:42:53]NVStorageDeleteData [16:42:53]Write to MH i2c: 01 00 00 B3 01 B4 [16:42:53]Write i2c OK [16:42:53]MH_I2C_Read... [16:42:53]Read from MH i2c: 01 [16:42:53]MH_I2C_Read... [16:42:53]Read from MH i2c: 01 07 00 [16:42:53]MH_I2C_Read... [16:42:53]Read from MH i2c: 01 07 00 B3 01 00 00 00 00 00 F5 0C BC [16:42:53]RasterBufferAndPrint [16:42:53]line [16:42:53]line [16:42:53]line [16:42:53]line [16:42:53]line [16:42:53]written 0, free lines is 3323 [16:42:53]MH_Cut [16:42:53]Write to MH i2c: D1 01 00 BA 01 01 8D [16:42:53]Write i2c OK [16:42:53]MH_I2C_Read... [16:42:53]Read from MH i2c: D1 [16:42:53]MH_I2C_Read... [16:42:53]Read from MH i2c: D1 01 00 [16:42:53]MH_I2C_Read... [16:42:53]Read from MH i2c: D1 01 00 BA 01 00 8C [16:42:53]Write to MH i2c: 01 00 00 BB 01 BC [16:42:53]Write i2c OK [16:42:53]MH_I2C_Read... [16:42:53]OFD Sender: No OFD packet to send [16:42:53]*** Cut start [16:42:53]*** Partial cut [16:42:53]*** CUTSNS_PIN = 1 [16:42:54]*** CUTSNS_PIN = 0 [16:42:54]*** Brake cut motor [16:42:54]Read from MH i2c: 01 [16:42:54]MH_I2C_Read... [16:42:54]*** Stop cut motor [16:42:54]*** Cut end [16:42:54]Read from MH i2c: 01 07 00 [16:42:54]MH_I2C_Read... [16:42:54]Read from MH i2c: 01 07 00 BB 01 00 00 00 00 00 FF 0F D1 [16:42:54]process_action close_receipt done [16:42:54]requested_data is exist [16:42:54]produce_requested_data [16:42:54]requested_item fm.sn is exist - process it [16:42:54]wFMCommunicate request_size=4 [16:42:54]MH_SAM_APDU [16:42:54]CAPDU: 80 11 00 00 [16:42:54]Write to MH i2c: E2 08 00 BC 01 80 11 00 00 00 00 00 00 37 [16:42:54]Write i2c OK [16:42:54]MH_I2C_Read... [16:42:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:42:54]Read from MH i2c: E2 [16:42:54]MH_I2C_Read... [16:42:54]Read from MH i2c: E2 17 00 [16:42:54]MH_I2C_Read... [16:42:54]Read from MH i2c: E2 17 00 BC 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 8A [16:42:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [16:42:54]wFMCommunicate OK [16:42:54]requested_item fd.num is exist - process it [16:42:54]SAM_PROTO_GetFieldsCounters [16:42:54]wFMCommunicate request_size=4 [16:42:54]MH_SAM_APDU [16:42:54]CAPDU: 80 13 00 00 [16:42:54]Write to MH i2c: E2 08 00 BD 01 80 13 00 00 00 00 00 00 3A [16:42:54]Write i2c OK [16:42:54]MH_I2C_Read... [16:42:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:42:54]Read from MH i2c: E2 [16:42:54]MH_I2C_Read... [16:42:54]Read from MH i2c: E2 62 00 [16:42:54]MH_I2C_Read... [16:42:54]Read from MH i2c: E2 62 00 BD 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 FB 96 01 00 0E 04 04 00 63 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 A1 [16:42: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 FB 96 01 00 0E 04 04 00 63 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 [16:42:54]wFMCommunicate OK [16:42:54]SAM_PROTO_GetFieldsCounters done [16:42:54]requested_item shift.num is exist - process it [16:42:54]requested_item shift.opened is exist - process it [16:42:54]req_shift_opened [16:42:54]FM_GetShiftState [16:42:54]SAM_PROTO_GetShiftState [16:42:54]wFMCommunicate request_size=4 [16:42:54]MH_SAM_APDU [16:42:54]CAPDU: 80 13 01 00 [16:42:54]Write to MH i2c: E2 08 00 BE 01 80 13 01 00 00 00 00 00 3C [16:42:54]Write i2c OK [16:42:54]MH_I2C_Read... [16:42:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:42:54]Read from MH i2c: E2 [16:42:54]MH_I2C_Read... [16:42:54]Read from MH i2c: E2 0E 00 [16:42:54]MH_I2C_Read... [16:42:54]Read from MH i2c: E2 0E 00 BE 01 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 4F [16:42:54]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [16:42:54]wFMCommunicate OK [16:42:54]SAM_PROTO_GetShiftState done [16:42:54]FM_GetShiftState done [16:42:54]req_shift_opened done [16:42:54]requested_item shift.open_date is exist - process it [16:42:54]req_shift_open_date [16:42:54]req_shift_open_date done [16:42:54]produce_requested_data done [16:42:54]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104187,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [16:42:54]process_action_free close_receipt [16:42:54]json_value_free [16:42:54]json_value_free done [16:42:54]process_json_proto returns [16:42:54]Send response to host [16:42:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104187,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [16:42:54]free response buf [16:42:54]execute_script done [16:42:54]execute_script returns [16:42:54]free content buf [16:42:54]Sock 9.Close socket [16:42:54]Sock 9.Thread stoped [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:18]OFD Sender: No OFD packet to send [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:38]OFD Sender: No OFD packet to send [16:47:43]OFD Sender: No OFD packet to send [16:47:48]OFD Sender: No OFD packet to send [16:47:53]OFD Sender: No OFD packet to send [16:47:58]OFD Sender: No OFD packet to send [16:48:03]OFD Sender: No OFD packet to send [16:48:08]OFD Sender: No OFD packet to send [16:48:13]OFD Sender: No OFD packet to send [16:48:18]OFD Sender: No OFD packet to send [16:48:23]OFD Sender: No OFD packet to send [16:48:28]OFD Sender: No OFD packet to send [16:48:33]OFD Sender: No OFD packet to send [16:48:38]OFD Sender: No OFD packet to send [16:48:43]OFD Sender: No OFD packet to send [16:48:48]OFD Sender: No OFD packet to send [16:48:53]OFD Sender: No OFD packet to send [16:48:58]OFD Sender: No OFD packet to send [16:49:03]OFD Sender: No OFD packet to send [16:49:08]OFD Sender: No OFD packet to send [16:49:13]OFD Sender: No OFD packet to send [16:49:18]OFD Sender: No OFD packet to send [16:49:23]OFD Sender: No OFD packet to send [16:49:28]OFD Sender: No OFD packet to send [16:49:33]OFD Sender: No OFD packet to send [16:49:38]OFD Sender: No OFD packet to send [16:49:43]OFD Sender: No OFD packet to send [16:49:48]OFD Sender: No OFD packet to send [16:49:53]OFD Sender: No OFD packet to send [16:49:58]OFD Sender: No OFD packet to send [16:50:03]OFD Sender: No OFD packet to send [16:50:08]OFD Sender: No OFD packet to send [16:50:13]OFD Sender: No OFD packet to send [16:50:18]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:11]accept exits with 7 [16:55:11]New connection [16:55:11]New thread 3066789220 created [16:55:11]Thread 3066932580 joined [16:55:11]Waiting for new connection... [16:55:11] Sock 7.Parse request [16:55:11]Sock 7.Check first char [16:55:11]Sock 7.First char is OK [16:55:11]request: POST /json_proto HTTP/1.0 [16:55:11]Method: POST [16:55:11]URL: /json_proto [16:55:11]Method is POST - this is cgi request [16:55:11]url: /json_proto [16:55:11]query_string will be loaded in cgi processing [16:55:11]execute_cgi json_proto POST (null) [16:55:11]execute_cgi path=json_proto method=POST [16:55:11]POST find Content-Length [16:55:11]Host: 172.17.38.133:8080 [16:55:11]Content-Length: 1162 [16:55:11]Content-Type: application/json [16:55:11] [16:55:11]POST finish read [16:55:11]Found Content-Length = 1162 [16:55: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 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)673626\u000A21.06.2024 16:32\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 80.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 5832.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30144226\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:55:11]execute_script... [16:55: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 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)673626\u000A21.06.2024 16:32\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 80.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 5832.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30144226\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:55:11]POST & json_proto [16:55:11]process_json_proto [16:55:11]json parsed OK: [16:55:11]protocol is kg_v1.0 [16:55:11]action value=print_text [16:55:11]process_action print_text [16:55:11]cmd_print_text [16:55:11]ExternCall_PrintAddStr [16:55:11]wPrintStart [16:55:11]Write to MH i2c: 01 00 00 BF 01 C0 [16:55:11]Write i2c OK [16:55:11]MH_I2C_Read... [16:55:11]Read from MH i2c: 01 [16:55:11]MH_I2C_Read... [16:55:11]Read from MH i2c: 01 07 00 [16:55:11]MH_I2C_Read... [16:55:11]Read from MH i2c: 01 07 00 BF 01 00 00 00 00 00 FF 0F D5 [16:55:11]RasterBufferAndPrint [16:55:11]line *****ТОВАРНЫЙ ЧЕК***** [16:55:11]line АЗС 120 [16:55:11]line Партнер нефть [16:55:11]line 02508201610067 [16:55:11]line Кассир : Асанбаев Н. [16:55:11]line Счет N : (1)673626 [16:55:11]line 21.06.2024 16:32 [16:55:11]line ПРОДАЖА [16:55:11]line ТРК (МРК, ГНК): 21 [16:55:11]line Вид ГСМ : 2710194210 [16:55:11]line ДТ(л)-К-5 [16:55:11]line 80.000 x 72.90 [16:55:11]line ИТОГ: 5832.00 [16:55:11]line Тип оплаты: Талоны: ТК ГПНА Online [16:55:11]line 30144226 [16:55:11]line ______________________ [16:55:11]line (подпись) [16:55:11]written 0, free lines is 4095 [16:55:11]Write to MH i2c: 01 00 00 D3 01 D4 [16:55:11]Write i2c OK [16:55:11]MH_I2C_Read... [16:55:11]Read from MH i2c: 01 [16:55:11]MH_I2C_Read... [16:55:11]Read from MH i2c: 01 07 00 [16:55:11]MH_I2C_Read... [16:55:11]Read from MH i2c: 01 07 00 D3 01 00 00 00 00 00 11 0E FA [16:55:11]RasterBufferAndPrint [16:55:11]line [16:55:11]line [16:55:11]line [16:55:11]line [16:55:11]line [16:55:11]written 0, free lines is 3603 [16:55:11]MH_Cut [16:55:11]Write to MH i2c: D1 01 00 DA 01 01 AD [16:55:11]Write i2c OK [16:55:11]MH_I2C_Read... [16:55:11]Read from MH i2c: D1 [16:55:11]MH_I2C_Read... [16:55:11]Read from MH i2c: D1 01 00 [16:55:11]MH_I2C_Read... [16:55:11]Read from MH i2c: D1 01 00 DA 01 00 AC [16:55:11]Write to MH i2c: 01 00 00 DB 01 DC [16:55:11]Write i2c OK [16:55:11]MH_I2C_Read... [16:55:11]*** Cut start [16:55:11]*** Partial cut [16:55:11]*** CUTSNS_PIN = 1 [16:55:11]*** CUTSNS_PIN = 0 [16:55:12]*** Brake cut motor [16:55:12]Read from MH i2c: 01 [16:55:12]MH_I2C_Read... [16:55:12]*** Stop cut motor [16:55:12]*** Cut end [16:55:12]Read from MH i2c: 01 07 00 [16:55:12]MH_I2C_Read... [16:55:12]Read from MH i2c: 01 07 00 DB 01 00 00 00 00 00 FF 0F F1 [16:55:12]process_action print_text done [16:55:12]requested_data is exist [16:55:12]produce_requested_data [16:55:12]requested_item fm.sn is exist - process it [16:55:12]wFMCommunicate request_size=4 [16:55:12]MH_SAM_APDU [16:55:12]CAPDU: 80 11 00 00 [16:55:12]Write to MH i2c: E2 08 00 DC 01 80 11 00 00 00 00 00 00 57 [16:55:12]Write i2c OK [16:55:12]MH_I2C_Read... [16:55:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:55:12]Read from MH i2c: E2 [16:55:12]MH_I2C_Read... [16:55:12]Read from MH i2c: E2 17 00 [16:55:12]MH_I2C_Read... [16:55:12]Read from MH i2c: E2 17 00 DC 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 AA [16:55:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [16:55:12]wFMCommunicate OK [16:55:12]requested_item fd.num is exist - process it [16:55:12]SAM_PROTO_GetFieldsCounters [16:55:12]wFMCommunicate request_size=4 [16:55:12]MH_SAM_APDU [16:55:12]CAPDU: 80 13 00 00 [16:55:12]Write to MH i2c: E2 08 00 DD 01 80 13 00 00 00 00 00 00 5A [16:55:12]Write i2c OK [16:55:12]MH_I2C_Read... [16:55:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:55:12]Read from MH i2c: E2 [16:55:12]MH_I2C_Read... [16:55:12]Read from MH i2c: E2 62 00 [16:55:12]MH_I2C_Read... [16:55:12]Read from MH i2c: E2 62 00 DD 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 FB 96 01 00 0E 04 04 00 63 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 C1 [16:55: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 FB 96 01 00 0E 04 04 00 63 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 [16:55:12]wFMCommunicate OK [16:55:12]SAM_PROTO_GetFieldsCounters done [16:55:12]requested_item shift.num is exist - process it [16:55:12]requested_item shift.opened is exist - process it [16:55:12]req_shift_opened [16:55:12]FM_GetShiftState [16:55:12]SAM_PROTO_GetShiftState [16:55:12]wFMCommunicate request_size=4 [16:55:12]MH_SAM_APDU [16:55:12]CAPDU: 80 13 01 00 [16:55:12]Write to MH i2c: E2 08 00 DE 01 80 13 01 00 00 00 00 00 5C [16:55:12]Write i2c OK [16:55:12]MH_I2C_Read... [16:55:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:55:12]Read from MH i2c: E2 [16:55:12]MH_I2C_Read... [16:55:12]Read from MH i2c: E2 0E 00 [16:55:12]MH_I2C_Read... [16:55:12]Read from MH i2c: E2 0E 00 DE 01 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 6F [16:55:12]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [16:55:12]wFMCommunicate OK [16:55:12]SAM_PROTO_GetShiftState done [16:55:12]FM_GetShiftState done [16:55:12]req_shift_opened done [16:55:12]requested_item shift.open_date is exist - process it [16:55:12]req_shift_open_date [16:55:12]req_shift_open_date done [16:55:12]produce_requested_data done [16:55:12]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104187,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [16:55:12]process_action_free print_text [16:55:12]json_value_free [16:55:12]json_value_free done [16:55:12]process_json_proto returns [16:55:12]Send response to host [16:55:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104187,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [16:55:12]free response buf [16:55:12]execute_script done [16:55:12]execute_script returns [16:55:12]free content buf [16:55:12]Sock 7.Close socket [16:55:12]Sock 7.Thread stoped [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:09]OFD Sender: No OFD packet to send [17:08:14]OFD Sender: No OFD packet to send [17:08:19]OFD Sender: No OFD packet to send [17:08:24]OFD Sender: No OFD packet to send [17:08:29]OFD Sender: No OFD packet to send [17:08:34]OFD Sender: No OFD packet to send [17:08:39]OFD Sender: No OFD packet to send [17:08:44]OFD Sender: No OFD packet to send [17:08:49]OFD Sender: No OFD packet to send [17:08:54]OFD Sender: No OFD packet to send [17:08:59]OFD Sender: No OFD packet to send [17:09:04]OFD Sender: No OFD packet to send [17:09:09]OFD Sender: No OFD packet to send [17:09:14]OFD Sender: No OFD packet to send [17:09:19]OFD Sender: No OFD packet to send [17:09:24]OFD Sender: No OFD packet to send [17:09:29]OFD Sender: No OFD packet to send [17:09:34]OFD Sender: No OFD packet to send [17:09:39]OFD Sender: No OFD packet to send [17:09:44]OFD Sender: No OFD packet to send [17:09:49]OFD Sender: No OFD packet to send [17:09:54]OFD Sender: No OFD packet to send [17:09:59]OFD Sender: No OFD packet to send [17:10:04]OFD Sender: No OFD packet to send [17:10:09]OFD Sender: No OFD packet to send [17:10:14]OFD Sender: No OFD packet to send [17:10:19]OFD Sender: No OFD packet to send [17:10:24]OFD Sender: No OFD packet to send [17:10:29]OFD Sender: No OFD packet to send [17:10:34]OFD Sender: No OFD packet to send [17:10:39]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: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:29]accept exits with 9 [17:13:29]New connection [17:13:29]New thread 3066932580 created [17:13:29]Thread 3066789220 joined [17:13:29]Waiting for new connection... [17:13:29] Sock 9.Parse request [17:13:29]Sock 9.Check first char [17:13:29]Sock 9.First char is OK [17:13:29]request: POST /json_proto HTTP/1.0 [17:13:29]Method: POST [17:13:29]URL: /json_proto [17:13:29]Method is POST - this is cgi request [17:13:29]url: /json_proto [17:13:29]query_string will be loaded in cgi processing [17:13:29]execute_cgi json_proto POST (null) [17:13:29]execute_cgi path=json_proto method=POST [17:13:29]POST find Content-Length [17:13:29]Host: 172.17.38.133:8080 [17:13:29]Content-Length: 1155 [17:13:29]Content-Type: application/json [17:13:29] [17:13:29]POST finish read [17:13:29]Found Content-Length = 1155 [17:13: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 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)673627\u000A21.06.2024 16:50\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 8.850 x 66.40\u000A\u0418\u0422\u041E\u0413: 587.64\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30101531\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:13:29]execute_script... [17:13: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 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)673627\u000A21.06.2024 16:50\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 8.850 x 66.40\u000A\u0418\u0422\u041E\u0413: 587.64\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30101531\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:13:29]POST & json_proto [17:13:29]process_json_proto [17:13:29]json parsed OK: [17:13:29]protocol is kg_v1.0 [17:13:29]action value=print_text [17:13:29]process_action print_text [17:13:29]cmd_print_text [17:13:29]ExternCall_PrintAddStr [17:13:29]wPrintStart [17:13:29]Write to MH i2c: 01 00 00 DF 01 E0 [17:13:29]Write i2c OK [17:13:29]MH_I2C_Read... [17:13:29]Read from MH i2c: 01 [17:13:29]MH_I2C_Read... [17:13:29]Read from MH i2c: 01 07 00 [17:13:29]MH_I2C_Read... [17:13:29]Read from MH i2c: 01 07 00 DF 01 00 00 00 00 00 FF 0F F5 [17:13:29]RasterBufferAndPrint [17:13:29]line *****ТОВАРНЫЙ ЧЕК***** [17:13:29]line АЗС 120 [17:13:29]line Партнер нефть [17:13:29]line 02508201610067 [17:13:29]line Кассир : Асанбаев Н. [17:13:29]line Счет N : (1)673627 [17:13:29]line 21.06.2024 16:50 [17:13:29]line ПРОДАЖА [17:13:29]line ТРК (МРК, ГНК): 32 [17:13:29]line Вид ГСМ : 2710124130 [17:13:29]line Аи-92-К-5 [17:13:29]line 8.850 x 66.40 [17:13:29]line ИТОГ: 587.64 [17:13:29]line Тип оплаты: Талоны: ТК ГПНА Online [17:13:29]line 30101531 [17:13:29]line ______________________ [17:13:29]line (подпись) [17:13:29]written 0, free lines is 4095 [17:13:29]Write to MH i2c: 01 00 00 F3 01 F4 [17:13:29]Write i2c OK [17:13:29]MH_I2C_Read... [17:13:29]Read from MH i2c: 01 [17:13:29]MH_I2C_Read... [17:13:29]Read from MH i2c: 01 07 00 [17:13:29]MH_I2C_Read... [17:13:29]Read from MH i2c: 01 07 00 F3 01 00 00 00 00 00 10 0E 19 [17:13:29]RasterBufferAndPrint [17:13:29]line [17:13:29]line [17:13:29]line [17:13:29]line [17:13:29]line [17:13:29]written 0, free lines is 3601 [17:13:29]MH_Cut [17:13:29]Write to MH i2c: D1 01 00 FA 01 01 CD [17:13:29]Write i2c OK [17:13:29]MH_I2C_Read... [17:13:29]Read from MH i2c: D1 [17:13:29]MH_I2C_Read... [17:13:29]Read from MH i2c: D1 01 00 [17:13:29]MH_I2C_Read... [17:13:29]Read from MH i2c: D1 01 00 FA 01 00 CC [17:13:29]Write to MH i2c: 01 00 00 FB 01 FC [17:13:29]Write i2c OK [17:13:29]MH_I2C_Read... [17:13:30]OFD Sender: No OFD packet to send [17:13:30]*** Cut start [17:13:30]*** Partial cut [17:13:30]*** CUTSNS_PIN = 1 [17:13:30]*** CUTSNS_PIN = 0 [17:13:30]*** Brake cut motor [17:13:30]Read from MH i2c: 01 [17:13:30]MH_I2C_Read... [17:13:30]*** Stop cut motor [17:13:30]*** Cut end [17:13:30]Read from MH i2c: 01 07 00 [17:13:30]MH_I2C_Read... [17:13:30]Read from MH i2c: 01 07 00 FB 01 00 00 00 00 00 FF 0F 11 [17:13:30]process_action print_text done [17:13:30]requested_data is exist [17:13:30]produce_requested_data [17:13:30]requested_item fm.sn is exist - process it [17:13:30]wFMCommunicate request_size=4 [17:13:30]MH_SAM_APDU [17:13:30]CAPDU: 80 11 00 00 [17:13:30]Write to MH i2c: E2 08 00 FC 01 80 11 00 00 00 00 00 00 77 [17:13:30]Write i2c OK [17:13:30]MH_I2C_Read... [17:13:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:13:30]Read from MH i2c: E2 [17:13:30]MH_I2C_Read... [17:13:30]Read from MH i2c: E2 17 00 [17:13:30]MH_I2C_Read... [17:13:30]Read from MH i2c: E2 17 00 FC 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 CA [17:13:30]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:30]wFMCommunicate OK [17:13:30]requested_item fd.num is exist - process it [17:13:30]SAM_PROTO_GetFieldsCounters [17:13:30]wFMCommunicate request_size=4 [17:13:30]MH_SAM_APDU [17:13:30]CAPDU: 80 13 00 00 [17:13:30]Write to MH i2c: E2 08 00 FD 01 80 13 00 00 00 00 00 00 7A [17:13:30]Write i2c OK [17:13:30]MH_I2C_Read... [17:13:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:13:31]Read from MH i2c: E2 [17:13:31]MH_I2C_Read... [17:13:31]Read from MH i2c: E2 62 00 [17:13:31]MH_I2C_Read... [17:13:31]Read from MH i2c: E2 62 00 FD 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 FB 96 01 00 0E 04 04 00 63 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 E1 [17:13: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 96 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 6E 00 00 00 5E 04 04 00 6E 00 00 00 57 04 04 00 6F 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:13:31]wFMCommunicate OK [17:13:31]SAM_PROTO_GetFieldsCounters done [17:13:31]requested_item shift.num is exist - process it [17:13:31]requested_item shift.opened is exist - process it [17:13:31]req_shift_opened [17:13:31]FM_GetShiftState [17:13:31]SAM_PROTO_GetShiftState [17:13:31]wFMCommunicate request_size=4 [17:13:31]MH_SAM_APDU [17:13:31]CAPDU: 80 13 01 00 [17:13:31]Write to MH i2c: E2 08 00 FE 01 80 13 01 00 00 00 00 00 7C [17:13:31]Write i2c OK [17:13:31]MH_I2C_Read... [17:13:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:13:31]Read from MH i2c: E2 [17:13:31]MH_I2C_Read... [17:13:31]Read from MH i2c: E2 0E 00 [17:13:31]MH_I2C_Read... [17:13:31]Read from MH i2c: E2 0E 00 FE 01 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 8F [17:13:31]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [17:13:31]wFMCommunicate OK [17:13:31]SAM_PROTO_GetShiftState done [17:13:31]FM_GetShiftState done [17:13:31]req_shift_opened done [17:13:31]requested_item shift.open_date is exist - process it [17:13:31]req_shift_open_date [17:13:31]req_shift_open_date done [17:13:31]produce_requested_data done [17:13:31]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104187,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [17:13:31]process_action_free print_text [17:13:31]json_value_free [17:13:31]json_value_free done [17:13:31]process_json_proto returns [17:13:31]Send response to host [17:13:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104187,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [17:13:31]free response buf [17:13:31]execute_script done [17:13:31]execute_script returns [17:13:31]free content buf [17:13:31]Sock 9.Close socket [17:13:31]Sock 9.Thread stoped [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:55]OFD Sender: No OFD packet to send [17:13:58]accept exits with 7 [17:13:58]New connection [17:13:58]New thread 3066789220 created [17:13:58]Thread 3066932580 joined [17:13:58]Waiting for new connection... [17:13:58] Sock 7.Parse request [17:13:58]Sock 7.Check first char [17:13:58]Sock 7.First char is OK [17:13:58]request: POST /json_proto HTTP/1.0 [17:13:58]Method: POST [17:13:58]URL: /json_proto [17:13:58]Method is POST - this is cgi request [17:13:58]url: /json_proto [17:13:58]query_string will be loaded in cgi processing [17:13:58]execute_cgi json_proto POST (null) [17:13:58]execute_cgi path=json_proto method=POST [17:13:58]POST find Content-Length [17:13:58]Host: 172.17.38.133:8080 [17:13:58]Content-Length: 1162 [17:13:58]Content-Type: application/json [17:13:58] [17:13:58]POST finish read [17:13:58]Found Content-Length = 1162 [17:13:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 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)673628\u000A21.06.2024 16:50\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\u041A \u0413\u041F\u041D\u0410 Online\u000A30064689\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:13:58]execute_script... [17:13:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 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)673628\u000A21.06.2024 16:50\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\u041A \u0413\u041F\u041D\u0410 Online\u000A30064689\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:13:58]POST & json_proto [17:13:58]process_json_proto [17:13:58]json parsed OK: [17:13:58]protocol is kg_v1.0 [17:13:58]action value=print_text [17:13:58]process_action print_text [17:13:58]cmd_print_text [17:13:58]ExternCall_PrintAddStr [17:13:58]wPrintStart [17:13:58]Write to MH i2c: 01 00 00 FF 01 00 [17:13:58]Write i2c OK [17:13:58]MH_I2C_Read... [17:13:58]Read from MH i2c: 01 [17:13:58]MH_I2C_Read... [17:13:58]Read from MH i2c: 01 07 00 [17:13:58]MH_I2C_Read... [17:13:58]Read from MH i2c: 01 07 00 FF 01 00 00 00 00 00 FF 0F 15 [17:13:58]RasterBufferAndPrint [17:13:58]line *****ТОВАРНЫЙ ЧЕК***** [17:13:58]line АЗС 120 [17:13:58]line Партнер нефть [17:13:58]line 02508201610067 [17:13:58]line Кассир : Асанбаев Н. [17:13:58]line Счет N : (1)673628 [17:13:58]line 21.06.2024 16:50 [17:13:58]line ПРОДАЖА [17:13:58]line ТРК (МРК, ГНК): 11 [17:13:58]line Вид ГСМ : 2710194210 [17:13:58]line ДТ(л)-К-5 [17:13:58]line 20.000 x 72.90 [17:13:58]line ИТОГ: 1458.00 [17:13:58]line Тип оплаты: Талоны: ТК ГПНА Online [17:13:58]line 30064689 [17:13:58]line ______________________ [17:13:58]line (подпись) [17:13:58]written 0, free lines is 4095 [17:13:58]Write to MH i2c: 01 00 00 13 02 15 [17:13:58]Write i2c OK [17:13:58]MH_I2C_Read... [17:13:58]Read from MH i2c: 01 [17:13:58]MH_I2C_Read... [17:13:58]Read from MH i2c: 01 07 00 [17:13:58]MH_I2C_Read... [17:13:58]Read from MH i2c: 01 07 00 13 02 00 00 00 00 00 12 0E 3C [17:13:58]RasterBufferAndPrint [17:13:58]line [17:13:58]line [17:13:58]line [17:13:58]line [17:13:58]line [17:13:58]written 0, free lines is 3604 [17:13:58]MH_Cut [17:13:58]Write to MH i2c: D1 01 00 1A 02 01 EE [17:13:58]Write i2c OK [17:13:58]MH_I2C_Read... [17:13:58]Read from MH i2c: D1 [17:13:58]MH_I2C_Read... [17:13:58]Read from MH i2c: D1 01 00 [17:13:58]MH_I2C_Read... [17:13:58]Read from MH i2c: D1 01 00 1A 02 00 ED [17:13:58]Write to MH i2c: 01 00 00 1B 02 1D [17:13:58]Write i2c OK [17:13:58]MH_I2C_Read... [17:13:58]*** Cut start [17:13:58]*** Partial cut [17:13:58]*** CUTSNS_PIN = 1 [17:13:58]*** CUTSNS_PIN = 0 [17:13:59]*** Brake cut motor [17:13:59]Read from MH i2c: 01 [17:13:59]MH_I2C_Read... [17:13:59]*** Stop cut motor [17:13:59]*** Cut end [17:13:59]Read from MH i2c: 01 07 00 [17:13:59]MH_I2C_Read... [17:13:59]Read from MH i2c: 01 07 00 1B 02 00 00 00 00 00 FF 0F 32 [17:13:59]process_action print_text done [17:13:59]requested_data is exist [17:13:59]produce_requested_data [17:13:59]requested_item fm.sn is exist - process it [17:13:59]wFMCommunicate request_size=4 [17:13:59]MH_SAM_APDU [17:13:59]CAPDU: 80 11 00 00 [17:13:59]Write to MH i2c: E2 08 00 1C 02 80 11 00 00 00 00 00 00 98 [17:13:59]Write i2c OK [17:13:59]MH_I2C_Read... [17:13:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:13:59]Read from MH i2c: E2 [17:13:59]MH_I2C_Read... [17:13:59]Read from MH i2c: E2 17 00 [17:13:59]MH_I2C_Read... [17:13:59]Read from MH i2c: E2 17 00 1C 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 EB [17:13: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:13:59]wFMCommunicate OK [17:13:59]requested_item fd.num is exist - process it [17:13:59]SAM_PROTO_GetFieldsCounters [17:13:59]wFMCommunicate request_size=4 [17:13:59]MH_SAM_APDU [17:13:59]CAPDU: 80 13 00 00 [17:13:59]Write to MH i2c: E2 08 00 1D 02 80 13 00 00 00 00 00 00 9B [17:13:59]Write i2c OK [17:13:59]MH_I2C_Read... [17:13:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:13:59]Read from MH i2c: E2 [17:13:59]MH_I2C_Read... [17:13:59]Read from MH i2c: E2 62 00 [17:13:59]MH_I2C_Read... [17:13:59]Read from MH i2c: E2 62 00 1D 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 FB 96 01 00 0E 04 04 00 63 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 02 [17:13:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 96 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 6E 00 00 00 5E 04 04 00 6E 00 00 00 57 04 04 00 6F 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:13:59]wFMCommunicate OK [17:13:59]SAM_PROTO_GetFieldsCounters done [17:13:59]requested_item shift.num is exist - process it [17:13:59]requested_item shift.opened is exist - process it [17:13:59]req_shift_opened [17:13:59]FM_GetShiftState [17:13:59]SAM_PROTO_GetShiftState [17:13:59]wFMCommunicate request_size=4 [17:13:59]MH_SAM_APDU [17:13:59]CAPDU: 80 13 01 00 [17:13:59]Write to MH i2c: E2 08 00 1E 02 80 13 01 00 00 00 00 00 9D [17:13:59]Write i2c OK [17:13:59]MH_I2C_Read... [17:13:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:13:59]Read from MH i2c: E2 [17:13:59]MH_I2C_Read... [17:13:59]Read from MH i2c: E2 0E 00 [17:13:59]MH_I2C_Read... [17:13:59]Read from MH i2c: E2 0E 00 1E 02 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 B0 [17:13:59]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [17:13:59]wFMCommunicate OK [17:13:59]SAM_PROTO_GetShiftState done [17:13:59]FM_GetShiftState done [17:13:59]req_shift_opened done [17:13:59]requested_item shift.open_date is exist - process it [17:13:59]req_shift_open_date [17:13:59]req_shift_open_date done [17:13:59]produce_requested_data done [17:13:59]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104187,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [17:13:59]process_action_free print_text [17:13:59]json_value_free [17:13:59]json_value_free done [17:13:59]process_json_proto returns [17:13:59]Send response to host [17:13:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104187,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [17:13:59]free response buf [17:13:59]execute_script done [17:13:59]execute_script returns [17:13:59]free content buf [17:13:59]Sock 7.Close socket [17:13:59]Sock 7.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:45]OFD Sender: No OFD packet to send [17:16:50]OFD Sender: No OFD packet to send [17:16:55]OFD Sender: No OFD packet to send [17:17:00]OFD Sender: No OFD packet to send [17:17:05]OFD Sender: No OFD packet to send [17:17:10]OFD Sender: No OFD packet to send [17:17:15]OFD Sender: No OFD packet to send [17:17:20]OFD Sender: No OFD packet to send [17:17:25]OFD Sender: No OFD packet to send [17:17:30]OFD Sender: No OFD packet to send [17:17:35]OFD Sender: No OFD packet to send [17:17:40]OFD Sender: No OFD packet to send [17:17:45]OFD Sender: No OFD packet to send [17:17:50]OFD Sender: No OFD packet to send [17:17:55]OFD Sender: No OFD packet to send [17:18:00]OFD Sender: No OFD packet to send [17:18:05]OFD Sender: No OFD packet to send [17:18:10]OFD Sender: No OFD packet to send [17:18:15]OFD Sender: No OFD packet to send [17:18:20]OFD Sender: No OFD packet to send [17:18:25]OFD Sender: No OFD packet to send [17:18:30]OFD Sender: No OFD packet to send [17:18:35]OFD Sender: No OFD packet to send [17:18:40]OFD Sender: No OFD packet to send [17:18:45]OFD Sender: No OFD packet to send [17:18:50]OFD Sender: No OFD packet to send [17:18:55]OFD Sender: No OFD packet to send [17:19:00]accept exits with 10 [17:19:00]New connection [17:19:00]New thread 3066932580 created [17:19:00]Thread 3066789220 joined [17:19:00]Waiting for new connection... [17:19:00] Sock 10.Parse request [17:19:00]Sock 10.Check first char [17:19:00]Sock 10.First char is OK [17:19:00]request: POST /json_proto HTTP/1.0 [17:19:00]Method: POST [17:19:00]URL: /json_proto [17:19:00]Method is POST - this is cgi request [17:19:00]url: /json_proto [17:19:00]query_string will be loaded in cgi processing [17:19:00]execute_cgi json_proto POST (null) [17:19:00]execute_cgi path=json_proto method=POST [17:19:00]POST find Content-Length [17:19:00]Host: 172.17.38.133:8080 [17:19:00]Content-Length: 1156 [17:19:00]Content-Type: application/json [17:19:00] [17:19:00]POST finish read [17:19:00]Found Content-Length = 1156 [17:19:00]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)673629\u000A21.06.2024 16:56\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 11.150 x 66.40\u000A\u0418\u0422\u041E\u0413: 740.36\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30101531\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:19:00]execute_script... [17:19:00]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)673629\u000A21.06.2024 16:56\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 11.150 x 66.40\u000A\u0418\u0422\u041E\u0413: 740.36\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30101531\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:19:00]POST & json_proto [17:19:00]process_json_proto [17:19:00]json parsed OK: [17:19:00]protocol is kg_v1.0 [17:19:00]action value=print_text [17:19:00]process_action print_text [17:19:00]cmd_print_text [17:19:00]ExternCall_PrintAddStr [17:19:00]wPrintStart [17:19:00]Write to MH i2c: 01 00 00 1F 02 21 [17:19:00]Write i2c OK [17:19:00]MH_I2C_Read... [17:19:00]Read from MH i2c: 01 [17:19:00]MH_I2C_Read... [17:19:00]Read from MH i2c: 01 07 00 [17:19:00]MH_I2C_Read... [17:19:00]Read from MH i2c: 01 07 00 1F 02 00 00 00 00 00 FF 0F 36 [17:19:00]RasterBufferAndPrint [17:19:00]line *****ТОВАРНЫЙ ЧЕК***** [17:19:00]line АЗС 120 [17:19:00]line Партнер нефть [17:19:00]line 02508201610067 [17:19:00]line Кассир : Асанбаев Н. [17:19:00]line Счет N : (1)673629 [17:19:00]line 21.06.2024 16:56 [17:19:00]line ПРОДАЖА [17:19:00]line ТРК (МРК, ГНК): 42 [17:19:00]line Вид ГСМ : 2710124130 [17:19:00]line Аи-92-К-5 [17:19:00]line 11.150 x 66.40 [17:19:00]line ИТОГ: 740.36 [17:19:00]line Тип оплаты: Талоны: ТК ГПНА Online [17:19:00]line 30101531 [17:19:00]line ______________________ [17:19:00]line (подпись) [17:19:00]written 0, free lines is 4095 [17:19:00]Write to MH i2c: 01 00 00 33 02 35 [17:19:00]Write i2c OK [17:19:00]MH_I2C_Read... [17:19:00]Read from MH i2c: 01 [17:19:00]MH_I2C_Read... [17:19:00]Read from MH i2c: 01 07 00 [17:19:00]MH_I2C_Read... [17:19:00]Read from MH i2c: 01 07 00 33 02 00 00 00 00 00 0F 0E 59 [17:19:00]RasterBufferAndPrint [17:19:00]line [17:19:00]line [17:19:00]line [17:19:00]line [17:19:00]line [17:19:00]written 0, free lines is 3601 [17:19:00]MH_Cut [17:19:00]Write to MH i2c: D1 01 00 3A 02 01 0E [17:19:00]Write i2c OK [17:19:00]MH_I2C_Read... [17:19:00]Read from MH i2c: D1 [17:19:00]MH_I2C_Read... [17:19:00]Read from MH i2c: D1 01 00 [17:19:00]MH_I2C_Read... [17:19:00]Read from MH i2c: D1 01 00 3A 02 00 0D [17:19:00]Write to MH i2c: 01 00 00 3B 02 3D [17:19:00]Write i2c OK [17:19:00]MH_I2C_Read... [17:19:00]OFD Sender: No OFD packet to send [17:19:00]*** Cut start [17:19:00]*** Partial cut [17:19:00]*** CUTSNS_PIN = 1 [17:19:00]*** CUTSNS_PIN = 0 [17:19:01]*** Brake cut motor [17:19:01]Read from MH i2c: 01 [17:19:01]MH_I2C_Read... [17:19:01]Read from MH i2c: 01 07 00 [17:19:01]MH_I2C_Read... [17:19:01]*** Stop cut motor [17:19:01]*** Cut end [17:19:01]Read from MH i2c: 01 07 00 3B 02 00 00 00 00 00 FF 0F 52 [17:19:01]process_action print_text done [17:19:01]requested_data is exist [17:19:01]produce_requested_data [17:19:01]requested_item fm.sn is exist - process it [17:19:01]wFMCommunicate request_size=4 [17:19:01]MH_SAM_APDU [17:19:01]CAPDU: 80 11 00 00 [17:19:01]Write to MH i2c: E2 08 00 3C 02 80 11 00 00 00 00 00 00 B8 [17:19:01]Write i2c OK [17:19:01]MH_I2C_Read... [17:19:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:19:01]Read from MH i2c: E2 [17:19:01]MH_I2C_Read... [17:19:01]Read from MH i2c: E2 17 00 [17:19:01]MH_I2C_Read... [17:19:01]Read from MH i2c: E2 17 00 3C 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 0B [17:19:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [17:19:01]wFMCommunicate OK [17:19:01]requested_item fd.num is exist - process it [17:19:01]SAM_PROTO_GetFieldsCounters [17:19:01]wFMCommunicate request_size=4 [17:19:01]MH_SAM_APDU [17:19:01]CAPDU: 80 13 00 00 [17:19:01]Write to MH i2c: E2 08 00 3D 02 80 13 00 00 00 00 00 00 BB [17:19:01]Write i2c OK [17:19:01]MH_I2C_Read... [17:19:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:19:01]Read from MH i2c: E2 [17:19:01]MH_I2C_Read... [17:19:01]Read from MH i2c: E2 62 00 [17:19:01]MH_I2C_Read... [17:19:01]Read from MH i2c: E2 62 00 3D 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 FB 96 01 00 0E 04 04 00 63 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 22 [17:19: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 FB 96 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 6E 00 00 00 5E 04 04 00 6E 00 00 00 57 04 04 00 6F 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:19:01]wFMCommunicate OK [17:19:01]SAM_PROTO_GetFieldsCounters done [17:19:01]requested_item shift.num is exist - process it [17:19:01]requested_item shift.opened is exist - process it [17:19:01]req_shift_opened [17:19:01]FM_GetShiftState [17:19:01]SAM_PROTO_GetShiftState [17:19:01]wFMCommunicate request_size=4 [17:19:01]MH_SAM_APDU [17:19:01]CAPDU: 80 13 01 00 [17:19:01]Write to MH i2c: E2 08 00 3E 02 80 13 01 00 00 00 00 00 BD [17:19:01]Write i2c OK [17:19:01]MH_I2C_Read... [17:19:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:19:01]Read from MH i2c: E2 [17:19:01]MH_I2C_Read... [17:19:01]Read from MH i2c: E2 0E 00 [17:19:01]MH_I2C_Read... [17:19:01]Read from MH i2c: E2 0E 00 3E 02 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 D0 [17:19:01]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [17:19:01]wFMCommunicate OK [17:19:01]SAM_PROTO_GetShiftState done [17:19:01]FM_GetShiftState done [17:19:01]req_shift_opened done [17:19:01]requested_item shift.open_date is exist - process it [17:19:01]req_shift_open_date [17:19:01]req_shift_open_date done [17:19:01]produce_requested_data done [17:19:01]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104187,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [17:19:01]process_action_free print_text [17:19:01]json_value_free [17:19:01]json_value_free done [17:19:01]process_json_proto returns [17:19:01]Send response to host [17:19:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104187,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [17:19:01]free response buf [17:19:01]execute_script done [17:19:01]execute_script returns [17:19:01]free content buf [17:19:01]Sock 10.Close socket [17:19:01]Sock 10.Thread stoped [17:19:05]OFD Sender: No OFD packet to send [17:19:10]OFD Sender: No OFD packet to send [17:19:15]OFD Sender: No OFD packet to send [17:19:20]OFD Sender: No OFD packet to send [17:19:25]OFD Sender: No OFD packet to send [17:19:30]OFD Sender: No OFD packet to send [17:19:35]OFD Sender: No OFD packet to send [17:19:40]OFD Sender: No OFD packet to send [17:19:45]OFD Sender: No OFD packet to send [17:19:50]OFD Sender: No OFD packet to send [17:19:55]OFD Sender: No OFD packet to send [17:20:00]OFD Sender: No OFD packet to send [17:20:05]OFD Sender: No OFD packet to send [17:20:10]OFD Sender: No OFD packet to send [17:20:15]OFD Sender: No OFD packet to send [17:20:20]OFD Sender: No OFD packet to send [17:20:25]OFD Sender: No OFD packet to send [17:20:30]OFD Sender: No OFD packet to send [17:20:35]OFD Sender: No OFD packet to send [17:20:40]OFD Sender: No OFD packet to send [17:20:45]OFD Sender: No OFD packet to send [17:20:50]OFD Sender: No OFD packet to send [17:20:55]OFD Sender: No OFD packet to send [17:21:00]OFD Sender: No OFD packet to send [17:21:05]OFD Sender: No OFD packet to send [17:21:10]OFD Sender: No OFD packet to send [17:21:11]accept exits with 7 [17:21:11]New connection [17:21:11]New thread 3066789220 created [17:21:11]Thread 3066932580 joined [17:21:11]Waiting for new connection... [17:21:11] Sock 7.Parse request [17:21:11]Sock 7.Check first char [17:21:11]Sock 7.First char is OK [17:21:11]request: POST /json_proto HTTP/1.0 [17:21:11]Method: POST [17:21:11]URL: /json_proto [17:21:11]Method is POST - this is cgi request [17:21:11]url: /json_proto [17:21:11]query_string will be loaded in cgi processing [17:21:11]execute_cgi json_proto POST (null) [17:21:11]execute_cgi path=json_proto method=POST [17:21:11]POST find Content-Length [17:21:11]Host: 172.17.38.133:8080 [17:21:11]Content-Length: 678 [17:21:11]Content-Type: application/json [17:21:11] [17:21:11]POST finish read [17:21:11]Found Content-Length = 678 [17:21:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673630", "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" ] } } [17:21:11]execute_script... [17:21: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)673630", "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" ] } } [17:21:11]POST & json_proto [17:21:11]process_json_proto [17:21:11]json parsed OK: [17:21:11]protocol is kg_v1.0 [17:21:11]action value=close_receipt [17:21:11]process_action close_receipt [17:21:11]cmd_close_receipt [17:21:11]MH_GetDate [17:21:11]Write to MH i2c: F0 00 00 3F 02 30 [17:21:11]Write i2c OK [17:21:11]MH_I2C_Read... [17:21:11]Read from MH i2c: F0 [17:21:11]MH_I2C_Read... [17:21:11]Read from MH i2c: F0 09 00 [17:21:11]MH_I2C_Read... [17:21:11]Read from MH i2c: F0 09 00 3F 02 00 88 B6 75 66 BD 8F 7C 64 7E [17:21:11]GetLastDocTimeStamp 1718988171 [17:21:11]current date 1718990472 [17:21:11]FM_GetShiftState [17:21:11]SAM_PROTO_GetShiftState [17:21:11]wFMCommunicate request_size=4 [17:21:11]MH_SAM_APDU [17:21:11]CAPDU: 80 13 01 00 [17:21:11]Write to MH i2c: E2 08 00 40 02 80 13 01 00 00 00 00 00 BF [17:21:11]Write i2c OK [17:21:11]MH_I2C_Read... [17:21:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:21:11]Read from MH i2c: E2 [17:21:11]MH_I2C_Read... [17:21:11]Read from MH i2c: E2 0E 00 [17:21:11]MH_I2C_Read... [17:21:11]Read from MH i2c: E2 0E 00 40 02 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 D2 [17:21:11]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [17:21:11]wFMCommunicate OK [17:21:11]SAM_PROTO_GetShiftState done [17:21:11]FM_GetShiftState done [17:21:11]opened in 1718929509 [17:21:11]opened+sec_in_day 1719015909 [17:21:11]quantity*price = 70052 [17:21:11]sum+1 = 70053 [17:21:11]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 СНО: Общий режим Чек 111 21.06.2024 17:21 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104188 ФПД: 195157569517112 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T172112&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104188&fm=195157569517112&tin=02508201610067®Number=0000000000092785&sum=70000 [17:21:12]StoreToDocumentArchive [17:21:12]shift 355 fd 104188 [17:21:12]save to /storage/0355/doc_00104188 [17:21:12]save last doc name /storage/0355/doc_00104188 to /storage/kkm_last_doc_name [17:21:12]save OK [17:21:12]Clear old archive folders... [17:21:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:21:12]tlvbuf is 01105170 [17:21:12]SAM_PROTO_ClearQueue [17:21:12]wFMCommunicate request_size=4 [17:21:12]MH_SAM_APDU [17:21:12]CAPDU: 80 09 00 00 [17:21:12]Write to MH i2c: E2 08 00 4D 02 80 09 00 00 00 00 00 00 C1 [17:21:12]Write i2c OK [17:21:12]MH_I2C_Read... [17:21:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:21:12]Read from MH i2c: E2 [17:21:12]MH_I2C_Read... [17:21:12]Read from MH i2c: E2 03 00 [17:21:12]MH_I2C_Read... [17:21:12]Read from MH i2c: E2 03 00 4D 02 00 90 00 C3 [17:21:12]RAPDU: 90 00 [17:21:12]wFMCommunicate OK [17:21:12]SAM_PROTO_ClearQueue done [17:21:12]KKMCreateOFDPacket [17:21:12]OFDProtocolAddRootSTLVToBuf [17:21:12]FM_MakeSignedData [17:21:12]FM_MakeSignedData [17:21:12]SAM_PROTO_SignData [17:21:12]wFMCommunicate request_size=4 [17:21:12]MH_SAM_APDU [17:21:12]CAPDU: 80 0D 01 02 [17:21:12]Write to MH i2c: E2 08 00 4E 02 80 0D 01 02 00 00 00 00 C9 [17:21:12]Write i2c OK [17:21:12]MH_I2C_Read... [17:21:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:21:12]Read from MH i2c: E2 [17:21:12]MH_I2C_Read... [17:21:12]Read from MH i2c: E2 03 00 [17:21:12]MH_I2C_Read... [17:21:12]Read from MH i2c: E2 03 00 4E 02 00 90 00 C4 [17:21:12]RAPDU: 90 00 [17:21:12]wFMCommunicate OK [17:21:12]wFMCommunicate request_size=255 [17:21:12]MH_SAM_APDU [17:21: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 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 6F 00 00 00 F4 03 04 00 88 B6 75 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 FC 96 01 00 35 04 06 00 B1 [17:21:12]Write to MH i2c: E2 02 01 4F 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 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 6F 00 00 00 F4 03 04 00 88 B6 75 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 FC 96 01 00 35 04 06 00 B1 00 00 C5 [17:21:12]Write i2c OK [17:21:12]MH_I2C_Read... [17:21:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:21:12]Read from MH i2c: E2 [17:21:12]MH_I2C_Read... [17:21:12]Read from MH i2c: E2 03 00 [17:21:12]MH_I2C_Read... [17:21:12]Read from MH i2c: E2 03 00 4F 02 00 90 00 C5 [17:21:12]RAPDU: 90 00 [17:21:12]wFMCommunicate OK [17:21:12]wFMCommunicate request_size=10 [17:21:12]MH_SAM_APDU [17:21:12]CAPDU: 80 0D 02 02 05 7E A9 9B 36 38 [17:21:12]Write to MH i2c: E2 0D 00 50 02 80 0D 02 02 05 00 7E A9 9B 36 38 00 00 06 [17:21:12]Write i2c OK [17:21:12]MH_I2C_Read... [17:21:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:21:12]Read from MH i2c: E2 [17:21:12]MH_I2C_Read... [17:21:12]Read from MH i2c: E2 03 00 [17:21:12]MH_I2C_Read... [17:21:12]Read from MH i2c: E2 03 00 50 02 00 90 00 C6 [17:21:12]RAPDU: 90 00 [17:21:12]wFMCommunicate OK [17:21:12]wFMCommunicate request_size=4 [17:21:12]MH_SAM_APDU [17:21:12]CAPDU: 80 0D 03 02 [17:21:12]Write to MH i2c: E2 08 00 51 02 80 0D 03 02 00 00 00 00 CE [17:21:12]Write i2c OK [17:21:12]MH_I2C_Read... [17:21:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:21:12]Read from MH i2c: E2 [17:21:12]MH_I2C_Read... [17:21:12]Read from MH i2c: E2 0B 00 [17:21:12]MH_I2C_Read... [17:21:12]Read from MH i2c: E2 0B 00 51 02 00 63 78 F0 D4 BA 35 76 3A 90 00 0D [17:21:12]RAPDU: 63 78 F0 D4 BA 35 76 3A 90 00 [17:21:12]wFMCommunicate OK [17:21:12]SAM_PROTO_SignData done [17:21:12]FM_MakeSignedData done [17:21:12]CreateOFDProtocolMessage [17:21:12]wFMCommunicate request_size=4 [17:21:12]MH_SAM_APDU [17:21:12]CAPDU: 80 11 00 00 [17:21:12]Write to MH i2c: E2 08 00 52 02 80 11 00 00 00 00 00 00 CE [17:21:12]Write i2c OK [17:21:12]MH_I2C_Read... [17:21:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:21:12]Read from MH i2c: E2 [17:21:12]MH_I2C_Read... [17:21:12]Read from MH i2c: E2 17 00 [17:21:12]MH_I2C_Read... [17:21:12]Read from MH i2c: E2 17 00 52 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 21 [17:21:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [17:21:12]wFMCommunicate OK [17:21:12]CreateOFDProtocolMessage done [17:21:12]OFDSenderStorePacket 104188 [17:21:12]StoreOFDPacket docnum=104188 [17:21: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 D8 78 07 01 7E A6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 6F 00 00 00 F4 03 04 00 88 B6 75 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 FC 96 01 00 35 04 06 00 B1 7E A9 9B 36 38 63 78 F0 D4 BA 35 76 3A [17:21:12]CheckFolder [17:21:12]dirname=/storage/ofd_packets [17:21:12]CheckFolder done [17:21:12]ProducePacketName [17:21:12]name=ofd_packets/00104188 [17:21:12]NVStorageSaveData ofd_packets/00104188 [17:21:12]File name is /storage/ofd_packets/00104188 [17:21:12]Write 301 bytes [17:21:12]NVStorageSaveData done [17:21:12]OFDSenderStorePacket done [17:21:12]KKMCreateOFDPacket done [17:21:12]NVStorageSaveData kkm_last_timestamp [17:21:12]File name is /storage/kkm_last_timestamp [17:21:12]Write 4 bytes [17:21:12]NVStorageSaveData done [17:21:12]ExternCall_PrintAddStr [17:21:12]wPrintStart [17:21:12]Write to MH i2c: 01 00 00 53 02 55 [17:21:12]Write i2c OK [17:21:12]MH_I2C_Read... [17:21:12]Read from MH i2c: 01 [17:21:12]MH_I2C_Read... [17:21:12]Read from MH i2c: 01 07 00 [17:21:12]MH_I2C_Read... [17:21:12]Read from MH i2c: 01 07 00 53 02 00 00 00 00 00 FF 0F 6A [17:21:12]RasterBufferAndPrint [17:21:12]line Счет N : (1)673630 [17:21:12]line ИНН: 02508201610067 [17:21:12]line Контрольно-Кассовый Чек [17:21:12]line ПРОДАЖА [17:21:12]line ТРК (МРК, ГНК) : 42 [17:21:12]line Товар: 2710124130 [17:21:12]line Аи-92-К-5 [17:21:12]line 10.550 * 66.40 [17:21:12]line = 700.52 [17:21:12]line НДС 12% НСП 1% [17:21:12]line > о реализуемом товаре [17:21:12]line ОКРУГЛЕНИЕ: -0.52 [17:21:12]line ИТОГО: 700.00 [17:21:12]line Внесено: 700.00 [17:21:12]line СДАЧА: 0.00 [17:21:12]line НСП 1% : 6.20 [17:21:12]line НДС 12% : 74.39 [17:21:12]line Наличными: 700.00 [17:21:12]line Безнал.: 0.00 [17:21:12]line Место: АЗС № 120 "Партнер Нефть" [17:21:12]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [17:21:12]line СНО: Общий режим [17:21:12]line Чек 111 21.06.2024 17:21 [17:21:12]line Смена: 355 ФФД: 1.0 [17:21:12]line ЗНМ: 0300000164 [17:21:12]line РНМ: 0000000000092785 [17:21:12]line Версия ККМ: 001 [17:21:12]line ФМ: 0000000000875093 [17:21:13]line ФД: 104188 [17:21:13]line ФПД: 195157569517112 [17:21:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T172112&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104188&fm=195157569517112&tin=02508201610067®Number=0000000000092785&sum=70000 [17:21:13]OFD Sender: Processing packet 104188 [packets to send 17, broken 16] [17:21:13]ProducePacketName [17:21:13]name=ofd_packets/00104188 [17:21:13]OFD Sender: To server: pG, [17:21:13]CommunicateWithHost lk.salyk.kg:30040 [17:21:13]ConnectInit lk.salyk.kg [17:21:13]written 0, free lines is 4095 [17:21:13]Connected sock=10 [17:21: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 D8 78 07 01 7E A6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 6F 00 00 00 F4 03 04 00 88 B6 75 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 FC 96 01 00 35 04 06 00 B1 7E A9 9B 36 38 63 78 F0 D4 BA 35 76 3A [17:21: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 E3 1C 47 00 D3 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 FC 96 01 00 F4 03 04 00 09 5D 75 66 B6 04 01 00 00 FD D9 FD 76 8F 47 D6 0F [17:21:13]CommunicateWithHost err = 0 [17:21:13]CheckOFDResponse [17:21:13]1017 (14) - 77093643461234 [17:21:13]1041 (16) - 0000000000875093 [17:21:13]1040 (4) - 104188 [17:21:13]1012 (4) - 21.06.2024 10:59 [17:21:13]1206 (1) - 0 [17:21:13]OFD Sender: Remove packet 104188 [17:21:13]ProducePacketName [17:21:13]name=ofd_packets/00104188 [17:21:13]NVStorageDeleteData [17:21:13]Write to MH i2c: 01 00 00 7E 02 80 [17:21:13]Write i2c OK [17:21:13]MH_I2C_Read... [17:21:13]Read from MH i2c: 01 [17:21:13]MH_I2C_Read... [17:21:13]Read from MH i2c: 01 07 00 [17:21:13]MH_I2C_Read... [17:21:13]Read from MH i2c: 01 07 00 7E 02 00 00 00 00 00 F1 0C 84 [17:21:13]RasterBufferAndPrint [17:21:13]line [17:21:13]line [17:21:13]line [17:21:13]line [17:21:13]line [17:21:13]written 0, free lines is 3319 [17:21:13]MH_Cut [17:21:13]Write to MH i2c: D1 01 00 85 02 01 59 [17:21:13]Write i2c OK [17:21:13]MH_I2C_Read... [17:21:13]Read from MH i2c: D1 [17:21:13]MH_I2C_Read... [17:21:13]Read from MH i2c: D1 01 00 [17:21:13]MH_I2C_Read... [17:21:13]Read from MH i2c: D1 01 00 85 02 00 58 [17:21:13]Write to MH i2c: 01 00 00 86 02 88 [17:21:13]Write i2c OK [17:21:13]MH_I2C_Read... [17:21:14]OFD Sender: No OFD packet to send [17:21:14]*** Cut start [17:21:14]*** Partial cut [17:21:14]*** CUTSNS_PIN = 1 [17:21:14]*** CUTSNS_PIN = 0 [17:21:14]*** Brake cut motor [17:21:15]Read from MH i2c: 01 [17:21:15]MH_I2C_Read... [17:21:15]*** Stop cut motor [17:21:15]*** Cut end [17:21:15]Read from MH i2c: 01 07 00 [17:21:15]MH_I2C_Read... [17:21:15]Read from MH i2c: 01 07 00 86 02 00 00 00 00 00 FF 0F 9D [17:21:15]process_action close_receipt done [17:21:15]requested_data is exist [17:21:15]produce_requested_data [17:21:15]requested_item fm.sn is exist - process it [17:21:15]wFMCommunicate request_size=4 [17:21:15]MH_SAM_APDU [17:21:15]CAPDU: 80 11 00 00 [17:21:15]Write to MH i2c: E2 08 00 87 02 80 11 00 00 00 00 00 00 03 [17:21:15]Write i2c OK [17:21:15]MH_I2C_Read... [17:21:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:21:15]Read from MH i2c: E2 [17:21:15]MH_I2C_Read... [17:21:15]Read from MH i2c: E2 17 00 [17:21:15]MH_I2C_Read... [17:21:15]Read from MH i2c: E2 17 00 87 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 56 [17:21:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [17:21:15]wFMCommunicate OK [17:21:15]requested_item fd.num is exist - process it [17:21:15]SAM_PROTO_GetFieldsCounters [17:21:15]wFMCommunicate request_size=4 [17:21:15]MH_SAM_APDU [17:21:15]CAPDU: 80 13 00 00 [17:21:15]Write to MH i2c: E2 08 00 88 02 80 13 00 00 00 00 00 00 06 [17:21:15]Write i2c OK [17:21:15]MH_I2C_Read... [17:21:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:21:15]Read from MH i2c: E2 [17:21:15]MH_I2C_Read... [17:21:15]Read from MH i2c: E2 62 00 [17:21:15]MH_I2C_Read... [17:21:15]Read from MH i2c: E2 62 00 88 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 FC 96 01 00 0E 04 04 00 63 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 71 [17:21: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 FC 96 01 00 0E 04 04 00 63 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 [17:21:15]wFMCommunicate OK [17:21:15]SAM_PROTO_GetFieldsCounters done [17:21:15]requested_item shift.num is exist - process it [17:21:15]requested_item shift.opened is exist - process it [17:21:15]req_shift_opened [17:21:15]FM_GetShiftState [17:21:15]SAM_PROTO_GetShiftState [17:21:15]wFMCommunicate request_size=4 [17:21:15]MH_SAM_APDU [17:21:15]CAPDU: 80 13 01 00 [17:21:15]Write to MH i2c: E2 08 00 89 02 80 13 01 00 00 00 00 00 08 [17:21:15]Write i2c OK [17:21:15]MH_I2C_Read... [17:21:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:21:15]Read from MH i2c: E2 [17:21:15]MH_I2C_Read... [17:21:15]Read from MH i2c: E2 0E 00 [17:21:15]MH_I2C_Read... [17:21:15]Read from MH i2c: E2 0E 00 89 02 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 1B [17:21:15]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [17:21:15]wFMCommunicate OK [17:21:15]SAM_PROTO_GetShiftState done [17:21:15]FM_GetShiftState done [17:21:15]req_shift_opened done [17:21:15]requested_item shift.open_date is exist - process it [17:21:15]req_shift_open_date [17:21:15]req_shift_open_date done [17:21:15]produce_requested_data done [17:21:15]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104188,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [17:21:15]process_action_free close_receipt [17:21:15]json_value_free [17:21:15]json_value_free done [17:21:15]process_json_proto returns [17:21:15]Send response to host [17:21:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104188,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [17:21:15]free response buf [17:21:15]execute_script done [17:21:15]execute_script returns [17:21:15]free content buf [17:21:15]Sock 7.Close socket [17:21:15]Sock 7.Thread stoped [17:21:19]OFD Sender: No OFD packet to send [17:21:24]OFD Sender: No OFD packet to send [17:21:29]OFD Sender: No OFD packet to send [17:21:34]OFD Sender: No OFD packet to send [17:21:39]OFD Sender: No OFD packet to send [17:21:44]OFD Sender: No OFD packet to send [17:21:49]OFD Sender: No OFD packet to send [17:21:54]OFD Sender: No OFD packet to send [17:21:59]OFD Sender: No OFD packet to send [17:22:04]OFD Sender: No OFD packet to send [17:22:09]OFD Sender: No OFD packet to send [17:22:14]OFD Sender: No OFD packet to send [17:22:19]OFD Sender: No OFD packet to send [17:22:24]OFD Sender: No OFD packet to send [17:22:29]OFD Sender: No OFD packet to send [17:22:34]OFD Sender: No OFD packet to send [17:22:39]OFD Sender: No OFD packet to send [17:22:44]OFD Sender: No OFD packet to send [17:22:49]OFD Sender: No OFD packet to send [17:22:54]OFD Sender: No OFD packet to send [17:22:59]OFD Sender: No OFD packet to send [17:23:04]OFD Sender: No OFD packet to send [17:23:09]OFD Sender: No OFD packet to send [17:23:14]OFD Sender: No OFD packet to send [17:23:19]OFD Sender: No OFD packet to send [17:23:24]OFD Sender: No OFD packet to send [17:23:29]OFD Sender: No OFD packet to send [17:23:34]OFD Sender: No OFD packet to send [17:23:39]OFD Sender: No OFD packet to send [17:23:44]OFD Sender: No OFD packet to send [17:23:49]OFD Sender: No OFD packet to send [17:23:54]OFD Sender: No OFD packet to send [17:23:59]OFD Sender: No OFD packet to send [17:24:04]OFD Sender: No OFD packet to send [17:24:09]OFD Sender: No OFD packet to send [17:24:14]OFD Sender: No OFD packet to send [17:24:19]OFD Sender: No OFD packet to send [17:24:24]OFD Sender: No OFD packet to send [17:24:29]OFD Sender: No OFD packet to send [17:24:34]OFD Sender: No OFD packet to send [17:24:39]OFD Sender: No OFD packet to send [17:24:44]OFD Sender: No OFD packet to send [17:24:49]OFD Sender: No OFD packet to send [17:24:54]OFD Sender: No OFD packet to send [17:24:59]OFD Sender: No OFD packet to send [17:24:59]accept exits with 9 [17:24:59]New connection [17:24:59]New thread 3066932580 created [17:24:59]Thread 3066789220 joined [17:24:59]Waiting for new connection... [17:24:59] Sock 9.Parse request [17:24:59]Sock 9.Check first char [17:24:59]Sock 9.First char is OK [17:24:59]request: POST /json_proto HTTP/1.0 [17:24:59]Method: POST [17:24:59]URL: /json_proto [17:24:59]Method is POST - this is cgi request [17:24:59]url: /json_proto [17:24:59]query_string will be loaded in cgi processing [17:24:59]execute_cgi json_proto POST (null) [17:24:59]execute_cgi path=json_proto method=POST [17:24:59]POST find Content-Length [17:24:59]Host: 172.17.38.133:8080 [17:24:59]Content-Length: 1196 [17:24:59]Content-Type: application/json [17:24:59] [17:24:59]POST finish read [17:24:59]Found Content-Length = 1196 [17:24:59]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)673631\u000A21.06.2024 17:02\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 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\u000A103799\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:24:59]execute_script... [17:24:59]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)673631\u000A21.06.2024 17:02\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 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\u000A103799\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:24:59]POST & json_proto [17:24:59]process_json_proto [17:24:59]json parsed OK: [17:24:59]protocol is kg_v1.0 [17:24:59]action value=print_text [17:24:59]process_action print_text [17:24:59]cmd_print_text [17:24:59]ExternCall_PrintAddStr [17:24:59]wPrintStart [17:24:59]Write to MH i2c: 01 00 00 8A 02 8C [17:24:59]Write i2c OK [17:24:59]MH_I2C_Read... [17:24:59]Read from MH i2c: 01 [17:24:59]MH_I2C_Read... [17:24:59]Read from MH i2c: 01 07 00 [17:24:59]MH_I2C_Read... [17:24:59]Read from MH i2c: 01 07 00 8A 02 00 00 00 00 00 FF 0F A1 [17:24:59]RasterBufferAndPrint [17:24:59]line *****ТОВАРНЫЙ ЧЕК***** [17:24:59]line АЗС 120 [17:24:59]line Партнер нефть [17:24:59]line 02508201610067 [17:24:59]line Кассир : Асанбаев Н. [17:24:59]line Счет N : (1)673631 [17:24:59]line 21.06.2024 17:02 [17:24:59]line ПРОДАЖА [17:24:59]line ТРК (МРК, ГНК): 41 [17:24:59]line Вид ГСМ : 2710124500 [17:24:59]line Аи-95-К-5 [17:24:59]line 27.070 x 73.90 [17:24:59]line ИТОГ: 2000.47 [17:24:59]line Тип оплаты: Талоны: Топливная Карта [17:24:59]line 103799 [17:24:59]line ______________________ [17:24:59]line (подпись) [17:24:59]written 0, free lines is 4095 [17:25:00]Write to MH i2c: 01 00 00 9E 02 A0 [17:25:00]Write i2c OK [17:25:00]MH_I2C_Read... [17:25:00]Read from MH i2c: 01 [17:25:00]MH_I2C_Read... [17:25:00]Read from MH i2c: 01 07 00 [17:25:00]MH_I2C_Read... [17:25:00]Read from MH i2c: 01 07 00 9E 02 00 00 00 00 00 11 0E C6 [17:25:00]RasterBufferAndPrint [17:25:00]line [17:25:00]line [17:25:00]line [17:25:00]line [17:25:00]line [17:25:00]written 0, free lines is 3602 [17:25:00]MH_Cut [17:25:00]Write to MH i2c: D1 01 00 A5 02 01 79 [17:25:00]Write i2c OK [17:25:00]MH_I2C_Read... [17:25:00]Read from MH i2c: D1 [17:25:00]MH_I2C_Read... [17:25:00]Read from MH i2c: D1 01 00 [17:25:00]MH_I2C_Read... [17:25:00]Read from MH i2c: D1 01 00 A5 02 00 78 [17:25:00]Write to MH i2c: 01 00 00 A6 02 A8 [17:25:00]Write i2c OK [17:25:00]MH_I2C_Read... [17:25:00]*** Cut start [17:25:00]*** Partial cut [17:25:00]*** CUTSNS_PIN = 1 [17:25:00]*** CUTSNS_PIN = 0 [17:25:00]*** Brake cut motor [17:25:01]Read from MH i2c: 01 [17:25:01]MH_I2C_Read... [17:25:01]*** Stop cut motor [17:25:01]*** Cut end [17:25:01]Read from MH i2c: 01 07 00 [17:25:01]MH_I2C_Read... [17:25:01]Read from MH i2c: 01 07 00 A6 02 00 00 00 00 00 FF 0F BD [17:25:01]process_action print_text done [17:25:01]requested_data is exist [17:25:01]produce_requested_data [17:25:01]requested_item fm.sn is exist - process it [17:25:01]wFMCommunicate request_size=4 [17:25:01]MH_SAM_APDU [17:25:01]CAPDU: 80 11 00 00 [17:25:01]Write to MH i2c: E2 08 00 A7 02 80 11 00 00 00 00 00 00 23 [17:25:01]Write i2c OK [17:25:01]MH_I2C_Read... [17:25:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:25:01]Read from MH i2c: E2 [17:25:01]MH_I2C_Read... [17:25:01]Read from MH i2c: E2 17 00 [17:25:01]MH_I2C_Read... [17:25:01]Read from MH i2c: E2 17 00 A7 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 76 [17:25:01]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:01]wFMCommunicate OK [17:25:01]requested_item fd.num is exist - process it [17:25:01]SAM_PROTO_GetFieldsCounters [17:25:01]wFMCommunicate request_size=4 [17:25:01]MH_SAM_APDU [17:25:01]CAPDU: 80 13 00 00 [17:25:01]Write to MH i2c: E2 08 00 A8 02 80 13 00 00 00 00 00 00 26 [17:25:01]Write i2c OK [17:25:01]MH_I2C_Read... [17:25:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:25:01]Read from MH i2c: E2 [17:25:01]MH_I2C_Read... [17:25:01]Read from MH i2c: E2 62 00 [17:25:01]MH_I2C_Read... [17:25:01]Read from MH i2c: E2 62 00 A8 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 96 01 00 0E 04 04 00 63 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 91 [17:25: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 FC 96 01 00 0E 04 04 00 63 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 [17:25:01]wFMCommunicate OK [17:25:01]SAM_PROTO_GetFieldsCounters done [17:25:01]requested_item shift.num is exist - process it [17:25:01]requested_item shift.opened is exist - process it [17:25:01]req_shift_opened [17:25:01]FM_GetShiftState [17:25:01]SAM_PROTO_GetShiftState [17:25:01]wFMCommunicate request_size=4 [17:25:01]MH_SAM_APDU [17:25:01]CAPDU: 80 13 01 00 [17:25:01]Write to MH i2c: E2 08 00 A9 02 80 13 01 00 00 00 00 00 28 [17:25:01]Write i2c OK [17:25:01]MH_I2C_Read... [17:25:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:25:01]Read from MH i2c: E2 [17:25:01]MH_I2C_Read... [17:25:01]Read from MH i2c: E2 0E 00 [17:25:01]MH_I2C_Read... [17:25:01]Read from MH i2c: E2 0E 00 A9 02 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 3B [17:25:01]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [17:25:01]wFMCommunicate OK [17:25:01]SAM_PROTO_GetShiftState done [17:25:01]FM_GetShiftState done [17:25:01]req_shift_opened done [17:25:01]requested_item shift.open_date is exist - process it [17:25:01]req_shift_open_date [17:25:01]req_shift_open_date done [17:25:01]produce_requested_data done [17:25:01]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104188,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [17:25:01]process_action_free print_text [17:25:01]json_value_free [17:25:01]json_value_free done [17:25:01]process_json_proto returns [17:25:01]Send response to host [17:25:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104188,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [17:25:01]free response buf [17:25:01]execute_script done [17:25:01]execute_script returns [17:25:01]free content buf [17:25:01]Sock 9.Close socket [17:25:01]Sock 9.Thread stoped [17:25:04]OFD Sender: No OFD packet to send [17:25:09]OFD Sender: No OFD packet to send [17:25:14]OFD Sender: No OFD packet to send [17:25:19]OFD Sender: No OFD packet to send [17:25:24]OFD Sender: No OFD packet to send [17:25:29]OFD Sender: No OFD packet to send [17:25:34]OFD Sender: No OFD packet to send [17:25:39]OFD Sender: No OFD packet to send [17:25:44]OFD Sender: No OFD packet to send [17:25:49]OFD Sender: No OFD packet to send [17:25:54]OFD Sender: No OFD packet to send [17:25:59]OFD Sender: No OFD packet to send [17:26:04]OFD Sender: No OFD packet to send [17:26:09]OFD Sender: No OFD packet to send [17:26:14]OFD Sender: No OFD packet to send [17:26:19]OFD Sender: No OFD packet to send [17:26:24]OFD Sender: No OFD packet to send [17:26:29]OFD Sender: No OFD packet to send [17:26:32]accept exits with 7 [17:26:32]New connection [17:26:32]New thread 3066789220 created [17:26:32]Thread 3066932580 joined [17:26:32]Waiting for new connection... [17:26:32] Sock 7.Parse request [17:26:32]Sock 7.Check first char [17:26:32]Sock 7.First char is OK [17:26:32]request: POST /json_proto HTTP/1.0 [17:26:32]Method: POST [17:26:32]URL: /json_proto [17:26:32]Method is POST - this is cgi request [17:26:32]url: /json_proto [17:26:32]query_string will be loaded in cgi processing [17:26:32]execute_cgi json_proto POST (null) [17:26:32]execute_cgi path=json_proto method=POST [17:26:32]POST find Content-Length [17:26:32]Host: 172.17.38.133:8080 [17:26:32]Content-Length: 1196 [17:26:32]Content-Type: application/json [17:26:32] [17:26:32]POST finish read [17:26:32]Found Content-Length = 1196 [17:26:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 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)673632\u000A21.06.2024 17:03\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\u000A103797\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:26:32]execute_script... [17:26:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 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)673632\u000A21.06.2024 17:03\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\u000A103797\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:26:32]POST & json_proto [17:26:32]process_json_proto [17:26:32]json parsed OK: [17:26:32]protocol is kg_v1.0 [17:26:32]action value=print_text [17:26:32]process_action print_text [17:26:32]cmd_print_text [17:26:32]ExternCall_PrintAddStr [17:26:32]wPrintStart [17:26:32]Write to MH i2c: 01 00 00 AA 02 AC [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 AA 02 00 00 00 00 00 FF 0F C1 [17:26:32]RasterBufferAndPrint [17:26:32]line *****ТОВАРНЫЙ ЧЕК***** [17:26:32]line АЗС 120 [17:26:32]line Партнер нефть [17:26:32]line 02508201610067 [17:26:32]line Кассир : Асанбаев Н. [17:26:32]line Счет N : (1)673632 [17:26:32]line 21.06.2024 17:03 [17:26:32]line ПРОДАЖА [17:26:32]line ТРК (МРК, ГНК): 31 [17:26:32]line Вид ГСМ : 2710124500 [17:26:32]line Аи-95-К-5 [17:26:32]line 27.070 x 73.90 [17:26:32]line ИТОГ: 2000.47 [17:26:32]line Тип оплаты: Талоны: Топливная Карта [17:26:32]line 103797 [17:26:32]line ______________________ [17:26:32]line (подпись) [17:26:32]written 0, free lines is 4095 [17:26:32]Write to MH i2c: 01 00 00 BE 02 C0 [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 BE 02 00 00 00 00 00 11 0E E6 [17:26:32]RasterBufferAndPrint [17:26:32]line [17:26:32]line [17:26:32]line [17:26:32]line [17:26:32]line [17:26:32]written 0, free lines is 3603 [17:26:32]MH_Cut [17:26:32]Write to MH i2c: D1 01 00 C5 02 01 99 [17:26:32]Write i2c OK [17:26:32]MH_I2C_Read... [17:26:32]Read from MH i2c: D1 [17:26:32]MH_I2C_Read... [17:26:32]Read from MH i2c: D1 01 00 [17:26:32]MH_I2C_Read... [17:26:32]Read from MH i2c: D1 01 00 C5 02 00 98 [17:26:32]Write to MH i2c: 01 00 00 C6 02 C8 [17:26:32]Write i2c OK [17:26:32]MH_I2C_Read... [17:26:33]*** Cut start [17:26:33]*** Partial cut [17:26:33]*** CUTSNS_PIN = 1 [17:26:33]*** CUTSNS_PIN = 0 [17:26:33]*** Brake cut motor [17:26:33]Read from MH i2c: 01 [17:26:33]MH_I2C_Read... [17:26:33]*** Stop cut motor [17:26:33]*** Cut end [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 C6 02 00 00 00 00 00 FF 0F DD [17:26:33]process_action print_text done [17:26:33]requested_data is exist [17:26:33]produce_requested_data [17:26:33]requested_item fm.sn is exist - process it [17:26:33]wFMCommunicate request_size=4 [17:26:33]MH_SAM_APDU [17:26:33]CAPDU: 80 11 00 00 [17:26:33]Write to MH i2c: E2 08 00 C7 02 80 11 00 00 00 00 00 00 43 [17:26:33]Write i2c OK [17:26:33]MH_I2C_Read... [17:26:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:26:33]Read from MH i2c: E2 [17:26:33]MH_I2C_Read... [17:26:33]Read from MH i2c: E2 17 00 [17:26:33]MH_I2C_Read... [17:26:33]Read from MH i2c: E2 17 00 C7 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 96 [17:26:33]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:33]wFMCommunicate OK [17:26:33]requested_item fd.num is exist - process it [17:26:33]SAM_PROTO_GetFieldsCounters [17:26:33]wFMCommunicate request_size=4 [17:26:33]MH_SAM_APDU [17:26:33]CAPDU: 80 13 00 00 [17:26:33]Write to MH i2c: E2 08 00 C8 02 80 13 00 00 00 00 00 00 46 [17:26:33]Write i2c OK [17:26:33]MH_I2C_Read... [17:26:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:26:34]Read from MH i2c: E2 [17:26:34]MH_I2C_Read... [17:26:34]Read from MH i2c: E2 62 00 [17:26:34]MH_I2C_Read... [17:26:34]Read from MH i2c: E2 62 00 C8 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 FC 96 01 00 0E 04 04 00 63 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 B1 [17:26:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 96 01 00 0E 04 04 00 63 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 [17:26:34]wFMCommunicate OK [17:26:34]SAM_PROTO_GetFieldsCounters done [17:26:34]requested_item shift.num is exist - process it [17:26:34]requested_item shift.opened is exist - process it [17:26:34]req_shift_opened [17:26:34]FM_GetShiftState [17:26:34]SAM_PROTO_GetShiftState [17:26:34]wFMCommunicate request_size=4 [17:26:34]MH_SAM_APDU [17:26:34]CAPDU: 80 13 01 00 [17:26:34]Write to MH i2c: E2 08 00 C9 02 80 13 01 00 00 00 00 00 48 [17:26:34]Write i2c OK [17:26:34]MH_I2C_Read... [17:26:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:26:34]Read from MH i2c: E2 [17:26:34]MH_I2C_Read... [17:26:34]Read from MH i2c: E2 0E 00 [17:26:34]MH_I2C_Read... [17:26:34]Read from MH i2c: E2 0E 00 C9 02 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 5B [17:26:34]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [17:26:34]wFMCommunicate OK [17:26:34]SAM_PROTO_GetShiftState done [17:26:34]FM_GetShiftState done [17:26:34]req_shift_opened done [17:26:34]requested_item shift.open_date is exist - process it [17:26:34]req_shift_open_date [17:26:34]req_shift_open_date done [17:26:34]produce_requested_data done [17:26:34]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104188,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [17:26:34]process_action_free print_text [17:26:34]json_value_free [17:26:34]json_value_free done [17:26:34]process_json_proto returns [17:26:34]Send response to host [17:26:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104188,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [17:26:34]free response buf [17:26:34]execute_script done [17:26:34]execute_script returns [17:26:34]free content buf [17:26:34]Sock 7.Close socket [17:26:34]Sock 7.Thread stoped [17:26:34]OFD Sender: No OFD packet to send [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:59]OFD Sender: No OFD packet to send [17:28:04]OFD Sender: No OFD packet to send [17:28:09]OFD Sender: No OFD packet to send [17:28:14]OFD Sender: No OFD packet to send [17:28:19]OFD Sender: No OFD packet to send [17:28:24]OFD Sender: No OFD packet to send [17:28:29]OFD Sender: No OFD packet to send [17:28:34]OFD Sender: No OFD packet to send [17:28:39]OFD Sender: No OFD packet to send [17:28:44]OFD Sender: No OFD packet to send [17:28:49]OFD Sender: No OFD packet to send [17:28:54]OFD Sender: No OFD packet to send [17:28:59]OFD Sender: No OFD packet to send [17:29:04]OFD Sender: No OFD packet to send [17:29:09]OFD Sender: No OFD packet to send [17:29:14]OFD Sender: No OFD packet to send [17:29:19]OFD Sender: No OFD packet to send [17:29:24]OFD Sender: No OFD packet to send [17:29:29]OFD Sender: No OFD packet to send [17:29:34]OFD Sender: No OFD packet to send [17:29:39]OFD Sender: No OFD packet to send [17:29:44]OFD Sender: No OFD packet to send [17:29:49]OFD Sender: No OFD packet to send [17:29:54]OFD Sender: No OFD packet to send [17:29:59]OFD Sender: No OFD packet to send [17:30:04]OFD Sender: No OFD packet to send [17:30:09]OFD Sender: No OFD packet to send [17:30:14]OFD Sender: No OFD packet to send [17:30:19]OFD Sender: No OFD packet to send [17:30:24]accept exits with 9 [17:30:24]New connection [17:30:24]New thread 3066932580 created [17:30:24]Thread 3066789220 joined [17:30:24]Waiting for new connection... [17:30:24] Sock 9.Parse request [17:30:24]Sock 9.Check first char [17:30:24]Sock 9.First char is OK [17:30:24]request: POST /json_proto HTTP/1.0 [17:30:24]Method: POST [17:30:24]URL: /json_proto [17:30:24]Method is POST - this is cgi request [17:30:24]url: /json_proto [17:30:24]query_string will be loaded in cgi processing [17:30:24]execute_cgi json_proto POST (null) [17:30:24]execute_cgi path=json_proto method=POST [17:30:24]POST find Content-Length [17:30:24]Host: 172.17.38.133:8080 [17:30:24]Content-Length: 677 [17:30:24]Content-Type: application/json [17:30:24] [17:30:24]POST finish read [17:30:24]Found Content-Length = 677 [17:30:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673633", "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.330, "sum" : 420.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 420.00, "total" : 420.00, "payments": [ { "type": 0, "sum" : 420.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:30:24]execute_script... [17: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)673633", "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.330, "sum" : 420.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 420.00, "total" : 420.00, "payments": [ { "type": 0, "sum" : 420.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:30:24]POST & json_proto [17:30:24]process_json_proto [17:30:24]json parsed OK: [17:30:24]protocol is kg_v1.0 [17:30:24]action value=close_receipt [17:30:24]process_action close_receipt [17:30:24]cmd_close_receipt [17:30:24]MH_GetDate [17:30:24]Write to MH i2c: F0 00 00 CA 02 BB [17:30:24]Write i2c OK [17:30:24]MH_I2C_Read... [17:30:24]Read from MH i2c: F0 [17:30:24]MH_I2C_Read... [17:30:24]Read from MH i2c: F0 09 00 [17:30:24]MH_I2C_Read... [17:30:24]Read from MH i2c: F0 09 00 CA 02 00 B1 B8 75 66 BD 8F 7C 64 34 [17:30:24]GetLastDocTimeStamp 1718990472 [17:30:24]current date 1718991025 [17:30:24]FM_GetShiftState [17:30:24]SAM_PROTO_GetShiftState [17:30:24]wFMCommunicate request_size=4 [17:30:24]MH_SAM_APDU [17:30:24]CAPDU: 80 13 01 00 [17:30:24]Write to MH i2c: E2 08 00 CB 02 80 13 01 00 00 00 00 00 4A [17:30:24]Write i2c OK [17:30:24]MH_I2C_Read... [17:30:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:30:24]Read from MH i2c: E2 [17:30:24]MH_I2C_Read... [17:30:24]Read from MH i2c: E2 0E 00 [17:30:24]MH_I2C_Read... [17:30:24]Read from MH i2c: E2 0E 00 CB 02 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 5D [17:30:24]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [17:30:24]wFMCommunicate OK [17:30:24]SAM_PROTO_GetShiftState done [17:30:24]FM_GetShiftState done [17:30:24]opened in 1718929509 [17:30:24]opened+sec_in_day 1719015909 [17:30:24]quantity*price = 42031 [17:30:24]sum+1 = 42032 [17:30:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 420.00 Внесено: 420.00 СДАЧА: 0.00 НСП 1% : 3.72 НДС 12% : 44.63 Наличными: 420.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 112 21.06.2024 17:30 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104189 ФПД: 232244647975716 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T173025&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104189&fm=232244647975716&tin=02508201610067®Number=0000000000092785&sum=42000 [17:30:25]StoreToDocumentArchive [17:30:25]shift 355 fd 104189 [17:30:25]save to /storage/0355/doc_00104189 [17:30:25]save last doc name /storage/0355/doc_00104189 to /storage/kkm_last_doc_name [17:30:25]save OK [17:30:25]Clear old archive folders... [17:30:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:30:25]tlvbuf is 010B0140 [17:30:25]SAM_PROTO_ClearQueue [17:30:25]wFMCommunicate request_size=4 [17:30:25]MH_SAM_APDU [17:30:25]CAPDU: 80 09 00 00 [17:30:25]Write to MH i2c: E2 08 00 D8 02 80 09 00 00 00 00 00 00 4C [17:30:25]Write i2c OK [17:30:25]MH_I2C_Read... [17:30:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:30:25]Read from MH i2c: E2 [17:30:25]MH_I2C_Read... [17:30:25]Read from MH i2c: E2 03 00 [17:30:25]MH_I2C_Read... [17:30:25]Read from MH i2c: E2 03 00 D8 02 00 90 00 4E [17:30:25]RAPDU: 90 00 [17:30:25]wFMCommunicate OK [17:30:25]SAM_PROTO_ClearQueue done [17:30:25]KKMCreateOFDPacket [17:30:25]OFDProtocolAddRootSTLVToBuf [17:30:25]FM_MakeSignedData [17:30:25]FM_MakeSignedData [17:30:25]SAM_PROTO_SignData [17:30:25]wFMCommunicate request_size=4 [17:30:25]MH_SAM_APDU [17:30:25]CAPDU: 80 0D 01 02 [17:30:25]Write to MH i2c: E2 08 00 D9 02 80 0D 01 02 00 00 00 00 54 [17:30:25]Write i2c OK [17:30:25]MH_I2C_Read... [17:30:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:30:25]Read from MH i2c: E2 [17:30:25]MH_I2C_Read... [17:30:25]Read from MH i2c: E2 03 00 [17:30:25]MH_I2C_Read... [17:30:25]Read from MH i2c: E2 03 00 D9 02 00 90 00 4F [17:30:25]RAPDU: 90 00 [17:30:25]wFMCommunicate OK [17:30:25]wFMCommunicate request_size=255 [17:30:25]MH_SAM_APDU [17: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 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 18 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 2F A4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 A4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6F 11 00 00 00 00 07 04 06 00 10 A4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 B1 B8 75 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 FD 96 01 00 35 04 06 00 D3 [17:30:25]Write to MH i2c: E2 02 01 DA 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 BA 18 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 2F A4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 A4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6F 11 00 00 00 00 07 04 06 00 10 A4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 B1 B8 75 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 FD 96 01 00 35 04 06 00 D3 00 00 EE [17:30:25]Write i2c OK [17:30:25]MH_I2C_Read... [17:30:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:30:26]Read from MH i2c: E2 [17:30:26]MH_I2C_Read... [17:30:26]Read from MH i2c: E2 03 00 [17:30:26]MH_I2C_Read... [17:30:26]Read from MH i2c: E2 03 00 DA 02 00 90 00 50 [17:30:26]RAPDU: 90 00 [17:30:26]wFMCommunicate OK [17:30:26]wFMCommunicate request_size=10 [17:30:26]MH_SAM_APDU [17:30:26]CAPDU: 80 0D 02 02 05 39 AB BE 5B 24 [17:30:26]Write to MH i2c: E2 0D 00 DB 02 80 0D 02 02 05 00 39 AB BE 5B 24 00 00 82 [17:30:26]Write i2c OK [17:30:26]MH_I2C_Read... [17:30:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:30:26]Read from MH i2c: E2 [17:30:26]MH_I2C_Read... [17:30:26]Read from MH i2c: E2 03 00 [17:30:26]MH_I2C_Read... [17:30:26]Read from MH i2c: E2 03 00 DB 02 00 90 00 51 [17:30:26]RAPDU: 90 00 [17:30:26]wFMCommunicate OK [17:30:26]wFMCommunicate request_size=4 [17:30:26]MH_SAM_APDU [17:30:26]CAPDU: 80 0D 03 02 [17:30:26]Write to MH i2c: E2 08 00 DC 02 80 0D 03 02 00 00 00 00 59 [17:30:26]Write i2c OK [17:30:26]MH_I2C_Read... [17:30:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:30:26]Read from MH i2c: E2 [17:30:26]MH_I2C_Read... [17:30:26]Read from MH i2c: E2 0B 00 [17:30:26]MH_I2C_Read... [17:30:26]Read from MH i2c: E2 0B 00 DC 02 00 97 7E 83 A2 0D 52 C8 E0 90 00 9B [17:30:26]RAPDU: 97 7E 83 A2 0D 52 C8 E0 90 00 [17:30:26]wFMCommunicate OK [17:30:26]SAM_PROTO_SignData done [17:30:26]FM_MakeSignedData done [17:30:26]CreateOFDProtocolMessage [17:30:26]wFMCommunicate request_size=4 [17:30:26]MH_SAM_APDU [17:30:26]CAPDU: 80 11 00 00 [17:30:26]Write to MH i2c: E2 08 00 DD 02 80 11 00 00 00 00 00 00 59 [17:30:26]Write i2c OK [17:30:26]MH_I2C_Read... [17:30:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:30:26]Read from MH i2c: E2 [17:30:26]MH_I2C_Read... [17:30:26]Read from MH i2c: E2 17 00 [17:30:26]MH_I2C_Read... [17:30:26]Read from MH i2c: E2 17 00 DD 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 AC [17:30:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [17:30:26]wFMCommunicate OK [17:30:26]CreateOFDProtocolMessage done [17:30:26]OFDSenderStorePacket 104189 [17:30:26]StoreOFDPacket docnum=104189 [17:30: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 53 74 07 01 19 1E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BA 18 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 2F A4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 A4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6F 11 00 00 00 00 07 04 06 00 10 A4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 B1 B8 75 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 FD 96 01 00 35 04 06 00 D3 39 AB BE 5B 24 97 7E 83 A2 0D 52 C8 E0 [17:30:26]CheckFolder [17:30:26]dirname=/storage/ofd_packets [17:30:26]CheckFolder done [17:30:26]ProducePacketName [17:30:26]name=ofd_packets/00104189 [17:30:26]NVStorageSaveData ofd_packets/00104189 [17:30:26]File name is /storage/ofd_packets/00104189 [17:30:26]Write 301 bytes [17:30:26]NVStorageSaveData done [17:30:26]OFDSenderStorePacket done [17:30:26]KKMCreateOFDPacket done [17:30:26]NVStorageSaveData kkm_last_timestamp [17:30:26]File name is /storage/kkm_last_timestamp [17:30:26]Write 4 bytes [17:30:26]NVStorageSaveData done [17:30:26]ExternCall_PrintAddStr [17:30:26]wPrintStart [17:30:26]Write to MH i2c: 01 00 00 DE 02 E0 [17:30:26]OFD Sender: Processing packet 104189 [packets to send 17, broken 16] [17:30:26]ProducePacketName [17:30:26]name=ofd_packets/00104189 [17:30:26]OFD Sender: To server: pG, [17:30:26]CommunicateWithHost lk.salyk.kg:30040 [17:30:26]ConnectInit lk.salyk.kg [17:30:26]Write i2c OK [17:30:26]MH_I2C_Read... [17:30:26]Read from MH i2c: 01 [17:30:26]MH_I2C_Read... [17:30:26]Read from MH i2c: 01 07 00 [17:30:26]MH_I2C_Read... [17:30:26]Read from MH i2c: 01 07 00 DE 02 00 00 00 00 00 FF 0F F5 [17:30:26]RasterBufferAndPrint [17:30:26]line Счет N : (1)673633 [17:30:26]line ИНН: 02508201610067 [17:30:26]line Контрольно-Кассовый Чек [17:30:26]line ПРОДАЖА [17:30:26]line ТРК (МРК, ГНК) : 32 [17:30:26]line Товар: 2710124130 [17:30:26]line Аи-92-К-5 [17:30:26]line 6.330 * 66.40 [17:30:26]line = 420.31 [17:30:26]line НДС 12% НСП 1% [17:30:26]line > о реализуемом товаре [17:30:26]line ОКРУГЛЕНИЕ: -0.31 [17:30:26]line ИТОГО: 420.00 [17:30:26]line Внесено: 420.00 [17:30:26]line СДАЧА: 0.00 [17:30:26]line НСП 1% : 3.72 [17:30:26]line НДС 12% : 44.63 [17:30:26]line Наличными: 420.00 [17:30:26]line Безнал.: 0.00 [17:30:26]line Место: АЗС № 120 "Партнер Нефть" [17:30:26]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [17:30:26]line СНО: Общий режим [17:30:26]line Чек 112 21.06.2024 17:30 [17:30:26]line Смена: 355 ФФД: 1.0 [17:30:26]line ЗНМ: 0300000164 [17:30:26]line РНМ: 0000000000092785 [17:30:26]line Версия ККМ: 001 [17:30:26]line ФМ: 0000000000875093 [17:30:26]line ФД: 104189 [17:30:26]line ФПД: 232244647975716 [17:30:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T173025&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104189&fm=232244647975716&tin=02508201610067®Number=0000000000092785&sum=42000 [17:30:26]Connected sock=7 [17: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 53 74 07 01 19 1E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BA 18 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 2F A4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 A4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6F 11 00 00 00 00 07 04 06 00 10 A4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 B1 B8 75 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 FD 96 01 00 35 04 06 00 D3 39 AB BE 5B 24 97 7E 83 A2 0D 52 C8 E0 [17:30:26]written 0, free lines is 4095 [17: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 2F C7 47 00 0D 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 FD 96 01 00 F4 03 04 00 33 5F 75 66 B6 04 01 00 00 94 C6 FD 11 18 4B CC 1A [17:30:26]CommunicateWithHost err = 0 [17:30:26]CheckOFDResponse [17:30:26]1017 (14) - 77093643461234 [17:30:26]1041 (16) - 0000000000875093 [17:30:26]1040 (4) - 104189 [17:30:26]1012 (4) - 21.06.2024 11:08 [17:30:26]1206 (1) - 0 [17:30:26]OFD Sender: Remove packet 104189 [17:30:26]ProducePacketName [17:30:26]name=ofd_packets/00104189 [17:30:26]NVStorageDeleteData [17:30:27]Write to MH i2c: 01 00 00 09 03 0C [17:30:27]Write i2c OK [17:30:27]MH_I2C_Read... [17:30:27]Read from MH i2c: 01 [17:30:27]MH_I2C_Read... [17:30:27]Read from MH i2c: 01 07 00 [17:30:27]MH_I2C_Read... [17:30:27]Read from MH i2c: 01 07 00 09 03 00 00 00 00 00 DE 0C FD [17:30:27]RasterBufferAndPrint [17:30:27]line [17:30:27]line [17:30:27]line [17:30:27]line [17:30:27]line [17:30:27]written 0, free lines is 3300 [17:30:27]MH_Cut [17:30:27]Write to MH i2c: D1 01 00 10 03 01 E5 [17:30:27]Write i2c OK [17:30:27]MH_I2C_Read... [17:30:27]Read from MH i2c: D1 [17:30:27]MH_I2C_Read... [17:30:27]Read from MH i2c: D1 01 00 [17:30:27]MH_I2C_Read... [17:30:27]Read from MH i2c: D1 01 00 10 03 00 E4 [17:30:27]Write to MH i2c: 01 00 00 11 03 14 [17:30:27]Write i2c OK [17:30:27]MH_I2C_Read... [17:30:27]OFD Sender: No OFD packet to send [17:30:27]*** Cut start [17:30:27]*** Partial cut [17:30:27]*** CUTSNS_PIN = 1 [17:30:27]*** CUTSNS_PIN = 0 [17:30:28]*** Brake cut motor [17:30:28]Read from MH i2c: 01 [17:30:28]MH_I2C_Read... [17:30:28]*** Stop cut motor [17:30:28]*** Cut end [17:30:28]Read from MH i2c: 01 07 00 [17:30:28]MH_I2C_Read... [17:30:28]Read from MH i2c: 01 07 00 11 03 00 00 00 00 00 FF 0F 29 [17:30:28]process_action close_receipt done [17:30:28]requested_data is exist [17:30:28]produce_requested_data [17:30:28]requested_item fm.sn is exist - process it [17:30:28]wFMCommunicate request_size=4 [17:30:28]MH_SAM_APDU [17:30:28]CAPDU: 80 11 00 00 [17:30:28]Write to MH i2c: E2 08 00 12 03 80 11 00 00 00 00 00 00 8F [17:30:28]Write i2c OK [17:30:28]MH_I2C_Read... [17:30:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:30:28]Read from MH i2c: E2 [17:30:28]MH_I2C_Read... [17:30:28]Read from MH i2c: E2 17 00 [17:30:28]MH_I2C_Read... [17:30:28]Read from MH i2c: E2 17 00 12 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 E2 [17:30:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [17:30:28]wFMCommunicate OK [17:30:28]requested_item fd.num is exist - process it [17:30:28]SAM_PROTO_GetFieldsCounters [17:30:28]wFMCommunicate request_size=4 [17:30:28]MH_SAM_APDU [17:30:28]CAPDU: 80 13 00 00 [17:30:28]Write to MH i2c: E2 08 00 13 03 80 13 00 00 00 00 00 00 92 [17:30:28]Write i2c OK [17:30:28]MH_I2C_Read... [17:30:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:30:28]Read from MH i2c: E2 [17:30:28]MH_I2C_Read... [17:30:28]Read from MH i2c: E2 62 00 [17:30:28]MH_I2C_Read... [17:30:28]Read from MH i2c: E2 62 00 13 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 FD 96 01 00 0E 04 04 00 63 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 01 [17: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 FD 96 01 00 0E 04 04 00 63 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 [17:30:28]wFMCommunicate OK [17:30:28]SAM_PROTO_GetFieldsCounters done [17:30:28]requested_item shift.num is exist - process it [17:30:28]requested_item shift.opened is exist - process it [17:30:28]req_shift_opened [17:30:28]FM_GetShiftState [17:30:28]SAM_PROTO_GetShiftState [17:30:28]wFMCommunicate request_size=4 [17:30:28]MH_SAM_APDU [17:30:28]CAPDU: 80 13 01 00 [17:30:28]Write to MH i2c: E2 08 00 14 03 80 13 01 00 00 00 00 00 94 [17:30:28]Write i2c OK [17:30:28]MH_I2C_Read... [17:30:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:30:28]Read from MH i2c: E2 [17:30:28]MH_I2C_Read... [17:30:28]Read from MH i2c: E2 0E 00 [17:30:28]MH_I2C_Read... [17:30:28]Read from MH i2c: E2 0E 00 14 03 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 A7 [17:30:28]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [17:30:28]wFMCommunicate OK [17:30:28]SAM_PROTO_GetShiftState done [17:30:28]FM_GetShiftState done [17:30:28]req_shift_opened done [17:30:28]requested_item shift.open_date is exist - process it [17:30:28]req_shift_open_date [17:30:28]req_shift_open_date done [17:30:28]produce_requested_data done [17:30:28]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104189,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [17:30:28]process_action_free close_receipt [17:30:28]json_value_free [17:30:28]json_value_free done [17:30:28]process_json_proto returns [17:30:28]Send response to host [17:30:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104189,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [17:30:28]free response buf [17:30:28]execute_script done [17:30:28]execute_script returns [17:30:28]free content buf [17:30:28]Sock 9.Close socket [17:30:28]Sock 9.Thread stoped [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:10]accept exits with 10 [17:31:10]New connection [17:31:10]New thread 3066789220 created [17:31:10]Thread 3066932580 joined [17:31:10]Waiting for new connection... [17:31:10] Sock 10.Parse request [17:31:10]Sock 10.Check first char [17:31:10]Sock 10.First char is OK [17:31:10]request: POST /json_proto HTTP/1.0 [17:31:10]Method: POST [17:31:10]URL: /json_proto [17:31:10]Method is POST - this is cgi request [17:31:10]url: /json_proto [17:31:10]query_string will be loaded in cgi processing [17:31:10]execute_cgi json_proto POST (null) [17:31:10]execute_cgi path=json_proto method=POST [17:31:10]POST find Content-Length [17:31:10]Host: 172.17.38.133:8080 [17:31:10]Content-Length: 678 [17:31:10]Content-Type: application/json [17:31:10] [17:31:10]POST finish read [17:31:10]Found Content-Length = 678 [17:31:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673635", "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" ] } } [17:31:10]execute_script... [17:31: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)673635", "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" ] } } [17:31:10]POST & json_proto [17:31:10]process_json_proto [17:31:10]json parsed OK: [17:31:10]protocol is kg_v1.0 [17:31:10]action value=close_receipt [17:31:10]process_action close_receipt [17:31:10]cmd_close_receipt [17:31:10]MH_GetDate [17:31:10]Write to MH i2c: F0 00 00 15 03 07 [17:31:10]Write i2c OK [17:31:10]MH_I2C_Read... [17:31:10]Read from MH i2c: F0 [17:31:10]MH_I2C_Read... [17:31:10]Read from MH i2c: F0 09 00 [17:31:10]MH_I2C_Read... [17:31:10]Read from MH i2c: F0 09 00 15 03 00 DE B8 75 66 BD 8F 7C 64 AD [17:31:10]GetLastDocTimeStamp 1718991025 [17:31:10]current date 1718991070 [17:31:10]FM_GetShiftState [17:31:10]SAM_PROTO_GetShiftState [17:31:10]wFMCommunicate request_size=4 [17:31:10]MH_SAM_APDU [17:31:10]CAPDU: 80 13 01 00 [17:31:10]Write to MH i2c: E2 08 00 16 03 80 13 01 00 00 00 00 00 96 [17:31:10]Write i2c OK [17:31:10]MH_I2C_Read... [17:31:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:31:10]Read from MH i2c: E2 [17:31:10]MH_I2C_Read... [17:31:10]Read from MH i2c: E2 0E 00 [17:31:10]MH_I2C_Read... [17:31:10]Read from MH i2c: E2 0E 00 16 03 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 A9 [17:31:10]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [17:31:10]wFMCommunicate OK [17:31:10]SAM_PROTO_GetShiftState done [17:31:10]FM_GetShiftState done [17:31:10]opened in 1718929509 [17:31:10]opened+sec_in_day 1719015909 [17:31:10]quantity*price = 80012 [17:31:10]sum+1 = 80013 [17:31:10]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 СНО: Общий режим Чек 113 21.06.2024 17:31 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104190 ФПД: 115959438829052 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T173110&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104190&fm=115959438829052&tin=02508201610067®Number=0000000000092785&sum=80000 [17:31:11]StoreToDocumentArchive [17:31:11]shift 355 fd 104190 [17:31:11]save to /storage/0355/doc_00104190 [17:31:11]save last doc name /storage/0355/doc_00104190 to /storage/kkm_last_doc_name [17:31:11]save OK [17:31:11]Clear old archive folders... [17:31:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:31:11]tlvbuf is 010AFF80 [17:31:11]SAM_PROTO_ClearQueue [17:31:11]wFMCommunicate request_size=4 [17:31:11]MH_SAM_APDU [17:31:11]CAPDU: 80 09 00 00 [17:31:11]Write to MH i2c: E2 08 00 23 03 80 09 00 00 00 00 00 00 98 [17:31:11]Write i2c OK [17:31:11]MH_I2C_Read... [17:31:11]Read from MH i2c: E2 [17:31:11]MH_I2C_Read... [17:31:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:31:11]Read from MH i2c: E2 03 00 [17:31:11]MH_I2C_Read... [17:31:11]Read from MH i2c: E2 03 00 23 03 00 90 00 9A [17:31:11]RAPDU: 90 00 [17:31:11]wFMCommunicate OK [17:31:11]SAM_PROTO_ClearQueue done [17:31:11]KKMCreateOFDPacket [17:31:11]OFDProtocolAddRootSTLVToBuf [17:31:11]FM_MakeSignedData [17:31:11]FM_MakeSignedData [17:31:11]SAM_PROTO_SignData [17:31:11]wFMCommunicate request_size=4 [17:31:11]MH_SAM_APDU [17:31:11]CAPDU: 80 0D 01 02 [17:31:11]Write to MH i2c: E2 08 00 24 03 80 0D 01 02 00 00 00 00 A0 [17:31:11]Write i2c OK [17:31:11]MH_I2C_Read... [17:31:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:31:11]Read from MH i2c: E2 [17:31:11]MH_I2C_Read... [17:31:11]Read from MH i2c: E2 03 00 [17:31:11]MH_I2C_Read... [17:31:11]Read from MH i2c: E2 03 00 24 03 00 90 00 9B [17:31:11]RAPDU: 90 00 [17:31:11]wFMCommunicate OK [17:31:11]wFMCommunicate request_size=255 [17:31:11]MH_SAM_APDU [17:31: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 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 71 00 00 00 F4 03 04 00 DE B8 75 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 FE 96 01 00 35 04 06 00 69 [17:31:11]Write to MH i2c: E2 02 01 25 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 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 71 00 00 00 F4 03 04 00 DE B8 75 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 FE 96 01 00 35 04 06 00 69 00 00 8D [17:31:11]Write i2c OK [17:31:11]MH_I2C_Read... [17:31:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:31:11]Read from MH i2c: E2 [17:31:11]MH_I2C_Read... [17:31:11]Read from MH i2c: E2 03 00 [17:31:11]MH_I2C_Read... [17:31:11]Read from MH i2c: E2 03 00 25 03 00 90 00 9C [17:31:11]RAPDU: 90 00 [17:31:11]wFMCommunicate OK [17:31:11]wFMCommunicate request_size=10 [17:31:11]MH_SAM_APDU [17:31:11]CAPDU: 80 0D 02 02 05 76 E9 28 E5 FC [17:31:11]Write to MH i2c: E2 0D 00 26 03 80 0D 02 02 05 00 76 E9 28 E5 FC 00 00 15 [17:31:11]Write i2c OK [17:31:11]MH_I2C_Read... [17:31:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:31:11]Read from MH i2c: E2 [17:31:11]MH_I2C_Read... [17:31:11]Read from MH i2c: E2 03 00 [17:31:11]MH_I2C_Read... [17:31:11]Read from MH i2c: E2 03 00 26 03 00 90 00 9D [17:31:11]RAPDU: 90 00 [17:31:11]wFMCommunicate OK [17:31:11]wFMCommunicate request_size=4 [17:31:11]MH_SAM_APDU [17:31:11]CAPDU: 80 0D 03 02 [17:31:11]Write to MH i2c: E2 08 00 27 03 80 0D 03 02 00 00 00 00 A5 [17:31:11]Write i2c OK [17:31:11]MH_I2C_Read... [17:31:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:31:11]Read from MH i2c: E2 [17:31:11]MH_I2C_Read... [17:31:11]Read from MH i2c: E2 0B 00 [17:31:11]MH_I2C_Read... [17:31:11]Read from MH i2c: E2 0B 00 27 03 00 95 FB 20 10 00 D8 CA 25 90 00 2D [17:31:11]RAPDU: 95 FB 20 10 00 D8 CA 25 90 00 [17:31:11]wFMCommunicate OK [17:31:11]SAM_PROTO_SignData done [17:31:11]FM_MakeSignedData done [17:31:11]CreateOFDProtocolMessage [17:31:11]wFMCommunicate request_size=4 [17:31:11]MH_SAM_APDU [17:31:11]CAPDU: 80 11 00 00 [17:31:11]Write to MH i2c: E2 08 00 28 03 80 11 00 00 00 00 00 00 A5 [17:31:11]Write i2c OK [17:31:11]MH_I2C_Read... [17:31:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:31:11]Read from MH i2c: E2 [17:31:11]MH_I2C_Read... [17:31:11]Read from MH i2c: E2 17 00 [17:31:11]MH_I2C_Read... [17:31:11]Read from MH i2c: E2 17 00 28 03 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:31:11]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:11]wFMCommunicate OK [17:31:11]CreateOFDProtocolMessage done [17:31:11]OFDSenderStorePacket 104190 [17:31:11]StoreOFDPacket docnum=104190 [17:31: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 B1 EE 07 01 19 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 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 71 00 00 00 F4 03 04 00 DE B8 75 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 FE 96 01 00 35 04 06 00 69 76 E9 28 E5 FC 95 FB 20 10 00 D8 CA 25 [17:31:11]CheckFolder [17:31:11]dirname=/storage/ofd_packets [17:31:11]CheckFolder done [17:31:11]ProducePacketName [17:31:11]name=ofd_packets/00104190 [17:31:11]NVStorageSaveData ofd_packets/00104190 [17:31:11]File name is /storage/ofd_packets/00104190 [17:31:11]Write 301 bytes [17:31:11]NVStorageSaveData done [17:31:11]OFDSenderStorePacket done [17:31:11]KKMCreateOFDPacket done [17:31:11]NVStorageSaveData kkm_last_timestamp [17:31:11]File name is /storage/kkm_last_timestamp [17:31:11]Write 4 bytes [17:31:11]NVStorageSaveData done [17:31:11]ExternCall_PrintAddStr [17:31:11]wPrintStart [17:31:11]Write to MH i2c: 01 00 00 29 03 2C [17:31:11]Write i2c OK [17:31:11]MH_I2C_Read... [17:31:11]Read from MH i2c: 01 [17:31:11]MH_I2C_Read... [17:31:11]Read from MH i2c: 01 07 00 [17:31:11]MH_I2C_Read... [17:31:11]Read from MH i2c: 01 07 00 29 03 00 00 00 00 00 FF 0F 41 [17:31:11]RasterBufferAndPrint [17:31:11]line Счет N : (1)673635 [17:31:11]line ИНН: 02508201610067 [17:31:11]line Контрольно-Кассовый Чек [17:31:11]line ПРОДАЖА [17:31:11]line ТРК (МРК, ГНК) : 42 [17:31:11]line Товар: 2710124130 [17:31:11]line Аи-92-К-5 [17:31:11]line 12.050 * 66.40 [17:31:11]line = 800.12 [17:31:11]line НДС 12% НСП 1% [17:31:11]line > о реализуемом товаре [17:31:11]line ОКРУГЛЕНИЕ: -0.12 [17:31:11]line ИТОГО: 800.00 [17:31:11]line Внесено: 800.00 [17:31:11]line СДАЧА: 0.00 [17:31:11]line НСП 1% : 7.08 [17:31:11]line НДС 12% : 84.97 [17:31:11]line Наличными: 800.00 [17:31:11]line Безнал.: 0.00 [17:31:11]line Место: АЗС № 120 "Партнер Нефть" [17:31:11]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [17:31:11]line СНО: Общий режим [17:31:11]line Чек 113 21.06.2024 17:31 [17:31:11]line Смена: 355 ФФД: 1.0 [17:31:11]line ЗНМ: 0300000164 [17:31:11]line РНМ: 0000000000092785 [17:31:11]line Версия ККМ: 001 [17:31:11]line ФМ: 0000000000875093 [17:31:11]line ФД: 104190 [17:31:11]line ФПД: 115959438829052 [17:31:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T173110&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104190&fm=115959438829052&tin=02508201610067®Number=0000000000092785&sum=80000 [17:31:12]OFD Sender: Processing packet 104190 [packets to send 17, broken 16] [17:31:12]ProducePacketName [17:31:12]name=ofd_packets/00104190 [17:31:12]OFD Sender: To server: pG, [17:31:12]CommunicateWithHost lk.salyk.kg:30040 [17:31:12]ConnectInit lk.salyk.kg [17:31:12]written 0, free lines is 4095 [17:31:12]Connected sock=9 [17:31: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 B1 EE 07 01 19 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 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 71 00 00 00 F4 03 04 00 DE B8 75 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 FE 96 01 00 35 04 06 00 69 76 E9 28 E5 FC 95 FB 20 10 00 D8 CA 25 [17:31: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 F1 2F 47 00 1E 59 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 FE 96 01 00 F4 03 04 00 60 5F 75 66 B6 04 01 00 00 D4 BC FE 85 25 24 9E 6A [17:31:12]CommunicateWithHost err = 0 [17:31:12]CheckOFDResponse [17:31:12]1017 (14) - 77093643461234 [17:31:12]1041 (16) - 0000000000875093 [17:31:12]1040 (4) - 104190 [17:31:12]1012 (4) - 21.06.2024 11:09 [17:31:12]1206 (1) - 0 [17:31:12]OFD Sender: Remove packet 104190 [17:31:12]ProducePacketName [17:31:12]name=ofd_packets/00104190 [17:31:12]NVStorageDeleteData [17:31:12]Write to MH i2c: 01 00 00 54 03 57 [17:31:12]Write i2c OK [17:31:12]MH_I2C_Read... [17:31:12]Read from MH i2c: 01 [17:31:12]MH_I2C_Read... [17:31:12]Read from MH i2c: 01 07 00 [17:31:12]MH_I2C_Read... [17:31:12]Read from MH i2c: 01 07 00 54 03 00 00 00 00 00 ED 0C 57 [17:31:12]RasterBufferAndPrint [17:31:12]line [17:31:12]line [17:31:12]line [17:31:12]line [17:31:12]line [17:31:12]written 0, free lines is 3315 [17:31:12]MH_Cut [17:31:12]Write to MH i2c: D1 01 00 5B 03 01 30 [17:31:12]Write i2c OK [17:31:12]MH_I2C_Read... [17:31:12]Read from MH i2c: D1 [17:31:12]MH_I2C_Read... [17:31:12]Read from MH i2c: D1 01 00 [17:31:12]MH_I2C_Read... [17:31:12]Read from MH i2c: D1 01 00 5B 03 00 2F [17:31:12]Write to MH i2c: 01 00 00 5C 03 5F [17:31:12]Write i2c OK [17:31:12]MH_I2C_Read... [17:31:13]OFD Sender: No OFD packet to send [17:31:13]*** Cut start [17:31:13]*** Partial cut [17:31:13]*** CUTSNS_PIN = 1 [17:31:13]*** CUTSNS_PIN = 0 [17:31:13]*** Brake cut motor [17:31:13]Read from MH i2c: 01 [17:31:13]MH_I2C_Read... [17:31:13]*** Stop cut motor [17:31:13]*** Cut end [17:31:13]Read from MH i2c: 01 07 00 [17:31:13]MH_I2C_Read... [17:31:13]Read from MH i2c: 01 07 00 5C 03 00 00 00 00 00 FF 0F 74 [17:31:13]process_action close_receipt done [17:31:13]requested_data is exist [17:31:13]produce_requested_data [17:31:13]requested_item fm.sn is exist - process it [17:31:13]wFMCommunicate request_size=4 [17:31:13]MH_SAM_APDU [17:31:13]CAPDU: 80 11 00 00 [17:31:13]Write to MH i2c: E2 08 00 5D 03 80 11 00 00 00 00 00 00 DA [17:31:13]Write i2c OK [17:31:13]MH_I2C_Read... [17:31:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:31:14]Read from MH i2c: E2 [17:31:14]MH_I2C_Read... [17:31:14]Read from MH i2c: E2 17 00 [17:31:14]MH_I2C_Read... [17:31:14]Read from MH i2c: E2 17 00 5D 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 2D [17:31:14]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:14]wFMCommunicate OK [17:31:14]requested_item fd.num is exist - process it [17:31:14]SAM_PROTO_GetFieldsCounters [17:31:14]wFMCommunicate request_size=4 [17:31:14]MH_SAM_APDU [17:31:14]CAPDU: 80 13 00 00 [17:31:14]Write to MH i2c: E2 08 00 5E 03 80 13 00 00 00 00 00 00 DD [17:31:14]Write i2c OK [17:31:14]MH_I2C_Read... [17:31:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:31:14]Read from MH i2c: E2 [17:31:14]MH_I2C_Read... [17:31:14]Read from MH i2c: E2 62 00 [17:31:14]MH_I2C_Read... [17:31:14]Read from MH i2c: E2 62 00 5E 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 FE 96 01 00 0E 04 04 00 63 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 50 [17: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 FE 96 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 72 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:31:14]wFMCommunicate OK [17:31:14]SAM_PROTO_GetFieldsCounters done [17:31:14]requested_item shift.num is exist - process it [17:31:14]requested_item shift.opened is exist - process it [17:31:14]req_shift_opened [17:31:14]FM_GetShiftState [17:31:14]SAM_PROTO_GetShiftState [17:31:14]wFMCommunicate request_size=4 [17:31:14]MH_SAM_APDU [17:31:14]CAPDU: 80 13 01 00 [17:31:14]Write to MH i2c: E2 08 00 5F 03 80 13 01 00 00 00 00 00 DF [17:31:14]Write i2c OK [17:31:14]MH_I2C_Read... [17:31:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:31:14]Read from MH i2c: E2 [17:31:14]MH_I2C_Read... [17:31:14]Read from MH i2c: E2 0E 00 [17:31:14]MH_I2C_Read... [17:31:14]Read from MH i2c: E2 0E 00 5F 03 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 F2 [17:31:14]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [17:31:14]wFMCommunicate OK [17:31:14]SAM_PROTO_GetShiftState done [17:31:14]FM_GetShiftState done [17:31:14]req_shift_opened done [17:31:14]requested_item shift.open_date is exist - process it [17:31:14]req_shift_open_date [17:31:14]req_shift_open_date done [17:31:14]produce_requested_data done [17:31:14]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104190,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [17:31:14]process_action_free close_receipt [17:31:14]json_value_free [17:31:14]json_value_free done [17:31:14]process_json_proto returns [17:31:14]Send response to host [17:31:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104190,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [17:31:14]free response buf [17:31:14]execute_script done [17:31:14]execute_script returns [17:31:14]free content buf [17:31:14]Sock 10.Close socket [17:31:14]Sock 10.Thread stoped [17:31:18]OFD Sender: No OFD packet to send [17:31:23]OFD Sender: No OFD packet to send [17:31:28]OFD Sender: No OFD packet to send [17:31:33]OFD Sender: No OFD packet to send [17:31:38]OFD Sender: No OFD packet to send [17:31:43]OFD Sender: No OFD packet to send [17:31:48]OFD Sender: No OFD packet to send [17:31:53]OFD Sender: No OFD packet to send [17:31:58]OFD Sender: No OFD packet to send [17:32:03]OFD Sender: No OFD packet to send [17:32:08]OFD Sender: No OFD packet to send [17:32:13]OFD Sender: No OFD packet to send [17:32:18]OFD Sender: No OFD packet to send [17:32:23]OFD Sender: No OFD packet to send [17:32:28]OFD Sender: No OFD packet to send [17:32:33]OFD Sender: No OFD packet to send [17:32:38]OFD Sender: No OFD packet to send [17:32:43]OFD Sender: No OFD packet to send [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: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:02]accept exits with 7 [17:34:02]New connection [17:34:02]New thread 3066932580 created [17:34:02]Thread 3066789220 joined [17:34:02]Waiting for new connection... [17:34:02] Sock 7.Parse request [17:34:02]Sock 7.Check first char [17:34:02]Sock 7.First char is OK [17:34:02]request: POST /json_proto HTTP/1.0 [17:34:02]Method: POST [17:34:02]URL: /json_proto [17:34:02]Method is POST - this is cgi request [17:34:02]url: /json_proto [17:34:02]query_string will be loaded in cgi processing [17:34:02]execute_cgi json_proto POST (null) [17:34:02]execute_cgi path=json_proto method=POST [17:34:02]POST find Content-Length [17:34:02]Host: 172.17.38.133:8080 [17:34:02]Content-Length: 682 [17:34:02]Content-Type: application/json [17:34:02] [17:34:02]POST finish read [17:34:02]Found Content-Length = 682 [17:34:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673636", "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" ] } } [17:34:02]execute_script... [17:34: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)673636", "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" ] } } [17:34:02]POST & json_proto [17:34:02]process_json_proto [17:34:02]json parsed OK: [17:34:02]protocol is kg_v1.0 [17:34:02]action value=close_receipt [17:34:02]process_action close_receipt [17:34:02]cmd_close_receipt [17:34:02]MH_GetDate [17:34:02]Write to MH i2c: F0 00 00 60 03 52 [17:34:02]Write i2c OK [17:34:02]MH_I2C_Read... [17:34:02]Read from MH i2c: F0 [17:34:02]MH_I2C_Read... [17:34:02]Read from MH i2c: F0 09 00 [17:34:02]MH_I2C_Read... [17:34:02]Read from MH i2c: F0 09 00 60 03 00 8B B9 75 66 BD 8F 7C 64 A6 [17:34:02]GetLastDocTimeStamp 1718991070 [17:34:02]current date 1718991243 [17:34:02]FM_GetShiftState [17:34:02]SAM_PROTO_GetShiftState [17:34:02]wFMCommunicate request_size=4 [17:34:02]MH_SAM_APDU [17:34:02]CAPDU: 80 13 01 00 [17:34:02]Write to MH i2c: E2 08 00 61 03 80 13 01 00 00 00 00 00 E1 [17:34:02]Write i2c OK [17:34:02]MH_I2C_Read... [17:34:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:34:03]Read from MH i2c: E2 [17:34:03]MH_I2C_Read... [17:34:03]Read from MH i2c: E2 0E 00 [17:34:03]MH_I2C_Read... [17:34:03]Read from MH i2c: E2 0E 00 61 03 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 F4 [17:34:03]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [17:34:03]wFMCommunicate OK [17:34:03]SAM_PROTO_GetShiftState done [17:34:03]FM_GetShiftState done [17:34:03]opened in 1718929509 [17:34:03]opened+sec_in_day 1719015909 [17:34:03]quantity*price = 100064 [17:34:03]sum+1 = 100066 [17:34:03]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 СНО: Общий режим Чек 114 21.06.2024 17:34 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104191 ФПД: 259717274584912 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T173403&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104191&fm=259717274584912&tin=02508201610067®Number=0000000000092785&sum=100000 [17:34:04]StoreToDocumentArchive [17:34:04]shift 355 fd 104191 [17:34:04]save to /storage/0355/doc_00104191 [17:34:04]save last doc name /storage/0355/doc_00104191 to /storage/kkm_last_doc_name [17:34:04]save OK [17:34:04]Clear old archive folders... [17:34:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:34:04]tlvbuf is 011059E0 [17:34:04]SAM_PROTO_ClearQueue [17:34:04]wFMCommunicate request_size=4 [17:34:04]MH_SAM_APDU [17:34:04]CAPDU: 80 09 00 00 [17:34:04]Write to MH i2c: E2 08 00 6E 03 80 09 00 00 00 00 00 00 E3 [17:34:04]Write i2c OK [17:34:04]MH_I2C_Read... [17:34:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:34:04]Read from MH i2c: E2 [17:34:04]MH_I2C_Read... [17:34:04]Read from MH i2c: E2 03 00 [17:34:04]MH_I2C_Read... [17:34:04]Read from MH i2c: E2 03 00 6E 03 00 90 00 E5 [17:34:04]RAPDU: 90 00 [17:34:04]wFMCommunicate OK [17:34:04]SAM_PROTO_ClearQueue done [17:34:04]KKMCreateOFDPacket [17:34:04]OFDProtocolAddRootSTLVToBuf [17:34:04]FM_MakeSignedData [17:34:04]FM_MakeSignedData [17:34:04]SAM_PROTO_SignData [17:34:04]wFMCommunicate request_size=4 [17:34:04]MH_SAM_APDU [17:34:04]CAPDU: 80 0D 01 02 [17:34:04]Write to MH i2c: E2 08 00 6F 03 80 0D 01 02 00 00 00 00 EB [17:34:04]Write i2c OK [17:34:04]MH_I2C_Read... [17:34:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:34:04]Read from MH i2c: E2 [17:34:04]MH_I2C_Read... [17:34:04]Read from MH i2c: E2 03 00 [17:34:04]MH_I2C_Read... [17:34:04]Read from MH i2c: E2 03 00 6F 03 00 90 00 E6 [17:34:04]RAPDU: 90 00 [17:34:04]wFMCommunicate OK [17:34:04]wFMCommunicate request_size=255 [17:34:04]MH_SAM_APDU [17:34: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 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 72 00 00 00 F4 03 04 00 8B B9 75 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 FF 96 01 00 35 04 06 00 EC [17:34:04]Write to MH i2c: E2 02 01 70 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 72 00 00 00 F4 03 04 00 8B B9 75 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 FF 96 01 00 35 04 06 00 EC 00 00 6C [17:34:04]Write i2c OK [17:34:04]MH_I2C_Read... [17:34:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:34:04]Read from MH i2c: E2 [17:34:04]MH_I2C_Read... [17:34:04]Read from MH i2c: E2 03 00 [17:34:04]MH_I2C_Read... [17:34:04]Read from MH i2c: E2 03 00 70 03 00 90 00 E7 [17:34:04]RAPDU: 90 00 [17:34:04]wFMCommunicate OK [17:34:04]wFMCommunicate request_size=10 [17:34:04]MH_SAM_APDU [17:34:04]CAPDU: 80 0D 02 02 05 36 23 E4 C7 50 [17:34:04]Write to MH i2c: E2 0D 00 71 03 80 0D 02 02 05 00 36 23 E4 C7 50 00 00 4C [17:34:04]Write i2c OK [17:34:04]MH_I2C_Read... [17:34:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:34:04]Read from MH i2c: E2 [17:34:04]MH_I2C_Read... [17:34:04]Read from MH i2c: E2 03 00 [17:34:04]MH_I2C_Read... [17:34:04]Read from MH i2c: E2 03 00 71 03 00 90 00 E8 [17:34:04]RAPDU: 90 00 [17:34:04]wFMCommunicate OK [17:34:04]wFMCommunicate request_size=4 [17:34:04]MH_SAM_APDU [17:34:04]CAPDU: 80 0D 03 02 [17:34:04]Write to MH i2c: E2 08 00 72 03 80 0D 03 02 00 00 00 00 F0 [17:34:04]Write i2c OK [17:34:04]MH_I2C_Read... [17:34:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:34:04]Read from MH i2c: E2 [17:34:04]MH_I2C_Read... [17:34:04]Read from MH i2c: E2 0B 00 [17:34:04]MH_I2C_Read... [17:34:04]Read from MH i2c: E2 0B 00 72 03 00 4F 14 60 C1 4F 68 2E CF 90 00 29 [17:34:04]RAPDU: 4F 14 60 C1 4F 68 2E CF 90 00 [17:34:04]wFMCommunicate OK [17:34:04]SAM_PROTO_SignData done [17:34:04]FM_MakeSignedData done [17:34:04]CreateOFDProtocolMessage [17:34:04]wFMCommunicate request_size=4 [17:34:04]MH_SAM_APDU [17:34:04]CAPDU: 80 11 00 00 [17:34:04]Write to MH i2c: E2 08 00 73 03 80 11 00 00 00 00 00 00 F0 [17:34:04]Write i2c OK [17:34:04]MH_I2C_Read... [17:34:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:34:04]Read from MH i2c: E2 [17:34:04]MH_I2C_Read... [17:34:04]Read from MH i2c: E2 17 00 [17:34:04]MH_I2C_Read... [17:34:04]Read from MH i2c: E2 17 00 73 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 43 [17:34:04]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:04]wFMCommunicate OK [17:34:04]CreateOFDProtocolMessage done [17:34:04]OFDSenderStorePacket 104191 [17:34:04]StoreOFDPacket docnum=104191 [17:34: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 64 68 07 01 97 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 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 72 00 00 00 F4 03 04 00 8B B9 75 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 FF 96 01 00 35 04 06 00 EC 36 23 E4 C7 50 4F 14 60 C1 4F 68 2E CF [17:34:04]CheckFolder [17:34:04]dirname=/storage/ofd_packets [17:34:04]CheckFolder done [17:34:04]ProducePacketName [17:34:04]name=ofd_packets/00104191 [17:34:04]NVStorageSaveData ofd_packets/00104191 [17:34:04]File name is /storage/ofd_packets/00104191 [17:34:04]Write 301 bytes [17:34:04]NVStorageSaveData done [17:34:04]OFDSenderStorePacket done [17:34:04]KKMCreateOFDPacket done [17:34:04]NVStorageSaveData kkm_last_timestamp [17:34:04]File name is /storage/kkm_last_timestamp [17:34:04]Write 4 bytes [17:34:04]NVStorageSaveData done [17:34:04]ExternCall_PrintAddStr [17:34:04]wPrintStart [17:34:04]Write to MH i2c: 01 00 00 74 03 77 [17:34:04]Write i2c OK [17:34:04]MH_I2C_Read... [17:34:04]Read from MH i2c: 01 [17:34:04]MH_I2C_Read... [17:34:04]Read from MH i2c: 01 07 00 [17:34:04]MH_I2C_Read... [17:34:04]Read from MH i2c: 01 07 00 74 03 00 00 00 00 00 FF 0F 8C [17:34:04]RasterBufferAndPrint [17:34:04]line Счет N : (1)673636 [17:34:04]line ИНН: 02508201610067 [17:34:04]line Контрольно-Кассовый Чек [17:34:04]line ПРОДАЖА [17:34:04]line ТРК (МРК, ГНК) : 32 [17:34:04]line Товар: 2710124130 [17:34:04]line Аи-92-К-5 [17:34:04]line 15.070 * 66.40 [17:34:04]line = 1000.65 [17:34:04]line НДС 12% НСП 1% [17:34:04]line > о реализуемом товаре [17:34:04]line ОКРУГЛЕНИЕ: -0.65 [17:34:04]line ИТОГО: 1000.00 [17:34:04]line Внесено: 1000.00 [17:34:04]line СДАЧА: 0.00 [17:34:04]line НСП 1% : 8.85 [17:34:04]line НДС 12% : 106.26 [17:34:04]line Наличными: 1000.00 [17:34:04]line Безнал.: 0.00 [17:34:04]line Место: АЗС № 120 "Партнер Нефть" [17:34:04]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [17:34:04]line СНО: Общий режим [17:34:04]line Чек 114 21.06.2024 17:34 [17:34:04]line Смена: 355 ФФД: 1.0 [17:34:04]line ЗНМ: 0300000164 [17:34:04]line РНМ: 0000000000092785 [17:34:04]line Версия ККМ: 001 [17:34:04]line ФМ: 0000000000875093 [17:34:04]line ФД: 104191 [17:34:04]line ФПД: 259717274584912 [17:34:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T173403&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104191&fm=259717274584912&tin=02508201610067®Number=0000000000092785&sum=100000 [17:34:04]OFD Sender: Processing packet 104191 [packets to send 17, broken 16] [17:34:04]ProducePacketName [17:34:04]name=ofd_packets/00104191 [17:34:04]OFD Sender: To server: pG, [17:34:04]CommunicateWithHost lk.salyk.kg:30040 [17:34:04]ConnectInit lk.salyk.kg [17:34:04]written 0, free lines is 4095 [17:34:05]Connected sock=10 [17:34: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 64 68 07 01 97 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 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 72 00 00 00 F4 03 04 00 8B B9 75 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 FF 96 01 00 35 04 06 00 EC 36 23 E4 C7 50 4F 14 60 C1 4F 68 2E CF [17:34: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 47 CC 47 00 6B 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 FF 96 01 00 F4 03 04 00 0D 60 75 66 B6 04 01 00 00 C4 17 75 F0 DF 87 8F B1 [17:34:05]CommunicateWithHost err = 0 [17:34:05]CheckOFDResponse [17:34:05]1017 (14) - 77093643461234 [17:34:05]1041 (16) - 0000000000875093 [17:34:05]1040 (4) - 104191 [17:34:05]1012 (4) - 21.06.2024 11:12 [17:34:05]1206 (1) - 0 [17:34:05]OFD Sender: Remove packet 104191 [17:34:05]ProducePacketName [17:34:05]name=ofd_packets/00104191 [17:34:05]NVStorageDeleteData [17:34:05]Write to MH i2c: 01 00 00 9F 03 A2 [17:34:05]Write i2c OK [17:34:05]MH_I2C_Read... [17:34:05]Read from MH i2c: 01 [17:34:05]MH_I2C_Read... [17:34:05]Read from MH i2c: 01 07 00 [17:34:05]MH_I2C_Read... [17:34:05]Read from MH i2c: 01 07 00 9F 03 00 00 00 00 00 EC 0C A1 [17:34:05]RasterBufferAndPrint [17:34:05]line [17:34:05]line [17:34:05]line [17:34:05]line [17:34:05]line [17:34:05]written 0, free lines is 3314 [17:34:05]MH_Cut [17:34:05]Write to MH i2c: D1 01 00 A6 03 01 7B [17:34:05]Write i2c OK [17:34:05]MH_I2C_Read... [17:34:05]Read from MH i2c: D1 [17:34:05]MH_I2C_Read... [17:34:05]Read from MH i2c: D1 01 00 [17:34:05]MH_I2C_Read... [17:34:05]Read from MH i2c: D1 01 00 A6 03 00 7A [17:34:05]Write to MH i2c: 01 00 00 A7 03 AA [17:34:05]Write i2c OK [17:34:05]MH_I2C_Read... [17:34:05]OFD Sender: No OFD packet to send [17:34:06]*** Cut start [17:34:06]*** Partial cut [17:34:06]*** CUTSNS_PIN = 1 [17:34:06]*** CUTSNS_PIN = 0 [17:34:06]*** Brake cut motor [17:34:06]Read from MH i2c: 01 [17:34:06]MH_I2C_Read... [17:34:06]*** Stop cut motor [17:34:06]*** Cut end [17:34:06]Read from MH i2c: 01 07 00 [17:34:06]MH_I2C_Read... [17:34:06]Read from MH i2c: 01 07 00 A7 03 00 00 00 00 00 FF 0F BF [17:34:06]process_action close_receipt done [17:34:06]requested_data is exist [17:34:06]produce_requested_data [17:34:06]requested_item fm.sn is exist - process it [17:34:06]wFMCommunicate request_size=4 [17:34:06]MH_SAM_APDU [17:34:06]CAPDU: 80 11 00 00 [17:34:06]Write to MH i2c: E2 08 00 A8 03 80 11 00 00 00 00 00 00 25 [17:34:06]Write i2c OK [17:34:06]MH_I2C_Read... [17:34:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:34:06]Read from MH i2c: E2 [17:34:06]MH_I2C_Read... [17:34:06]Read from MH i2c: E2 17 00 [17:34:06]MH_I2C_Read... [17:34:06]Read from MH i2c: E2 17 00 A8 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 78 [17:34:06]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:06]wFMCommunicate OK [17:34:06]requested_item fd.num is exist - process it [17:34:06]SAM_PROTO_GetFieldsCounters [17:34:06]wFMCommunicate request_size=4 [17:34:06]MH_SAM_APDU [17:34:06]CAPDU: 80 13 00 00 [17:34:06]Write to MH i2c: E2 08 00 A9 03 80 13 00 00 00 00 00 00 28 [17:34:06]Write i2c OK [17:34:06]MH_I2C_Read... [17:34:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:34:06]Read from MH i2c: E2 [17:34:06]MH_I2C_Read... [17:34:06]Read from MH i2c: E2 62 00 [17:34:06]MH_I2C_Read... [17:34:06]Read from MH i2c: E2 62 00 A9 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 FF 96 01 00 0E 04 04 00 63 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 9F [17:34: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 FF 96 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 72 00 00 00 5E 04 04 00 72 00 00 00 57 04 04 00 73 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:34:06]wFMCommunicate OK [17:34:06]SAM_PROTO_GetFieldsCounters done [17:34:06]requested_item shift.num is exist - process it [17:34:06]requested_item shift.opened is exist - process it [17:34:06]req_shift_opened [17:34:06]FM_GetShiftState [17:34:06]SAM_PROTO_GetShiftState [17:34:06]wFMCommunicate request_size=4 [17:34:06]MH_SAM_APDU [17:34:06]CAPDU: 80 13 01 00 [17:34:06]Write to MH i2c: E2 08 00 AA 03 80 13 01 00 00 00 00 00 2A [17:34:06]Write i2c OK [17:34:06]MH_I2C_Read... [17:34:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:34:07]Read from MH i2c: E2 [17:34:07]MH_I2C_Read... [17:34:07]Read from MH i2c: E2 0E 00 [17:34:07]MH_I2C_Read... [17:34:07]Read from MH i2c: E2 0E 00 AA 03 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 3D [17:34:07]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [17:34:07]wFMCommunicate OK [17:34:07]SAM_PROTO_GetShiftState done [17:34:07]FM_GetShiftState done [17:34:07]req_shift_opened done [17:34:07]requested_item shift.open_date is exist - process it [17:34:07]req_shift_open_date [17:34:07]req_shift_open_date done [17:34:07]produce_requested_data done [17:34:07]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104191,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [17:34:07]process_action_free close_receipt [17:34:07]json_value_free [17:34:07]json_value_free done [17:34:07]process_json_proto returns [17:34:07]Send response to host [17:34:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104191,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [17:34:07]free response buf [17:34:07]execute_script done [17:34:07]execute_script returns [17:34:07]free content buf [17:34:07]Sock 7.Close socket [17:34:07]Sock 7.Thread stoped [17:34:10]OFD Sender: No OFD packet to send [17:34:15]OFD Sender: No OFD packet to send [17:34:18]accept exits with 9 [17:34:18]New connection [17:34:18]New thread 3066789220 created [17:34:18]Thread 3066932580 joined [17:34:18]Waiting for new connection... [17:34:18] Sock 9.Parse request [17:34:18]Sock 9.Check first char [17:34:18]Sock 9.First char is OK [17:34:18]request: POST /json_proto HTTP/1.0 [17:34:18]Method: POST [17:34:18]URL: /json_proto [17:34:18]Method is POST - this is cgi request [17:34:18]url: /json_proto [17:34:18]query_string will be loaded in cgi processing [17:34:18]execute_cgi json_proto POST (null) [17:34:18]execute_cgi path=json_proto method=POST [17:34:18]POST find Content-Length [17:34:18]Host: 172.17.38.133:8080 [17:34:18]Content-Length: 739 [17:34:18]Content-Type: application/json [17:34:18] [17:34:18]POST finish read [17:34:18]Found Content-Length = 739 [17:34:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 104191, "base_FM": "0000000000875093", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673636", "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" ] } } [17:34:18]execute_script... [17:34:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 104191, "base_FM": "0000000000875093", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673636", "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" ] } } [17:34:18]POST & json_proto [17:34:18]process_json_proto [17:34:18]json parsed OK: [17:34:18]protocol is kg_v1.0 [17:34:18]action value=close_receipt [17:34:18]process_action close_receipt [17:34:18]cmd_close_receipt [17:34:18]MH_GetDate [17:34:18]Write to MH i2c: F0 00 00 AB 03 9D [17:34:18]Write i2c OK [17:34:18]MH_I2C_Read... [17:34:18]Read from MH i2c: F0 [17:34:18]MH_I2C_Read... [17:34:18]Read from MH i2c: F0 09 00 [17:34:18]MH_I2C_Read... [17:34:18]Read from MH i2c: F0 09 00 AB 03 00 9A B9 75 66 BD 8F 7C 64 00 [17:34:18]GetLastDocTimeStamp 1718991243 [17:34:18]current date 1718991258 [17:34:18]FM_GetShiftState [17:34:18]SAM_PROTO_GetShiftState [17:34:18]wFMCommunicate request_size=4 [17:34:18]MH_SAM_APDU [17:34:18]CAPDU: 80 13 01 00 [17:34:18]Write to MH i2c: E2 08 00 AC 03 80 13 01 00 00 00 00 00 2C [17:34:18]Write i2c OK [17:34:18]MH_I2C_Read... [17:34:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:34:18]Read from MH i2c: E2 [17:34:18]MH_I2C_Read... [17:34:18]Read from MH i2c: E2 0E 00 [17:34:18]MH_I2C_Read... [17:34:18]Read from MH i2c: E2 0E 00 AC 03 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 3F [17:34:18]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [17:34:18]wFMCommunicate OK [17:34:18]SAM_PROTO_GetShiftState done [17:34:18]FM_GetShiftState done [17:34:18]opened in 1718929509 [17:34:18]opened+sec_in_day 1719015909 [17:34:18]quantity*price = 100064 [17:34:18]sum+1 = 100066 [17:34:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 115 21.06.2024 17:34 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФД осн.: 104191 ФМ осн.: 0000000000875093 ФМ: 0000000000875093 ФД: 104192 ФПД: 41637946222397 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T173418&type=2&operation_type=1&fn_number=0000000000875093&fd_number=104192&fm=41637946222397&tin=02508201610067®Number=0000000000092785&sum=100000 [17:34:19]StoreToDocumentArchive [17:34:19]shift 355 fd 104192 [17:34:19]save to /storage/0355/doc_00104192 [17:34:19]save last doc name /storage/0355/doc_00104192 to /storage/kkm_last_doc_name [17:34:19]save OK [17:34:19]Clear old archive folders... [17:34:19]ProcessDocumentItem done err = 0, tmpTLVsize=279 [17:34:19]tlvbuf is B6DA31E0 [17:34:19]SAM_PROTO_ClearQueue [17:34:19]wFMCommunicate request_size=4 [17:34:19]MH_SAM_APDU [17:34:19]CAPDU: 80 09 00 00 [17:34:19]Write to MH i2c: E2 08 00 BB 03 80 09 00 00 00 00 00 00 30 [17:34:19]Write i2c OK [17:34:19]MH_I2C_Read... [17:34:19]Read from MH i2c: E2 [17:34:19]MH_I2C_Read... [17:34:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:34:19]Read from MH i2c: E2 03 00 [17:34:19]MH_I2C_Read... [17:34:19]Read from MH i2c: E2 03 00 BB 03 00 90 00 32 [17:34:19]RAPDU: 90 00 [17:34:19]wFMCommunicate OK [17:34:19]SAM_PROTO_ClearQueue done [17:34:19]KKMCreateOFDPacket [17:34:19]OFDProtocolAddRootSTLVToBuf [17:34:19]FM_MakeSignedData [17:34:19]FM_MakeSignedData [17:34:19]SAM_PROTO_SignData [17:34:19]wFMCommunicate request_size=4 [17:34:19]MH_SAM_APDU [17:34:19]CAPDU: 80 0D 01 02 [17:34:19]Write to MH i2c: E2 08 00 BC 03 80 0D 01 02 00 00 00 00 38 [17:34:19]Write i2c OK [17:34:19]MH_I2C_Read... [17:34:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:34:19]Read from MH i2c: E2 [17:34:19]MH_I2C_Read... [17:34:19]Read from MH i2c: E2 03 00 [17:34:19]MH_I2C_Read... [17:34:19]Read from MH i2c: E2 03 00 BC 03 00 90 00 33 [17:34:19]RAPDU: 90 00 [17:34:19]wFMCommunicate OK [17:34:19]wFMCommunicate request_size=255 [17:34:19]MH_SAM_APDU [17:34:19]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 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 73 00 00 00 F4 03 04 00 9A B9 75 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 27 04 04 00 FF 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 [17:34:19]Write to MH i2c: E2 02 01 BD 03 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 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 73 00 00 00 F4 03 04 00 9A B9 75 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 27 04 04 00 FF 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 3F [17:34:19]Write i2c OK [17:34:19]MH_I2C_Read... [17:34:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:34:19]Read from MH i2c: E2 [17:34:19]MH_I2C_Read... [17:34:19]Read from MH i2c: E2 03 00 [17:34:19]MH_I2C_Read... [17:34:19]Read from MH i2c: E2 03 00 BD 03 00 90 00 34 [17:34:19]RAPDU: 90 00 [17:34:19]wFMCommunicate OK [17:34:19]wFMCommunicate request_size=38 [17:34:19]MH_SAM_APDU [17:34:19]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 00 97 01 00 35 04 06 00 25 DE 96 FE 67 3D [17:34:19]Write to MH i2c: E2 29 00 BE 03 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 00 97 01 00 35 04 06 00 25 DE 96 FE 67 3D 00 00 97 [17:34:19]Write i2c OK [17:34:19]MH_I2C_Read... [17:34:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:34:19]Read from MH i2c: E2 [17:34:19]MH_I2C_Read... [17:34:19]Read from MH i2c: E2 03 00 [17:34:19]MH_I2C_Read... [17:34:19]Read from MH i2c: E2 03 00 BE 03 00 90 00 35 [17:34:19]RAPDU: 90 00 [17:34:19]wFMCommunicate OK [17:34:19]wFMCommunicate request_size=4 [17:34:19]MH_SAM_APDU [17:34:19]CAPDU: 80 0D 03 02 [17:34:19]Write to MH i2c: E2 08 00 BF 03 80 0D 03 02 00 00 00 00 3D [17:34:19]Write i2c OK [17:34:19]MH_I2C_Read... [17:34:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:34:19]Read from MH i2c: E2 [17:34:19]MH_I2C_Read... [17:34:19]Read from MH i2c: E2 0B 00 [17:34:19]MH_I2C_Read... [17:34:19]Read from MH i2c: E2 0B 00 BF 03 00 A9 AD 67 B3 3D CC 34 AD 90 00 98 [17:34:19]RAPDU: A9 AD 67 B3 3D CC 34 AD 90 00 [17:34:19]wFMCommunicate OK [17:34:19]SAM_PROTO_SignData done [17:34:19]FM_MakeSignedData done [17:34:19]CreateOFDProtocolMessage [17:34:19]wFMCommunicate request_size=4 [17:34:19]MH_SAM_APDU [17:34:19]CAPDU: 80 11 00 00 [17:34:19]Write to MH i2c: E2 08 00 C0 03 80 11 00 00 00 00 00 00 3D [17:34:19]Write i2c OK [17:34:19]MH_I2C_Read... [17:34:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:34:19]Read from MH i2c: E2 [17:34:19]MH_I2C_Read... [17:34:19]Read from MH i2c: E2 17 00 [17:34:19]MH_I2C_Read... [17:34:19]Read from MH i2c: E2 17 00 C0 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 90 [17:34:19]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:19]wFMCommunicate OK [17:34:19]CreateOFDProtocolMessage done [17:34:19]OFDSenderStorePacket 104192 [17:34:19]StoreOFDPacket docnum=104192 [17:34: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 2B 01 00 00 27 4B 23 01 47 B6 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 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 73 00 00 00 F4 03 04 00 9A B9 75 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 27 04 04 00 FF 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 00 97 01 00 35 04 06 00 25 DE 96 FE 67 3D A9 AD 67 B3 3D CC 34 AD [17:34:19]CheckFolder [17:34:19]dirname=/storage/ofd_packets [17:34:19]CheckFolder done [17:34:19]ProducePacketName [17:34:19]name=ofd_packets/00104192 [17:34:19]NVStorageSaveData ofd_packets/00104192 [17:34:19]File name is /storage/ofd_packets/00104192 [17:34:19]Write 329 bytes [17:34:19]NVStorageSaveData done [17:34:19]OFDSenderStorePacket done [17:34:19]KKMCreateOFDPacket done [17:34:19]NVStorageSaveData kkm_last_timestamp [17:34:19]File name is /storage/kkm_last_timestamp [17:34:19]Write 4 bytes [17:34:19]NVStorageSaveData done [17:34:19]ExternCall_PrintAddStr [17:34:19]wPrintStart [17:34:19]Write to MH i2c: 01 00 00 C1 03 C4 [17:34:19]Write i2c OK [17:34:19]MH_I2C_Read... [17:34:19]Read from MH i2c: 01 [17:34:19]MH_I2C_Read... [17:34:19]Read from MH i2c: 01 07 00 [17:34:19]MH_I2C_Read... [17:34:19]Read from MH i2c: 01 07 00 C1 03 00 00 00 00 00 FF 0F D9 [17:34:19]RasterBufferAndPrint [17:34:19]line Счет N : (1)673636 [17:34:19]line ИНН: 02508201610067 [17:34:19]line Контрольно-Кассовый Чек [17:34:19]line ВОЗВРАТ ПРОДАЖИ [17:34:19]line ТРК (МРК, ГНК) : 32 [17:34:19]line Товар: 2710124130 [17:34:19]line Аи-92-К-5 [17:34:19]line 15.070 * 66.40 [17:34:19]line = 1000.65 [17:34:19]line НДС 12% НСП 1% [17:34:19]line > о реализуемом товаре [17:34:19]line ОКРУГЛЕНИЕ: -0.65 [17:34:19]line ИТОГО: 1000.00 [17:34:19]line НСП 1% : 8.85 [17:34:19]line НДС 12% : 106.26 [17:34:19]line Наличными: 1000.00 [17:34:19]line Безнал.: 0.00 [17:34:19]line Место: АЗС № 120 "Партнер Нефть" [17:34:19]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [17:34:19]line СНО: Общий режим [17:34:19]line Чек 115 21.06.2024 17:34 [17:34:19]line Смена: 355 ФФД: 1.0 [17:34:19]line ЗНМ: 0300000164 [17:34:19]line РНМ: 0000000000092785 [17:34:19]line Версия ККМ: 001 [17:34:19]line ФД осн.: 104191 [17:34:19]line ФМ осн.: 0000000000875093 [17:34:19]line ФМ: 0000000000875093 [17:34:19]line ФД: 104192 [17:34:19]line ФПД: 41637946222397 [17:34:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T173418&type=2&operation_type=1&fn_number=0000000000875093&fd_number=104192&fm=41637946222397&tin=02508201610067®Number=0000000000092785&sum=100000 [17:34:20]OFD Sender: Processing packet 104192 [packets to send 17, broken 16] [17:34:20]ProducePacketName [17:34:20]name=ofd_packets/00104192 [17:34:20]OFD Sender: To server: pG, [17:34:20]CommunicateWithHost lk.salyk.kg:30040 [17:34:20]ConnectInit lk.salyk.kg [17:34:20]written 0, free lines is 4095 [17:34:20]Connected sock=10 [17:34: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 2B 01 00 00 27 4B 23 01 47 B6 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 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 73 00 00 00 F4 03 04 00 9A B9 75 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 27 04 04 00 FF 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 00 97 01 00 35 04 06 00 25 DE 96 FE 67 3D A9 AD 67 B3 3D CC 34 AD [17:34:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 2E 03 47 00 D7 87 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 00 97 01 00 F4 03 04 00 1C 60 75 66 B6 04 01 00 00 51 40 65 58 0D D8 6F 60 [17:34:20]CommunicateWithHost err = 0 [17:34:20]CheckOFDResponse [17:34:20]1017 (14) - 77093643461234 [17:34:20]1041 (16) - 0000000000875093 [17:34:20]1040 (4) - 104192 [17:34:20]1012 (4) - 21.06.2024 11:12 [17:34:20]1206 (1) - 0 [17:34:20]OFD Sender: Remove packet 104192 [17:34:20]ProducePacketName [17:34:20]name=ofd_packets/00104192 [17:34:20]NVStorageDeleteData [17:34:20]Write to MH i2c: 01 00 00 EC 03 EF [17:34:20]Write i2c OK [17:34:20]MH_I2C_Read... [17:34:20]Read from MH i2c: 01 [17:34:20]MH_I2C_Read... [17:34:20]Read from MH i2c: 01 07 00 [17:34:20]MH_I2C_Read... [17:34:20]Read from MH i2c: 01 07 00 EC 03 00 00 00 00 00 FA 0C FC [17:34:20]RasterBufferAndPrint [17:34:20]line [17:34:20]line [17:34:20]line [17:34:20]line [17:34:20]line [17:34:20]written 0, free lines is 3328 [17:34:20]MH_Cut [17:34:20]Write to MH i2c: D1 01 00 F3 03 01 C8 [17:34:20]Write i2c OK [17:34:20]MH_I2C_Read... [17:34:20]Read from MH i2c: D1 [17:34:20]MH_I2C_Read... [17:34:20]Read from MH i2c: D1 01 00 [17:34:20]MH_I2C_Read... [17:34:20]Read from MH i2c: D1 01 00 F3 03 00 C7 [17:34:20]Write to MH i2c: 01 00 00 F4 03 F7 [17:34:20]Write i2c OK [17:34:20]MH_I2C_Read... [17:34:21]OFD Sender: No OFD packet to send [17:34:21]*** Cut start [17:34:21]*** Partial cut [17:34:21]*** CUTSNS_PIN = 1 [17:34:21]*** CUTSNS_PIN = 0 [17:34:21]*** Brake cut motor [17:34:22]Read from MH i2c: 01 [17:34:22]MH_I2C_Read... [17:34:22]*** Stop cut motor [17:34:22]*** Cut end [17:34:22]Read from MH i2c: 01 07 00 [17:34:22]MH_I2C_Read... [17:34:22]Read from MH i2c: 01 07 00 F4 03 00 00 00 00 00 FF 0F 0C [17:34:22]process_action close_receipt done [17:34:22]requested_data is exist [17:34:22]produce_requested_data [17:34:22]requested_item fm.sn is exist - process it [17:34:22]wFMCommunicate request_size=4 [17:34:22]MH_SAM_APDU [17:34:22]CAPDU: 80 11 00 00 [17:34:22]Write to MH i2c: E2 08 00 F5 03 80 11 00 00 00 00 00 00 72 [17:34:22]Write i2c OK [17:34:22]MH_I2C_Read... [17:34:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:34:22]Read from MH i2c: E2 [17:34:22]MH_I2C_Read... [17:34:22]Read from MH i2c: E2 17 00 [17:34:22]MH_I2C_Read... [17:34:22]Read from MH i2c: E2 17 00 F5 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 C5 [17:34:22]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:22]wFMCommunicate OK [17:34:22]requested_item fd.num is exist - process it [17:34:22]SAM_PROTO_GetFieldsCounters [17:34:22]wFMCommunicate request_size=4 [17:34:22]MH_SAM_APDU [17:34:22]CAPDU: 80 13 00 00 [17:34:22]Write to MH i2c: E2 08 00 F6 03 80 13 00 00 00 00 00 00 75 [17:34:22]Write i2c OK [17:34:22]MH_I2C_Read... [17:34:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:34:22]Read from MH i2c: E2 [17:34:22]MH_I2C_Read... [17:34:22]Read from MH i2c: E2 62 00 [17:34:22]MH_I2C_Read... [17:34:22]Read from MH i2c: E2 62 00 F6 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 00 97 01 00 0E 04 04 00 63 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 F1 [17:34: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 00 97 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 73 00 00 00 5E 04 04 00 73 00 00 00 57 04 04 00 74 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:34:22]wFMCommunicate OK [17:34:22]SAM_PROTO_GetFieldsCounters done [17:34:22]requested_item shift.num is exist - process it [17:34:22]requested_item shift.opened is exist - process it [17:34:22]req_shift_opened [17:34:22]FM_GetShiftState [17:34:22]SAM_PROTO_GetShiftState [17:34:22]wFMCommunicate request_size=4 [17:34:22]MH_SAM_APDU [17:34:22]CAPDU: 80 13 01 00 [17:34:22]Write to MH i2c: E2 08 00 F7 03 80 13 01 00 00 00 00 00 77 [17:34:22]Write i2c OK [17:34:22]MH_I2C_Read... [17:34:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:34:22]Read from MH i2c: E2 [17:34:22]MH_I2C_Read... [17:34:22]Read from MH i2c: E2 0E 00 [17:34:22]MH_I2C_Read... [17:34:22]Read from MH i2c: E2 0E 00 F7 03 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 8A [17:34:22]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [17:34:22]wFMCommunicate OK [17:34:22]SAM_PROTO_GetShiftState done [17:34:22]FM_GetShiftState done [17:34:22]req_shift_opened done [17:34:22]requested_item shift.open_date is exist - process it [17:34:22]req_shift_open_date [17:34:22]req_shift_open_date done [17:34:22]produce_requested_data done [17:34:22]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104192,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [17:34:22]process_action_free close_receipt [17:34:22]json_value_free [17:34:22]json_value_free done [17:34:22]process_json_proto returns [17:34:22]Send response to host [17:34:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104192,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [17:34:22]free response buf [17:34:22]execute_script done [17:34:22]execute_script returns [17:34:22]free content buf [17:34:22]Sock 9.Close socket [17:34:22]Sock 9.Thread stoped [17:34:26]OFD Sender: No OFD packet to send [17:34:31]OFD Sender: No OFD packet to send [17:34:36]OFD Sender: No OFD packet to send [17:34:41]OFD Sender: No OFD packet to send [17:34:46]OFD Sender: No OFD packet to send [17:34:51]OFD Sender: No OFD packet to send [17:34:56]OFD Sender: No OFD packet to send [17:35:01]OFD Sender: No OFD packet to send [17:35:06]OFD Sender: No OFD packet to send [17:35:11]OFD Sender: No OFD packet to send [17:35:16]OFD Sender: No OFD packet to send [17:35:21]OFD Sender: No OFD packet to send [17:35:26]OFD Sender: No OFD packet to send [17:35:31]OFD Sender: No OFD packet to send [17:35:36]OFD Sender: No OFD packet to send [17:35:41]OFD Sender: No OFD packet to send [17:35:46]OFD Sender: No OFD packet to send [17:35:51]OFD Sender: No OFD packet to send [17:35:52]accept exits with 7 [17:35:52]New connection [17:35:52]New thread 3066932580 created [17:35:52]Thread 3066789220 joined [17:35:52]Waiting for new connection... [17:35:52] Sock 7.Parse request [17:35:52]Sock 7.Check first char [17:35:52]Sock 7.First char is OK [17:35:52]request: POST /json_proto HTTP/1.0 [17:35:52]Method: POST [17:35:52]URL: /json_proto [17:35:52]Method is POST - this is cgi request [17:35:52]url: /json_proto [17:35:52]query_string will be loaded in cgi processing [17:35:52]execute_cgi json_proto POST (null) [17:35:52]execute_cgi path=json_proto method=POST [17:35:52]POST find Content-Length [17:35:52]Host: 172.17.38.133:8080 [17:35:52]Content-Length: 1194 [17:35:52]Content-Type: application/json [17:35:52] [17:35:52]POST finish read [17:35:52]Found Content-Length = 1194 [17:35: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 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)673637\u000A21.06.2024 17:12\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 13.380 x 66.40\u000A\u0418\u0422\u041E\u0413: 888.43\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\u000A03082\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:35:52]execute_script... [17:35: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 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)673637\u000A21.06.2024 17:12\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 13.380 x 66.40\u000A\u0418\u0422\u041E\u0413: 888.43\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\u000A03082\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:35:52]POST & json_proto [17:35:52]process_json_proto [17:35:52]json parsed OK: [17:35:52]protocol is kg_v1.0 [17:35:52]action value=print_text [17:35:52]process_action print_text [17:35:52]cmd_print_text [17:35:52]ExternCall_PrintAddStr [17:35:52]wPrintStart [17:35:52]Write to MH i2c: 01 00 00 F8 03 FB [17:35:52]Write i2c OK [17:35:52]MH_I2C_Read... [17:35:52]Read from MH i2c: 01 [17:35:52]MH_I2C_Read... [17:35:52]Read from MH i2c: 01 07 00 [17:35:52]MH_I2C_Read... [17:35:52]Read from MH i2c: 01 07 00 F8 03 00 00 00 00 00 FF 0F 10 [17:35:52]RasterBufferAndPrint [17:35:52]line *****ТОВАРНЫЙ ЧЕК***** [17:35:52]line АЗС 120 [17:35:52]line Партнер нефть [17:35:52]line 02508201610067 [17:35:52]line Кассир : Асанбаев Н. [17:35:52]line Счет N : (1)673637 [17:35:52]line 21.06.2024 17:12 [17:35:52]line ПРОДАЖА [17:35:52]line ТРК (МРК, ГНК): 42 [17:35:52]line Вид ГСМ : 2710124130 [17:35:52]line Аи-92-К-5 [17:35:52]line 13.380 x 66.40 [17:35:52]line ИТОГ: 888.43 [17:35:52]line Тип оплаты: Талоны: Топливная Карта [17:35:52]line 03082 [17:35:52]line ______________________ [17:35:52]line (подпись) [17:35:52]written 0, free lines is 4095 [17:35:52]Write to MH i2c: 01 00 00 0C 04 10 [17:35:52]Write i2c OK [17:35:52]MH_I2C_Read... [17:35:52]Read from MH i2c: 01 [17:35:52]MH_I2C_Read... [17:35:52]Read from MH i2c: 01 07 00 [17:35:52]MH_I2C_Read... [17:35:52]Read from MH i2c: 01 07 00 0C 04 00 00 00 00 00 11 0E 36 [17:35:52]RasterBufferAndPrint [17:35:52]line [17:35:52]line [17:35:52]line [17:35:52]line [17:35:52]line [17:35:52]written 0, free lines is 3603 [17:35:52]MH_Cut [17:35:52]Write to MH i2c: D1 01 00 13 04 01 E9 [17:35:52]Write i2c OK [17:35:52]MH_I2C_Read... [17:35:52]Read from MH i2c: D1 [17:35:52]MH_I2C_Read... [17:35:52]Read from MH i2c: D1 01 00 [17:35:52]MH_I2C_Read... [17:35:52]Read from MH i2c: D1 01 00 13 04 00 E8 [17:35:52]Write to MH i2c: 01 00 00 14 04 18 [17:35:52]Write i2c OK [17:35:52]MH_I2C_Read... [17:35:52]*** Cut start [17:35:52]*** Partial cut [17:35:52]*** CUTSNS_PIN = 1 [17:35:52]*** CUTSNS_PIN = 0 [17:35:53]*** Brake cut motor [17:35:53]Read from MH i2c: 01 [17:35:53]MH_I2C_Read... [17:35:53]*** Stop cut motor [17:35:53]*** Cut end [17:35:53]Read from MH i2c: 01 07 00 [17:35:53]MH_I2C_Read... [17:35:53]Read from MH i2c: 01 07 00 14 04 00 00 00 00 00 FF 0F 2D [17:35:53]process_action print_text done [17:35:53]requested_data is exist [17:35:53]produce_requested_data [17:35:53]requested_item fm.sn is exist - process it [17:35:53]wFMCommunicate request_size=4 [17:35:53]MH_SAM_APDU [17:35:53]CAPDU: 80 11 00 00 [17:35:53]Write to MH i2c: E2 08 00 15 04 80 11 00 00 00 00 00 00 93 [17:35:53]Write i2c OK [17:35:53]MH_I2C_Read... [17:35:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:35:53]Read from MH i2c: E2 [17:35:53]MH_I2C_Read... [17:35:53]Read from MH i2c: E2 17 00 [17:35:53]MH_I2C_Read... [17:35:53]Read from MH i2c: E2 17 00 15 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 E6 [17:35: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:35:53]wFMCommunicate OK [17:35:53]requested_item fd.num is exist - process it [17:35:53]SAM_PROTO_GetFieldsCounters [17:35:53]wFMCommunicate request_size=4 [17:35:53]MH_SAM_APDU [17:35:53]CAPDU: 80 13 00 00 [17:35:53]Write to MH i2c: E2 08 00 16 04 80 13 00 00 00 00 00 00 96 [17:35:53]Write i2c OK [17:35:53]MH_I2C_Read... [17:35:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:35:53]Read from MH i2c: E2 [17:35:53]MH_I2C_Read... [17:35:53]Read from MH i2c: E2 62 00 [17:35:53]MH_I2C_Read... [17:35:53]Read from MH i2c: E2 62 00 16 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 00 97 01 00 0E 04 04 00 63 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 12 [17:35:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 73 00 00 00 5E 04 04 00 73 00 00 00 57 04 04 00 74 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:35:53]wFMCommunicate OK [17:35:53]SAM_PROTO_GetFieldsCounters done [17:35:53]requested_item shift.num is exist - process it [17:35:53]requested_item shift.opened is exist - process it [17:35:53]req_shift_opened [17:35:53]FM_GetShiftState [17:35:53]SAM_PROTO_GetShiftState [17:35:53]wFMCommunicate request_size=4 [17:35:53]MH_SAM_APDU [17:35:53]CAPDU: 80 13 01 00 [17:35:53]Write to MH i2c: E2 08 00 17 04 80 13 01 00 00 00 00 00 98 [17:35:53]Write i2c OK [17:35:53]MH_I2C_Read... [17:35:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:35:53]Read from MH i2c: E2 [17:35:53]MH_I2C_Read... [17:35:53]Read from MH i2c: E2 0E 00 [17:35:53]MH_I2C_Read... [17:35:53]Read from MH i2c: E2 0E 00 17 04 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 AB [17:35:53]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [17:35:53]wFMCommunicate OK [17:35:53]SAM_PROTO_GetShiftState done [17:35:53]FM_GetShiftState done [17:35:53]req_shift_opened done [17:35:53]requested_item shift.open_date is exist - process it [17:35:53]req_shift_open_date [17:35:53]req_shift_open_date done [17:35:53]produce_requested_data done [17:35:53]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104192,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [17:35:53]process_action_free print_text [17:35:53]json_value_free [17:35:53]json_value_free done [17:35:53]process_json_proto returns [17:35:53]Send response to host [17:35:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104192,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [17:35:53]free response buf [17:35:53]execute_script done [17:35:53]execute_script returns [17:35:53]free content buf [17:35:53]Sock 7.Close socket [17:35:53]Sock 7.Thread stoped [17:35:56]OFD Sender: No OFD packet to send [17:36:01]OFD Sender: No OFD packet to send [17:36:06]OFD Sender: No OFD packet to send [17:36:11]OFD Sender: No OFD packet to send [17:36:16]OFD Sender: No OFD packet to send [17:36:21]OFD Sender: No OFD packet to send [17:36:26]OFD Sender: No OFD packet to send [17:36:31]OFD Sender: No OFD packet to send [17:36:36]OFD Sender: No OFD packet to send [17:36:41]accept exits with 9 [17:36:41]New connection [17:36:41]New thread 3066789220 created [17:36:41]Thread 3066932580 joined [17:36:41]Waiting for new connection... [17:36:41] Sock 9.Parse request [17:36:41]Sock 9.Check first char [17:36:41]Sock 9.First char is OK [17:36:41]request: POST /json_proto HTTP/1.0 [17:36:41]Method: POST [17:36:41]URL: /json_proto [17:36:41]Method is POST - this is cgi request [17:36:41]url: /json_proto [17:36:41]query_string will be loaded in cgi processing [17:36:41]execute_cgi json_proto POST (null) [17:36:41]execute_cgi path=json_proto method=POST [17:36:41]POST find Content-Length [17:36:41]Host: 172.17.38.133:8080 [17:36:41]Content-Length: 677 [17:36:41]Content-Type: application/json [17:36:41] [17:36:41]POST finish read [17:36:41]Found Content-Length = 677 [17:36:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673639", "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" : 1.690, "sum" : 112.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 112.00, "total" : 112.00, "payments": [ { "type": 0, "sum" : 112.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:36:41]execute_script... [17:36: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)673639", "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" : 1.690, "sum" : 112.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 112.00, "total" : 112.00, "payments": [ { "type": 0, "sum" : 112.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:36:41]POST & json_proto [17:36:41]process_json_proto [17:36:41]json parsed OK: [17:36:41]protocol is kg_v1.0 [17:36:41]action value=close_receipt [17:36:41]process_action close_receipt [17:36:41]cmd_close_receipt [17:36:41]MH_GetDate [17:36:41]Write to MH i2c: F0 00 00 18 04 0B [17:36:41]Write i2c OK [17:36:41]MH_I2C_Read... [17:36:41]Read from MH i2c: F0 [17:36:41]MH_I2C_Read... [17:36:41]Read from MH i2c: F0 09 00 [17:36:41]MH_I2C_Read... [17:36:41]Read from MH i2c: F0 09 00 18 04 00 29 BA 75 66 BD 8F 7C 64 FE [17:36:41]GetLastDocTimeStamp 1718991258 [17:36:41]current date 1718991401 [17:36:41]FM_GetShiftState [17:36:41]SAM_PROTO_GetShiftState [17:36:41]wFMCommunicate request_size=4 [17:36:41]MH_SAM_APDU [17:36:41]CAPDU: 80 13 01 00 [17:36:41]Write to MH i2c: E2 08 00 19 04 80 13 01 00 00 00 00 00 9A [17:36:41]Write i2c OK [17:36:41]MH_I2C_Read... [17:36:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:36:41]Read from MH i2c: E2 [17:36:41]MH_I2C_Read... [17:36:41]Read from MH i2c: E2 0E 00 [17:36:41]MH_I2C_Read... [17:36:41]Read from MH i2c: E2 0E 00 19 04 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 AD [17:36:41]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [17:36:41]wFMCommunicate OK [17:36:41]SAM_PROTO_GetShiftState done [17:36:41]FM_GetShiftState done [17:36:41]opened in 1718929509 [17:36:41]opened+sec_in_day 1719015909 [17:36:41]quantity*price = 11221 [17:36:41]sum+1 = 11223 [17:36:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 112.00 Внесено: 112.00 СДАЧА: 0.00 НСП 1% : 0.99 НДС 12% : 11.92 Наличными: 112.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 116 21.06.2024 17:36 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104193 ФПД: 40719882789770 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T173641&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104193&fm=40719882789770&tin=02508201610067®Number=0000000000092785&sum=11200 [17:36:42]StoreToDocumentArchive [17:36:42]shift 355 fd 104193 [17:36:42]save to /storage/0355/doc_00104193 [17:36:42]save last doc name /storage/0355/doc_00104193 to /storage/kkm_last_doc_name [17:36:42]save OK [17:36:42]Clear old archive folders... [17:36:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:36:42]tlvbuf is 010B78D0 [17:36:42]SAM_PROTO_ClearQueue [17:36:42]wFMCommunicate request_size=4 [17:36:42]MH_SAM_APDU [17:36:42]CAPDU: 80 09 00 00 [17:36:42]Write to MH i2c: E2 08 00 26 04 80 09 00 00 00 00 00 00 9C [17:36:42]Write i2c OK [17:36:42]MH_I2C_Read... [17:36:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:36:42]Read from MH i2c: E2 [17:36:42]MH_I2C_Read... [17:36:42]Read from MH i2c: E2 03 00 [17:36:42]MH_I2C_Read... [17:36:42]Read from MH i2c: E2 03 00 26 04 00 90 00 9E [17:36:42]RAPDU: 90 00 [17:36:42]wFMCommunicate OK [17:36:42]SAM_PROTO_ClearQueue done [17:36:42]KKMCreateOFDPacket [17:36:42]OFDProtocolAddRootSTLVToBuf [17:36:42]FM_MakeSignedData [17:36:42]FM_MakeSignedData [17:36:42]SAM_PROTO_SignData [17:36:42]wFMCommunicate request_size=4 [17:36:42]MH_SAM_APDU [17:36:42]CAPDU: 80 0D 01 02 [17:36:42]Write to MH i2c: E2 08 00 27 04 80 0D 01 02 00 00 00 00 A4 [17:36:42]Write i2c OK [17:36:42]MH_I2C_Read... [17:36:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:36:42]Read from MH i2c: E2 [17:36:42]MH_I2C_Read... [17:36:42]Read from MH i2c: E2 03 00 [17:36:42]MH_I2C_Read... [17:36:42]Read from MH i2c: E2 03 00 27 04 00 90 00 9F [17:36:42]RAPDU: 90 00 [17:36:42]wFMCommunicate OK [17:36:42]wFMCommunicate request_size=255 [17:36:42]MH_SAM_APDU [17:36: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 9A 06 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 D6 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 2B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A8 04 00 00 00 00 07 04 06 00 C0 2B 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 29 BA 75 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 01 97 01 00 35 04 06 00 25 [17:36:42]Write to MH i2c: E2 02 01 28 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 9A 06 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 D6 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 2B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A8 04 00 00 00 00 07 04 06 00 C0 2B 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 29 BA 75 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 01 97 01 00 35 04 06 00 25 00 00 97 [17:36:42]Write i2c OK [17:36:42]MH_I2C_Read... [17:36:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:36:42]Read from MH i2c: E2 [17:36:42]MH_I2C_Read... [17:36:42]Read from MH i2c: E2 03 00 [17:36:42]MH_I2C_Read... [17:36:42]Read from MH i2c: E2 03 00 28 04 00 90 00 A0 [17:36:42]RAPDU: 90 00 [17:36:42]wFMCommunicate OK [17:36:42]wFMCommunicate request_size=10 [17:36:42]MH_SAM_APDU [17:36:42]CAPDU: 80 0D 02 02 05 08 D6 26 23 8A [17:36:42]Write to MH i2c: E2 0D 00 29 04 80 0D 02 02 05 00 08 D6 26 23 8A 00 00 62 [17:36:42]Write i2c OK [17:36:42]MH_I2C_Read... [17:36:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:36:42]Read from MH i2c: E2 [17:36:42]MH_I2C_Read... [17:36:42]Read from MH i2c: E2 03 00 [17:36:42]MH_I2C_Read... [17:36:42]Read from MH i2c: E2 03 00 29 04 00 90 00 A1 [17:36:42]RAPDU: 90 00 [17:36:42]wFMCommunicate OK [17:36:42]wFMCommunicate request_size=4 [17:36:42]MH_SAM_APDU [17:36:42]CAPDU: 80 0D 03 02 [17:36:42]Write to MH i2c: E2 08 00 2A 04 80 0D 03 02 00 00 00 00 A9 [17:36:42]Write i2c OK [17:36:42]MH_I2C_Read... [17:36:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:36:42]Read from MH i2c: E2 [17:36:42]MH_I2C_Read... [17:36:42]Read from MH i2c: E2 0B 00 [17:36:42]MH_I2C_Read... [17:36:42]Read from MH i2c: E2 0B 00 2A 04 00 3E 43 A6 F4 8B 86 7A 1C 90 00 6C [17:36:42]RAPDU: 3E 43 A6 F4 8B 86 7A 1C 90 00 [17:36:42]wFMCommunicate OK [17:36:42]SAM_PROTO_SignData done [17:36:42]FM_MakeSignedData done [17:36:42]CreateOFDProtocolMessage [17:36:42]wFMCommunicate request_size=4 [17:36:42]MH_SAM_APDU [17:36:42]CAPDU: 80 11 00 00 [17:36:42]Write to MH i2c: E2 08 00 2B 04 80 11 00 00 00 00 00 00 A9 [17:36:42]Write i2c OK [17:36:42]MH_I2C_Read... [17:36:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:36:42]Read from MH i2c: E2 [17:36:42]MH_I2C_Read... [17:36:42]Read from MH i2c: E2 17 00 [17:36:42]MH_I2C_Read... [17:36:42]Read from MH i2c: E2 17 00 2B 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 FC [17:36: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:36:42]wFMCommunicate OK [17:36:42]CreateOFDProtocolMessage done [17:36:42]OFDSenderStorePacket 104193 [17:36:42]StoreOFDPacket docnum=104193 [17:36: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 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9A 06 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 D6 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 2B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A8 04 00 00 00 00 07 04 06 00 C0 2B 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 29 BA 75 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 01 97 01 00 35 04 06 00 25 08 D6 26 23 8A 3E 43 A6 F4 8B 86 7A 1C [17:36:42]CheckFolder [17:36:42]dirname=/storage/ofd_packets [17:36:42]CheckFolder done [17:36:42]ProducePacketName [17:36:42]name=ofd_packets/00104193 [17:36:42]NVStorageSaveData ofd_packets/00104193 [17:36:42]File name is /storage/ofd_packets/00104193 [17:36:42]Write 301 bytes [17:36:42]NVStorageSaveData done [17:36:42]OFDSenderStorePacket done [17:36:42]KKMCreateOFDPacket done [17:36:42]NVStorageSaveData kkm_last_timestamp [17:36:42]File name is /storage/kkm_last_timestamp [17:36:42]Write 4 bytes [17:36:42]NVStorageSaveData done [17:36:42]ExternCall_PrintAddStr [17:36:42]wPrintStart [17:36:42]Write to MH i2c: 01 00 00 2C 04 30 [17:36:42]Write i2c OK [17:36:42]MH_I2C_Read... [17:36:42]Read from MH i2c: 01 [17:36:42]MH_I2C_Read... [17:36:42]Read from MH i2c: 01 07 00 [17:36:42]MH_I2C_Read... [17:36:42]Read from MH i2c: 01 07 00 2C 04 00 00 00 00 00 FF 0F 45 [17:36:42]RasterBufferAndPrint [17:36:42]line Счет N : (1)673639 [17:36:42]line ИНН: 02508201610067 [17:36:42]line Контрольно-Кассовый Чек [17:36:42]line ПРОДАЖА [17:36:42]line ТРК (МРК, ГНК) : 42 [17:36:42]line Товар: 2710124130 [17:36:42]line Аи-92-К-5 [17:36:42]line 1.690 * 66.40 [17:36:42]line = 112.22 [17:36:42]line НДС 12% НСП 1% [17:36:42]line > о реализуемом товаре [17:36:42]line ОКРУГЛЕНИЕ: -0.22 [17:36:42]line ИТОГО: 112.00 [17:36:42]line Внесено: 112.00 [17:36:42]line СДАЧА: 0.00 [17:36:42]line НСП 1% : 0.99 [17:36:42]line НДС 12% : 11.92 [17:36:42]line Наличными: 112.00 [17:36:42]line Безнал.: 0.00 [17:36:42]line Место: АЗС № 120 "Партнер Нефть" [17:36:42]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [17:36:42]line СНО: Общий режим [17:36:42]line Чек 116 21.06.2024 17:36 [17:36:42]line Смена: 355 ФФД: 1.0 [17:36:42]line ЗНМ: 0300000164 [17:36:42]line РНМ: 0000000000092785 [17:36:42]line Версия ККМ: 001 [17:36:42]line ФМ: 0000000000875093 [17:36:42]line ФД: 104193 [17:36:42]line ФПД: 40719882789770 [17:36:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T173641&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104193&fm=40719882789770&tin=02508201610067®Number=0000000000092785&sum=11200 [17:36:43]written 0, free lines is 4095 [17:36:43]OFD Sender: Processing packet 104193 [packets to send 17, broken 16] [17:36:43]ProducePacketName [17:36:43]name=ofd_packets/00104193 [17:36:43]OFD Sender: To server: pG, [17:36:43]CommunicateWithHost lk.salyk.kg:30040 [17:36:43]ConnectInit lk.salyk.kg [17:36:43]Connected sock=10 [17:36: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 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9A 06 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 D6 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 2B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A8 04 00 00 00 00 07 04 06 00 C0 2B 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 29 BA 75 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 01 97 01 00 35 04 06 00 25 08 D6 26 23 8A 3E 43 A6 F4 8B 86 7A 1C [17:36: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 30 4E 47 00 AE 7F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 01 97 01 00 F4 03 04 00 AB 60 75 66 B6 04 01 00 00 95 52 84 FB 1D EC 6D 62 [17:36:43]CommunicateWithHost err = 0 [17:36:43]CheckOFDResponse [17:36:43]1017 (14) - 77093643461234 [17:36:43]1041 (16) - 0000000000875093 [17:36:43]1040 (4) - 104193 [17:36:43]1012 (4) - 21.06.2024 11:14 [17:36:43]1206 (1) - 0 [17:36:43]OFD Sender: Remove packet 104193 [17:36:43]ProducePacketName [17:36:43]name=ofd_packets/00104193 [17:36:43]NVStorageDeleteData [17:36:43]Write to MH i2c: 01 00 00 57 04 5B [17:36:43]Write i2c OK [17:36:43]MH_I2C_Read... [17:36:43]Read from MH i2c: 01 [17:36:43]MH_I2C_Read... [17:36:43]Read from MH i2c: 01 07 00 [17:36:43]MH_I2C_Read... [17:36:43]Read from MH i2c: 01 07 00 57 04 00 00 00 00 00 E6 0C 54 [17:36:43]RasterBufferAndPrint [17:36:43]line [17:36:43]line [17:36:43]line [17:36:43]line [17:36:43]line [17:36:43]written 0, free lines is 3308 [17:36:43]MH_Cut [17:36:43]Write to MH i2c: D1 01 00 5E 04 01 34 [17:36:43]Write i2c OK [17:36:43]MH_I2C_Read... [17:36:43]Read from MH i2c: D1 [17:36:43]MH_I2C_Read... [17:36:43]Read from MH i2c: D1 01 00 [17:36:43]MH_I2C_Read... [17:36:43]Read from MH i2c: D1 01 00 5E 04 00 33 [17:36:43]Write to MH i2c: 01 00 00 5F 04 63 [17:36:43]Write i2c OK [17:36:43]MH_I2C_Read... [17:36:44]OFD Sender: No OFD packet to send [17:36:44]*** Cut start [17:36:44]*** Partial cut [17:36:44]*** CUTSNS_PIN = 1 [17:36:44]*** CUTSNS_PIN = 0 [17:36:44]*** Brake cut motor [17:36:44]Read from MH i2c: 01 [17:36:44]MH_I2C_Read... [17:36:44]*** Stop cut motor [17:36:44]*** Cut end [17:36:44]Read from MH i2c: 01 07 00 [17:36:44]MH_I2C_Read... [17:36:44]Read from MH i2c: 01 07 00 5F 04 00 00 00 00 00 FF 0F 78 [17:36:44]process_action close_receipt done [17:36:44]requested_data is exist [17:36:44]produce_requested_data [17:36:44]requested_item fm.sn is exist - process it [17:36:44]wFMCommunicate request_size=4 [17:36:44]MH_SAM_APDU [17:36:44]CAPDU: 80 11 00 00 [17:36:44]Write to MH i2c: E2 08 00 60 04 80 11 00 00 00 00 00 00 DE [17:36:44]Write i2c OK [17:36:44]MH_I2C_Read... [17:36:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:36:45]Read from MH i2c: E2 [17:36:45]MH_I2C_Read... [17:36:45]Read from MH i2c: E2 17 00 [17:36:45]MH_I2C_Read... [17:36:45]Read from MH i2c: E2 17 00 60 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 31 [17:36: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:36:45]wFMCommunicate OK [17:36:45]requested_item fd.num is exist - process it [17:36:45]SAM_PROTO_GetFieldsCounters [17:36:45]wFMCommunicate request_size=4 [17:36:45]MH_SAM_APDU [17:36:45]CAPDU: 80 13 00 00 [17:36:45]Write to MH i2c: E2 08 00 61 04 80 13 00 00 00 00 00 00 E1 [17:36:45]Write i2c OK [17:36:45]MH_I2C_Read... [17:36:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:36:45]Read from MH i2c: E2 [17:36:45]MH_I2C_Read... [17:36:45]Read from MH i2c: E2 62 00 [17:36:45]MH_I2C_Read... [17:36:45]Read from MH i2c: E2 62 00 61 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 01 97 01 00 0E 04 04 00 63 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 61 [17:36: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 01 97 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:36:45]wFMCommunicate OK [17:36:45]SAM_PROTO_GetFieldsCounters done [17:36:45]requested_item shift.num is exist - process it [17:36:45]requested_item shift.opened is exist - process it [17:36:45]req_shift_opened [17:36:45]FM_GetShiftState [17:36:45]SAM_PROTO_GetShiftState [17:36:45]wFMCommunicate request_size=4 [17:36:45]MH_SAM_APDU [17:36:45]CAPDU: 80 13 01 00 [17:36:45]Write to MH i2c: E2 08 00 62 04 80 13 01 00 00 00 00 00 E3 [17:36:45]Write i2c OK [17:36:45]MH_I2C_Read... [17:36:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:36:45]Read from MH i2c: E2 [17:36:45]MH_I2C_Read... [17:36:45]Read from MH i2c: E2 0E 00 [17:36:45]MH_I2C_Read... [17:36:45]Read from MH i2c: E2 0E 00 62 04 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 F6 [17:36:45]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [17:36:45]wFMCommunicate OK [17:36:45]SAM_PROTO_GetShiftState done [17:36:45]FM_GetShiftState done [17:36:45]req_shift_opened done [17:36:45]requested_item shift.open_date is exist - process it [17:36:45]req_shift_open_date [17:36:45]req_shift_open_date done [17:36:45]produce_requested_data done [17:36:45]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104193,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [17:36:45]process_action_free close_receipt [17:36:45]json_value_free [17:36:45]json_value_free done [17:36:45]process_json_proto returns [17:36:45]Send response to host [17:36:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104193,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [17:36:45]free response buf [17:36:45]execute_script done [17:36:45]execute_script returns [17:36:45]free content buf [17:36:45]Sock 9.Close socket [17:36:45]Sock 9.Thread stoped [17:36:49]OFD Sender: No OFD packet to send [17:36:54]OFD Sender: No OFD packet to send [17:36:59]OFD Sender: No OFD packet to send [17:37:04]OFD Sender: No OFD packet to send [17:37:09]OFD Sender: No OFD packet to send [17:37:14]OFD Sender: No OFD packet to send [17:37:19]OFD Sender: No OFD packet to send [17:37:24]OFD Sender: No OFD packet to send [17:37:29]OFD Sender: No OFD packet to send [17:37:34]OFD Sender: No OFD packet to send [17:37:39]OFD Sender: No OFD packet to send [17:37:44]OFD Sender: No OFD packet to send [17:37:49]OFD Sender: No OFD packet to send [17:37:54]OFD Sender: No OFD packet to send [17:37:59]OFD Sender: No OFD packet to send [17:38:04]OFD Sender: No OFD packet to send [17:38:09]OFD Sender: No OFD packet to send [17:38:14]OFD Sender: No OFD packet to send [17:38:19]OFD Sender: No OFD packet to send [17:38:24]OFD Sender: No OFD packet to send [17:38:29]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:09]OFD Sender: No OFD packet to send [17:41:14]OFD Sender: No OFD packet to send [17:41:19]OFD Sender: No OFD packet to send [17:41:24]OFD Sender: No OFD packet to send [17:41:29]OFD Sender: No OFD packet to send [17:41:34]OFD Sender: No OFD packet to send [17:41:39]OFD Sender: No OFD packet to send [17:41:44]OFD Sender: No OFD packet to send [17:41:49]OFD Sender: No OFD packet to send [17:41:54]OFD Sender: No OFD packet to send [17:41:59]OFD Sender: No OFD packet to send [17:42:04]OFD Sender: No OFD packet to send [17:42:09]OFD Sender: No OFD packet to send [17:42:14]OFD Sender: No OFD packet to send [17:42:19]OFD Sender: No OFD packet to send [17:42:24]OFD Sender: No OFD packet to send [17:42:29]OFD Sender: No OFD packet to send [17:42:34]OFD Sender: No OFD packet to send [17:42:39]OFD Sender: No OFD packet to send [17:42:44]OFD Sender: No OFD packet to send [17:42:49]OFD Sender: No OFD packet to send [17:42:54]OFD Sender: No OFD packet to send [17:42:59]OFD Sender: No OFD packet to send [17:43:04]OFD Sender: No OFD packet to send [17:43:09]OFD Sender: No OFD packet to send [17:43:14]OFD Sender: No OFD packet to send [17:43:19]OFD Sender: No OFD packet to send [17:43:24]OFD Sender: No OFD packet to send [17:43:29]OFD Sender: No OFD packet to send [17:43:34]OFD Sender: No OFD packet to send [17:43:39]OFD Sender: No OFD packet to send [17:43:44]OFD Sender: No OFD packet to send [17:43:49]OFD Sender: No OFD packet to send [17:43:54]OFD Sender: No OFD packet to send [17:43:59]OFD Sender: No OFD packet to send [17:44:04]OFD Sender: No OFD packet to send [17:44:09]OFD Sender: No OFD packet to send [17:44:14]OFD Sender: No OFD packet to send [17:44:19]OFD Sender: No OFD packet to send [17:44:24]OFD Sender: No OFD packet to send [17:44:29]OFD Sender: No OFD packet to send [17:44:34]OFD Sender: No OFD packet to send [17:44:39]OFD Sender: No OFD packet to send [17:44:44]OFD Sender: No OFD packet to send [17:44:49]OFD Sender: No OFD packet to send [17:44:54]OFD Sender: No OFD packet to send [17:44:59]OFD Sender: No OFD packet to send [17:45:04]OFD Sender: No OFD packet to send [17:45:09]OFD Sender: No OFD packet to send [17:45:14]OFD Sender: No OFD packet to send [17:45:19]OFD Sender: No OFD packet to send [17:45:24]OFD Sender: No OFD packet to send [17:45:29]OFD Sender: No OFD packet to send [17:45:34]OFD Sender: No OFD packet to send [17:45:39]OFD Sender: No OFD packet to send [17:45:44]OFD Sender: No OFD packet to send [17:45:49]OFD Sender: No OFD packet to send [17:45:54]OFD Sender: No OFD packet to send [17:45:59]OFD Sender: No OFD packet to send [17:46:04]OFD Sender: No OFD packet to send [17:46:09]OFD Sender: No OFD packet to send [17:46:14]OFD Sender: No OFD packet to send [17:46:19]OFD Sender: No OFD packet to send [17:46:24]OFD Sender: No OFD packet to send [17:46:29]OFD Sender: No OFD packet to send [17:46:34]OFD Sender: No OFD packet to send [17:46:39]OFD Sender: No OFD packet to send [17:46:44]OFD Sender: No OFD packet to send [17:46:49]OFD Sender: No OFD packet to send [17:46:54]OFD Sender: No OFD packet to send [17:46:59]OFD Sender: No OFD packet to send [17:47:00]accept exits with 7 [17:47:00]New connection [17:47:00]New thread 3066932580 created [17:47:00]Thread 3066789220 joined [17:47:00]Waiting for new connection... [17:47:00] Sock 7.Parse request [17:47:00]Sock 7.Check first char [17:47:00]Sock 7.First char is OK [17:47:00]request: POST /json_proto HTTP/1.0 [17:47:00]Method: POST [17:47:00]URL: /json_proto [17:47:00]Method is POST - this is cgi request [17:47:00]url: /json_proto [17:47:00]query_string will be loaded in cgi processing [17:47:00]execute_cgi json_proto POST (null) [17:47:00]execute_cgi path=json_proto method=POST [17:47:00]POST find Content-Length [17:47:00]Host: 172.17.38.133:8080 [17:47:00]Content-Length: 1157 [17:47:00]Content-Type: application/json [17:47:00] [17:47:00]POST finish read [17:47:00]Found Content-Length = 1157 [17:47:00]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)673642\u000A21.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 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\u000A30060422\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:47:00]execute_script... [17:47:00]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)673642\u000A21.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 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\u000A30060422\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:47:00]POST & json_proto [17:47:00]process_json_proto [17:47:00]json parsed OK: [17:47:00]protocol is kg_v1.0 [17:47:00]action value=print_text [17:47:00]process_action print_text [17:47:00]cmd_print_text [17:47:00]ExternCall_PrintAddStr [17:47:00]wPrintStart [17:47:00]Write to MH i2c: 01 00 00 63 04 67 [17:47:00]Write i2c OK [17:47:00]MH_I2C_Read... [17:47:00]Read from MH i2c: 01 [17:47:00]MH_I2C_Read... [17:47:00]Read from MH i2c: 01 07 00 [17:47:00]MH_I2C_Read... [17:47:00]Read from MH i2c: 01 07 00 63 04 00 00 00 00 00 FF 0F 7C [17:47:00]RasterBufferAndPrint [17:47:00]line *****ТОВАРНЫЙ ЧЕК***** [17:47:00]line АЗС 120 [17:47:00]line Партнер нефть [17:47:00]line 02508201610067 [17:47:00]line Кассир : Асанбаев Н. [17:47:00]line Счет N : (1)673642 [17:47:00]line 21.06.2024 17:24 [17:47:00]line ПРОДАЖА [17:47:00]line ТРК (МРК, ГНК): 42 [17:47:00]line Вид ГСМ : 2710124130 [17:47:00]line Аи-92-К-5 [17:47:00]line 15.070 x 66.40 [17:47:00]line ИТОГ: 1000.65 [17:47:00]line Тип оплаты: Талоны: ТК ГПНА Online [17:47:00]line 30060422 [17:47:00]line ______________________ [17:47:00]line (подпись) [17:47:00]written 0, free lines is 4095 [17:47:00]Write to MH i2c: 01 00 00 77 04 7B [17:47:00]Write i2c OK [17:47:00]MH_I2C_Read... [17:47:00]Read from MH i2c: 01 [17:47:00]MH_I2C_Read... [17:47:00]Read from MH i2c: 01 07 00 [17:47:00]MH_I2C_Read... [17:47:00]Read from MH i2c: 01 07 00 77 04 00 00 00 00 00 11 0E A1 [17:47:00]RasterBufferAndPrint [17:47:00]line [17:47:00]line [17:47:00]line [17:47:00]line [17:47:00]line [17:47:00]written 0, free lines is 3602 [17:47:00]MH_Cut [17:47:00]Write to MH i2c: D1 01 00 7E 04 01 54 [17:47:00]Write i2c OK [17:47:00]MH_I2C_Read... [17:47:00]Read from MH i2c: D1 [17:47:00]MH_I2C_Read... [17:47:00]Read from MH i2c: D1 01 00 [17:47:00]MH_I2C_Read... [17:47:00]Read from MH i2c: D1 01 00 7E 04 00 53 [17:47:00]Write to MH i2c: 01 00 00 7F 04 83 [17:47:00]Write i2c OK [17:47:00]MH_I2C_Read... [17:47:01]*** Cut start [17:47:01]*** Partial cut [17:47:01]*** CUTSNS_PIN = 1 [17:47:01]*** CUTSNS_PIN = 0 [17:47:01]*** Brake cut motor [17:47:01]Read from MH i2c: 01 [17:47:01]MH_I2C_Read... [17:47:01]*** Stop cut motor [17:47:01]*** Cut end [17:47:01]Read from MH i2c: 01 07 00 [17:47:01]MH_I2C_Read... [17:47:01]Read from MH i2c: 01 07 00 7F 04 00 00 00 00 00 FF 0F 98 [17:47:01]process_action print_text done [17:47:01]requested_data is exist [17:47:01]produce_requested_data [17:47:01]requested_item fm.sn is exist - process it [17:47:01]wFMCommunicate request_size=4 [17:47:01]MH_SAM_APDU [17:47:01]CAPDU: 80 11 00 00 [17:47:01]Write to MH i2c: E2 08 00 80 04 80 11 00 00 00 00 00 00 FE [17:47:01]Write i2c OK [17:47:01]MH_I2C_Read... [17:47:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:47:01]Read from MH i2c: E2 [17:47:01]MH_I2C_Read... [17:47:01]Read from MH i2c: E2 17 00 [17:47:01]MH_I2C_Read... [17:47:01]Read from MH i2c: E2 17 00 80 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 51 [17:47:01]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:01]wFMCommunicate OK [17:47:01]requested_item fd.num is exist - process it [17:47:01]SAM_PROTO_GetFieldsCounters [17:47:01]wFMCommunicate request_size=4 [17:47:01]MH_SAM_APDU [17:47:01]CAPDU: 80 13 00 00 [17:47:01]Write to MH i2c: E2 08 00 81 04 80 13 00 00 00 00 00 00 01 [17:47:01]Write i2c OK [17:47:01]MH_I2C_Read... [17:47:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:47:01]Read from MH i2c: E2 [17:47:01]MH_I2C_Read... [17:47:01]Read from MH i2c: E2 62 00 [17:47:01]MH_I2C_Read... [17:47:01]Read from MH i2c: E2 62 00 81 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 01 97 01 00 0E 04 04 00 63 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 81 [17:47: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 01 97 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:47:01]wFMCommunicate OK [17:47:01]SAM_PROTO_GetFieldsCounters done [17:47:01]requested_item shift.num is exist - process it [17:47:01]requested_item shift.opened is exist - process it [17:47:01]req_shift_opened [17:47:01]FM_GetShiftState [17:47:01]SAM_PROTO_GetShiftState [17:47:01]wFMCommunicate request_size=4 [17:47:01]MH_SAM_APDU [17:47:01]CAPDU: 80 13 01 00 [17:47:01]Write to MH i2c: E2 08 00 82 04 80 13 01 00 00 00 00 00 03 [17:47:01]Write i2c OK [17:47:01]MH_I2C_Read... [17:47:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:47:01]Read from MH i2c: E2 [17:47:01]MH_I2C_Read... [17:47:01]Read from MH i2c: E2 0E 00 [17:47:01]MH_I2C_Read... [17:47:01]Read from MH i2c: E2 0E 00 82 04 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 16 [17:47:01]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [17:47:01]wFMCommunicate OK [17:47:01]SAM_PROTO_GetShiftState done [17:47:01]FM_GetShiftState done [17:47:01]req_shift_opened done [17:47:01]requested_item shift.open_date is exist - process it [17:47:01]req_shift_open_date [17:47:01]req_shift_open_date done [17:47:01]produce_requested_data done [17:47:01]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104193,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [17:47:01]process_action_free print_text [17:47:01]json_value_free [17:47:01]json_value_free done [17:47:01]process_json_proto returns [17:47:01]Send response to host [17:47:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104193,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [17:47:01]free response buf [17:47:01]execute_script done [17:47:01]execute_script returns [17:47:01]free content buf [17:47:01]Sock 7.Close socket [17:47:01]Sock 7.Thread stoped [17:47:04]OFD Sender: No OFD packet to send [17:47:09]OFD Sender: No OFD packet to send [17:47:14]OFD Sender: No OFD packet to send [17:47:19]OFD Sender: No OFD packet to send [17:47:24]OFD Sender: No OFD packet to send [17:47:29]OFD Sender: No OFD packet to send [17:47:34]OFD Sender: No OFD packet to send [17:47:39]OFD Sender: No OFD packet to send [17:47:44]OFD Sender: No OFD packet to send [17:47:49]OFD Sender: No OFD packet to send [17:47:54]OFD Sender: No OFD packet to send [17:47:59]OFD Sender: No OFD packet to send [17:48:04]OFD Sender: No OFD packet to send [17:48:09]OFD Sender: No OFD packet to send [17:48:14]OFD Sender: No OFD packet to send [17:48:19]OFD Sender: No OFD packet to send [17:48:24]OFD Sender: No OFD packet to send [17:48:29]OFD Sender: No OFD packet to send [17:48:34]OFD Sender: No OFD packet to send [17:48:39]OFD Sender: No OFD packet to send [17:48:44]OFD Sender: No OFD packet to send [17:48:49]OFD Sender: No OFD packet to send [17:48:54]OFD Sender: No OFD packet to send [17:48:59]OFD Sender: No OFD packet to send [17:49:04]OFD Sender: No OFD packet to send [17:49:09]OFD Sender: No OFD packet to send [17:49:14]OFD Sender: No OFD packet to send [17:49:19]OFD Sender: No OFD packet to send [17:49:24]OFD Sender: No OFD packet to send [17:49:29]OFD Sender: No OFD packet to send [17:49:34]OFD Sender: No OFD packet to send [17:49:39]OFD Sender: No OFD packet to send [17:49:44]OFD Sender: No OFD packet to send [17:49:49]OFD Sender: No OFD packet to send [17:49:54]OFD Sender: No OFD packet to send [17:49:59]OFD Sender: No OFD packet to send [17:50:04]OFD Sender: No OFD packet to send [17:50:09]OFD Sender: No OFD packet to send [17:50:14]OFD Sender: No OFD packet to send [17:50:19]OFD Sender: No OFD packet to send [17:50:24]OFD Sender: No OFD packet to send [17:50:29]OFD Sender: No OFD packet to send [17:50:34]OFD Sender: No OFD packet to send [17:50:39]OFD Sender: No OFD packet to send [17:50:44]OFD Sender: No OFD packet to send [17:50:49]OFD Sender: No OFD packet to send [17:50:54]OFD Sender: No OFD packet to send [17:50:59]OFD Sender: No OFD packet to send [17:51:04]OFD Sender: No OFD packet to send [17:51:09]OFD Sender: No OFD packet to send [17:51:14]OFD Sender: No OFD packet to send [17:51:19]OFD Sender: No OFD packet to send [17:51:24]OFD Sender: No OFD packet to send [17:51:29]OFD Sender: No OFD packet to send [17:51:34]OFD Sender: No OFD packet to send [17:51:39]OFD Sender: No OFD packet to send [17:51:44]OFD Sender: No OFD packet to send [17:51:49]OFD Sender: No OFD packet to send [17:51:54]OFD Sender: No OFD packet to send [17:51:59]OFD Sender: No OFD packet to send [17:52:04]OFD Sender: No OFD packet to send [17:52:09]OFD Sender: No OFD packet to send [17:52:14]OFD Sender: No OFD packet to send [17:52:19]OFD Sender: No OFD packet to send [17:52:24]OFD Sender: No OFD packet to send [17:52:29]OFD Sender: No OFD packet to send [17:52:34]OFD Sender: No OFD packet to send [17:52:39]OFD Sender: No OFD packet to send [17:52:44]OFD Sender: No OFD packet to send [17:52:49]OFD Sender: No OFD packet to send [17:52:54]OFD Sender: No OFD packet to send [17:52:59]OFD Sender: No OFD packet to send [17:53:04]OFD Sender: No OFD packet to send [17:53:09]OFD Sender: No OFD packet to send [17:53:14]OFD Sender: No OFD packet to send [17:53:19]OFD Sender: No OFD packet to send [17:53:24]OFD Sender: No OFD packet to send [17:53:29]OFD Sender: No OFD packet to send [17:53:34]OFD Sender: No OFD packet to send [17:53:39]OFD Sender: No OFD packet to send [17:53:44]OFD Sender: No OFD packet to send [17:53:45]accept exits with 9 [17:53:45]New connection [17:53:45]New thread 3066789220 created [17:53:45]Thread 3066932580 joined [17:53:45]Waiting for new connection... [17:53:45] Sock 9.Parse request [17:53:45]Sock 9.Check first char [17:53:45]Sock 9.First char is OK [17:53:45]request: POST /json_proto HTTP/1.0 [17:53:45]Method: POST [17:53:45]URL: /json_proto [17:53:45]Method is POST - this is cgi request [17:53:45]url: /json_proto [17:53:45]query_string will be loaded in cgi processing [17:53:45]execute_cgi json_proto POST (null) [17:53:45]execute_cgi path=json_proto method=POST [17:53:45]POST find Content-Length [17:53:45]Host: 172.17.38.133:8080 [17:53:45]Content-Length: 1202 [17:53:45]Content-Type: application/json [17:53:45] [17:53:45]POST finish read [17:53:45]Found Content-Length = 1202 [17:53: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 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)673643\u000A21.06.2024 17:30\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 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\u000A01088\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:53:45]execute_script... [17:53: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 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)673643\u000A21.06.2024 17:30\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 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\u000A01088\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:53:45]POST & json_proto [17:53:45]process_json_proto [17:53:45]json parsed OK: [17:53:45]protocol is kg_v1.0 [17:53:45]action value=print_text [17:53:45]process_action print_text [17:53:45]cmd_print_text [17:53:45]ExternCall_PrintAddStr [17:53:45]wPrintStart [17:53:45]Write to MH i2c: 01 00 00 83 04 87 [17:53:45]Write i2c OK [17:53:45]MH_I2C_Read... [17:53:45]Read from MH i2c: 01 [17:53:45]MH_I2C_Read... [17:53:45]Read from MH i2c: 01 07 00 [17:53:45]MH_I2C_Read... [17:53:45]Read from MH i2c: 01 07 00 83 04 00 00 00 00 00 FF 0F 9C [17:53:45]RasterBufferAndPrint [17:53:45]line *****ТОВАРНЫЙ ЧЕК***** [17:53:45]line АЗС 120 [17:53:45]line Партнер нефть [17:53:45]line 02508201610067 [17:53:45]line Кассир : Асанбаев Н. [17:53:45]line Счет N : (1)673643 [17:53:45]line 21.06.2024 17:30 [17:53:45]line ПРОДАЖА [17:53:45]line ТРК (МРК, ГНК): 21 [17:53:45]line Вид ГСМ : 2710194210 [17:53:45]line ДТ(л)-К-5 [17:53:45]line 150.000 x 72.90 [17:53:45]line ИТОГ: 10935.00 [17:53:45]line Тип оплаты: Талоны: Топливная Карта [17:53:45]line 01088 [17:53:45]line ______________________ [17:53:45]line (подпись) [17:53:45]written 0, free lines is 4095 [17:53:45]Write to MH i2c: 01 00 00 97 04 9B [17:53:45]Write i2c OK [17:53:45]MH_I2C_Read... [17:53:45]Read from MH i2c: 01 [17:53:46]MH_I2C_Read... [17:53:46]Read from MH i2c: 01 07 00 [17:53:46]MH_I2C_Read... [17:53:46]Read from MH i2c: 01 07 00 97 04 00 00 00 00 00 11 0E C1 [17:53:46]RasterBufferAndPrint [17:53:46]line [17:53:46]line [17:53:46]line [17:53:46]line [17:53:46]line [17:53:46]written 0, free lines is 3602 [17:53:46]MH_Cut [17:53:46]Write to MH i2c: D1 01 00 9E 04 01 74 [17:53:46]Write i2c OK [17:53:46]MH_I2C_Read... [17:53:46]Read from MH i2c: D1 [17:53:46]MH_I2C_Read... [17:53:46]Read from MH i2c: D1 01 00 [17:53:46]MH_I2C_Read... [17:53:46]Read from MH i2c: D1 01 00 9E 04 00 73 [17:53:46]Write to MH i2c: 01 00 00 9F 04 A3 [17:53:46]Write i2c OK [17:53:46]MH_I2C_Read... [17:53:46]*** Cut start [17:53:46]*** Partial cut [17:53:46]*** CUTSNS_PIN = 1 [17:53:46]*** CUTSNS_PIN = 0 [17:53:46]*** Brake cut motor [17:53:47]Read from MH i2c: 01 [17:53:47]MH_I2C_Read... [17:53:47]*** Stop cut motor [17:53:47]*** Cut end [17:53:47]Read from MH i2c: 01 07 00 [17:53:47]MH_I2C_Read... [17:53:47]Read from MH i2c: 01 07 00 9F 04 00 00 00 00 00 FF 0F B8 [17:53:47]process_action print_text done [17:53:47]requested_data is exist [17:53:47]produce_requested_data [17:53:47]requested_item fm.sn is exist - process it [17:53:47]wFMCommunicate request_size=4 [17:53:47]MH_SAM_APDU [17:53:47]CAPDU: 80 11 00 00 [17:53:47]Write to MH i2c: E2 08 00 A0 04 80 11 00 00 00 00 00 00 1E [17:53:47]Write i2c OK [17:53:47]MH_I2C_Read... [17:53:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:53:47]Read from MH i2c: E2 [17:53:47]MH_I2C_Read... [17:53:47]Read from MH i2c: E2 17 00 [17:53:47]MH_I2C_Read... [17:53:47]Read from MH i2c: E2 17 00 A0 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 71 [17:53: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:53:47]wFMCommunicate OK [17:53:47]requested_item fd.num is exist - process it [17:53:47]SAM_PROTO_GetFieldsCounters [17:53:47]wFMCommunicate request_size=4 [17:53:47]MH_SAM_APDU [17:53:47]CAPDU: 80 13 00 00 [17:53:47]Write to MH i2c: E2 08 00 A1 04 80 13 00 00 00 00 00 00 21 [17:53:47]Write i2c OK [17:53:47]MH_I2C_Read... [17:53:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:53:47]Read from MH i2c: E2 [17:53:47]MH_I2C_Read... [17:53:47]Read from MH i2c: E2 62 00 [17:53:47]MH_I2C_Read... [17:53:47]Read from MH i2c: E2 62 00 A1 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 01 97 01 00 0E 04 04 00 63 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 A1 [17:53: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 01 97 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:53:47]wFMCommunicate OK [17:53:47]SAM_PROTO_GetFieldsCounters done [17:53:47]requested_item shift.num is exist - process it [17:53:47]requested_item shift.opened is exist - process it [17:53:47]req_shift_opened [17:53:47]FM_GetShiftState [17:53:47]SAM_PROTO_GetShiftState [17:53:47]wFMCommunicate request_size=4 [17:53:47]MH_SAM_APDU [17:53:47]CAPDU: 80 13 01 00 [17:53:47]Write to MH i2c: E2 08 00 A2 04 80 13 01 00 00 00 00 00 23 [17:53:47]Write i2c OK [17:53:47]MH_I2C_Read... [17:53:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:53:47]Read from MH i2c: E2 [17:53:47]MH_I2C_Read... [17:53:47]Read from MH i2c: E2 0E 00 [17:53:47]MH_I2C_Read... [17:53:47]Read from MH i2c: E2 0E 00 A2 04 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 36 [17:53:47]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [17:53:47]wFMCommunicate OK [17:53:47]SAM_PROTO_GetShiftState done [17:53:47]FM_GetShiftState done [17:53:47]req_shift_opened done [17:53:47]requested_item shift.open_date is exist - process it [17:53:47]req_shift_open_date [17:53:47]req_shift_open_date done [17:53:47]produce_requested_data done [17:53:47]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104193,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [17:53:47]process_action_free print_text [17:53:47]json_value_free [17:53:47]json_value_free done [17:53:47]process_json_proto returns [17:53:47]Send response to host [17:53:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104193,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [17:53:47]free response buf [17:53:47]execute_script done [17:53:47]execute_script returns [17:53:47]free content buf [17:53:47]Sock 9.Close socket [17:53:47]Sock 9.Thread stoped [17:53:49]OFD Sender: No OFD packet to send [17:53:54]OFD Sender: No OFD packet to send [17:53:59]OFD Sender: No OFD packet to send [17:54:04]OFD Sender: No OFD packet to send [17:54:09]OFD Sender: No OFD packet to send [17:54:14]OFD Sender: No OFD packet to send [17:54:19]OFD Sender: No OFD packet to send [17:54:24]OFD Sender: No OFD packet to send [17:54:29]OFD Sender: No OFD packet to send [17:54:34]OFD Sender: No OFD packet to send [17:54:39]OFD Sender: No OFD packet to send [17:54:44]OFD Sender: No OFD packet to send [17:54:49]OFD Sender: No OFD packet to send [17:54:54]OFD Sender: No OFD packet to send [17:54:59]OFD Sender: No OFD packet to send [17:55:04]OFD Sender: No OFD packet to send [17:55:09]OFD Sender: No OFD packet to send [17:55:14]OFD Sender: No OFD packet to send [17:55:19]OFD Sender: No OFD packet to send [17:55:24]OFD Sender: No OFD packet to send [17:55:29]OFD Sender: No OFD packet to send [17:55:34]OFD Sender: No OFD packet to send [17:55:40]OFD Sender: No OFD packet to send [17:55:45]OFD Sender: No OFD packet to send [17:55:50]OFD Sender: No OFD packet to send [17:55:55]OFD Sender: No OFD packet to send [17:56:00]OFD Sender: No OFD packet to send [17:56:05]OFD Sender: No OFD packet to send [17:56:10]OFD Sender: No OFD packet to send [17:56:15]OFD Sender: No OFD packet to send [17:56:20]OFD Sender: No OFD packet to send [17:56:25]OFD Sender: No OFD packet to send [17:56:30]OFD Sender: No OFD packet to send [17:56:35]OFD Sender: No OFD packet to send [17:56:40]OFD Sender: No OFD packet to send [17:56:45]OFD Sender: No OFD packet to send [17:56:50]OFD Sender: No OFD packet to send [17:56:55]OFD Sender: No OFD packet to send [17:57:00]OFD Sender: No OFD packet to send [17:57:05]OFD Sender: No OFD packet to send [17:57:10]OFD Sender: No OFD packet to send [17:57:15]OFD Sender: No OFD packet to send [17:57:20]OFD Sender: No OFD packet to send [17:57:25]OFD Sender: No OFD packet to send [17:57:30]OFD Sender: No OFD packet to send [17:57:35]OFD Sender: No OFD packet to send [17:57:40]OFD Sender: No OFD packet to send [17:57:45]OFD Sender: No OFD packet to send [17:57:50]OFD Sender: No OFD packet to send [17:57:55]OFD Sender: No OFD packet to send [17:58:00]OFD Sender: No OFD packet to send [17:58:05]OFD Sender: No OFD packet to send [17:58:10]OFD Sender: No OFD packet to send [17:58:15]OFD Sender: No OFD packet to send [17:58:20]OFD Sender: No OFD packet to send [17:58:25]OFD Sender: No OFD packet to send [17:58:30]OFD Sender: No OFD packet to send [17:58:35]OFD Sender: No OFD packet to send [17:58:40]OFD Sender: No OFD packet to send [17:58:45]OFD Sender: No OFD packet to send [17:58:50]OFD Sender: No OFD packet to send [17:58:55]OFD Sender: No OFD packet to send [17:59:00]OFD Sender: No OFD packet to send [17:59:00]accept exits with 7 [17:59:00]New connection [17:59:00]New thread 3066932580 created [17:59:00]Thread 3066789220 joined [17:59:00]Waiting for new connection... [17:59:00] Sock 7.Parse request [17:59:00]Sock 7.Check first char [17:59:00]Sock 7.First char is OK [17:59:00]request: POST /json_proto HTTP/1.0 [17:59:00]Method: POST [17:59:00]URL: /json_proto [17:59:00]Method is POST - this is cgi request [17:59:00]url: /json_proto [17:59:00]query_string will be loaded in cgi processing [17:59:00]execute_cgi json_proto POST (null) [17:59:00]execute_cgi path=json_proto method=POST [17:59:00]POST find Content-Length [17:59:00]Host: 172.17.38.133:8080 [17:59:00]Content-Length: 1156 [17:59:00]Content-Type: application/json [17:59:00] [17:59:00]POST finish read [17:59:00]Found Content-Length = 1156 [17:59:00]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)673644\u000A21.06.2024 17:36\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.550 x 66.40\u000A\u0418\u0422\u041E\u0413: 700.52\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30060422\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:59:00]execute_script... [17:59:00]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)673644\u000A21.06.2024 17:36\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.550 x 66.40\u000A\u0418\u0422\u041E\u0413: 700.52\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30060422\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:59:00]POST & json_proto [17:59:00]process_json_proto [17:59:00]json parsed OK: [17:59:00]protocol is kg_v1.0 [17:59:00]action value=print_text [17:59:00]process_action print_text [17:59:00]cmd_print_text [17:59:00]ExternCall_PrintAddStr [17:59:00]wPrintStart [17:59:00]Write to MH i2c: 01 00 00 A3 04 A7 [17:59:00]Write i2c OK [17:59:00]MH_I2C_Read... [17:59:00]Read from MH i2c: 01 [17:59:00]MH_I2C_Read... [17:59:00]Read from MH i2c: 01 07 00 [17:59:00]MH_I2C_Read... [17:59:00]Read from MH i2c: 01 07 00 A3 04 00 00 00 00 00 FF 0F BC [17:59:00]RasterBufferAndPrint [17:59:00]line *****ТОВАРНЫЙ ЧЕК***** [17:59:00]line АЗС 120 [17:59:00]line Партнер нефть [17:59:00]line 02508201610067 [17:59:00]line Кассир : Асанбаев Н. [17:59:00]line Счет N : (1)673644 [17:59:00]line 21.06.2024 17:36 [17:59:00]line ПРОДАЖА [17:59:00]line ТРК (МРК, ГНК): 42 [17:59:00]line Вид ГСМ : 2710124130 [17:59:00]line Аи-92-К-5 [17:59:00]line 10.550 x 66.40 [17:59:00]line ИТОГ: 700.52 [17:59:00]line Тип оплаты: Талоны: ТК ГПНА Online [17:59:00]line 30060422 [17:59:00]line ______________________ [17:59:00]line (подпись) [17:59:00]written 0, free lines is 4095 [17:59:01]Write to MH i2c: 01 00 00 B7 04 BB [17:59:01]Write i2c OK [17:59:01]MH_I2C_Read... [17:59:01]Read from MH i2c: 01 [17:59:01]MH_I2C_Read... [17:59:01]Read from MH i2c: 01 07 00 [17:59:01]MH_I2C_Read... [17:59:01]Read from MH i2c: 01 07 00 B7 04 00 00 00 00 00 10 0E E0 [17:59:01]RasterBufferAndPrint [17:59:01]line [17:59:01]line [17:59:01]line [17:59:01]line [17:59:01]line [17:59:01]written 0, free lines is 3602 [17:59:01]MH_Cut [17:59:01]Write to MH i2c: D1 01 00 BE 04 01 94 [17:59:01]Write i2c OK [17:59:01]MH_I2C_Read... [17:59:01]Read from MH i2c: D1 [17:59:01]MH_I2C_Read... [17:59:01]Read from MH i2c: D1 01 00 [17:59:01]MH_I2C_Read... [17:59:01]Read from MH i2c: D1 01 00 BE 04 00 93 [17:59:01]Write to MH i2c: 01 00 00 BF 04 C3 [17:59:01]Write i2c OK [17:59:01]MH_I2C_Read... [17:59:01]*** Cut start [17:59:01]*** Partial cut [17:59:01]*** CUTSNS_PIN = 1 [17:59:01]*** CUTSNS_PIN = 0 [17:59:01]*** Brake cut motor [17:59:02]Read from MH i2c: 01 [17:59:02]MH_I2C_Read... [17:59:02]*** Stop cut motor [17:59:02]*** Cut end [17:59:02]Read from MH i2c: 01 07 00 [17:59:02]MH_I2C_Read... [17:59:02]Read from MH i2c: 01 07 00 BF 04 00 00 00 00 00 FF 0F D8 [17:59:02]process_action print_text done [17:59:02]requested_data is exist [17:59:02]produce_requested_data [17:59:02]requested_item fm.sn is exist - process it [17:59:02]wFMCommunicate request_size=4 [17:59:02]MH_SAM_APDU [17:59:02]CAPDU: 80 11 00 00 [17:59:02]Write to MH i2c: E2 08 00 C0 04 80 11 00 00 00 00 00 00 3E [17:59:02]Write i2c OK [17:59:02]MH_I2C_Read... [17:59:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:59:02]Read from MH i2c: E2 [17:59:02]MH_I2C_Read... [17:59:02]Read from MH i2c: E2 17 00 [17:59:02]MH_I2C_Read... [17:59:02]Read from MH i2c: E2 17 00 C0 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 91 [17:59: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:59:02]wFMCommunicate OK [17:59:02]requested_item fd.num is exist - process it [17:59:02]SAM_PROTO_GetFieldsCounters [17:59:02]wFMCommunicate request_size=4 [17:59:02]MH_SAM_APDU [17:59:02]CAPDU: 80 13 00 00 [17:59:02]Write to MH i2c: E2 08 00 C1 04 80 13 00 00 00 00 00 00 41 [17:59:02]Write i2c OK [17:59:02]MH_I2C_Read... [17:59:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:59:02]Read from MH i2c: E2 [17:59:02]MH_I2C_Read... [17:59:02]Read from MH i2c: E2 62 00 [17:59:02]MH_I2C_Read... [17:59:02]Read from MH i2c: E2 62 00 C1 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 01 97 01 00 0E 04 04 00 63 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 C1 [17:59: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 01 97 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:59:02]wFMCommunicate OK [17:59:02]SAM_PROTO_GetFieldsCounters done [17:59:02]requested_item shift.num is exist - process it [17:59:02]requested_item shift.opened is exist - process it [17:59:02]req_shift_opened [17:59:02]FM_GetShiftState [17:59:02]SAM_PROTO_GetShiftState [17:59:02]wFMCommunicate request_size=4 [17:59:02]MH_SAM_APDU [17:59:02]CAPDU: 80 13 01 00 [17:59:02]Write to MH i2c: E2 08 00 C2 04 80 13 01 00 00 00 00 00 43 [17:59:02]Write i2c OK [17:59:02]MH_I2C_Read... [17:59:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:59:02]Read from MH i2c: E2 [17:59:02]MH_I2C_Read... [17:59:02]Read from MH i2c: E2 0E 00 [17:59:02]MH_I2C_Read... [17:59:02]Read from MH i2c: E2 0E 00 C2 04 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 56 [17:59:02]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [17:59:02]wFMCommunicate OK [17:59:02]SAM_PROTO_GetShiftState done [17:59:02]FM_GetShiftState done [17:59:02]req_shift_opened done [17:59:02]requested_item shift.open_date is exist - process it [17:59:02]req_shift_open_date [17:59:02]req_shift_open_date done [17:59:02]produce_requested_data done [17:59:02]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104193,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [17:59:02]process_action_free print_text [17:59:02]json_value_free [17:59:02]json_value_free done [17:59:02]process_json_proto returns [17:59:02]Send response to host [17:59:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104193,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [17:59:02]free response buf [17:59:02]execute_script done [17:59:02]execute_script returns [17:59:02]free content buf [17:59:02]Sock 7.Close socket [17:59:02]Sock 7.Thread stoped [17:59:05]OFD Sender: No OFD packet to send [17:59:10]OFD Sender: No OFD packet to send [17:59:15]OFD Sender: No OFD packet to send [17:59:20]OFD Sender: No OFD packet to send [17:59:25]OFD Sender: No OFD packet to send [17:59:30]OFD Sender: No OFD packet to send [17:59:35]OFD Sender: No OFD packet to send [17:59:40]OFD Sender: No OFD packet to send [17:59:45]OFD Sender: No OFD packet to send [17:59:50]OFD Sender: No OFD packet to send [17:59:55]OFD Sender: No OFD packet to send [18:00:00]OFD Sender: No OFD packet to send [18:00:05]OFD Sender: No OFD packet to send [18:00:10]OFD Sender: No OFD packet to send [18:00:15]OFD Sender: No OFD packet to send [18:00:20]OFD Sender: No OFD packet to send [18:00:25]OFD Sender: No OFD packet to send [18:00:30]OFD Sender: No OFD packet to send [18:00:35]OFD Sender: No OFD packet to send [18:00:40]OFD Sender: No OFD packet to send [18:00:45]OFD Sender: No OFD packet to send [18:00:50]OFD Sender: No OFD packet to send [18:00:55]OFD Sender: No OFD packet to send [18:01:00]OFD Sender: No OFD packet to send [18:01:05]OFD Sender: No OFD packet to send [18:01:10]OFD Sender: No OFD packet to send [18:01:15]OFD Sender: No OFD packet to send [18:01:20]OFD Sender: No OFD packet to send [18:01:25]OFD Sender: No OFD packet to send [18:01:30]OFD Sender: No OFD packet to send [18:01:35]OFD Sender: No OFD packet to send [18:01:40]OFD Sender: No OFD packet to send [18:01:43]accept exits with 9 [18:01:43]New connection [18:01:43]New thread 3066789220 created [18:01:43]Thread 3066932580 joined [18:01:43]Waiting for new connection... [18:01:43] Sock 9.Parse request [18:01:43]Sock 9.Check first char [18:01:43]Sock 9.First char is OK [18:01:43]request: POST /json_proto HTTP/1.0 [18:01:43]Method: POST [18:01:43]URL: /json_proto [18:01:43]Method is POST - this is cgi request [18:01:43]url: /json_proto [18:01:43]query_string will be loaded in cgi processing [18:01:43]execute_cgi json_proto POST (null) [18:01:43]execute_cgi path=json_proto method=POST [18:01:43]POST find Content-Length [18:01:43]Host: 172.17.38.133:8080 [18:01:43]Content-Length: 1156 [18:01:43]Content-Type: application/json [18:01:43] [18:01:43]POST finish read [18:01:43]Found Content-Length = 1156 [18:01: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 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)673645\u000A21.06.2024 17:38\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 14.380 x 66.40\u000A\u0418\u0422\u041E\u0413: 954.83\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30060422\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:01:43]execute_script... [18:01: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 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)673645\u000A21.06.2024 17:38\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 14.380 x 66.40\u000A\u0418\u0422\u041E\u0413: 954.83\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30060422\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:01:43]POST & json_proto [18:01:43]process_json_proto [18:01:43]json parsed OK: [18:01:43]protocol is kg_v1.0 [18:01:43]action value=print_text [18:01:43]process_action print_text [18:01:43]cmd_print_text [18:01:43]ExternCall_PrintAddStr [18:01:43]wPrintStart [18:01:43]Write to MH i2c: 01 00 00 C3 04 C7 [18:01:43]Write i2c OK [18:01:43]MH_I2C_Read... [18:01:43]Read from MH i2c: 01 [18:01:43]MH_I2C_Read... [18:01:43]Read from MH i2c: 01 07 00 [18:01:43]MH_I2C_Read... [18:01:43]Read from MH i2c: 01 07 00 C3 04 00 00 00 00 00 FF 0F DC [18:01:43]RasterBufferAndPrint [18:01:43]line *****ТОВАРНЫЙ ЧЕК***** [18:01:43]line АЗС 120 [18:01:43]line Партнер нефть [18:01:43]line 02508201610067 [18:01:43]line Кассир : Асанбаев Н. [18:01:43]line Счет N : (1)673645 [18:01:43]line 21.06.2024 17:38 [18:01:43]line ПРОДАЖА [18:01:43]line ТРК (МРК, ГНК): 42 [18:01:43]line Вид ГСМ : 2710124130 [18:01:43]line Аи-92-К-5 [18:01:43]line 14.380 x 66.40 [18:01:43]line ИТОГ: 954.83 [18:01:43]line Тип оплаты: Талоны: ТК ГПНА Online [18:01:43]line 30060422 [18:01:43]line ______________________ [18:01:43]line (подпись) [18:01:43]written 0, free lines is 4095 [18:01:43]Write to MH i2c: 01 00 00 D7 04 DB [18:01:43]Write i2c OK [18:01:43]MH_I2C_Read... [18:01:43]Read from MH i2c: 01 [18:01:43]MH_I2C_Read... [18:01:43]Read from MH i2c: 01 07 00 [18:01:43]MH_I2C_Read... [18:01:43]Read from MH i2c: 01 07 00 D7 04 00 00 00 00 00 11 0E 01 [18:01:43]RasterBufferAndPrint [18:01:43]line [18:01:43]line [18:01:43]line [18:01:43]line [18:01:43]line [18:01:43]written 0, free lines is 3602 [18:01:43]MH_Cut [18:01:43]Write to MH i2c: D1 01 00 DE 04 01 B4 [18:01:43]Write i2c OK [18:01:43]MH_I2C_Read... [18:01:43]Read from MH i2c: D1 [18:01:43]MH_I2C_Read... [18:01:43]Read from MH i2c: D1 01 00 [18:01:43]MH_I2C_Read... [18:01:43]Read from MH i2c: D1 01 00 DE 04 00 B3 [18:01:43]Write to MH i2c: 01 00 00 DF 04 E3 [18:01:43]Write i2c OK [18:01:43]MH_I2C_Read... [18:01:44]*** Cut start [18:01:44]*** Partial cut [18:01:44]*** CUTSNS_PIN = 1 [18:01:44]*** CUTSNS_PIN = 0 [18:01:44]*** Brake cut motor [18:01:45]Read from MH i2c: 01 [18:01:45]MH_I2C_Read... [18:01:45]*** Stop cut motor [18:01:45]*** Cut end [18:01:45]Read from MH i2c: 01 07 00 [18:01:45]MH_I2C_Read... [18:01:45]Read from MH i2c: 01 07 00 DF 04 00 00 00 00 00 FF 0F F8 [18:01:45]process_action print_text done [18:01:45]requested_data is exist [18:01:45]produce_requested_data [18:01:45]requested_item fm.sn is exist - process it [18:01:45]wFMCommunicate request_size=4 [18:01:45]MH_SAM_APDU [18:01:45]CAPDU: 80 11 00 00 [18:01:45]Write to MH i2c: E2 08 00 E0 04 80 11 00 00 00 00 00 00 5E [18:01:45]Write i2c OK [18:01:45]MH_I2C_Read... [18:01:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:01:45]Read from MH i2c: E2 [18:01:45]MH_I2C_Read... [18:01:45]Read from MH i2c: E2 17 00 [18:01:45]MH_I2C_Read... [18:01:45]Read from MH i2c: E2 17 00 E0 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 B1 [18:01:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [18:01:45]wFMCommunicate OK [18:01:45]requested_item fd.num is exist - process it [18:01:45]SAM_PROTO_GetFieldsCounters [18:01:45]wFMCommunicate request_size=4 [18:01:45]MH_SAM_APDU [18:01:45]CAPDU: 80 13 00 00 [18:01:45]Write to MH i2c: E2 08 00 E1 04 80 13 00 00 00 00 00 00 61 [18:01:45]Write i2c OK [18:01:45]MH_I2C_Read... [18:01:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:01:45]Read from MH i2c: E2 [18:01:45]MH_I2C_Read... [18:01:45]Read from MH i2c: E2 62 00 [18:01:45]MH_I2C_Read... [18:01:45]Read from MH i2c: E2 62 00 E1 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 01 97 01 00 0E 04 04 00 63 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 E1 [18:01: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 01 97 01 00 0E 04 04 00 63 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 [18:01:45]wFMCommunicate OK [18:01:45]SAM_PROTO_GetFieldsCounters done [18:01:45]requested_item shift.num is exist - process it [18:01:45]requested_item shift.opened is exist - process it [18:01:45]req_shift_opened [18:01:45]FM_GetShiftState [18:01:45]SAM_PROTO_GetShiftState [18:01:45]wFMCommunicate request_size=4 [18:01:45]MH_SAM_APDU [18:01:45]CAPDU: 80 13 01 00 [18:01:45]Write to MH i2c: E2 08 00 E2 04 80 13 01 00 00 00 00 00 63 [18:01:45]Write i2c OK [18:01:45]MH_I2C_Read... [18:01:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:01:45]Read from MH i2c: E2 [18:01:45]MH_I2C_Read... [18:01:45]Read from MH i2c: E2 0E 00 [18:01:45]MH_I2C_Read... [18:01:45]Read from MH i2c: E2 0E 00 E2 04 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 76 [18:01:45]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [18:01:45]wFMCommunicate OK [18:01:45]SAM_PROTO_GetShiftState done [18:01:45]FM_GetShiftState done [18:01:45]req_shift_opened done [18:01:45]requested_item shift.open_date is exist - process it [18:01:45]req_shift_open_date [18:01:45]req_shift_open_date done [18:01:45]produce_requested_data done [18:01:45]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104193,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [18:01:45]process_action_free print_text [18:01:45]json_value_free [18:01:45]json_value_free done [18:01:45]process_json_proto returns [18:01:45]Send response to host [18:01:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104193,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [18:01:45]free response buf [18:01:45]execute_script done [18:01:45]execute_script returns [18:01:45]free content buf [18:01:45]Sock 9.Close socket [18:01:45]Sock 9.Thread stoped [18:01:45]OFD Sender: No OFD packet to send [18:01:50]OFD Sender: No OFD packet to send [18:01:55]OFD Sender: No OFD packet to send [18:02:00]OFD Sender: No OFD packet to send [18:02:05]OFD Sender: No OFD packet to send [18:02:10]OFD Sender: No OFD packet to send [18:02:15]OFD Sender: No OFD packet to send [18:02:20]OFD Sender: No OFD packet to send [00:00:09] *** EcrCore started. Build 196 *** [00:00:09]/dev/ttyS4 opened [00:00:09]MH_InterfaceInit /dev/i2c-1 [00:00:09]Malloc ok [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 01 00 00 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 24 B7 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 5B [00:00:10]Are we in boot? [00:00:10]We are in boot - try to switch [00:00:10]Write to MH i2c: A0 00 00 02 00 A1 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 [00:00:10]MH_I2C_Read... [00:00:10]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:10]*** [00:00:10]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:10]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:10]*** Waiting for read because exit forced [00:00:10]*** 10 ms more... [00:00:10]*** MH1903S init start (LINUX_LIGHT) [00:00:10]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:10]*** Serial: 3139303353513838 54000000005724B7 (1903SQ88T) [00:00:10]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:10]*** step 0: 5000 (2650, 2350 REF) [00:00:10]*** step 1: 4835 (2500, 2335 REF) [00:00:10]*** step 2: 4676 (2440, 2236 REF) [00:00:10]*** step 3: 4523 (2280, 2243 REF) [00:00:10]*** step 4: 4376 (2160, 2216 REF) [00:00:10]*** step 5: 4235 (2050, 2185 REF) [00:00:10]*** step 6: 4098 (1950, 2148 REF) [00:00:10]*** step 7: 3967 (1870, 2097 REF) [00:00:10]*** step 8: 3840 (1828, 2012 REF) [00:00:10]*** step 9: 3719 (1728, 1991 REF) [00:00:10]*** step 10: 3601 (1675, 1926 REF) [00:00:10]*** step 11: 3488 (1635, 1853 REF) [00:00:10]*** step 12: 3379 (1595, 1784 REF) [00:00:10]*** step 13: 3275 (1565, 1710 REF) [00:00:10]*** step 14: 3174 (1543, 1631 REF) [00:00:10]*** step 15: 3077 (1523, 1554 REF) [00:00:10]*** step 16: 2983 (1503, 1480 REF) [00:00:10]*** step 17: 2893 (1486, 1407 REF) [00:00:10]*** step 18: 2806 (1466, 1340 REF) [00:00:10]*** step 19: 2723 (1426, 1297 REF) [00:00:10]*** step 20: 2642 (1406, 1236 REF) [00:00:10]*** step 21: 2565 (1384, 1181 REF) [00:00:10]*** step 22: 2490 (1364, 1126 REF) [00:00:10]*** step 23: 2418 (1344, 1074 REF) [00:00:10]*** step 24: 2349 (1322, 1027 REF) [00:00:10]*** step 25: 2283 (1302, 981 REF) [00:00:10]*** step 26: 2218 (1282, 936 REF) [00:00:10]*** step 27: 2157 (1262, 895 REF) [00:00:10]*** step 28: 2097 (1242, 855 REF) [00:00:10]*** step 29: 2040 (1222, 818 REF) [00:00:10]*** step 30: 1985 (1202, 783 REF) [00:00:10]*** step 31: 1932 (1191, 741 REF) [00:00:10]*** step 32: 1880 (1181, 699 REF) [00:00:10]*** step 33: 1831 (1171, 660 REF) [00:00:10]*** step 34: 1784 (1161, 623 REF) [00:00:10]*** step 35: 1738 (1151, 587 REF) [00:00:10]*** step 36: 1694 (1141, 553 REF) [00:00:10]*** step 37: 1652 (1131, 521 REF) [00:00:10]*** step 38: 1611 (1121, 490 REF) [00:00:10]*** step 39: 1572 (1111, 461 REF) [00:00:10]*** step 40: 1534 (1103, 431 REF) [00:00:10]*** step 41: 1497 (1093, 404 REF) [00:00:10]*** step 42: 1462 (1083, 379 REF) [00:00:10]*** step 43: 1428 (1073, 355 REF) [00:00:10]*** step 44: 1396 (1063, 333 REF) [00:00:10]*** step 45: 1365 (1053, 312 REF) [00:00:10]*** step 46: 1334 (1043, 291 REF) [00:00:10]*** step 47: 1305 (1033, 272 REF) [00:00:10]*** step 48: 1277 (1023, 254 REF) [00:00:10]*** step 49: 1250 (1013, 237 REF) [00:00:10]*** step 50: 1224 (990, 234 REF) [00:00:10]*** step 51: 1199 (980, 219 REF) [00:00:10]*** step 52: 1175 (970, 205 REF) [00:00:10]*** step 53: 1152 (960, 192 REF) [00:00:10]*** step 54: 1130 (950, 180 REF) [00:00:10]*** step 55: 1108 (940, 168 REF) [00:00:10]*** step 56: 1088 (930, 158 REF) [00:00:10]*** step 57: 1068 (920, 148 REF) [00:00:10]*** step 58: 1049 (910, 139 REF) [00:00:10]*** step 59: 1030 (900, 130 REF) [00:00:10]*** step 60: 1012 (890, 122 REF) [00:00:10]*** step 61: 995 (880, 115 REF) [00:00:10]*** step 62: 979 (870, 109 REF) [00:00:10]*** step 63: 963 (860, 103 REF) [00:00:10]*** step 64: 948 (850, 98 REF) [00:00:10]*** step 65: 933 (840, 93 REF) [00:00:10]*** step 66: 919 (830, 89 REF) [00:00:10]*** step 67: 905 (820, 85 REF) [00:00:10]*** step 68: 892 (810, 82 REF) [00:00:10]*** step 69: 879 (800, 79 REF) [00:00:10]*** step 70: 867 (790, 77 REF) [00:00:10]*** step 71: 855 (780, 75 REF) [00:00:10]*** step 72: 844 (770, 74 REF) [00:00:10]*** step 73: 833 (760, 73 REF) [00:00:10]*** step 74: 822 (750, 72 REF) [00:00:10]*** step 75: 812 (740, 72 REF) [00:00:10]*** step 76: 803 (730, 73 REF) [00:00:10]*** step 77: 793 (720, 73 REF) [00:00:10]*** step 78: 784 (710, 74 REF) [00:00:10]*** step 79: 776 (700, 76 REF) [00:00:10]*** step 80: 767 (690, 77 REF) [00:00:10]*** step 81: 759 (680, 79 REF) [00:00:10]*** step 82: 751 (670, 81 REF) [00:00:10]*** step 83: 744 (660, 84 REF) [00:00:10]*** step 84: 737 (650, 87 REF) [00:00:10]*** step 85: 730 (640, 90 REF) [00:00:10]*** step 86: 723 (630, 93 REF) [00:00:10]*** step 87: 717 (620, 97 REF) [00:00:10]*** step 88: 710 (610, 100 REF) [00:00:10]*** step 89: 705 (600, 105 REF) [00:00:10]*** step 90: 699 [00:00:10]*** step 91: 693 [00:00:10]*** step 92: 688 [00:00:10]*** step 93: 683 [00:00:10]*** step 94: 678 [00:00:10]*** step 95: 673 [00:00:10]*** step 96: 669 [00:00:10]*** step 97: 664 [00:00:10]*** step 98: 660 [00:00:10]*** step 99: 656 [00:00:10]*** step 100: 652 [00:00:10]*** step 101: 648 [00:00:10]*** step 102: 644 [00:00:10]*** step 103: 641 [00:00:10]*** step 104: 638 [00:00:10]*** step 105: 634 [00:00:10]*** step 106: 631 [00:00:10]*** step 107: 628 [00:00:10]*** step 108: 625 [00:00:10]*** step 109: 622 [00:00:10]*** step 110: 620 [00:00:10]*** step 111: 617 [00:00:10]*** step 112: 615 [00:00:10]*** step 113: 612 [00:00:10]*** step 114: 610 [00:00:10]*** step 115: 608 [00:00:10]*** step 116: 605 [00:00:10]*** step 117: 603 [00:00:10]*** step 118: 601 [00:00:10]*** step 119: 599 [00:00:10]*** printer: Printer HW initialized [00:00:10]*** initSamCard finished [00:00:10]*** RTC: 33108967+1685884861=1718993828 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x200ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33530624 [00:00:10]*** Is cutter blocked? [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 03 00 02 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 24 B7 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 5C [00:00:11]Are we in boot? [00:00:11]We are not in boot now [00:00:11]Write to MH i2c: 01 00 00 04 00 04 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:11]Model is 3 [00:00:11]MH firmware is 30620 [00:00:11]MH boot firmware is 3 [00:00:11]MH_SetPrinterDots 448 [00:00:11]HeadWidthInBytes 56 [00:00:11]maxmasksize 7 [00:00:11]Write to MH i2c: D6 06 00 05 00 41 00 40 00 FF FF 5F [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:11]Write to MH i2c: D5 00 00 06 00 DA [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]ExternCall_SetCallbacks [00:00:11]NVStorageInit [00:00:11]MH_GetDate [00:00:11]Write to MH i2c: F0 00 00 07 00 F6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 07 00 00 A5 C3 75 66 BD 8F 7C 64 6E [18:17:09]Current date/time: 21.06.2024 18:17 [18:17:09]FM_Init [18:17:09]wFMConnect [18:17:09]MH_SAM_On [18:17:09]Write to MH i2c: E0 00 00 08 00 E7 [18:17:09]Write i2c OK [18:17:09]MH_I2C_Read... [18:17:09]*** iso7816_init finished! [18:17:09]*** atr: [18:17:09]*** 0F 3B D5 18 FF 81 91 FE [18:17:09]*** 1F C3 80 73 C8 21 10 0A [18:17:09]*** 00 00 00 00 00 00 00 00 [18:17:09]*** 00 00 00 00 00 00 00 00 [18:17:09]*** 00 00 00 00 00 00 00 00 [18:17:09]*** 00 00 00 00 00 00 00 00 [18:17:09]*** 00 00 00 00 00 00 00 00 [18:17:09]*** 00 00 00 00 00 00 00 00 [18:17:09]Read from MH i2c: E0 [18:17:09]MH_I2C_Read... [18:17:09]Read from MH i2c: E0 10 00 [18:17:09]MH_I2C_Read... [18:17:09]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [18:17:09]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [18:17:09]wFMCommunicate request_size=10 [18:17:09]MH_SAM_APDU [18:17:09]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [18:17:09]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [18:17:09]Write i2c OK [18:17:09]MH_I2C_Read... [18:17:09]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [18:17:09]Read from MH i2c: E2 [18:17:09]MH_I2C_Read... [18:17:09]Read from MH i2c: E2 03 00 [18:17:09]MH_I2C_Read... [18:17:09]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [18:17:09]RAPDU: 90 00 [18:17:09]wFMCommunicate OK [18:17:09]wFMCommunicate request_size=4 [18:17:09]MH_SAM_APDU [18:17:09]CAPDU: 80 11 00 00 [18:17:09]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [18:17:09]Write i2c OK [18:17:09]MH_I2C_Read... [18:17:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:17:09]Read from MH i2c: E2 [18:17:09]MH_I2C_Read... [18:17:09]Read from MH i2c: E2 17 00 [18:17:09]MH_I2C_Read... [18:17:09]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 D7 [18:17: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:17:09]wFMCommunicate OK [18:17:09]Detected FM SN is 0000000000875093 [18:17:09]Stored FM SN is 0000000000875093 [18:17:09]wFMCommunicate request_size=9 [18:17:09]MH_SAM_APDU [18:17:09]CAPDU: 80 16 00 00 04 D4 80 01 00 [18:17:09]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 D4 80 01 00 00 00 E7 [18:17:09]Write i2c OK [18:17:09]MH_I2C_Read... [18:17:09]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [18:17:09]Read from MH i2c: E2 [18:17:09]MH_I2C_Read... [18:17:09]Read from MH i2c: E2 03 00 [18:17:09]MH_I2C_Read... [18:17:09]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [18:17:09]RAPDU: 90 00 [18:17:09]wFMCommunicate OK [18:17:09]FM PIN OK [18:17:09]wFMCommunicate request_size=8 [18:17:09]MH_SAM_APDU [18:17:09]CAPDU: 80 14 04 00 03 02 00 01 [18:17:09]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [18:17:09]Write i2c OK [18:17:09]MH_I2C_Read... [18:17:09]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [18:17:09]Read from MH i2c: E2 [18:17:09]MH_I2C_Read... [18:17:09]Read from MH i2c: E2 03 00 [18:17:09]MH_I2C_Read... [18:17:09]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [18:17:09]RAPDU: 90 00 [18:17:09]wFMCommunicate OK [18:17:09]wFMCommunicate request_size=13 [18:17:09]MH_SAM_APDU [18:17:09]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [18:17:09]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [18:17:09]Write i2c OK [18:17:09]MH_I2C_Read... [18:17:09]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [18:17:09]Read from MH i2c: E2 [18:17:09]MH_I2C_Read... [18:17:09]Read from MH i2c: E2 03 00 [18:17:09]MH_I2C_Read... [18:17:09]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [18:17:09]RAPDU: 90 00 [18:17:09]wFMCommunicate OK [18:17:09]wFMCommunicate request_size=4 [18:17:09]MH_SAM_APDU [18:17:09]CAPDU: 80 11 00 00 [18:17:09]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [18:17:09]Write i2c OK [18:17:09]MH_I2C_Read... [18:17:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:17:09]Read from MH i2c: E2 [18:17:09]MH_I2C_Read... [18:17:09]Read from MH i2c: E2 17 00 [18:17:09]MH_I2C_Read... [18:17:09]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 DB [18:17: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:17:09]wFMCommunicate OK [18:17:09]DocumentArchiveInit [18:17:09]Start Httpd... [18:17:09]Httpd thread 3066969444 created [18:17:09]Write to MH i2c: 01 00 00 0F 00 0F [18:17:09]Write i2c OK [18:17:09]MH_I2C_Read... [18:17:09]Read from MH i2c: 01 [18:17:09]MH_I2C_Read... [18:17:09]Read from MH i2c: 01 07 00 [18:17:09]MH_I2C_Read... [18:17:09]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [18:17:09]MH Int Process started [18:17:09]Allocated Socket 8 [18:17:09]Bind OK [18:17:09]Listen OK [18:17:09]httpd running on port 8080 [18:17:09]Waiting for new connection... [18:17:09]OFD Sender: No OFD packet to send [18:17:09]accept exits with 9 [18:17:09]New connection [18:17:09]New thread 3066682724 created [18:17:09]Waiting for new connection... [18:17:09] Sock 9.Parse request [18:17:09]Sock 9.Check first char [18:17:09]Sock 9.First char is OK [18:17:09]request: POST /json_proto HTTP/1.0 [18:17:09]Method: POST [18:17:09]URL: /json_proto [18:17:09]Method is POST - this is cgi request [18:17:09]url: /json_proto [18:17:09]query_string will be loaded in cgi processing [18:17:09]execute_cgi json_proto POST (null) [18:17:09]execute_cgi path=json_proto method=POST [18:17:09]POST find Content-Length [18:17:09]Host: 172.17.38.133:8080 [18:17:09]Content-Length: 215 [18:17:09]Content-Type: application/json [18:17:09] [18:17:09]POST finish read [18:17:09]Found Content-Length = 215 [18:17:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:17:09]execute_script... [18:17:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:17:09]POST & json_proto [18:17:09]process_json_proto [18:17:09]json parsed OK: [18:17:09]protocol is kg_v1.0 [18:17:09]action value=get_value [18:17:09]process_action get_value [18:17:09]cmd_get_value [18:17:09]process_action get_value done [18:17:09]requested_data is exist [18:17:09]produce_requested_data [18:17:09]requested_item kkm.sn is exist - process it [18:17:09]requested_item kkm.ver is exist - process it [18:17:09]requested_item fm.sn is exist - process it [18:17:09]wFMCommunicate request_size=4 [18:17:09]MH_SAM_APDU [18:17:09]CAPDU: 80 11 00 00 [18:17:09]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [18:17:09]Write i2c OK [18:17:09]MH_I2C_Read... [18:17:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:17:09]Read from MH i2c: E2 [18:17:09]MH_I2C_Read... [18:17:09]Read from MH i2c: E2 17 00 [18:17:09]MH_I2C_Read... [18:17:09]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 DD [18:17: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:17:09]wFMCommunicate OK [18:17:09]requested_item fd.num is exist - process it [18:17:09]SAM_PROTO_GetFieldsCounters [18:17:09]wFMCommunicate request_size=4 [18:17:09]MH_SAM_APDU [18:17:09]CAPDU: 80 13 00 00 [18:17:09]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [18:17:09]Write i2c OK [18:17:09]MH_I2C_Read... [18:17:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:17:09]Read from MH i2c: E2 [18:17:09]MH_I2C_Read... [18:17:09]Read from MH i2c: E2 62 00 [18:17:09]MH_I2C_Read... [18:17:09]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 63 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 0D [18:17: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 01 97 01 00 0E 04 04 00 63 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 [18:17:09]wFMCommunicate OK [18:17:09]SAM_PROTO_GetFieldsCounters done [18:17:09]requested_item shift.num is exist - process it [18:17:09]requested_item shift.opened is exist - process it [18:17:09]req_shift_opened [18:17:09]FM_GetShiftState [18:17:09]SAM_PROTO_GetShiftState [18:17:09]wFMCommunicate request_size=4 [18:17:09]MH_SAM_APDU [18:17:09]CAPDU: 80 13 01 00 [18:17:09]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [18:17:09]Write i2c OK [18:17:09]MH_I2C_Read... [18:17:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:17:09]Read from MH i2c: E2 [18:17:09]MH_I2C_Read... [18:17:09]Read from MH i2c: E2 0E 00 [18:17:09]MH_I2C_Read... [18:17:09]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 A2 [18:17:09]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [18:17:09]wFMCommunicate OK [18:17:09]SAM_PROTO_GetShiftState done [18:17:09]FM_GetShiftState done [18:17:09]req_shift_opened done [18:17:09]requested_item shift.open_date is exist - process it [18:17:09]req_shift_open_date [18:17:09]req_shift_open_date done [18:17:09]produce_requested_data done [18:17:09]produce_requested_data return {"kkm.sn":"0300000164","kkm.ver":"001","fm.sn":"0000000000875093","fd.num":104193,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [18:17:09]process_action_free get_value [18:17:09]json_value_free [18:17:09]json_value_free done [18:17:09]process_json_proto returns [18:17:09]Send response to host [18:17:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000164","kkm.ver":"001","fm.sn":"0000000000875093","fd.num":104193,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [18:17:09]free response buf [18:17:09]execute_script done [18:17:09]execute_script returns [18:17:09]free content buf [18:17:09]Sock 9.Close socket [18:17:09]Sock 9.Thread stoped [18:17:09]accept exits with 6 [18:17:09]New connection [18:17:09]New thread 3066539364 created [18:17:09]Thread 3066682724 joined [18:17:09]Waiting for new connection... [18:17:09] Sock 6.Parse request [18:17:09]Sock 6.Check first char [18:17:09]Sock 6.First char is OK [18:17:09]request: POST /json_proto HTTP/1.0 [18:17:09]Method: POST [18:17:09]URL: /json_proto [18:17:09]Method is POST - this is cgi request [18:17:09]url: /json_proto [18:17:09]query_string will be loaded in cgi processing [18:17:09]execute_cgi json_proto POST (null) [18:17:09]execute_cgi path=json_proto method=POST [18:17:09]POST find Content-Length [18:17:09]Host: 172.17.38.133:8080 [18:17:09]Content-Length: 331 [18:17:09]Content-Type: application/json [18:17:09] [18:17:09]POST finish read [18:17:09]Found Content-Length = 331 [18:17:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [18:17:09]execute_script... [18:17:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [18:17:09]POST & json_proto [18:17:09]process_json_proto [18:17:09]json parsed OK: [18:17:09]protocol is kg_v1.0 [18:17:09]action value=get_value [18:17:09]process_action get_value [18:17:09]cmd_get_value [18:17:09]process_action get_value done [18:17:09]requested_data is exist [18:17:09]produce_requested_data [18:17:09]requested_item fm.sale.total is exist - process it [18:17:09]SAM_PROTO_GetFMData [18:17:09]wFMCommunicate request_size=4 [18:17:09]MH_SAM_APDU [18:17:09]CAPDU: 80 13 03 00 [18:17:09]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [18:17:10]Write i2c OK [18:17:10]MH_I2C_Read... [18:17:10]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [18:17:10]Read from MH i2c: E2 [18:17:10]MH_I2C_Read... [18:17:10]Read from MH i2c: E2 FD 00 [18:17:10]MH_I2C_Read... [18:17:10]Read from MH i2c: E2 FD 00 13 00 00 C5 04 85 04 C1 04 6E 04 04 00 3B 94 01 00 69 04 A3 00 6F 04 04 00 E1 8F 01 00 B1 04 05 00 0B E3 8F 40 04 70 04 05 00 B0 AE C9 5B 03 72 04 04 00 5B 34 C6 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 1E 7B 9D 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 41 53 A2 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 5A 04 00 00 B1 04 04 00 34 B8 23 18 70 04 04 00 34 B8 23 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 2A 4C 90 02 EF 03 09 90 00 12 [18:17:10]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 3B 94 01 00 69 04 A3 00 6F 04 04 00 E1 8F 01 00 B1 04 05 00 0B E3 8F 40 04 70 04 05 00 B0 AE C9 5B 03 72 04 04 00 5B 34 C6 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 1E 7B 9D 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 41 53 A2 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 5A 04 00 00 B1 04 04 00 34 B8 23 18 70 04 04 00 34 B8 23 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 2A 4C 90 02 EF 03 09 90 00 [18:17:10]wFMCommunicate OK [18:17:10]wFMCommunicate request_size=4 [18:17:10]MH_SAM_APDU [18:17:10]CAPDU: 80 17 00 00 [18:17:10]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [18:17:10]Write i2c OK [18:17:10]MH_I2C_Read... [18:17:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:17:10]Read from MH i2c: E2 [18:17:10]MH_I2C_Read... [18:17:10]Read from MH i2c: E2 FD 00 [18:17:10]MH_I2C_Read... [18:17:10]Read from MH i2c: E2 FD 00 14 00 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B2 B0 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 E2 [18:17:10]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B2 B0 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 [18:17:10]wFMCommunicate OK [18:17:10]wFMCommunicate request_size=4 [18:17:10]MH_SAM_APDU [18:17:10]CAPDU: 80 17 00 00 [18:17:10]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [18:17:10]Write i2c OK [18:17:10]MH_I2C_Read... [18:17:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:17:11]Read from MH i2c: E2 [18:17:11]MH_I2C_Read... [18:17:11]Read from MH i2c: E2 FD 00 [18:17:11]MH_I2C_Read... [18:17:11]Read from MH i2c: E2 FD 00 15 00 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 A7 [18:17:11]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [18:17:11]wFMCommunicate OK [18:17:11]wFMCommunicate request_size=4 [18:17:11]MH_SAM_APDU [18:17:11]CAPDU: 80 17 00 00 [18:17:11]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [18:17:11]Write i2c OK [18:17:11]MH_I2C_Read... [18:17:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:17:11]Read from MH i2c: E2 [18:17:11]MH_I2C_Read... [18:17:11]Read from MH i2c: E2 FD 00 [18:17:11]MH_I2C_Read... [18:17:11]Read from MH i2c: E2 FD 00 16 00 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 22 [18:17:11]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [18:17:11]wFMCommunicate OK [18:17:11]wFMCommunicate request_size=4 [18:17:11]MH_SAM_APDU [18:17:11]CAPDU: 80 17 00 00 [18:17:11]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [18:17:11]Write i2c OK [18:17:11]MH_I2C_Read... [18:17:11]Read from MH i2c: E2 [18:17:11]MH_I2C_Read... [18:17:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [18:17:11]Read from MH i2c: E2 E2 00 [18:17:11]MH_I2C_Read... [18:17:11]Read from MH i2c: E2 E2 00 17 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 75 [18:17:11]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [18:17:11]wFMCommunicate OK [18:17:11]SAM_PROTO_GetFMData done [18:17:11]requested_item fm.sale_refund.total is exist - process it [18:17:11]requested_item fm.buy.total is exist - process it [18:17:11]requested_item shift.sale.total is exist - process it [18:17:11]SAM_PROTO_GetShiftData [18:17:11]wFMCommunicate request_size=4 [18:17:11]MH_SAM_APDU [18:17:11]CAPDU: 80 13 02 00 [18:17:11]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [18:17:11]Write i2c OK [18:17:11]MH_I2C_Read... [18:17:12]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [18:17:12]Read from MH i2c: E2 [18:17:12]MH_I2C_Read... [18:17:12]Read from MH i2c: E2 FD 00 [18:17:12]MH_I2C_Read... [18:17:12]Read from MH i2c: E2 FD 00 18 00 00 BA 04 AA 04 B6 04 6E 04 04 00 74 00 00 00 69 04 9D 00 6F 04 04 00 73 00 00 00 B1 04 04 00 3E 21 27 01 70 04 03 00 10 E8 AC 72 04 03 00 2E 39 7A 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 DA 58 1F 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 AC 9C 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 A0 86 01 70 04 03 00 A0 86 01 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 82 29 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 28 [18:17:12]RAPDU: BA 04 AA 04 B6 04 6E 04 04 00 74 00 00 00 69 04 9D 00 6F 04 04 00 73 00 00 00 B1 04 04 00 3E 21 27 01 70 04 03 00 10 E8 AC 72 04 03 00 2E 39 7A 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 DA 58 1F 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 AC 9C 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 A0 86 01 70 04 03 00 A0 86 01 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 82 29 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [18:17:12]wFMCommunicate OK [18:17:12]wFMCommunicate request_size=4 [18:17:12]MH_SAM_APDU [18:17:12]CAPDU: 80 17 00 00 [18:17:12]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [18:17:12]Write i2c OK [18:17:12]MH_I2C_Read... [18:17:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:17:12]Read from MH i2c: E2 [18:17:12]MH_I2C_Read... [18:17:12]Read from MH i2c: E2 FD 00 [18:17:12]MH_I2C_Read... [18:17:12]Read from MH i2c: E2 FD 00 19 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 75 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 90 00 BB [18:17:12]RAPDU: EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 75 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 90 00 [18:17:12]wFMCommunicate OK [18:17:12]wFMCommunicate request_size=4 [18:17:12]MH_SAM_APDU [18:17:12]CAPDU: 80 17 00 00 [18:17:12]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [18:17:12]Write i2c OK [18:17:12]MH_I2C_Read... [18:17:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:17:12]Read from MH i2c: E2 [18:17:12]MH_I2C_Read... [18:17:12]Read from MH i2c: E2 FD 00 [18:17:12]MH_I2C_Read... [18:17:12]Read from MH i2c: E2 FD 00 1A 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 90 00 C6 [18:17:12]RAPDU: 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 90 00 [18:17:12]wFMCommunicate OK [18:17:12]wFMCommunicate request_size=4 [18:17:12]MH_SAM_APDU [18:17:12]CAPDU: 80 17 00 00 [18:17:12]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [18:17:12]Write i2c OK [18:17:12]MH_I2C_Read... [18:17:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:17:13]Read from MH i2c: E2 [18:17:13]MH_I2C_Read... [18:17:13]Read from MH i2c: E2 FD 00 [18:17:13]MH_I2C_Read... [18:17:13]Read from MH i2c: E2 FD 00 1B 00 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 90 00 13 [18:17:13]RAPDU: 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 90 00 [18:17:13]wFMCommunicate OK [18:17:13]wFMCommunicate request_size=4 [18:17:13]MH_SAM_APDU [18:17:13]CAPDU: 80 17 00 00 [18:17:13]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [18:17:13]Write i2c OK [18:17:13]MH_I2C_Read... [18:17:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [18:17:13]Read from MH i2c: E2 [18:17:13]MH_I2C_Read... [18:17:13]Read from MH i2c: E2 D7 00 [18:29:27]OFD Sender: No OFD packet to send [18:29:30]ConnectInit Can't connect to host [18:29:32]OFD Sender: No OFD packet to send [00:00:10] *** EcrCore started. Build 196 *** [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]Malloc ok [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 01 00 00 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 24 B7 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 5B [00:00:10]Are we in boot? [00:00:10]We are in boot - try to switch [00:00:10]Write to MH i2c: A0 00 00 02 00 A1 [00:00:10]/dev/ttyS4 opened [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:10]*** [00:00:10]Read from MH i2c: A0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:10]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:10]*** Waiting for read because exit forced [00:00:10]*** 10 ms more... [00:00:10]*** MH1903S init start (LINUX_LIGHT) [00:00:10]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:10]*** Serial: 3139303353513838 54000000005724B7 (1903SQ88T) [00:00:10]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:10]*** step 0: 5000 (2650, 2350 REF) [00:00:10]*** step 1: 4835 (2500, 2335 REF) [00:00:10]*** step 2: 4676 (2440, 2236 REF) [00:00:10]*** step 3: 4523 (2280, 2243 REF) [00:00:10]*** step 4: 4376 (2160, 2216 REF) [00:00:10]*** step 5: 4235 (2050, 2185 REF) [00:00:10]*** step 6: 4098 (1950, 2148 REF) [00:00:10]*** step 7: 3967 (1870, 2097 REF) [00:00:10]*** step 8: 3840 (1828, 2012 REF) [00:00:10]*** step 9: 3719 (1728, 1991 REF) [00:00:10]*** step 10: 3601 (1675, 1926 REF) [00:00:10]*** step 11: 3488 (1635, 1853 REF) [00:00:10]*** step 12: 3379 (1595, 1784 REF) [00:00:10]*** step 13: 3275 (1565, 1710 REF) [00:00:10]*** step 14: 3174 (1543, 1631 REF) [00:00:10]*** step 15: 3077 (1523, 1554 REF) [00:00:10]*** step 16: 2983 (1503, 1480 REF) [00:00:10]*** step 17: 2893 (1486, 1407 REF) [00:00:10]*** step 18: 2806 (1466, 1340 REF) [00:00:10]*** step 19: 2723 (1426, 1297 REF) [00:00:10]*** step 20: 2642 (1406, 1236 REF) [00:00:10]*** step 21: 2565 (1384, 1181 REF) [00:00:10]*** step 22: 2490 (1364, 1126 REF) [00:00:10]*** step 23: 2418 (1344, 1074 REF) [00:00:10]*** step 24: 2349 (1322, 1027 REF) [00:00:10]*** step 25: 2283 (1302, 981 REF) [00:00:10]*** step 26: 2218 (1282, 936 REF) [00:00:10]*** step 27: 2157 (1262, 895 REF) [00:00:10]*** step 28: 2097 (1242, 855 REF) [00:00:10]*** step 29: 2040 (1222, 818 REF) [00:00:10]*** step 30: 1985 (1202, 783 REF) [00:00:10]*** step 31: 1932 (1191, 741 REF) [00:00:10]*** step 32: 1880 (1181, 699 REF) [00:00:10]*** step 33: 1831 (1171, 660 REF) [00:00:10]*** step 34: 1784 (1161, 623 REF) [00:00:10]*** step 35: 1738 (1151, 587 REF) [00:00:10]*** step 36: 1694 (1141, 553 REF) [00:00:10]*** step 37: 1652 (1131, 521 REF) [00:00:10]*** step 38: 1611 (1121, 490 REF) [00:00:10]*** step 39: 1572 (1111, 461 REF) [00:00:10]*** step 40: 1534 (1103, 431 REF) [00:00:10]*** step 41: 1497 (1093, 404 REF) [00:00:10]*** step 42: 1462 (1083, 379 REF) [00:00:10]*** step 43: 1428 (1073, 355 REF) [00:00:10]*** step 44: 1396 (1063, 333 REF) [00:00:10]*** step 45: 1365 (1053, 312 REF) [00:00:10]*** step 46: 1334 (1043, 291 REF) [00:00:10]*** step 47: 1305 (1033, 272 REF) [00:00:10]*** step 48: 1277 (1023, 254 REF) [00:00:10]*** step 49: 1250 (1013, 237 REF) [00:00:10]*** step 50: 1224 (990, 234 REF) [00:00:10]*** step 51: 1199 (980, 219 REF) [00:00:10]*** step 52: 1175 (970, 205 REF) [00:00:10]*** step 53: 1152 (960, 192 REF) [00:00:10]*** step 54: 1130 (950, 180 REF) [00:00:10]*** step 55: 1108 (940, 168 REF) [00:00:10]*** step 56: 1088 (930, 158 REF) [00:00:10]*** step 57: 1068 (920, 148 REF) [00:00:10]*** step 58: 1049 (910, 139 REF) [00:00:10]*** step 59: 1030 (900, 130 REF) [00:00:10]*** step 60: 1012 (890, 122 REF) [00:00:10]*** step 61: 995 (880, 115 REF) [00:00:10]*** step 62: 979 (870, 109 REF) [00:00:10]*** step 63: 963 (860, 103 REF) [00:00:10]*** step 64: 948 (850, 98 REF) [00:00:10]*** step 65: 933 (840, 93 REF) [00:00:10]*** step 66: 919 (830, 89 REF) [00:00:10]*** step 67: 905 (820, 85 REF) [00:00:10]*** step 68: 892 (810, 82 REF) [00:00:10]*** step 69: 879 (800, 79 REF) [00:00:10]*** step 70: 867 (790, 77 REF) [00:00:10]*** step 71: 855 (780, 75 REF) [00:00:10]*** step 72: 844 (770, 74 REF) [00:00:10]*** step 73: 833 (760, 73 REF) [00:00:10]*** step 74: 822 (750, 72 REF) [00:00:10]*** step 75: 812 (740, 72 REF) [00:00:10]*** step 76: 803 (730, 73 REF) [00:00:10]*** step 77: 793 (720, 73 REF) [00:00:10]*** step 78: 784 (710, 74 REF) [00:00:10]*** step 79: 776 (700, 76 REF) [00:00:10]*** step 80: 767 (690, 77 REF) [00:00:10]*** step 81: 759 (680, 79 REF) [00:00:10]*** step 82: 751 (670, 81 REF) [00:00:10]*** step 83: 744 (660, 84 REF) [00:00:10]*** step 84: 737 (650, 87 REF) [00:00:10]*** step 85: 730 (640, 90 REF) [00:00:10]*** step 86: 723 (630, 93 REF) [00:00:10]*** step 87: 717 (620, 97 REF) [00:00:10]*** step 88: 710 (610, 100 REF) [00:00:10]*** step 89: 705 (600, 105 REF) [00:00:10]*** step 90: 699 [00:00:10]*** step 91: 693 [00:00:10]*** step 92: 688 [00:00:10]*** step 93: 683 [00:00:10]*** step 94: 678 [00:00:10]*** step 95: 673 [00:00:10]*** step 96: 669 [00:00:10]*** step 97: 664 [00:00:10]*** step 98: 660 [00:00:10]*** step 99: 656 [00:00:10]*** step 100: 652 [00:00:10]*** step 101: 648 [00:00:10]*** step 102: 644 [00:00:10]*** step 103: 641 [00:00:10]*** step 104: 638 [00:00:10]*** step 105: 634 [00:00:10]*** step 106: 631 [00:00:10]*** step 107: 628 [00:00:10]*** step 108: 625 [00:00:10]*** step 109: 622 [00:00:10]*** step 110: 620 [00:00:10]*** step 111: 617 [00:00:10]*** step 112: 615 [00:00:10]*** step 113: 612 [00:00:10]*** step 114: 610 [00:00:10]*** step 115: 608 [00:00:10]*** step 116: 605 [00:00:10]*** step 117: 603 [00:00:10]*** step 118: 601 [00:00:10]*** step 119: 599 [00:00:10]*** printer: Printer HW initialized [00:00:10]*** initSamCard finished [00:00:10]*** RTC: 33109744+1685884861=1718994605 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x200ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33530624 [00:00:10]*** Is cutter blocked? [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 03 00 02 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 24 B7 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 5C [00:00:11]Are we in boot? [00:00:11]We are not in boot now [00:00:11]Write to MH i2c: 01 00 00 04 00 04 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:11]Model is 3 [00:00:11]MH firmware is 30620 [00:00:11]MH boot firmware is 3 [00:00:11]MH_SetPrinterDots 448 [00:00:11]HeadWidthInBytes 56 [00:00:11]maxmasksize 7 [00:00:11]Write to MH i2c: D6 06 00 05 00 41 00 40 00 FF FF 5F [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:11]Write to MH i2c: D5 00 00 06 00 DA [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]ExternCall_SetCallbacks [00:00:11]NVStorageInit [00:00:11]MH_GetDate [00:00:11]Write to MH i2c: F0 00 00 07 00 F6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 07 00 00 AD C6 75 66 BD 8F 7C 64 79 [18:30:05]Current date/time: 21.06.2024 18:30 [18:30:05]FM_Init [18:30:05]wFMConnect [18:30:05]MH_SAM_On [18:30:05]Write to MH i2c: E0 00 00 08 00 E7 [18:30:05]Write i2c OK [18:30:05]MH_I2C_Read... [18:30:05]*** iso7816_init finished! [18:30:05]*** atr: [18:30:05]*** 0F 3B D5 18 FF 81 91 FE [18:30:05]*** 1F C3 80 73 C8 21 10 0A [18:30:05]*** 00 00 00 00 00 00 00 00 [18:30:05]*** 00 00 00 00 00 00 00 00 [18:30:05]*** 00 00 00 00 00 00 00 00 [18:30:05]*** 00 00 00 00 00 00 00 00 [18:30:05]*** 00 00 00 00 00 00 00 00 [18:30:05]*** 00 00 00 00 00 00 00 00 [18:30:05]Read from MH i2c: E0 [18:30:05]MH_I2C_Read... [18:30:05]Read from MH i2c: E0 10 00 [18:30:05]MH_I2C_Read... [18:30:05]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [18:30:05]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [18:30:05]wFMCommunicate request_size=10 [18:30:05]MH_SAM_APDU [18:30:05]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [18:30:05]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [18:30:05]Write i2c OK [18:30:05]MH_I2C_Read... [18:30:05]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [18:30:05]Read from MH i2c: E2 [18:30:05]MH_I2C_Read... [18:30:05]Read from MH i2c: E2 03 00 [18:30:05]MH_I2C_Read... [18:30:05]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [18:30:05]RAPDU: 90 00 [18:30:05]wFMCommunicate OK [18:30:05]wFMCommunicate request_size=4 [18:30:05]MH_SAM_APDU [18:30:05]CAPDU: 80 11 00 00 [18:30:05]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [18:30:05]Write i2c OK [18:30:05]MH_I2C_Read... [18:30:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:30:05]Read from MH i2c: E2 [18:30:05]MH_I2C_Read... [18:30:05]Read from MH i2c: E2 17 00 [18:30:05]MH_I2C_Read... [18:30:05]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 D7 [18: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 [18:30:05]wFMCommunicate OK [18:30:05]Detected FM SN is 0000000000875093 [18:30:05]Stored FM SN is 0000000000875093 [18:30:05]wFMCommunicate request_size=9 [18:30:05]MH_SAM_APDU [18:30:05]CAPDU: 80 16 00 00 04 D4 80 01 00 [18:30:05]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 D4 80 01 00 00 00 E7 [18:30:05]Write i2c OK [18:30:05]MH_I2C_Read... [18:30:05]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [18:30:05]Read from MH i2c: E2 [18:30:05]MH_I2C_Read... [18:30:05]Read from MH i2c: E2 03 00 [18:30:05]MH_I2C_Read... [18:30:05]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [18:30:05]RAPDU: 90 00 [18:30:05]wFMCommunicate OK [18:30:05]FM PIN OK [18:30:05]wFMCommunicate request_size=8 [18:30:05]MH_SAM_APDU [18:30:05]CAPDU: 80 14 04 00 03 02 00 01 [18:30:05]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [18:30:05]Write i2c OK [18:30:05]MH_I2C_Read... [18:30:05]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [18:30:05]Read from MH i2c: E2 [18:30:05]MH_I2C_Read... [18:30:05]Read from MH i2c: E2 03 00 [18:30:05]MH_I2C_Read... [18:30:05]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [18:30:05]RAPDU: 90 00 [18:30:05]wFMCommunicate OK [18:30:05]wFMCommunicate request_size=13 [18:30:05]MH_SAM_APDU [18:30:05]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [18:30:05]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [18:30:05]Write i2c OK [18:30:05]MH_I2C_Read... [18:30:05]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [18:30:05]Read from MH i2c: E2 [18:30:05]MH_I2C_Read... [18:30:05]Read from MH i2c: E2 03 00 [18:30:05]MH_I2C_Read... [18:30:05]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [18:30:05]RAPDU: 90 00 [18:30:05]wFMCommunicate OK [18:30:05]wFMCommunicate request_size=4 [18:30:05]MH_SAM_APDU [18:30:05]CAPDU: 80 11 00 00 [18:30:05]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [18:30:05]Write i2c OK [18:30:05]MH_I2C_Read... [18:30:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:30:05]Read from MH i2c: E2 [18:30:05]MH_I2C_Read... [18:30:05]Read from MH i2c: E2 17 00 [18:30:05]MH_I2C_Read... [18:30:05]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 DB [18: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 [18:30:05]wFMCommunicate OK [18:30:05]DocumentArchiveInit [18:30:05]Start Httpd... [18:30:05]Httpd thread 3067903332 created [18:30:05]Write to MH i2c: 01 00 00 0F 00 0F [18:30:05]Write i2c OK [18:30:05]MH_I2C_Read... [18:30:05]Read from MH i2c: 01 [18:30:05]MH_I2C_Read... [18:30:05]Read from MH i2c: 01 07 00 [18:30:05]MH_I2C_Read... [18:30:05]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [18:30:05]MH Int Process started [18:30:05]Allocated Socket 8 [18:30:05]Bind OK [18:30:05]Listen OK [18:30:05]httpd running on port 8080 [18:30:05]Waiting for new connection... [18:30:05]OFD Sender: No OFD packet to send [18:30:10]OFD Sender: No OFD packet to send [18:30:15]OFD Sender: No OFD packet to send [18:30:20]OFD Sender: No OFD packet to send [18:30:25]OFD Sender: No OFD packet to send [18:30:30]OFD Sender: No OFD packet to send [18:30:35]OFD Sender: No OFD packet to send [18:30:40]OFD Sender: No OFD packet to send [18:30:45]OFD Sender: No OFD packet to send [18:30:50]OFD Sender: No OFD packet to send [18:30:55]OFD Sender: No OFD packet to send [18:31:00]OFD Sender: No OFD packet to send [18:31:05]OFD Sender: No OFD packet to send [18:31:10]OFD Sender: No OFD packet to send [18:31:15]OFD Sender: No OFD packet to send [18:31:20]OFD Sender: No OFD packet to send [18:31:25]OFD Sender: No OFD packet to send [18:31:25]accept exits with 9 [18:31:25]New connection [18:31:25]New thread 3067616612 created [18:31:25]Waiting for new connection... [18:31:25] Sock 9.Parse request [18:31:25]Sock 9.Check first char [18:31:25]Sock 9.First char is OK [18:31:25]request: POST /json_proto HTTP/1.0 [18:31:25]Method: POST [18:31:25]URL: /json_proto [18:31:25]Method is POST - this is cgi request [18:31:25]url: /json_proto [18:31:25]query_string will be loaded in cgi processing [18:31:25]execute_cgi json_proto POST (null) [18:31:25]execute_cgi path=json_proto method=POST [18:31:25]POST find Content-Length [18:31:25]Host: 172.17.38.133:8080 [18:31:25]Content-Length: 215 [18:31:25]Content-Type: application/json [18:31:25] [18:31:25]POST finish read [18:31:25]Found Content-Length = 215 [18:31:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:31:25]execute_script... [18:31:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:31:25]POST & json_proto [18:31:25]process_json_proto [18:31:25]json parsed OK: [18:31:25]protocol is kg_v1.0 [18:31:25]action value=get_value [18:31:25]process_action get_value [18:31:25]cmd_get_value [18:31:25]process_action get_value done [18:31:25]requested_data is exist [18:31:25]produce_requested_data [18:31:25]requested_item kkm.sn is exist - process it [18:31:25]requested_item kkm.ver is exist - process it [18:31:25]requested_item fm.sn is exist - process it [18:31:25]wFMCommunicate request_size=4 [18:31:25]MH_SAM_APDU [18:31:25]CAPDU: 80 11 00 00 [18:31:25]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [18:31:25]Write i2c OK [18:31:25]MH_I2C_Read... [18:31:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:31:25]Read from MH i2c: E2 [18:31:25]MH_I2C_Read... [18:31:25]Read from MH i2c: E2 17 00 [18:31:25]MH_I2C_Read... [18:31:25]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 DD [18:31: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:31:25]wFMCommunicate OK [18:31:25]requested_item fd.num is exist - process it [18:31:25]SAM_PROTO_GetFieldsCounters [18:31:25]wFMCommunicate request_size=4 [18:31:25]MH_SAM_APDU [18:31:25]CAPDU: 80 13 00 00 [18:31:25]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [18:31:25]Write i2c OK [18:31:25]MH_I2C_Read... [18:31:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:31:26]Read from MH i2c: E2 [18:31:26]MH_I2C_Read... [18:31:26]Read from MH i2c: E2 62 00 [18:31:26]MH_I2C_Read... [18:31:26]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 63 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 11 [18:31: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 02 97 01 00 0E 04 04 00 63 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 [18:31:26]wFMCommunicate OK [18:31:26]SAM_PROTO_GetFieldsCounters done [18:31:26]requested_item shift.num is exist - process it [18:31:26]requested_item shift.opened is exist - process it [18:31:26]req_shift_opened [18:31:26]FM_GetShiftState [18:31:26]SAM_PROTO_GetShiftState [18:31:26]wFMCommunicate request_size=4 [18:31:26]MH_SAM_APDU [18:31:26]CAPDU: 80 13 01 00 [18:31:26]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [18:31:26]Write i2c OK [18:31:26]MH_I2C_Read... [18:31:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:31:26]Read from MH i2c: E2 [18:31:26]MH_I2C_Read... [18:31:26]Read from MH i2c: E2 0E 00 [18:31:26]MH_I2C_Read... [18:31:26]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 A2 [18:31:26]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [18:31:26]wFMCommunicate OK [18:31:26]SAM_PROTO_GetShiftState done [18:31:26]FM_GetShiftState done [18:31:26]req_shift_opened done [18:31:26]requested_item shift.open_date is exist - process it [18:31:26]req_shift_open_date [18:31:26]req_shift_open_date done [18:31:26]produce_requested_data done [18:31:26]produce_requested_data return {"kkm.sn":"0300000164","kkm.ver":"001","fm.sn":"0000000000875093","fd.num":104194,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [18:31:26]process_action_free get_value [18:31:26]json_value_free [18:31:26]json_value_free done [18:31:26]process_json_proto returns [18:31:26]Send response to host [18:31:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000164","kkm.ver":"001","fm.sn":"0000000000875093","fd.num":104194,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [18:31:26]free response buf [18:31:26]execute_script done [18:31:26]execute_script returns [18:31:26]free content buf [18:31:26]Sock 9.Close socket [18:31:26]Sock 9.Thread stoped [18:31:26]accept exits with 7 [18:31:26]New connection [18:31:26]New thread 3067473252 created [18:31:26]Thread 3067616612 joined [18:31:26]Waiting for new connection... [18:31:26] Sock 7.Parse request [18:31:26]Sock 7.Check first char [18:31:26]Sock 7.First char is OK [18:31:26]request: POST /json_proto HTTP/1.0 [18:31:26]Method: POST [18:31:26]URL: /json_proto [18:31:26]Method is POST - this is cgi request [18:31:26]url: /json_proto [18:31:26]query_string will be loaded in cgi processing [18:31:26]execute_cgi json_proto POST (null) [18:31:26]execute_cgi path=json_proto method=POST [18:31:26]POST find Content-Length [18:31:26]Host: 172.17.38.133:8080 [18:31:26]Content-Length: 331 [18:31:26]Content-Type: application/json [18:31:26] [18:31:26]POST finish read [18:31:26]Found Content-Length = 331 [18:31:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [18:31:26]execute_script... [18:31:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [18:31:26]POST & json_proto [18:31:26]process_json_proto [18:31:26]json parsed OK: [18:31:26]protocol is kg_v1.0 [18:31:26]action value=get_value [18:31:26]process_action get_value [18:31:26]cmd_get_value [18:31:26]process_action get_value done [18:31:26]requested_data is exist [18:31:26]produce_requested_data [18:31:26]requested_item fm.sale.total is exist - process it [18:31:26]SAM_PROTO_GetFMData [18:31:26]wFMCommunicate request_size=4 [18:31:26]MH_SAM_APDU [18:31:26]CAPDU: 80 13 03 00 [18:31:26]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [18:31:26]Write i2c OK [18:31:26]MH_I2C_Read... [18:31:26]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [18:31:26]Read from MH i2c: E2 [18:31:26]MH_I2C_Read... [18:31:26]Read from MH i2c: E2 FD 00 [18:31:26]MH_I2C_Read... [18:31:26]Read from MH i2c: E2 FD 00 13 00 00 C5 04 85 04 C1 04 6E 04 04 00 3C 94 01 00 69 04 A3 00 6F 04 04 00 E2 8F 01 00 B1 04 05 00 AB 69 91 40 04 70 04 05 00 50 35 CB 5B 03 72 04 04 00 5B 34 C6 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 A0 A4 9D 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 B6 56 A2 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 5A 04 00 00 B1 04 04 00 34 B8 23 18 70 04 04 00 34 B8 23 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 2A 4C 90 02 EF 03 09 90 00 88 [18:31:26]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 3C 94 01 00 69 04 A3 00 6F 04 04 00 E2 8F 01 00 B1 04 05 00 AB 69 91 40 04 70 04 05 00 50 35 CB 5B 03 72 04 04 00 5B 34 C6 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 A0 A4 9D 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 B6 56 A2 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 5A 04 00 00 B1 04 04 00 34 B8 23 18 70 04 04 00 34 B8 23 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 2A 4C 90 02 EF 03 09 90 00 [18:31:26]wFMCommunicate OK [18:31:26]wFMCommunicate request_size=4 [18:31:26]MH_SAM_APDU [18:31:26]CAPDU: 80 17 00 00 [18:31:26]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [18:31:26]Write i2c OK [18:31:26]MH_I2C_Read... [18:31:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:31:27]Read from MH i2c: E2 [18:31:27]MH_I2C_Read... [18:31:27]Read from MH i2c: E2 FD 00 [18:31:27]MH_I2C_Read... [18:31:27]Read from MH i2c: E2 FD 00 14 00 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B2 B0 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 E2 [18:31:27]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B2 B0 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 [18:31:27]wFMCommunicate OK [18:31:27]wFMCommunicate request_size=4 [18:31:27]MH_SAM_APDU [18:31:27]CAPDU: 80 17 00 00 [18:31:27]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [18:31:27]Write i2c OK [18:31:27]MH_I2C_Read... [18:31:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:31:27]Read from MH i2c: E2 [18:31:27]MH_I2C_Read... [18:31:27]Read from MH i2c: E2 FD 00 [18:31:27]MH_I2C_Read... [18:31:27]Read from MH i2c: E2 FD 00 15 00 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 A7 [18:31:27]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [18:31:27]wFMCommunicate OK [18:31:27]wFMCommunicate request_size=4 [18:31:27]MH_SAM_APDU [18:31:27]CAPDU: 80 17 00 00 [18:31:27]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [18:31:27]Write i2c OK [18:31:27]MH_I2C_Read... [18:31:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:31:27]Read from MH i2c: E2 [18:31:27]MH_I2C_Read... [18:31:27]Read from MH i2c: E2 FD 00 [18:31:27]MH_I2C_Read... [18:31:27]Read from MH i2c: E2 FD 00 16 00 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 22 [18:31:27]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [18:31:27]wFMCommunicate OK [18:31:27]wFMCommunicate request_size=4 [18:31:27]MH_SAM_APDU [18:31:27]CAPDU: 80 17 00 00 [18:31:27]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [18:31:27]Write i2c OK [18:31:27]MH_I2C_Read... [18:31:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [18:31:27]Read from MH i2c: E2 [18:31:27]MH_I2C_Read... [18:31:27]Read from MH i2c: E2 E2 00 [18:31:27]MH_I2C_Read... [18:31:27]Read from MH i2c: E2 E2 00 17 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 75 [18:31:27]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [18:31:27]wFMCommunicate OK [18:31:27]SAM_PROTO_GetFMData done [18:31:27]requested_item fm.sale_refund.total is exist - process it [18:31:27]requested_item fm.buy.total is exist - process it [18:31:27]requested_item shift.sale.total is exist - process it [18:31:27]SAM_PROTO_GetShiftData [18:31:27]wFMCommunicate request_size=4 [18:31:27]MH_SAM_APDU [18:31:27]CAPDU: 80 13 02 00 [18:31:27]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [18:31:27]Write i2c OK [18:31:27]MH_I2C_Read... [18:31:28]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [18:31:28]Read from MH i2c: E2 [18:31:28]MH_I2C_Read... [18:31:28]Read from MH i2c: E2 FD 00 [18:31:28]MH_I2C_Read... [18:31:28]Read from MH i2c: E2 FD 00 18 00 00 BA 04 AA 04 B6 04 6E 04 04 00 75 00 00 00 69 04 9D 00 6F 04 04 00 74 00 00 00 B1 04 04 00 DE A7 28 01 70 04 03 00 B0 6E AE 72 04 03 00 2E 39 7A 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 5C 82 1F 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 21 A0 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 A0 86 01 70 04 03 00 A0 86 01 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 82 29 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 9E [18:31:28]RAPDU: BA 04 AA 04 B6 04 6E 04 04 00 75 00 00 00 69 04 9D 00 6F 04 04 00 74 00 00 00 B1 04 04 00 DE A7 28 01 70 04 03 00 B0 6E AE 72 04 03 00 2E 39 7A 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 5C 82 1F 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 21 A0 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 A0 86 01 70 04 03 00 A0 86 01 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 82 29 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [18:31:28]wFMCommunicate OK [18:31:28]wFMCommunicate request_size=4 [18:31:28]MH_SAM_APDU [18:31:28]CAPDU: 80 17 00 00 [18:31:28]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [18:31:28]Write i2c OK [18:31:28]MH_I2C_Read... [18:31:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:31:28]Read from MH i2c: E2 [18:31:28]MH_I2C_Read... [18:31:28]Read from MH i2c: E2 FD 00 [18:31:28]MH_I2C_Read... [18:31:28]Read from MH i2c: E2 FD 00 19 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 75 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 90 00 BB [18:31:28]RAPDU: EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 75 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 90 00 [18:31:28]wFMCommunicate OK [18:31:28]wFMCommunicate request_size=4 [18:31:28]MH_SAM_APDU [18:31:28]CAPDU: 80 17 00 00 [18:31:28]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [18:31:28]Write i2c OK [18:31:28]MH_I2C_Read... [18:31:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:31:28]Read from MH i2c: E2 [18:31:28]MH_I2C_Read... [18:31:28]Read from MH i2c: E2 FD 00 [18:31:28]MH_I2C_Read... [18:31:28]Read from MH i2c: E2 FD 00 1A 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 90 00 C6 [18:31:28]RAPDU: 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 90 00 [18:31:28]wFMCommunicate OK [18:31:28]wFMCommunicate request_size=4 [18:31:28]MH_SAM_APDU [18:31:28]CAPDU: 80 17 00 00 [18:31:28]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [18:31:28]Write i2c OK [18:31:28]MH_I2C_Read... [18:31:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:31:29]Read from MH i2c: E2 [18:31:29]MH_I2C_Read... [18:31:29]Read from MH i2c: E2 FD 00 [18:31:29]MH_I2C_Read... [18:31:29]Read from MH i2c: E2 FD 00 1B 00 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 90 00 13 [18:31:29]RAPDU: 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 90 00 [18:31:29]wFMCommunicate OK [18:31:29]wFMCommunicate request_size=4 [18:31:29]MH_SAM_APDU [18:31:29]CAPDU: 80 17 00 00 [18:31:29]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [18:31:29]Write i2c OK [18:31:29]MH_I2C_Read... [18:31:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [18:31:29]Read from MH i2c: E2 [18:31:29]MH_I2C_Read... [18:31:29]Read from MH i2c: E2 D7 00 [18:31:29]MH_I2C_Read... [18:31:29]Read from MH i2c: E2 D7 00 1C 00 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 7F [18:31:29]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [18:31:29]wFMCommunicate OK [18:31:29]SAM_PROTO_GetShiftData done [18:31:29]requested_item shift.sale.total_cash is exist - process it [18:31:29]requested_item shift.sale_refund.total is exist - process it [18:31:29]requested_item shift.sale_refund.total_cash is exist - process it [18:31:29]requested_item shift.buy.total is exist - process it [18:31:29]requested_item shift.buy.total_cash is exist - process it [18:31:29]produce_requested_data done [18:31:29]produce_requested_data return {"fm.sale.total":182631407.79,"fm.sale_refund.total":4049941.00,"fm.buy.total":0.00,"shift.sale.total":194416.30,"shift.sale.total_cash":114316.00,"shift.sale_refund.total":1000.00,"shift.sale_refund.total_cash":1000.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [18:31:29]process_action_free get_value [18:31:29]json_value_free [18:31:29]json_value_free done [18:31:29]process_json_proto returns [18:31:29]Send response to host [18:31:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":182631407.79,"fm.sale_refund.total":4049941.00,"fm.buy.total":0.00,"shift.sale.total":194416.30,"shift.sale.total_cash":114316.00,"shift.sale_refund.total":1000.00,"shift.sale_refund.total_cash":1000.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [18:31:29]free response buf [18:31:29]execute_script done [18:31:29]execute_script returns [18:31:29]free content buf [18:31:29]Sock 7.Close socket [18:31:29]Sock 7.Thread stoped [18:31:29]accept exits with 9 [18:31:29]New connection [18:31:29]New thread 3067616612 created [18:31:29]Thread 3067473252 joined [18:31:29]Waiting for new connection... [18:31:29] Sock 9.Parse request [18:31:29]Sock 9.Check first char [18:31:29]Sock 9.First char is OK [18:31:29]request: POST /json_proto HTTP/1.0 [18:31:29]Method: POST [18:31:29]URL: /json_proto [18:31:29]Method is POST - this is cgi request [18:31:29]url: /json_proto [18:31:29]query_string will be loaded in cgi processing [18:31:29]execute_cgi json_proto POST (null) [18:31:29]execute_cgi path=json_proto method=POST [18:31:29]POST find Content-Length [18:31:29]Host: 172.17.38.133:8080 [18:31:29]Content-Length: 677 [18:31:29]Content-Type: application/json [18:31:29] [18:31:29]POST finish read [18:31:29]Found Content-Length = 677 [18:31:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673652", "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:31:29]execute_script... [18:31: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)673652", "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:31:29]POST & json_proto [18:31:29]process_json_proto [18:31:29]json parsed OK: [18:31:29]protocol is kg_v1.0 [18:31:29]action value=close_receipt [18:31:29]process_action close_receipt [18:31:29]cmd_close_receipt [18:31:29]MH_GetDate [18:31:29]Write to MH i2c: F0 00 00 1D 00 0C [18:31:29]Write i2c OK [18:31:29]MH_I2C_Read... [18:31:29]Read from MH i2c: F0 [18:31:29]MH_I2C_Read... [18:31:29]Read from MH i2c: F0 09 00 [18:31:29]MH_I2C_Read... [18:31:29]Read from MH i2c: F0 09 00 1D 00 00 02 C7 75 66 BD 8F 7C 64 E5 [18:31:29]GetLastDocTimeStamp 97 [18:31:29]current date 1718994690 [18:31:29]FM_GetShiftState [18:31:29]SAM_PROTO_GetShiftState [18:31:29]wFMCommunicate request_size=4 [18:31:29]MH_SAM_APDU [18:31:29]CAPDU: 80 13 01 00 [18:31:29]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [18:31:29]Write i2c OK [18:31:29]MH_I2C_Read... [18:31:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:31:29]Read from MH i2c: E2 [18:31:29]MH_I2C_Read... [18:31:29]Read from MH i2c: E2 0E 00 [18:31:29]MH_I2C_Read... [18:31:29]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 AE [18:31:29]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [18:31:29]wFMCommunicate OK [18:31:29]SAM_PROTO_GetShiftState done [18:31:29]FM_GetShiftState done [18:31:29]opened in 1718929509 [18:31:29]opened+sec_in_day 1719015909 [18:31:29]quantity*price = 50065 [18:31:29]sum+1 = 50067 [18:31:29]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 СНО: Общий режим Чек 118 21.06.2024 18:31 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104195 ФПД: 98449512631035 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T183130&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104195&fm=98449512631035&tin=02508201610067®Number=0000000000092785&sum=50000 [18:31:30]StoreToDocumentArchive [18:31:30]shift 355 fd 104195 [18:31:30]save to /storage/0355/doc_00104195 [18:31:30]save last doc name /storage/0355/doc_00104195 to /storage/kkm_last_doc_name [18:31:30]save OK [18:31:30]Clear old archive folders... [18:31:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:31:30]tlvbuf is 0068D3F0 [18:31:30]SAM_PROTO_ClearQueue [18:31:30]wFMCommunicate request_size=4 [18:31:30]MH_SAM_APDU [18:31:30]CAPDU: 80 09 00 00 [18:31:30]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [18:31:30]Write i2c OK [18:31:30]MH_I2C_Read... [18:31:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:31:30]Read from MH i2c: E2 [18:31:30]MH_I2C_Read... [18:31:30]Read from MH i2c: E2 03 00 [18:31:30]MH_I2C_Read... [18:31:30]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [18:31:30]RAPDU: 90 00 [18:31:30]wFMCommunicate OK [18:31:30]SAM_PROTO_ClearQueue done [18:31:30]KKMCreateOFDPacket [18:31:30]OFDProtocolAddRootSTLVToBuf [18:31:30]FM_MakeSignedData [18:31:30]FM_MakeSignedData [18:31:30]SAM_PROTO_SignData [18:31:30]wFMCommunicate request_size=4 [18:31:30]MH_SAM_APDU [18:31:30]CAPDU: 80 0D 01 02 [18:31:30]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [18:31:30]Write i2c OK [18:31:30]MH_I2C_Read... [18:31:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:31:30]Read from MH i2c: E2 [18:31:30]MH_I2C_Read... [18:31:30]Read from MH i2c: E2 03 00 [18:31:30]MH_I2C_Read... [18:31:30]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [18:31:30]RAPDU: 90 00 [18:31:30]wFMCommunicate OK [18:31:30]wFMCommunicate request_size=255 [18:31:30]MH_SAM_APDU [18:31: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 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 76 00 00 00 F4 03 04 00 02 C7 75 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 03 97 01 00 35 04 06 00 59 [18:31:30]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 76 00 00 00 F4 03 04 00 02 C7 75 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 03 97 01 00 35 04 06 00 59 00 00 D1 [18:31:31]Write i2c OK [18:31:31]MH_I2C_Read... [18:31:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:31:31]Read from MH i2c: E2 [18:31:31]MH_I2C_Read... [18:31:31]Read from MH i2c: E2 03 00 [18:31:31]MH_I2C_Read... [18:31:31]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [18:31:31]RAPDU: 90 00 [18:31:31]wFMCommunicate OK [18:31:31]wFMCommunicate request_size=10 [18:31:31]MH_SAM_APDU [18:31:31]CAPDU: 80 0D 02 02 05 8A 10 3A 8A FB [18:31:31]Write to MH i2c: E2 0D 00 2E 00 80 0D 02 02 05 00 8A 10 3A 8A FB 00 00 0B [18:31:31]Write i2c OK [18:31:31]MH_I2C_Read... [18:31:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:31:31]Read from MH i2c: E2 [18:31:31]MH_I2C_Read... [18:31:31]Read from MH i2c: E2 03 00 [18:31:31]MH_I2C_Read... [18:31:31]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [18:31:31]RAPDU: 90 00 [18:31:31]wFMCommunicate OK [18:31:31]wFMCommunicate request_size=4 [18:31:31]MH_SAM_APDU [18:31:31]CAPDU: 80 0D 03 02 [18:31:31]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [18:31:31]Write i2c OK [18:31:31]MH_I2C_Read... [18:31:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:31:31]Read from MH i2c: E2 [18:31:31]MH_I2C_Read... [18:31:31]Read from MH i2c: E2 0B 00 [18:31:31]MH_I2C_Read... [18:31:31]Read from MH i2c: E2 0B 00 2F 00 00 AF 14 9D C9 EA 73 2B 84 90 00 E0 [18:31:31]RAPDU: AF 14 9D C9 EA 73 2B 84 90 00 [18:31:31]wFMCommunicate OK [18:31:31]SAM_PROTO_SignData done [18:31:31]FM_MakeSignedData done [18:31:31]CreateOFDProtocolMessage [18:31:31]wFMCommunicate request_size=4 [18:31:31]MH_SAM_APDU [18:31:31]CAPDU: 80 11 00 00 [18:31:31]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [18:31:31]Write i2c OK [18:31:31]MH_I2C_Read... [18:31:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:31:31]Read from MH i2c: E2 [18:31:31]MH_I2C_Read... [18:31:31]Read from MH i2c: E2 17 00 [18:31:31]MH_I2C_Read... [18:31:31]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 FD [18:31: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:31:31]wFMCommunicate OK [18:31:31]CreateOFDProtocolMessage done [18:31:31]OFDSenderStorePacket 104195 [18:31:31]StoreOFDPacket docnum=104195 [18:31: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 72 F5 07 01 06 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 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 76 00 00 00 F4 03 04 00 02 C7 75 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 03 97 01 00 35 04 06 00 59 8A 10 3A 8A FB AF 14 9D C9 EA 73 2B 84 [18:31:31]CheckFolder [18:31:31]dirname=/storage/ofd_packets [18:31:31]CheckFolder done [18:31:31]ProducePacketName [18:31:31]name=ofd_packets/00104195 [18:31:31]NVStorageSaveData ofd_packets/00104195 [18:31:31]File name is /storage/ofd_packets/00104195 [18:31:31]Write 301 bytes [18:31:31]NVStorageSaveData done [18:31:31]OFDSenderStorePacket done [18:31:31]KKMCreateOFDPacket done [18:31:31]NVStorageSaveData kkm_last_timestamp [18:31:31]File name is /storage/kkm_last_timestamp [18:31:31]Write 4 bytes [18:31:31]NVStorageSaveData done [18:31:31]ExternCall_PrintAddStr [18:31:31]wPrintStart [18:31:31]Write to MH i2c: 01 00 00 31 00 31 [18:31:31]Write i2c OK [18:31:31]MH_I2C_Read... [18:31:31]Read from MH i2c: 01 [18:31:31]MH_I2C_Read... [18:31:31]Read from MH i2c: 01 07 00 [18:31:31]MH_I2C_Read... [18:31:31]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [18:31:31]RasterBufferAndPrint [18:31:31]line Счет N : (1)673652 [18:31:31]line ИНН: 02508201610067 [18:31:31]line Контрольно-Кассовый Чек [18:31:31]line ПРОДАЖА [18:31:31]line ТРК (МРК, ГНК) : 42 [18:31:31]line Товар: 2710124130 [18:31:31]line Аи-92-К-5 [18:31:31]line 7.540 * 66.40 [18:31:31]line = 500.66 [18:31:31]line НДС 12% НСП 1% [18:31:31]line > о реализуемом товаре [18:31:31]line ОКРУГЛЕНИЕ: -0.66 [18:31:31]line ИТОГО: 500.00 [18:31:31]line Внесено: 500.00 [18:31:31]line СДАЧА: 0.00 [18:31:31]line НСП 1% : 4.43 [18:31:31]line НДС 12% : 53.17 [18:31:31]line Наличными: 500.00 [18:31:31]line Безнал.: 0.00 [18:31:31]line Место: АЗС № 120 "Партнер Нефть" [18:31:31]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [18:31:31]line СНО: Общий режим [18:31:31]line Чек 118 21.06.2024 18:31 [18:31:31]line Смена: 355 ФФД: 1.0 [18:31:31]line ЗНМ: 0300000164 [18:31:31]line РНМ: 0000000000092785 [18:31:31]line Версия ККМ: 001 [18:31:31]line ФМ: 0000000000875093 [18:31:31]line ФД: 104195 [18:31:31]line ФПД: 98449512631035 [18:31:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T183130&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104195&fm=98449512631035&tin=02508201610067®Number=0000000000092785&sum=50000 [18:31:32]OFD Sender: Processing packet 104195 [packets to send 17, broken 16] [18:31:32]ProducePacketName [18:31:32]name=ofd_packets/00104195 [18:31:32]OFD Sender: To server: pG, [18:31:32]CommunicateWithHost lk.salyk.kg:30040 [18:31:32]ConnectInit lk.salyk.kg [18:31:32]written 0, free lines is 4095 [18:31:32]Connected sock=10 [18:31: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 72 F5 07 01 06 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 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 76 00 00 00 F4 03 04 00 02 C7 75 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 03 97 01 00 35 04 06 00 59 8A 10 3A 8A FB AF 14 9D C9 EA 73 2B 84 [18:31: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 2E 5F 47 00 3E AD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 03 97 01 00 F4 03 04 00 84 6D 75 66 B6 04 01 00 00 4E 01 C5 29 4C 34 3C 4D [18:31:32]CommunicateWithHost err = 0 [18:31:32]CheckOFDResponse [18:31:32]1017 (14) - 77093643461234 [18:31:32]1041 (16) - 0000000000875093 [18:31:32]1040 (4) - 104195 [18:31:32]1012 (4) - 21.06.2024 12:09 [18:31:32]1206 (1) - 0 [18:31:32]OFD Sender: Remove packet 104195 [18:31:32]ProducePacketName [18:31:32]name=ofd_packets/00104195 [18:31:32]NVStorageDeleteData [18:31:32]Write to MH i2c: 01 00 00 5C 00 5C [18:31:32]Write i2c OK [18:31:32]MH_I2C_Read... [18:31:32]Read from MH i2c: 01 [18:31:32]MH_I2C_Read... [18:31:32]Read from MH i2c: 01 07 00 [18:31:32]MH_I2C_Read... [18:31:32]Read from MH i2c: 01 07 00 5C 00 00 00 00 00 00 0A 0D 7A [18:31:32]RasterBufferAndPrint [18:31:32]line [18:31:32]line [18:31:32]line [18:31:32]line [18:31:32]line [18:31:32]written 0, free lines is 3359 [18:31:32]MH_Cut [18:31:32]Write to MH i2c: D1 01 00 63 00 01 35 [18:31:32]Write i2c OK [18:31:32]MH_I2C_Read... [18:31:32]Read from MH i2c: D1 [18:31:32]MH_I2C_Read... [18:31:32]Read from MH i2c: D1 01 00 [18:31:32]MH_I2C_Read... [18:31:32]Read from MH i2c: D1 01 00 63 00 00 34 [18:31:32]Write to MH i2c: 01 00 00 64 00 64 [18:31:32]Write i2c OK [18:31:32]MH_I2C_Read... [18:31:33]OFD Sender: No OFD packet to send [18:31:33]*** Cut start [18:31:33]*** Partial cut [18:31:33]*** CUTSNS_PIN = 1 [18:31:33]*** CUTSNS_PIN = 0 [18:31:33]*** Brake cut motor [18:31:33]Read from MH i2c: 01 [18:31:33]MH_I2C_Read... [18:31:34]*** Stop cut motor [18:31:34]*** Cut end [18:31:34]Read from MH i2c: 01 07 00 [18:31:34]MH_I2C_Read... [18:31:34]Read from MH i2c: 01 07 00 64 00 00 00 00 00 00 FF 0F 79 [18:31:34]process_action close_receipt done [18:31:34]requested_data is exist [18:31:34]produce_requested_data [18:31:34]requested_item fm.sn is exist - process it [18:31:34]wFMCommunicate request_size=4 [18:31:34]MH_SAM_APDU [18:31:34]CAPDU: 80 11 00 00 [18:31:34]Write to MH i2c: E2 08 00 65 00 80 11 00 00 00 00 00 00 DF [18:31:34]Write i2c OK [18:31:34]MH_I2C_Read... [18:31:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:31:34]Read from MH i2c: E2 [18:31:34]MH_I2C_Read... [18:31:34]Read from MH i2c: E2 17 00 [18:31:34]MH_I2C_Read... [18:31:34]Read from MH i2c: E2 17 00 65 00 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: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 [18:31:34]wFMCommunicate OK [18:31:34]requested_item fd.num is exist - process it [18:31:34]SAM_PROTO_GetFieldsCounters [18:31:34]wFMCommunicate request_size=4 [18:31:34]MH_SAM_APDU [18:31:34]CAPDU: 80 13 00 00 [18:31:34]Write to MH i2c: E2 08 00 66 00 80 13 00 00 00 00 00 00 E2 [18:31:34]Write i2c OK [18:31:34]MH_I2C_Read... [18:31:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:31:34]Read from MH i2c: E2 [18:31:34]MH_I2C_Read... [18:31:34]Read from MH i2c: E2 62 00 [18:31:34]MH_I2C_Read... [18:31:34]Read from MH i2c: E2 62 00 66 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 03 97 01 00 0E 04 04 00 63 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 6A [18:31: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 03 97 01 00 0E 04 04 00 63 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 [18:31:34]wFMCommunicate OK [18:31:34]SAM_PROTO_GetFieldsCounters done [18:31:34]requested_item shift.num is exist - process it [18:31:34]requested_item shift.opened is exist - process it [18:31:34]req_shift_opened [18:31:34]FM_GetShiftState [18:31:34]SAM_PROTO_GetShiftState [18:31:34]wFMCommunicate request_size=4 [18:31:34]MH_SAM_APDU [18:31:34]CAPDU: 80 13 01 00 [18:31:34]Write to MH i2c: E2 08 00 67 00 80 13 01 00 00 00 00 00 E4 [18:31:34]Write i2c OK [18:31:34]MH_I2C_Read... [18:31:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:31:34]Read from MH i2c: E2 [18:31:34]MH_I2C_Read... [18:31:34]Read from MH i2c: E2 0E 00 [18:31:34]MH_I2C_Read... [18:31:34]Read from MH i2c: E2 0E 00 67 00 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 F7 [18:31:34]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [18:31:34]wFMCommunicate OK [18:31:34]SAM_PROTO_GetShiftState done [18:31:34]FM_GetShiftState done [18:31:34]req_shift_opened done [18:31:34]requested_item shift.open_date is exist - process it [18:31:34]req_shift_open_date [18:31:34]req_shift_open_date done [18:31:34]produce_requested_data done [18:31:34]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104195,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [18:31:34]process_action_free close_receipt [18:31:34]json_value_free [18:31:34]json_value_free done [18:31:34]process_json_proto returns [18:31:34]Send response to host [18:31:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104195,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [18:31:34]free response buf [18:31:34]execute_script done [18:31:34]execute_script returns [18:31:34]free content buf [18:31:34]Sock 9.Close socket [18:31:34]Sock 9.Thread stoped [18:31:38]OFD Sender: No OFD packet to send [18:31:43]OFD Sender: No OFD packet to send [18:31:48]OFD Sender: No OFD packet to send [18:31:53]OFD Sender: No OFD packet to send [18:31:58]OFD Sender: No OFD packet to send [18:32:03]OFD Sender: No OFD packet to send [18:32:08]OFD Sender: No OFD packet to send [18:32:13]OFD Sender: No OFD packet to send [18:32:18]OFD Sender: No OFD packet to send [18:32:23]OFD Sender: No OFD packet to send [18:32:28]OFD Sender: No OFD packet to send [18:32:33]accept exits with 7 [18:32:33]New connection [18:32:33]New thread 3067473252 created [18:32:33]Thread 3067616612 joined [18:32:33]Waiting for new connection... [18:32:33] Sock 7.Parse request [18:32:33]Sock 7.Check first char [18:32:33]Sock 7.First char is OK [18:32:33]request: POST /json_proto HTTP/1.0 [18:32:33]Method: POST [18:32:33]URL: /json_proto [18:32:33]Method is POST - this is cgi request [18:32:33]url: /json_proto [18:32:33]query_string will be loaded in cgi processing [18:32:33]execute_cgi json_proto POST (null) [18:32:33]execute_cgi path=json_proto method=POST [18:32:33]POST find Content-Length [18:32:33]Host: 172.17.38.133:8080 [18:32:33]Content-Length: 677 [18:32:33]Content-Type: application/json [18:32:33] [18:32:33]POST finish read [18:32:33]Found Content-Length = 677 [18:32:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673662", "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" ] } } [18:32:33]execute_script... [18:32: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)673662", "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" ] } } [18:32:33]POST & json_proto [18:32:33]process_json_proto [18:32:33]json parsed OK: [18:32:33]protocol is kg_v1.0 [18:32:33]action value=close_receipt [18:32:33]process_action close_receipt [18:32:33]cmd_close_receipt [18:32:33]MH_GetDate [18:32:33]Write to MH i2c: F0 00 00 68 00 57 [18:32:33]Write i2c OK [18:32:33]MH_I2C_Read... [18:32:33]Read from MH i2c: F0 [18:32:33]MH_I2C_Read... [18:32:33]Read from MH i2c: F0 09 00 [18:32:33]MH_I2C_Read... [18:32:33]Read from MH i2c: F0 09 00 68 00 00 42 C7 75 66 BD 8F 7C 64 70 [18:32:33]GetLastDocTimeStamp 1718994690 [18:32:33]current date 1718994754 [18:32:33]FM_GetShiftState [18:32:33]SAM_PROTO_GetShiftState [18:32:33]wFMCommunicate request_size=4 [18:32:33]MH_SAM_APDU [18:32:33]CAPDU: 80 13 01 00 [18:32:33]Write to MH i2c: E2 08 00 69 00 80 13 01 00 00 00 00 00 E6 [18:32:33]Write i2c OK [18:32:33]MH_I2C_Read... [18:32:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:32:33]Read from MH i2c: E2 [18:32:33]MH_I2C_Read... [18:32:33]Read from MH i2c: E2 0E 00 [18:32:33]MH_I2C_Read... [18:32:33]Read from MH i2c: E2 0E 00 69 00 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 F9 [18:32:33]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [18:32:33]wFMCommunicate OK [18:32:33]SAM_PROTO_GetShiftState done [18:32:33]FM_GetShiftState done [18:32:33]opened in 1718929509 [18:32:33]opened+sec_in_day 1719015909 [18:32:33]quantity*price = 60025 [18:32:33]sum+1 = 60027 [18:32:33]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 СНО: Общий режим Чек 119 21.06.2024 18:32 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104196 ФПД: 169724900959629 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T183234&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104196&fm=169724900959629&tin=02508201610067®Number=0000000000092785&sum=60000 [18:32:34]StoreToDocumentArchive [18:32:34]shift 355 fd 104196 [18:32:34]save to /storage/0355/doc_00104196 [18:32:34]save last doc name /storage/0355/doc_00104196 to /storage/kkm_last_doc_name [18:32:34]save OK [18:32:34]Clear old archive folders... [18:32:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:32:34]tlvbuf is 00680830 [18:32:34]SAM_PROTO_ClearQueue [18:32:34]wFMCommunicate request_size=4 [18:32:34]MH_SAM_APDU [18:32:34]CAPDU: 80 09 00 00 [18:32:34]Write to MH i2c: E2 08 00 76 00 80 09 00 00 00 00 00 00 E8 [18:32:34]Write i2c OK [18:32:34]MH_I2C_Read... [18:32:34]Read from MH i2c: E2 [18:32:34]MH_I2C_Read... [18:32:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:32:34]Read from MH i2c: E2 03 00 [18:32:34]MH_I2C_Read... [18:32:34]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [18:32:34]RAPDU: 90 00 [18:32:34]wFMCommunicate OK [18:32:34]SAM_PROTO_ClearQueue done [18:32:34]KKMCreateOFDPacket [18:32:34]OFDProtocolAddRootSTLVToBuf [18:32:34]FM_MakeSignedData [18:32:34]FM_MakeSignedData [18:32:34]SAM_PROTO_SignData [18:32:34]wFMCommunicate request_size=4 [18:32:34]MH_SAM_APDU [18:32:34]CAPDU: 80 0D 01 02 [18:32:34]Write to MH i2c: E2 08 00 77 00 80 0D 01 02 00 00 00 00 F0 [18:32:34]Write i2c OK [18:32:34]MH_I2C_Read... [18:32:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:32:34]Read from MH i2c: E2 [18:32:34]MH_I2C_Read... [18:32:34]Read from MH i2c: E2 03 00 [18:32:34]MH_I2C_Read... [18:32:34]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [18:32:34]RAPDU: 90 00 [18:32:34]wFMCommunicate OK [18:32:34]wFMCommunicate request_size=255 [18:32:34]MH_SAM_APDU [18:32: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 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 77 00 00 00 F4 03 04 00 42 C7 75 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 04 97 01 00 35 04 06 00 9A [18:32:34]Write to MH i2c: E2 02 01 78 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 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 77 00 00 00 F4 03 04 00 42 C7 75 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 04 97 01 00 35 04 06 00 9A 00 00 7C [18:32:34]Write i2c OK [18:32:34]MH_I2C_Read... [18:32:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:32:34]Read from MH i2c: E2 [18:32:34]MH_I2C_Read... [18:32:34]Read from MH i2c: E2 03 00 [18:32:34]MH_I2C_Read... [18:32:34]Read from MH i2c: E2 03 00 78 00 00 90 00 EC [18:32:34]RAPDU: 90 00 [18:32:34]wFMCommunicate OK [18:32:34]wFMCommunicate request_size=10 [18:32:34]MH_SAM_APDU [18:32:34]CAPDU: 80 0D 02 02 05 5D 28 6E 65 8D [18:32:34]Write to MH i2c: E2 0D 00 79 00 80 0D 02 02 05 00 5D 28 6E 65 8D 00 00 E2 [18:32:34]Write i2c OK [18:32:34]MH_I2C_Read... [18:32:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:32:34]Read from MH i2c: E2 [18:32:34]MH_I2C_Read... [18:32:34]Read from MH i2c: E2 03 00 [18:32:34]MH_I2C_Read... [18:32:34]Read from MH i2c: E2 03 00 79 00 00 90 00 ED [18:32:34]RAPDU: 90 00 [18:32:34]wFMCommunicate OK [18:32:34]wFMCommunicate request_size=4 [18:32:34]MH_SAM_APDU [18:32:34]CAPDU: 80 0D 03 02 [18:32:34]Write to MH i2c: E2 08 00 7A 00 80 0D 03 02 00 00 00 00 F5 [18:32:34]Write i2c OK [18:32:34]MH_I2C_Read... [18:32:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:32:34]Read from MH i2c: E2 [18:32:34]MH_I2C_Read... [18:32:34]Read from MH i2c: E2 0B 00 [18:32:34]MH_I2C_Read... [18:32:34]Read from MH i2c: E2 0B 00 7A 00 00 F7 A4 D2 FE A1 29 AD 9B 90 00 73 [18:32:34]RAPDU: F7 A4 D2 FE A1 29 AD 9B 90 00 [18:32:34]wFMCommunicate OK [18:32:34]SAM_PROTO_SignData done [18:32:34]FM_MakeSignedData done [18:32:34]CreateOFDProtocolMessage [18:32:34]wFMCommunicate request_size=4 [18:32:34]MH_SAM_APDU [18:32:34]CAPDU: 80 11 00 00 [18:32:34]Write to MH i2c: E2 08 00 7B 00 80 11 00 00 00 00 00 00 F5 [18:32:34]Write i2c OK [18:32:34]MH_I2C_Read... [18:32:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:32:34]Read from MH i2c: E2 [18:32:34]MH_I2C_Read... [18:32:34]Read from MH i2c: E2 17 00 [18:32:34]MH_I2C_Read... [18:32:34]Read from MH i2c: E2 17 00 7B 00 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:32: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:32:34]wFMCommunicate OK [18:32:34]CreateOFDProtocolMessage done [18:32:34]OFDSenderStorePacket 104196 [18:32:34]StoreOFDPacket docnum=104196 [18:32: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 2B 78 07 01 96 F8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 77 00 00 00 F4 03 04 00 42 C7 75 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 04 97 01 00 35 04 06 00 9A 5D 28 6E 65 8D F7 A4 D2 FE A1 29 AD 9B [18:32:34]CheckFolder [18:32:34]dirname=/storage/ofd_packets [18:32:34]CheckFolder done [18:32:34]ProducePacketName [18:32:34]name=ofd_packets/00104196 [18:32:34]NVStorageSaveData ofd_packets/00104196 [18:32:34]File name is /storage/ofd_packets/00104196 [18:32:34]Write 301 bytes [18:32:34]NVStorageSaveData done [18:32:34]OFDSenderStorePacket done [18:32:34]KKMCreateOFDPacket done [18:32:34]NVStorageSaveData kkm_last_timestamp [18:32:34]File name is /storage/kkm_last_timestamp [18:32:34]Write 4 bytes [18:32:34]NVStorageSaveData done [18:32:34]ExternCall_PrintAddStr [18:32:34]wPrintStart [18:32:34]Write to MH i2c: 01 00 00 7C 00 7C [18:32:34]Write i2c OK [18:32:34]MH_I2C_Read... [18:32:34]Read from MH i2c: 01 [18:32:34]MH_I2C_Read... [18:32:34]Read from MH i2c: 01 07 00 [18:32:34]MH_I2C_Read... [18:32:34]Read from MH i2c: 01 07 00 7C 00 00 00 00 00 00 FF 0F 91 [18:32:34]RasterBufferAndPrint [18:32:34]line Счет N : (1)673662 [18:32:34]line ИНН: 02508201610067 [18:32:34]line Контрольно-Кассовый Чек [18:32:34]line ПРОДАЖА [18:32:34]line ТРК (МРК, ГНК) : 42 [18:32:34]line Товар: 2710124130 [18:32:34]line Аи-92-К-5 [18:32:34]line 9.040 * 66.40 [18:32:34]line = 600.26 [18:32:34]line НДС 12% НСП 1% [18:32:34]line > о реализуемом товаре [18:32:34]line ОКРУГЛЕНИЕ: -0.26 [18:32:34]line ИТОГО: 600.00 [18:32:34]line Внесено: 600.00 [18:32:34]line СДАЧА: 0.00 [18:32:34]line НСП 1% : 5.31 [18:32:34]line НДС 12% : 63.74 [18:32:34]line Наличными: 600.00 [18:32:34]line Безнал.: 0.00 [18:32:34]line Место: АЗС № 120 "Партнер Нефть" [18:32:34]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [18:32:34]line СНО: Общий режим [18:32:34]line Чек 119 21.06.2024 18:32 [18:32:34]line Смена: 355 ФФД: 1.0 [18:32:34]line ЗНМ: 0300000164 [18:32:34]line РНМ: 0000000000092785 [18:32:34]line Версия ККМ: 001 [18:32:34]line ФМ: 0000000000875093 [18:32:34]line ФД: 104196 [18:32:34]line ФПД: 169724900959629 [18:32:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T183234&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104196&fm=169724900959629&tin=02508201610067®Number=0000000000092785&sum=60000 [18:32:35]OFD Sender: Processing packet 104196 [packets to send 17, broken 16] [18:32:35]ProducePacketName [18:32:35]name=ofd_packets/00104196 [18:32:35]OFD Sender: To server: pG, [18:32:35]CommunicateWithHost lk.salyk.kg:30040 [18:32:35]ConnectInit lk.salyk.kg [18:32:35]written 0, free lines is 4095 [18:32:35]Connected sock=9 [18:32: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 2B 78 07 01 96 F8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 77 00 00 00 F4 03 04 00 42 C7 75 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 04 97 01 00 35 04 06 00 9A 5D 28 6E 65 8D F7 A4 D2 FE A1 29 AD 9B [18:32: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 50 30 47 00 36 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 04 97 01 00 F4 03 04 00 C3 6D 75 66 B6 04 01 00 00 EE 46 64 5E 69 ED DE CF [18:32:35]CommunicateWithHost err = 0 [18:32:35]CheckOFDResponse [18:32:35]1017 (14) - 77093643461234 [18:32:35]1041 (16) - 0000000000875093 [18:32:35]1040 (4) - 104196 [18:32:35]1012 (4) - 21.06.2024 12:10 [18:32:35]1206 (1) - 0 [18:32:35]OFD Sender: Remove packet 104196 [18:32:35]ProducePacketName [18:32:35]name=ofd_packets/00104196 [18:32:35]NVStorageDeleteData [18:32:35]Write to MH i2c: 01 00 00 A7 00 A7 [18:32:35]Write i2c OK [18:32:35]MH_I2C_Read... [18:32:35]Read from MH i2c: 01 [18:32:35]MH_I2C_Read... [18:32:35]Read from MH i2c: 01 07 00 [18:32:35]MH_I2C_Read... [18:32:35]Read from MH i2c: 01 07 00 A7 00 00 00 00 00 00 E9 0C A3 [18:32:35]RasterBufferAndPrint [18:32:35]line [18:32:35]line [18:32:35]line [18:32:35]line [18:32:35]line [18:32:35]written 0, free lines is 3312 [18:32:35]MH_Cut [18:32:35]Write to MH i2c: D1 01 00 AE 00 01 80 [18:32:35]Write i2c OK [18:32:35]MH_I2C_Read... [18:32:35]Read from MH i2c: D1 [18:32:35]MH_I2C_Read... [18:32:35]Read from MH i2c: D1 01 00 [18:32:35]MH_I2C_Read... [18:32:35]Read from MH i2c: D1 01 00 AE 00 00 7F [18:32:35]Write to MH i2c: 01 00 00 AF 00 AF [18:32:35]Write i2c OK [18:32:35]MH_I2C_Read... [18:32:36]OFD Sender: No OFD packet to send [18:32:36]*** Cut start [18:32:36]*** Partial cut [18:32:36]*** CUTSNS_PIN = 1 [18:32:36]*** CUTSNS_PIN = 0 [18:32:36]*** Brake cut motor [18:32:37]Read from MH i2c: 01 [18:32:37]MH_I2C_Read... [18:32:37]*** Stop cut motor [18:32:37]*** Cut end [18:32:37]Read from MH i2c: 01 07 00 [18:32:37]MH_I2C_Read... [18:32:37]Read from MH i2c: 01 07 00 AF 00 00 00 00 00 00 FF 0F C4 [18:32:37]process_action close_receipt done [18:32:37]requested_data is exist [18:32:37]produce_requested_data [18:32:37]requested_item fm.sn is exist - process it [18:32:37]wFMCommunicate request_size=4 [18:32:37]MH_SAM_APDU [18:32:37]CAPDU: 80 11 00 00 [18:32:37]Write to MH i2c: E2 08 00 B0 00 80 11 00 00 00 00 00 00 2A [18:32:37]Write i2c OK [18:32:37]MH_I2C_Read... [18:32:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:32:37]Read from MH i2c: E2 [18:32:37]MH_I2C_Read... [18:32:37]Read from MH i2c: E2 17 00 [18:32:37]MH_I2C_Read... [18:32:37]Read from MH i2c: E2 17 00 B0 00 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: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 [18:32:37]wFMCommunicate OK [18:32:37]requested_item fd.num is exist - process it [18:32:37]SAM_PROTO_GetFieldsCounters [18:32:37]wFMCommunicate request_size=4 [18:32:37]MH_SAM_APDU [18:32:37]CAPDU: 80 13 00 00 [18:32:37]Write to MH i2c: E2 08 00 B1 00 80 13 00 00 00 00 00 00 2D [18:32:37]Write i2c OK [18:32:37]MH_I2C_Read... [18:32:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:32:37]Read from MH i2c: E2 [18:32:37]MH_I2C_Read... [18:32:37]Read from MH i2c: E2 62 00 [18:32:37]MH_I2C_Read... [18:32:37]Read from MH i2c: E2 62 00 B1 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 04 97 01 00 0E 04 04 00 63 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 B9 [18:32: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 04 97 01 00 0E 04 04 00 63 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 [18:32:37]wFMCommunicate OK [18:32:37]SAM_PROTO_GetFieldsCounters done [18:32:37]requested_item shift.num is exist - process it [18:32:37]requested_item shift.opened is exist - process it [18:32:37]req_shift_opened [18:32:37]FM_GetShiftState [18:32:37]SAM_PROTO_GetShiftState [18:32:37]wFMCommunicate request_size=4 [18:32:37]MH_SAM_APDU [18:32:37]CAPDU: 80 13 01 00 [18:32:37]Write to MH i2c: E2 08 00 B2 00 80 13 01 00 00 00 00 00 2F [18:32:37]Write i2c OK [18:32:37]MH_I2C_Read... [18:32:37]Read from MH i2c: E2 [18:32:37]MH_I2C_Read... [18:32:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:32:37]Read from MH i2c: E2 0E 00 [18:32:37]MH_I2C_Read... [18:32:37]Read from MH i2c: E2 0E 00 B2 00 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 42 [18:32:37]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [18:32:37]wFMCommunicate OK [18:32:37]SAM_PROTO_GetShiftState done [18:32:37]FM_GetShiftState done [18:32:37]req_shift_opened done [18:32:37]requested_item shift.open_date is exist - process it [18:32:37]req_shift_open_date [18:32:37]req_shift_open_date done [18:32:37]produce_requested_data done [18:32:37]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104196,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [18:32:37]process_action_free close_receipt [18:32:37]json_value_free [18:32:37]json_value_free done [18:32:37]process_json_proto returns [18:32:37]Send response to host [18:32:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104196,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [18:32:37]free response buf [18:32:37]execute_script done [18:32:37]execute_script returns [18:32:37]free content buf [18:32:37]Sock 7.Close socket [18:32:37]Sock 7.Thread stoped [18:32:41]OFD Sender: No OFD packet to send [18:32:46]OFD Sender: No OFD packet to send [18:32:51]OFD Sender: No OFD packet to send [18:32:56]OFD Sender: No OFD packet to send [18:33:01]OFD Sender: No OFD packet to send [18:33:06]OFD Sender: No OFD packet to send [18:33:11]OFD Sender: No OFD packet to send [18:33:16]OFD Sender: No OFD packet to send [18:33:21]OFD Sender: No OFD packet to send [18:33:26]OFD Sender: No OFD packet to send [18:33:31]OFD Sender: No OFD packet to send [18:33:36]OFD Sender: No OFD packet to send [18:33:41]OFD Sender: No OFD packet to send [18:33:46]OFD Sender: No OFD packet to send [18:33:51]OFD Sender: No OFD packet to send [18:33:56]OFD Sender: No OFD packet to send [18:34:01]OFD Sender: No OFD packet to send [18:34:06]OFD Sender: No OFD packet to send [18:34:11]OFD Sender: No OFD packet to send [18:34:16]OFD Sender: No OFD packet to send [18:34:21]OFD Sender: No OFD packet to send [18:34:26]OFD Sender: No OFD packet to send [18:34:31]OFD Sender: No OFD packet to send [18:34:36]OFD Sender: No OFD packet to send [18:34:41]OFD Sender: No OFD packet to send [18:34:46]OFD Sender: No OFD packet to send [18:34:51]OFD Sender: No OFD packet to send [18:34:56]OFD Sender: No OFD packet to send [18:34:59]accept exits with 10 [18:34:59]New connection [18:34:59]New thread 3067616612 created [18:34:59]Thread 3067473252 joined [18:34:59]Waiting for new connection... [18:34:59] Sock 10.Parse request [18:34:59]Sock 10.Check first char [18:34:59]Sock 10.First char is OK [18:34:59]request: POST /json_proto HTTP/1.0 [18:34:59]Method: POST [18:34:59]URL: /json_proto [18:34:59]Method is POST - this is cgi request [18:34:59]url: /json_proto [18:34:59]query_string will be loaded in cgi processing [18:34:59]execute_cgi json_proto POST (null) [18:34:59]execute_cgi path=json_proto method=POST [18:34:59]POST find Content-Length [18:34:59]Host: 172.17.38.133:8080 [18:34:59]Content-Length: 640 [18:34:59]Content-Type: application/json [18:34:59] [18:34:59]POST finish read [18:34:59]Found Content-Length = 640 [18:34:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673665", "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" ] } } [18:34:59]execute_script... [18:34:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673665", "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" ] } } [18:34:59]POST & json_proto [18:34:59]process_json_proto [18:34:59]json parsed OK: [18:34:59]protocol is kg_v1.0 [18:34:59]action value=close_receipt [18:34:59]process_action close_receipt [18:34:59]cmd_close_receipt [18:34:59]MH_GetDate [18:34:59]Write to MH i2c: F0 00 00 B3 00 A2 [18:34:59]Write i2c OK [18:34:59]MH_I2C_Read... [18:34:59]Read from MH i2c: F0 [18:34:59]MH_I2C_Read... [18:34:59]Read from MH i2c: F0 09 00 [18:34:59]MH_I2C_Read... [18:34:59]Read from MH i2c: F0 09 00 B3 00 00 D4 C7 75 66 BD 8F 7C 64 4D [18:34:59]GetLastDocTimeStamp 1718994754 [18:34:59]current date 1718994900 [18:34:59]FM_GetShiftState [18:34:59]SAM_PROTO_GetShiftState [18:34:59]wFMCommunicate request_size=4 [18:34:59]MH_SAM_APDU [18:34:59]CAPDU: 80 13 01 00 [18:34:59]Write to MH i2c: E2 08 00 B4 00 80 13 01 00 00 00 00 00 31 [18:34:59]Write i2c OK [18:34:59]MH_I2C_Read... [18:34:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:34:59]Read from MH i2c: E2 [18:34:59]MH_I2C_Read... [18:34:59]Read from MH i2c: E2 0E 00 [18:34:59]MH_I2C_Read... [18:34:59]Read from MH i2c: E2 0E 00 B4 00 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 44 [18:34:59]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [18:34:59]wFMCommunicate OK [18:34:59]SAM_PROTO_GetShiftState done [18:34:59]FM_GetShiftState done [18:34:59]opened in 1718929509 [18:34:59]opened+sec_in_day 1719015909 [18:34:59]quantity*price = 66400 [18:34:59]sum+1 = 66401 [18:34:59]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 СНО: Общий режим Чек 120 21.06.2024 18:35 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104197 ФПД: 252353843927472 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T183500&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104197&fm=252353843927472&tin=02508201610067®Number=0000000000092785&sum=66400 [18:35:00]StoreToDocumentArchive [18:35:00]shift 355 fd 104197 [18:35:00]save to /storage/0355/doc_00104197 [18:35:00]save last doc name /storage/0355/doc_00104197 to /storage/kkm_last_doc_name [18:35:00]save OK [18:35:00]Clear old archive folders... [18:35:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:35:00]tlvbuf is 00683140 [18:35:00]SAM_PROTO_ClearQueue [18:35:00]wFMCommunicate request_size=4 [18:35:00]MH_SAM_APDU [18:35:00]CAPDU: 80 09 00 00 [18:35:00]Write to MH i2c: E2 08 00 C1 00 80 09 00 00 00 00 00 00 33 [18:35:00]Write i2c OK [18:35:00]MH_I2C_Read... [18:35:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:35:00]Read from MH i2c: E2 [18:35:00]MH_I2C_Read... [18:35:00]Read from MH i2c: E2 03 00 [18:35:00]MH_I2C_Read... [18:35:00]Read from MH i2c: E2 03 00 C1 00 00 90 00 35 [18:35:00]RAPDU: 90 00 [18:35:00]wFMCommunicate OK [18:35:00]SAM_PROTO_ClearQueue done [18:35:00]KKMCreateOFDPacket [18:35:00]OFDProtocolAddRootSTLVToBuf [18:35:00]FM_MakeSignedData [18:35:00]FM_MakeSignedData [18:35:00]SAM_PROTO_SignData [18:35:00]wFMCommunicate request_size=4 [18:35:00]MH_SAM_APDU [18:35:00]CAPDU: 80 0D 01 02 [18:35:00]Write to MH i2c: E2 08 00 C2 00 80 0D 01 02 00 00 00 00 3B [18:35:00]Write i2c OK [18:35:00]MH_I2C_Read... [18:35:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:35:01]Read from MH i2c: E2 [18:35:01]MH_I2C_Read... [18:35:01]Read from MH i2c: E2 03 00 [18:35:01]MH_I2C_Read... [18:35:01]Read from MH i2c: E2 03 00 C2 00 00 90 00 36 [18:35:01]RAPDU: 90 00 [18:35:01]wFMCommunicate OK [18:35:01]wFMCommunicate request_size=255 [18:35:01]MH_SAM_APDU [18:35:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 78 00 00 00 F4 03 04 00 D4 C7 75 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 05 97 01 00 35 04 06 00 E5 [18:35:01]Write to MH i2c: E2 02 01 C3 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 78 00 00 00 F4 03 04 00 D4 C7 75 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 05 97 01 00 35 04 06 00 E5 00 00 7F [18:35:01]Write i2c OK [18:35:01]MH_I2C_Read... [18:35:01]OFD Sender: No OFD packet to send [18:35:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:35:01]Read from MH i2c: E2 [18:35:01]MH_I2C_Read... [18:35:01]Read from MH i2c: E2 03 00 [18:35:01]MH_I2C_Read... [18:35:01]Read from MH i2c: E2 03 00 C3 00 00 90 00 37 [18:35:01]RAPDU: 90 00 [18:35:01]wFMCommunicate OK [18:35:01]wFMCommunicate request_size=10 [18:35:01]MH_SAM_APDU [18:35:01]CAPDU: 80 0D 02 02 05 83 B5 39 99 B0 [18:35:01]Write to MH i2c: E2 0D 00 C4 00 80 0D 02 02 05 00 83 B5 39 99 B0 00 00 02 [18:35:01]Write i2c OK [18:35:01]MH_I2C_Read... [18:35:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:35:01]Read from MH i2c: E2 [18:35:01]MH_I2C_Read... [18:35:01]Read from MH i2c: E2 03 00 [18:35:01]MH_I2C_Read... [18:35:01]Read from MH i2c: E2 03 00 C4 00 00 90 00 38 [18:35:01]RAPDU: 90 00 [18:35:01]wFMCommunicate OK [18:35:01]wFMCommunicate request_size=4 [18:35:01]MH_SAM_APDU [18:35:01]CAPDU: 80 0D 03 02 [18:35:01]Write to MH i2c: E2 08 00 C5 00 80 0D 03 02 00 00 00 00 40 [18:35:01]Write i2c OK [18:35:01]MH_I2C_Read... [18:35:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:35:01]Read from MH i2c: E2 [18:35:01]MH_I2C_Read... [18:35:01]Read from MH i2c: E2 0B 00 [18:35:01]MH_I2C_Read... [18:35:01]Read from MH i2c: E2 0B 00 C5 00 00 D1 5C CC 77 FC 54 1F 5F 90 00 7F [18:35:01]RAPDU: D1 5C CC 77 FC 54 1F 5F 90 00 [18:35:01]wFMCommunicate OK [18:35:01]SAM_PROTO_SignData done [18:35:01]FM_MakeSignedData done [18:35:01]CreateOFDProtocolMessage [18:35:01]wFMCommunicate request_size=4 [18:35:01]MH_SAM_APDU [18:35:01]CAPDU: 80 11 00 00 [18:35:01]Write to MH i2c: E2 08 00 C6 00 80 11 00 00 00 00 00 00 40 [18:35:01]Write i2c OK [18:35:01]MH_I2C_Read... [18:35:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:35:01]Read from MH i2c: E2 [18:35:01]MH_I2C_Read... [18:35:01]Read from MH i2c: E2 17 00 [18:35:01]MH_I2C_Read... [18:35:01]Read from MH i2c: E2 17 00 C6 00 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:35: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:35:01]wFMCommunicate OK [18:35:01]CreateOFDProtocolMessage done [18:35:01]OFDSenderStorePacket 104197 [18:35:01]StoreOFDPacket docnum=104197 [18:35: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 9C 11 07 01 A4 FC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 78 00 00 00 F4 03 04 00 D4 C7 75 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 05 97 01 00 35 04 06 00 E5 83 B5 39 99 B0 D1 5C CC 77 FC 54 1F 5F [18:35:01]CheckFolder [18:35:01]dirname=/storage/ofd_packets [18:35:01]CheckFolder done [18:35:01]ProducePacketName [18:35:01]name=ofd_packets/00104197 [18:35:01]NVStorageSaveData ofd_packets/00104197 [18:35:01]File name is /storage/ofd_packets/00104197 [18:35:01]Write 301 bytes [18:35:01]NVStorageSaveData done [18:35:01]OFDSenderStorePacket done [18:35:01]KKMCreateOFDPacket done [18:35:01]NVStorageSaveData kkm_last_timestamp [18:35:01]File name is /storage/kkm_last_timestamp [18:35:01]Write 4 bytes [18:35:01]NVStorageSaveData done [18:35:01]ExternCall_PrintAddStr [18:35:01]wPrintStart [18:35:01]Write to MH i2c: 01 00 00 C7 00 C7 [18:35:01]Write i2c OK [18:35:01]MH_I2C_Read... [18:35:01]Read from MH i2c: 01 [18:35:01]MH_I2C_Read... [18:35:01]Read from MH i2c: 01 07 00 [18:35:01]MH_I2C_Read... [18:35:01]Read from MH i2c: 01 07 00 C7 00 00 00 00 00 00 FF 0F DC [18:35:01]RasterBufferAndPrint [18:35:01]line Счет N : (1)673665 [18:35:01]line ИНН: 02508201610067 [18:35:01]line Контрольно-Кассовый Чек [18:35:01]line ПРОДАЖА [18:35:01]line ТРК (МРК, ГНК) : 32 [18:35:01]line Товар: 2710124130 [18:35:01]line Аи-92-К-5 [18:35:01]line 10.000 * 66.40 [18:35:01]line = 664.00 [18:35:01]line НДС 12% НСП 1% [18:35:01]line > о реализуемом товаре [18:35:01]line ИТОГО: 664.00 [18:35:01]line НСП 1% : 5.88 [18:35:01]line НДС 12% : 70.51 [18:35:01]line Наличными: 664.00 [18:35:01]line Безнал.: 0.00 [18:35:01]line Место: АЗС № 120 "Партнер Нефть" [18:35:01]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [18:35:01]line СНО: Общий режим [18:35:01]line Чек 120 21.06.2024 18:35 [18:35:01]line Смена: 355 ФФД: 1.0 [18:35:01]line ЗНМ: 0300000164 [18:35:01]line РНМ: 0000000000092785 [18:35:01]line Версия ККМ: 001 [18:35:01]line ФМ: 0000000000875093 [18:35:01]line ФД: 104197 [18:35:01]line ФПД: 252353843927472 [18:35:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T183500&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104197&fm=252353843927472&tin=02508201610067®Number=0000000000092785&sum=66400 [18:35:01]OFD Sender: Processing packet 104197 [packets to send 17, broken 16] [18:35:01]ProducePacketName [18:35:01]name=ofd_packets/00104197 [18:35:01]OFD Sender: To server: pG, [18:35:01]CommunicateWithHost lk.salyk.kg:30040 [18:35:01]ConnectInit lk.salyk.kg [18:35:01]written 0, free lines is 4095 [18:35:01]Connected sock=9 [18:35:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 9C 11 07 01 A4 FC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 78 00 00 00 F4 03 04 00 D4 C7 75 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 05 97 01 00 35 04 06 00 E5 83 B5 39 99 B0 D1 5C CC 77 FC 54 1F 5F [18:35:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 97 5B 47 00 1E 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 05 97 01 00 F4 03 04 00 56 6E 75 66 B6 04 01 00 00 B0 27 52 5C A7 F9 AF 40 [18:35:02]CommunicateWithHost err = 0 [18:35:02]CheckOFDResponse [18:35:02]1017 (14) - 77093643461234 [18:35:02]1041 (16) - 0000000000875093 [18:35:02]1040 (4) - 104197 [18:35:02]1012 (4) - 21.06.2024 12:13 [18:35:02]1206 (1) - 0 [18:35:02]OFD Sender: Remove packet 104197 [18:35:02]ProducePacketName [18:35:02]name=ofd_packets/00104197 [18:35:02]NVStorageDeleteData [18:35:02]Write to MH i2c: 01 00 00 EF 00 EF [18:35:02]Write i2c OK [18:35:02]MH_I2C_Read... [18:35:02]Read from MH i2c: 01 [18:35:02]MH_I2C_Read... [18:35:02]Read from MH i2c: 01 07 00 [18:35:02]MH_I2C_Read... [18:35:02]Read from MH i2c: 01 07 00 EF 00 00 00 00 00 00 1C 0D 1F [18:35:02]RasterBufferAndPrint [18:35:02]line [18:35:02]line [18:35:02]line [18:35:02]line [18:35:02]line [18:35:02]written 0, free lines is 3362 [18:35:02]MH_Cut [18:35:02]Write to MH i2c: D1 01 00 F6 00 01 C8 [18:35:02]Write i2c OK [18:35:02]MH_I2C_Read... [18:35:02]Read from MH i2c: D1 [18:35:02]MH_I2C_Read... [18:35:02]Read from MH i2c: D1 01 00 [18:35:02]MH_I2C_Read... [18:35:02]Read from MH i2c: D1 01 00 F6 00 00 C7 [18:35:02]Write to MH i2c: 01 00 00 F7 00 F7 [18:35:02]Write i2c OK [18:35:02]MH_I2C_Read... [18:35:02]OFD Sender: No OFD packet to send [18:35:02]*** Cut start [18:35:02]*** Partial cut [18:35:02]*** CUTSNS_PIN = 1 [18:35:02]*** CUTSNS_PIN = 0 [18:35:03]*** Brake cut motor [18:35:03]Read from MH i2c: 01 [18:35:03]MH_I2C_Read... [18:35:03]*** Stop cut motor [18:35:03]*** Cut end [18:35:03]Read from MH i2c: 01 07 00 [18:35:03]MH_I2C_Read... [18:35:03]Read from MH i2c: 01 07 00 F7 00 00 00 00 00 00 FF 0F 0C [18:35:03]process_action close_receipt done [18:35:03]requested_data is exist [18:35:03]produce_requested_data [18:35:03]requested_item fm.sn is exist - process it [18:35:03]wFMCommunicate request_size=4 [18:35:03]MH_SAM_APDU [18:35:03]CAPDU: 80 11 00 00 [18:35:03]Write to MH i2c: E2 08 00 F8 00 80 11 00 00 00 00 00 00 72 [18:35:03]Write i2c OK [18:35:03]MH_I2C_Read... [18:35:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:35:03]Read from MH i2c: E2 [18:35:03]MH_I2C_Read... [18:35:03]Read from MH i2c: E2 17 00 [18:35:03]MH_I2C_Read... [18:35:03]Read from MH i2c: E2 17 00 F8 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 C5 [18:35: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:35:03]wFMCommunicate OK [18:35:03]requested_item fd.num is exist - process it [18:35:03]SAM_PROTO_GetFieldsCounters [18:35:03]wFMCommunicate request_size=4 [18:35:03]MH_SAM_APDU [18:35:03]CAPDU: 80 13 00 00 [18:35:03]Write to MH i2c: E2 08 00 F9 00 80 13 00 00 00 00 00 00 75 [18:35:03]Write i2c OK [18:35:03]MH_I2C_Read... [18:35:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:35:03]Read from MH i2c: E2 [18:35:03]MH_I2C_Read... [18:35:03]Read from MH i2c: E2 62 00 [18:35:03]MH_I2C_Read... [18:35:03]Read from MH i2c: E2 62 00 F9 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 63 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 [18:35:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:35:03]wFMCommunicate OK [18:35:03]SAM_PROTO_GetFieldsCounters done [18:35:03]requested_item shift.num is exist - process it [18:35:03]requested_item shift.opened is exist - process it [18:35:03]req_shift_opened [18:35:03]FM_GetShiftState [18:35:03]SAM_PROTO_GetShiftState [18:35:03]wFMCommunicate request_size=4 [18:35:03]MH_SAM_APDU [18:35:03]CAPDU: 80 13 01 00 [18:35:03]Write to MH i2c: E2 08 00 FA 00 80 13 01 00 00 00 00 00 77 [18:35:03]Write i2c OK [18:35:03]MH_I2C_Read... [18:35:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:35:03]Read from MH i2c: E2 [18:35:03]MH_I2C_Read... [18:35:03]Read from MH i2c: E2 0E 00 [18:35:03]MH_I2C_Read... [18:35:03]Read from MH i2c: E2 0E 00 FA 00 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 8A [18:35:03]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [18:35:03]wFMCommunicate OK [18:35:03]SAM_PROTO_GetShiftState done [18:35:03]FM_GetShiftState done [18:35:03]req_shift_opened done [18:35:03]requested_item shift.open_date is exist - process it [18:35:03]req_shift_open_date [18:35:03]req_shift_open_date done [18:35:03]produce_requested_data done [18:35:03]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104197,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [18:35:03]process_action_free close_receipt [18:35:03]json_value_free [18:35:03]json_value_free done [18:35:03]process_json_proto returns [18:35:03]Send response to host [18:35:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104197,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [18:35:03]free response buf [18:35:03]execute_script done [18:35:03]execute_script returns [18:35:03]free content buf [18:35:03]Sock 10.Close socket [18:35:03]Sock 10.Thread stoped [18:35:07]OFD Sender: No OFD packet to send [18:35:12]OFD Sender: No OFD packet to send [18:35:17]OFD Sender: No OFD packet to send [18:35:22]OFD Sender: No OFD packet to send [18:35:27]OFD Sender: No OFD packet to send [18:35:30]accept exits with 7 [18:35:30]New connection [18:35:30]New thread 3067473252 created [18:35:30]Thread 3067616612 joined [18:35:30]Waiting for new connection... [18:35:30] Sock 7.Parse request [18:35:30]Sock 7.Check first char [18:35:30]Sock 7.First char is OK [18:35:30]request: POST /json_proto HTTP/1.0 [18:35:30]Method: POST [18:35:30]URL: /json_proto [18:35:30]Method is POST - this is cgi request [18:35:30]url: /json_proto [18:35:30]query_string will be loaded in cgi processing [18:35:30]execute_cgi json_proto POST (null) [18:35:30]execute_cgi path=json_proto method=POST [18:35:30]POST find Content-Length [18:35:30]Host: 172.17.38.133:8080 [18:35:30]Content-Length: 1163 [18:35:30]Content-Type: application/json [18:35:30] [18:35:30]POST finish read [18:35:30]Found Content-Length = 1163 [18:35: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 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)673663\u000A21.06.2024 18:12\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 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\u041A \u0413\u041F\u041D\u0410 Online\u000A30084224\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:35:30]execute_script... [18:35: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 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)673663\u000A21.06.2024 18:12\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 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\u041A \u0413\u041F\u041D\u0410 Online\u000A30084224\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:35:30]POST & json_proto [18:35:30]process_json_proto [18:35:30]json parsed OK: [18:35:30]protocol is kg_v1.0 [18:35:30]action value=print_text [18:35:30]process_action print_text [18:35:30]cmd_print_text [18:35:30]ExternCall_PrintAddStr [18:35:30]wPrintStart [18:35:30]Write to MH i2c: 01 00 00 FB 00 FB [18:35:30]Write i2c OK [18:35:30]MH_I2C_Read... [18:35:30]Read from MH i2c: 01 [18:35:30]MH_I2C_Read... [18:35:30]Read from MH i2c: 01 07 00 [18:35:30]MH_I2C_Read... [18:35:30]Read from MH i2c: 01 07 00 FB 00 00 00 00 00 00 FF 0F 10 [18:35:30]RasterBufferAndPrint [18:35:30]line *****ТОВАРНЫЙ ЧЕК***** [18:35:30]line АЗС 120 [18:35:30]line Партнер нефть [18:35:30]line 02508201610067 [18:35:30]line Кассир : Асанбаев Н. [18:35:30]line Счет N : (1)673663 [18:35:30]line 21.06.2024 18:12 [18:35:30]line ПРОДАЖА [18:35:30]line ТРК (МРК, ГНК): 21 [18:35:30]line Вид ГСМ : 2710194210 [18:35:30]line ДТ(л)-К-5 [18:35:30]line 100.000 x 72.90 [18:35:30]line ИТОГ: 7290.00 [18:35:30]line Тип оплаты: Талоны: ТК ГПНА Online [18:35:30]line 30084224 [18:35:30]line ______________________ [18:35:30]line (подпись) [18:35:30]written 0, free lines is 4095 [18:35:30]Write to MH i2c: 01 00 00 0F 01 10 [18:35:30]Write i2c OK [18:35:30]MH_I2C_Read... [18:35:30]Read from MH i2c: 01 [18:35:30]MH_I2C_Read... [18:35:30]Read from MH i2c: 01 07 00 [18:35:30]MH_I2C_Read... [18:35:30]Read from MH i2c: 01 07 00 0F 01 00 00 00 00 00 11 0E 36 [18:35:30]RasterBufferAndPrint [18:35:30]line [18:35:30]line [18:35:30]line [18:35:30]line [18:35:30]line [18:35:30]written 0, free lines is 3602 [18:35:30]MH_Cut [18:35:30]Write to MH i2c: D1 01 00 16 01 01 E9 [18:35:30]Write i2c OK [18:35:30]MH_I2C_Read... [18:35:30]Read from MH i2c: D1 [18:35:30]MH_I2C_Read... [18:35:30]Read from MH i2c: D1 01 00 [18:35:30]MH_I2C_Read... [18:35:30]Read from MH i2c: D1 01 00 16 01 00 E8 [18:35:30]Write to MH i2c: 01 00 00 17 01 18 [18:35:30]Write i2c OK [18:35:30]MH_I2C_Read... [18:35:31]*** Cut start [18:35:31]*** Partial cut [18:35:31]*** CUTSNS_PIN = 1 [18:35:31]*** CUTSNS_PIN = 0 [18:35:31]*** Brake cut motor [18:35:31]Read from MH i2c: 01 [18:35:31]MH_I2C_Read... [18:35:31]*** Stop cut motor [18:35:31]*** Cut end [18:35:31]Read from MH i2c: 01 07 00 [18:35:31]MH_I2C_Read... [18:35:31]Read from MH i2c: 01 07 00 17 01 00 00 00 00 00 FF 0F 2D [18:35:31]process_action print_text done [18:35:31]requested_data is exist [18:35:31]produce_requested_data [18:35:31]requested_item fm.sn is exist - process it [18:35:31]wFMCommunicate request_size=4 [18:35:31]MH_SAM_APDU [18:35:31]CAPDU: 80 11 00 00 [18:35:31]Write to MH i2c: E2 08 00 18 01 80 11 00 00 00 00 00 00 93 [18:35:31]Write i2c OK [18:35:31]MH_I2C_Read... [18:35:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:35:31]Read from MH i2c: E2 [18:35:31]MH_I2C_Read... [18:35:31]Read from MH i2c: E2 17 00 [18:35:31]MH_I2C_Read... [18:35:31]Read from MH i2c: E2 17 00 18 01 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:35: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:35:32]wFMCommunicate OK [18:35:32]requested_item fd.num is exist - process it [18:35:32]SAM_PROTO_GetFieldsCounters [18:35:32]wFMCommunicate request_size=4 [18:35:32]MH_SAM_APDU [18:35:32]CAPDU: 80 13 00 00 [18:35:32]Write to MH i2c: E2 08 00 19 01 80 13 00 00 00 00 00 00 96 [18:35:32]Write i2c OK [18:35:32]MH_I2C_Read... [18:35:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:35:32]Read from MH i2c: E2 [18:35:32]MH_I2C_Read... [18:35:32]Read from MH i2c: E2 62 00 [18:35:32]MH_I2C_Read... [18:35:32]Read from MH i2c: E2 62 00 19 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 05 97 01 00 0E 04 04 00 63 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 26 [18:35: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 05 97 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:35:32]wFMCommunicate OK [18:35:32]SAM_PROTO_GetFieldsCounters done [18:35:32]requested_item shift.num is exist - process it [18:35:32]requested_item shift.opened is exist - process it [18:35:32]req_shift_opened [18:35:32]FM_GetShiftState [18:35:32]SAM_PROTO_GetShiftState [18:35:32]wFMCommunicate request_size=4 [18:35:32]MH_SAM_APDU [18:35:32]CAPDU: 80 13 01 00 [18:35:32]Write to MH i2c: E2 08 00 1A 01 80 13 01 00 00 00 00 00 98 [18:35:32]Write i2c OK [18:35:32]MH_I2C_Read... [18:35:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:35:32]Read from MH i2c: E2 [18:35:32]MH_I2C_Read... [18:35:32]Read from MH i2c: E2 0E 00 [18:35:32]MH_I2C_Read... [18:35:32]Read from MH i2c: E2 0E 00 1A 01 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 AB [18:35:32]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [18:35:32]wFMCommunicate OK [18:35:32]SAM_PROTO_GetShiftState done [18:35:32]FM_GetShiftState done [18:35:32]req_shift_opened done [18:35:32]requested_item shift.open_date is exist - process it [18:35:32]req_shift_open_date [18:35:32]req_shift_open_date done [18:35:32]produce_requested_data done [18:35:32]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104197,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [18:35:32]process_action_free print_text [18:35:32]json_value_free [18:35:32]json_value_free done [18:35:32]process_json_proto returns [18:35:32]Send response to host [18:35:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104197,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [18:35:32]free response buf [18:35:32]execute_script done [18:35:32]execute_script returns [18:35:32]free content buf [18:35:32]Sock 7.Close socket [18:35:32]Sock 7.Thread stoped [18:35:32]OFD Sender: No OFD packet to send [18:35:37]OFD Sender: No OFD packet to send [18:35:42]OFD Sender: No OFD packet to send [18:35:47]OFD Sender: No OFD packet to send [18:35:52]OFD Sender: No OFD packet to send [18:35:57]OFD Sender: No OFD packet to send [18:36:02]OFD Sender: No OFD packet to send [18:36:07]OFD Sender: No OFD packet to send [18:36:12]OFD Sender: No OFD packet to send [18:36:17]OFD Sender: No OFD packet to send [18:36:22]OFD Sender: No OFD packet to send [18:36:27]OFD Sender: No OFD packet to send [18:36:32]OFD Sender: No OFD packet to send [18:36:37]OFD Sender: No OFD packet to send [18:36:42]OFD Sender: No OFD packet to send [18:36:47]OFD Sender: No OFD packet to send [18:36:52]OFD Sender: No OFD packet to send [18:36:57]OFD Sender: No OFD packet to send [18:37:02]OFD Sender: No OFD packet to send [18:37:07]OFD Sender: No OFD packet to send [18:37:12]OFD Sender: No OFD packet to send [18:37:17]OFD Sender: No OFD packet to send [18:37:22]OFD Sender: No OFD packet to send [18:37:27]OFD Sender: No OFD packet to send [18:37:32]OFD Sender: No OFD packet to send [18:37:37]OFD Sender: No OFD packet to send [18:37:42]OFD Sender: No OFD packet to send [18:37:47]OFD Sender: No OFD packet to send [18:37:52]OFD Sender: No OFD packet to send [18:37:57]OFD Sender: No OFD packet to send [18:38:02]OFD Sender: No OFD packet to send [18:38:07]OFD Sender: No OFD packet to send [18:38:12]OFD Sender: No OFD packet to send [18:38:17]OFD Sender: No OFD packet to send [18:38:22]OFD Sender: No OFD packet to send [18:38:27]OFD Sender: No OFD packet to send [18:38:32]OFD Sender: No OFD packet to send [18:38:37]OFD Sender: No OFD packet to send [18:38:42]OFD Sender: No OFD packet to send [18:38:47]OFD Sender: No OFD packet to send [18:38:52]OFD Sender: No OFD packet to send [18:38:57]OFD Sender: No OFD packet to send [18:39:02]OFD Sender: No OFD packet to send [18:39:07]OFD Sender: No OFD packet to send [18:39:12]OFD Sender: No OFD packet to send [18:39:17]OFD Sender: No OFD packet to send [18:39:22]OFD Sender: No OFD packet to send [18:39:27]OFD Sender: No OFD packet to send [18:39:32]OFD Sender: No OFD packet to send [18:39:37]OFD Sender: No OFD packet to send [18:39:42]OFD Sender: No OFD packet to send [18:39:47]OFD Sender: No OFD packet to send [18:39:52]OFD Sender: No OFD packet to send [18:39:57]OFD Sender: No OFD packet to send [18:40:02]OFD Sender: No OFD packet to send [18:40:07]OFD Sender: No OFD packet to send [18:40:12]OFD Sender: No OFD packet to send [18:40:17]OFD Sender: No OFD packet to send [18:40:22]OFD Sender: No OFD packet to send [18:40:27]OFD Sender: No OFD packet to send [18:40:32]OFD Sender: No OFD packet to send [18:40:37]OFD Sender: No OFD packet to send [18:40:42]OFD Sender: No OFD packet to send [18:40:47]OFD Sender: No OFD packet to send [18:40:52]OFD Sender: No OFD packet to send [18:40:57]OFD Sender: No OFD packet to send [18:41:02]OFD Sender: No OFD packet to send [18:41:07]OFD Sender: No OFD packet to send [18:41:12]OFD Sender: No OFD packet to send [18:41:17]OFD Sender: No OFD packet to send [18:41:23]OFD Sender: No OFD packet to send [18:41:24]accept exits with 9 [18:41:24]New connection [18:41:24]New thread 3067616612 created [18:41:24]Thread 3067473252 joined [18:41:24]Waiting for new connection... [18:41:24] Sock 9.Parse request [18:41:24]Sock 9.Check first char [18:41:24]Sock 9.First char is OK [18:41:24]request: POST /json_proto HTTP/1.0 [18:41:24]Method: POST [18:41:24]URL: /json_proto [18:41:24]Method is POST - this is cgi request [18:41:24]url: /json_proto [18:41:24]query_string will be loaded in cgi processing [18:41:24]execute_cgi json_proto POST (null) [18:41:24]execute_cgi path=json_proto method=POST [18:41:24]POST find Content-Length [18:41:24]Host: 172.17.38.133:8080 [18:41:24]Content-Length: 677 [18:41:24]Content-Type: application/json [18:41:24] [18:41:24]POST finish read [18:41:24]Found Content-Length = 677 [18:41:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673666", "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.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:41:24]execute_script... [18:41: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)673666", "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.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:41:24]POST & json_proto [18:41:24]process_json_proto [18:41:24]json parsed OK: [18:41:24]protocol is kg_v1.0 [18:41:24]action value=close_receipt [18:41:24]process_action close_receipt [18:41:24]cmd_close_receipt [18:41:24]MH_GetDate [18:41:24]Write to MH i2c: F0 00 00 1B 01 0B [18:41:24]Write i2c OK [18:41:24]MH_I2C_Read... [18:41:24]Read from MH i2c: F0 [18:41:24]MH_I2C_Read... [18:41:24]Read from MH i2c: F0 09 00 [18:41:24]MH_I2C_Read... [18:41:24]Read from MH i2c: F0 09 00 1B 01 00 55 C9 75 66 BD 8F 7C 64 39 [18:41:24]GetLastDocTimeStamp 1718994900 [18:41:24]current date 1718995285 [18:41:24]FM_GetShiftState [18:41:24]SAM_PROTO_GetShiftState [18:41:24]wFMCommunicate request_size=4 [18:41:24]MH_SAM_APDU [18:41:24]CAPDU: 80 13 01 00 [18:41:24]Write to MH i2c: E2 08 00 1C 01 80 13 01 00 00 00 00 00 9A [18:41:24]Write i2c OK [18:41:24]MH_I2C_Read... [18:41:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:41:24]Read from MH i2c: E2 [18:41:24]MH_I2C_Read... [18:41:24]Read from MH i2c: E2 0E 00 [18:41:24]MH_I2C_Read... [18:41:24]Read from MH i2c: E2 0E 00 1C 01 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 AD [18:41:24]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [18:41:24]wFMCommunicate OK [18:41:24]SAM_PROTO_GetShiftState done [18:41:24]FM_GetShiftState done [18:41:24]opened in 1718929509 [18:41:24]opened+sec_in_day 1719015909 [18:41:24]quantity*price = 35059 [18:41:24]sum+1 = 35060 [18:41:24]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 СНО: Общий режим Чек 121 21.06.2024 18:41 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104198 ФПД: 111369828850237 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T184125&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104198&fm=111369828850237&tin=02508201610067®Number=0000000000092785&sum=35000 [18:41:25]StoreToDocumentArchive [18:41:25]shift 355 fd 104198 [18:41:25]save to /storage/0355/doc_00104198 [18:41:25]save last doc name /storage/0355/doc_00104198 to /storage/kkm_last_doc_name [18:41:25]save OK [18:41:25]Clear old archive folders... [18:41:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:41:25]tlvbuf is 006883D0 [18:41:25]SAM_PROTO_ClearQueue [18:41:25]wFMCommunicate request_size=4 [18:41:25]MH_SAM_APDU [18:41:25]CAPDU: 80 09 00 00 [18:41:25]Write to MH i2c: E2 08 00 29 01 80 09 00 00 00 00 00 00 9C [18:41:25]Write i2c OK [18:41:25]MH_I2C_Read... [18:41:25]Read from MH i2c: E2 [18:41:25]MH_I2C_Read... [18:41:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:41:25]Read from MH i2c: E2 03 00 [18:41:25]MH_I2C_Read... [18:41:25]Read from MH i2c: E2 03 00 29 01 00 90 00 9E [18:41:25]RAPDU: 90 00 [18:41:25]wFMCommunicate OK [18:41:25]SAM_PROTO_ClearQueue done [18:41:25]KKMCreateOFDPacket [18:41:25]OFDProtocolAddRootSTLVToBuf [18:41:25]FM_MakeSignedData [18:41:25]FM_MakeSignedData [18:41:25]SAM_PROTO_SignData [18:41:25]wFMCommunicate request_size=4 [18:41:25]MH_SAM_APDU [18:41:25]CAPDU: 80 0D 01 02 [18:41:25]Write to MH i2c: E2 08 00 2A 01 80 0D 01 02 00 00 00 00 A4 [18:41:25]Write i2c OK [18:41:25]MH_I2C_Read... [18:41:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:41:25]Read from MH i2c: E2 [18:41:25]MH_I2C_Read... [18:41:25]Read from MH i2c: E2 03 00 [18:41:25]MH_I2C_Read... [18:41:25]Read from MH i2c: E2 03 00 2A 01 00 90 00 9F [18:41:25]RAPDU: 90 00 [18:41:25]wFMCommunicate OK [18:41:25]wFMCommunicate request_size=255 [18:41:25]MH_SAM_APDU [18:41: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 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 79 00 00 00 F4 03 04 00 55 C9 75 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 06 97 01 00 35 04 06 00 65 [18:41:25]Write to MH i2c: E2 02 01 2B 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 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 79 00 00 00 F4 03 04 00 55 C9 75 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 06 97 01 00 35 04 06 00 65 00 00 15 [18:41:25]Write i2c OK [18:41:25]MH_I2C_Read... [18:41:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:41:25]Read from MH i2c: E2 [18:41:25]MH_I2C_Read... [18:41:25]Read from MH i2c: E2 03 00 [18:41:25]MH_I2C_Read... [18:41:25]Read from MH i2c: E2 03 00 2B 01 00 90 00 A0 [18:41:25]RAPDU: 90 00 [18:41:25]wFMCommunicate OK [18:41:25]wFMCommunicate request_size=10 [18:41:25]MH_SAM_APDU [18:41:25]CAPDU: 80 0D 02 02 05 4A 4F 16 5A 3D [18:41:25]Write to MH i2c: E2 0D 00 2C 01 80 0D 02 02 05 00 4A 4F 16 5A 3D 00 00 F7 [18:41:25]Write i2c OK [18:41:25]MH_I2C_Read... [18:41:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:41:25]Read from MH i2c: E2 [18:41:25]MH_I2C_Read... [18:41:25]Read from MH i2c: E2 03 00 [18:41:25]MH_I2C_Read... [18:41:25]Read from MH i2c: E2 03 00 2C 01 00 90 00 A1 [18:41:25]RAPDU: 90 00 [18:41:25]wFMCommunicate OK [18:41:25]wFMCommunicate request_size=4 [18:41:25]MH_SAM_APDU [18:41:25]CAPDU: 80 0D 03 02 [18:41:25]Write to MH i2c: E2 08 00 2D 01 80 0D 03 02 00 00 00 00 A9 [18:41:25]Write i2c OK [18:41:25]MH_I2C_Read... [18:41:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:41:25]Read from MH i2c: E2 [18:41:25]MH_I2C_Read... [18:41:25]Read from MH i2c: E2 0B 00 [18:41:25]MH_I2C_Read... [18:41:25]Read from MH i2c: E2 0B 00 2D 01 00 58 78 72 94 E1 FF FC 76 90 00 D2 [18:41:25]RAPDU: 58 78 72 94 E1 FF FC 76 90 00 [18:41:25]wFMCommunicate OK [18:41:25]SAM_PROTO_SignData done [18:41:25]FM_MakeSignedData done [18:41:25]CreateOFDProtocolMessage [18:41:25]wFMCommunicate request_size=4 [18:41:25]MH_SAM_APDU [18:41:25]CAPDU: 80 11 00 00 [18:41:25]Write to MH i2c: E2 08 00 2E 01 80 11 00 00 00 00 00 00 A9 [18:41:25]Write i2c OK [18:41:25]MH_I2C_Read... [18:41:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:41:25]Read from MH i2c: E2 [18:41:25]MH_I2C_Read... [18:41:25]Read from MH i2c: E2 17 00 [18:41:25]MH_I2C_Read... [18:41:25]Read from MH i2c: E2 17 00 2E 01 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:41: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:41:25]wFMCommunicate OK [18:41:25]CreateOFDProtocolMessage done [18:41:25]OFDSenderStorePacket 104198 [18:41:25]StoreOFDPacket docnum=104198 [18:41: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 AD 4C 07 01 B6 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 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 79 00 00 00 F4 03 04 00 55 C9 75 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 06 97 01 00 35 04 06 00 65 4A 4F 16 5A 3D 58 78 72 94 E1 FF FC 76 [18:41:25]CheckFolder [18:41:25]dirname=/storage/ofd_packets [18:41:25]CheckFolder done [18:41:25]ProducePacketName [18:41:25]name=ofd_packets/00104198 [18:41:25]NVStorageSaveData ofd_packets/00104198 [18:41:25]File name is /storage/ofd_packets/00104198 [18:41:25]Write 301 bytes [18:41:25]NVStorageSaveData done [18:41:25]OFDSenderStorePacket done [18:41:25]KKMCreateOFDPacket done [18:41:25]NVStorageSaveData kkm_last_timestamp [18:41:25]File name is /storage/kkm_last_timestamp [18:41:25]Write 4 bytes [18:41:25]NVStorageSaveData done [18:41:25]ExternCall_PrintAddStr [18:41:25]wPrintStart [18:41:25]Write to MH i2c: 01 00 00 2F 01 30 [18:41:25]OFD Sender: Processing packet 104198 [packets to send 17, broken 16] [18:41:25]ProducePacketName [18:41:25]name=ofd_packets/00104198 [18:41:25]OFD Sender: To server: pG, [18:41:25]CommunicateWithHost lk.salyk.kg:30040 [18:41:25]ConnectInit lk.salyk.kg [18:41:25]Write i2c OK [18:41:25]MH_I2C_Read... [18:41:25]Read from MH i2c: 01 [18:41:25]MH_I2C_Read... [18:41:25]Read from MH i2c: 01 07 00 [18:41:25]MH_I2C_Read... [18:41:25]Read from MH i2c: 01 07 00 2F 01 00 00 00 00 00 FF 0F 45 [18:41:25]RasterBufferAndPrint [18:41:25]line Счет N : (1)673666 [18:41:25]line ИНН: 02508201610067 [18:41:25]line Контрольно-Кассовый Чек [18:41:25]line ПРОДАЖА [18:41:25]line ТРК (МРК, ГНК) : 32 [18:41:25]line Товар: 2710124130 [18:41:25]line Аи-92-К-5 [18:41:25]line 5.280 * 66.40 [18:41:25]line = 350.59 [18:41:25]line НДС 12% НСП 1% [18:41:25]line > о реализуемом товаре [18:41:25]line ОКРУГЛЕНИЕ: -0.59 [18:41:25]line ИТОГО: 350.00 [18:41:25]line Внесено: 350.00 [18:41:25]line СДАЧА: 0.00 [18:41:25]line НСП 1% : 3.10 [18:41:25]line НДС 12% : 37.23 [18:41:25]line Наличными: 350.00 [18:41:25]line Безнал.: 0.00 [18:41:25]line Место: АЗС № 120 "Партнер Нефть" [18:41:25]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [18:41:25]line СНО: Общий режим [18:41:25]line Чек 121 21.06.2024 18:41 [18:41:25]line Смена: 355 ФФД: 1.0 [18:41:25]line ЗНМ: 0300000164 [18:41:25]line РНМ: 0000000000092785 [18:41:25]line Версия ККМ: 001 [18:41:25]line ФМ: 0000000000875093 [18:41:25]line ФД: 104198 [18:41:25]line ФПД: 111369828850237 [18:41:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T184125&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104198&fm=111369828850237&tin=02508201610067®Number=0000000000092785&sum=35000 [18:41:26]Connected sock=10 [18:41: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 AD 4C 07 01 B6 EC 5A 03 01 00 03 00 FB written 0, free lines is 4095 [18:41:26]00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 79 00 00 00 F4 03 04 00 55 C9 75 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 06 97 01 00 35 04 06 00 65 4A 4F 16 5A 3D 58 78 72 94 E1 FF FC 76 [18:41: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 66 27 47 00 DA C3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 06 97 01 00 F4 03 04 00 D6 6F 75 66 B6 04 01 00 00 28 4E 14 E7 85 61 85 28 [18:41:26]CommunicateWithHost err = 0 [18:41:26]CheckOFDResponse [18:41:26]1017 (14) - 77093643461234 [18:41:26]1041 (16) - 0000000000875093 [18:41:26]1040 (4) - 104198 [18:41:26]1012 (4) - 21.06.2024 12:19 [18:41:26]1206 (1) - 0 [18:41:26]OFD Sender: Remove packet 104198 [18:41:26]ProducePacketName [18:41:26]name=ofd_packets/00104198 [18:41:26]NVStorageDeleteData [18:41:26]Write to MH i2c: 01 00 00 5A 01 5B [18:41:26]Write i2c OK [18:41:26]MH_I2C_Read... [18:41:26]Read from MH i2c: 01 [18:41:26]MH_I2C_Read... [18:41:26]Read from MH i2c: 01 07 00 [18:41:26]MH_I2C_Read... [18:41:26]Read from MH i2c: 01 07 00 5A 01 00 00 00 00 00 DC 0C 4A [18:41:26]RasterBufferAndPrint [18:41:26]line [18:41:26]line [18:41:26]line [18:41:26]line [18:41:26]line [18:41:26]written 0, free lines is 3298 [18:41:26]MH_Cut [18:41:26]Write to MH i2c: D1 01 00 61 01 01 34 [18:41:26]Write i2c OK [18:41:26]MH_I2C_Read... [18:41:26]Read from MH i2c: D1 [18:41:26]MH_I2C_Read... [18:41:26]Read from MH i2c: D1 01 00 [18:41:26]MH_I2C_Read... [18:41:26]Read from MH i2c: D1 01 00 61 01 00 33 [18:41:26]Write to MH i2c: 01 00 00 62 01 63 [18:41:26]Write i2c OK [18:41:26]MH_I2C_Read... [18:41:26]OFD Sender: No OFD packet to send [18:41:27]*** Cut start [18:41:27]*** Partial cut [18:41:27]*** CUTSNS_PIN = 1 [18:41:27]*** CUTSNS_PIN = 0 [18:41:27]*** Brake cut motor [18:41:28]Read from MH i2c: 01 [18:41:28]MH_I2C_Read... [18:41:28]*** Stop cut motor [18:41:28]*** Cut end [18:41:28]Read from MH i2c: 01 07 00 [18:41:28]MH_I2C_Read... [18:41:28]Read from MH i2c: 01 07 00 62 01 00 00 00 00 00 FF 0F 78 [18:41:28]process_action close_receipt done [18:41:28]requested_data is exist [18:41:28]produce_requested_data [18:41:28]requested_item fm.sn is exist - process it [18:41:28]wFMCommunicate request_size=4 [18:41:28]MH_SAM_APDU [18:41:28]CAPDU: 80 11 00 00 [18:41:28]Write to MH i2c: E2 08 00 63 01 80 11 00 00 00 00 00 00 DE [18:41:28]Write i2c OK [18:41:28]MH_I2C_Read... [18:41:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:41:28]Read from MH i2c: E2 [18:41:28]MH_I2C_Read... [18:41:28]Read from MH i2c: E2 17 00 [18:41:28]MH_I2C_Read... [18:41:28]Read from MH i2c: E2 17 00 63 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 31 [18:41: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:41:28]wFMCommunicate OK [18:41:28]requested_item fd.num is exist - process it [18:41:28]SAM_PROTO_GetFieldsCounters [18:41:28]wFMCommunicate request_size=4 [18:41:28]MH_SAM_APDU [18:41:28]CAPDU: 80 13 00 00 [18:41:28]Write to MH i2c: E2 08 00 64 01 80 13 00 00 00 00 00 00 E1 [18:41:28]Write i2c OK [18:41:28]MH_I2C_Read... [18:41:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:41:28]Read from MH i2c: E2 [18:41:28]MH_I2C_Read... [18:41:28]Read from MH i2c: E2 62 00 [18:41:28]MH_I2C_Read... [18:41:28]Read from MH i2c: E2 62 00 64 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 06 97 01 00 0E 04 04 00 63 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 75 [18:41: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 06 97 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:41:28]wFMCommunicate OK [18:41:28]SAM_PROTO_GetFieldsCounters done [18:41:28]requested_item shift.num is exist - process it [18:41:28]requested_item shift.opened is exist - process it [18:41:28]req_shift_opened [18:41:28]FM_GetShiftState [18:41:28]SAM_PROTO_GetShiftState [18:41:28]wFMCommunicate request_size=4 [18:41:28]MH_SAM_APDU [18:41:28]CAPDU: 80 13 01 00 [18:41:28]Write to MH i2c: E2 08 00 65 01 80 13 01 00 00 00 00 00 E3 [18:41:28]Write i2c OK [18:41:28]MH_I2C_Read... [18:41:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:41:28]Read from MH i2c: E2 [18:41:28]MH_I2C_Read... [18:41:28]Read from MH i2c: E2 0E 00 [18:41:28]MH_I2C_Read... [18:41:28]Read from MH i2c: E2 0E 00 65 01 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 F6 [18:41:28]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [18:41:28]wFMCommunicate OK [18:41:28]SAM_PROTO_GetShiftState done [18:41:28]FM_GetShiftState done [18:41:28]req_shift_opened done [18:41:28]requested_item shift.open_date is exist - process it [18:41:28]req_shift_open_date [18:41:28]req_shift_open_date done [18:41:28]produce_requested_data done [18:41:28]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104198,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [18:41:28]process_action_free close_receipt [18:41:28]json_value_free [18:41:28]json_value_free done [18:41:28]process_json_proto returns [18:41:28]Send response to host [18:41:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104198,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [18:41:28]free response buf [18:41:28]execute_script done [18:41:28]execute_script returns [18:41:28]free content buf [18:41:28]Sock 9.Close socket [18:41:28]Sock 9.Thread stoped [18:41:30]accept exits with 7 [18:41:30]New connection [18:41:30]New thread 3067473252 created [18:41:30]Thread 3067616612 joined [18:41:30]Waiting for new connection... [18:41:30] Sock 7.Parse request [18:41:30]Sock 7.Check first char [18:41:30]Sock 7.First char is OK [18:41:30]request: POST /json_proto HTTP/1.0 [18:41:30]Method: POST [18:41:30]URL: /json_proto [18:41:30]Method is POST - this is cgi request [18:41:30]url: /json_proto [18:41:30]query_string will be loaded in cgi processing [18:41:30]execute_cgi json_proto POST (null) [18:41:30]execute_cgi path=json_proto method=POST [18:41:30]POST find Content-Length [18:41:30]Host: 172.17.38.133:8080 [18:41:30]Content-Length: 677 [18:41:30]Content-Type: application/json [18:41:30] [18:41:30]POST finish read [18:41:30]Found Content-Length = 677 [18:41:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673667", "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:41:30]execute_script... [18:41: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)673667", "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:41:30]POST & json_proto [18:41:30]process_json_proto [18:41:30]json parsed OK: [18:41:30]protocol is kg_v1.0 [18:41:30]action value=close_receipt [18:41:30]process_action close_receipt [18:41:30]cmd_close_receipt [18:41:30]MH_GetDate [18:41:30]Write to MH i2c: F0 00 00 66 01 56 [18:41:30]Write i2c OK [18:41:30]MH_I2C_Read... [18:41:30]Read from MH i2c: F0 [18:41:30]MH_I2C_Read... [18:41:30]Read from MH i2c: F0 09 00 [18:41:30]MH_I2C_Read... [18:41:30]Read from MH i2c: F0 09 00 66 01 00 5B C9 75 66 BD 8F 7C 64 8A [18:41:30]GetLastDocTimeStamp 1718995285 [18:41:30]current date 1718995291 [18:41:30]FM_GetShiftState [18:41:30]SAM_PROTO_GetShiftState [18:41:30]wFMCommunicate request_size=4 [18:41:30]MH_SAM_APDU [18:41:30]CAPDU: 80 13 01 00 [18:41:30]Write to MH i2c: E2 08 00 67 01 80 13 01 00 00 00 00 00 E5 [18:41:30]Write i2c OK [18:41:30]MH_I2C_Read... [18:41:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:41:30]Read from MH i2c: E2 [18:41:30]MH_I2C_Read... [18:41:30]Read from MH i2c: E2 0E 00 [18:41:30]MH_I2C_Read... [18:41:30]Read from MH i2c: E2 0E 00 67 01 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 F8 [18:41:30]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [18:41:30]wFMCommunicate OK [18:41:30]SAM_PROTO_GetShiftState done [18:41:30]FM_GetShiftState done [18:41:30]opened in 1718929509 [18:41:30]opened+sec_in_day 1719015909 [18:41:30]quantity*price = 50065 [18:41:30]sum+1 = 50067 [18:41: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 СНО: Общий режим Чек 122 21.06.2024 18:41 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104199 ФПД: 56101757096164 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T184131&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104199&fm=56101757096164&tin=02508201610067®Number=0000000000092785&sum=50000 [18:41:31]StoreToDocumentArchive [18:41:31]shift 355 fd 104199 [18:41:31]save to /storage/0355/doc_00104199 [18:41:31]save last doc name /storage/0355/doc_00104199 to /storage/kkm_last_doc_name [18:41:31]save OK [18:41:31]Clear old archive folders... [18:41:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:41:31]tlvbuf is 00698B80 [18:41:31]SAM_PROTO_ClearQueue [18:41:31]wFMCommunicate request_size=4 [18:41:31]MH_SAM_APDU [18:41:31]CAPDU: 80 09 00 00 [18:41:31]Write to MH i2c: E2 08 00 74 01 80 09 00 00 00 00 00 00 E7 [18:41:31]Write i2c OK [18:41:31]MH_I2C_Read... [18:41:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:41:31]Read from MH i2c: E2 [18:41:31]MH_I2C_Read... [18:41:31]Read from MH i2c: E2 03 00 [18:41:31]MH_I2C_Read... [18:41:31]Read from MH i2c: E2 03 00 74 01 00 90 00 E9 [18:41:31]RAPDU: 90 00 [18:41:31]wFMCommunicate OK [18:41:31]SAM_PROTO_ClearQueue done [18:41:31]KKMCreateOFDPacket [18:41:31]OFDProtocolAddRootSTLVToBuf [18:41:31]FM_MakeSignedData [18:41:31]FM_MakeSignedData [18:41:31]SAM_PROTO_SignData [18:41:31]wFMCommunicate request_size=4 [18:41:31]MH_SAM_APDU [18:41:31]CAPDU: 80 0D 01 02 [18:41:31]Write to MH i2c: E2 08 00 75 01 80 0D 01 02 00 00 00 00 EF [18:41:31]Write i2c OK [18:41:31]MH_I2C_Read... [18:41:32]OFD Sender: No OFD packet to send [18:41:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:41:32]Read from MH i2c: E2 [18:41:32]MH_I2C_Read... [18:41:32]Read from MH i2c: E2 03 00 [18:41:32]MH_I2C_Read... [18:41:32]Read from MH i2c: E2 03 00 75 01 00 90 00 EA [18:41:32]RAPDU: 90 00 [18:41:32]wFMCommunicate OK [18:41:32]wFMCommunicate request_size=255 [18:41:32]MH_SAM_APDU [18:41: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 7A 00 00 00 F4 03 04 00 5B C9 75 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 07 97 01 00 35 04 06 00 33 [18:41:32]Write to MH i2c: E2 02 01 76 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 7A 00 00 00 F4 03 04 00 5B C9 75 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 07 97 01 00 35 04 06 00 33 00 00 58 [18:41:32]Write i2c OK [18:41:32]MH_I2C_Read... [18:41:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:41:32]Read from MH i2c: E2 [18:41:32]MH_I2C_Read... [18:41:32]Read from MH i2c: E2 03 00 [18:41:32]MH_I2C_Read... [18:41:32]Read from MH i2c: E2 03 00 76 01 00 90 00 EB [18:41:32]RAPDU: 90 00 [18:41:32]wFMCommunicate OK [18:41:32]wFMCommunicate request_size=10 [18:41:32]MH_SAM_APDU [18:41:32]CAPDU: 80 0D 02 02 05 06 35 4D 90 E4 [18:41:32]Write to MH i2c: E2 0D 00 77 01 80 0D 02 02 05 00 06 35 4D 90 E4 00 00 F8 [18:41:32]Write i2c OK [18:41:32]MH_I2C_Read... [18:41:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:41:32]Read from MH i2c: E2 [18:41:32]MH_I2C_Read... [18:41:32]Read from MH i2c: E2 03 00 [18:41:32]MH_I2C_Read... [18:41:32]Read from MH i2c: E2 03 00 77 01 00 90 00 EC [18:41:32]RAPDU: 90 00 [18:41:32]wFMCommunicate OK [18:41:32]wFMCommunicate request_size=4 [18:41:32]MH_SAM_APDU [18:41:32]CAPDU: 80 0D 03 02 [18:41:32]Write to MH i2c: E2 08 00 78 01 80 0D 03 02 00 00 00 00 F4 [18:41:32]Write i2c OK [18:41:32]MH_I2C_Read... [18:41:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:41:32]Read from MH i2c: E2 [18:41:32]MH_I2C_Read... [18:41:32]Read from MH i2c: E2 0B 00 [18:41:32]MH_I2C_Read... [18:41:32]Read from MH i2c: E2 0B 00 78 01 00 61 2B E0 85 80 FF 04 F8 90 00 61 [18:41:32]RAPDU: 61 2B E0 85 80 FF 04 F8 90 00 [18:41:32]wFMCommunicate OK [18:41:32]SAM_PROTO_SignData done [18:41:32]FM_MakeSignedData done [18:41:32]CreateOFDProtocolMessage [18:41:32]wFMCommunicate request_size=4 [18:41:32]MH_SAM_APDU [18:41:32]CAPDU: 80 11 00 00 [18:41:32]Write to MH i2c: E2 08 00 79 01 80 11 00 00 00 00 00 00 F4 [18:41:32]Write i2c OK [18:41:32]MH_I2C_Read... [18:41:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:41:32]Read from MH i2c: E2 [18:41:32]MH_I2C_Read... [18:41:32]Read from MH i2c: E2 17 00 [18:41:32]MH_I2C_Read... [18:41:32]Read from MH i2c: E2 17 00 79 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 47 [18:41: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:41:32]wFMCommunicate OK [18:41:32]CreateOFDProtocolMessage done [18:41:32]OFDSenderStorePacket 104199 [18:41:32]StoreOFDPacket docnum=104199 [18:41: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 09 55 07 01 DB 52 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 7A 00 00 00 F4 03 04 00 5B C9 75 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 07 97 01 00 35 04 06 00 33 06 35 4D 90 E4 61 2B E0 85 80 FF 04 F8 [18:41:32]CheckFolder [18:41:32]dirname=/storage/ofd_packets [18:41:32]CheckFolder done [18:41:32]ProducePacketName [18:41:32]name=ofd_packets/00104199 [18:41:32]NVStorageSaveData ofd_packets/00104199 [18:41:32]File name is /storage/ofd_packets/00104199 [18:41:32]Write 301 bytes [18:41:32]NVStorageSaveData done [18:41:32]OFDSenderStorePacket done [18:41:32]KKMCreateOFDPacket done [18:41:32]NVStorageSaveData kkm_last_timestamp [18:41:32]File name is /storage/kkm_last_timestamp [18:41:32]Write 4 bytes [18:41:32]NVStorageSaveData done [18:41:32]ExternCall_PrintAddStr [18:41:32]wPrintStart [18:41:32]Write to MH i2c: 01 00 00 7A 01 7B [18:41:32]Write i2c OK [18:41:32]MH_I2C_Read... [18:41:32]Read from MH i2c: 01 [18:41:32]MH_I2C_Read... [18:41:32]Read from MH i2c: 01 07 00 [18:41:32]MH_I2C_Read... [18:41:32]Read from MH i2c: 01 07 00 7A 01 00 00 00 00 00 FF 0F 90 [18:41:32]RasterBufferAndPrint [18:41:32]line Счет N : (1)673667 [18:41:32]line ИНН: 02508201610067 [18:41:32]line Контрольно-Кассовый Чек [18:41:32]line ПРОДАЖА [18:41:32]line ТРК (МРК, ГНК) : 42 [18:41:32]line Товар: 2710124130 [18:41:32]line Аи-92-К-5 [18:41:32]line 7.540 * 66.40 [18:41:32]line = 500.66 [18:41:32]line НДС 12% НСП 1% [18:41:32]line > о реализуемом товаре [18:41:32]line ОКРУГЛЕНИЕ: -0.66 [18:41:32]line ИТОГО: 500.00 [18:41:32]line Внесено: 500.00 [18:41:32]line СДАЧА: 0.00 [18:41:32]line НСП 1% : 4.43 [18:41:32]line НДС 12% : 53.17 [18:41:32]line Наличными: 500.00 [18:41:32]line Безнал.: 0.00 [18:41:32]line Место: АЗС № 120 "Партнер Нефть" [18:41:32]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [18:41:32]line СНО: Общий режим [18:41:32]line Чек 122 21.06.2024 18:41 [18:41:32]line Смена: 355 ФФД: 1.0 [18:41:32]line ЗНМ: 0300000164 [18:41:32]line РНМ: 0000000000092785 [18:41:32]line Версия ККМ: 001 [18:41:32]line ФМ: 0000000000875093 [18:41:32]line ФД: 104199 [18:41:32]line ФПД: 56101757096164 [18:41:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T184131&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104199&fm=56101757096164&tin=02508201610067®Number=0000000000092785&sum=50000 [18:41:32]written 0, free lines is 4095 [18:41:32]OFD Sender: Processing packet 104199 [packets to send 17, broken 16] [18:41:32]ProducePacketName [18:41:32]name=ofd_packets/00104199 [18:41:32]OFD Sender: To server: pG, [18:41:32]CommunicateWithHost lk.salyk.kg:30040 [18:41:32]ConnectInit lk.salyk.kg [18:41:32]Connected sock=10 [18:41: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 09 55 07 01 DB 52 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 7A 00 00 00 F4 03 04 00 5B C9 75 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 07 97 01 00 35 04 06 00 33 06 35 4D 90 E4 61 2B E0 85 80 FF 04 F8 [18:41: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 AF 1B 47 00 CE 79 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 07 97 01 00 F4 03 04 00 DC 6F 75 66 B6 04 01 00 00 5D C2 D3 11 3A 0B B3 7D [18:41:32]CommunicateWithHost err = 0 [18:41:32]CheckOFDResponse [18:41:32]1017 (14) - 77093643461234 [18:41:32]1041 (16) - 0000000000875093 [18:41:32]1040 (4) - 104199 [18:41:32]1012 (4) - 21.06.2024 12:19 [18:41:32]1206 (1) - 0 [18:41:32]OFD Sender: Remove packet 104199 [18:41:32]ProducePacketName [18:41:32]name=ofd_packets/00104199 [18:41:32]NVStorageDeleteData [18:41:32]Write to MH i2c: 01 00 00 A5 01 A6 [18:41:32]Write i2c OK [18:41:32]MH_I2C_Read... [18:41:32]Read from MH i2c: 01 [18:41:32]MH_I2C_Read... [18:41:32]Read from MH i2c: 01 07 00 [18:41:32]MH_I2C_Read... [18:41:32]Read from MH i2c: 01 07 00 A5 01 00 00 00 00 00 EB 0C A4 [18:41:32]RasterBufferAndPrint [18:41:32]line [18:41:32]line [18:41:32]line [18:41:32]line [18:41:32]line [18:41:32]written 0, free lines is 3316 [18:41:32]MH_Cut [18:41:32]Write to MH i2c: D1 01 00 AC 01 01 7F [18:41:32]Write i2c OK [18:41:32]MH_I2C_Read... [18:41:32]Read from MH i2c: D1 [18:41:32]MH_I2C_Read... [18:41:32]Read from MH i2c: D1 01 00 [18:41:32]MH_I2C_Read... [18:41:32]Read from MH i2c: D1 01 00 AC 01 00 7E [18:41:32]Write to MH i2c: 01 00 00 AD 01 AE [18:41:32]Write i2c OK [18:41:32]MH_I2C_Read... [18:41:33]OFD Sender: No OFD packet to send [18:41:33]*** Cut start [18:41:33]*** Partial cut [18:41:33]*** CUTSNS_PIN = 1 [18:41:33]*** CUTSNS_PIN = 0 [18:41:33]*** Brake cut motor [18:41:34]Read from MH i2c: 01 [18:41:34]MH_I2C_Read... [18:41:34]*** Stop cut motor [18:41:34]*** Cut end [18:41:34]Read from MH i2c: 01 07 00 [18:41:34]MH_I2C_Read... [18:41:34]Read from MH i2c: 01 07 00 AD 01 00 00 00 00 00 FF 0F C3 [18:41:34]process_action close_receipt done [18:41:34]requested_data is exist [18:41:34]produce_requested_data [18:41:34]requested_item fm.sn is exist - process it [18:41:34]wFMCommunicate request_size=4 [18:41:34]MH_SAM_APDU [18:41:34]CAPDU: 80 11 00 00 [18:41:34]Write to MH i2c: E2 08 00 AE 01 80 11 00 00 00 00 00 00 29 [18:41:34]Write i2c OK [18:41:34]MH_I2C_Read... [18:41:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:41:34]Read from MH i2c: E2 [18:41:34]MH_I2C_Read... [18:41:34]Read from MH i2c: E2 17 00 [18:41:34]MH_I2C_Read... [18:41:34]Read from MH i2c: E2 17 00 AE 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 7C [18:41: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:41:34]wFMCommunicate OK [18:41:34]requested_item fd.num is exist - process it [18:41:34]SAM_PROTO_GetFieldsCounters [18:41:34]wFMCommunicate request_size=4 [18:41:34]MH_SAM_APDU [18:41:34]CAPDU: 80 13 00 00 [18:41:34]Write to MH i2c: E2 08 00 AF 01 80 13 00 00 00 00 00 00 2C [18:41:34]Write i2c OK [18:41:34]MH_I2C_Read... [18:41:34]Read from MH i2c: E2 [18:41:34]MH_I2C_Read... [18:41:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:41:34]Read from MH i2c: E2 62 00 [18:41:34]MH_I2C_Read... [18:41:34]Read from MH i2c: E2 62 00 AF 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 07 97 01 00 0E 04 04 00 63 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 C4 [18:41: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 07 97 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 7A 00 00 00 5E 04 04 00 7A 00 00 00 57 04 04 00 7B 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:41:34]wFMCommunicate OK [18:41:34]SAM_PROTO_GetFieldsCounters done [18:41:34]requested_item shift.num is exist - process it [18:41:34]requested_item shift.opened is exist - process it [18:41:34]req_shift_opened [18:41:34]FM_GetShiftState [18:41:34]SAM_PROTO_GetShiftState [18:41:34]wFMCommunicate request_size=4 [18:41:34]MH_SAM_APDU [18:41:34]CAPDU: 80 13 01 00 [18:41:34]Write to MH i2c: E2 08 00 B0 01 80 13 01 00 00 00 00 00 2E [18:41:34]Write i2c OK [18:41:34]MH_I2C_Read... [18:41:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:41:34]Read from MH i2c: E2 [18:41:34]MH_I2C_Read... [18:41:34]Read from MH i2c: E2 0E 00 [18:41:34]MH_I2C_Read... [18:41:34]Read from MH i2c: E2 0E 00 B0 01 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 41 [18:41:34]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [18:41:34]wFMCommunicate OK [18:41:34]SAM_PROTO_GetShiftState done [18:41:34]FM_GetShiftState done [18:41:34]req_shift_opened done [18:41:34]requested_item shift.open_date is exist - process it [18:41:34]req_shift_open_date [18:41:34]req_shift_open_date done [18:41:34]produce_requested_data done [18:41:34]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104199,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [18:41:34]process_action_free close_receipt [18:41:34]json_value_free [18:41:34]json_value_free done [18:41:34]process_json_proto returns [18:41:34]Send response to host [18:41:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104199,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [18:41:34]free response buf [18:41:34]execute_script done [18:41:34]execute_script returns [18:41:34]free content buf [18:41:34]Sock 7.Close socket [18:41:34]Sock 7.Thread stoped [18:41:38]OFD Sender: No OFD packet to send [18:41:43]OFD Sender: No OFD packet to send [18:41:48]OFD Sender: No OFD packet to send [18:41:53]OFD Sender: No OFD packet to send [18:41:58]OFD Sender: No OFD packet to send [18:42:03]OFD Sender: No OFD packet to send [18:42:08]OFD Sender: No OFD packet to send [18:42:13]OFD Sender: No OFD packet to send [18:42:18]OFD Sender: No OFD packet to send [18:42:23]OFD Sender: No OFD packet to send [18:42:28]OFD Sender: No OFD packet to send [18:42:33]OFD Sender: No OFD packet to send [18:42:38]OFD Sender: No OFD packet to send [18:42:43]OFD Sender: No OFD packet to send [18:42:48]OFD Sender: No OFD packet to send [18:42:53]OFD Sender: No OFD packet to send [18:42:58]OFD Sender: No OFD packet to send [18:43:03]OFD Sender: No OFD packet to send [18:43:08]OFD Sender: No OFD packet to send [18:43:13]OFD Sender: No OFD packet to send [18:43:18]OFD Sender: No OFD packet to send [18:43:23]OFD Sender: No OFD packet to send [18:43:28]OFD Sender: No OFD packet to send [18:43:33]OFD Sender: No OFD packet to send [18:43:38]OFD Sender: No OFD packet to send [18:43:43]OFD Sender: No OFD packet to send [18:43:48]OFD Sender: No OFD packet to send [18:43:53]OFD Sender: No OFD packet to send [18:43:58]OFD Sender: No OFD packet to send [18:44:03]OFD Sender: No OFD packet to send [18:44:08]OFD Sender: No OFD packet to send [18:44:13]OFD Sender: No OFD packet to send [18:44:18]OFD Sender: No OFD packet to send [18:44:23]OFD Sender: No OFD packet to send [18:44:28]OFD Sender: No OFD packet to send [18:44:33]OFD Sender: No OFD packet to send [18:44:38]OFD Sender: No OFD packet to send [18:44:43]OFD Sender: No OFD packet to send [18:44:48]OFD Sender: No OFD packet to send [18:44:53]OFD Sender: No OFD packet to send [18:44:58]OFD Sender: No OFD packet to send [18:45:03]OFD Sender: No OFD packet to send [18:45:08]OFD Sender: No OFD packet to send [18:45:13]OFD Sender: No OFD packet to send [18:45:18]OFD Sender: No OFD packet to send [18:45:23]OFD Sender: No OFD packet to send [18:45:28]OFD Sender: No OFD packet to send [18:45:33]OFD Sender: No OFD packet to send [18:45:38]OFD Sender: No OFD packet to send [18:45:43]OFD Sender: No OFD packet to send [18:45:48]OFD Sender: No OFD packet to send [18:45:53]OFD Sender: No OFD packet to send [18:45:58]OFD Sender: No OFD packet to send [18:46:03]OFD Sender: No OFD packet to send [18:46:08]OFD Sender: No OFD packet to send [18:46:13]OFD Sender: No OFD packet to send [18:46:18]OFD Sender: No OFD packet to send [18:46:23]OFD Sender: No OFD packet to send [18:46:28]OFD Sender: No OFD packet to send [18:46:33]OFD Sender: No OFD packet to send [18:46:38]OFD Sender: No OFD packet to send [18:46:43]OFD Sender: No OFD packet to send [18:46:48]OFD Sender: No OFD packet to send [18:46:53]OFD Sender: No OFD packet to send [18:46:58]OFD Sender: No OFD packet to send [18:47:03]OFD Sender: No OFD packet to send [18:47:04]accept exits with 9 [18:47:04]New connection [18:47:04]New thread 3067616612 created [18:47:04]Thread 3067473252 joined [18:47:04]Waiting for new connection... [18:47:04] Sock 9.Parse request [18:47:04]Sock 9.Check first char [18:47:04]Sock 9.First char is OK [18:47:04]request: POST /json_proto HTTP/1.0 [18:47:04]Method: POST [18:47:04]URL: /json_proto [18:47:04]Method is POST - this is cgi request [18:47:04]url: /json_proto [18:47:04]query_string will be loaded in cgi processing [18:47:04]execute_cgi json_proto POST (null) [18:47:04]execute_cgi path=json_proto method=POST [18:47:04]POST find Content-Length [18:47:04]Host: 172.17.38.133:8080 [18:47:04]Content-Length: 687 [18:47:04]Content-Type: application/json [18:47:04] [18:47:04]POST finish read [18:47:04]Found Content-Length = 687 [18:47:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673668", "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.580, "sum" : 1500.28, "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" ] } } [18:47:04]execute_script... [18:47: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)673668", "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.580, "sum" : 1500.28, "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" ] } } [18:47:04]POST & json_proto [18:47:04]process_json_proto [18:47:04]json parsed OK: [18:47:04]protocol is kg_v1.0 [18:47:04]action value=close_receipt [18:47:04]process_action close_receipt [18:47:04]cmd_close_receipt [18:47:04]MH_GetDate [18:47:04]Write to MH i2c: F0 00 00 B1 01 A1 [18:47:04]Write i2c OK [18:47:04]MH_I2C_Read... [18:47:04]Read from MH i2c: F0 [18:47:04]MH_I2C_Read... [18:47:04]Read from MH i2c: F0 09 00 [18:47:04]MH_I2C_Read... [18:47:04]Read from MH i2c: F0 09 00 B1 01 00 A9 CA 75 66 BD 8F 7C 64 24 [18:47:04]GetLastDocTimeStamp 1718995291 [18:47:04]current date 1718995625 [18:47:04]FM_GetShiftState [18:47:04]SAM_PROTO_GetShiftState [18:47:04]wFMCommunicate request_size=4 [18:47:04]MH_SAM_APDU [18:47:04]CAPDU: 80 13 01 00 [18:47:04]Write to MH i2c: E2 08 00 B2 01 80 13 01 00 00 00 00 00 30 [18:47:04]Write i2c OK [18:47:04]MH_I2C_Read... [18:47:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:47:04]Read from MH i2c: E2 [18:47:04]MH_I2C_Read... [18:47:04]Read from MH i2c: E2 0E 00 [18:47:04]MH_I2C_Read... [18:47:04]Read from MH i2c: E2 0E 00 B2 01 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 43 [18:47:04]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [18:47:04]wFMCommunicate OK [18:47:04]SAM_PROTO_GetShiftState done [18:47:04]FM_GetShiftState done [18:47:04]opened in 1718929509 [18:47:04]opened+sec_in_day 1719015909 [18:47:04]quantity*price = 150028 [18:47:04]sum+1 = 150029 [18:47:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.32 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 123 21.06.2024 18:47 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104200 ФПД: 80110122704655 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T184705&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104200&fm=80110122704655&tin=02508201610067®Number=0000000000092785&sum=150000 [18:47:05]StoreToDocumentArchive [18:47:05]shift 355 fd 104200 [18:47:05]save to /storage/0355/doc_00104200 [18:47:05]save last doc name /storage/0355/doc_00104200 to /storage/kkm_last_doc_name [18:47:05]save OK [18:47:05]Clear old archive folders... [18:47:05]ProcessDocumentItem done err = 0, tmpTLVsize=252 [18:47:05]tlvbuf is 006B9550 [18:47:05]SAM_PROTO_ClearQueue [18:47:05]wFMCommunicate request_size=4 [18:47:05]MH_SAM_APDU [18:47:05]CAPDU: 80 09 00 00 [18:47:05]Write to MH i2c: E2 08 00 BF 01 80 09 00 00 00 00 00 00 32 [18:47:05]Write i2c OK [18:47:05]MH_I2C_Read... [18:47:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:47:05]Read from MH i2c: E2 [18:47:05]MH_I2C_Read... [18:47:05]Read from MH i2c: E2 03 00 [18:47:05]MH_I2C_Read... [18:47:05]Read from MH i2c: E2 03 00 BF 01 00 90 00 34 [18:47:05]RAPDU: 90 00 [18:47:05]wFMCommunicate OK [18:47:05]SAM_PROTO_ClearQueue done [18:47:05]KKMCreateOFDPacket [18:47:05]OFDProtocolAddRootSTLVToBuf [18:47:05]FM_MakeSignedData [18:47:05]FM_MakeSignedData [18:47:05]SAM_PROTO_SignData [18:47:05]wFMCommunicate request_size=4 [18:47:05]MH_SAM_APDU [18:47:05]CAPDU: 80 0D 01 02 [18:47:05]Write to MH i2c: E2 08 00 C0 01 80 0D 01 02 00 00 00 00 3A [18:47:05]Write i2c OK [18:47:05]MH_I2C_Read... [18:47:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:47:05]Read from MH i2c: E2 [18:47:05]MH_I2C_Read... [18:47:05]Read from MH i2c: E2 03 00 [18:47:05]MH_I2C_Read... [18:47:05]Read from MH i2c: E2 03 00 C0 01 00 90 00 35 [18:47:05]RAPDU: 90 00 [18:47:05]wFMCommunicate OK [18:47:05]wFMCommunicate request_size=255 [18:47:05]MH_SAM_APDU [18:47: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 64 50 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 0C 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 3C 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 7B 00 00 00 F4 03 04 00 A9 CA 75 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 08 97 01 00 35 04 06 00 [18:47:05]Write to MH i2c: E2 02 01 C1 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 64 50 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 0C 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 3C 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 7B 00 00 00 F4 03 04 00 A9 CA 75 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 08 97 01 00 35 04 06 00 00 00 19 [18:47:05]Write i2c OK [18:47:05]MH_I2C_Read... [18:47:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:47:05]Read from MH i2c: E2 [18:47:05]MH_I2C_Read... [18:47:05]Read from MH i2c: E2 03 00 [18:47:05]MH_I2C_Read... [18:47:05]Read from MH i2c: E2 03 00 C1 01 00 90 00 36 [18:47:05]RAPDU: 90 00 [18:47:05]wFMCommunicate OK [18:47:05]wFMCommunicate request_size=11 [18:47:05]MH_SAM_APDU [18:47:05]CAPDU: 80 0D 02 02 06 48 DC 17 68 1F 0F [18:47:05]Write to MH i2c: E2 0E 00 C2 01 80 0D 02 02 06 00 48 DC 17 68 1F 0F 00 00 1A [18:47:05]Write i2c OK [18:47:05]MH_I2C_Read... [18:47:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:47:05]Read from MH i2c: E2 [18:47:05]MH_I2C_Read... [18:47:05]Read from MH i2c: E2 03 00 [18:47:05]MH_I2C_Read... [18:47:05]Read from MH i2c: E2 03 00 C2 01 00 90 00 37 [18:47:05]RAPDU: 90 00 [18:47:05]wFMCommunicate OK [18:47:05]wFMCommunicate request_size=4 [18:47:05]MH_SAM_APDU [18:47:05]CAPDU: 80 0D 03 02 [18:47:05]Write to MH i2c: E2 08 00 C3 01 80 0D 03 02 00 00 00 00 3F [18:47:05]Write i2c OK [18:47:05]MH_I2C_Read... [18:47:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:47:06]Read from MH i2c: E2 [18:47:06]MH_I2C_Read... [18:47:06]Read from MH i2c: E2 0B 00 [18:47:06]MH_I2C_Read... [18:47:06]Read from MH i2c: E2 0B 00 C3 01 00 15 00 AB 25 19 ED 48 2F 90 00 A2 [18:47:06]RAPDU: 15 00 AB 25 19 ED 48 2F 90 00 [18:47:06]wFMCommunicate OK [18:47:06]SAM_PROTO_SignData done [18:47:06]FM_MakeSignedData done [18:47:06]CreateOFDProtocolMessage [18:47:06]wFMCommunicate request_size=4 [18:47:06]MH_SAM_APDU [18:47:06]CAPDU: 80 11 00 00 [18:47:06]Write to MH i2c: E2 08 00 C4 01 80 11 00 00 00 00 00 00 3F [18:47:06]Write i2c OK [18:47:06]MH_I2C_Read... [18:47:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:47:06]Read from MH i2c: E2 [18:47:06]MH_I2C_Read... [18:47:06]Read from MH i2c: E2 17 00 [18:47:06]MH_I2C_Read... [18:47:06]Read from MH i2c: E2 17 00 C4 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 92 [18:47:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [18:47:06]wFMCommunicate OK [18:47:06]CreateOFDProtocolMessage done [18:47:06]OFDSenderStorePacket 104200 [18:47:06]StoreOFDPacket docnum=104200 [18:47: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 37 A6 08 01 79 27 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 64 50 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 0C 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 3C 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 7B 00 00 00 F4 03 04 00 A9 CA 75 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 08 97 01 00 35 04 06 00 48 DC 17 68 1F 0F 15 00 AB 25 19 ED 48 2F [18:47:06]CheckFolder [18:47:06]dirname=/storage/ofd_packets [18:47:06]CheckFolder done [18:47:06]ProducePacketName [18:47:06]name=ofd_packets/00104200 [18:47:06]NVStorageSaveData ofd_packets/00104200 [18:47:06]File name is /storage/ofd_packets/00104200 [18:47:06]Write 302 bytes [18:47:06]NVStorageSaveData done [18:47:06]OFDSenderStorePacket done [18:47:06]KKMCreateOFDPacket done [18:47:06]NVStorageSaveData kkm_last_timestamp [18:47:06]File name is /storage/kkm_last_timestamp [18:47:06]Write 4 bytes [18:47:06]NVStorageSaveData done [18:47:06]ExternCall_PrintAddStr [18:47:06]wPrintStart [18:47:06]Write to MH i2c: 01 00 00 C5 01 C6 [18:47:06]Write i2c OK [18:47:06]MH_I2C_Read... [18:47:06]Read from MH i2c: 01 [18:47:06]MH_I2C_Read... [18:47:06]Read from MH i2c: 01 07 00 [18:47:06]MH_I2C_Read... [18:47:06]Read from MH i2c: 01 07 00 C5 01 00 00 00 00 00 FF 0F DB [18:47:06]RasterBufferAndPrint [18:47:06]line Счет N : (1)673668 [18:47:06]line ИНН: 02508201610067 [18:47:06]line Контрольно-Кассовый Чек [18:47:06]line ПРОДАЖА [18:47:06]line ТРК (МРК, ГНК) : 21 [18:47:06]line Товар: 2710194210 [18:47:06]line ДТ(л)-К-5 [18:47:06]line 20.580 * 72.90 [18:47:06]line = 1500.28 [18:47:06]line НДС 12% НСП 1% [18:47:06]line > о реализуемом товаре [18:47:06]line ОКРУГЛЕНИЕ: -0.28 [18:47:06]line ИТОГО: 1500.00 [18:47:06]line Внесено: 1500.00 [18:47:06]line СДАЧА: 0.00 [18:47:06]line НСП 1% : 13.28 [18:47:06]line НДС 12% : 159.32 [18:47:06]line Наличными: 1500.00 [18:47:06]line Безнал.: 0.00 [18:47:06]line Место: АЗС № 120 "Партнер Нефть" [18:47:06]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [18:47:06]line СНО: Общий режим [18:47:06]line Чек 123 21.06.2024 18:47 [18:47:06]line Смена: 355 ФФД: 1.0 [18:47:06]line ЗНМ: 0300000164 [18:47:06]line РНМ: 0000000000092785 [18:47:06]line Версия ККМ: 001 [18:47:06]line ФМ: 0000000000875093 [18:47:06]line ФД: 104200 [18:47:06]line ФПД: 80110122704655 [18:47:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T184705&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104200&fm=80110122704655&tin=02508201610067®Number=0000000000092785&sum=150000 [18:47:06]OFD Sender: Processing packet 104200 [packets to send 17, broken 16] [18:47:06]ProducePacketName [18:47:06]name=ofd_packets/00104200 [18:47:06]OFD Sender: To server: pG, [18:47:06]CommunicateWithHost lk.salyk.kg:30040 [18:47:06]ConnectInit lk.salyk.kg [18:47:06]written 0, free lines is 4095 [18:47:06]Connected sock=10 [18:47: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 37 A6 08 01 79 27 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 64 50 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 0C 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 3C 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 7B 00 00 00 F4 03 04 00 A9 CA 75 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 08 97 01 00 35 04 06 00 48 DC 17 68 1F 0F 15 00 AB 25 19 ED 48 2F [18:47: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 55 CF 47 00 CA 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 08 97 01 00 F4 03 04 00 2A 71 75 66 B6 04 01 00 00 37 3E EE 21 BD 3E 01 5A [18:47:06]CommunicateWithHost err = 0 [18:47:06]CheckOFDResponse [18:47:06]1017 (14) - 77093643461234 [18:47:06]1041 (16) - 0000000000875093 [18:47:06]1040 (4) - 104200 [18:47:06]1012 (4) - 21.06.2024 12:25 [18:47:06]1206 (1) - 0 [18:47:06]OFD Sender: Remove packet 104200 [18:47:06]ProducePacketName [18:47:06]name=ofd_packets/00104200 [18:47:06]NVStorageDeleteData [18:47:06]Write to MH i2c: 01 00 00 F0 01 F1 [18:47:06]Write i2c OK [18:47:06]MH_I2C_Read... [18:47:06]Read from MH i2c: 01 [18:47:06]MH_I2C_Read... [18:47:06]Read from MH i2c: 01 07 00 [18:47:06]MH_I2C_Read... [18:47:06]Read from MH i2c: 01 07 00 F0 01 00 00 00 00 00 E0 0C E4 [18:47:06]RasterBufferAndPrint [18:47:06]line [18:47:06]line [18:47:06]line [18:47:06]line [18:47:06]line [18:47:06]written 0, free lines is 3302 [18:47:06]MH_Cut [18:47:06]Write to MH i2c: D1 01 00 F7 01 01 CA [18:47:06]Write i2c OK [18:47:06]MH_I2C_Read... [18:47:06]Read from MH i2c: D1 [18:47:06]MH_I2C_Read... [18:47:06]Read from MH i2c: D1 01 00 [18:47:06]MH_I2C_Read... [18:47:06]Read from MH i2c: D1 01 00 F7 01 00 C9 [18:47:06]Write to MH i2c: 01 00 00 F8 01 F9 [18:47:06]Write i2c OK [18:47:06]MH_I2C_Read... [18:47:07]OFD Sender: No OFD packet to send [18:47:07]*** Cut start [18:47:07]*** Partial cut [18:47:07]*** CUTSNS_PIN = 1 [18:47:07]*** CUTSNS_PIN = 0 [18:47:07]*** Brake cut motor [18:47:08]Read from MH i2c: 01 [18:47:08]MH_I2C_Read... [18:47:08]*** Stop cut motor [18:47:08]*** Cut end [18:47:08]Read from MH i2c: 01 07 00 [18:47:08]MH_I2C_Read... [18:47:08]Read from MH i2c: 01 07 00 F8 01 00 00 00 00 00 FF 0F 0E [18:47:08]process_action close_receipt done [18:47:08]requested_data is exist [18:47:08]produce_requested_data [18:47:08]requested_item fm.sn is exist - process it [18:47:08]wFMCommunicate request_size=4 [18:47:08]MH_SAM_APDU [18:47:08]CAPDU: 80 11 00 00 [18:47:08]Write to MH i2c: E2 08 00 F9 01 80 11 00 00 00 00 00 00 74 [18:47:08]Write i2c OK [18:47:08]MH_I2C_Read... [18:47:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:47:08]Read from MH i2c: E2 [18:47:08]MH_I2C_Read... [18:47:08]Read from MH i2c: E2 17 00 [18:47:08]MH_I2C_Read... [18:47:08]Read from MH i2c: E2 17 00 F9 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 C7 [18:47:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [18:47:08]wFMCommunicate OK [18:47:08]requested_item fd.num is exist - process it [18:47:08]SAM_PROTO_GetFieldsCounters [18:47:08]wFMCommunicate request_size=4 [18:47:08]MH_SAM_APDU [18:47:08]CAPDU: 80 13 00 00 [18:47:08]Write to MH i2c: E2 08 00 FA 01 80 13 00 00 00 00 00 00 77 [18:47:08]Write i2c OK [18:47:08]MH_I2C_Read... [18:47:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:47:08]Read from MH i2c: E2 [18:47:08]MH_I2C_Read... [18:47:08]Read from MH i2c: E2 62 00 [18:47:08]MH_I2C_Read... [18:47:08]Read from MH i2c: E2 62 00 FA 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 08 97 01 00 0E 04 04 00 63 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 13 [18:47: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 08 97 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:47:08]wFMCommunicate OK [18:47:08]SAM_PROTO_GetFieldsCounters done [18:47:08]requested_item shift.num is exist - process it [18:47:08]requested_item shift.opened is exist - process it [18:47:08]req_shift_opened [18:47:08]FM_GetShiftState [18:47:08]SAM_PROTO_GetShiftState [18:47:08]wFMCommunicate request_size=4 [18:47:08]MH_SAM_APDU [18:47:08]CAPDU: 80 13 01 00 [18:47:08]Write to MH i2c: E2 08 00 FB 01 80 13 01 00 00 00 00 00 79 [18:47:08]Write i2c OK [18:47:08]MH_I2C_Read... [18:47:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:47:08]Read from MH i2c: E2 [18:47:08]MH_I2C_Read... [18:47:08]Read from MH i2c: E2 0E 00 [18:47:08]MH_I2C_Read... [18:47:08]Read from MH i2c: E2 0E 00 FB 01 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 8C [18:47:08]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [18:47:08]wFMCommunicate OK [18:47:08]SAM_PROTO_GetShiftState done [18:47:08]FM_GetShiftState done [18:47:08]req_shift_opened done [18:47:08]requested_item shift.open_date is exist - process it [18:47:08]req_shift_open_date [18:47:08]req_shift_open_date done [18:47:08]produce_requested_data done [18:47:08]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104200,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [18:47:08]process_action_free close_receipt [18:47:08]json_value_free [18:47:08]json_value_free done [18:47:08]process_json_proto returns [18:47:08]Send response to host [18:47:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104200,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [18:47:08]free response buf [18:47:08]execute_script done [18:47:08]execute_script returns [18:47:08]free content buf [18:47:08]Sock 9.Close socket [18:47:08]Sock 9.Thread stoped [18:47:12]OFD Sender: No OFD packet to send [18:47:17]OFD Sender: No OFD packet to send [18:47:22]OFD Sender: No OFD packet to send [18:47:27]OFD Sender: No OFD packet to send [18:47:32]OFD Sender: No OFD packet to send [18:47:37]OFD Sender: No OFD packet to send [18:47:42]OFD Sender: No OFD packet to send [18:47:47]OFD Sender: No OFD packet to send [18:47:52]OFD Sender: No OFD packet to send [18:47:57]OFD Sender: No OFD packet to send [18:48:02]OFD Sender: No OFD packet to send [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:32]OFD Sender: No OFD packet to send [18:50:37]OFD Sender: No OFD packet to send [18:50:42]OFD Sender: No OFD packet to send [18:50:47]OFD Sender: No OFD packet to send [18:50:52]OFD Sender: No OFD packet to send [18:50:57]OFD Sender: No OFD packet to send [18:51:02]OFD Sender: No OFD packet to send [18:51:07]OFD Sender: No OFD packet to send [18:51:12]OFD Sender: No OFD packet to send [18:51:17]OFD Sender: No OFD packet to send [18:51:22]OFD Sender: No OFD packet to send [18:51:25]accept exits with 7 [18:51:25]New connection [18:51:25]New thread 3067473252 created [18:51:25]Thread 3067616612 joined [18:51:25]Waiting for new connection... [18:51:25] Sock 7.Parse request [18:51:25]Sock 7.Check first char [18:51:25]Sock 7.First char is OK [18:51:25]request: POST /json_proto HTTP/1.0 [18:51:25]Method: POST [18:51:25]URL: /json_proto [18:51:25]Method is POST - this is cgi request [18:51:25]url: /json_proto [18:51:25]query_string will be loaded in cgi processing [18:51:25]execute_cgi json_proto POST (null) [18:51:25]execute_cgi path=json_proto method=POST [18:51:25]POST find Content-Length [18:51:25]Host: 172.17.38.133:8080 [18:51:25]Content-Length: 819 [18:51:25]Content-Type: application/json [18:51:25] [18:51:25]POST finish read [18:51:25]Found Content-Length = 819 [18:51:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673669", "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" ] } } [18:51:25]execute_script... [18:51: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)673669", "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" ] } } [18:51:25]POST & json_proto [18:51:25]process_json_proto [18:51:25]json parsed OK: [18:51:25]protocol is kg_v1.0 [18:51:25]action value=close_receipt [18:51:25]process_action close_receipt [18:51:25]cmd_close_receipt [18:51:25]MH_GetDate [18:51:25]Write to MH i2c: F0 00 00 FC 01 EC [18:51:25]Write i2c OK [18:51:25]MH_I2C_Read... [18:51:25]Read from MH i2c: F0 [18:51:25]MH_I2C_Read... [18:51:25]Read from MH i2c: F0 09 00 [18:51:25]MH_I2C_Read... [18:51:25]Read from MH i2c: F0 09 00 FC 01 00 AE CB 75 66 BD 8F 7C 64 75 [18:51:25]GetLastDocTimeStamp 1718995625 [18:51:25]current date 1718995886 [18:51:25]FM_GetShiftState [18:51:25]SAM_PROTO_GetShiftState [18:51:25]wFMCommunicate request_size=4 [18:51:25]MH_SAM_APDU [18:51:25]CAPDU: 80 13 01 00 [18:51:25]Write to MH i2c: E2 08 00 FD 01 80 13 01 00 00 00 00 00 7B [18:51:25]Write i2c OK [18:51:25]MH_I2C_Read... [18:51:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:51:25]Read from MH i2c: E2 [18:51:25]MH_I2C_Read... [18:51:25]Read from MH i2c: E2 0E 00 [18:51:25]MH_I2C_Read... [18:51:25]Read from MH i2c: E2 0E 00 FD 01 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 8E [18:51:25]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [18:51:25]wFMCommunicate OK [18:51:25]SAM_PROTO_GetShiftState done [18:51:25]FM_GetShiftState done [18:51:25]opened in 1718929509 [18:51:25]opened+sec_in_day 1719015909 [18:51:25]quantity*price = 100064 [18:51:25]sum+1 = 100066 [18:51:25]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 СНО: Общий режим Чек 124 21.06.2024 18:51 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875093 ФД: 104201 ФПД: 3515745112316 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T185126&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104201&fm=3515745112316&tin=02508201610067®Number=0000000000092785&sum=100065 [18:51:26]StoreToDocumentArchive [18:51:26]shift 355 fd 104201 [18:51:26]save to /storage/0355/doc_00104201 [18:51:26]save last doc name /storage/0355/doc_00104201 to /storage/kkm_last_doc_name [18:51:26]save OK [18:51:26]Clear old archive folders... [18:51:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:51:26]tlvbuf is 006BD1F0 [18:51:26]SAM_PROTO_ClearQueue [18:51:26]wFMCommunicate request_size=4 [18:51:26]MH_SAM_APDU [18:51:26]CAPDU: 80 09 00 00 [18:51:26]Write to MH i2c: E2 08 00 0A 02 80 09 00 00 00 00 00 00 7E [18:51:26]Write i2c OK [18:51:26]MH_I2C_Read... [18:51:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:51:26]Read from MH i2c: E2 [18:51:26]MH_I2C_Read... [18:51:26]Read from MH i2c: E2 03 00 [18:51:26]MH_I2C_Read... [18:51:26]Read from MH i2c: E2 03 00 0A 02 00 90 00 80 [18:51:26]RAPDU: 90 00 [18:51:26]wFMCommunicate OK [18:51:26]SAM_PROTO_ClearQueue done [18:51:26]KKMCreateOFDPacket [18:51:26]OFDProtocolAddRootSTLVToBuf [18:51:26]FM_MakeSignedData [18:51:26]FM_MakeSignedData [18:51:26]SAM_PROTO_SignData [18:51:26]wFMCommunicate request_size=4 [18:51:26]MH_SAM_APDU [18:51:26]CAPDU: 80 0D 01 02 [18:51:26]Write to MH i2c: E2 08 00 0B 02 80 0D 01 02 00 00 00 00 86 [18:51:26]Write i2c OK [18:51:26]MH_I2C_Read... [18:51:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:51:26]Read from MH i2c: E2 [18:51:26]MH_I2C_Read... [18:51:26]Read from MH i2c: E2 03 00 [18:51:26]MH_I2C_Read... [18:51:26]Read from MH i2c: E2 03 00 0B 02 00 90 00 81 [18:51:26]RAPDU: 90 00 [18:51:26]wFMCommunicate OK [18:51:26]wFMCommunicate request_size=255 [18:51:26]MH_SAM_APDU [18:51: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 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 7C 00 00 00 F4 03 04 00 AE CB 75 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 09 97 01 00 35 04 06 00 03 [18:51:26]Write to MH i2c: E2 02 01 0C 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 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 7C 00 00 00 F4 03 04 00 AE CB 75 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 09 97 01 00 35 04 06 00 03 00 00 EA [18:51:26]Write i2c OK [18:51:26]MH_I2C_Read... [18:51:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:51:26]Read from MH i2c: E2 [18:51:26]MH_I2C_Read... [18:51:26]Read from MH i2c: E2 03 00 [18:51:26]MH_I2C_Read... [18:51:26]Read from MH i2c: E2 03 00 0C 02 00 90 00 82 [18:51:26]RAPDU: 90 00 [18:51:26]wFMCommunicate OK [18:51:26]wFMCommunicate request_size=10 [18:51:26]MH_SAM_APDU [18:51:26]CAPDU: 80 0D 02 02 05 32 92 BD 10 FC [18:51:26]Write to MH i2c: E2 0D 00 0D 02 80 0D 02 02 05 00 32 92 BD 10 FC 00 00 20 [18:51:26]Write i2c OK [18:51:26]MH_I2C_Read... [18:51:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:51:26]Read from MH i2c: E2 [18:51:26]MH_I2C_Read... [18:51:26]Read from MH i2c: E2 03 00 [18:51:26]MH_I2C_Read... [18:51:26]Read from MH i2c: E2 03 00 0D 02 00 90 00 83 [18:51:26]RAPDU: 90 00 [18:51:26]wFMCommunicate OK [18:51:26]wFMCommunicate request_size=4 [18:51:26]MH_SAM_APDU [18:51:26]CAPDU: 80 0D 03 02 [18:51:26]Write to MH i2c: E2 08 00 0E 02 80 0D 03 02 00 00 00 00 8B [18:51:26]Write i2c OK [18:51:26]MH_I2C_Read... [18:51:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:51:27]Read from MH i2c: E2 [18:51:27]MH_I2C_Read... [18:51:27]Read from MH i2c: E2 0B 00 [18:51:27]MH_I2C_Read... [18:51:27]Read from MH i2c: E2 0B 00 0E 02 00 D0 E9 6E 94 1F 84 A5 0E 90 00 9D [18:51:27]RAPDU: D0 E9 6E 94 1F 84 A5 0E 90 00 [18:51:27]wFMCommunicate OK [18:51:27]SAM_PROTO_SignData done [18:51:27]FM_MakeSignedData done [18:51:27]CreateOFDProtocolMessage [18:51:27]wFMCommunicate request_size=4 [18:51:27]MH_SAM_APDU [18:51:27]CAPDU: 80 11 00 00 [18:51:27]Write to MH i2c: E2 08 00 0F 02 80 11 00 00 00 00 00 00 8B [18:51:27]Write i2c OK [18:51:27]MH_I2C_Read... [18:51:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:51:27]Read from MH i2c: E2 [18:51:27]MH_I2C_Read... [18:51:27]Read from MH i2c: E2 17 00 [18:51:27]MH_I2C_Read... [18:51:27]Read from MH i2c: E2 17 00 0F 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 DE [18:51: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:51:27]wFMCommunicate OK [18:51:27]CreateOFDProtocolMessage done [18:51:27]OFDSenderStorePacket 104201 [18:51:27]StoreOFDPacket docnum=104201 [18:51: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 3D D5 07 01 75 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 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 7C 00 00 00 F4 03 04 00 AE CB 75 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 09 97 01 00 35 04 06 00 03 32 92 BD 10 FC D0 E9 6E 94 1F 84 A5 0E [18:51:27]CheckFolder [18:51:27]dirname=/storage/ofd_packets [18:51:27]CheckFolder done [18:51:27]ProducePacketName [18:51:27]name=ofd_packets/00104201 [18:51:27]NVStorageSaveData ofd_packets/00104201 [18:51:27]File name is /storage/ofd_packets/00104201 [18:51:27]Write 301 bytes [18:51:27]NVStorageSaveData done [18:51:27]OFDSenderStorePacket done [18:51:27]KKMCreateOFDPacket done [18:51:27]NVStorageSaveData kkm_last_timestamp [18:51:27]File name is /storage/kkm_last_timestamp [18:51:27]Write 4 bytes [18:51:27]NVStorageSaveData done [18:51:27]ExternCall_PrintAddStr [18:51:27]wPrintStart [18:51:27]Write to MH i2c: 01 00 00 10 02 12 [18:51:27]Write i2c OK [18:51:27]MH_I2C_Read... [18:51:27]Read from MH i2c: 01 [18:51:27]MH_I2C_Read... [18:51:27]Read from MH i2c: 01 07 00 [18:51:27]MH_I2C_Read... [18:51:27]Read from MH i2c: 01 07 00 10 02 00 00 00 00 00 FF 0F 27 [18:51:27]RasterBufferAndPrint [18:51:27]line Счет N : (1)673669 [18:51:27]line ИНН: 02508201610067 [18:51:27]line Контрольно-Кассовый Чек [18:51:27]line ПРОДАЖА [18:51:27]line ТРК (МРК, ГНК) : 42 [18:51:27]line Товар: 2710124130 [18:51:27]line Аи-92-К-5 [18:51:27]line 15.070 * 66.40 [18:51:27]line = 1000.65 [18:51:27]line НДС 12% НСП 1% [18:51:27]line > о реализуемом товаре [18:51:27]line ИТОГО: 1000.65 [18:51:27]line НСП 1% : 8.85 [18:51:27]line НДС 12% : 106.26 [18:51:27]line Наличными: 0.00 [18:51:27]line Безнал.: 1000.65 [18:51:27]line Место: АЗС № 120 "Партнер Нефть" [18:51:27]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [18:51:27]line СНО: Общий режим [18:51:27]line Чек 124 21.06.2024 18:51 [18:51:27]line Смена: 355 ФФД: 1.0 [18:51:27]line ЗНМ: 0300000164 [18:51:27]line РНМ: 0000000000092785 [18:51:27]line Версия ККМ: 001 [18:51:27]line Платежная система: Бакай Банк [18:51:27]line ФМ: 0000000000875093 [18:51:27]line ФД: 104201 [18:51:27]line ФПД: 3515745112316 [18:51:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T185126&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104201&fm=3515745112316&tin=02508201610067®Number=0000000000092785&sum=100065 [18:51:27]OFD Sender: Processing packet 104201 [packets to send 17, broken 16] [18:51:27]ProducePacketName [18:51:27]name=ofd_packets/00104201 [18:51:27]OFD Sender: To server: pG, [18:51:27]CommunicateWithHost lk.salyk.kg:30040 [18:51:27]ConnectInit lk.salyk.kg [18:51:27]written 0, free lines is 4095 [18:51:27]Connected sock=10 [18:51: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 3D D5 07 01 75 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 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 7C 00 00 00 F4 03 04 00 AE CB 75 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 09 97 01 00 35 04 06 00 03 32 92 BD 10 FC D0 E9 6E 94 1F 84 A5 0E [18:51: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 66 00 47 00 0A 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 09 97 01 00 F4 03 04 00 2F 72 75 66 B6 04 01 00 00 57 D0 4E C7 FE F2 4F E5 [18:51:27]CommunicateWithHost err = 0 [18:51:27]CheckOFDResponse [18:51:27]1017 (14) - 77093643461234 [18:51:27]1041 (16) - 0000000000875093 [18:51:27]1040 (4) - 104201 [18:51:27]1012 (4) - 21.06.2024 12:29 [18:51:27]1206 (1) - 0 [18:51:27]OFD Sender: Remove packet 104201 [18:51:27]ProducePacketName [18:51:27]name=ofd_packets/00104201 [18:51:27]NVStorageDeleteData [18:51:27]Write to MH i2c: 01 00 00 3A 02 3C [18:51:27]Write i2c OK [18:51:27]MH_I2C_Read... [18:51:27]Read from MH i2c: 01 [18:51:27]MH_I2C_Read... [18:51:27]Read from MH i2c: 01 07 00 [18:51:27]MH_I2C_Read... [18:51:27]Read from MH i2c: 01 07 00 3A 02 00 00 00 00 00 F6 0C 45 [18:51:27]RasterBufferAndPrint [18:51:27]line [18:51:27]line [18:51:27]line [18:51:27]line [18:51:27]line [18:51:27]written 0, free lines is 3325 [18:51:27]MH_Cut [18:51:27]Write to MH i2c: D1 01 00 41 02 01 15 [18:51:27]Write i2c OK [18:51:27]MH_I2C_Read... [18:51:27]Read from MH i2c: D1 [18:51:27]MH_I2C_Read... [18:51:27]Read from MH i2c: D1 01 00 [18:51:27]MH_I2C_Read... [18:51:27]Read from MH i2c: D1 01 00 41 02 00 14 [18:51:27]Write to MH i2c: 01 00 00 42 02 44 [18:51:27]Write i2c OK [18:51:27]MH_I2C_Read... [18:51:28]OFD Sender: No OFD packet to send [18:51:28]*** Cut start [18:51:28]*** Partial cut [18:51:28]*** CUTSNS_PIN = 1 [18:51:28]*** CUTSNS_PIN = 0 [18:51:28]*** Brake cut motor [18:51:29]Read from MH i2c: 01 [18:51:29]MH_I2C_Read... [18:51:29]*** Stop cut motor [18:51:29]*** Cut end [18:51:29]Read from MH i2c: 01 07 00 [18:51:29]MH_I2C_Read... [18:51:29]Read from MH i2c: 01 07 00 42 02 00 00 00 00 00 FF 0F 59 [18:51:29]process_action close_receipt done [18:51:29]requested_data is exist [18:51:29]produce_requested_data [18:51:29]requested_item fm.sn is exist - process it [18:51:29]wFMCommunicate request_size=4 [18:51:29]MH_SAM_APDU [18:51:29]CAPDU: 80 11 00 00 [18:51:29]Write to MH i2c: E2 08 00 43 02 80 11 00 00 00 00 00 00 BF [18:51:29]Write i2c OK [18:51:29]MH_I2C_Read... [18:51:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:51:29]Read from MH i2c: E2 [18:51:29]MH_I2C_Read... [18:51:29]Read from MH i2c: E2 17 00 [18:51:29]MH_I2C_Read... [18:51:29]Read from MH i2c: E2 17 00 43 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 12 [18:51: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:51:29]wFMCommunicate OK [18:51:29]requested_item fd.num is exist - process it [18:51:29]SAM_PROTO_GetFieldsCounters [18:51:29]wFMCommunicate request_size=4 [18:51:29]MH_SAM_APDU [18:51:29]CAPDU: 80 13 00 00 [18:51:29]Write to MH i2c: E2 08 00 44 02 80 13 00 00 00 00 00 00 C2 [18:51:29]Write i2c OK [18:51:29]MH_I2C_Read... [18:51:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:51:29]Read from MH i2c: E2 [18:51:29]MH_I2C_Read... [18:51:29]Read from MH i2c: E2 62 00 [18:51:29]MH_I2C_Read... [18:51:29]Read from MH i2c: E2 62 00 44 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 09 97 01 00 0E 04 04 00 63 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 62 [18:51: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 09 97 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 7C 00 00 00 5E 04 04 00 7C 00 00 00 57 04 04 00 7D 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:51:29]wFMCommunicate OK [18:51:29]SAM_PROTO_GetFieldsCounters done [18:51:29]requested_item shift.num is exist - process it [18:51:29]requested_item shift.opened is exist - process it [18:51:29]req_shift_opened [18:51:29]FM_GetShiftState [18:51:29]SAM_PROTO_GetShiftState [18:51:29]wFMCommunicate request_size=4 [18:51:29]MH_SAM_APDU [18:51:29]CAPDU: 80 13 01 00 [18:51:29]Write to MH i2c: E2 08 00 45 02 80 13 01 00 00 00 00 00 C4 [18:51:29]Write i2c OK [18:51:29]MH_I2C_Read... [18:51:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:51:29]Read from MH i2c: E2 [18:51:29]MH_I2C_Read... [18:51:29]Read from MH i2c: E2 0E 00 [18:51:29]MH_I2C_Read... [18:51:29]Read from MH i2c: E2 0E 00 45 02 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 D7 [18:51:29]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [18:51:29]wFMCommunicate OK [18:51:29]SAM_PROTO_GetShiftState done [18:51:29]FM_GetShiftState done [18:51:29]req_shift_opened done [18:51:29]requested_item shift.open_date is exist - process it [18:51:29]req_shift_open_date [18:51:29]req_shift_open_date done [18:51:29]produce_requested_data done [18:51:29]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104201,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [18:51:29]process_action_free close_receipt [18:51:29]json_value_free [18:51:29]json_value_free done [18:51:29]process_json_proto returns [18:51:29]Send response to host [18:51:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104201,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [18:51:29]free response buf [18:51:29]execute_script done [18:51:29]execute_script returns [18:51:29]free content buf [18:51:29]Sock 7.Close socket [18:51:29]Sock 7.Thread stoped [18:51:33]OFD Sender: No OFD packet to send [18:51:38]OFD Sender: No OFD packet to send [18:51:43]OFD Sender: No OFD packet to send [18:51:48]OFD Sender: No OFD packet to send [18:51:53]OFD Sender: No OFD packet to send [18:51:58]OFD Sender: No OFD packet to send [18:52:03]OFD Sender: No OFD packet to send [18:52:08]OFD Sender: No OFD packet to send [18:52:13]OFD Sender: No OFD packet to send [18:52:18]OFD Sender: No OFD packet to send [18:52:23]OFD Sender: No OFD packet to send [18:52:28]OFD Sender: No OFD packet to send [18:52:33]OFD Sender: No OFD packet to send [18:52:38]OFD Sender: No OFD packet to send [18:52:43]OFD Sender: No OFD packet to send [18:52:48]OFD Sender: No OFD packet to send [18:52:53]OFD Sender: No OFD packet to send [18:52:58]OFD Sender: No OFD packet to send [18:53:03]OFD Sender: No OFD packet to send [18:53:08]OFD Sender: No OFD packet to send [18:53:13]OFD Sender: No OFD packet to send [18:53:18]OFD Sender: No OFD packet to send [18:53:23]OFD Sender: No OFD packet to send [18:53:28]OFD Sender: No OFD packet to send [18:53:33]OFD Sender: No OFD packet to send [18:53:38]OFD Sender: No OFD packet to send [18:53:43]OFD Sender: No OFD packet to send [18:53:48]OFD Sender: No OFD packet to send [18:53:53]OFD Sender: No OFD packet to send [18:53:58]OFD Sender: No OFD packet to send [18:54:03]OFD Sender: No OFD packet to send [18:54:08]OFD Sender: No OFD packet to send [18:54:13]OFD Sender: No OFD packet to send [18:54:18]OFD Sender: No OFD packet to send [18:54:23]OFD Sender: No OFD packet to send [18:54:28]OFD Sender: No OFD packet to send [18:54:33]OFD Sender: No OFD packet to send [18:54:38]OFD Sender: No OFD packet to send [18:54:43]OFD Sender: No OFD packet to send [18:54:48]OFD Sender: No OFD packet to send [18:54:53]OFD Sender: No OFD packet to send [18:54:58]OFD Sender: No OFD packet to send [18:55:03]OFD Sender: No OFD packet to send [18:55:08]OFD Sender: No OFD packet to send [18:55:13]OFD Sender: No OFD packet to send [18:55:18]OFD Sender: No OFD packet to send [18:55:23]OFD Sender: No OFD packet to send [18:55:28]OFD Sender: No OFD packet to send [18:55:33]OFD Sender: No OFD packet to send [18:55:38]OFD Sender: No OFD packet to send [18:55:43]OFD Sender: No OFD packet to send [18:55:48]OFD Sender: No OFD packet to send [18:55:53]OFD Sender: No OFD packet to send [18:55:53]accept exits with 9 [18:55:53]New connection [18:55:53]New thread 3067616612 created [18:55:53]Thread 3067473252 joined [18:55:53]Waiting for new connection... [18:55:53] Sock 9.Parse request [18:55:53]Sock 9.Check first char [18:55:53]Sock 9.First char is OK [18:55:53]request: POST /json_proto HTTP/1.0 [18:55:53]Method: POST [18:55:53]URL: /json_proto [18:55:53]Method is POST - this is cgi request [18:55:53]url: /json_proto [18:55:53]query_string will be loaded in cgi processing [18:55:53]execute_cgi json_proto POST (null) [18:55:53]execute_cgi path=json_proto method=POST [18:55:53]POST find Content-Length [18:55:53]Host: 172.17.38.133:8080 [18:55:53]Content-Length: 819 [18:55:53]Content-Type: application/json [18:55:53] [18:55:53]POST finish read [18:55:53]Found Content-Length = 819 [18:55:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673670", "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" : 31.000, "sum" : 2058.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 2058.40 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:55:53]execute_script... [18:55: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)673670", "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" : 31.000, "sum" : 2058.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 2058.40 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:55:53]POST & json_proto [18:55:53]process_json_proto [18:55:53]json parsed OK: [18:55:53]protocol is kg_v1.0 [18:55:53]action value=close_receipt [18:55:53]process_action close_receipt [18:55:53]cmd_close_receipt [18:55:53]MH_GetDate [18:55:53]Write to MH i2c: F0 00 00 46 02 37 [18:55:53]Write i2c OK [18:55:53]MH_I2C_Read... [18:55:53]Read from MH i2c: F0 [18:55:53]MH_I2C_Read... [18:55:53]Read from MH i2c: F0 09 00 [18:55:53]MH_I2C_Read... [18:55:53]Read from MH i2c: F0 09 00 46 02 00 BA CC 75 66 BD 8F 7C 64 CD [18:55:53]GetLastDocTimeStamp 1718995886 [18:55:53]current date 1718996154 [18:55:53]FM_GetShiftState [18:55:53]SAM_PROTO_GetShiftState [18:55:53]wFMCommunicate request_size=4 [18:55:53]MH_SAM_APDU [18:55:53]CAPDU: 80 13 01 00 [18:55:53]Write to MH i2c: E2 08 00 47 02 80 13 01 00 00 00 00 00 C6 [18:55:53]Write i2c OK [18:55:53]MH_I2C_Read... [18:55:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:55:53]Read from MH i2c: E2 [18:55:53]MH_I2C_Read... [18:55:53]Read from MH i2c: E2 0E 00 [18:55:53]MH_I2C_Read... [18:55:53]Read from MH i2c: E2 0E 00 47 02 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 D9 [18:55:53]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [18:55:53]wFMCommunicate OK [18:55:53]SAM_PROTO_GetShiftState done [18:55:53]FM_GetShiftState done [18:55:53]opened in 1718929509 [18:55:53]opened+sec_in_day 1719015909 [18:55:53]quantity*price = 205840 [18:55:53]sum+1 = 205841 [18:55:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2058.40 НСП 1% : 18.22 НДС 12% : 218.59 Наличными: 0.00 Безнал.: 2058.40 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 125 21.06.2024 18:55 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875093 ФД: 104202 ФПД: 128032542488768 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T185554&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104202&fm=128032542488768&tin=02508201610067®Number=0000000000092785&sum=205840 [18:55:54]StoreToDocumentArchive [18:55:54]shift 355 fd 104202 [18:55:54]save to /storage/0355/doc_00104202 [18:55:54]save last doc name /storage/0355/doc_00104202 to /storage/kkm_last_doc_name [18:55:54]save OK [18:55:54]Clear old archive folders... [18:55:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:55:54]tlvbuf is 006BEE00 [18:55:54]SAM_PROTO_ClearQueue [18:55:54]wFMCommunicate request_size=4 [18:55:54]MH_SAM_APDU [18:55:54]CAPDU: 80 09 00 00 [18:55:54]Write to MH i2c: E2 08 00 54 02 80 09 00 00 00 00 00 00 C8 [18:55:54]Write i2c OK [18:55:54]MH_I2C_Read... [18:55:54]Read from MH i2c: E2 [18:55:54]MH_I2C_Read... [18:55:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:55:54]Read from MH i2c: E2 03 00 [18:55:54]MH_I2C_Read... [18:55:54]Read from MH i2c: E2 03 00 54 02 00 90 00 CA [18:55:54]RAPDU: 90 00 [18:55:54]wFMCommunicate OK [18:55:54]SAM_PROTO_ClearQueue done [18:55:54]KKMCreateOFDPacket [18:55:54]OFDProtocolAddRootSTLVToBuf [18:55:54]FM_MakeSignedData [18:55:54]FM_MakeSignedData [18:55:54]SAM_PROTO_SignData [18:55:54]wFMCommunicate request_size=4 [18:55:54]MH_SAM_APDU [18:55:54]CAPDU: 80 0D 01 02 [18:55:54]Write to MH i2c: E2 08 00 55 02 80 0D 01 02 00 00 00 00 D0 [18:55:54]Write i2c OK [18:55:54]MH_I2C_Read... [18:55:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:55:54]Read from MH i2c: E2 [18:55:54]MH_I2C_Read... [18:55:54]Read from MH i2c: E2 03 00 [18:55:54]MH_I2C_Read... [18:55:54]Read from MH i2c: E2 03 00 55 02 00 90 00 CB [18:55:54]RAPDU: 90 00 [18:55:54]wFMCommunicate OK [18:55:54]wFMCommunicate request_size=255 [18:55:54]MH_SAM_APDU [18:55: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 18 79 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 10 24 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 24 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1E 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 55 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 24 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 BA CC 75 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 0A 97 01 00 35 04 06 00 74 [18:55:54]Write to MH i2c: E2 02 01 56 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 18 79 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 10 24 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 24 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1E 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 55 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 24 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 BA CC 75 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 0A 97 01 00 35 04 06 00 74 00 00 54 [18:55:54]Write i2c OK [18:55:54]MH_I2C_Read... [18:55:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:55:55]Read from MH i2c: E2 [18:55:55]MH_I2C_Read... [18:55:55]Read from MH i2c: E2 03 00 [18:55:55]MH_I2C_Read... [18:55:55]Read from MH i2c: E2 03 00 56 02 00 90 00 CC [18:55:55]RAPDU: 90 00 [18:55:55]wFMCommunicate OK [18:55:55]wFMCommunicate request_size=10 [18:55:55]MH_SAM_APDU [18:55:55]CAPDU: 80 0D 02 02 05 71 E6 36 F8 C0 [18:55:55]Write to MH i2c: E2 0D 00 57 02 80 0D 02 02 05 00 71 E6 36 F8 C0 00 00 22 [18:55:55]Write i2c OK [18:55:55]MH_I2C_Read... [18:55:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:55:55]Read from MH i2c: E2 [18:55:55]MH_I2C_Read... [18:55:55]Read from MH i2c: E2 03 00 [18:55:55]MH_I2C_Read... [18:55:55]Read from MH i2c: E2 03 00 57 02 00 90 00 CD [18:55:55]RAPDU: 90 00 [18:55:55]wFMCommunicate OK [18:55:55]wFMCommunicate request_size=4 [18:55:55]MH_SAM_APDU [18:55:55]CAPDU: 80 0D 03 02 [18:55:55]Write to MH i2c: E2 08 00 58 02 80 0D 03 02 00 00 00 00 D5 [18:55:55]Write i2c OK [18:55:55]MH_I2C_Read... [18:55:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:55:55]Read from MH i2c: E2 [18:55:55]MH_I2C_Read... [18:55:55]Read from MH i2c: E2 0B 00 [18:55:55]MH_I2C_Read... [18:55:55]Read from MH i2c: E2 0B 00 58 02 00 B9 5E C5 16 EC 3B CB F6 90 00 B0 [18:55:55]RAPDU: B9 5E C5 16 EC 3B CB F6 90 00 [18:55:55]wFMCommunicate OK [18:55:55]SAM_PROTO_SignData done [18:55:55]FM_MakeSignedData done [18:55:55]CreateOFDProtocolMessage [18:55:55]wFMCommunicate request_size=4 [18:55:55]MH_SAM_APDU [18:55:55]CAPDU: 80 11 00 00 [18:55:55]Write to MH i2c: E2 08 00 59 02 80 11 00 00 00 00 00 00 D5 [18:55:55]Write i2c OK [18:55:55]MH_I2C_Read... [18:55:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:55:55]Read from MH i2c: E2 [18:55:55]MH_I2C_Read... [18:55:55]Read from MH i2c: E2 17 00 [18:55:55]MH_I2C_Read... [18:55:55]Read from MH i2c: E2 17 00 59 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 28 [18:55:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [18:55:55]wFMCommunicate OK [18:55:55]CreateOFDProtocolMessage done [18:55:55]OFDSenderStorePacket 104202 [18:55:55]StoreOFDPacket docnum=104202 [18:55: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 FB 4F 07 01 BF 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 18 79 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 10 24 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 24 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1E 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 55 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 24 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 BA CC 75 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 0A 97 01 00 35 04 06 00 74 71 E6 36 F8 C0 B9 5E C5 16 EC 3B CB F6 [18:55:55]CheckFolder [18:55:55]dirname=/storage/ofd_packets [18:55:55]CheckFolder done [18:55:55]ProducePacketName [18:55:55]name=ofd_packets/00104202 [18:55:55]NVStorageSaveData ofd_packets/00104202 [18:55:55]File name is /storage/ofd_packets/00104202 [18:55:55]Write 301 bytes [18:55:55]NVStorageSaveData done [18:55:55]OFDSenderStorePacket done [18:55:55]KKMCreateOFDPacket done [18:55:55]NVStorageSaveData kkm_last_timestamp [18:55:55]File name is /storage/kkm_last_timestamp [18:55:55]Write 4 bytes [18:55:55]NVStorageSaveData done [18:55:55]ExternCall_PrintAddStr [18:55:55]wPrintStart [18:55:55]Write to MH i2c: 01 00 00 5A 02 5C [18:55:55]Write i2c OK [18:55:55]MH_I2C_Read... [18:55:55]Read from MH i2c: 01 [18:55:55]MH_I2C_Read... [18:55:55]Read from MH i2c: 01 07 00 [18:55:55]MH_I2C_Read... [18:55:55]Read from MH i2c: 01 07 00 5A 02 00 00 00 00 00 FF 0F 71 [18:55:55]RasterBufferAndPrint [18:55:55]line Счет N : (1)673670 [18:55:55]line ИНН: 02508201610067 [18:55:55]line Контрольно-Кассовый Чек [18:55:55]line ПРОДАЖА [18:55:55]line ТРК (МРК, ГНК) : 32 [18:55:55]line Товар: 2710124130 [18:55:55]line Аи-92-К-5 [18:55:55]line 31.000 * 66.40 [18:55:55]line = 2058.40 [18:55:55]line НДС 12% НСП 1% [18:55:55]line > о реализуемом товаре [18:55:55]line ИТОГО: 2058.40 [18:55:55]line НСП 1% : 18.22 [18:55:55]line НДС 12% : 218.59 [18:55:55]line Наличными: 0.00 [18:55:55]line Безнал.: 2058.40 [18:55:55]line Место: АЗС № 120 "Партнер Нефть" [18:55:55]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [18:55:55]line СНО: Общий режим [18:55:55]line Чек 125 21.06.2024 18:55 [18:55:55]line Смена: 355 ФФД: 1.0 [18:55:55]line ЗНМ: 0300000164 [18:55:55]line РНМ: 0000000000092785 [18:55:55]line Версия ККМ: 001 [18:55:55]line Платежная система: Бакай Банк [18:55:55]line ФМ: 0000000000875093 [18:55:55]line ФД: 104202 [18:55:55]line ФПД: 128032542488768 [18:55:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T185554&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104202&fm=128032542488768&tin=02508201610067®Number=0000000000092785&sum=205840 [18:55:55]OFD Sender: Processing packet 104202 [packets to send 17, broken 16] [18:55:55]ProducePacketName [18:55:55]name=ofd_packets/00104202 [18:55:55]OFD Sender: To server: pG, [18:55:55]CommunicateWithHost lk.salyk.kg:30040 [18:55:55]ConnectInit lk.salyk.kg [18:55:55]written 0, free lines is 4095 [18:55:55]Connected sock=11 [18:55: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 FB 4F 07 01 BF 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 18 79 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 10 24 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 24 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1E 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 55 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 24 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 BA CC 75 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 0A 97 01 00 35 04 06 00 74 71 E6 36 F8 C0 B9 5E C5 16 EC 3B CB F6 [18:55:56]Write to MH i2c: 01 00 00 84 02 86 [18:55:56]Write i2c OK [18:55:56]MH_I2C_Read... [18:55:56]Read from MH i2c: 01 [18:55:56]MH_I2C_Read... [18:55:56]Read from MH i2c: 01 07 00 [18:55:56]MH_I2C_Read... [18:55:56]Read from MH i2c: 01 07 00 84 02 00 00 00 00 00 F2 0C 8B [18:55:56]RasterBufferAndPrint [18:55:56]line [18:55:56]line [18:55:56]line [18:55:56]line [18:55:56]line [18:55:56]written 0, free lines is 3320 [18:55:56]MH_Cut [18:55:56]Write to MH i2c: D1 01 00 8B 02 01 5F [18:55:56]Write i2c OK [18:55:56]MH_I2C_Read... [18:55:56]Read from MH i2c: D1 [18:55:56]MH_I2C_Read... [18:55:56]Read from MH i2c: D1 01 00 [18:55:56]MH_I2C_Read... [18:55:56]Read from MH i2c: D1 01 00 8B 02 00 5E [18:55:56]Write to MH i2c: 01 00 00 8C 02 8E [18:55:56]Write i2c OK [18:55:56]MH_I2C_Read... [18:55: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 26 C7 47 00 70 2B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 0A 97 01 00 F4 03 04 00 3C 73 75 66 B6 04 01 00 00 FB A1 3B F6 F5 35 0B 64 [18:55:56]CommunicateWithHost err = 0 [18:55:56]CheckOFDResponse [18:55:56]1017 (14) - 77093643461234 [18:55:56]1041 (16) - 0000000000875093 [18:55:56]1040 (4) - 104202 [18:55:56]1012 (4) - 21.06.2024 12:34 [18:55:56]1206 (1) - 0 [18:55:56]OFD Sender: Remove packet 104202 [18:55:56]ProducePacketName [18:55:56]name=ofd_packets/00104202 [18:55:56]NVStorageDeleteData [18:55:56]OFD Sender: No OFD packet to send [18:55:56]*** Cut start [18:55:56]*** Partial cut [18:55:56]*** CUTSNS_PIN = 1 [18:55:56]*** CUTSNS_PIN = 0 [18:55:57]*** Brake cut motor [18:55:57]Read from MH i2c: 01 [18:55:57]MH_I2C_Read... [18:55:57]*** Stop cut motor [18:55:57]*** Cut end [18:55:57]Read from MH i2c: 01 07 00 [18:55:57]MH_I2C_Read... [18:55:57]Read from MH i2c: 01 07 00 8C 02 00 00 00 00 00 FF 0F A3 [18:55:57]process_action close_receipt done [18:55:57]requested_data is exist [18:55:57]produce_requested_data [18:55:57]requested_item fm.sn is exist - process it [18:55:57]wFMCommunicate request_size=4 [18:55:57]MH_SAM_APDU [18:55:57]CAPDU: 80 11 00 00 [18:55:57]Write to MH i2c: E2 08 00 8D 02 80 11 00 00 00 00 00 00 09 [18:55:57]Write i2c OK [18:55:57]MH_I2C_Read... [18:55:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:55:57]Read from MH i2c: E2 [18:55:57]MH_I2C_Read... [18:55:57]Read from MH i2c: E2 17 00 [18:55:57]MH_I2C_Read... [18:55:57]Read from MH i2c: E2 17 00 8D 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 5C [18:55:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [18:55:57]wFMCommunicate OK [18:55:57]requested_item fd.num is exist - process it [18:55:57]SAM_PROTO_GetFieldsCounters [18:55:57]wFMCommunicate request_size=4 [18:55:57]MH_SAM_APDU [18:55:57]CAPDU: 80 13 00 00 [18:55:57]Write to MH i2c: E2 08 00 8E 02 80 13 00 00 00 00 00 00 0C [18:55:57]Write i2c OK [18:55:57]MH_I2C_Read... [18:55:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:55:57]Read from MH i2c: E2 [18:55:57]MH_I2C_Read... [18:55:57]Read from MH i2c: E2 62 00 [18:55:57]MH_I2C_Read... [18:55:57]Read from MH i2c: E2 62 00 8E 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 0A 97 01 00 0E 04 04 00 63 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 B0 [18:55: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 0A 97 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 7D 00 00 00 5E 04 04 00 7D 00 00 00 57 04 04 00 7E 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:55:57]wFMCommunicate OK [18:55:57]SAM_PROTO_GetFieldsCounters done [18:55:57]requested_item shift.num is exist - process it [18:55:57]requested_item shift.opened is exist - process it [18:55:57]req_shift_opened [18:55:57]FM_GetShiftState [18:55:57]SAM_PROTO_GetShiftState [18:55:57]wFMCommunicate request_size=4 [18:55:57]MH_SAM_APDU [18:55:57]CAPDU: 80 13 01 00 [18:55:57]Write to MH i2c: E2 08 00 8F 02 80 13 01 00 00 00 00 00 0E [18:55:57]Write i2c OK [18:55:57]MH_I2C_Read... [18:55:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:55:57]Read from MH i2c: E2 [18:55:57]MH_I2C_Read... [18:55:57]Read from MH i2c: E2 0E 00 [18:55:57]MH_I2C_Read... [18:55:57]Read from MH i2c: E2 0E 00 8F 02 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 21 [18:55:57]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [18:55:57]wFMCommunicate OK [18:55:57]SAM_PROTO_GetShiftState done [18:55:57]FM_GetShiftState done [18:55:57]req_shift_opened done [18:55:57]requested_item shift.open_date is exist - process it [18:55:57]req_shift_open_date [18:55:57]req_shift_open_date done [18:55:57]produce_requested_data done [18:55:57]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104202,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [18:55:57]process_action_free close_receipt [18:55:57]json_value_free [18:55:57]json_value_free done [18:55:57]process_json_proto returns [18:55:57]Send response to host [18:55:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104202,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [18:55:57]free response buf [18:55:57]execute_script done [18:55:57]execute_script returns [18:55:57]free content buf [18:55:57]Sock 9.Close socket [18:55:57]Sock 9.Thread stoped [18:56:01]OFD Sender: No OFD packet to send [18:56:06]OFD Sender: No OFD packet to send [18:56:11]OFD Sender: No OFD packet to send [18:56:16]OFD Sender: No OFD packet to send [18:56:21]OFD Sender: No OFD packet to send [18:56:26]OFD Sender: No OFD packet to send [18:56:31]OFD Sender: No OFD packet to send [18:56:36]OFD Sender: No OFD packet to send 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B2 B0 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 64 [18:58:50]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B2 B0 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 [18:58:50]wFMCommunicate OK [18:58:50]wFMCommunicate request_size=4 [18:58:50]MH_SAM_APDU [18:58:50]CAPDU: 80 17 00 00 [18:58:50]Write to MH i2c: E2 08 00 95 02 80 17 00 00 00 00 00 00 17 [18:58:50]Write i2c OK [18:58:50]MH_I2C_Read... [18:58:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:58:50]Read from MH i2c: E2 [18:58:50]MH_I2C_Read... [18:58:50]Read from MH i2c: E2 FD 00 [18:58:50]MH_I2C_Read... [18:58:50]Read from MH i2c: E2 FD 00 95 02 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 29 [18:58:50]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [18:58:50]wFMCommunicate OK [18:58:50]wFMCommunicate request_size=4 [18:58:50]MH_SAM_APDU [18:58:50]CAPDU: 80 17 00 00 [18:58:50]Write to MH i2c: E2 08 00 96 02 80 17 00 00 00 00 00 00 18 [18:58:50]Write i2c OK [18:58:50]MH_I2C_Read... [18:58:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:58:50]Read from MH i2c: E2 [18:58:50]MH_I2C_Read... [18:58:50]Read from MH i2c: E2 FD 00 [18:58:50]MH_I2C_Read... [18:58:50]Read from MH i2c: E2 FD 00 96 02 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 A4 [18:58:50]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [18:58:50]wFMCommunicate OK [18:58:50]wFMCommunicate request_size=4 [18:58:50]MH_SAM_APDU [18:58:50]CAPDU: 80 17 00 00 [18:58:50]Write to MH i2c: E2 08 00 97 02 80 17 00 00 00 00 00 00 19 [18:58:50]Write i2c OK [18:58:50]MH_I2C_Read... [18:58:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [18:58:51]Read from MH i2c: E2 [18:58:51]MH_I2C_Read... [18:58:51]Read from MH i2c: E2 E2 00 [18:58:51]MH_I2C_Read... [18:58:51]Read from MH i2c: E2 E2 00 97 02 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 F7 [18:58:51]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [18:58:51]wFMCommunicate OK [18:58:51]SAM_PROTO_GetFMData done [18:58:51]requested_item fm.sale_refund.total is exist - process it [18:58:51]requested_item fm.buy.total is exist - process it [18:58:51]requested_item shift.sale.total is exist - process it [18:58:51]SAM_PROTO_GetShiftData [18:58:51]wFMCommunicate request_size=4 [18:58:51]MH_SAM_APDU [18:58:51]CAPDU: 80 13 02 00 [18:58:51]Write to MH i2c: E2 08 00 98 02 80 13 02 00 00 00 00 00 18 [18:58:51]Write i2c OK [18:58:51]MH_I2C_Read... [18:58:51]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [18:58:51]Read from MH i2c: E2 [18:58:51]MH_I2C_Read... [18:58:51]Read from MH i2c: E2 FD 00 [18:58:51]MH_I2C_Read... [18:58:51]Read from MH i2c: E2 FD 00 98 02 00 BA 04 AA 04 B6 04 6E 04 04 00 7D 00 00 00 69 04 9D 00 6F 04 04 00 7C 00 00 00 B1 04 04 00 D7 99 33 01 70 04 03 00 B8 B5 B4 72 04 03 00 1F E4 7E 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 03 AC 20 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 EF B8 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 A0 86 01 70 04 03 00 A0 86 01 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 82 29 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 D3 [18:58:51]RAPDU: BA 04 AA 04 B6 04 6E 04 04 00 7D 00 00 00 69 04 9D 00 6F 04 04 00 7C 00 00 00 B1 04 04 00 D7 99 33 01 70 04 03 00 B8 B5 B4 72 04 03 00 1F E4 7E 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 03 AC 20 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 EF B8 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 A0 86 01 70 04 03 00 A0 86 01 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 82 29 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [18:58:51]wFMCommunicate OK [18:58:51]wFMCommunicate request_size=4 [18:58:51]MH_SAM_APDU [18:58:51]CAPDU: 80 17 00 00 [18:58:51]Write to MH i2c: E2 08 00 99 02 80 17 00 00 00 00 00 00 1B [18:58:51]Write i2c OK [18:58:51]MH_I2C_Read... [18:58:51]OFD Sender: No OFD packet to send [18:58:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:58:51]Read from MH i2c: E2 [18:58:51]MH_I2C_Read... [18:58:51]Read from MH i2c: E2 FD 00 [18:58:51]MH_I2C_Read... [18:58:51]Read from MH i2c: E2 FD 00 99 02 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 75 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 90 00 3D [18:58:51]RAPDU: EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 75 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 90 00 [18:58:51]wFMCommunicate OK [18:58:51]wFMCommunicate request_size=4 [18:58:51]MH_SAM_APDU [18:58:51]CAPDU: 80 17 00 00 [18:58:51]Write to MH i2c: E2 08 00 9A 02 80 17 00 00 00 00 00 00 1C [18:58:51]Write i2c OK [18:58:51]MH_I2C_Read... [18:58:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:58:52]Read from MH i2c: E2 [18:58:52]MH_I2C_Read... [18:58:52]Read from MH i2c: E2 FD 00 [18:58:52]MH_I2C_Read... [18:58:52]Read from MH i2c: E2 FD 00 9A 02 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 90 00 48 [18:58:52]RAPDU: 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 90 00 [18:58:52]wFMCommunicate OK [18:58:52]wFMCommunicate request_size=4 [18:58:52]MH_SAM_APDU [18:58:52]CAPDU: 80 17 00 00 [18:58:52]Write to MH i2c: E2 08 00 9B 02 80 17 00 00 00 00 00 00 1D [18:58:52]Write i2c OK [18:58:52]MH_I2C_Read... [18:58:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:58:52]Read from MH i2c: E2 [18:58:52]MH_I2C_Read... [18:58:52]Read from MH i2c: E2 FD 00 [18:58:52]MH_I2C_Read... [18:58:52]Read from MH i2c: E2 FD 00 9B 02 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 90 00 95 [18:58:52]RAPDU: 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 90 00 [18:58:52]wFMCommunicate OK [18:58:52]wFMCommunicate request_size=4 [18:58:52]MH_SAM_APDU [18:58:52]CAPDU: 80 17 00 00 [18:58:52]Write to MH i2c: E2 08 00 9C 02 80 17 00 00 00 00 00 00 1E [18:58:52]Write i2c OK [18:58:52]MH_I2C_Read... [18:58:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [18:58:52]Read from MH i2c: E2 [18:58:52]MH_I2C_Read... [18:58:52]Read from MH i2c: E2 D7 00 [18:58:52]MH_I2C_Read... [18:58:52]Read from MH i2c: E2 D7 00 9C 02 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 01 [18:58:52]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [18:58:52]wFMCommunicate OK [18:58:52]SAM_PROTO_GetShiftData done [18:58:52]requested_item shift.sale.total_cash is exist - process it [18:58:52]requested_item shift.sale_refund.total is exist - process it [18:58:52]requested_item shift.sale_refund.total_cash is exist - process it [18:58:52]requested_item shift.buy.total is exist - process it [18:58:52]requested_item shift.buy.total_cash is exist - process it [18:58:52]produce_requested_data done [18:58:52]produce_requested_data return {"fm.sale.total":182638580.84,"fm.sale_refund.total":4049941.00,"fm.buy.total":0.00,"shift.sale.total":201589.35,"shift.sale.total_cash":118430.00,"shift.sale_refund.total":1000.00,"shift.sale_refund.total_cash":1000.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [18:58:52]process_action_free get_value [18:58:52]json_value_free [18:58:52]json_value_free done [18:58:52]process_json_proto returns [18:58:52]Send response to host [18:58:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":182638580.84,"fm.sale_refund.total":4049941.00,"fm.buy.total":0.00,"shift.sale.total":201589.35,"shift.sale.total_cash":118430.00,"shift.sale_refund.total":1000.00,"shift.sale_refund.total_cash":1000.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [18:58:52]free response buf [18:58:52]execute_script done [18:58:52]execute_script returns [18:58:52]free content buf [18:58:52]Sock 9.Close socket [18:58:52]Sock 9.Thread stoped [18:58:53]ConnectInit Can't connect to host [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:20]accept exits with 7 [18:59:20]New connection [18:59:20]New thread 3067473252 created [18:59:20]Thread 3067616612 joined [18:59:20]Waiting for new connection... [18:59:20] Sock 7.Parse request [18:59:20]Sock 7.Check first char [18:59:20]Sock 7.First char is OK [18:59:20]request: POST /json_proto HTTP/1.0 [18:59:20]Method: POST [18:59:20]URL: /json_proto [18:59:20]Method is POST - this is cgi request [18:59:20]url: /json_proto [18:59:20]query_string will be loaded in cgi processing [18:59:20]execute_cgi json_proto POST (null) [18:59:20]execute_cgi path=json_proto method=POST [18:59:20]POST find Content-Length [18:59:20]Host: 172.17.38.133:8080 [18:59:20]Content-Length: 677 [18:59:20]Content-Type: application/json [18:59:20] [18:59:20]POST finish read [18:59:20]Found Content-Length = 677 [18:59:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673671", "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" ] } } [18:59:20]execute_script... [18:59: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)673671", "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" ] } } [18:59:20]POST & json_proto [18:59:20]process_json_proto [18:59:20]json parsed OK: [18:59:20]protocol is kg_v1.0 [18:59:20]action value=close_receipt [18:59:20]process_action close_receipt [18:59:20]cmd_close_receipt [18:59:20]MH_GetDate [18:59:20]Write to MH i2c: F0 00 00 9D 02 8E [18:59:20]Write i2c OK [18:59:20]MH_I2C_Read... [18:59:20]Read from MH i2c: F0 [18:59:20]MH_I2C_Read... [18:59:20]Read from MH i2c: F0 09 00 [18:59:20]MH_I2C_Read... [18:59:20]Read from MH i2c: F0 09 00 9D 02 00 89 CD 75 66 BD 8F 7C 64 F4 [18:59:20]GetLastDocTimeStamp 1718996154 [18:59:20]current date 1718996361 [18:59:20]FM_GetShiftState [18:59:20]SAM_PROTO_GetShiftState [18:59:20]wFMCommunicate request_size=4 [18:59:20]MH_SAM_APDU [18:59:20]CAPDU: 80 13 01 00 [18:59:20]Write to MH i2c: E2 08 00 9E 02 80 13 01 00 00 00 00 00 1D [18:59:20]Write i2c OK [18:59:20]MH_I2C_Read... [18:59:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:59:20]Read from MH i2c: E2 [18:59:20]MH_I2C_Read... [18:59:20]Read from MH i2c: E2 0E 00 [18:59:20]MH_I2C_Read... [18:59:20]Read from MH i2c: E2 0E 00 9E 02 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 30 [18:59:20]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [18:59:20]wFMCommunicate OK [18:59:20]SAM_PROTO_GetShiftState done [18:59:20]FM_GetShiftState done [18:59:20]opened in 1718929509 [18:59:20]opened+sec_in_day 1719015909 [18:59:20]quantity*price = 60025 [18:59:20]sum+1 = 60027 [18:59:20]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 СНО: Общий режим Чек 126 21.06.2024 18:59 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104203 ФПД: 118924442650139 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T185921&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104203&fm=118924442650139&tin=02508201610067®Number=0000000000092785&sum=60000 [18:59:21]StoreToDocumentArchive [18:59:21]shift 355 fd 104203 [18:59:21]save to /storage/0355/doc_00104203 [18:59:21]save last doc name /storage/0355/doc_00104203 to /storage/kkm_last_doc_name [18:59:21]save OK [18:59:21]Clear old archive folders... [18:59:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:59:21]tlvbuf is 00699860 [18:59:21]SAM_PROTO_ClearQueue [18:59:21]wFMCommunicate request_size=4 [18:59:21]MH_SAM_APDU [18:59:21]CAPDU: 80 09 00 00 [18:59:21]Write to MH i2c: E2 08 00 AB 02 80 09 00 00 00 00 00 00 1F [18:59:21]Write i2c OK [18:59:21]MH_I2C_Read... [18:59:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:59:22]Read from MH i2c: E2 [18:59:22]MH_I2C_Read... [18:59:22]Read from MH i2c: E2 03 00 [18:59:22]MH_I2C_Read... [18:59:22]Read from MH i2c: E2 03 00 AB 02 00 90 00 21 [18:59:22]RAPDU: 90 00 [18:59:22]wFMCommunicate OK [18:59:22]SAM_PROTO_ClearQueue done [18:59:22]KKMCreateOFDPacket [18:59:22]OFDProtocolAddRootSTLVToBuf [18:59:22]FM_MakeSignedData [18:59:22]FM_MakeSignedData [18:59:22]SAM_PROTO_SignData [18:59:22]wFMCommunicate request_size=4 [18:59:22]MH_SAM_APDU [18:59:22]CAPDU: 80 0D 01 02 [18:59:22]Write to MH i2c: E2 08 00 AC 02 80 0D 01 02 00 00 00 00 27 [18:59:22]Write i2c OK [18:59:22]MH_I2C_Read... [18:59:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:59:22]Read from MH i2c: E2 [18:59:22]MH_I2C_Read... [18:59:22]Read from MH i2c: E2 03 00 [18:59:22]MH_I2C_Read... [18:59:22]Read from MH i2c: E2 03 00 AC 02 00 90 00 22 [18:59:22]RAPDU: 90 00 [18:59:22]wFMCommunicate OK [18:59:22]wFMCommunicate request_size=255 [18:59:22]MH_SAM_APDU [18:59: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 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 7E 00 00 00 F4 03 04 00 89 CD 75 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 0B 97 01 00 35 04 06 00 6C [18:59:22]Write to MH i2c: E2 02 01 AD 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 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 7E 00 00 00 F4 03 04 00 89 CD 75 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 0B 97 01 00 35 04 06 00 6C 00 00 E0 [18:59:22]Write i2c OK [18:59:22]MH_I2C_Read... [18:59:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:59:22]Read from MH i2c: E2 [18:59:22]MH_I2C_Read... [18:59:22]Read from MH i2c: E2 03 00 [18:59:22]MH_I2C_Read... [18:59:22]Read from MH i2c: E2 03 00 AD 02 00 90 00 23 [18:59:22]RAPDU: 90 00 [18:59:22]wFMCommunicate OK [18:59:22]wFMCommunicate request_size=10 [18:59:22]MH_SAM_APDU [18:59:22]CAPDU: 80 0D 02 02 05 29 41 28 C6 1B [18:59:22]Write to MH i2c: E2 0D 00 AE 02 80 0D 02 02 05 00 29 41 28 C6 1B 00 00 A7 [18:59:22]Write i2c OK [18:59:22]MH_I2C_Read... [18:59:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:59:22]Read from MH i2c: E2 [18:59:22]MH_I2C_Read... [18:59:22]Read from MH i2c: E2 03 00 [18:59:22]MH_I2C_Read... [18:59:22]Read from MH i2c: E2 03 00 AE 02 00 90 00 24 [18:59:22]RAPDU: 90 00 [18:59:22]wFMCommunicate OK [18:59:22]wFMCommunicate request_size=4 [18:59:22]MH_SAM_APDU [18:59:22]CAPDU: 80 0D 03 02 [18:59:22]Write to MH i2c: E2 08 00 AF 02 80 0D 03 02 00 00 00 00 2C [18:59:22]Write i2c OK [18:59:22]MH_I2C_Read... [18:59:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:59:22]Read from MH i2c: E2 [18:59:22]MH_I2C_Read... [18:59:22]Read from MH i2c: E2 0B 00 [18:59:22]MH_I2C_Read... [18:59:22]Read from MH i2c: E2 0B 00 AF 02 00 D4 3F EA CE B4 7B C7 F6 90 00 E4 [18:59:22]RAPDU: D4 3F EA CE B4 7B C7 F6 90 00 [18:59:22]wFMCommunicate OK [18:59:22]SAM_PROTO_SignData done [18:59:22]FM_MakeSignedData done [18:59:22]CreateOFDProtocolMessage [18:59:22]wFMCommunicate request_size=4 [18:59:22]MH_SAM_APDU [18:59:22]CAPDU: 80 11 00 00 [18:59:22]Write to MH i2c: E2 08 00 B0 02 80 11 00 00 00 00 00 00 2C [18:59:22]Write i2c OK [18:59:22]MH_I2C_Read... [18:59:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:59:22]Read from MH i2c: E2 [18:59:22]MH_I2C_Read... [18:59:22]Read from MH i2c: E2 17 00 [18:59:22]MH_I2C_Read... [18:59:22]Read from MH i2c: E2 17 00 B0 02 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:59: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:59:22]wFMCommunicate OK [18:59:22]CreateOFDProtocolMessage done [18:59:22]OFDSenderStorePacket 104203 [18:59:22]StoreOFDPacket docnum=104203 [18:59: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 75 BC 07 01 51 E4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 7E 00 00 00 F4 03 04 00 89 CD 75 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 0B 97 01 00 35 04 06 00 6C 29 41 28 C6 1B D4 3F EA CE B4 7B C7 F6 [18:59:22]CheckFolder [18:59:22]dirname=/storage/ofd_packets [18:59:22]CheckFolder done [18:59:22]ProducePacketName [18:59:22]name=ofd_packets/00104203 [18:59:22]NVStorageSaveData ofd_packets/00104203 [18:59:22]File name is /storage/ofd_packets/00104203 [18:59:22]Write 301 bytes [18:59:22]NVStorageSaveData done [18:59:22]OFDSenderStorePacket done [18:59:22]KKMCreateOFDPacket done [18:59:22]NVStorageSaveData kkm_last_timestamp [18:59:22]File name is /storage/kkm_last_timestamp [18:59:22]Write 4 bytes [18:59:22]NVStorageSaveData done [18:59:22]ExternCall_PrintAddStr [18:59:22]wPrintStart [18:59:22]Write to MH i2c: 01 00 00 B1 02 B3 [18:59:22]Write i2c OK [18:59:22]MH_I2C_Read... [18:59:22]Read from MH i2c: 01 [18:59:22]MH_I2C_Read... [18:59:22]Read from MH i2c: 01 07 00 [18:59:22]MH_I2C_Read... [18:59:22]Read from MH i2c: 01 07 00 B1 02 00 00 00 00 00 FF 0F C8 [18:59:22]RasterBufferAndPrint [18:59:22]line Счет N : (1)673671 [18:59:22]line ИНН: 02508201610067 [18:59:22]line Контрольно-Кассовый Чек [18:59:22]line ПРОДАЖА [18:59:22]line ТРК (МРК, ГНК) : 32 [18:59:22]line Товар: 2710124130 [18:59:22]line Аи-92-К-5 [18:59:22]line 9.040 * 66.40 [18:59:22]line = 600.26 [18:59:22]line НДС 12% НСП 1% [18:59:22]line > о реализуемом товаре [18:59:22]line ОКРУГЛЕНИЕ: -0.26 [18:59:22]line ИТОГО: 600.00 [18:59:22]line Внесено: 600.00 [18:59:22]line СДАЧА: 0.00 [18:59:22]line НСП 1% : 5.31 [18:59:22]line НДС 12% : 63.74 [18:59:22]line Наличными: 600.00 [18:59:22]line Безнал.: 0.00 [18:59:22]line Место: АЗС № 120 "Партнер Нефть" [18:59:22]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [18:59:22]line СНО: Общий режим [18:59:22]line Чек 126 21.06.2024 18:59 [18:59:22]line Смена: 355 ФФД: 1.0 [18:59:22]line ЗНМ: 0300000164 [18:59:22]line РНМ: 0000000000092785 [18:59:22]line Версия ККМ: 001 [18:59:22]line ФМ: 0000000000875093 [18:59:22]line ФД: 104203 [18:59:22]line ФПД: 118924442650139 [18:59:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T185921&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104203&fm=118924442650139&tin=02508201610067®Number=0000000000092785&sum=60000 [18:59:22]OFD Sender: Processing packet 104203 [packets to send 17, broken 16] [18:59:22]ProducePacketName [18:59:22]name=ofd_packets/00104203 [18:59:22]OFD Sender: To server: pG, [18:59:22]CommunicateWithHost lk.salyk.kg:30040 [18:59:22]ConnectInit lk.salyk.kg [18:59:22]written 0, free lines is 4095 [18:59:22]Connected sock=10 [18:59: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 75 BC 07 01 51 E4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 7E 00 00 00 F4 03 04 00 89 CD 75 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 0B 97 01 00 35 04 06 00 6C 29 41 28 C6 1B D4 3F EA CE B4 7B C7 F6 [18:59: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 51 F4 47 00 CF 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 0B 97 01 00 F4 03 04 00 0B 74 75 66 B6 04 01 00 00 B6 8F F8 DF 0D 3E FC EE [18:59:23]CommunicateWithHost err = 0 [18:59:23]CheckOFDResponse [18:59:23]1017 (14) - 77093643461234 [18:59:23]1041 (16) - 0000000000875093 [18:59:23]1040 (4) - 104203 [18:59:23]1012 (4) - 21.06.2024 12:37 [18:59:23]1206 (1) - 0 [18:59:23]OFD Sender: Remove packet 104203 [18:59:23]ProducePacketName [18:59:23]name=ofd_packets/00104203 [18:59:23]NVStorageDeleteData [18:59:23]Write to MH i2c: 01 00 00 DC 02 DE [18:59:23]Write i2c OK [18:59:23]MH_I2C_Read... [18:59:23]Read from MH i2c: 01 [18:59:23]MH_I2C_Read... [18:59:23]Read from MH i2c: 01 07 00 [18:59:23]MH_I2C_Read... [18:59:23]Read from MH i2c: 01 07 00 DC 02 00 00 00 00 00 EB 0C DC [18:59:23]RasterBufferAndPrint [18:59:23]line [18:59:23]line [18:59:23]line [18:59:23]line [18:59:23]line [18:59:23]written 0, free lines is 3313 [18:59:23]MH_Cut [18:59:23]Write to MH i2c: D1 01 00 E3 02 01 B7 [18:59:23]Write i2c OK [18:59:23]MH_I2C_Read... [18:59:23]Read from MH i2c: D1 [18:59:23]MH_I2C_Read... [18:59:23]Read from MH i2c: D1 01 00 [18:59:23]MH_I2C_Read... [18:59:23]Read from MH i2c: D1 01 00 E3 02 00 B6 [18:59:23]Write to MH i2c: 01 00 00 E4 02 E6 [18:59:23]Write i2c OK [18:59:23]MH_I2C_Read... [18:59:23]OFD Sender: No OFD packet to send [18:59:24]*** Cut start [18:59:24]*** Partial cut [18:59:24]*** CUTSNS_PIN = 1 [18:59:24]*** CUTSNS_PIN = 0 [18:59:24]*** Brake cut motor [18:59:24]Read from MH i2c: 01 [18:59:24]MH_I2C_Read... [18:59:24]*** Stop cut motor [18:59:24]*** Cut end [18:59:24]Read from MH i2c: 01 07 00 [18:59:24]MH_I2C_Read... [18:59:24]Read from MH i2c: 01 07 00 E4 02 00 00 00 00 00 FF 0F FB [18:59:24]process_action close_receipt done [18:59:24]requested_data is exist [18:59:24]produce_requested_data [18:59:24]requested_item fm.sn is exist - process it [18:59:24]wFMCommunicate request_size=4 [18:59:24]MH_SAM_APDU [18:59:24]CAPDU: 80 11 00 00 [18:59:24]Write to MH i2c: E2 08 00 E5 02 80 11 00 00 00 00 00 00 61 [18:59:24]Write i2c OK [18:59:24]MH_I2C_Read... [18:59:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:59:24]Read from MH i2c: E2 [18:59:24]MH_I2C_Read... [18:59:24]Read from MH i2c: E2 17 00 [18:59:24]MH_I2C_Read... [18:59:24]Read from MH i2c: E2 17 00 E5 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 B4 [18:59: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:59:24]wFMCommunicate OK [18:59:24]requested_item fd.num is exist - process it [18:59:24]SAM_PROTO_GetFieldsCounters [18:59:24]wFMCommunicate request_size=4 [18:59:24]MH_SAM_APDU [18:59:24]CAPDU: 80 13 00 00 [18:59:24]Write to MH i2c: E2 08 00 E6 02 80 13 00 00 00 00 00 00 64 [18:59:24]Write i2c OK [18:59:24]MH_I2C_Read... [18:59:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:59:24]Read from MH i2c: E2 [18:59:24]MH_I2C_Read... [18:59:24]Read from MH i2c: E2 62 00 [18:59:24]MH_I2C_Read... [18:59:24]Read from MH i2c: E2 62 00 E6 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 0B 97 01 00 0E 04 04 00 63 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 0C [18:59: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 0B 97 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 7F 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:59:24]wFMCommunicate OK [18:59:24]SAM_PROTO_GetFieldsCounters done [18:59:24]requested_item shift.num is exist - process it [18:59:24]requested_item shift.opened is exist - process it [18:59:24]req_shift_opened [18:59:24]FM_GetShiftState [18:59:24]SAM_PROTO_GetShiftState [18:59:24]wFMCommunicate request_size=4 [18:59:24]MH_SAM_APDU [18:59:24]CAPDU: 80 13 01 00 [18:59:24]Write to MH i2c: E2 08 00 E7 02 80 13 01 00 00 00 00 00 66 [18:59:24]Write i2c OK [18:59:24]MH_I2C_Read... [18:59:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:59:24]Read from MH i2c: E2 [18:59:24]MH_I2C_Read... [18:59:24]Read from MH i2c: E2 0E 00 [18:59:24]MH_I2C_Read... [18:59:24]Read from MH i2c: E2 0E 00 E7 02 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 79 [18:59:24]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [18:59:24]wFMCommunicate OK [18:59:24]SAM_PROTO_GetShiftState done [18:59:24]FM_GetShiftState done [18:59:24]req_shift_opened done [18:59:24]requested_item shift.open_date is exist - process it [18:59:24]req_shift_open_date [18:59:24]req_shift_open_date done [18:59:24]produce_requested_data done [18:59:24]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104203,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [18:59:24]process_action_free close_receipt [18:59:24]json_value_free [18:59:24]json_value_free done [18:59:24]process_json_proto returns [18:59:24]Send response to host [18:59:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104203,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [18:59:24]free response buf [18:59:24]execute_script done [18:59:24]execute_script returns [18:59:24]free content buf [18:59:24]Sock 7.Close socket [18:59:24]Sock 7.Thread stoped [18:59:28]OFD Sender: No OFD packet to send [18:59:33]OFD Sender: No OFD packet to send [18:59:38]OFD Sender: No OFD packet to send [18:59:43]OFD Sender: No OFD packet to send [18:59:48]OFD Sender: No OFD packet to send [18:59:53]OFD Sender: No OFD packet to send [18:59:58]OFD Sender: No OFD packet to send [19:00:03]OFD Sender: No OFD packet to send [19:00:08]OFD Sender: No OFD packet to send [19:00:13]OFD Sender: No OFD packet to send [19:00:18]OFD Sender: No OFD packet to send [19:00:23]OFD Sender: No OFD packet to send [19:00:28]OFD Sender: No OFD packet to send [19:00:33]OFD Sender: No OFD packet to send [19:00:38]OFD Sender: No OFD packet to send [19:00:43]OFD Sender: No OFD packet to send [19:00:48]OFD Sender: No OFD packet to send [19:00:53]OFD Sender: No OFD packet to send [19:00:58]OFD Sender: No OFD packet to send [19:01:03]OFD Sender: No OFD packet to send [19:01:08]OFD Sender: No OFD packet to send [19:01:13]OFD Sender: No OFD packet to send [19:01:18]OFD Sender: No OFD packet to send [19:01:23]OFD Sender: No OFD packet to send [19:01:28]OFD Sender: No OFD packet to send [19:01:33]OFD Sender: No OFD packet to send [19:01:38]OFD Sender: No OFD packet to send [19:01:43]OFD Sender: No OFD packet to send [19:01:48]OFD Sender: No OFD packet to send [19:01:53]OFD Sender: No OFD packet to send [19:01:58]OFD Sender: No OFD packet to send [19:02:03]OFD Sender: No OFD packet to send [19:02:08]OFD Sender: No OFD packet to send [19:02:13]OFD Sender: No OFD packet to send [19:02:18]OFD Sender: No OFD packet to send [19:02:23]OFD Sender: No OFD packet to send [19:02:28]OFD Sender: No OFD packet to send [19:02:33]OFD Sender: No OFD packet to send [19:02:38]OFD Sender: No OFD packet to send [19:02:43]OFD Sender: No OFD packet to send [19:02:48]OFD Sender: No OFD packet to send [19:02:53]OFD Sender: No OFD packet to send [19:02:58]OFD Sender: No OFD packet to send [19:03:03]OFD Sender: No OFD packet to send [19:03:07]accept exits with 9 [19:03:07]New connection [19:03:07]New thread 3067616612 created [19:03:07]Thread 3067473252 joined [19:03:07]Waiting for new connection... [19:03:07] Sock 9.Parse request [19:03:07]Sock 9.Check first char [19:03:07]Sock 9.First char is OK [19:03:07]request: POST /json_proto HTTP/1.0 [19:03:07]Method: POST [19:03:07]URL: /json_proto [19:03:07]Method is POST - this is cgi request [19:03:07]url: /json_proto [19:03:07]query_string will be loaded in cgi processing [19:03:07]execute_cgi json_proto POST (null) [19:03:07]execute_cgi path=json_proto method=POST [19:03:07]POST find Content-Length [19:03:07]Host: 172.17.38.133:8080 [19:03:07]Content-Length: 682 [19:03:07]Content-Type: application/json [19:03:07] [19:03:07]POST finish read [19:03:07]Found Content-Length = 682 [19:03:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673673", "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:03:07]execute_script... [19:03: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)673673", "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:03:07]POST & json_proto [19:03:07]process_json_proto [19:03:07]json parsed OK: [19:03:07]protocol is kg_v1.0 [19:03:07]action value=close_receipt [19:03:07]process_action close_receipt [19:03:07]cmd_close_receipt [19:03:07]MH_GetDate [19:03:07]Write to MH i2c: F0 00 00 E8 02 D9 [19:03:07]Write i2c OK [19:03:07]MH_I2C_Read... [19:03:07]Read from MH i2c: F0 [19:03:07]MH_I2C_Read... [19:03:07]Read from MH i2c: F0 09 00 [19:03:07]MH_I2C_Read... [19:03:07]Read from MH i2c: F0 09 00 E8 02 00 6C CE 75 66 BD 8F 7C 64 23 [19:03:07]GetLastDocTimeStamp 1718996361 [19:03:07]current date 1718996588 [19:03:07]FM_GetShiftState [19:03:07]SAM_PROTO_GetShiftState [19:03:07]wFMCommunicate request_size=4 [19:03:07]MH_SAM_APDU [19:03:07]CAPDU: 80 13 01 00 [19:03:07]Write to MH i2c: E2 08 00 E9 02 80 13 01 00 00 00 00 00 68 [19:03:07]Write i2c OK [19:03:07]MH_I2C_Read... [19:03:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:03:07]Read from MH i2c: E2 [19:03:07]MH_I2C_Read... [19:03:07]Read from MH i2c: E2 0E 00 [19:03:07]MH_I2C_Read... [19:03:07]Read from MH i2c: E2 0E 00 E9 02 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 7B [19:03:07]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [19:03:07]wFMCommunicate OK [19:03:07]SAM_PROTO_GetShiftState done [19:03:07]FM_GetShiftState done [19:03:07]opened in 1718929509 [19:03:07]opened+sec_in_day 1719015909 [19:03:07]quantity*price = 100064 [19:03:07]sum+1 = 100066 [19:03:07]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 21.06.2024 19:03 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104204 ФПД: 281307421011494 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T190308&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104204&fm=281307421011494&tin=02508201610067®Number=0000000000092785&sum=100000 [19:03:08]StoreToDocumentArchive [19:03:08]shift 355 fd 104204 [19:03:08]save to /storage/0355/doc_00104204 [19:03:08]save last doc name /storage/0355/doc_00104204 to /storage/kkm_last_doc_name [19:03:08]save OK [19:03:08]Clear old archive folders... [19:03:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:03:08]tlvbuf is 00690DE0 [19:03:08]SAM_PROTO_ClearQueue [19:03:08]wFMCommunicate request_size=4 [19:03:08]MH_SAM_APDU [19:03:08]CAPDU: 80 09 00 00 [19:03:08]Write to MH i2c: E2 08 00 F6 02 80 09 00 00 00 00 00 00 6A [19:03:08]Write i2c OK [19:03:08]MH_I2C_Read... [19:03:08]Read from MH i2c: E2 [19:03:08]MH_I2C_Read... [19:03:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:03:08]Read from MH i2c: E2 03 00 [19:03:08]MH_I2C_Read... [19:03:08]Read from MH i2c: E2 03 00 F6 02 00 90 00 6C [19:03:08]RAPDU: 90 00 [19:03:08]wFMCommunicate OK [19:03:08]SAM_PROTO_ClearQueue done [19:03:08]KKMCreateOFDPacket [19:03:08]OFDProtocolAddRootSTLVToBuf [19:03:08]FM_MakeSignedData [19:03:08]FM_MakeSignedData [19:03:08]SAM_PROTO_SignData [19:03:08]wFMCommunicate request_size=4 [19:03:08]MH_SAM_APDU [19:03:08]CAPDU: 80 0D 01 02 [19:03:08]Write to MH i2c: E2 08 00 F7 02 80 0D 01 02 00 00 00 00 72 [19:03:08]Write i2c OK [19:03:08]MH_I2C_Read... [19:03:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:03:08]Read from MH i2c: E2 [19:03:08]MH_I2C_Read... [19:03:08]Read from MH i2c: E2 03 00 [19:03:08]MH_I2C_Read... [19:03:08]Read from MH i2c: E2 03 00 F7 02 00 90 00 6D [19:03:08]RAPDU: 90 00 [19:03:08]wFMCommunicate OK [19:03:08]wFMCommunicate request_size=255 [19:03:08]MH_SAM_APDU [19:03: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 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 6C CE 75 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 0C 97 01 00 35 04 06 00 FF [19:03:08]Write to MH i2c: E2 02 01 F8 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 7F 00 00 00 F4 03 04 00 6C CE 75 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 0C 97 01 00 35 04 06 00 FF 00 00 17 [19:03:08]Write i2c OK [19:03:08]MH_I2C_Read... [19:03:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:03:08]Read from MH i2c: E2 [19:03:08]MH_I2C_Read... [19:03:08]Read from MH i2c: E2 03 00 [19:03:08]MH_I2C_Read... [19:03:08]Read from MH i2c: E2 03 00 F8 02 00 90 00 6E [19:03:08]RAPDU: 90 00 [19:03:08]wFMCommunicate OK [19:03:08]wFMCommunicate request_size=10 [19:03:08]MH_SAM_APDU [19:03:08]CAPDU: 80 0D 02 02 05 D8 FC E6 EE 26 [19:03:08]Write to MH i2c: E2 0D 00 F9 02 80 0D 02 02 05 00 D8 FC E6 EE 26 00 00 4D [19:03:08]Write i2c OK [19:03:08]MH_I2C_Read... [19:03:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:03:08]OFD Sender: No OFD packet to send [19:03:08]Read from MH i2c: E2 [19:03:08]MH_I2C_Read... [19:03:08]Read from MH i2c: E2 03 00 [19:03:08]MH_I2C_Read... [19:03:08]Read from MH i2c: E2 03 00 F9 02 00 90 00 6F [19:03:08]RAPDU: 90 00 [19:03:08]wFMCommunicate OK [19:03:08]wFMCommunicate request_size=4 [19:03:08]MH_SAM_APDU [19:03:08]CAPDU: 80 0D 03 02 [19:03:08]Write to MH i2c: E2 08 00 FA 02 80 0D 03 02 00 00 00 00 77 [19:03:08]Write i2c OK [19:03:08]MH_I2C_Read... [19:03:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:03:09]Read from MH i2c: E2 [19:03:09]MH_I2C_Read... [19:03:09]Read from MH i2c: E2 0B 00 [19:03:09]MH_I2C_Read... [19:03:09]Read from MH i2c: E2 0B 00 FA 02 00 B1 71 03 C8 7E 13 CC 68 90 00 2A [19:03:09]RAPDU: B1 71 03 C8 7E 13 CC 68 90 00 [19:03:09]wFMCommunicate OK [19:03:09]SAM_PROTO_SignData done [19:03:09]FM_MakeSignedData done [19:03:09]CreateOFDProtocolMessage [19:03:09]wFMCommunicate request_size=4 [19:03:09]MH_SAM_APDU [19:03:09]CAPDU: 80 11 00 00 [19:03:09]Write to MH i2c: E2 08 00 FB 02 80 11 00 00 00 00 00 00 77 [19:03:09]Write i2c OK [19:03:09]MH_I2C_Read... [19:03:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:03:09]Read from MH i2c: E2 [19:03:09]MH_I2C_Read... [19:03:09]Read from MH i2c: E2 17 00 [19:03:09]MH_I2C_Read... [19:03:09]Read from MH i2c: E2 17 00 FB 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 CA [19:03:09]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:09]wFMCommunicate OK [19:03:09]CreateOFDProtocolMessage done [19:03:09]OFDSenderStorePacket 104204 [19:03:09]StoreOFDPacket docnum=104204 [19:03: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 89 85 07 01 B8 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 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 6C CE 75 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 0C 97 01 00 35 04 06 00 FF D8 FC E6 EE 26 B1 71 03 C8 7E 13 CC 68 [19:03:09]CheckFolder [19:03:09]dirname=/storage/ofd_packets [19:03:09]CheckFolder done [19:03:09]ProducePacketName [19:03:09]name=ofd_packets/00104204 [19:03:09]NVStorageSaveData ofd_packets/00104204 [19:03:09]File name is /storage/ofd_packets/00104204 [19:03:09]Write 301 bytes [19:03:09]NVStorageSaveData done [19:03:09]OFDSenderStorePacket done [19:03:09]KKMCreateOFDPacket done [19:03:09]NVStorageSaveData kkm_last_timestamp [19:03:09]File name is /storage/kkm_last_timestamp [19:03:09]Write 4 bytes [19:03:09]NVStorageSaveData done [19:03:09]ExternCall_PrintAddStr [19:03:09]wPrintStart [19:03:09]Write to MH i2c: 01 00 00 FC 02 FE [19:03:09]Write i2c OK [19:03:09]MH_I2C_Read... [19:03:09]Read from MH i2c: 01 [19:03:09]MH_I2C_Read... [19:03:09]Read from MH i2c: 01 07 00 [19:03:09]MH_I2C_Read... [19:03:09]Read from MH i2c: 01 07 00 FC 02 00 00 00 00 00 FF 0F 13 [19:03:09]RasterBufferAndPrint [19:03:09]line Счет N : (1)673673 [19:03:09]line ИНН: 02508201610067 [19:03:09]line Контрольно-Кассовый Чек [19:03:09]line ПРОДАЖА [19:03:09]line ТРК (МРК, ГНК) : 32 [19:03:09]line Товар: 2710124130 [19:03:09]line Аи-92-К-5 [19:03:09]line 15.070 * 66.40 [19:03:09]line = 1000.65 [19:03:09]line НДС 12% НСП 1% [19:03:09]line > о реализуемом товаре [19:03:09]line ОКРУГЛЕНИЕ: -0.65 [19:03:09]line ИТОГО: 1000.00 [19:03:09]line Внесено: 1000.00 [19:03:09]line СДАЧА: 0.00 [19:03:09]line НСП 1% : 8.85 [19:03:09]line НДС 12% : 106.26 [19:03:09]line Наличными: 1000.00 [19:03:09]line Безнал.: 0.00 [19:03:09]line Место: АЗС № 120 "Партнер Нефть" [19:03:09]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [19:03:09]line СНО: Общий режим [19:03:09]line Чек 127 21.06.2024 19:03 [19:03:09]line Смена: 355 ФФД: 1.0 [19:03:09]line ЗНМ: 0300000164 [19:03:09]line РНМ: 0000000000092785 [19:03:09]line Версия ККМ: 001 [19:03:09]line ФМ: 0000000000875093 [19:03:09]line ФД: 104204 [19:03:09]line ФПД: 281307421011494 [19:03:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T190308&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104204&fm=281307421011494&tin=02508201610067®Number=0000000000092785&sum=100000 [19:03:09]OFD Sender: Processing packet 104204 [packets to send 17, broken 16] [19:03:09]ProducePacketName [19:03:09]name=ofd_packets/00104204 [19:03:09]OFD Sender: To server: pG, [19:03:09]CommunicateWithHost lk.salyk.kg:30040 [19:03:09]ConnectInit lk.salyk.kg [19:03:09]written 0, free lines is 4095 [19:03:09]Connected sock=11 [19:03: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 89 85 07 01 B8 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 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 6C CE 75 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 0C 97 01 00 35 04 06 00 FF D8 FC E6 EE 26 B1 71 03 C8 7E 13 CC 68 [19:03:09]Write to MH i2c: 01 00 00 27 03 2A [19:03:09]Write i2c OK [19:03:09]MH_I2C_Read... [19:03:09]Read from MH i2c: 01 [19:03:09]MH_I2C_Read... [19:03:09]Read from MH i2c: 01 07 00 [19:03:09]MH_I2C_Read... [19:03:09]Read from MH i2c: 01 07 00 27 03 00 00 00 00 00 D8 0C 15 [19:03:09]RasterBufferAndPrint [19:03:09]line [19:03:09]line [19:03:09]line [19:03:09]line [19:03:09]line [19:03:09]written 0, free lines is 3294 [19:03:09]MH_Cut [19:03:09]Write to MH i2c: D1 01 00 2E 03 01 03 [19:03:09]Write i2c OK [19:03:09]MH_I2C_Read... [19:03:09]Read from MH i2c: D1 [19:03:09]MH_I2C_Read... [19:03:09]Read from MH i2c: D1 01 00 [19:03:09]MH_I2C_Read... [19:03:09]Read from MH i2c: D1 01 00 2E 03 00 02 [19:03:09]Write to MH i2c: 01 00 00 2F 03 32 [19:03:09]Write i2c OK [19:03:09]MH_I2C_Read... [19:03: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 74 EE 47 00 7E 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 0C 97 01 00 F4 03 04 00 EE 74 75 66 B6 04 01 00 00 01 88 32 61 21 E0 D9 AD [19:03:09]CommunicateWithHost err = 0 [19:03:09]CheckOFDResponse [19:03:09]1017 (14) - 77093643461234 [19:03:09]1041 (16) - 0000000000875093 [19:03:09]1040 (4) - 104204 [19:03:09]1012 (4) - 21.06.2024 12:41 [19:03:09]1206 (1) - 0 [19:03:09]OFD Sender: Remove packet 104204 [19:03:09]ProducePacketName [19:03:09]name=ofd_packets/00104204 [19:03:09]NVStorageDeleteData [19:03:10]OFD Sender: No OFD packet to send [19:03:10]*** Cut start [19:03:10]*** Partial cut [19:03:10]*** CUTSNS_PIN = 1 [19:03:10]*** CUTSNS_PIN = 0 [19:03:10]*** Brake cut motor [19:03:11]Read from MH i2c: 01 [19:03:11]MH_I2C_Read... [19:03:11]*** Stop cut motor [19:03:11]*** Cut end [19:03:11]Read from MH i2c: 01 07 00 [19:03:11]MH_I2C_Read... [19:03:11]Read from MH i2c: 01 07 00 2F 03 00 00 00 00 00 FF 0F 47 [19:03:11]process_action close_receipt done [19:03:11]requested_data is exist [19:03:11]produce_requested_data [19:03:11]requested_item fm.sn is exist - process it [19:03:11]wFMCommunicate request_size=4 [19:03:11]MH_SAM_APDU [19:03:11]CAPDU: 80 11 00 00 [19:03:11]Write to MH i2c: E2 08 00 30 03 80 11 00 00 00 00 00 00 AD [19:03:11]Write i2c OK [19:03:11]MH_I2C_Read... [19:03:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:03:11]Read from MH i2c: E2 [19:03:11]MH_I2C_Read... [19:03:11]Read from MH i2c: E2 17 00 [19:03:11]MH_I2C_Read... [19:03:11]Read from MH i2c: E2 17 00 30 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 00 [19:03:11]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:11]wFMCommunicate OK [19:03:11]requested_item fd.num is exist - process it [19:03:11]SAM_PROTO_GetFieldsCounters [19:03:11]wFMCommunicate request_size=4 [19:03:11]MH_SAM_APDU [19:03:11]CAPDU: 80 13 00 00 [19:03:11]Write to MH i2c: E2 08 00 31 03 80 13 00 00 00 00 00 00 B0 [19:03:11]Write i2c OK [19:03:11]MH_I2C_Read... [19:03:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:03:11]Read from MH i2c: E2 [19:03:11]MH_I2C_Read... [19:03:11]Read from MH i2c: E2 62 00 [19:03:11]MH_I2C_Read... [19:03:11]Read from MH i2c: E2 62 00 31 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 0C 97 01 00 0E 04 04 00 63 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 5C [19:03: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 0C 97 01 00 0E 04 04 00 63 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 [19:03:11]wFMCommunicate OK [19:03:11]SAM_PROTO_GetFieldsCounters done [19:03:11]requested_item shift.num is exist - process it [19:03:11]requested_item shift.opened is exist - process it [19:03:11]req_shift_opened [19:03:11]FM_GetShiftState [19:03:11]SAM_PROTO_GetShiftState [19:03:11]wFMCommunicate request_size=4 [19:03:11]MH_SAM_APDU [19:03:11]CAPDU: 80 13 01 00 [19:03:11]Write to MH i2c: E2 08 00 32 03 80 13 01 00 00 00 00 00 B2 [19:03:11]Write i2c OK [19:03:11]MH_I2C_Read... [19:03:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:03:11]Read from MH i2c: E2 [19:03:11]MH_I2C_Read... [19:03:11]Read from MH i2c: E2 0E 00 [19:03:11]MH_I2C_Read... [19:03:11]Read from MH i2c: E2 0E 00 32 03 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 C5 [19:03:11]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [19:03:11]wFMCommunicate OK [19:03:11]SAM_PROTO_GetShiftState done [19:03:11]FM_GetShiftState done [19:03:11]req_shift_opened done [19:03:11]requested_item shift.open_date is exist - process it [19:03:11]req_shift_open_date [19:03:11]req_shift_open_date done [19:03:11]produce_requested_data done [19:03:11]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104204,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [19:03:11]process_action_free close_receipt [19:03:11]json_value_free [19:03:11]json_value_free done [19:03:11]process_json_proto returns [19:03:11]Send response to host [19:03:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104204,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [19:03:11]free response buf [19:03:11]execute_script done [19:03:11]execute_script returns [19:03:11]free content buf [19:03:11]Sock 9.Close socket [19:03:11]Sock 9.Thread stoped [19:03:15]OFD Sender: No OFD packet to send [19:03:18]accept exits with 7 [19:03:18]New connection [19:03:18]New thread 3067473252 created [19:03:18]Thread 3067616612 joined [19:03:18]Waiting for new connection... [19:03:18] Sock 7.Parse request [19:03:18]Sock 7.Check first char [19:03:18]Sock 7.First char is OK [19:03:18]request: POST /json_proto HTTP/1.0 [19:03:18]Method: POST [19:03:18]URL: /json_proto [19:03:18]Method is POST - this is cgi request [19:03:18]url: /json_proto [19:03:18]query_string will be loaded in cgi processing [19:03:18]execute_cgi json_proto POST (null) [19:03:18]execute_cgi path=json_proto method=POST [19:03:18]POST find Content-Length [19:03:18]Host: 172.17.38.133:8080 [19:03:18]Content-Length: 819 [19:03:18]Content-Type: application/json [19:03:18] [19:03:18]POST finish read [19:03:18]Found Content-Length = 819 [19:03:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673672", "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" : 59.640, "sum" : 3960.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 3960.10 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:03:18]execute_script... [19:03: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)673672", "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" : 59.640, "sum" : 3960.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 3960.10 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:03:18]POST & json_proto [19:03:18]process_json_proto [19:03:18]json parsed OK: [19:03:18]protocol is kg_v1.0 [19:03:18]action value=close_receipt [19:03:18]process_action close_receipt [19:03:18]cmd_close_receipt [19:03:18]MH_GetDate [19:03:18]Write to MH i2c: F0 00 00 33 03 25 [19:03:18]Write i2c OK [19:03:18]MH_I2C_Read... [19:03:18]Read from MH i2c: F0 [19:03:18]MH_I2C_Read... [19:03:18]Read from MH i2c: F0 09 00 [19:03:18]MH_I2C_Read... [19:03:18]Read from MH i2c: F0 09 00 33 03 00 77 CE 75 66 BD 8F 7C 64 7A [19:03:18]GetLastDocTimeStamp 1718996588 [19:03:18]current date 1718996599 [19:03:18]FM_GetShiftState [19:03:18]SAM_PROTO_GetShiftState [19:03:18]wFMCommunicate request_size=4 [19:03:18]MH_SAM_APDU [19:03:18]CAPDU: 80 13 01 00 [19:03:18]Write to MH i2c: E2 08 00 34 03 80 13 01 00 00 00 00 00 B4 [19:03:18]Write i2c OK [19:03:18]MH_I2C_Read... [19:03:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:03:18]Read from MH i2c: E2 [19:03:18]MH_I2C_Read... [19:03:18]Read from MH i2c: E2 0E 00 [19:03:18]MH_I2C_Read... [19:03:18]Read from MH i2c: E2 0E 00 34 03 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 C7 [19:03:18]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [19:03:18]wFMCommunicate OK [19:03:18]SAM_PROTO_GetShiftState done [19:03:18]FM_GetShiftState done [19:03:18]opened in 1718929509 [19:03:18]opened+sec_in_day 1719015909 [19:03:18]quantity*price = 396009 [19:03:18]sum+1 = 396011 [19:03:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3960.10 НСП 1% : 35.04 НДС 12% : 420.54 Наличными: 0.00 Безнал.: 3960.10 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 128 21.06.2024 19:03 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875093 ФД: 104205 ФПД: 191895479901635 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T190319&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104205&fm=191895479901635&tin=02508201610067®Number=0000000000092785&sum=396010 [19:03:19]StoreToDocumentArchive [19:03:19]shift 355 fd 104205 [19:03:19]save to /storage/0355/doc_00104205 [19:03:19]save last doc name /storage/0355/doc_00104205 to /storage/kkm_last_doc_name [19:03:19]save OK [19:03:19]Clear old archive folders... [19:03:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:03:19]tlvbuf is 006BD700 [19:03:19]SAM_PROTO_ClearQueue [19:03:19]wFMCommunicate request_size=4 [19:03:19]MH_SAM_APDU [19:03:19]CAPDU: 80 09 00 00 [19:03:19]Write to MH i2c: E2 08 00 41 03 80 09 00 00 00 00 00 00 B6 [19:03:19]Write i2c OK [19:03:19]MH_I2C_Read... [19:03:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:03:19]Read from MH i2c: E2 [19:03:19]MH_I2C_Read... [19:03:19]Read from MH i2c: E2 03 00 [19:03:19]MH_I2C_Read... [19:03:19]Read from MH i2c: E2 03 00 41 03 00 90 00 B8 [19:03:19]RAPDU: 90 00 [19:03:19]wFMCommunicate OK [19:03:19]SAM_PROTO_ClearQueue done [19:03:19]KKMCreateOFDPacket [19:03:19]OFDProtocolAddRootSTLVToBuf [19:03:19]FM_MakeSignedData [19:03:19]FM_MakeSignedData [19:03:19]SAM_PROTO_SignData [19:03:19]wFMCommunicate request_size=4 [19:03:19]MH_SAM_APDU [19:03:19]CAPDU: 80 0D 01 02 [19:03:19]Write to MH i2c: E2 08 00 42 03 80 0D 01 02 00 00 00 00 BE [19:03:19]Write i2c OK [19:03:19]MH_I2C_Read... [19:03:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:03:19]Read from MH i2c: E2 [19:03:19]MH_I2C_Read... [19:03:19]Read from MH i2c: E2 03 00 [19:03:19]MH_I2C_Read... [19:03:19]Read from MH i2c: E2 03 00 42 03 00 90 00 B9 [19:03:19]RAPDU: 90 00 [19:03:19]wFMCommunicate OK [19:03:19]wFMCommunicate request_size=255 [19:03:19]MH_SAM_APDU [19:03: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 F8 E8 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 EA 0A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EA 0A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B0 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 A4 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EA 0A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 77 CE 75 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 0D 97 01 00 35 04 06 00 AE [19:03:19]Write to MH i2c: E2 02 01 43 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 F8 E8 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 EA 0A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EA 0A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B0 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 A4 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EA 0A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 77 CE 75 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 0D 97 01 00 35 04 06 00 AE 00 00 A3 [19:03:19]Write i2c OK [19:03:19]MH_I2C_Read... [19:03:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:03:20]Read from MH i2c: E2 [19:03:20]MH_I2C_Read... [19:03:20]Read from MH i2c: E2 03 00 [19:03:20]MH_I2C_Read... [19:03:20]Read from MH i2c: E2 03 00 43 03 00 90 00 BA [19:03:20]RAPDU: 90 00 [19:03:20]wFMCommunicate OK [19:03:20]wFMCommunicate request_size=10 [19:03:20]MH_SAM_APDU [19:03:20]CAPDU: 80 0D 02 02 05 87 25 E9 DD C3 [19:03:20]Write to MH i2c: E2 0D 00 44 03 80 0D 02 02 05 00 87 25 E9 DD C3 00 00 00 [19:03:20]Write i2c OK [19:03:20]MH_I2C_Read... [19:03:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:03:20]Read from MH i2c: E2 [19:03:20]MH_I2C_Read... [19:03:20]Read from MH i2c: E2 03 00 [19:03:20]MH_I2C_Read... [19:03:20]Read from MH i2c: E2 03 00 44 03 00 90 00 BB [19:03:20]RAPDU: 90 00 [19:03:20]wFMCommunicate OK [19:03:20]wFMCommunicate request_size=4 [19:03:20]MH_SAM_APDU [19:03:20]CAPDU: 80 0D 03 02 [19:03:20]Write to MH i2c: E2 08 00 45 03 80 0D 03 02 00 00 00 00 C3 [19:03:20]Write i2c OK [19:03:20]MH_I2C_Read... [19:03:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:03:20]Read from MH i2c: E2 [19:03:20]MH_I2C_Read... [19:03:20]Read from MH i2c: E2 0B 00 [19:03:20]MH_I2C_Read... [19:03:20]Read from MH i2c: E2 0B 00 45 03 00 6F 0A 19 0A 06 95 CE 39 90 00 02 [19:03:20]RAPDU: 6F 0A 19 0A 06 95 CE 39 90 00 [19:03:20]wFMCommunicate OK [19:03:20]SAM_PROTO_SignData done [19:03:20]FM_MakeSignedData done [19:03:20]CreateOFDProtocolMessage [19:03:20]wFMCommunicate request_size=4 [19:03:20]MH_SAM_APDU [19:03:20]CAPDU: 80 11 00 00 [19:03:20]Write to MH i2c: E2 08 00 46 03 80 11 00 00 00 00 00 00 C3 [19:03:20]Write i2c OK [19:03:20]MH_I2C_Read... [19:03:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:03:20]Read from MH i2c: E2 [19:03:20]MH_I2C_Read... [19:03:20]Read from MH i2c: E2 17 00 [19:03:20]MH_I2C_Read... [19:03:20]Read from MH i2c: E2 17 00 46 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 16 [19: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 [19:03:20]wFMCommunicate OK [19:03:20]CreateOFDProtocolMessage done [19:03:20]OFDSenderStorePacket 104205 [19:03:20]StoreOFDPacket docnum=104205 [19: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 0F 01 00 00 74 E2 07 01 1C 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 F8 E8 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 EA 0A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EA 0A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B0 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 A4 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EA 0A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 77 CE 75 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 0D 97 01 00 35 04 06 00 AE 87 25 E9 DD C3 6F 0A 19 0A 06 95 CE 39 [19:03:20]CheckFolder [19:03:20]dirname=/storage/ofd_packets [19:03:20]CheckFolder done [19:03:20]ProducePacketName [19:03:20]name=ofd_packets/00104205 [19:03:20]NVStorageSaveData ofd_packets/00104205 [19:03:20]File name is /storage/ofd_packets/00104205 [19:03:20]Write 301 bytes [19:03:20]NVStorageSaveData done [19:03:20]OFDSenderStorePacket done [19:03:20]KKMCreateOFDPacket done [19:03:20]NVStorageSaveData kkm_last_timestamp [19:03:20]File name is /storage/kkm_last_timestamp [19:03:20]Write 4 bytes [19:03:20]NVStorageSaveData done [19:03:20]ExternCall_PrintAddStr [19:03:20]wPrintStart [19:03:20]Write to MH i2c: 01 00 00 47 03 4A [19:03:20]Write i2c OK [19:03:20]MH_I2C_Read... [19:03:20]Read from MH i2c: 01 [19:03:20]MH_I2C_Read... [19:03:20]Read from MH i2c: 01 07 00 [19:03:20]MH_I2C_Read... [19:03:20]Read from MH i2c: 01 07 00 47 03 00 00 00 00 00 FF 0F 5F [19:03:20]RasterBufferAndPrint [19:03:20]line Счет N : (1)673672 [19:03:20]line ИНН: 02508201610067 [19:03:20]line Контрольно-Кассовый Чек [19:03:20]line ПРОДАЖА [19:03:20]line ТРК (МРК, ГНК) : 42 [19:03:20]line Товар: 2710124130 [19:03:20]line Аи-92-К-5 [19:03:20]line 59.640 * 66.40 [19:03:20]line = 3960.10 [19:03:20]line НДС 12% НСП 1% [19:03:20]line > о реализуемом товаре [19:03:20]line ИТОГО: 3960.10 [19:03:20]line НСП 1% : 35.04 [19:03:20]line НДС 12% : 420.54 [19:03:20]line Наличными: 0.00 [19:03:20]line Безнал.: 3960.10 [19:03:20]line Место: АЗС № 120 "Партнер Нефть" [19:03:20]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [19:03:20]line СНО: Общий режим [19:03:20]line Чек 128 21.06.2024 19:03 [19:03:20]line Смена: 355 ФФД: 1.0 [19:03:20]line ЗНМ: 0300000164 [19:03:20]line РНМ: 0000000000092785 [19:03:20]line Версия ККМ: 001 [19:03:20]line Платежная система: Бакай Банк [19:03:20]line ФМ: 0000000000875093 [19:03:20]line ФД: 104205 [19:03:20]line ФПД: 191895479901635 [19:03:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T190319&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104205&fm=191895479901635&tin=02508201610067®Number=0000000000092785&sum=396010 [19:03:20]written 0, free lines is 4095 [19:03:20]OFD Sender: Processing packet 104205 [packets to send 17, broken 16] [19:03:20]ProducePacketName [19:03:20]name=ofd_packets/00104205 [19:03:20]OFD Sender: To server: pG, [19:03:20]CommunicateWithHost lk.salyk.kg:30040 [19:03:20]ConnectInit lk.salyk.kg [19:03:20]Connected sock=11 [19:03: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 74 E2 07 01 1C 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 F8 E8 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 EA 0A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EA 0A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B0 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 A4 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EA 0A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 77 CE 75 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 0D 97 01 00 35 04 06 00 AE 87 25 E9 DD C3 6F 0A 19 0A 06 95 CE 39 [19:03:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 36 C5 47 00 03 34 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 0D 97 01 00 F4 03 04 00 F9 74 75 66 B6 04 01 00 00 6B D1 5A 6E C4 4E 4A 70 [19:03:20]CommunicateWithHost err = 0 [19:03:20]CheckOFDResponse [19:03:20]1017 (14) - 77093643461234 [19:03:20]1041 (16) - 0000000000875093 [19:03:20]1040 (4) - 104205 [19:03:20]1012 (4) - 21.06.2024 12:41 [19:03:20]1206 (1) - 0 [19:03:20]OFD Sender: Remove packet 104205 [19:03:20]ProducePacketName [19:03:20]name=ofd_packets/00104205 [19:03:20]NVStorageDeleteData [19:03:20]Write to MH i2c: 01 00 00 71 03 74 [19:03:20]Write i2c OK [19:03:20]MH_I2C_Read... [19:03:20]Read from MH i2c: 01 [19:03:20]MH_I2C_Read... [19:03:20]Read from MH i2c: 01 07 00 [19:03:20]MH_I2C_Read... [19:03:20]Read from MH i2c: 01 07 00 71 03 00 00 00 00 00 F5 0C 7C [19:03:20]RasterBufferAndPrint [19:03:20]line [19:03:20]line [19:03:20]line [19:03:20]line [19:03:20]line [19:03:20]written 0, free lines is 3324 [19:03:21]MH_Cut [19:03:21]Write to MH i2c: D1 01 00 78 03 01 4D [19:03:21]Write i2c OK [19:03:21]MH_I2C_Read... [19:03:21]Read from MH i2c: D1 [19:03:21]MH_I2C_Read... [19:03:21]Read from MH i2c: D1 01 00 [19:03:21]MH_I2C_Read... [19:03:21]Read from MH i2c: D1 01 00 78 03 00 4C [19:03:21]Write to MH i2c: 01 00 00 79 03 7C [19:03:21]Write i2c OK [19:03:21]MH_I2C_Read... [19:03:21]OFD Sender: No OFD packet to send [19:03:21]*** Cut start [19:03:21]*** Partial cut [19:03:21]*** CUTSNS_PIN = 1 [19:03:21]*** CUTSNS_PIN = 0 [19:03:21]*** Brake cut motor [19:03:22]Read from MH i2c: 01 [19:03:22]MH_I2C_Read... [19:03:22]*** Stop cut motor [19:03:22]*** Cut end [19:03:22]Read from MH i2c: 01 07 00 [19:03:22]MH_I2C_Read... [19:03:22]Read from MH i2c: 01 07 00 79 03 00 00 00 00 00 FF 0F 91 [19:03:22]process_action close_receipt done [19:03:22]requested_data is exist [19:03:22]produce_requested_data [19:03:22]requested_item fm.sn is exist - process it [19:03:22]wFMCommunicate request_size=4 [19:03:22]MH_SAM_APDU [19:03:22]CAPDU: 80 11 00 00 [19:03:22]Write to MH i2c: E2 08 00 7A 03 80 11 00 00 00 00 00 00 F7 [19:03:22]Write i2c OK [19:03:22]MH_I2C_Read... [19:03:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:03:22]Read from MH i2c: E2 [19:03:22]MH_I2C_Read... [19:03:22]Read from MH i2c: E2 17 00 [19:03:22]MH_I2C_Read... [19:03:22]Read from MH i2c: E2 17 00 7A 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 4A [19:03:22]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:22]wFMCommunicate OK [19:03:22]requested_item fd.num is exist - process it [19:03:22]SAM_PROTO_GetFieldsCounters [19:03:22]wFMCommunicate request_size=4 [19:03:22]MH_SAM_APDU [19:03:22]CAPDU: 80 13 00 00 [19:03:22]Write to MH i2c: E2 08 00 7B 03 80 13 00 00 00 00 00 00 FA [19:03:22]Write i2c OK [19:03:22]MH_I2C_Read... [19:03:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:03:22]Read from MH i2c: E2 [19:03:22]MH_I2C_Read... [19:03:22]Read from MH i2c: E2 62 00 [19:03:22]MH_I2C_Read... [19:03:22]Read from MH i2c: E2 62 00 7B 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 0D 97 01 00 0E 04 04 00 63 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 AA [19:03: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 0D 97 01 00 0E 04 04 00 63 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 [19:03:22]wFMCommunicate OK [19:03:22]SAM_PROTO_GetFieldsCounters done [19:03:22]requested_item shift.num is exist - process it [19:03:22]requested_item shift.opened is exist - process it [19:03:22]req_shift_opened [19:03:22]FM_GetShiftState [19:03:22]SAM_PROTO_GetShiftState [19:03:22]wFMCommunicate request_size=4 [19:03:22]MH_SAM_APDU [19:03:22]CAPDU: 80 13 01 00 [19:03:22]Write to MH i2c: E2 08 00 7C 03 80 13 01 00 00 00 00 00 FC [19:03:22]Write i2c OK [19:03:22]MH_I2C_Read... [19:03:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:03:22]Read from MH i2c: E2 [19:03:22]MH_I2C_Read... [19:03:22]Read from MH i2c: E2 0E 00 [19:03:22]MH_I2C_Read... [19:03:22]Read from MH i2c: E2 0E 00 7C 03 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 0F [19:03:22]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [19:03:22]wFMCommunicate OK [19:03:22]SAM_PROTO_GetShiftState done [19:03:22]FM_GetShiftState done [19:03:22]req_shift_opened done [19:03:22]requested_item shift.open_date is exist - process it [19:03:22]req_shift_open_date [19:03:22]req_shift_open_date done [19:03:22]produce_requested_data done [19:03:22]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104205,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [19:03:22]process_action_free close_receipt [19:03:22]json_value_free [19:03:22]json_value_free done [19:03:22]process_json_proto returns [19:03:22]Send response to host [19:03:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104205,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [19:03:22]free response buf [19:03:22]execute_script done [19:03:22]execute_script returns [19:03:22]free content buf [19:03:22]Sock 7.Close socket [19:03:22]Sock 7.Thread stoped [19:03:26]OFD Sender: No OFD packet to send [19:03:31]OFD Sender: No OFD packet to send [19:03:36]OFD Sender: No OFD packet to send [19:03:41]OFD Sender: No OFD packet to send [19:03:46]OFD Sender: No OFD packet to send [19:03:51]OFD Sender: No OFD packet to send [19:03:56]OFD Sender: No OFD packet to send [19:04:01]OFD Sender: No OFD packet to send [19:04:06]OFD Sender: No OFD packet to send [19:04:11]OFD Sender: No OFD packet to send [19:04:16]OFD Sender: No OFD packet to send [19:04:21]OFD Sender: No OFD packet to send [19:04:26]OFD Sender: No OFD packet to send [19:04:31]OFD Sender: No OFD packet to send [19:04:36]OFD Sender: No OFD packet to send [19:04:41]OFD Sender: No OFD packet to send [19:04:46]OFD Sender: No OFD packet to send [19:04:51]OFD Sender: No OFD packet to send [19:04:56]OFD Sender: No OFD packet to send [19:05:01]OFD Sender: No OFD packet to send [19:05:06]OFD Sender: No OFD packet to send [19:05:11]OFD Sender: No OFD packet to send [19:05:16]OFD Sender: No OFD packet to send [19:05:21]OFD Sender: No OFD packet to send [19:05:26]OFD Sender: No OFD packet to send [19:05:31]OFD Sender: No OFD packet to send [19:05:36]OFD Sender: No OFD packet to send [19:05:41]OFD Sender: No OFD packet to send [19:05:46]OFD Sender: No OFD packet to send [19:05:51]OFD Sender: No OFD packet to send [19:05:56]OFD Sender: No OFD packet to send [19:06:01]OFD Sender: No OFD packet to send [19:06:06]OFD Sender: No OFD packet to send [19:06:11]OFD Sender: No OFD packet to send [19:06:16]OFD Sender: No OFD packet to send [19:06:21]OFD Sender: No OFD packet to send [19:06:26]OFD Sender: No OFD packet to send [19:06:31]OFD Sender: No OFD packet to send [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: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:25]accept exits with 9 [19:12:25]New connection [19:12:25]New thread 3067616612 created [19:12:25]Thread 3067473252 joined [19:12:25]Waiting for new connection... [19:12:25] Sock 9.Parse request [19:12:25]Sock 9.Check first char [19:12:25]Sock 9.First char is OK [19:12:25]request: POST /json_proto HTTP/1.0 [19:12:25]Method: POST [19:12:25]URL: /json_proto [19:12:25]Method is POST - this is cgi request [19:12:25]url: /json_proto [19:12:25]query_string will be loaded in cgi processing [19:12:25]execute_cgi json_proto POST (null) [19:12:25]execute_cgi path=json_proto method=POST [19:12:25]POST find Content-Length [19:12:25]Host: 172.17.38.133:8080 [19:12:25]Content-Length: 678 [19:12:25]Content-Type: application/json [19:12:25] [19:12:25]POST finish read [19:12:25]Found Content-Length = 678 [19:12:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673674", "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" ] } } [19:12:25]execute_script... [19:12: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)673674", "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" ] } } [19:12:25]POST & json_proto [19:12:25]process_json_proto [19:12:25]json parsed OK: [19:12:25]protocol is kg_v1.0 [19:12:25]action value=close_receipt [19:12:25]process_action close_receipt [19:12:25]cmd_close_receipt [19:12:25]MH_GetDate [19:12:25]Write to MH i2c: F0 00 00 7D 03 6F [19:12:25]Write i2c OK [19:12:25]MH_I2C_Read... [19:12:25]Read from MH i2c: F0 [19:12:25]MH_I2C_Read... [19:12:25]Read from MH i2c: F0 09 00 [19:12:25]MH_I2C_Read... [19:12:25]Read from MH i2c: F0 09 00 7D 03 00 9A D0 75 66 BD 8F 7C 64 E9 [19:12:25]GetLastDocTimeStamp 1718996599 [19:12:25]current date 1718997146 [19:12:25]FM_GetShiftState [19:12:25]SAM_PROTO_GetShiftState [19:12:25]wFMCommunicate request_size=4 [19:12:25]MH_SAM_APDU [19:12:25]CAPDU: 80 13 01 00 [19:12:25]Write to MH i2c: E2 08 00 7E 03 80 13 01 00 00 00 00 00 FE [19:12:25]Write i2c OK [19:12:25]MH_I2C_Read... [19:12:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:12:25]Read from MH i2c: E2 [19:12:25]MH_I2C_Read... [19:12:25]Read from MH i2c: E2 0E 00 [19:12:25]MH_I2C_Read... [19:12:25]Read from MH i2c: E2 0E 00 7E 03 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 11 [19:12:25]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [19:12:25]wFMCommunicate OK [19:12:25]SAM_PROTO_GetShiftState done [19:12:25]FM_GetShiftState done [19:12:25]opened in 1718929509 [19:12:25]opened+sec_in_day 1719015909 [19:12:25]quantity*price = 80012 [19:12:25]sum+1 = 80013 [19:12:25]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 СНО: Общий режим Чек 129 21.06.2024 19:12 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104206 ФПД: 256730923601630 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T191226&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104206&fm=256730923601630&tin=02508201610067®Number=0000000000092785&sum=80000 [19:12:26]StoreToDocumentArchive [19:12:26]shift 355 fd 104206 [19:12:26]save to /storage/0355/doc_00104206 [19:12:26]save last doc name /storage/0355/doc_00104206 to /storage/kkm_last_doc_name [19:12:26]save OK [19:12:26]Clear old archive folders... [19:12:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:12:26]tlvbuf is 006BF060 [19:12:26]SAM_PROTO_ClearQueue [19:12:26]wFMCommunicate request_size=4 [19:12:26]MH_SAM_APDU [19:12:26]CAPDU: 80 09 00 00 [19:12:26]Write to MH i2c: E2 08 00 8B 03 80 09 00 00 00 00 00 00 00 [19:12:26]Write i2c OK [19:12:26]MH_I2C_Read... [19:12:26]Read from MH i2c: E2 [19:12:26]MH_I2C_Read... [19:12:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:12:26]Read from MH i2c: E2 03 00 [19:12:26]MH_I2C_Read... [19:12:26]Read from MH i2c: E2 03 00 8B 03 00 90 00 02 [19:12:26]RAPDU: 90 00 [19:12:26]wFMCommunicate OK [19:12:26]SAM_PROTO_ClearQueue done [19:12:26]KKMCreateOFDPacket [19:12:26]OFDProtocolAddRootSTLVToBuf [19:12:26]FM_MakeSignedData [19:12:26]FM_MakeSignedData [19:12:26]SAM_PROTO_SignData [19:12:26]wFMCommunicate request_size=4 [19:12:26]MH_SAM_APDU [19:12:26]CAPDU: 80 0D 01 02 [19:12:26]Write to MH i2c: E2 08 00 8C 03 80 0D 01 02 00 00 00 00 08 [19:12:26]Write i2c OK [19:12:26]MH_I2C_Read... [19:12:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:12:26]Read from MH i2c: E2 [19:12:26]MH_I2C_Read... [19:12:26]Read from MH i2c: E2 03 00 [19:12:26]MH_I2C_Read... [19:12:26]Read from MH i2c: E2 03 00 8C 03 00 90 00 03 [19:12:26]RAPDU: 90 00 [19:12:26]wFMCommunicate OK [19:12:26]wFMCommunicate request_size=255 [19:12:26]MH_SAM_APDU [19:12: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 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 81 00 00 00 F4 03 04 00 9A D0 75 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 0E 97 01 00 35 04 06 00 E9 [19:12:26]Write to MH i2c: E2 02 01 8D 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 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 81 00 00 00 F4 03 04 00 9A D0 75 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 0E 97 01 00 35 04 06 00 E9 00 00 6A [19:12:26]Write i2c OK [19:12:26]MH_I2C_Read... [19:12:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:12:26]Read from MH i2c: E2 [19:12:26]MH_I2C_Read... [19:12:26]Read from MH i2c: E2 03 00 [19:12:26]MH_I2C_Read... [19:12:26]Read from MH i2c: E2 03 00 8D 03 00 90 00 04 [19:12:26]RAPDU: 90 00 [19:12:26]wFMCommunicate OK [19:12:26]wFMCommunicate request_size=10 [19:12:26]MH_SAM_APDU [19:12:26]CAPDU: 80 0D 02 02 05 7E D3 81 0E DE [19:12:26]Write to MH i2c: E2 0D 00 8E 03 80 0D 02 02 05 00 7E D3 81 0E DE 00 00 D3 [19:12:26]Write i2c OK [19:12:26]MH_I2C_Read... [19:12:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:12:26]Read from MH i2c: E2 [19:12:26]MH_I2C_Read... [19:12:26]Read from MH i2c: E2 03 00 [19:12:26]MH_I2C_Read... [19:12:26]Read from MH i2c: E2 03 00 8E 03 00 90 00 05 [19:12:26]RAPDU: 90 00 [19:12:26]wFMCommunicate OK [19:12:26]wFMCommunicate request_size=4 [19:12:26]MH_SAM_APDU [19:12:26]CAPDU: 80 0D 03 02 [19:12:26]Write to MH i2c: E2 08 00 8F 03 80 0D 03 02 00 00 00 00 0D [19:12:26]Write i2c OK [19:12:26]MH_I2C_Read... [19:12:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:12:26]Read from MH i2c: E2 [19:12:26]MH_I2C_Read... [19:12:26]Read from MH i2c: E2 0B 00 [19:12:26]MH_I2C_Read... [19:12:26]Read from MH i2c: E2 0B 00 8F 03 00 61 C1 1B 72 58 07 15 8D 90 00 BE [19:12:26]RAPDU: 61 C1 1B 72 58 07 15 8D 90 00 [19:12:26]wFMCommunicate OK [19:12:26]SAM_PROTO_SignData done [19:12:26]FM_MakeSignedData done [19:12:26]CreateOFDProtocolMessage [19:12:26]wFMCommunicate request_size=4 [19:12:26]MH_SAM_APDU [19:12:26]CAPDU: 80 11 00 00 [19:12:26]Write to MH i2c: E2 08 00 90 03 80 11 00 00 00 00 00 00 0D [19:12:26]Write i2c OK [19:12:26]MH_I2C_Read... [19:12:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:12:26]Read from MH i2c: E2 [19:12:26]MH_I2C_Read... [19:12:26]Read from MH i2c: E2 17 00 [19:12:26]MH_I2C_Read... [19:12:26]Read from MH i2c: E2 17 00 90 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 60 [19:12: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:12:26]wFMCommunicate OK [19:12:26]CreateOFDProtocolMessage done [19:12:26]OFDSenderStorePacket 104206 [19:12:26]StoreOFDPacket docnum=104206 [19:12: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 94 B6 07 01 A2 C5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 81 00 00 00 F4 03 04 00 9A D0 75 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 0E 97 01 00 35 04 06 00 E9 7E D3 81 0E DE 61 C1 1B 72 58 07 15 8D [19:12:26]CheckFolder [19:12:26]dirname=/storage/ofd_packets [19:12:26]CheckFolder done [19:12:26]ProducePacketName [19:12:26]name=ofd_packets/00104206 [19:12:26]NVStorageSaveData ofd_packets/00104206 [19:12:26]File name is /storage/ofd_packets/00104206 [19:12:26]Write 301 bytes [19:12:26]NVStorageSaveData done [19:12:26]OFDSenderStorePacket done [19:12:26]KKMCreateOFDPacket done [19:12:26]NVStorageSaveData kkm_last_timestamp [19:12:26]File name is /storage/kkm_last_timestamp [19:12:26]Write 4 bytes [19:12:26]NVStorageSaveData done [19:12:26]ExternCall_PrintAddStr [19:12:26]wPrintStart [19:12:26]Write to MH i2c: 01 00 00 91 03 94 [19:12:26]Write i2c OK [19:12:26]MH_I2C_Read... [19:12:26]Read from MH i2c: 01 [19:12:26]MH_I2C_Read... [19:12:26]Read from MH i2c: 01 07 00 [19:12:26]MH_I2C_Read... [19:12:26]Read from MH i2c: 01 07 00 91 03 00 00 00 00 00 FF 0F A9 [19:12:26]RasterBufferAndPrint [19:12:26]line Счет N : (1)673674 [19:12:26]line ИНН: 02508201610067 [19:12:26]line Контрольно-Кассовый Чек [19:12:26]line ПРОДАЖА [19:12:26]line ТРК (МРК, ГНК) : 32 [19:12:26]line Товар: 2710124130 [19:12:26]line Аи-92-К-5 [19:12:26]line 12.050 * 66.40 [19:12:26]line = 800.12 [19:12:26]line НДС 12% НСП 1% [19:12:26]line > о реализуемом товаре [19:12:26]line ОКРУГЛЕНИЕ: -0.12 [19:12:26]line ИТОГО: 800.00 [19:12:26]line Внесено: 800.00 [19:12:26]line СДАЧА: 0.00 [19:12:26]line НСП 1% : 7.08 [19:12:26]line НДС 12% : 84.97 [19:12:26]line Наличными: 800.00 [19:12:26]line Безнал.: 0.00 [19:12:26]line Место: АЗС № 120 "Партнер Нефть" [19:12:26]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [19:12:26]line СНО: Общий режим [19:12:26]line Чек 129 21.06.2024 19:12 [19:12:26]line Смена: 355 ФФД: 1.0 [19:12:26]line ЗНМ: 0300000164 [19:12:26]line РНМ: 0000000000092785 [19:12:26]line Версия ККМ: 001 [19:12:26]line ФМ: 0000000000875093 [19:12:26]line ФД: 104206 [19:12:26]line ФПД: 256730923601630 [19:12:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T191226&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104206&fm=256730923601630&tin=02508201610067®Number=0000000000092785&sum=80000 [19:12:27]OFD Sender: Processing packet 104206 [packets to send 17, broken 16] [19:12:27]ProducePacketName [19:12:27]name=ofd_packets/00104206 [19:12:27]OFD Sender: To server: pG, [19:12:27]CommunicateWithHost lk.salyk.kg:30040 [19:12:27]ConnectInit lk.salyk.kg [19:12:27]written 0, free lines is 4095 [19:12:27]Connected sock=10 [19:12: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 94 B6 07 01 A2 C5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 81 00 00 00 F4 03 04 00 9A D0 75 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 0E 97 01 00 35 04 06 00 E9 7E D3 81 0E DE 61 C1 1B 72 58 07 15 8D [19:12: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 72 06 47 00 FF 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 0E 97 01 00 F4 03 04 00 1B 77 75 66 B6 04 01 00 00 71 6B 9A 9A 50 B4 4C D4 [19:12:27]CommunicateWithHost err = 0 [19:12:27]CheckOFDResponse [19:12:27]1017 (14) - 77093643461234 [19:12:27]1041 (16) - 0000000000875093 [19:12:27]1040 (4) - 104206 [19:12:27]1012 (4) - 21.06.2024 12:50 [19:12:27]1206 (1) - 0 [19:12:27]OFD Sender: Remove packet 104206 [19:12:27]ProducePacketName [19:12:27]name=ofd_packets/00104206 [19:12:27]NVStorageDeleteData [19:12:27]Write to MH i2c: 01 00 00 BC 03 BF [19:12:27]Write i2c OK [19:12:27]MH_I2C_Read... [19:12:27]Read from MH i2c: 01 [19:12:27]MH_I2C_Read... [19:12:27]Read from MH i2c: 01 07 00 [19:12:27]MH_I2C_Read... [19:12:27]Read from MH i2c: 01 07 00 BC 03 00 00 00 00 00 E4 0C B6 [19:12:27]RasterBufferAndPrint [19:12:27]line [19:12:27]line [19:12:27]line [19:12:27]line [19:12:27]line [19:12:27]written 0, free lines is 3306 [19:12:27]MH_Cut [19:12:27]Write to MH i2c: D1 01 00 C3 03 01 98 [19:12:27]Write i2c OK [19:12:27]MH_I2C_Read... [19:12:27]Read from MH i2c: D1 [19:12:27]MH_I2C_Read... [19:12:27]Read from MH i2c: D1 01 00 [19:12:27]MH_I2C_Read... [19:12:27]Read from MH i2c: D1 01 00 C3 03 00 97 [19:12:27]Write to MH i2c: 01 00 00 C4 03 C7 [19:12:27]Write i2c OK [19:12:27]MH_I2C_Read... [19:12:27]OFD Sender: No OFD packet to send [19:12:28]*** Cut start [19:12:28]*** Partial cut [19:12:28]*** CUTSNS_PIN = 1 [19:12:28]*** CUTSNS_PIN = 0 [19:12:28]*** Brake cut motor [19:12:28]Read from MH i2c: 01 [19:12:28]MH_I2C_Read... [19:12:28]*** Stop cut motor [19:12:28]*** Cut end [19:12:28]Read from MH i2c: 01 07 00 [19:12:28]MH_I2C_Read... [19:12:28]Read from MH i2c: 01 07 00 C4 03 00 00 00 00 00 FF 0F DC [19:12:28]process_action close_receipt done [19:12:28]requested_data is exist [19:12:28]produce_requested_data [19:12:28]requested_item fm.sn is exist - process it [19:12:28]wFMCommunicate request_size=4 [19:12:28]MH_SAM_APDU [19:12:28]CAPDU: 80 11 00 00 [19:12:28]Write to MH i2c: E2 08 00 C5 03 80 11 00 00 00 00 00 00 42 [19:12:28]Write i2c OK [19:12:28]MH_I2C_Read... [19:12:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:12:28]Read from MH i2c: E2 [19:12:28]MH_I2C_Read... [19:12:28]Read from MH i2c: E2 17 00 [19:12:28]MH_I2C_Read... [19:12:28]Read from MH i2c: E2 17 00 C5 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 95 [19: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 [19:12:28]wFMCommunicate OK [19:12:28]requested_item fd.num is exist - process it [19:12:28]SAM_PROTO_GetFieldsCounters [19:12:28]wFMCommunicate request_size=4 [19:12:28]MH_SAM_APDU [19:12:28]CAPDU: 80 13 00 00 [19:12:28]Write to MH i2c: E2 08 00 C6 03 80 13 00 00 00 00 00 00 45 [19:12:28]Write i2c OK [19:12:28]MH_I2C_Read... [19:12:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:12:29]Read from MH i2c: E2 [19:12:29]MH_I2C_Read... [19:12:29]Read from MH i2c: E2 62 00 [19:12:29]MH_I2C_Read... [19:12:29]Read from MH i2c: E2 62 00 C6 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 63 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 F9 [19:12: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 0E 97 01 00 0E 04 04 00 63 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 [19:12:29]wFMCommunicate OK [19:12:29]SAM_PROTO_GetFieldsCounters done [19:12:29]requested_item shift.num is exist - process it [19:12:29]requested_item shift.opened is exist - process it [19:12:29]req_shift_opened [19:12:29]FM_GetShiftState [19:12:29]SAM_PROTO_GetShiftState [19:12:29]wFMCommunicate request_size=4 [19:12:29]MH_SAM_APDU [19:12:29]CAPDU: 80 13 01 00 [19:12:29]Write to MH i2c: E2 08 00 C7 03 80 13 01 00 00 00 00 00 47 [19:12:29]Write i2c OK [19:12:29]MH_I2C_Read... [19:12:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:12:29]Read from MH i2c: E2 [19:12:29]MH_I2C_Read... [19:12:29]Read from MH i2c: E2 0E 00 [19:12:29]MH_I2C_Read... [19:12:29]Read from MH i2c: E2 0E 00 C7 03 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 5A [19:12:29]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [19:12:29]wFMCommunicate OK [19:12:29]SAM_PROTO_GetShiftState done [19:12:29]FM_GetShiftState done [19:12:29]req_shift_opened done [19:12:29]requested_item shift.open_date is exist - process it [19:12:29]req_shift_open_date [19:12:29]req_shift_open_date done [19:12:29]produce_requested_data done [19:12:29]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104206,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [19:12:29]process_action_free close_receipt [19:12:29]json_value_free [19:12:29]json_value_free done [19:12:29]process_json_proto returns [19:12:29]Send response to host [19:12:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104206,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [19:12:29]free response buf [19:12:29]execute_script done [19:12:29]execute_script returns [19:12:29]free content buf [19:12:29]Sock 9.Close socket [19:12:29]Sock 9.Thread stoped [19:12:33]OFD Sender: No OFD packet to send [19:12:38]OFD Sender: No OFD packet to send [19:12:43]OFD Sender: No OFD packet to send [19:12:48]OFD Sender: No OFD packet to send [19:12:53]OFD Sender: No OFD packet to send [19:12:58]OFD Sender: No OFD packet to send [19:13:03]OFD Sender: No OFD packet to send [19:13:08]OFD Sender: No OFD packet to send [19:13:13]OFD Sender: No OFD packet to send [19:13:18]OFD Sender: No OFD packet to send [19:13:23]OFD Sender: No OFD packet to send [19:13:26]int [19:13:26]Write to MH i2c: 01 00 00 C8 03 CB [19:13:26]*** FLAG_PRN_PAP1 set [19:13:26]Write i2c OK [19:13:26]MH_I2C_Read... [19:13:26]Read from MH i2c: 01 [19:13:26]MH_I2C_Read... [19:13:26]Read from MH i2c: 01 07 00 [19:13:26]MH_I2C_Read... [19:13:26]Read from MH i2c: 01 07 00 C8 03 00 01 00 00 00 FF 0F E1 [19:13:26]state=0 [19:13:26]No paper [19:13:26]int [19:13:26]Write to MH i2c: 01 00 00 C9 03 CC [19:13:26]*** FLAG_PRN_PAP2 set [19:13:26]Write i2c OK [19:13:26]MH_I2C_Read... [19:13:26]Read from MH i2c: 01 [19:13:26]MH_I2C_Read... [19:13:26]Read from MH i2c: 01 07 00 [19:13:26]MH_I2C_Read... [19:13:26]Read from MH i2c: 01 07 00 C9 03 00 03 00 00 00 FF 0F E4 [19:13:26]state=0 [19:13:26]No paper [19:13:26]Cover opened [19:13:28]OFD Sender: No OFD packet to send [19:13:31]Write to MH i2c: 01 00 00 CA 03 CD [19:13:31]Write i2c OK [19:13:31]MH_I2C_Read... [19:13:31]Read from MH i2c: 01 [19:13:31]MH_I2C_Read... [19:13:31]Read from MH i2c: 01 07 00 [19:13:31]MH_I2C_Read... [19:13:31]Read from MH i2c: 01 07 00 CA 03 00 03 00 00 00 FF 0F E5 [19:13:31]state=3 [19:13:31]No paper [19:13:31]Cover opened [19:13:33]OFD Sender: No OFD packet to send [19:13:36]Write to MH i2c: 01 00 00 CB 03 CE [19:13:36]Write i2c OK [19:13:36]MH_I2C_Read... [19:13:36]Read from MH i2c: 01 [19:13:36]MH_I2C_Read... [19:13:36]Read from MH i2c: 01 07 00 [19:13:36]MH_I2C_Read... [19:13:36]Read from MH i2c: 01 07 00 CB 03 00 03 00 00 00 FF 0F E6 [19:13:36]state=3 [19:13:36]No paper [19:13:36]Cover opened [19:13:38]OFD Sender: No OFD packet to send [19:13:41]Write to MH i2c: 01 00 00 CC 03 CF [19:13:41]Write i2c OK [19:13:41]MH_I2C_Read... [19:13:41]Read from MH i2c: 01 [19:13:41]MH_I2C_Read... [19:13:41]Read from MH i2c: 01 07 00 [19:13:41]MH_I2C_Read... [19:13:41]Read from MH i2c: 01 07 00 CC 03 00 03 00 00 00 FF 0F E7 [19:13:41]state=3 [19:13:41]No paper [19:13:41]Cover opened [19:13:43]OFD Sender: No OFD packet to send [19:13:46]int [19:13:46]Write to MH i2c: 01 00 00 CD 03 D0 [19:13:46]Write i2c OK [19:13:46]MH_I2C_Read... [19:13:46]Read from MH i2c: 01 [19:13:46]MH_I2C_Read... [19:13:46]Read from MH i2c: 01 07 00 [19:13:46]MH_I2C_Read... [19:13:46]*** FLAG_PRN_PAP1 reset [19:13:46]*** FLAG_PRN_PAP2 reset [19:13:46]Read from MH i2c: 01 07 00 CD 03 00 00 00 00 00 FF 0F E5 [19:13:46]state=3 [19:13:46]Cover closed [19:13:48]OFD Sender: No OFD packet to send [19:13:48]int [19:13:48]Write to MH i2c: 01 00 00 CE 03 D1 [19:13:48]*** FLAG_PRN_KEY set [19:13:48]Write i2c OK [19:13:48]MH_I2C_Read... [19:13:48]Read from MH i2c: 01 [19:13:48]MH_I2C_Read... [19:13:48]Read from MH i2c: 01 07 00 [19:13:48]MH_I2C_Read... [19:13:48]Read from MH i2c: 01 07 00 CE 03 00 08 00 00 00 FF 0F EE [19:13:48]state=0 [19:13:48]Key pressed [19:13:48]Feed [19:13:48]Write to MH i2c: D8 00 00 CF 03 A9 [19:13:48]Write i2c OK [19:13:48]MH_I2C_Read... [19:13:48]Read from MH i2c: D8 [19:13:48]MH_I2C_Read... [19:13:48]Read from MH i2c: D8 01 00 [19:13:48]MH_I2C_Read... [19:13:48]Read from MH i2c: D8 01 00 CF 03 00 AA [19:13:48]int [19:13:48]Write to MH i2c: 01 00 00 D0 03 D3 [19:13:48]Write i2c OK [19:13:48]MH_I2C_Read... [19:13:48]Read from MH i2c: 01 [19:13:48]MH_I2C_Read... [19:13:48]Read from MH i2c: 01 07 00 [19:13:48]MH_I2C_Read... [19:13:48]Read from MH i2c: 01 07 00 D0 03 00 48 00 00 00 3C 00 5E [19:13:48]state=2 [19:13:48]Key pressed [19:13:49]int [19:13:49]Write to MH i2c: 01 00 00 D1 03 D4 [19:13:49]*** FLAG_PRN_KEY reset [19:13:49]Write i2c OK [19:13:49]MH_I2C_Read... [19:13:49]Read from MH i2c: 01 [19:13:49]MH_I2C_Read... [19:13:49]Read from MH i2c: 01 07 00 [19:13:49]MH_I2C_Read... [19:13:49]Read from MH i2c: 01 07 00 D1 03 00 00 00 00 00 FF 0F E9 [19:13:49]state=2 [19:13:49]Stop feed [19:13:53]OFD Sender: No OFD packet to send [19:13:58]OFD Sender: No OFD packet to send [19:14:03]OFD Sender: No OFD packet to send [19:14:08]OFD Sender: No OFD packet to send [19:14:13]OFD Sender: No OFD packet to send [19:14:18]OFD Sender: No OFD packet to send [19:14:23]OFD Sender: No OFD packet to send [19:14:28]OFD Sender: No OFD packet to send [19:14:33]OFD Sender: No OFD packet to send [19:14:38]OFD Sender: No OFD packet to send [19:14:43]OFD Sender: No OFD packet to send [19:14:48]OFD Sender: No OFD packet to send [19:14:53]OFD Sender: No OFD packet to send [19:14:58]OFD Sender: No OFD packet to send [19:15:03]OFD Sender: No OFD packet to send [19:15:08]OFD Sender: No OFD packet to send [19:15:13]OFD Sender: No OFD packet to send [19:15:18]OFD Sender: No OFD packet to send [19:15:23]OFD Sender: No OFD packet to send [19:15:28]OFD Sender: No OFD packet to send [19:15:33]OFD Sender: No OFD packet to send [19:15:38]OFD Sender: No OFD packet to send [19:15:43]OFD Sender: No OFD packet to send [19:15:48]OFD Sender: No OFD packet to send [19:15:53]OFD Sender: No OFD packet to send [19:15:58]OFD Sender: No OFD packet to send [19:16:03]OFD Sender: No OFD packet to send [19:16:08]OFD Sender: No OFD packet to send [19:16:13]OFD Sender: No OFD packet to send [19:16:18]OFD Sender: No OFD packet to send [19:16:23]OFD Sender: No OFD packet to send [19:16:28]OFD Sender: No OFD packet to send [19:16:33]OFD Sender: No OFD packet to send [19:16:38]OFD Sender: No OFD packet to send [19:16:43]OFD Sender: No OFD packet to send [19:16:48]OFD Sender: No OFD packet to send [19:16:53]OFD Sender: No OFD packet to send [19:16:58]OFD Sender: No OFD packet to send [19:17:03]OFD Sender: No OFD packet to send [19:17:08]OFD Sender: No OFD packet to send [19:17:13]OFD Sender: No OFD packet to send [19:17:18]OFD Sender: No OFD packet to send [19:17:23]OFD Sender: No OFD packet to send [19:17:28]OFD Sender: No OFD packet to send [19:17:33]OFD Sender: No OFD packet to send [19:17:38]OFD Sender: No OFD packet to send [19:17:43]OFD Sender: No OFD packet to send [19:17:46]accept exits with 7 [19:17:46]New connection [19:17:46]New thread 3067473252 created [19:17:46]Thread 3067616612 joined [19:17:46]Waiting for new connection... [19:17:46] Sock 7.Parse request [19:17:46]Sock 7.Check first char [19:17:46]Sock 7.First char is OK [19:17:46]request: POST /json_proto HTTP/1.0 [19:17:46]Method: POST [19:17:46]URL: /json_proto [19:17:46]Method is POST - this is cgi request [19:17:46]url: /json_proto [19:17:46]query_string will be loaded in cgi processing [19:17:46]execute_cgi json_proto POST (null) [19:17:46]execute_cgi path=json_proto method=POST [19:17:46]POST find Content-Length [19:17:46]Host: 172.17.38.133:8080 [19:17:46]Content-Length: 1195 [19:17:46]Content-Type: application/json [19:17:46] [19:17:46]POST finish read [19:17:46]Found Content-Length = 1195 [19:17: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 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)673675\u000A21.06.2024 18:54\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 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\u000A32170\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:17:46]execute_script... [19:17: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 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)673675\u000A21.06.2024 18:54\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 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\u000A32170\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:17:46]POST & json_proto [19:17:46]process_json_proto [19:17:46]json parsed OK: [19:17:46]protocol is kg_v1.0 [19:17:46]action value=print_text [19:17:46]process_action print_text [19:17:46]cmd_print_text [19:17:46]ExternCall_PrintAddStr [19:17:46]wPrintStart [19:17:46]Write to MH i2c: 01 00 00 D2 03 D5 [19:17:46]Write i2c OK [19:17:46]MH_I2C_Read... [19:17:46]Read from MH i2c: 01 [19:17:46]MH_I2C_Read... [19:17:46]Read from MH i2c: 01 07 00 [19:17:46]MH_I2C_Read... [19:17:46]Read from MH i2c: 01 07 00 D2 03 00 00 00 00 00 FF 0F EA [19:17:46]RasterBufferAndPrint [19:17:46]line *****ТОВАРНЫЙ ЧЕК***** [19:17:46]line АЗС 120 [19:17:46]line Партнер нефть [19:17:46]line 02508201610067 [19:17:46]line Кассир : Асанбаев Н. [19:17:46]line Счет N : (1)673675 [19:17:46]line 21.06.2024 18:54 [19:17:46]line ПРОДАЖА [19:17:46]line ТРК (МРК, ГНК): 41 [19:17:46]line Вид ГСМ : 2710124500 [19:17:46]line Аи-95-К-5 [19:17:46]line 27.070 x 73.90 [19:17:46]line ИТОГ: 2000.47 [19:17:46]line Тип оплаты: Талоны: Топливная Карта [19:17:46]line 32170 [19:17:46]line ______________________ [19:17:46]line (подпись) [19:17:46]written 0, free lines is 4095 [19:17:47]Write to MH i2c: 01 00 00 E6 03 E9 [19:17:47]Write i2c OK [19:17:47]MH_I2C_Read... [19:17:47]Read from MH i2c: 01 [19:17:47]MH_I2C_Read... [19:17:47]Read from MH i2c: 01 07 00 [19:17:47]MH_I2C_Read... [19:17:47]Read from MH i2c: 01 07 00 E6 03 00 00 00 00 00 12 0E 10 [19:17:47]RasterBufferAndPrint [19:17:47]line [19:17:47]line [19:17:47]line [19:17:47]line [19:17:47]line [19:17:47]written 0, free lines is 3603 [19:17:47]MH_Cut [19:17:47]Write to MH i2c: D1 01 00 ED 03 01 C2 [19:17:47]Write i2c OK [19:17:47]MH_I2C_Read... [19:17:47]Read from MH i2c: D1 [19:17:47]MH_I2C_Read... [19:17:47]Read from MH i2c: D1 01 00 [19:17:47]MH_I2C_Read... [19:17:47]Read from MH i2c: D1 01 00 ED 03 00 C1 [19:17:47]Write to MH i2c: 01 00 00 EE 03 F1 [19:17:47]Write i2c OK [19:17:47]MH_I2C_Read... [19:17:47]*** Cut start [19:17:47]*** Partial cut [19:17:47]*** CUTSNS_PIN = 1 [19:17:47]*** CUTSNS_PIN = 0 [19:17:47]*** Brake cut motor [19:17:48]OFD Sender: No OFD packet to send [19:17:48]Read from MH i2c: 01 [19:17:48]MH_I2C_Read... [19:17:48]*** Stop cut motor [19:17:48]*** Cut end [19:17:48]Read from MH i2c: 01 07 00 [19:17:48]MH_I2C_Read... [19:17:48]Read from MH i2c: 01 07 00 EE 03 00 00 00 00 00 FF 0F 06 [19:17:48]process_action print_text done [19:17:48]requested_data is exist [19:17:48]produce_requested_data [19:17:48]requested_item fm.sn is exist - process it [19:17:48]wFMCommunicate request_size=4 [19:17:48]MH_SAM_APDU [19:17:48]CAPDU: 80 11 00 00 [19:17:48]Write to MH i2c: E2 08 00 EF 03 80 11 00 00 00 00 00 00 6C [19:17:48]Write i2c OK [19:17:48]MH_I2C_Read... [19:17:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:17:48]Read from MH i2c: E2 [19:17:48]MH_I2C_Read... [19:17:48]Read from MH i2c: E2 17 00 [19:17:48]MH_I2C_Read... [19:17:48]Read from MH i2c: E2 17 00 EF 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 BF [19:17:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [19:17:48]wFMCommunicate OK [19:17:48]requested_item fd.num is exist - process it [19:17:48]SAM_PROTO_GetFieldsCounters [19:17:48]wFMCommunicate request_size=4 [19:17:48]MH_SAM_APDU [19:17:48]CAPDU: 80 13 00 00 [19:17:48]Write to MH i2c: E2 08 00 F0 03 80 13 00 00 00 00 00 00 6F [19:17:48]Write i2c OK [19:17:48]MH_I2C_Read... [19:17:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:17:48]Read from MH i2c: E2 [19:17:48]MH_I2C_Read... [19:17:48]Read from MH i2c: E2 62 00 [19:17:48]MH_I2C_Read... [19:17:48]Read from MH i2c: E2 62 00 F0 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 0E 97 01 00 0E 04 04 00 63 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 23 [19:17: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 0E 97 01 00 0E 04 04 00 63 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 [19:17:48]wFMCommunicate OK [19:17:48]SAM_PROTO_GetFieldsCounters done [19:17:48]requested_item shift.num is exist - process it [19:17:48]requested_item shift.opened is exist - process it [19:17:48]req_shift_opened [19:17:48]FM_GetShiftState [19:17:48]SAM_PROTO_GetShiftState [19:17:48]wFMCommunicate request_size=4 [19:17:48]MH_SAM_APDU [19:17:48]CAPDU: 80 13 01 00 [19:17:48]Write to MH i2c: E2 08 00 F1 03 80 13 01 00 00 00 00 00 71 [19:17:48]Write i2c OK [19:17:48]MH_I2C_Read... [19:17:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:17:48]Read from MH i2c: E2 [19:17:48]MH_I2C_Read... [19:17:48]Read from MH i2c: E2 0E 00 [19:17:48]MH_I2C_Read... [19:17:48]Read from MH i2c: E2 0E 00 F1 03 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 84 [19:17:48]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [19:17:48]wFMCommunicate OK [19:17:48]SAM_PROTO_GetShiftState done [19:17:48]FM_GetShiftState done [19:17:48]req_shift_opened done [19:17:48]requested_item shift.open_date is exist - process it [19:17:48]req_shift_open_date [19:17:48]req_shift_open_date done [19:17:48]produce_requested_data done [19:17:48]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104206,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [19:17:48]process_action_free print_text [19:17:48]json_value_free [19:17:48]json_value_free done [19:17:48]process_json_proto returns [19:17:48]Send response to host [19:17:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104206,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [19:17:48]free response buf [19:17:48]execute_script done [19:17:48]execute_script returns [19:17:48]free content buf [19:17:48]Sock 7.Close socket [19:17:48]Sock 7.Thread stoped [19:17:53]OFD Sender: No OFD packet to send [19:17:58]OFD Sender: No OFD packet to send [19:18:03]OFD Sender: No OFD packet to send [19:18:08]OFD Sender: No OFD packet to send [19:18:13]OFD Sender: No OFD packet to send [19:18:18]OFD Sender: No OFD packet to send [19:18:23]OFD Sender: No OFD packet to send [19:18:28]OFD Sender: No OFD packet to send [19:18:33]OFD Sender: No OFD packet to send [19:18:38]OFD Sender: No OFD packet to send [19:18:43]OFD Sender: No OFD packet to send [19:18:48]OFD Sender: No OFD packet to send [19:18:53]OFD Sender: No OFD packet to send [19:18:58]OFD Sender: No OFD packet to send [19:19:03]OFD Sender: No OFD packet to send [19:19:08]OFD Sender: No OFD packet to send [19:19:13]OFD Sender: No OFD packet to send [19:19:18]OFD Sender: No OFD packet to send [19:19:23]OFD Sender: No OFD packet to send [19:19:28]OFD Sender: No OFD packet to send [19:19:33]OFD Sender: No OFD packet to send [19:19:38]OFD Sender: No OFD packet to send [19:19:43]OFD Sender: No OFD packet to send [19:19:48]OFD Sender: No OFD packet to send [19:19:53]OFD Sender: No OFD packet to send [19:19:58]OFD Sender: No OFD packet to send [19:20:03]OFD Sender: No OFD packet to send [19:20:08]OFD Sender: No OFD packet to send [19:20:12]accept exits with 9 [19:20:12]New connection [19:20:12]New thread 3067616612 created [19:20:12]Thread 3067473252 joined [19:20:12]Waiting for new connection... [19:20:12] Sock 9.Parse request [19:20:12]Sock 9.Check first char [19:20:12]Sock 9.First char is OK [19:20:12]request: POST /json_proto HTTP/1.0 [19:20:12]Method: POST [19:20:12]URL: /json_proto [19:20:12]Method is POST - this is cgi request [19:20:12]url: /json_proto [19:20:12]query_string will be loaded in cgi processing [19:20:12]execute_cgi json_proto POST (null) [19:20:12]execute_cgi path=json_proto method=POST [19:20:12]POST find Content-Length [19:20:12]Host: 172.17.38.133:8080 [19:20:12]Content-Length: 1156 [19:20:12]Content-Type: application/json [19:20:12] [19:20:12]POST finish read [19:20:12]Found Content-Length = 1156 [19:20: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)673676\u000A21.06.2024 18:57\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\u000A30115564\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:20:12]execute_script... [19:20: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)673676\u000A21.06.2024 18:57\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\u000A30115564\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:20:12]POST & json_proto [19:20:12]process_json_proto [19:20:12]json parsed OK: [19:20:12]protocol is kg_v1.0 [19:20:12]action value=print_text [19:20:12]process_action print_text [19:20:12]cmd_print_text [19:20:12]ExternCall_PrintAddStr [19:20:12]wPrintStart [19:20:12]Write to MH i2c: 01 00 00 F2 03 F5 [19:20:12]Write i2c OK [19:20:12]MH_I2C_Read... [19:20:12]Read from MH i2c: 01 [19:20:12]MH_I2C_Read... [19:20:12]Read from MH i2c: 01 07 00 [19:20:12]MH_I2C_Read... [19:20:12]Read from MH i2c: 01 07 00 F2 03 00 00 00 00 00 FF 0F 0A [19:20:12]RasterBufferAndPrint [19:20:12]line *****ТОВАРНЫЙ ЧЕК***** [19:20:12]line АЗС 120 [19:20:12]line Партнер нефть [19:20:12]line 02508201610067 [19:20:12]line Кассир : Асанбаев Н. [19:20:12]line Счет N : (1)673676 [19:20:12]line 21.06.2024 18:57 [19:20:12]line ПРОДАЖА [19:20:12]line ТРК (МРК, ГНК): 32 [19:20:12]line Вид ГСМ : 2710124130 [19:20:12]line Аи-92-К-5 [19:20:12]line 15.000 x 66.40 [19:20:12]line ИТОГ: 996.00 [19:20:12]line Тип оплаты: Талоны: ТК ГПНА Online [19:20:12]line 30115564 [19:20:12]line ______________________ [19:20:12]line (подпись) [19:20:12]written 0, free lines is 4095 [19:20:12]Write to MH i2c: 01 00 00 06 04 0A [19:20:12]Write i2c OK [19:20:12]MH_I2C_Read... [19:20:12]Read from MH i2c: 01 [19:20:12]MH_I2C_Read... [19:20:12]Read from MH i2c: 01 07 00 [19:20:12]MH_I2C_Read... [19:20:12]Read from MH i2c: 01 07 00 06 04 00 00 00 00 00 0F 0E 2E [19:20:12]RasterBufferAndPrint [19:20:12]line [19:20:12]line [19:20:12]line [19:20:12]line [19:20:12]line [19:20:12]written 0, free lines is 3600 [19:20:12]MH_Cut [19:20:12]Write to MH i2c: D1 01 00 0D 04 01 E3 [19:20:12]Write i2c OK [19:20:12]MH_I2C_Read... [19:20:12]Read from MH i2c: D1 [19:20:12]MH_I2C_Read... [19:20:12]Read from MH i2c: D1 01 00 [19:20:12]MH_I2C_Read... [19:20:12]Read from MH i2c: D1 01 00 0D 04 00 E2 [19:20:12]Write to MH i2c: 01 00 00 0E 04 12 [19:20:12]Write i2c OK [19:20:12]MH_I2C_Read... [19:20:13]OFD Sender: No OFD packet to send [19:20:13]*** Cut start [19:20:13]*** Partial cut [19:20:13]*** CUTSNS_PIN = 1 [19:20:13]*** CUTSNS_PIN = 0 [19:20:13]*** Brake cut motor [19:20:14]Read from MH i2c: 01 [19:20:14]MH_I2C_Read... [19:20:14]*** Stop cut motor [19:20:14]*** Cut end [19:20:14]Read from MH i2c: 01 07 00 [19:20:14]MH_I2C_Read... [19:20:14]Read from MH i2c: 01 07 00 0E 04 00 00 00 00 00 FF 0F 27 [19:20:14]process_action print_text done [19:20:14]requested_data is exist [19:20:14]produce_requested_data [19:20:14]requested_item fm.sn is exist - process it [19:20:14]wFMCommunicate request_size=4 [19:20:14]MH_SAM_APDU [19:20:14]CAPDU: 80 11 00 00 [19:20:14]Write to MH i2c: E2 08 00 0F 04 80 11 00 00 00 00 00 00 8D [19:20:14]Write i2c OK [19:20:14]MH_I2C_Read... [19:20:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:20:14]Read from MH i2c: E2 [19:20:14]MH_I2C_Read... [19:20:14]Read from MH i2c: E2 17 00 [19:20:14]MH_I2C_Read... [19:20:14]Read from MH i2c: E2 17 00 0F 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 E0 [19:20:14]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:14]wFMCommunicate OK [19:20:14]requested_item fd.num is exist - process it [19:20:14]SAM_PROTO_GetFieldsCounters [19:20:14]wFMCommunicate request_size=4 [19:20:14]MH_SAM_APDU [19:20:14]CAPDU: 80 13 00 00 [19:20:14]Write to MH i2c: E2 08 00 10 04 80 13 00 00 00 00 00 00 90 [19:20:14]Write i2c OK [19:20:14]MH_I2C_Read... [19:20:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:20:14]Read from MH i2c: E2 [19:20:14]MH_I2C_Read... [19:20:14]Read from MH i2c: E2 62 00 [19:20:14]MH_I2C_Read... [19:20:14]Read from MH i2c: E2 62 00 10 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 0E 97 01 00 0E 04 04 00 63 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 44 [19:20: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 0E 97 01 00 0E 04 04 00 63 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 [19:20:14]wFMCommunicate OK [19:20:14]SAM_PROTO_GetFieldsCounters done [19:20:14]requested_item shift.num is exist - process it [19:20:14]requested_item shift.opened is exist - process it [19:20:14]req_shift_opened [19:20:14]FM_GetShiftState [19:20:14]SAM_PROTO_GetShiftState [19:20:14]wFMCommunicate request_size=4 [19:20:14]MH_SAM_APDU [19:20:14]CAPDU: 80 13 01 00 [19:20:14]Write to MH i2c: E2 08 00 11 04 80 13 01 00 00 00 00 00 92 [19:20:14]Write i2c OK [19:20:14]MH_I2C_Read... [19:20:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:20:14]Read from MH i2c: E2 [19:20:14]MH_I2C_Read... [19:20:14]Read from MH i2c: E2 0E 00 [19:20:14]MH_I2C_Read... [19:20:14]Read from MH i2c: E2 0E 00 11 04 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 A5 [19:20:14]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [19:20:14]wFMCommunicate OK [19:20:14]SAM_PROTO_GetShiftState done [19:20:14]FM_GetShiftState done [19:20:14]req_shift_opened done [19:20:14]requested_item shift.open_date is exist - process it [19:20:14]req_shift_open_date [19:20:14]req_shift_open_date done [19:20:14]produce_requested_data done [19:20:14]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104206,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [19:20:14]process_action_free print_text [19:20:14]json_value_free [19:20:14]json_value_free done [19:20:14]process_json_proto returns [19:20:14]Send response to host [19:20:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104206,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [19:20:14]free response buf [19:20:14]execute_script done [19:20:14]execute_script returns [19:20:14]free content buf [19:20:14]Sock 9.Close socket [19:20:14]Sock 9.Thread stoped [19:20:18]OFD Sender: No OFD packet to send [19:20:23]OFD Sender: No OFD packet to send [19:20:28]OFD Sender: No OFD packet to send [19:20:33]OFD Sender: No OFD packet to send [19:20:38]OFD Sender: No OFD packet to send [19:20:43]OFD Sender: No OFD packet to send [19:20:48]OFD Sender: No OFD packet to send [19:20:53]OFD Sender: No OFD packet to send [19:20:58]OFD Sender: No OFD packet to send [19:21:03]OFD Sender: No OFD packet to send [19:21:08]OFD Sender: No OFD packet to send [19:21:13]OFD Sender: No OFD packet to send [19:21:18]OFD Sender: No OFD packet to send [19:21:23]OFD Sender: No OFD packet to send [19:21:27]accept exits with 7 [19:21:27]New connection [19:21:27]New thread 3067473252 created [19:21:27]Thread 3067616612 joined [19:21:27]Waiting for new connection... [19:21:27] Sock 7.Parse request [19:21:27]Sock 7.Check first char [19:21:27]Sock 7.First char is OK [19:21:27]request: POST /json_proto HTTP/1.0 [19:21:27]Method: POST [19:21:27]URL: /json_proto [19:21:27]Method is POST - this is cgi request [19:21:27]url: /json_proto [19:21:27]query_string will be loaded in cgi processing [19:21:27]execute_cgi json_proto POST (null) [19:21:27]execute_cgi path=json_proto method=POST [19:21:27]POST find Content-Length [19:21:27]Host: 172.17.38.133:8080 [19:21:27]Content-Length: 677 [19:21:27]Content-Type: application/json [19:21:27] [19:21:27]POST finish read [19:21:27]Found Content-Length = 677 [19:21:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673677", "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.430, "sum" : 360.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 360.00, "total" : 360.00, "payments": [ { "type": 0, "sum" : 360.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:21:27]execute_script... [19:21: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)673677", "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.430, "sum" : 360.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 360.00, "total" : 360.00, "payments": [ { "type": 0, "sum" : 360.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:21:27]POST & json_proto [19:21:27]process_json_proto [19:21:27]json parsed OK: [19:21:27]protocol is kg_v1.0 [19:21:27]action value=close_receipt [19:21:27]process_action close_receipt [19:21:27]cmd_close_receipt [19:21:27]MH_GetDate [19:21:27]Write to MH i2c: F0 00 00 12 04 05 [19:21:27]Write i2c OK [19:21:27]MH_I2C_Read... [19:21:27]Read from MH i2c: F0 [19:21:27]MH_I2C_Read... [19:21:27]Read from MH i2c: F0 09 00 [19:21:27]MH_I2C_Read... [19:21:27]Read from MH i2c: F0 09 00 12 04 00 B8 D2 75 66 BD 8F 7C 64 9F [19:21:27]GetLastDocTimeStamp 1718997146 [19:21:27]current date 1718997688 [19:21:27]FM_GetShiftState [19:21:27]SAM_PROTO_GetShiftState [19:21:27]wFMCommunicate request_size=4 [19:21:27]MH_SAM_APDU [19:21:27]CAPDU: 80 13 01 00 [19:21:27]Write to MH i2c: E2 08 00 13 04 80 13 01 00 00 00 00 00 94 [19:21:27]Write i2c OK [19:21:27]MH_I2C_Read... [19:21:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:21:27]Read from MH i2c: E2 [19:21:27]MH_I2C_Read... [19:21:27]Read from MH i2c: E2 0E 00 [19:21:27]MH_I2C_Read... [19:21:27]Read from MH i2c: E2 0E 00 13 04 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 A7 [19:21:27]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [19:21:27]wFMCommunicate OK [19:21:27]SAM_PROTO_GetShiftState done [19:21:27]FM_GetShiftState done [19:21:27]opened in 1718929509 [19:21:27]opened+sec_in_day 1719015909 [19:21:27]quantity*price = 36055 [19:21:27]sum+1 = 36056 [19:21:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.55 ИТОГО: 360.00 Внесено: 360.00 СДАЧА: 0.00 НСП 1% : 3.19 НДС 12% : 38.29 Наличными: 360.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 130 21.06.2024 19:21 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104207 ФПД: 86223746777058 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T192128&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104207&fm=86223746777058&tin=02508201610067®Number=0000000000092785&sum=36000 [19:21:28]StoreToDocumentArchive [19:21:28]shift 355 fd 104207 [19:21:28]save to /storage/0355/doc_00104207 [19:21:28]save last doc name /storage/0355/doc_00104207 to /storage/kkm_last_doc_name [19:21:28]save OK [19:21:28]Clear old archive folders... [19:21:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:21:28]tlvbuf is B6F4AC80 [19:21:28]SAM_PROTO_ClearQueue [19:21:28]wFMCommunicate request_size=4 [19:21:28]MH_SAM_APDU [19:21:28]CAPDU: 80 09 00 00 [19:21:28]Write to MH i2c: E2 08 00 20 04 80 09 00 00 00 00 00 00 96 [19:21:28]Write i2c OK [19:21:28]MH_I2C_Read... [19:21:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:21:28]Read from MH i2c: E2 [19:21:28]MH_I2C_Read... [19:21:28]Read from MH i2c: E2 03 00 [19:21:28]MH_I2C_Read... [19:21:28]Read from MH i2c: E2 03 00 20 04 00 90 00 98 [19:21:28]RAPDU: 90 00 [19:21:28]wFMCommunicate OK [19:21:28]SAM_PROTO_ClearQueue done [19:21:28]KKMCreateOFDPacket [19:21:28]OFDProtocolAddRootSTLVToBuf [19:21:28]FM_MakeSignedData [19:21:28]FM_MakeSignedData [19:21:28]SAM_PROTO_SignData [19:21:28]wFMCommunicate request_size=4 [19:21:28]MH_SAM_APDU [19:21:28]CAPDU: 80 0D 01 02 [19:21:28]Write to MH i2c: E2 08 00 21 04 80 0D 01 02 00 00 00 00 9E [19:21:28]Write i2c OK [19:21:28]MH_I2C_Read... [19:21:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:21:28]Read from MH i2c: E2 [19:21:28]MH_I2C_Read... [19:21:28]Read from MH i2c: E2 03 00 [19:21:28]MH_I2C_Read... [19:21:28]Read from MH i2c: E2 03 00 21 04 00 90 00 99 [19:21:28]RAPDU: 90 00 [19:21:28]wFMCommunicate OK [19:21:28]wFMCommunicate request_size=255 [19:21:28]MH_SAM_APDU [19:21: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 36 15 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 D7 8C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 0E 00 00 00 00 07 04 06 00 A0 8C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 B8 D2 75 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 0F 97 01 00 35 04 06 00 4E [19:21:28]Write to MH i2c: E2 02 01 22 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 36 15 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 D7 8C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 0E 00 00 00 00 07 04 06 00 A0 8C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 B8 D2 75 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 0F 97 01 00 35 04 06 00 4E 00 00 40 [19:21:28]Write i2c OK [19:21:28]MH_I2C_Read... [19:21:28]OFD Sender: No OFD packet to send [19:21:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:21:28]Read from MH i2c: E2 [19:21:28]MH_I2C_Read... [19:21:28]Read from MH i2c: E2 03 00 [19:21:28]MH_I2C_Read... [19:21:28]Read from MH i2c: E2 03 00 22 04 00 90 00 9A [19:21:28]RAPDU: 90 00 [19:21:28]wFMCommunicate OK [19:21:28]wFMCommunicate request_size=10 [19:21:28]MH_SAM_APDU [19:21:28]CAPDU: 80 0D 02 02 05 6B 87 CC 3F E2 [19:21:28]Write to MH i2c: E2 0D 00 23 04 80 0D 02 02 05 00 6B 87 CC 3F E2 00 00 8A [19:21:28]Write i2c OK [19:21:28]MH_I2C_Read... [19:21:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:21:28]Read from MH i2c: E2 [19:21:28]MH_I2C_Read... [19:21:28]Read from MH i2c: E2 03 00 [19:21:28]MH_I2C_Read... [19:21:28]Read from MH i2c: E2 03 00 23 04 00 90 00 9B [19:21:28]RAPDU: 90 00 [19:21:28]wFMCommunicate OK [19:21:28]wFMCommunicate request_size=4 [19:21:28]MH_SAM_APDU [19:21:28]CAPDU: 80 0D 03 02 [19:21:28]Write to MH i2c: E2 08 00 24 04 80 0D 03 02 00 00 00 00 A3 [19:21:28]Write i2c OK [19:21:28]MH_I2C_Read... [19:21:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:21:28]Read from MH i2c: E2 [19:21:28]MH_I2C_Read... [19:21:28]Read from MH i2c: E2 0B 00 [19:21:28]MH_I2C_Read... [19:21:28]Read from MH i2c: E2 0B 00 24 04 00 17 90 4C AC 77 66 E8 18 90 00 20 [19:21:28]RAPDU: 17 90 4C AC 77 66 E8 18 90 00 [19:21:28]wFMCommunicate OK [19:21:28]SAM_PROTO_SignData done [19:21:28]FM_MakeSignedData done [19:21:28]CreateOFDProtocolMessage [19:21:28]wFMCommunicate request_size=4 [19:21:28]MH_SAM_APDU [19:21:28]CAPDU: 80 11 00 00 [19:21:28]Write to MH i2c: E2 08 00 25 04 80 11 00 00 00 00 00 00 A3 [19:21:28]Write i2c OK [19:21:28]MH_I2C_Read... [19:21:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:21:28]Read from MH i2c: E2 [19:21:28]MH_I2C_Read... [19:21:28]Read from MH i2c: E2 17 00 [19:21:28]MH_I2C_Read... [19:21:28]Read from MH i2c: E2 17 00 25 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 F6 [19:21:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [19:21:28]wFMCommunicate OK [19:21:28]CreateOFDProtocolMessage done [19:21:28]OFDSenderStorePacket 104207 [19:21:28]StoreOFDPacket docnum=104207 [19:21: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 D3 B5 07 01 23 8C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 15 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 D7 8C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 0E 00 00 00 00 07 04 06 00 A0 8C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 B8 D2 75 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 0F 97 01 00 35 04 06 00 4E 6B 87 CC 3F E2 17 90 4C AC 77 66 E8 18 [19:21:28]CheckFolder [19:21:28]dirname=/storage/ofd_packets [19:21:28]CheckFolder done [19:21:28]ProducePacketName [19:21:28]name=ofd_packets/00104207 [19:21:28]NVStorageSaveData ofd_packets/00104207 [19:21:28]File name is /storage/ofd_packets/00104207 [19:21:28]Write 301 bytes [19:21:28]NVStorageSaveData done [19:21:28]OFDSenderStorePacket done [19:21:28]KKMCreateOFDPacket done [19:21:28]NVStorageSaveData kkm_last_timestamp [19:21:28]File name is /storage/kkm_last_timestamp [19:21:28]Write 4 bytes [19:21:28]NVStorageSaveData done [19:21:28]ExternCall_PrintAddStr [19:21:28]wPrintStart [19:21:28]Write to MH i2c: 01 00 00 26 04 2A [19:21:28]Write i2c OK [19:21:28]MH_I2C_Read... [19:21:28]Read from MH i2c: 01 [19:21:28]MH_I2C_Read... [19:21:28]Read from MH i2c: 01 07 00 [19:21:28]MH_I2C_Read... [19:21:28]Read from MH i2c: 01 07 00 26 04 00 00 00 00 00 FF 0F 3F [19:21:28]RasterBufferAndPrint [19:21:28]line Счет N : (1)673677 [19:21:28]line ИНН: 02508201610067 [19:21:28]line Контрольно-Кассовый Чек [19:21:28]line ПРОДАЖА [19:21:28]line ТРК (МРК, ГНК) : 42 [19:21:28]line Товар: 2710124130 [19:21:28]line Аи-92-К-5 [19:21:28]line 5.430 * 66.40 [19:21:28]line = 360.55 [19:21:28]line НДС 12% НСП 1% [19:21:28]line > о реализуемом товаре [19:21:28]line ОКРУГЛЕНИЕ: -0.55 [19:21:28]line ИТОГО: 360.00 [19:21:28]line Внесено: 360.00 [19:21:28]line СДАЧА: 0.00 [19:21:28]line НСП 1% : 3.19 [19:21:28]line НДС 12% : 38.29 [19:21:28]line Наличными: 360.00 [19:21:28]line Безнал.: 0.00 [19:21:28]line Место: АЗС № 120 "Партнер Нефть" [19:21:28]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [19:21:28]line СНО: Общий режим [19:21:28]line Чек 130 21.06.2024 19:21 [19:21:28]line Смена: 355 ФФД: 1.0 [19:21:28]line ЗНМ: 0300000164 [19:21:28]line РНМ: 0000000000092785 [19:21:28]line Версия ККМ: 001 [19:21:29]line ФМ: 0000000000875093 [19:21:29]line ФД: 104207 [19:21:29]line ФПД: 86223746777058 [19:21:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T192128&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104207&fm=86223746777058&tin=02508201610067®Number=0000000000092785&sum=36000 [19:21:29]OFD Sender: Processing packet 104207 [packets to send 17, broken 16] [19:21:29]ProducePacketName [19:21:29]name=ofd_packets/00104207 [19:21:29]OFD Sender: To server: pG, [19:21:29]CommunicateWithHost lk.salyk.kg:30040 [19:21:29]ConnectInit lk.salyk.kg [19:21:29]written 0, free lines is 4095 [19:21:29]Connected sock=10 [19:21: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 D3 B5 07 01 23 8C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 15 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 D7 8C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 0E 00 00 00 00 07 04 06 00 A0 8C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 B8 D2 75 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 0F 97 01 00 35 04 06 00 4E 6B 87 CC 3F E2 17 90 4C AC 77 66 E8 18 [19:21: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 8E C3 47 00 C4 74 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 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 97 01 00 F4 03 04 00 39 79 75 66 B6 04 01 00 00 5F 93 C4 16 A3 51 34 68 [19:21:29]CommunicateWithHost err = 0 [19:21:29]CheckOFDResponse [19:21:29]1017 (14) - 77093643461234 [19:21:29]1041 (16) - 0000000000875093 [19:21:29]1040 (4) - 104207 [19:21:29]1012 (4) - 21.06.2024 12:59 [19:21:29]1206 (1) - 0 [19:21:29]OFD Sender: Remove packet 104207 [19:21:29]ProducePacketName [19:21:29]name=ofd_packets/00104207 [19:21:29]NVStorageDeleteData [19:21:29]Write to MH i2c: 01 00 00 51 04 55 [19:21:29]Write i2c OK [19:21:29]MH_I2C_Read... [19:21:29]Read from MH i2c: 01 [19:21:29]MH_I2C_Read... [19:21:29]Read from MH i2c: 01 07 00 [19:21:29]MH_I2C_Read... [19:21:29]Read from MH i2c: 01 07 00 51 04 00 00 00 00 00 E5 0C 4D [19:21:29]RasterBufferAndPrint [19:21:29]line [19:21:29]line [19:21:29]line [19:21:29]line [19:21:29]line [19:21:29]written 0, free lines is 3307 [19:21:29]MH_Cut [19:21:29]Write to MH i2c: D1 01 00 58 04 01 2E [19:21:29]Write i2c OK [19:21:29]MH_I2C_Read... [19:21:29]Read from MH i2c: D1 [19:21:29]MH_I2C_Read... [19:21:29]Read from MH i2c: D1 01 00 [19:21:29]MH_I2C_Read... [19:21:29]Read from MH i2c: D1 01 00 58 04 00 2D [19:21:29]Write to MH i2c: 01 00 00 59 04 5D [19:21:29]Write i2c OK [19:21:29]MH_I2C_Read... [19:21:29]OFD Sender: No OFD packet to send [19:21:30]*** Cut start [19:21:30]*** Partial cut [19:21:30]*** CUTSNS_PIN = 1 [19:21:30]*** CUTSNS_PIN = 0 [19:21:30]*** Brake cut motor [19:21:30]Read from MH i2c: 01 [19:21:30]MH_I2C_Read... [19:21:30]*** Stop cut motor [19:21:30]*** Cut end [19:21:30]Read from MH i2c: 01 07 00 [19:21:30]MH_I2C_Read... [19:21:30]Read from MH i2c: 01 07 00 59 04 00 00 00 00 00 FF 0F 72 [19:21:30]process_action close_receipt done [19:21:30]requested_data is exist [19:21:30]produce_requested_data [19:21:30]requested_item fm.sn is exist - process it [19:21:30]wFMCommunicate request_size=4 [19:21:30]MH_SAM_APDU [19:21:30]CAPDU: 80 11 00 00 [19:21:30]Write to MH i2c: E2 08 00 5A 04 80 11 00 00 00 00 00 00 D8 [19:21:30]Write i2c OK [19:21:30]MH_I2C_Read... [19:21:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:21:30]Read from MH i2c: E2 [19:21:30]MH_I2C_Read... [19:21:30]Read from MH i2c: E2 17 00 [19:21:30]MH_I2C_Read... [19:21:30]Read from MH i2c: E2 17 00 5A 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 2B [19:21:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [19:21:30]wFMCommunicate OK [19:21:30]requested_item fd.num is exist - process it [19:21:30]SAM_PROTO_GetFieldsCounters [19:21:30]wFMCommunicate request_size=4 [19:21:30]MH_SAM_APDU [19:21:30]CAPDU: 80 13 00 00 [19:21:30]Write to MH i2c: E2 08 00 5B 04 80 13 00 00 00 00 00 00 DB [19:21:30]Write i2c OK [19:21:30]MH_I2C_Read... [19:21:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:21:31]Read from MH i2c: E2 [19:21:31]MH_I2C_Read... [19:21:31]Read from MH i2c: E2 62 00 [19:21:31]MH_I2C_Read... [19:21:31]Read from MH i2c: E2 62 00 5B 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 0F 97 01 00 0E 04 04 00 63 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 93 [19:21: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 0F 97 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 82 00 00 00 5E 04 04 00 82 00 00 00 57 04 04 00 83 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:21:31]wFMCommunicate OK [19:21:31]SAM_PROTO_GetFieldsCounters done [19:21:31]requested_item shift.num is exist - process it [19:21:31]requested_item shift.opened is exist - process it [19:21:31]req_shift_opened [19:21:31]FM_GetShiftState [19:21:31]SAM_PROTO_GetShiftState [19:21:31]wFMCommunicate request_size=4 [19:21:31]MH_SAM_APDU [19:21:31]CAPDU: 80 13 01 00 [19:21:31]Write to MH i2c: E2 08 00 5C 04 80 13 01 00 00 00 00 00 DD [19:21:31]Write i2c OK [19:21:31]MH_I2C_Read... [19:21:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:21:31]Read from MH i2c: E2 [19:21:31]MH_I2C_Read... [19:21:31]Read from MH i2c: E2 0E 00 [19:21:31]MH_I2C_Read... [19:21:31]Read from MH i2c: E2 0E 00 5C 04 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 F0 [19:21:31]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [19:21:31]wFMCommunicate OK [19:21:31]SAM_PROTO_GetShiftState done [19:21:31]FM_GetShiftState done [19:21:31]req_shift_opened done [19:21:31]requested_item shift.open_date is exist - process it [19:21:31]req_shift_open_date [19:21:31]req_shift_open_date done [19:21:31]produce_requested_data done [19:21:31]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104207,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [19:21:31]process_action_free close_receipt [19:21:31]json_value_free [19:21:31]json_value_free done [19:21:31]process_json_proto returns [19:21:31]Send response to host [19:21:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104207,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [19:21:31]free response buf [19:21:31]execute_script done [19:21:31]execute_script returns [19:21:31]free content buf [19:21:31]Sock 7.Close socket [19:21:31]Sock 7.Thread stoped [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:45]OFD Sender: No OFD packet to send [19:22:50]OFD Sender: No OFD packet to send [19:22:55]OFD Sender: No OFD packet to send [19:23:00]OFD Sender: No OFD packet to send [19:23:05]OFD Sender: No OFD packet to send [19:23:10]OFD Sender: No OFD packet to send [19:23:15]OFD Sender: No OFD packet to send [19:23:20]OFD Sender: No OFD packet to send [19:23:25]OFD Sender: No OFD packet to send [19:23:30]OFD Sender: No OFD packet to send [19:23:35]OFD Sender: No OFD packet to send [19:23:40]OFD Sender: No OFD packet to send [19:23:45]OFD Sender: No OFD packet to send [19:23:50]OFD Sender: No OFD packet to send [19:23:55]OFD Sender: No OFD packet to send [19:24:00]OFD Sender: No OFD packet to send [19:24:05]OFD Sender: No OFD packet to send [19:24:10]OFD Sender: No OFD packet to send [19:24:15]OFD Sender: No OFD packet to send [19:24:20]OFD Sender: No OFD packet to send [19:24:25]OFD Sender: No OFD packet to send [19:24:30]OFD Sender: No OFD packet to send [19:24:35]OFD Sender: No OFD packet to send [19:24:40]OFD Sender: No OFD packet to send [19:24:45]OFD Sender: No OFD packet to send [19:24:50]OFD Sender: No OFD packet to send [19:24:55]OFD Sender: No OFD packet to send [19:25:00]OFD Sender: No OFD packet to send [19:25:05]OFD Sender: No OFD packet to send [19:25:10]OFD Sender: No OFD packet to send [19:25:15]OFD Sender: No OFD packet to send [19:25:20]OFD Sender: No OFD packet to send [19:25:25]OFD Sender: No OFD packet to send [19:25:30]OFD Sender: No OFD packet to send [19:25:35]OFD Sender: No OFD packet to send [19:25:40]OFD Sender: No OFD packet to send [19:25:45]OFD Sender: No OFD packet to send [19:25:50]OFD Sender: No OFD packet to send [19:25:55]OFD Sender: No OFD packet to send [19:26:00]OFD Sender: No OFD packet to send [19:26:05]OFD Sender: No OFD packet to send [19:26:10]OFD Sender: No OFD packet to send [19:26:15]OFD Sender: No OFD packet to send [19:26:20]OFD Sender: No OFD packet to send [19:26:25]OFD Sender: No OFD packet to send [19:26:30]OFD Sender: No OFD packet to send [19:26:35]OFD Sender: No OFD packet to send [19:26:40]OFD Sender: No OFD packet to send [19:26:45]OFD Sender: No OFD packet to send [19:26:50]OFD Sender: No OFD packet to send [19:26:55]OFD Sender: No OFD packet to send [19:27:00]OFD Sender: No OFD packet to send [19:27:05]OFD Sender: No OFD packet to send [19:27:10]OFD Sender: No OFD packet to send [19:27:15]OFD Sender: No OFD packet to send [19:27:20]OFD Sender: No OFD packet to send [19:27:25]OFD Sender: No OFD packet to send [19:27:30]OFD Sender: No OFD packet to send [19:27:35]OFD Sender: No OFD packet to send [19:27:40]OFD Sender: No OFD packet to send [19:27:45]OFD Sender: No OFD packet to send [19:27:50]OFD Sender: No OFD packet to send [19:27:55]OFD Sender: No OFD packet to send [19:28:00]OFD Sender: No OFD packet to send [19:28:05]OFD Sender: No OFD packet to send [19:28:10]OFD Sender: No OFD packet to send [19:28:15]OFD Sender: No OFD packet to send [19:28:20]OFD Sender: No OFD packet to send [19:28:25]OFD Sender: No OFD packet to send [19:28:30]OFD Sender: No OFD packet to send [19:28:35]OFD Sender: No OFD packet to send [19:28:40]OFD Sender: No OFD packet to send [19:28:45]OFD Sender: No OFD packet to send [19:28:50]OFD Sender: No OFD packet to send [19:28:50]accept exits with 9 [19:28:50]New connection [19:28:50]New thread 3067616612 created [19:28:50]Thread 3067473252 joined [19:28:50]Waiting for new connection... [19:28:50] Sock 9.Parse request [19:28:50]Sock 9.Check first char [19:28:50]Sock 9.First char is OK [19:28:50]request: POST /json_proto HTTP/1.0 [19:28:50]Method: POST [19:28:50]URL: /json_proto [19:28:50]Method is POST - this is cgi request [19:28:50]url: /json_proto [19:28:50]query_string will be loaded in cgi processing [19:28:50]execute_cgi json_proto POST (null) [19:28:50]execute_cgi path=json_proto method=POST [19:28:50]POST find Content-Length [19:28:50]Host: 172.17.38.133:8080 [19:28:50]Content-Length: 682 [19:28:50]Content-Type: application/json [19:28:50] [19:28:50]POST finish read [19:28:50]Found Content-Length = 682 [19:28:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673678", "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.620, "sum" : 1369.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1369.00, "total" : 1369.00, "payments": [ { "type": 0, "sum" : 1369.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:28:50]execute_script... [19:28: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)673678", "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.620, "sum" : 1369.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1369.00, "total" : 1369.00, "payments": [ { "type": 0, "sum" : 1369.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:28:50]POST & json_proto [19:28:50]process_json_proto [19:28:50]json parsed OK: [19:28:50]protocol is kg_v1.0 [19:28:50]action value=close_receipt [19:28:50]process_action close_receipt [19:28:50]cmd_close_receipt [19:28:50]MH_GetDate [19:28:50]Write to MH i2c: F0 00 00 5D 04 50 [19:28:50]Write i2c OK [19:28:50]MH_I2C_Read... [19:28:50]Read from MH i2c: F0 [19:28:50]MH_I2C_Read... [19:28:50]Read from MH i2c: F0 09 00 [19:28:50]MH_I2C_Read... [19:28:50]Read from MH i2c: F0 09 00 5D 04 00 73 D4 75 66 BD 8F 7C 64 A7 [19:28:50]GetLastDocTimeStamp 1718997688 [19:28:50]current date 1718998131 [19:28:50]FM_GetShiftState [19:28:50]SAM_PROTO_GetShiftState [19:28:50]wFMCommunicate request_size=4 [19:28:50]MH_SAM_APDU [19:28:50]CAPDU: 80 13 01 00 [19:28:50]Write to MH i2c: E2 08 00 5E 04 80 13 01 00 00 00 00 00 DF [19:28:50]Write i2c OK [19:28:50]MH_I2C_Read... [19:28:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:28:50]Read from MH i2c: E2 [19:28:50]MH_I2C_Read... [19:28:50]Read from MH i2c: E2 0E 00 [19:28:50]MH_I2C_Read... [19:28:50]Read from MH i2c: E2 0E 00 5E 04 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 F2 [19:28:50]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [19:28:50]wFMCommunicate OK [19:28:50]SAM_PROTO_GetShiftState done [19:28:50]FM_GetShiftState done [19:28:50]opened in 1718929509 [19:28:50]opened+sec_in_day 1719015909 [19:28:50]quantity*price = 136916 [19:28:50]sum+1 = 136918 [19:28:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.17 ИТОГО: 1369.00 Внесено: 1369.00 СДАЧА: 0.00 НСП 1% : 12.12 НДС 12% : 145.40 Наличными: 1369.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 131 21.06.2024 19:28 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104208 ФПД: 138370078186267 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T192852&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104208&fm=138370078186267&tin=02508201610067®Number=0000000000092785&sum=136900 [19:28:52]StoreToDocumentArchive [19:28:52]shift 355 fd 104208 [19:28:52]save to /storage/0355/doc_00104208 [19:28:52]save last doc name /storage/0355/doc_00104208 to /storage/kkm_last_doc_name [19:28:52]save OK [19:28:52]Clear old archive folders... [19:28:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:28:52]tlvbuf is 006925F0 [19:28:52]SAM_PROTO_ClearQueue [19:28:52]wFMCommunicate request_size=4 [19:28:52]MH_SAM_APDU [19:28:52]CAPDU: 80 09 00 00 [19:28:52]Write to MH i2c: E2 08 00 6B 04 80 09 00 00 00 00 00 00 E1 [19:28:52]Write i2c OK [19:28:52]MH_I2C_Read... [19:28:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:28:52]Read from MH i2c: E2 [19:28:52]MH_I2C_Read... [19:28:52]Read from MH i2c: E2 03 00 [19:28:52]MH_I2C_Read... [19:28:52]Read from MH i2c: E2 03 00 6B 04 00 90 00 E3 [19:28:52]RAPDU: 90 00 [19:28:52]wFMCommunicate OK [19:28:52]SAM_PROTO_ClearQueue done [19:28:52]KKMCreateOFDPacket [19:28:52]OFDProtocolAddRootSTLVToBuf [19:28:52]FM_MakeSignedData [19:28:52]FM_MakeSignedData [19:28:52]SAM_PROTO_SignData [19:28:52]wFMCommunicate request_size=4 [19:28:52]MH_SAM_APDU [19:28:52]CAPDU: 80 0D 01 02 [19:28:52]Write to MH i2c: E2 08 00 6C 04 80 0D 01 02 00 00 00 00 E9 [19:28:52]Write i2c OK [19:28:52]MH_I2C_Read... [19:28:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:28:52]Read from MH i2c: E2 [19:28:52]MH_I2C_Read... [19:28:52]Read from MH i2c: E2 03 00 [19:28:52]MH_I2C_Read... [19:28:52]Read from MH i2c: E2 03 00 6C 04 00 90 00 E4 [19:28:52]RAPDU: 90 00 [19:28:52]wFMCommunicate OK [19:28:52]wFMCommunicate request_size=255 [19:28:52]MH_SAM_APDU [19:28: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 50 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 D5 16 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 16 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BC 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 38 00 00 00 00 07 04 06 00 C4 16 02 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 74 D4 75 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 10 97 01 00 35 04 06 00 7D [19:28:52]Write to MH i2c: E2 02 01 6D 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 8C 50 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 D5 16 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 16 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BC 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 38 00 00 00 00 07 04 06 00 C4 16 02 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 74 D4 75 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 10 97 01 00 35 04 06 00 7D 00 00 76 [19:28:52]Write i2c OK [19:28:52]MH_I2C_Read... [19:28:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:28:52]Read from MH i2c: E2 [19:28:52]MH_I2C_Read... [19:28:52]Read from MH i2c: E2 03 00 [19:28:52]MH_I2C_Read... [19:28:52]Read from MH i2c: E2 03 00 6D 04 00 90 00 E5 [19:28:52]RAPDU: 90 00 [19:28:52]wFMCommunicate OK [19:28:52]wFMCommunicate request_size=10 [19:28:52]MH_SAM_APDU [19:28:52]CAPDU: 80 0D 02 02 05 D8 CB 5B 9B 1B [19:28:52]Write to MH i2c: E2 0D 00 6E 04 80 0D 02 02 05 00 D8 CB 5B 9B 1B 00 00 AA [19:28:52]Write i2c OK [19:28:52]MH_I2C_Read... [19:28:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:28:52]Read from MH i2c: E2 [19:28:52]MH_I2C_Read... [19:28:52]Read from MH i2c: E2 03 00 [19:28:52]MH_I2C_Read... [19:28:52]Read from MH i2c: E2 03 00 6E 04 00 90 00 E6 [19:28:52]RAPDU: 90 00 [19:28:52]wFMCommunicate OK [19:28:52]wFMCommunicate request_size=4 [19:28:52]MH_SAM_APDU [19:28:52]CAPDU: 80 0D 03 02 [19:28:52]Write to MH i2c: E2 08 00 6F 04 80 0D 03 02 00 00 00 00 EE [19:28:52]Write i2c OK [19:28:52]MH_I2C_Read... [19:28:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:28:52]Read from MH i2c: E2 [19:28:52]MH_I2C_Read... [19:28:52]Read from MH i2c: E2 0B 00 [19:28:52]MH_I2C_Read... [19:28:52]Read from MH i2c: E2 0B 00 6F 04 00 42 B3 00 25 3B E0 68 CD 90 00 59 [19:28:52]RAPDU: 42 B3 00 25 3B E0 68 CD 90 00 [19:28:52]wFMCommunicate OK [19:28:52]SAM_PROTO_SignData done [19:28:52]FM_MakeSignedData done [19:28:52]CreateOFDProtocolMessage [19:28:52]wFMCommunicate request_size=4 [19:28:52]MH_SAM_APDU [19:28:52]CAPDU: 80 11 00 00 [19:28:52]Write to MH i2c: E2 08 00 70 04 80 11 00 00 00 00 00 00 EE [19:28:52]Write i2c OK [19:28:52]MH_I2C_Read... [19:28:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:28:52]Read from MH i2c: E2 [19:28:52]MH_I2C_Read... [19:28:52]Read from MH i2c: E2 17 00 [19:28:52]MH_I2C_Read... [19:28:52]Read from MH i2c: E2 17 00 70 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 41 [19:28: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:28:52]wFMCommunicate OK [19:28:52]CreateOFDProtocolMessage done [19:28:52]OFDSenderStorePacket 104208 [19:28:52]StoreOFDPacket docnum=104208 [19:28: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 7C 52 07 01 7F EF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8C 50 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 D5 16 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 16 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BC 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 38 00 00 00 00 07 04 06 00 C4 16 02 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 74 D4 75 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 10 97 01 00 35 04 06 00 7D D8 CB 5B 9B 1B 42 B3 00 25 3B E0 68 CD [19:28:52]CheckFolder [19:28:52]dirname=/storage/ofd_packets [19:28:52]CheckFolder done [19:28:52]ProducePacketName [19:28:52]name=ofd_packets/00104208 [19:28:52]NVStorageSaveData ofd_packets/00104208 [19:28:52]File name is /storage/ofd_packets/00104208 [19:28:52]Write 301 bytes [19:28:52]NVStorageSaveData done [19:28:52]OFDSenderStorePacket done [19:28:52]KKMCreateOFDPacket done [19:28:52]NVStorageSaveData kkm_last_timestamp [19:28:52]File name is /storage/kkm_last_timestamp [19:28:52]Write 4 bytes [19:28:52]NVStorageSaveData done [19:28:52]ExternCall_PrintAddStr [19:28:52]wPrintStart [19:28:52]Write to MH i2c: 01 00 00 71 04 75 [19:28:52]Write i2c OK [19:28:52]MH_I2C_Read... [19:28:52]Read from MH i2c: 01 [19:28:52]MH_I2C_Read... [19:28:52]Read from MH i2c: 01 07 00 [19:28:52]MH_I2C_Read... [19:28:52]Read from MH i2c: 01 07 00 71 04 00 00 00 00 00 FF 0F 8A [19:28:52]RasterBufferAndPrint [19:28:52]line Счет N : (1)673678 [19:28:52]line ИНН: 02508201610067 [19:28:52]line Контрольно-Кассовый Чек [19:28:52]line ПРОДАЖА [19:28:52]line ТРК (МРК, ГНК) : 32 [19:28:52]line Товар: 2710124130 [19:28:52]line Аи-92-К-5 [19:28:52]line 20.620 * 66.40 [19:28:52]line = 1369.17 [19:28:52]line НДС 12% НСП 1% [19:28:52]line > о реализуемом товаре [19:28:52]line ОКРУГЛЕНИЕ: -0.17 [19:28:52]line ИТОГО: 1369.00 [19:28:52]line Внесено: 1369.00 [19:28:52]line СДАЧА: 0.00 [19:28:52]line НСП 1% : 12.12 [19:28:52]line НДС 12% : 145.40 [19:28:52]line Наличными: 1369.00 [19:28:52]line Безнал.: 0.00 [19:28:52]line Место: АЗС № 120 "Партнер Нефть" [19:28:52]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [19:28:52]line СНО: Общий режим [19:28:52]line Чек 131 21.06.2024 19:28 [19:28:52]line Смена: 355 ФФД: 1.0 [19:28:52]line ЗНМ: 0300000164 [19:28:52]line РНМ: 0000000000092785 [19:28:52]line Версия ККМ: 001 [19:28:52]line ФМ: 0000000000875093 [19:28:52]line ФД: 104208 [19:28:52]line ФПД: 138370078186267 [19:28:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T192852&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104208&fm=138370078186267&tin=02508201610067®Number=0000000000092785&sum=136900 [19:28:52]OFD Sender: Processing packet 104208 [packets to send 17, broken 16] [19:28:52]ProducePacketName [19:28:52]name=ofd_packets/00104208 [19:28:52]OFD Sender: To server: pG, [19:28:52]CommunicateWithHost lk.salyk.kg:30040 [19:28:52]ConnectInit lk.salyk.kg [19:28:52]written 0, free lines is 4095 [19:28:53]Connected sock=10 [19:28: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 7C 52 07 01 7F EF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8C 50 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 D5 16 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 16 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BC 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 38 00 00 00 00 07 04 06 00 C4 16 02 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 74 D4 75 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 10 97 01 00 35 04 06 00 7D D8 CB 5B 9B 1B 42 B3 00 25 3B E0 68 CD [19:28: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 70 C2 47 00 A2 80 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 10 97 01 00 F4 03 04 00 F5 7A 75 66 B6 04 01 00 00 5E 29 1C 50 C4 AA 93 F2 [19:28:53]CommunicateWithHost err = 0 [19:28:53]CheckOFDResponse [19:28:53]1017 (14) - 77093643461234 [19:28:53]1041 (16) - 0000000000875093 [19:28:53]1040 (4) - 104208 [19:28:53]1012 (4) - 21.06.2024 13:07 [19:28:53]1206 (1) - 0 [19:28:53]OFD Sender: Remove packet 104208 [19:28:53]ProducePacketName [19:28:53]name=ofd_packets/00104208 [19:28:53]NVStorageDeleteData [19:28:53]Write to MH i2c: 01 00 00 9C 04 A0 [19:28:53]Write i2c OK [19:28:53]MH_I2C_Read... [19:28:53]Read from MH i2c: 01 [19:28:53]MH_I2C_Read... [19:28:53]Read from MH i2c: 01 07 00 [19:28:53]MH_I2C_Read... [19:28:53]Read from MH i2c: 01 07 00 9C 04 00 00 00 00 00 E4 0C 97 [19:28:53]RasterBufferAndPrint [19:28:53]line [19:28:53]line [19:28:53]line [19:28:53]line [19:28:53]line [19:28:53]written 0, free lines is 3306 [19:28:53]MH_Cut [19:28:53]Write to MH i2c: D1 01 00 A3 04 01 79 [19:28:53]Write i2c OK [19:28:53]MH_I2C_Read... [19:28:53]Read from MH i2c: D1 [19:28:53]MH_I2C_Read... [19:28:53]Read from MH i2c: D1 01 00 [19:28:53]MH_I2C_Read... [19:28:53]Read from MH i2c: D1 01 00 A3 04 00 78 [19:28:53]Write to MH i2c: 01 00 00 A4 04 A8 [19:28:53]Write i2c OK [19:28:53]MH_I2C_Read... [19:28:53]OFD Sender: No OFD packet to send [19:28:54]*** Cut start [19:28:54]*** Partial cut [19:28:54]*** CUTSNS_PIN = 1 [19:28:54]*** CUTSNS_PIN = 0 [19:28:54]*** Brake cut motor [19:28:54]Read from MH i2c: 01 [19:28:54]MH_I2C_Read... [19:28:54]*** Stop cut motor [19:28:54]*** Cut end [19:28:54]Read from MH i2c: 01 07 00 [19:28:54]MH_I2C_Read... [19:28:54]Read from MH i2c: 01 07 00 A4 04 00 00 00 00 00 FF 0F BD [19:28:54]process_action close_receipt done [19:28:54]requested_data is exist [19:28:54]produce_requested_data [19:28:54]requested_item fm.sn is exist - process it [19:28:54]wFMCommunicate request_size=4 [19:28:54]MH_SAM_APDU [19:28:54]CAPDU: 80 11 00 00 [19:28:54]Write to MH i2c: E2 08 00 A5 04 80 11 00 00 00 00 00 00 23 [19:28:54]Write i2c OK [19:28:54]MH_I2C_Read... [19:28:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:28:54]Read from MH i2c: E2 [19:28:54]MH_I2C_Read... [19:28:54]Read from MH i2c: E2 17 00 [19:28:54]MH_I2C_Read... [19:28:54]Read from MH i2c: E2 17 00 A5 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 76 [19:28:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [19:28:54]wFMCommunicate OK [19:28:54]requested_item fd.num is exist - process it [19:28:54]SAM_PROTO_GetFieldsCounters [19:28:54]wFMCommunicate request_size=4 [19:28:54]MH_SAM_APDU [19:28:54]CAPDU: 80 13 00 00 [19:28:54]Write to MH i2c: E2 08 00 A6 04 80 13 00 00 00 00 00 00 26 [19:28:54]Write i2c OK [19:28:54]MH_I2C_Read... [19:28:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:28:54]Read from MH i2c: E2 [19:28:54]MH_I2C_Read... [19:28:54]Read from MH i2c: E2 62 00 [19:28:54]MH_I2C_Read... [19:28:54]Read from MH i2c: E2 62 00 A6 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 10 97 01 00 0E 04 04 00 63 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 E2 [19:28: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 10 97 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 83 00 00 00 5E 04 04 00 83 00 00 00 57 04 04 00 84 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:28:54]wFMCommunicate OK [19:28:54]SAM_PROTO_GetFieldsCounters done [19:28:54]requested_item shift.num is exist - process it [19:28:54]requested_item shift.opened is exist - process it [19:28:54]req_shift_opened [19:28:54]FM_GetShiftState [19:28:54]SAM_PROTO_GetShiftState [19:28:54]wFMCommunicate request_size=4 [19:28:54]MH_SAM_APDU [19:28:54]CAPDU: 80 13 01 00 [19:28:54]Write to MH i2c: E2 08 00 A7 04 80 13 01 00 00 00 00 00 28 [19:28:54]Write i2c OK [19:28:54]MH_I2C_Read... [19:28:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:28:55]Read from MH i2c: E2 [19:28:55]MH_I2C_Read... [19:28:55]Read from MH i2c: E2 0E 00 [19:28:55]MH_I2C_Read... [19:28:55]Read from MH i2c: E2 0E 00 A7 04 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 3B [19:28:55]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [19:28:55]wFMCommunicate OK [19:28:55]SAM_PROTO_GetShiftState done [19:28:55]FM_GetShiftState done [19:28:55]req_shift_opened done [19:28:55]requested_item shift.open_date is exist - process it [19:28:55]req_shift_open_date [19:28:55]req_shift_open_date done [19:28:55]produce_requested_data done [19:28:55]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104208,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [19:28:55]process_action_free close_receipt [19:28:55]json_value_free [19:28:55]json_value_free done [19:28:55]process_json_proto returns [19:28:55]Send response to host [19:28:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104208,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [19:28:55]free response buf [19:28:55]execute_script done [19:28:55]execute_script returns [19:28:55]free content buf [19:28:55]Sock 9.Close socket [19:28:55]Sock 9.Thread stoped [19:28:58]OFD Sender: No OFD packet to send [19:29:03]OFD Sender: No OFD packet to send [19:29:08]OFD Sender: No OFD packet to send [19:29:13]OFD Sender: No OFD packet to send [19:29:18]OFD Sender: No OFD packet to send [19:29:23]OFD Sender: No OFD packet to send [19:29:28]OFD Sender: No OFD packet to send [19:29:33]OFD Sender: No OFD packet to send [19:29:38]OFD Sender: No OFD packet to send [19:29:43]OFD Sender: No OFD packet to send [19:29:48]OFD Sender: No OFD packet to send [19:29:53]OFD Sender: No OFD packet to send [19:29:58]OFD Sender: No OFD packet to send [19:30:03]OFD Sender: No OFD packet to send [19:30:08]OFD Sender: No OFD packet to send [19:30:13]OFD Sender: No OFD packet to send [19:30:18]OFD Sender: No OFD packet to send [19:30:23]OFD Sender: No OFD packet to send [19:30:28]OFD Sender: No OFD packet to send [19:30:33]OFD Sender: No OFD packet to send [19:30:38]OFD Sender: No OFD packet to send [19:30:43]OFD Sender: No OFD packet to send [19:30:48]OFD Sender: No OFD packet to send [19:30:53]OFD Sender: No OFD packet to send [19:30:58]OFD Sender: No OFD packet to send [19:31:03]OFD Sender: No OFD packet to send [19:31:09]OFD Sender: No OFD packet to send [19:31:14]OFD Sender: No OFD packet to send [19:31:19]OFD Sender: No OFD packet to send [19:31:24]OFD Sender: No OFD packet to send [19:31:29]OFD Sender: No OFD packet to send [19:31:34]OFD Sender: No OFD packet to send [19:31:39]OFD Sender: No OFD packet to send [19:31:44]OFD Sender: No OFD packet to send [19:31:49]OFD Sender: No OFD packet to send [19:31:54]OFD Sender: No OFD packet to send [19:31:59]OFD Sender: No OFD packet to send [19:32:04]OFD Sender: No OFD packet to send [19:32:09]OFD Sender: No OFD packet to send [19:32:14]OFD Sender: No OFD packet to send [19:32:19]OFD Sender: No OFD packet to send [19:32:24]OFD Sender: No OFD packet to send [19:32:29]OFD Sender: No OFD packet to send [19:32:34]OFD Sender: No OFD packet to send [19:32:39]OFD Sender: No OFD packet to send [19:32:44]OFD Sender: No OFD packet to send [19:32:49]OFD Sender: No OFD packet to send [19:32:54]OFD Sender: No OFD packet to send [19:32:59]OFD Sender: No OFD packet to send [19:33:04]OFD Sender: No OFD packet to send [19:33:09]OFD Sender: No OFD packet to send [19:33:14]OFD Sender: No OFD packet to send [19:33:19]OFD Sender: No OFD packet to send [19:33:24]OFD Sender: No OFD packet to send [19:33:29]OFD Sender: No OFD packet to send [19:33:34]OFD Sender: No OFD packet to send [19:33:39]OFD Sender: No OFD packet to send [19:33:44]OFD Sender: No OFD packet to send [19:33:49]OFD Sender: No OFD packet to send [19:33:54]OFD Sender: No OFD packet to send [19:33:59]OFD Sender: No OFD packet to send [19:34:04]OFD Sender: No OFD packet to send [19:34:09]OFD Sender: No OFD packet to send [19:34:14]OFD Sender: No OFD packet to send [19:34:19]OFD Sender: No OFD packet to send [19:34:24]OFD Sender: No OFD packet to send [19:34:29]OFD Sender: No OFD packet to send [19:34:34]OFD Sender: No OFD packet to send [19:34:39]OFD Sender: No OFD packet to send [19:34:44]OFD Sender: No OFD packet to send [19:34:49]OFD Sender: No OFD packet to send [19:34:54]OFD Sender: No OFD packet to send [19:34:59]OFD Sender: No OFD packet to send [19:35:04]OFD Sender: No OFD packet to send [19:35:09]OFD Sender: No OFD packet to send [19:35:14]OFD Sender: No OFD packet to send [19:35:19]OFD Sender: No OFD packet to send [19:35:24]OFD Sender: No OFD packet to send [19:35:29]OFD Sender: No OFD packet to send [19:35:34]OFD Sender: No OFD packet to send [19:35:39]OFD Sender: No OFD packet to send [19:35:44]OFD Sender: No OFD packet to send [19:35:49]OFD Sender: No OFD packet to send [19:35:54]OFD Sender: No OFD packet to send [19:35:59]OFD Sender: No OFD packet to send [19:36:04]OFD Sender: No OFD packet to send [19:36:09]OFD Sender: No OFD packet to send [19:36:14]OFD Sender: No OFD packet to send [19:36:19]OFD Sender: No OFD packet to send [19:36:24]OFD Sender: No OFD packet to send [19:36:29]OFD Sender: No OFD packet to send [19:36:34]OFD Sender: No OFD packet to send [19:36:37]accept exits with 7 [19:36:37]New connection [19:36:37]New thread 3067473252 created [19:36:37]Thread 3067616612 joined [19:36:37]Waiting for new connection... [19:36:37] Sock 7.Parse request [19:36:37]Sock 7.Check first char [19:36:37]Sock 7.First char is OK [19:36:37]request: POST /json_proto HTTP/1.0 [19:36:37]Method: POST [19:36:37]URL: /json_proto [19:36:37]Method is POST - this is cgi request [19:36:37]url: /json_proto [19:36:37]query_string will be loaded in cgi processing [19:36:37]execute_cgi json_proto POST (null) [19:36:37]execute_cgi path=json_proto method=POST [19:36:37]POST find Content-Length [19:36:37]Host: 172.17.38.133:8080 [19:36:37]Content-Length: 1184 [19:36:37]Content-Type: application/json [19:36:37] [19:36:37]POST finish read [19:36:37]Found Content-Length = 1184 [19:36: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 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)673680\u000A21.06.2024 19:13\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\u000A3888042\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:36:37]execute_script... [19:36: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 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)673680\u000A21.06.2024 19:13\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\u000A3888042\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:36:37]POST & json_proto [19:36:37]process_json_proto [19:36:37]json parsed OK: [19:36:37]protocol is kg_v1.0 [19:36:37]action value=print_text [19:36:37]process_action print_text [19:36:37]cmd_print_text [19:36:37]ExternCall_PrintAddStr [19:36:37]wPrintStart [19:36:37]Write to MH i2c: 01 00 00 A8 04 AC [19:36:37]Write i2c OK [19:36:37]MH_I2C_Read... [19:36:37]Read from MH i2c: 01 [19:36:37]MH_I2C_Read... [19:36:37]Read from MH i2c: 01 07 00 [19:36:37]MH_I2C_Read... [19:36:37]Read from MH i2c: 01 07 00 A8 04 00 00 00 00 00 FF 0F C1 [19:36:37]RasterBufferAndPrint [19:36:37]line *****ТОВАРНЫЙ ЧЕК***** [19:36:37]line АЗС 120 [19:36:37]line Партнер нефть [19:36:37]line 02508201610067 [19:36:37]line Кассир : Асанбаев Н. [19:36:37]line Счет N : (1)673680 [19:36:37]line 21.06.2024 19:13 [19:36:37]line ПРОДАЖА [19:36:37]line ТРК (МРК, ГНК): 42 [19:36:37]line Вид ГСМ : 2710124130 [19:36:37]line Аи-92-К-5 [19:36:37]line 10.000 x 66.40 [19:36:37]line ИТОГ: 664.00 [19:36:37]line Тип оплаты: Талоны: Партнер нефть [19:36:37]line 3888042 [19:36:37]line ______________________ [19:36:37]line (подпись) [19:36:37]written 0, free lines is 4095 [19:36:37]Write to MH i2c: 01 00 00 BC 04 C0 [19:36:37]Write i2c OK [19:36:37]MH_I2C_Read... [19:36:37]Read from MH i2c: 01 [19:36:37]MH_I2C_Read... [19:36:37]Read from MH i2c: 01 07 00 [19:36:37]MH_I2C_Read... [19:36:37]Read from MH i2c: 01 07 00 BC 04 00 00 00 00 00 11 0E E6 [19:36:37]RasterBufferAndPrint [19:36:37]line [19:36:37]line [19:36:37]line [19:36:37]line [19:36:37]line [19:36:37]written 0, free lines is 3602 [19:36:37]MH_Cut [19:36:37]Write to MH i2c: D1 01 00 C3 04 01 99 [19:36:37]Write i2c OK [19:36:37]MH_I2C_Read... [19:36:37]Read from MH i2c: D1 [19:36:37]MH_I2C_Read... [19:36:37]Read from MH i2c: D1 01 00 [19:36:37]MH_I2C_Read... [19:36:37]Read from MH i2c: D1 01 00 C3 04 00 98 [19:36:37]Write to MH i2c: 01 00 00 C4 04 C8 [19:36:37]Write i2c OK [19:36:37]MH_I2C_Read... [19:36:38]*** Cut start [19:36:38]*** Partial cut [19:36:38]*** CUTSNS_PIN = 1 [19:36:38]*** CUTSNS_PIN = 0 [19:36:38]*** Brake cut motor [19:36:39]Read from MH i2c: 01 [19:36:39]MH_I2C_Read... [19:36:39]*** Stop cut motor [19:36:39]*** Cut end [19:36:39]Read from MH i2c: 01 07 00 [19:36:39]MH_I2C_Read... [19:36:39]Read from MH i2c: 01 07 00 C4 04 00 00 00 00 00 FF 0F DD [19:36:39]process_action print_text done [19:36:39]requested_data is exist [19:36:39]produce_requested_data [19:36:39]requested_item fm.sn is exist - process it [19:36:39]wFMCommunicate request_size=4 [19:36:39]MH_SAM_APDU [19:36:39]CAPDU: 80 11 00 00 [19:36:39]Write to MH i2c: E2 08 00 C5 04 80 11 00 00 00 00 00 00 43 [19:36:39]Write i2c OK [19:36:39]MH_I2C_Read... [19:36:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:36:39]Read from MH i2c: E2 [19:36:39]MH_I2C_Read... [19:36:39]Read from MH i2c: E2 17 00 [19:36:39]MH_I2C_Read... [19:36:39]Read from MH i2c: E2 17 00 C5 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 96 [19:36:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [19:36:39]wFMCommunicate OK [19:36:39]requested_item fd.num is exist - process it [19:36:39]SAM_PROTO_GetFieldsCounters [19:36:39]wFMCommunicate request_size=4 [19:36:39]MH_SAM_APDU [19:36:39]CAPDU: 80 13 00 00 [19:36:39]Write to MH i2c: E2 08 00 C6 04 80 13 00 00 00 00 00 00 46 [19:36:39]Write i2c OK [19:36:39]MH_I2C_Read... [19:36:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:36:39]Read from MH i2c: E2 [19:36:39]MH_I2C_Read... [19:36:39]Read from MH i2c: E2 62 00 [19:36:39]MH_I2C_Read... [19:36:39]Read from MH i2c: E2 62 00 C6 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 10 97 01 00 0E 04 04 00 63 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 02 [19:36: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 10 97 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 83 00 00 00 5E 04 04 00 83 00 00 00 57 04 04 00 84 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:36:39]wFMCommunicate OK [19:36:39]SAM_PROTO_GetFieldsCounters done [19:36:39]requested_item shift.num is exist - process it [19:36:39]requested_item shift.opened is exist - process it [19:36:39]req_shift_opened [19:36:39]FM_GetShiftState [19:36:39]SAM_PROTO_GetShiftState [19:36:39]wFMCommunicate request_size=4 [19:36:39]MH_SAM_APDU [19:36:39]CAPDU: 80 13 01 00 [19:36:39]Write to MH i2c: E2 08 00 C7 04 80 13 01 00 00 00 00 00 48 [19:36:39]Write i2c OK [19:36:39]MH_I2C_Read... [19:36:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:36:39]Read from MH i2c: E2 [19:36:39]MH_I2C_Read... [19:36:39]Read from MH i2c: E2 0E 00 [19:36:39]MH_I2C_Read... [19:36:39]Read from MH i2c: E2 0E 00 C7 04 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 5B [19:36:39]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [19:36:39]wFMCommunicate OK [19:36:39]SAM_PROTO_GetShiftState done [19:36:39]FM_GetShiftState done [19:36:39]req_shift_opened done [19:36:39]requested_item shift.open_date is exist - process it [19:36:39]req_shift_open_date [19:36:39]req_shift_open_date done [19:36:39]produce_requested_data done [19:36:39]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104208,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [19:36:39]process_action_free print_text [19:36:39]json_value_free [19:36:39]json_value_free done [19:36:39]process_json_proto returns [19:36:39]Send response to host [19:36:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104208,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [19:36:39]free response buf [19:36:39]execute_script done [19:36:39]execute_script returns [19:36:39]free content buf [19:36:39]Sock 7.Close socket [19:36:39]Sock 7.Thread stoped [19:36:39]OFD Sender: No OFD packet to send [19:36:39]accept exits with 9 [19:36:39]New connection [19:36:39]New thread 3067616612 created [19:36:39]Thread 3067473252 joined [19:36:39]Waiting for new connection... [19:36:39] Sock 9.Parse request [19:36:39]Sock 9.Check first char [19:36:39]Sock 9.First char is OK [19:36:39]request: POST /json_proto HTTP/1.0 [19:36:39]Method: POST [19:36:39]URL: /json_proto [19:36:39]Method is POST - this is cgi request [19:36:39]url: /json_proto [19:36:39]query_string will be loaded in cgi processing [19:36:39]execute_cgi json_proto POST (null) [19:36:39]execute_cgi path=json_proto method=POST [19:36:39]POST find Content-Length [19:36:39]Host: 172.17.38.133:8080 [19:36:39]Content-Length: 1200 [19:36:39]Content-Type: application/json [19:36:39] [19:36:39]POST finish read [19:36:39]Found Content-Length = 1200 [19:36: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 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)673679\u000A21.06.2024 19:13\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 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\u000A01088\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:36:39]execute_script... [19:36: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 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)673679\u000A21.06.2024 19:13\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 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\u000A01088\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:36:39]POST & json_proto [19:36:39]process_json_proto [19:36:39]json parsed OK: [19:36:39]protocol is kg_v1.0 [19:36:39]action value=print_text [19:36:39]process_action print_text [19:36:39]cmd_print_text [19:36:39]ExternCall_PrintAddStr [19:36:39]wPrintStart [19:36:39]Write to MH i2c: 01 00 00 C8 04 CC [19:36:39]Write i2c OK [19:36:39]MH_I2C_Read... [19:36:39]Read from MH i2c: 01 [19:36:39]MH_I2C_Read... [19:36:39]Read from MH i2c: 01 07 00 [19:36:39]MH_I2C_Read... [19:36:39]Read from MH i2c: 01 07 00 C8 04 00 00 00 00 00 FF 0F E1 [19:36:39]RasterBufferAndPrint [19:36:39]line *****ТОВАРНЫЙ ЧЕК***** [19:36:39]line АЗС 120 [19:36:39]line Партнер нефть [19:36:39]line 02508201610067 [19:36:39]line Кассир : Асанбаев Н. [19:36:39]line Счет N : (1)673679 [19:36:39]line 21.06.2024 19:13 [19:36:39]line ПРОДАЖА [19:36:39]line ТРК (МРК, ГНК): 21 [19:36:39]line Вид ГСМ : 2710194210 [19:36:39]line ДТ(л)-К-5 [19:36:39]line 54.870 x 72.90 [19:36:39]line ИТОГ: 4000.02 [19:36:39]line Тип оплаты: Талоны: Топливная Карта [19:36:39]line 01088 [19:36:39]line ______________________ [19:36:39]line (подпись) [19:36:39]written 0, free lines is 4095 [19:36:39]Write to MH i2c: 01 00 00 DC 04 E0 [19:36:39]Write i2c OK [19:36:39]MH_I2C_Read... [19:36:39]Read from MH i2c: 01 [19:36:39]MH_I2C_Read... [19:36:39]Read from MH i2c: 01 07 00 [19:36:39]MH_I2C_Read... [19:36:39]Read from MH i2c: 01 07 00 DC 04 00 00 00 00 00 0F 0E 04 [19:36:39]RasterBufferAndPrint [19:36:39]line [19:36:39]line [19:36:39]line [19:36:39]line [19:36:39]line [19:36:39]written 0, free lines is 3601 [19:36:39]MH_Cut [19:36:39]Write to MH i2c: D1 01 00 E3 04 01 B9 [19:36:39]Write i2c OK [19:36:39]MH_I2C_Read... [19:36:39]Read from MH i2c: D1 [19:36:39]MH_I2C_Read... [19:36:39]Read from MH i2c: D1 01 00 [19:36:39]MH_I2C_Read... [19:36:39]Read from MH i2c: D1 01 00 E3 04 00 B8 [19:36:39]Write to MH i2c: 01 00 00 E4 04 E8 [19:36:39]Write i2c OK [19:36:39]MH_I2C_Read... [19:36:40]*** Cut start [19:36:40]*** Partial cut [19:36:40]*** CUTSNS_PIN = 1 [19:36:40]*** CUTSNS_PIN = 0 [19:36:40]*** Brake cut motor [19:36:40]Read from MH i2c: 01 [19:36:40]MH_I2C_Read... [19:36:40]Read from MH i2c: 01 07 00 [19:36:40]MH_I2C_Read... [19:36:40]*** Stop cut motor [19:36:40]*** Cut end [19:36:40]Read from MH i2c: 01 07 00 E4 04 00 00 00 00 00 FF 0F FD [19:36:40]process_action print_text done [19:36:40]requested_data is exist [19:36:40]produce_requested_data [19:36:40]requested_item fm.sn is exist - process it [19:36:40]wFMCommunicate request_size=4 [19:36:40]MH_SAM_APDU [19:36:40]CAPDU: 80 11 00 00 [19:36:40]Write to MH i2c: E2 08 00 E5 04 80 11 00 00 00 00 00 00 63 [19:36:40]Write i2c OK [19:36:40]MH_I2C_Read... [19:36:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:36:40]Read from MH i2c: E2 [19:36:40]MH_I2C_Read... [19:36:40]Read from MH i2c: E2 17 00 [19:36:40]MH_I2C_Read... [19:36:40]Read from MH i2c: E2 17 00 E5 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 B6 [19:36: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:36:40]wFMCommunicate OK [19:36:40]requested_item fd.num is exist - process it [19:36:40]SAM_PROTO_GetFieldsCounters [19:36:40]wFMCommunicate request_size=4 [19:36:40]MH_SAM_APDU [19:36:40]CAPDU: 80 13 00 00 [19:36:40]Write to MH i2c: E2 08 00 E6 04 80 13 00 00 00 00 00 00 66 [19:36:40]Write i2c OK [19:36:40]MH_I2C_Read... [19:36:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:36:41]Read from MH i2c: E2 [19:36:41]MH_I2C_Read... [19:36:41]Read from MH i2c: E2 62 00 [19:36:41]MH_I2C_Read... [19:36:41]Read from MH i2c: E2 62 00 E6 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 10 97 01 00 0E 04 04 00 63 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 22 [19:36: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 10 97 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 83 00 00 00 5E 04 04 00 83 00 00 00 57 04 04 00 84 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:36:41]wFMCommunicate OK [19:36:41]SAM_PROTO_GetFieldsCounters done [19:36:41]requested_item shift.num is exist - process it [19:36:41]requested_item shift.opened is exist - process it [19:36:41]req_shift_opened [19:36:41]FM_GetShiftState [19:36:41]SAM_PROTO_GetShiftState [19:36:41]wFMCommunicate request_size=4 [19:36:41]MH_SAM_APDU [19:36:41]CAPDU: 80 13 01 00 [19:36:41]Write to MH i2c: E2 08 00 E7 04 80 13 01 00 00 00 00 00 68 [19:36:41]Write i2c OK [19:36:41]MH_I2C_Read... [19:36:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:36:41]Read from MH i2c: E2 [19:36:41]MH_I2C_Read... [19:36:41]Read from MH i2c: E2 0E 00 [19:36:41]MH_I2C_Read... [19:36:41]Read from MH i2c: E2 0E 00 E7 04 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 7B [19:36:41]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [19:36:41]wFMCommunicate OK [19:36:41]SAM_PROTO_GetShiftState done [19:36:41]FM_GetShiftState done [19:36:41]req_shift_opened done [19:36:41]requested_item shift.open_date is exist - process it [19:36:41]req_shift_open_date [19:36:41]req_shift_open_date done [19:36:41]produce_requested_data done [19:36:41]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104208,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [19:36:41]process_action_free print_text [19:36:41]json_value_free [19:36:41]json_value_free done [19:36:41]process_json_proto returns [19:36:41]Send response to host [19:36:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104208,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [19:36:41]free response buf [19:36:41]execute_script done [19:36:41]execute_script returns [19:36:41]free content buf [19:36:41]Sock 9.Close socket [19:36:41]Sock 9.Thread stoped [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]accept exits with 10 [19:40:19]New connection [19:40:19]New thread 3067473252 created [19:40:19]Thread 3067616612 joined [19:40:19]Waiting for new connection... [19:40:19] Sock 10.Parse request [19:40:19]Sock 10.Check first char [19:40:19]Sock 10.First char is OK [19:40:19]request: POST /json_proto HTTP/1.0 [19:40:19]Method: POST [19:40:19]URL: /json_proto [19:40:19]Method is POST - this is cgi request [19:40:19]url: /json_proto [19:40:19]query_string will be loaded in cgi processing [19:40:19]execute_cgi json_proto POST (null) [19:40:19]execute_cgi path=json_proto method=POST [19:40:19]POST find Content-Length [19:40:19]Host: 172.17.38.133:8080 [19:40:19]Content-Length: 677 [19:40:19]Content-Type: application/json [19:40:19] [19:40:19]POST finish read [19:40:19]Found Content-Length = 677 [19:40:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673681", "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" ] } } [19:40:19]execute_script... [19:40: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)673681", "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" ] } } [19:40:19]POST & json_proto [19:40:19]process_json_proto [19:40:19]json parsed OK: [19:40:19]protocol is kg_v1.0 [19:40:19]action value=close_receipt [19:40:19]process_action close_receipt [19:40:19]cmd_close_receipt [19:40:19]MH_GetDate [19:40:19]Write to MH i2c: F0 00 00 E8 04 DB [19:40:19]Write i2c OK [19:40:19]MH_I2C_Read... [19:40:19]Read from MH i2c: F0 [19:40:19]MH_I2C_Read... [19:40:19]Read from MH i2c: F0 09 00 [19:40:19]MH_I2C_Read... [19:40:19]Read from MH i2c: F0 09 00 E8 04 00 24 D7 75 66 BD 8F 7C 64 E6 [19:40:19]GetLastDocTimeStamp 1718998132 [19:40:19]current date 1718998820 [19:40:19]FM_GetShiftState [19:40:19]SAM_PROTO_GetShiftState [19:40:19]wFMCommunicate request_size=4 [19:40:19]MH_SAM_APDU [19:40:19]CAPDU: 80 13 01 00 [19:40:19]Write to MH i2c: E2 08 00 E9 04 80 13 01 00 00 00 00 00 6A [19:40:19]Write i2c OK [19:40:19]MH_I2C_Read... [19:40:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:40:19]Read from MH i2c: E2 [19:40:19]MH_I2C_Read... [19:40:19]Read from MH i2c: E2 0E 00 [19:40:19]MH_I2C_Read... [19:40:19]Read from MH i2c: E2 0E 00 E9 04 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 7D [19:40:19]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [19:40:19]wFMCommunicate OK [19:40:19]SAM_PROTO_GetShiftState done [19:40:19]FM_GetShiftState done [19:40:19]opened in 1718929509 [19:40:19]opened+sec_in_day 1719015909 [19:40:19]quantity*price = 40039 [19:40:19]sum+1 = 40040 [19:40:19]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 СНО: Общий режим Чек 132 21.06.2024 19:40 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104209 ФПД: 229260333874676 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T194020&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104209&fm=229260333874676&tin=02508201610067®Number=0000000000092785&sum=40000 [19:40:20]StoreToDocumentArchive [19:40:20]shift 355 fd 104209 [19:40:20]save to /storage/0355/doc_00104209 [19:40:20]save last doc name /storage/0355/doc_00104209 to /storage/kkm_last_doc_name [19:40:20]save OK [19:40:20]Clear old archive folders... [19:40:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:40:20]tlvbuf is 006A60D0 [19:40:20]SAM_PROTO_ClearQueue [19:40:20]wFMCommunicate request_size=4 [19:40:20]MH_SAM_APDU [19:40:20]CAPDU: 80 09 00 00 [19:40:20]Write to MH i2c: E2 08 00 F6 04 80 09 00 00 00 00 00 00 6C [19:40:20]Write i2c OK [19:40:20]MH_I2C_Read... [19:40:20]Read from MH i2c: E2 [19:40:20]MH_I2C_Read... [19:40:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:40:20]Read from MH i2c: E2 03 00 [19:40:20]MH_I2C_Read... [19:40:20]Read from MH i2c: E2 03 00 F6 04 00 90 00 6E [19:40:20]RAPDU: 90 00 [19:40:20]wFMCommunicate OK [19:40:20]SAM_PROTO_ClearQueue done [19:40:20]KKMCreateOFDPacket [19:40:20]OFDProtocolAddRootSTLVToBuf [19:40:20]FM_MakeSignedData [19:40:20]FM_MakeSignedData [19:40:20]SAM_PROTO_SignData [19:40:20]wFMCommunicate request_size=4 [19:40:20]MH_SAM_APDU [19:40:20]CAPDU: 80 0D 01 02 [19:40:20]Write to MH i2c: E2 08 00 F7 04 80 0D 01 02 00 00 00 00 74 [19:40:20]Write i2c OK [19:40:20]MH_I2C_Read... [19:40:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:40:20]Read from MH i2c: E2 [19:40:20]MH_I2C_Read... [19:40:20]Read from MH i2c: E2 03 00 [19:40:20]MH_I2C_Read... [19:40:20]Read from MH i2c: E2 03 00 F7 04 00 90 00 6F [19:40:20]RAPDU: 90 00 [19:40:20]wFMCommunicate OK [19:40:20]wFMCommunicate request_size=255 [19:40:20]MH_SAM_APDU [19:40: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 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 84 00 00 00 F4 03 04 00 24 D7 75 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 11 97 01 00 35 04 06 00 D0 [19:40:20]Write to MH i2c: E2 02 01 F8 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 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 84 00 00 00 F4 03 04 00 24 D7 75 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 11 97 01 00 35 04 06 00 D0 00 00 33 [19:40:20]Write i2c OK [19:40:20]MH_I2C_Read... [19:40:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:40:20]Read from MH i2c: E2 [19:40:20]MH_I2C_Read... [19:40:20]Read from MH i2c: E2 03 00 [19:40:20]MH_I2C_Read... [19:40:20]Read from MH i2c: E2 03 00 F8 04 00 90 00 70 [19:40:20]RAPDU: 90 00 [19:40:20]wFMCommunicate OK [19:40:20]wFMCommunicate request_size=10 [19:40:20]MH_SAM_APDU [19:40:20]CAPDU: 80 0D 02 02 05 82 D4 C2 FD F4 [19:40:20]Write to MH i2c: E2 0D 00 F9 04 80 0D 02 02 05 00 82 D4 C2 FD F4 00 00 8A [19:40:20]Write i2c OK [19:40:20]MH_I2C_Read... [19:40:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:40:20]Read from MH i2c: E2 [19:40:20]MH_I2C_Read... [19:40:20]Read from MH i2c: E2 03 00 [19:40:20]MH_I2C_Read... [19:40:20]Read from MH i2c: E2 03 00 F9 04 00 90 00 71 [19:40:20]RAPDU: 90 00 [19:40:20]wFMCommunicate OK [19:40:20]wFMCommunicate request_size=4 [19:40:20]MH_SAM_APDU [19:40:20]CAPDU: 80 0D 03 02 [19:40:20]Write to MH i2c: E2 08 00 FA 04 80 0D 03 02 00 00 00 00 79 [19:40:20]Write i2c OK [19:40:20]MH_I2C_Read... [19:40:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:40:20]Read from MH i2c: E2 [19:40:20]MH_I2C_Read... [19:40:20]Read from MH i2c: E2 0B 00 [19:40:20]MH_I2C_Read... [19:40:20]Read from MH i2c: E2 0B 00 FA 04 00 83 07 C8 73 A7 C9 03 F0 90 00 A2 [19:40:20]RAPDU: 83 07 C8 73 A7 C9 03 F0 90 00 [19:40:20]wFMCommunicate OK [19:40:20]SAM_PROTO_SignData done [19:40:20]FM_MakeSignedData done [19:40:20]CreateOFDProtocolMessage [19:40:20]wFMCommunicate request_size=4 [19:40:20]MH_SAM_APDU [19:40:20]CAPDU: 80 11 00 00 [19:40:20]Write to MH i2c: E2 08 00 FB 04 80 11 00 00 00 00 00 00 79 [19:40:20]Write i2c OK [19:40:20]MH_I2C_Read... [19:40:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:40:20]Read from MH i2c: E2 [19:40:20]MH_I2C_Read... [19:40:20]Read from MH i2c: E2 17 00 [19:40:20]MH_I2C_Read... [19:40:20]Read from MH i2c: E2 17 00 FB 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 CC [19:40: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:40:20]wFMCommunicate OK [19:40:20]CreateOFDProtocolMessage done [19:40:20]OFDSenderStorePacket 104209 [19:40:20]StoreOFDPacket docnum=104209 [19:40: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 1F A8 07 01 05 2A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 84 00 00 00 F4 03 04 00 24 D7 75 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 11 97 01 00 35 04 06 00 D0 82 D4 C2 FD F4 83 07 C8 73 A7 C9 03 F0 [19:40:20]CheckFolder [19:40:20]dirname=/storage/ofd_packets [19:40:20]CheckFolder done [19:40:20]ProducePacketName [19:40:20]name=ofd_packets/00104209 [19:40:20]NVStorageSaveData ofd_packets/00104209 [19:40:20]File name is /storage/ofd_packets/00104209 [19:40:20]Write 301 bytes [19:40:20]NVStorageSaveData done [19:40:20]OFDSenderStorePacket done [19:40:20]KKMCreateOFDPacket done [19:40:20]NVStorageSaveData kkm_last_timestamp [19:40:20]File name is /storage/kkm_last_timestamp [19:40:20]Write 4 bytes [19:40:20]NVStorageSaveData done [19:40:20]ExternCall_PrintAddStr [19:40:20]wPrintStart [19:40:20]Write to MH i2c: 01 00 00 FC 04 00 [19:40:20]Write i2c OK [19:40:20]MH_I2C_Read... [19:40:20]Read from MH i2c: 01 [19:40:20]MH_I2C_Read... [19:40:20]Read from MH i2c: 01 07 00 [19:40:20]MH_I2C_Read... [19:40:20]Read from MH i2c: 01 07 00 FC 04 00 00 00 00 00 FF 0F 15 [19:40:20]RasterBufferAndPrint [19:40:20]line Счет N : (1)673681 [19:40:20]line ИНН: 02508201610067 [19:40:20]line Контрольно-Кассовый Чек [19:40:20]line ПРОДАЖА [19:40:20]line ТРК (МРК, ГНК) : 32 [19:40:20]line Товар: 2710124130 [19:40:20]line Аи-92-К-5 [19:40:20]line 6.030 * 66.40 [19:40:20]line = 400.39 [19:40:20]line НДС 12% НСП 1% [19:40:20]line > о реализуемом товаре [19:40:20]line ОКРУГЛЕНИЕ: -0.39 [19:40:20]line ИТОГО: 400.00 [19:40:20]line Внесено: 400.00 [19:40:20]line СДАЧА: 0.00 [19:40:20]line НСП 1% : 3.54 [19:40:20]line НДС 12% : 42.52 [19:40:20]line Наличными: 400.00 [19:40:20]line Безнал.: 0.00 [19:40:20]line Место: АЗС № 120 "Партнер Нефть" [19:40:20]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [19:40:20]line СНО: Общий режим [19:40:20]line Чек 132 21.06.2024 19:40 [19:40:20]line Смена: 355 ФФД: 1.0 [19:40:20]line ЗНМ: 0300000164 [19:40:20]line РНМ: 0000000000092785 [19:40:20]line Версия ККМ: 001 [19:40:20]line ФМ: 0000000000875093 [19:40:20]line ФД: 104209 [19:40:20]line ФПД: 229260333874676 [19:40:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T194020&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104209&fm=229260333874676&tin=02508201610067®Number=0000000000092785&sum=40000 [19:40:21]OFD Sender: Processing packet 104209 [packets to send 17, broken 16] [19:40:21]ProducePacketName [19:40:21]name=ofd_packets/00104209 [19:40:21]OFD Sender: To server: pG, [19:40:21]CommunicateWithHost lk.salyk.kg:30040 [19:40:21]ConnectInit lk.salyk.kg [19:40:21]written 0, free lines is 4095 [19:40:21]Connected sock=9 [19:40: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 1F A8 07 01 05 2A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 84 00 00 00 F4 03 04 00 24 D7 75 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 11 97 01 00 35 04 06 00 D0 82 D4 C2 FD F4 83 07 C8 73 A7 C9 03 F0 [19:40:21]Write to MH i2c: 01 00 00 27 05 2C [19:40:21]Write i2c OK [19:40:21]MH_I2C_Read... [19:40:21]Read from MH i2c: 01 [19:40:21]MH_I2C_Read... [19:40:21]Read from MH i2c: 01 07 00 [19:40:21]MH_I2C_Read... [19:40:21]Read from MH i2c: 01 07 00 27 05 00 00 00 00 00 DA 0C 19 [19:40:21]RasterBufferAndPrint [19:40:21]line [19:40:21]line [19:40:21]line [19:40:21]line [19:40:21]line [19:40:21]written 0, free lines is 3297 [19:40:21]MH_Cut [19:40:21]Write to MH i2c: D1 01 00 2E 05 01 05 [19:40:21]Write i2c OK [19:40:21]MH_I2C_Read... [19:40:21]Read from MH i2c: D1 [19:40:21]MH_I2C_Read... [19:40:21]Read from MH i2c: D1 01 00 [19:40:21]MH_I2C_Read... [19:40:21]Read from MH i2c: D1 01 00 2E 05 00 04 [19:40:21]Write to MH i2c: 01 00 00 2F 05 34 [19:40:21]Write i2c OK [19:40:21]MH_I2C_Read... [19:40: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 54 70 47 00 4C 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 11 97 01 00 F4 03 04 00 A5 7D 75 66 B6 04 01 00 00 80 39 E7 4D B0 A0 A7 3B [19:40:21]CommunicateWithHost err = 0 [19:40:21]CheckOFDResponse [19:40:21]1017 (14) - 77093643461234 [19:40:21]1041 (16) - 0000000000875093 [19:40:21]1040 (4) - 104209 [19:40:21]1012 (4) - 21.06.2024 13:18 [19:40:21]1206 (1) - 0 [19:40:21]OFD Sender: Remove packet 104209 [19:40:21]ProducePacketName [19:40:21]name=ofd_packets/00104209 [19:40:21]NVStorageDeleteData [19:40:22]OFD Sender: No OFD packet to send [19:40:22]*** Cut start [19:40:22]*** Partial cut [19:40:22]*** CUTSNS_PIN = 1 [19:40:22]*** CUTSNS_PIN = 0 [19:40:22]*** Brake cut motor [19:40:23]Read from MH i2c: 01 [19:40:23]MH_I2C_Read... [19:40:23]*** Stop cut motor [19:40:23]*** Cut end [19:40:23]Read from MH i2c: 01 07 00 [19:40:23]MH_I2C_Read... [19:40:23]Read from MH i2c: 01 07 00 2F 05 00 00 00 00 00 FF 0F 49 [19:40:23]process_action close_receipt done [19:40:23]requested_data is exist [19:40:23]produce_requested_data [19:40:23]requested_item fm.sn is exist - process it [19:40:23]wFMCommunicate request_size=4 [19:40:23]MH_SAM_APDU [19:40:23]CAPDU: 80 11 00 00 [19:40:23]Write to MH i2c: E2 08 00 30 05 80 11 00 00 00 00 00 00 AF [19:40:23]Write i2c OK [19:40:23]MH_I2C_Read... [19:40:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:40:23]Read from MH i2c: E2 [19:40:23]MH_I2C_Read... [19:40:23]Read from MH i2c: E2 17 00 [19:40:23]MH_I2C_Read... [19:40:23]Read from MH i2c: E2 17 00 30 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 02 [19:40:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [19:40:23]wFMCommunicate OK [19:40:23]requested_item fd.num is exist - process it [19:40:23]SAM_PROTO_GetFieldsCounters [19:40:23]wFMCommunicate request_size=4 [19:40:23]MH_SAM_APDU [19:40:23]CAPDU: 80 13 00 00 [19:40:23]Write to MH i2c: E2 08 00 31 05 80 13 00 00 00 00 00 00 B2 [19:40:23]Write i2c OK [19:40:23]MH_I2C_Read... [19:40:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:40:23]Read from MH i2c: E2 [19:40:23]MH_I2C_Read... [19:40:23]Read from MH i2c: E2 62 00 [19:40:23]MH_I2C_Read... [19:40:23]Read from MH i2c: E2 62 00 31 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 11 97 01 00 0E 04 04 00 63 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 72 [19:40: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 11 97 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 84 00 00 00 5E 04 04 00 84 00 00 00 57 04 04 00 85 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:40:23]wFMCommunicate OK [19:40:23]SAM_PROTO_GetFieldsCounters done [19:40:23]requested_item shift.num is exist - process it [19:40:23]requested_item shift.opened is exist - process it [19:40:23]req_shift_opened [19:40:23]FM_GetShiftState [19:40:23]SAM_PROTO_GetShiftState [19:40:23]wFMCommunicate request_size=4 [19:40:23]MH_SAM_APDU [19:40:23]CAPDU: 80 13 01 00 [19:40:23]Write to MH i2c: E2 08 00 32 05 80 13 01 00 00 00 00 00 B4 [19:40:23]Write i2c OK [19:40:23]MH_I2C_Read... [19:40:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:40:23]Read from MH i2c: E2 [19:40:23]MH_I2C_Read... [19:40:23]Read from MH i2c: E2 0E 00 [19:40:23]MH_I2C_Read... [19:40:23]Read from MH i2c: E2 0E 00 32 05 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 C7 [19:40:23]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [19:40:23]wFMCommunicate OK [19:40:23]SAM_PROTO_GetShiftState done [19:40:23]FM_GetShiftState done [19:40:23]req_shift_opened done [19:40:23]requested_item shift.open_date is exist - process it [19:40:23]req_shift_open_date [19:40:23]req_shift_open_date done [19:40:23]produce_requested_data done [19:40:23]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104209,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [19:40:23]process_action_free close_receipt [19:40:23]json_value_free [19:40:23]json_value_free done [19:40:23]process_json_proto returns [19:40:23]Send response to host [19:40:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104209,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [19:40:23]free response buf [19:40:23]execute_script done [19:40:23]execute_script returns [19:40:23]free content buf [19:40:23]Sock 10.Close socket [19:40:23]Sock 10.Thread stoped [19:40:27]OFD Sender: No OFD packet to send [19:40:32]OFD Sender: No OFD packet to send [19:40:37]OFD Sender: No OFD packet to send [19:40:42]OFD Sender: No OFD packet to send [19:40:47]OFD Sender: No OFD packet to send [19:40:52]OFD Sender: No OFD packet to send [19:40:57]OFD Sender: No OFD packet to send [19:41:02]OFD Sender: No OFD packet to send [19:41:07]OFD Sender: No OFD packet to send [19:41:12]OFD Sender: No OFD packet to send [19:41:17]OFD Sender: No OFD packet to send [19:41:22]OFD Sender: No OFD packet to send [19:41:27]OFD Sender: No OFD packet to send [19:41:32]OFD Sender: No OFD packet to send [19:41:37]OFD Sender: No OFD packet to send [19:41:42]OFD Sender: No OFD packet to send [19:41:47]OFD Sender: No OFD packet to send [19:41:52]OFD Sender: No OFD packet to send [19:41:55]accept exits with 7 [19:41:55]New connection [19:41:55]New thread 3067616612 created [19:41:55]Thread 3067473252 joined [19:41:55]Waiting for new connection... [19:41:55] Sock 7.Parse request [19:41:55]Sock 7.Check first char [19:41:55]Sock 7.First char is OK [19:41:55]request: POST /json_proto HTTP/1.0 [19:41:55]Method: POST [19:41:55]URL: /json_proto [19:41:55]Method is POST - this is cgi request [19:41:55]url: /json_proto [19:41:55]query_string will be loaded in cgi processing [19:41:55]execute_cgi json_proto POST (null) [19:41:55]execute_cgi path=json_proto method=POST [19:41:55]POST find Content-Length [19:41:55]Host: 172.17.38.133:8080 [19:41:55]Content-Length: 1183 [19:41:55]Content-Type: application/json [19:41:55] [19:41:55]POST finish read [19:41:55]Found Content-Length = 1183 [19:41: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 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)673682\u000A21.06.2024 19:18\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 8.670 x 66.40\u000A\u0418\u0422\u041E\u0413: 575.69\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\u000A3890300\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:41:55]execute_script... [19:41: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 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)673682\u000A21.06.2024 19:18\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 8.670 x 66.40\u000A\u0418\u0422\u041E\u0413: 575.69\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\u000A3890300\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:41:55]POST & json_proto [19:41:55]process_json_proto [19:41:55]json parsed OK: [19:41:55]protocol is kg_v1.0 [19:41:55]action value=print_text [19:41:55]process_action print_text [19:41:55]cmd_print_text [19:41:55]ExternCall_PrintAddStr [19:41:55]wPrintStart [19:41:55]Write to MH i2c: 01 00 00 33 05 38 [19:41:55]Write i2c OK [19:41:55]MH_I2C_Read... [19:41:55]Read from MH i2c: 01 [19:41:55]MH_I2C_Read... [19:41:55]Read from MH i2c: 01 07 00 [19:41:55]MH_I2C_Read... [19:41:55]Read from MH i2c: 01 07 00 33 05 00 00 00 00 00 FF 0F 4D [19:41:55]RasterBufferAndPrint [19:41:55]line *****ТОВАРНЫЙ ЧЕК***** [19:41:55]line АЗС 120 [19:41:55]line Партнер нефть [19:41:55]line 02508201610067 [19:41:55]line Кассир : Асанбаев Н. [19:41:55]line Счет N : (1)673682 [19:41:55]line 21.06.2024 19:18 [19:41:55]line ПРОДАЖА [19:41:55]line ТРК (МРК, ГНК): 42 [19:41:55]line Вид ГСМ : 2710124130 [19:41:55]line Аи-92-К-5 [19:41:55]line 8.670 x 66.40 [19:41:55]line ИТОГ: 575.69 [19:41:55]line Тип оплаты: Талоны: Партнер нефть [19:41:55]line 3890300 [19:41:55]line ______________________ [19:41:55]line (подпись) [19:41:55]written 0, free lines is 4095 [19:41:55]Write to MH i2c: 01 00 00 47 05 4C [19:41:55]Write i2c OK [19:41:55]MH_I2C_Read... [19:41:55]Read from MH i2c: 01 [19:41:55]MH_I2C_Read... [19:41:55]Read from MH i2c: 01 07 00 [19:41:55]MH_I2C_Read... [19:41:55]Read from MH i2c: 01 07 00 47 05 00 00 00 00 00 11 0E 72 [19:41:55]RasterBufferAndPrint [19:41:55]line [19:41:55]line [19:41:55]line [19:41:55]line [19:41:55]line [19:41:55]written 0, free lines is 3602 [19:41:55]MH_Cut [19:41:55]Write to MH i2c: D1 01 00 4E 05 01 25 [19:41:55]Write i2c OK [19:41:55]MH_I2C_Read... [19:41:55]Read from MH i2c: D1 [19:41:55]MH_I2C_Read... [19:41:55]Read from MH i2c: D1 01 00 [19:41:55]MH_I2C_Read... [19:41:55]Read from MH i2c: D1 01 00 4E 05 00 24 [19:41:55]Write to MH i2c: 01 00 00 4F 05 54 [19:41:55]Write i2c OK [19:41:55]MH_I2C_Read... [19:41:56]*** Cut start [19:41:56]*** Partial cut [19:41:56]*** CUTSNS_PIN = 1 [19:41:56]*** CUTSNS_PIN = 0 [19:41:56]*** Brake cut motor [19:41:56]Read from MH i2c: 01 [19:41:56]MH_I2C_Read... [19:41:56]Read from MH i2c: 01 07 00 [19:41:56]MH_I2C_Read... [19:41:56]*** Stop cut motor [19:41:56]*** Cut end [19:41:56]Read from MH i2c: 01 07 00 4F 05 00 00 00 00 00 FF 0F 69 [19:41:56]process_action print_text done [19:41:56]requested_data is exist [19:41:56]produce_requested_data [19:41:56]requested_item fm.sn is exist - process it [19:41:56]wFMCommunicate request_size=4 [19:41:56]MH_SAM_APDU [19:41:56]CAPDU: 80 11 00 00 [19:41:56]Write to MH i2c: E2 08 00 50 05 80 11 00 00 00 00 00 00 CF [19:41:56]Write i2c OK [19:41:56]MH_I2C_Read... [19:41:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:41:56]Read from MH i2c: E2 [19:41:56]MH_I2C_Read... [19:41:56]Read from MH i2c: E2 17 00 [19:41:56]MH_I2C_Read... [19:41:56]Read from MH i2c: E2 17 00 50 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 22 [19:41:56]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:56]wFMCommunicate OK [19:41:56]requested_item fd.num is exist - process it [19:41:56]SAM_PROTO_GetFieldsCounters [19:41:56]wFMCommunicate request_size=4 [19:41:56]MH_SAM_APDU [19:41:56]CAPDU: 80 13 00 00 [19:41:56]Write to MH i2c: E2 08 00 51 05 80 13 00 00 00 00 00 00 D2 [19:41:56]Write i2c OK [19:41:56]MH_I2C_Read... [19:41:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:41:56]Read from MH i2c: E2 [19:41:56]MH_I2C_Read... [19:41:56]Read from MH i2c: E2 62 00 [19:41:56]MH_I2C_Read... [19:41:56]Read from MH i2c: E2 62 00 51 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 11 97 01 00 0E 04 04 00 63 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 92 [19:41: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 11 97 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 84 00 00 00 5E 04 04 00 84 00 00 00 57 04 04 00 85 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:41:56]wFMCommunicate OK [19:41:56]SAM_PROTO_GetFieldsCounters done [19:41:56]requested_item shift.num is exist - process it [19:41:56]requested_item shift.opened is exist - process it [19:41:56]req_shift_opened [19:41:56]FM_GetShiftState [19:41:56]SAM_PROTO_GetShiftState [19:41:56]wFMCommunicate request_size=4 [19:41:56]MH_SAM_APDU [19:41:56]CAPDU: 80 13 01 00 [19:41:56]Write to MH i2c: E2 08 00 52 05 80 13 01 00 00 00 00 00 D4 [19:41:56]Write i2c OK [19:41:56]MH_I2C_Read... [19:41:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:41:56]Read from MH i2c: E2 [19:41:56]MH_I2C_Read... [19:41:56]Read from MH i2c: E2 0E 00 [19:41:56]MH_I2C_Read... [19:41:56]Read from MH i2c: E2 0E 00 52 05 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 E7 [19:41:56]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [19:41:56]wFMCommunicate OK [19:41:56]SAM_PROTO_GetShiftState done [19:41:56]FM_GetShiftState done [19:41:56]req_shift_opened done [19:41:56]requested_item shift.open_date is exist - process it [19:41:56]req_shift_open_date [19:41:56]req_shift_open_date done [19:41:56]produce_requested_data done [19:41:56]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104209,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [19:41:56]process_action_free print_text [19:41:56]json_value_free [19:41:56]json_value_free done [19:41:56]process_json_proto returns [19:41:56]Send response to host [19:41:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104209,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [19:41:56]free response buf [19:41:56]execute_script done [19:41:56]execute_script returns [19:41:56]free content buf [19:41:56]Sock 7.Close socket [19:41:56]Sock 7.Thread stoped [19:41:57]OFD Sender: No OFD packet to send [19:42:02]OFD Sender: No OFD packet to send [19:42:07]OFD Sender: No OFD packet to send [19:42:12]OFD Sender: No OFD packet to send [19:42:17]OFD Sender: No OFD packet to send [19:42:22]OFD Sender: No OFD packet to send [19:42:27]OFD Sender: No OFD packet to send [19:42:32]OFD Sender: No OFD packet to send [19:42:37]OFD Sender: No OFD packet to send [19:42:42]OFD Sender: No OFD packet to send [19:42:47]OFD Sender: No OFD packet to send [19:42:52]OFD Sender: No OFD packet to send [19:42:57]OFD Sender: No OFD packet to send [19:43:02]OFD Sender: No OFD packet to send [19:43:07]OFD Sender: No OFD packet to send [19:43:12]OFD Sender: No OFD packet to send [19:43:17]OFD Sender: No OFD packet to send [19:43:22]OFD Sender: No OFD packet to send [19:43:27]OFD Sender: No OFD packet to send [19:43:28]accept exits with 9 [19:43:28]New connection [19:43:28]New thread 3067473252 created [19:43:28]Thread 3067616612 joined [19:43:28]Waiting for new connection... [19:43:28] Sock 9.Parse request [19:43:28]Sock 9.Check first char [19:43:28]Sock 9.First char is OK [19:43:28]request: POST /json_proto HTTP/1.0 [19:43:28]Method: POST [19:43:28]URL: /json_proto [19:43:28]Method is POST - this is cgi request [19:43:28]url: /json_proto [19:43:28]query_string will be loaded in cgi processing [19:43:28]execute_cgi json_proto POST (null) [19:43:28]execute_cgi path=json_proto method=POST [19:43:28]POST find Content-Length [19:43:28]Host: 172.17.38.133:8080 [19:43:28]Content-Length: 1182 [19:43:28]Content-Type: application/json [19:43:28] [19:43:28]POST finish read [19:43:28]Found Content-Length = 1182 [19:43: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 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)673683\u000A21.06.2024 19: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 1.330 x 66.40\u000A\u0418\u0422\u041E\u0413: 88.31\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\u000A3890300\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:43:28]execute_script... [19:43: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 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)673683\u000A21.06.2024 19: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 1.330 x 66.40\u000A\u0418\u0422\u041E\u0413: 88.31\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\u000A3890300\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:43:28]POST & json_proto [19:43:28]process_json_proto [19:43:28]json parsed OK: [19:43:28]protocol is kg_v1.0 [19:43:28]action value=print_text [19:43:28]process_action print_text [19:43:28]cmd_print_text [19:43:28]ExternCall_PrintAddStr [19:43:28]wPrintStart [19:43:28]Write to MH i2c: 01 00 00 53 05 58 [19:43:28]Write i2c OK [19:43:28]MH_I2C_Read... [19:43:28]Read from MH i2c: 01 [19:43:28]MH_I2C_Read... [19:43:28]Read from MH i2c: 01 07 00 [19:43:28]MH_I2C_Read... [19:43:28]Read from MH i2c: 01 07 00 53 05 00 00 00 00 00 FF 0F 6D [19:43:28]RasterBufferAndPrint [19:43:28]line *****ТОВАРНЫЙ ЧЕК***** [19:43:28]line АЗС 120 [19:43:28]line Партнер нефть [19:43:28]line 02508201610067 [19:43:28]line Кассир : Асанбаев Н. [19:43:28]line Счет N : (1)673683 [19:43:28]line 21.06.2024 19:20 [19:43:28]line ПРОДАЖА [19:43:28]line ТРК (МРК, ГНК): 42 [19:43:28]line Вид ГСМ : 2710124130 [19:43:28]line Аи-92-К-5 [19:43:28]line 1.330 x 66.40 [19:43:28]line ИТОГ: 88.31 [19:43:28]line Тип оплаты: Талоны: Партнер нефть [19:43:28]line 3890300 [19:43:28]line ______________________ [19:43:28]line (подпись) [19:43:28]written 0, free lines is 4095 [19:43:28]Write to MH i2c: 01 00 00 67 05 6C [19:43:28]Write i2c OK [19:43:28]MH_I2C_Read... [19:43:28]Read from MH i2c: 01 [19:43:28]MH_I2C_Read... [19:43:28]Read from MH i2c: 01 07 00 [19:43:28]MH_I2C_Read... [19:43:28]Read from MH i2c: 01 07 00 67 05 00 00 00 00 00 10 0E 91 [19:43:28]RasterBufferAndPrint [19:43:28]line [19:43:28]line [19:43:28]line [19:43:28]line [19:43:28]line [19:43:28]written 0, free lines is 3601 [19:43:28]MH_Cut [19:43:28]Write to MH i2c: D1 01 00 6E 05 01 45 [19:43:28]Write i2c OK [19:43:28]MH_I2C_Read... [19:43:28]Read from MH i2c: D1 [19:43:28]MH_I2C_Read... [19:43:28]Read from MH i2c: D1 01 00 [19:43:28]MH_I2C_Read... [19:43:28]Read from MH i2c: D1 01 00 6E 05 00 44 [19:43:28]Write to MH i2c: 01 00 00 6F 05 74 [19:43:28]Write i2c OK [19:43:28]MH_I2C_Read... [19:43:29]*** Cut start [19:43:29]*** Partial cut [19:43:29]*** CUTSNS_PIN = 1 [19:43:29]*** CUTSNS_PIN = 0 [19:43:29]*** Brake cut motor [19:43:29]Read from MH i2c: 01 [19:43:29]MH_I2C_Read... [19:43:29]*** Stop cut motor [19:43:29]*** Cut end [19:43:29]Read from MH i2c: 01 07 00 [19:43:29]MH_I2C_Read... [19:43:29]Read from MH i2c: 01 07 00 6F 05 00 00 00 00 00 FF 0F 89 [19:43:29]process_action print_text done [19:43:29]requested_data is exist [19:43:29]produce_requested_data [19:43:29]requested_item fm.sn is exist - process it [19:43:29]wFMCommunicate request_size=4 [19:43:29]MH_SAM_APDU [19:43:29]CAPDU: 80 11 00 00 [19:43:29]Write to MH i2c: E2 08 00 70 05 80 11 00 00 00 00 00 00 EF [19:43:29]Write i2c OK [19:43:29]MH_I2C_Read... [19:43:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:43:29]Read from MH i2c: E2 [19:43:29]MH_I2C_Read... [19:43:29]Read from MH i2c: E2 17 00 [19:43:29]MH_I2C_Read... [19:43:29]Read from MH i2c: E2 17 00 70 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 42 [19:43: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:43:29]wFMCommunicate OK [19:43:29]requested_item fd.num is exist - process it [19:43:29]SAM_PROTO_GetFieldsCounters [19:43:29]wFMCommunicate request_size=4 [19:43:29]MH_SAM_APDU [19:43:29]CAPDU: 80 13 00 00 [19:43:29]Write to MH i2c: E2 08 00 71 05 80 13 00 00 00 00 00 00 F2 [19:43:29]Write i2c OK [19:43:29]MH_I2C_Read... [19:43:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:43:29]Read from MH i2c: E2 [19:43:29]MH_I2C_Read... [19:43:29]Read from MH i2c: E2 62 00 [19:43:29]MH_I2C_Read... [19:43:29]Read from MH i2c: E2 62 00 71 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 11 97 01 00 0E 04 04 00 63 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 B2 [19:43: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 11 97 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 84 00 00 00 5E 04 04 00 84 00 00 00 57 04 04 00 85 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:43:29]wFMCommunicate OK [19:43:29]SAM_PROTO_GetFieldsCounters done [19:43:29]requested_item shift.num is exist - process it [19:43:29]requested_item shift.opened is exist - process it [19:43:29]req_shift_opened [19:43:29]FM_GetShiftState [19:43:29]SAM_PROTO_GetShiftState [19:43:29]wFMCommunicate request_size=4 [19:43:29]MH_SAM_APDU [19:43:29]CAPDU: 80 13 01 00 [19:43:29]Write to MH i2c: E2 08 00 72 05 80 13 01 00 00 00 00 00 F4 [19:43:29]Write i2c OK [19:43:29]MH_I2C_Read... [19:43:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:43:29]Read from MH i2c: E2 [19:43:29]MH_I2C_Read... [19:43:29]Read from MH i2c: E2 0E 00 [19:43:29]MH_I2C_Read... [19:43:29]Read from MH i2c: E2 0E 00 72 05 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 07 [19:43:29]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [19:43:29]wFMCommunicate OK [19:43:29]SAM_PROTO_GetShiftState done [19:43:29]FM_GetShiftState done [19:43:29]req_shift_opened done [19:43:29]requested_item shift.open_date is exist - process it [19:43:29]req_shift_open_date [19:43:29]req_shift_open_date done [19:43:29]produce_requested_data done [19:43:29]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104209,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [19:43:29]process_action_free print_text [19:43:29]json_value_free [19:43:29]json_value_free done [19:43:29]process_json_proto returns [19:43:29]Send response to host [19:43:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104209,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [19:43:29]free response buf [19:43:29]execute_script done [19:43:29]execute_script returns [19:43:29]free content buf [19:43:29]Sock 9.Close socket [19:43:29]Sock 9.Thread stoped [19:43:32]OFD Sender: No OFD packet to send [19:43:37]OFD Sender: No OFD packet to send [19:43:42]OFD Sender: No OFD packet to send [19:43:47]OFD Sender: No OFD packet to send [19:43:52]OFD Sender: No OFD packet to send [19:43:57]OFD Sender: No OFD packet to send [19:44:02]OFD Sender: No OFD packet to send [19:44:07]OFD Sender: No OFD packet to send [19:44:12]OFD Sender: No OFD packet to send [19:44:17]OFD Sender: No OFD packet to send [19:44:22]OFD Sender: No OFD packet to send [19:44:27]OFD Sender: No OFD packet to send [19:44:32]OFD Sender: No OFD packet to send [19:44:37]OFD Sender: No OFD packet to send [19:44:42]OFD Sender: No OFD packet to send [19:44:47]OFD Sender: No OFD packet to send [19:44:52]OFD Sender: No OFD packet to send [19:44:57]OFD Sender: No OFD packet to send [19:45:02]OFD Sender: No OFD packet to send [19:45:07]OFD Sender: No OFD packet to send [19:45:12]OFD Sender: No OFD packet to send [19:45:17]OFD Sender: No OFD packet to send [19:45:22]OFD Sender: No OFD packet to send [19:45:27]OFD Sender: No OFD packet to send [19:45:32]OFD Sender: No OFD packet to send [19:45:37]OFD Sender: No OFD packet to send [19:45:42]OFD Sender: No OFD packet to send [19:45:47]OFD Sender: No OFD packet to send [19:45:52]OFD Sender: No OFD packet to send [19:45:57]OFD Sender: No OFD packet to send [19:46:02]OFD Sender: No OFD packet to send [19:46:07]OFD Sender: No OFD packet to send [19:46:12]OFD Sender: No OFD packet to send [19:46:17]OFD Sender: No OFD packet to send [19:46:22]OFD Sender: No OFD packet to send [19:46:27]OFD Sender: No OFD packet to send [19:46:32]OFD Sender: No OFD packet to send [19:46:37]OFD Sender: No OFD packet to send [19:46:42]OFD Sender: No OFD packet to send [19:46:47]OFD Sender: No OFD packet to send [19:46:52]OFD Sender: No OFD packet to send [19:46:57]OFD Sender: No OFD packet to send [19:47:02]OFD Sender: No OFD packet to send [19:47:06]accept exits with 7 [19:47:06]New connection [19:47:06]New thread 3067616612 created [19:47:06]Thread 3067473252 joined [19:47:06]Waiting for new connection... [19:47:06] Sock 7.Parse request [19:47:06]Sock 7.Check first char [19:47:06]Sock 7.First char is OK [19:47:06]request: POST /json_proto HTTP/1.0 [19:47:06]Method: POST [19:47:06]URL: /json_proto [19:47:06]Method is POST - this is cgi request [19:47:06]url: /json_proto [19:47:06]query_string will be loaded in cgi processing [19:47:06]execute_cgi json_proto POST (null) [19:47:06]execute_cgi path=json_proto method=POST [19:47:06]POST find Content-Length [19:47:06]Host: 172.17.38.133:8080 [19:47:06]Content-Length: 682 [19:47:06]Content-Type: application/json [19:47:06] [19:47:06]POST finish read [19:47:06]Found Content-Length = 682 [19:47:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673684", "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" ] } } [19:47:06]execute_script... [19:47: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)673684", "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" ] } } [19:47:06]POST & json_proto [19:47:06]process_json_proto [19:47:06]json parsed OK: [19:47:06]protocol is kg_v1.0 [19:47:06]action value=close_receipt [19:47:06]process_action close_receipt [19:47:06]cmd_close_receipt [19:47:06]MH_GetDate [19:47:06]Write to MH i2c: F0 00 00 73 05 67 [19:47:06]Write i2c OK [19:47:06]MH_I2C_Read... [19:47:06]Read from MH i2c: F0 [19:47:06]MH_I2C_Read... [19:47:06]Read from MH i2c: F0 09 00 [19:47:06]MH_I2C_Read... [19:47:06]Read from MH i2c: F0 09 00 73 05 00 BB D8 75 66 BD 8F 7C 64 0A [19:47:06]GetLastDocTimeStamp 1718998820 [19:47:06]current date 1718999227 [19:47:06]FM_GetShiftState [19:47:06]SAM_PROTO_GetShiftState [19:47:06]wFMCommunicate request_size=4 [19:47:06]MH_SAM_APDU [19:47:06]CAPDU: 80 13 01 00 [19:47:06]Write to MH i2c: E2 08 00 74 05 80 13 01 00 00 00 00 00 F6 [19:47:06]Write i2c OK [19:47:06]MH_I2C_Read... [19:47:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:47:06]Read from MH i2c: E2 [19:47:06]MH_I2C_Read... [19:47:06]Read from MH i2c: E2 0E 00 [19:47:06]MH_I2C_Read... [19:47:06]Read from MH i2c: E2 0E 00 74 05 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 09 [19:47:06]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [19:47:06]wFMCommunicate OK [19:47:06]SAM_PROTO_GetShiftState done [19:47:06]FM_GetShiftState done [19:47:06]opened in 1718929509 [19:47:06]opened+sec_in_day 1719015909 [19:47:06]quantity*price = 100064 [19:47:06]sum+1 = 100066 [19:47: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 СНО: Общий режим Чек 133 21.06.2024 19:47 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104210 ФПД: 130077297434522 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T194707&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104210&fm=130077297434522&tin=02508201610067®Number=0000000000092785&sum=100000 [19:47:07]StoreToDocumentArchive [19:47:07]shift 355 fd 104210 [19:47:07]save to /storage/0355/doc_00104210 [19:47:07]save last doc name /storage/0355/doc_00104210 to /storage/kkm_last_doc_name [19:47:07]save OK [19:47:07]Clear old archive folders... [19:47:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:47:07]tlvbuf is 00692120 [19:47:07]SAM_PROTO_ClearQueue [19:47:07]wFMCommunicate request_size=4 [19:47:07]MH_SAM_APDU [19:47:07]CAPDU: 80 09 00 00 [19:47:07]Write to MH i2c: E2 08 00 81 05 80 09 00 00 00 00 00 00 F8 [19:47:07]Write i2c OK [19:47:07]MH_I2C_Read... [19:47:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:47:08]Read from MH i2c: E2 [19:47:08]MH_I2C_Read... [19:47:08]Read from MH i2c: E2 03 00 [19:47:08]MH_I2C_Read... [19:47:08]Read from MH i2c: E2 03 00 81 05 00 90 00 FA [19:47:08]RAPDU: 90 00 [19:47:08]wFMCommunicate OK [19:47:08]SAM_PROTO_ClearQueue done [19:47:08]KKMCreateOFDPacket [19:47:08]OFDProtocolAddRootSTLVToBuf [19:47:08]FM_MakeSignedData [19:47:08]FM_MakeSignedData [19:47:08]SAM_PROTO_SignData [19:47:08]wFMCommunicate request_size=4 [19:47:08]MH_SAM_APDU [19:47:08]CAPDU: 80 0D 01 02 [19:47:08]Write to MH i2c: E2 08 00 82 05 80 0D 01 02 00 00 00 00 00 [19:47:08]Write i2c OK [19:47:08]MH_I2C_Read... [19:47:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:47:08]Read from MH i2c: E2 [19:47:08]MH_I2C_Read... [19:47:08]Read from MH i2c: E2 03 00 [19:47:08]MH_I2C_Read... [19:47:08]Read from MH i2c: E2 03 00 82 05 00 90 00 FB [19:47:08]RAPDU: 90 00 [19:47:08]wFMCommunicate OK [19:47:08]wFMCommunicate request_size=255 [19:47:08]MH_SAM_APDU [19:47: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 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 85 00 00 00 F4 03 04 00 BB D8 75 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 12 97 01 00 35 04 06 00 76 [19:47:08]Write to MH i2c: E2 02 01 83 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 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 85 00 00 00 F4 03 04 00 BB D8 75 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 12 97 01 00 35 04 06 00 76 00 00 81 [19:47:08]Write i2c OK [19:47:08]MH_I2C_Read... [19:47:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:47:08]Read from MH i2c: E2 [19:47:08]MH_I2C_Read... [19:47:08]Read from MH i2c: E2 03 00 [19:47:08]MH_I2C_Read... [19:47:08]Read from MH i2c: E2 03 00 83 05 00 90 00 FC [19:47:08]RAPDU: 90 00 [19:47:08]wFMCommunicate OK [19:47:08]wFMCommunicate request_size=10 [19:47:08]MH_SAM_APDU [19:47:08]CAPDU: 80 0D 02 02 05 4D FB 1B 5F 9A [19:47:08]Write to MH i2c: E2 0D 00 84 05 80 0D 02 02 05 00 4D FB 1B 5F 9A 00 00 69 [19:47:08]Write i2c OK [19:47:08]MH_I2C_Read... [19:47:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:47:08]Read from MH i2c: E2 [19:47:08]MH_I2C_Read... [19:47:08]Read from MH i2c: E2 03 00 [19:47:08]MH_I2C_Read... [19:47:08]Read from MH i2c: E2 03 00 84 05 00 90 00 FD [19:47:08]RAPDU: 90 00 [19:47:08]wFMCommunicate OK [19:47:08]wFMCommunicate request_size=4 [19:47:08]MH_SAM_APDU [19:47:08]CAPDU: 80 0D 03 02 [19:47:08]Write to MH i2c: E2 08 00 85 05 80 0D 03 02 00 00 00 00 05 [19:47:08]Write i2c OK [19:47:08]MH_I2C_Read... [19:47:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:47:08]Read from MH i2c: E2 [19:47:08]MH_I2C_Read... [19:47:08]Read from MH i2c: E2 0B 00 [19:47:08]MH_I2C_Read... [19:47:08]Read from MH i2c: E2 0B 00 85 05 00 99 2A 37 E7 45 2C 64 B8 90 00 74 [19:47:08]RAPDU: 99 2A 37 E7 45 2C 64 B8 90 00 [19:47:08]wFMCommunicate OK [19:47:08]SAM_PROTO_SignData done [19:47:08]FM_MakeSignedData done [19:47:08]CreateOFDProtocolMessage [19:47:08]wFMCommunicate request_size=4 [19:47:08]MH_SAM_APDU [19:47:08]CAPDU: 80 11 00 00 [19:47:08]Write to MH i2c: E2 08 00 86 05 80 11 00 00 00 00 00 00 05 [19:47:08]Write i2c OK [19:47:08]MH_I2C_Read... [19:47:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:47:08]Read from MH i2c: E2 [19:47:08]MH_I2C_Read... [19:47:08]Read from MH i2c: E2 17 00 [19:47:08]MH_I2C_Read... [19:47:08]Read from MH i2c: E2 17 00 86 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 58 [19:47: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:47:08]wFMCommunicate OK [19:47:08]CreateOFDProtocolMessage done [19:47:08]OFDSenderStorePacket 104210 [19:47:08]StoreOFDPacket docnum=104210 [19:47: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 7F 19 07 01 88 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 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 85 00 00 00 F4 03 04 00 BB D8 75 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 12 97 01 00 35 04 06 00 76 4D FB 1B 5F 9A 99 2A 37 E7 45 2C 64 B8 [19:47:08]CheckFolder [19:47:08]dirname=/storage/ofd_packets [19:47:08]CheckFolder done [19:47:08]ProducePacketName [19:47:08]name=ofd_packets/00104210 [19:47:08]NVStorageSaveData ofd_packets/00104210 [19:47:08]File name is /storage/ofd_packets/00104210 [19:47:08]Write 301 bytes [19:47:08]NVStorageSaveData done [19:47:08]OFDSenderStorePacket done [19:47:08]KKMCreateOFDPacket done [19:47:08]NVStorageSaveData kkm_last_timestamp [19:47:08]File name is /storage/kkm_last_timestamp [19:47:08]Write 4 bytes [19:47:08]NVStorageSaveData done [19:47:08]ExternCall_PrintAddStr [19:47:08]wPrintStart [19:47:08]Write to MH i2c: 01 00 00 87 05 8C [19:47:08]Write i2c OK [19:47:08]MH_I2C_Read... [19:47:08]Read from MH i2c: 01 [19:47:08]MH_I2C_Read... [19:47:08]Read from MH i2c: 01 07 00 [19:47:08]MH_I2C_Read... [19:47:08]Read from MH i2c: 01 07 00 87 05 00 00 00 00 00 FF 0F A1 [19:47:08]RasterBufferAndPrint [19:47:08]line Счет N : (1)673684 [19:47:08]line ИНН: 02508201610067 [19:47:08]line Контрольно-Кассовый Чек [19:47:08]line ПРОДАЖА [19:47:08]line ТРК (МРК, ГНК) : 42 [19:47:08]line Товар: 2710124130 [19:47:08]line Аи-92-К-5 [19:47:08]line 15.070 * 66.40 [19:47:08]line = 1000.65 [19:47:08]line НДС 12% НСП 1% [19:47:08]line > о реализуемом товаре [19:47:08]line ОКРУГЛЕНИЕ: -0.65 [19:47:08]line ИТОГО: 1000.00 [19:47:08]line Внесено: 1000.00 [19:47:08]line СДАЧА: 0.00 [19:47:08]line НСП 1% : 8.85 [19:47:08]line НДС 12% : 106.26 [19:47:08]line Наличными: 1000.00 [19:47:08]line Безнал.: 0.00 [19:47:08]line Место: АЗС № 120 "Партнер Нефть" [19:47:08]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [19:47:08]line СНО: Общий режим [19:47:08]line Чек 133 21.06.2024 19:47 [19:47:08]line Смена: 355 ФФД: 1.0 [19:47:08]line ЗНМ: 0300000164 [19:47:08]line РНМ: 0000000000092785 [19:47:08]line Версия ККМ: 001 [19:47:08]line ФМ: 0000000000875093 [19:47:08]line ФД: 104210 [19:47:08]line ФПД: 130077297434522 [19:47:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T194707&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104210&fm=130077297434522&tin=02508201610067®Number=0000000000092785&sum=100000 [19:47:08]written 0, free lines is 4095 [19:47:08]OFD Sender: Processing packet 104210 [packets to send 17, broken 16] [19:47:08]ProducePacketName [19:47:08]name=ofd_packets/00104210 [19:47:08]OFD Sender: To server: pG, [19:47:08]CommunicateWithHost lk.salyk.kg:30040 [19:47:08]ConnectInit lk.salyk.kg [19:47:08]Connected sock=10 [19:47: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 7F 19 07 01 88 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 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 85 00 00 00 F4 03 04 00 BB D8 75 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 12 97 01 00 35 04 06 00 76 4D FB 1B 5F 9A 99 2A 37 E7 45 2C 64 B8 [19:47: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 44 12 47 00 82 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 12 97 01 00 F4 03 04 00 3D 7F 75 66 B6 04 01 00 00 D8 B3 CF 2F 52 53 E0 3E [19:47:08]CommunicateWithHost err = 0 [19:47:08]CheckOFDResponse [19:47:08]1017 (14) - 77093643461234 [19:47:08]1041 (16) - 0000000000875093 [19:47:08]1040 (4) - 104210 [19:47:08]1012 (4) - 21.06.2024 13:25 [19:47:08]1206 (1) - 0 [19:47:08]OFD Sender: Remove packet 104210 [19:47:08]ProducePacketName [19:47:08]name=ofd_packets/00104210 [19:47:08]NVStorageDeleteData [19:47:08]Write to MH i2c: 01 00 00 B2 05 B7 [19:47:08]Write i2c OK [19:47:08]MH_I2C_Read... [19:47:08]Read from MH i2c: 01 [19:47:08]MH_I2C_Read... [19:47:08]Read from MH i2c: 01 07 00 [19:47:08]MH_I2C_Read... [19:47:08]Read from MH i2c: 01 07 00 B2 05 00 00 00 00 00 E5 0C AF [19:47:08]RasterBufferAndPrint [19:47:08]line [19:47:08]line [19:47:08]line [19:47:08]line [19:47:08]line [19:47:08]written 0, free lines is 3307 [19:47:08]MH_Cut [19:47:08]Write to MH i2c: D1 01 00 B9 05 01 90 [19:47:08]Write i2c OK [19:47:09]MH_I2C_Read... [19:47:09]Read from MH i2c: D1 [19:47:09]MH_I2C_Read... [19:47:09]Read from MH i2c: D1 01 00 [19:47:09]MH_I2C_Read... [19:47:09]Read from MH i2c: D1 01 00 B9 05 00 8F [19:47:09]Write to MH i2c: 01 00 00 BA 05 BF [19:47:09]Write i2c OK [19:47:09]MH_I2C_Read... [19:47:09]OFD Sender: No OFD packet to send [19:47:09]*** Cut start [19:47:09]*** Partial cut [19:47:09]*** CUTSNS_PIN = 1 [19:47:09]*** CUTSNS_PIN = 0 [19:47:09]*** Brake cut motor [19:47:10]Read from MH i2c: 01 [19:47:10]MH_I2C_Read... [19:47:10]*** Stop cut motor [19:47:10]*** Cut end [19:47:10]Read from MH i2c: 01 07 00 [19:47:10]MH_I2C_Read... [19:47:10]Read from MH i2c: 01 07 00 BA 05 00 00 00 00 00 FF 0F D4 [19:47:10]process_action close_receipt done [19:47:10]requested_data is exist [19:47:10]produce_requested_data [19:47:10]requested_item fm.sn is exist - process it [19:47:10]wFMCommunicate request_size=4 [19:47:10]MH_SAM_APDU [19:47:10]CAPDU: 80 11 00 00 [19:47:10]Write to MH i2c: E2 08 00 BB 05 80 11 00 00 00 00 00 00 3A [19:47:10]Write i2c OK [19:47:10]MH_I2C_Read... [19:47:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:47:10]Read from MH i2c: E2 [19:47:10]MH_I2C_Read... [19:47:10]Read from MH i2c: E2 17 00 [19:47:10]MH_I2C_Read... [19:47:10]Read from MH i2c: E2 17 00 BB 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 8D [19:47:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [19:47:10]wFMCommunicate OK [19:47:10]requested_item fd.num is exist - process it [19:47:10]SAM_PROTO_GetFieldsCounters [19:47:10]wFMCommunicate request_size=4 [19:47:10]MH_SAM_APDU [19:47:10]CAPDU: 80 13 00 00 [19:47:10]Write to MH i2c: E2 08 00 BC 05 80 13 00 00 00 00 00 00 3D [19:47:10]Write i2c OK [19:47:10]MH_I2C_Read... [19:47:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:47:10]Read from MH i2c: E2 [19:47:10]MH_I2C_Read... [19:47:10]Read from MH i2c: E2 62 00 [19:47:10]MH_I2C_Read... [19:47:10]Read from MH i2c: E2 62 00 BC 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 12 97 01 00 0E 04 04 00 63 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 01 [19:47: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 12 97 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 85 00 00 00 5E 04 04 00 85 00 00 00 57 04 04 00 86 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:47:10]wFMCommunicate OK [19:47:10]SAM_PROTO_GetFieldsCounters done [19:47:10]requested_item shift.num is exist - process it [19:47:10]requested_item shift.opened is exist - process it [19:47:10]req_shift_opened [19:47:10]FM_GetShiftState [19:47:10]SAM_PROTO_GetShiftState [19:47:10]wFMCommunicate request_size=4 [19:47:10]MH_SAM_APDU [19:47:10]CAPDU: 80 13 01 00 [19:47:10]Write to MH i2c: E2 08 00 BD 05 80 13 01 00 00 00 00 00 3F [19:47:10]Write i2c OK [19:47:10]MH_I2C_Read... [19:47:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:47:10]Read from MH i2c: E2 [19:47:10]MH_I2C_Read... [19:47:10]Read from MH i2c: E2 0E 00 [19:47:10]MH_I2C_Read... [19:47:10]Read from MH i2c: E2 0E 00 BD 05 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 52 [19:47:10]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [19:47:10]wFMCommunicate OK [19:47:10]SAM_PROTO_GetShiftState done [19:47:10]FM_GetShiftState done [19:47:10]req_shift_opened done [19:47:10]requested_item shift.open_date is exist - process it [19:47:10]req_shift_open_date [19:47:10]req_shift_open_date done [19:47:10]produce_requested_data done [19:47:10]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104210,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [19:47:10]process_action_free close_receipt [19:47:10]json_value_free [19:47:10]json_value_free done [19:47:10]process_json_proto returns [19:47:10]Send response to host [19:47:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104210,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [19:47:10]free response buf [19:47:10]execute_script done [19:47:10]execute_script returns [19:47:10]free content buf [19:47:10]Sock 7.Close socket [19:47:10]Sock 7.Thread stoped [19:47:14]OFD Sender: No OFD packet to send [19:47:19]OFD Sender: No OFD packet to send [19:47:24]OFD Sender: No OFD packet to send [19:47:29]OFD Sender: No OFD packet to send [19:47:34]OFD Sender: No OFD packet to send [19:47:39]OFD Sender: No OFD packet to send [19:47:44]OFD Sender: No OFD packet to send [19:47:49]OFD Sender: No OFD packet to send [19:47:54]OFD Sender: No OFD packet to send [19:47:59]OFD Sender: No OFD packet to send [19:48:04]OFD Sender: No OFD packet to send [19:48:09]OFD Sender: No OFD packet to send [19:48:14]OFD Sender: No OFD packet to send [19:48:19]OFD Sender: No OFD packet to send [19:48:24]OFD Sender: No OFD packet to send [19:48:29]OFD Sender: No OFD packet to send [19:48:34]OFD Sender: No OFD packet to send [19:48:39]OFD Sender: No OFD packet to send [19:48:44]OFD Sender: No OFD packet to send [19:48:49]OFD Sender: No OFD packet to send [19:48:54]OFD Sender: No OFD packet to send [19:48:59]OFD Sender: No OFD packet to send [19:49:04]OFD Sender: No OFD packet to send [19:49:09]OFD Sender: No OFD packet to send [19:49:14]OFD Sender: No OFD packet to send [19:49:19]OFD Sender: No OFD packet to send [19:49:24]OFD Sender: No OFD packet to send [19:49:29]OFD Sender: No OFD packet to send [19:49:34]OFD Sender: No OFD packet to send [19:49:39]OFD Sender: No OFD packet to send [19:49:44]OFD Sender: No OFD packet to send [19:49:49]OFD Sender: No OFD packet to send [19:49:54]OFD Sender: No OFD packet to send [19:49:59]OFD Sender: No OFD packet to send [19:50:04]OFD Sender: No OFD packet to send [19:50:09]OFD Sender: No OFD packet to send [19:50:14]OFD Sender: No OFD packet to send [19:50:19]OFD Sender: No OFD packet to send [19:50:24]OFD Sender: No OFD packet to send [19:50:29]OFD Sender: No OFD packet to send [19:50:34]OFD Sender: No OFD packet to send [19:50:39]OFD Sender: No OFD packet to send [19:50:44]OFD Sender: No OFD packet to send [19:50:49]OFD Sender: No OFD packet to send [19:50:54]OFD Sender: No OFD packet to send [19:50:59]OFD Sender: No OFD packet to send [19:51:04]OFD Sender: No OFD packet to send [19:51:09]OFD Sender: No OFD packet to send [19:51:14]OFD Sender: No OFD packet to send [19:51:19]OFD Sender: No OFD packet to send [19:51:24]OFD Sender: No OFD packet to send [19:51:29]OFD Sender: No OFD packet to send [19:51:33]accept exits with 9 [19:51:33]New connection [19:51:33]New thread 3067473252 created [19:51:33]Thread 3067616612 joined [19:51:33]Waiting for new connection... [19:51:33] Sock 9.Parse request [19:51:33]Sock 9.Check first char [19:51:33]Sock 9.First char is OK [19:51:33]request: POST /json_proto HTTP/1.0 [19:51:33]Method: POST [19:51:33]URL: /json_proto [19:51:33]Method is POST - this is cgi request [19:51:33]url: /json_proto [19:51:33]query_string will be loaded in cgi processing [19:51:33]execute_cgi json_proto POST (null) [19:51:33]execute_cgi path=json_proto method=POST [19:51:33]POST find Content-Length [19:51:33]Host: 172.17.38.133:8080 [19:51:33]Content-Length: 1157 [19:51:33]Content-Type: application/json [19:51:33] [19:51:33]POST finish read [19:51:33]Found Content-Length = 1157 [19:51: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 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)673685\u000A21.06.2024 19: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 40.000 x 73.90\u000A\u0418\u0422\u041E\u0413: 2956.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30057634\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:51:33]execute_script... [19:51: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 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)673685\u000A21.06.2024 19: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 40.000 x 73.90\u000A\u0418\u0422\u041E\u0413: 2956.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30057634\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:51:33]POST & json_proto [19:51:33]process_json_proto [19:51:33]json parsed OK: [19:51:33]protocol is kg_v1.0 [19:51:33]action value=print_text [19:51:33]process_action print_text [19:51:33]cmd_print_text [19:51:33]ExternCall_PrintAddStr [19:51:33]wPrintStart [19:51:33]Write to MH i2c: 01 00 00 BE 05 C3 [19:51:33]Write i2c OK [19:51:33]MH_I2C_Read... [19:51:33]Read from MH i2c: 01 [19:51:33]MH_I2C_Read... [19:51:33]Read from MH i2c: 01 07 00 [19:51:33]MH_I2C_Read... [19:51:33]Read from MH i2c: 01 07 00 BE 05 00 00 00 00 00 FF 0F D8 [19:51:33]RasterBufferAndPrint [19:51:33]line *****ТОВАРНЫЙ ЧЕК***** [19:51:33]line АЗС 120 [19:51:33]line Партнер нефть [19:51:33]line 02508201610067 [19:51:33]line Кассир : Асанбаев Н. [19:51:33]line Счет N : (1)673685 [19:51:33]line 21.06.2024 19:28 [19:51:33]line ПРОДАЖА [19:51:33]line ТРК (МРК, ГНК): 31 [19:51:33]line Вид ГСМ : 2710124500 [19:51:33]line Аи-95-К-5 [19:51:33]line 40.000 x 73.90 [19:51:33]line ИТОГ: 2956.00 [19:51:33]line Тип оплаты: Талоны: ТК ГПНА Online [19:51:33]line 30057634 [19:51:33]line ______________________ [19:51:33]line (подпись) [19:51:33]written 0, free lines is 4095 [19:51:33]Write to MH i2c: 01 00 00 D2 05 D7 [19:51:33]Write i2c OK [19:51:33]MH_I2C_Read... [19:51:33]Read from MH i2c: 01 [19:51:33]MH_I2C_Read... [19:51:33]Read from MH i2c: 01 07 00 [19:51:33]MH_I2C_Read... [19:51:33]Read from MH i2c: 01 07 00 D2 05 00 00 00 00 00 10 0E FC [19:51:33]RasterBufferAndPrint [19:51:33]line [19:51:33]line [19:51:33]line [19:51:33]line [19:51:33]line [19:51:33]written 0, free lines is 3602 [19:51:33]MH_Cut [19:51:33]Write to MH i2c: D1 01 00 D9 05 01 B0 [19:51:33]Write i2c OK [19:51:33]MH_I2C_Read... [19:51:33]Read from MH i2c: D1 [19:51:33]MH_I2C_Read... [19:51:33]Read from MH i2c: D1 01 00 [19:51:33]MH_I2C_Read... [19:51:33]Read from MH i2c: D1 01 00 D9 05 00 AF [19:51:33]Write to MH i2c: 01 00 00 DA 05 DF [19:51:33]Write i2c OK [19:51:33]MH_I2C_Read... [19:51:34]*** Cut start [19:51:34]*** Partial cut [19:51:34]*** CUTSNS_PIN = 1 [19:51:34]*** CUTSNS_PIN = 0 [19:51:34]*** Brake cut motor [19:51:34]OFD Sender: No OFD packet to send [19:51:34]Read from MH i2c: 01 [19:51:34]MH_I2C_Read... [19:51:34]*** Stop cut motor [19:51:34]*** Cut end [19:51:34]Read from MH i2c: 01 07 00 [19:51:34]MH_I2C_Read... [19:51:34]Read from MH i2c: 01 07 00 DA 05 00 00 00 00 00 FF 0F F4 [19:51:34]process_action print_text done [19:51:34]requested_data is exist [19:51:34]produce_requested_data [19:51:34]requested_item fm.sn is exist - process it [19:51:34]wFMCommunicate request_size=4 [19:51:34]MH_SAM_APDU [19:51:34]CAPDU: 80 11 00 00 [19:51:34]Write to MH i2c: E2 08 00 DB 05 80 11 00 00 00 00 00 00 5A [19:51:34]Write i2c OK [19:51:34]MH_I2C_Read... [19:51:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:51:34]Read from MH i2c: E2 [19:51:34]MH_I2C_Read... [19:51:34]Read from MH i2c: E2 17 00 [19:51:34]MH_I2C_Read... [19:51:34]Read from MH i2c: E2 17 00 DB 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 AD [19:51: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:51:34]wFMCommunicate OK [19:51:34]requested_item fd.num is exist - process it [19:51:34]SAM_PROTO_GetFieldsCounters [19:51:34]wFMCommunicate request_size=4 [19:51:34]MH_SAM_APDU [19:51:34]CAPDU: 80 13 00 00 [19:51:34]Write to MH i2c: E2 08 00 DC 05 80 13 00 00 00 00 00 00 5D [19:51:34]Write i2c OK [19:51:34]MH_I2C_Read... [19:51:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:51:34]Read from MH i2c: E2 [19:51:34]MH_I2C_Read... [19:51:34]Read from MH i2c: E2 62 00 [19:51:34]MH_I2C_Read... [19:51:34]Read from MH i2c: E2 62 00 DC 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 63 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 21 [19:51: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 12 97 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 85 00 00 00 5E 04 04 00 85 00 00 00 57 04 04 00 86 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:51:34]wFMCommunicate OK [19:51:34]SAM_PROTO_GetFieldsCounters done [19:51:34]requested_item shift.num is exist - process it [19:51:34]requested_item shift.opened is exist - process it [19:51:34]req_shift_opened [19:51:34]FM_GetShiftState [19:51:34]SAM_PROTO_GetShiftState [19:51:34]wFMCommunicate request_size=4 [19:51:34]MH_SAM_APDU [19:51:34]CAPDU: 80 13 01 00 [19:51:34]Write to MH i2c: E2 08 00 DD 05 80 13 01 00 00 00 00 00 5F [19:51:34]Write i2c OK [19:51:34]MH_I2C_Read... [19:51:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:51:35]Read from MH i2c: E2 [19:51:35]MH_I2C_Read... [19:51:35]Read from MH i2c: E2 0E 00 [19:51:35]MH_I2C_Read... [19:51:35]Read from MH i2c: E2 0E 00 DD 05 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 72 [19:51:35]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [19:51:35]wFMCommunicate OK [19:51:35]SAM_PROTO_GetShiftState done [19:51:35]FM_GetShiftState done [19:51:35]req_shift_opened done [19:51:35]requested_item shift.open_date is exist - process it [19:51:35]req_shift_open_date [19:51:35]req_shift_open_date done [19:51:35]produce_requested_data done [19:51:35]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104210,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [19:51:35]process_action_free print_text [19:51:35]json_value_free [19:51:35]json_value_free done [19:51:35]process_json_proto returns [19:51:35]Send response to host [19:51:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104210,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [19:51:35]free response buf [19:51:35]execute_script done [19:51:35]execute_script returns [19:51:35]free content buf [19:51:35]Sock 9.Close socket [19:51:35]Sock 9.Thread stoped [19:51:39]OFD Sender: No OFD packet to send [19:51:44]OFD Sender: No OFD packet to send [19:51:49]OFD Sender: No OFD packet to send [19:51:54]OFD Sender: No OFD packet to send [19:51:59]OFD Sender: No OFD packet to send [19:52:04]OFD Sender: No OFD packet to send [19:52:09]OFD Sender: No OFD packet to send [19:52:14]OFD Sender: No OFD packet to send [19:52:19]OFD Sender: No OFD packet to send [19:52:24]OFD Sender: No OFD packet to send [19:52:29]OFD Sender: No OFD packet to send [19:52:34]OFD Sender: No OFD packet to send [19:52:39]OFD Sender: No OFD packet to send [19:52:44]OFD Sender: No OFD packet to send [19:52:49]OFD Sender: No OFD packet to send [19:52:54]OFD Sender: No OFD packet to send [19:52:59]OFD Sender: No OFD packet to send [19:53:04]OFD Sender: No OFD packet to send [19:53:09]OFD Sender: No OFD packet to send [19:53:14]OFD Sender: No OFD packet to send [19:53:19]OFD Sender: No OFD packet to send [19:53:24]OFD Sender: No OFD packet to send [19:53:29]OFD Sender: No OFD packet to send [19:53:34]OFD Sender: No OFD packet to send [19:53:39]OFD Sender: No OFD packet to send [19:53:44]OFD Sender: No OFD packet to send [19:53:49]OFD Sender: No OFD packet to send [19:53:54]OFD Sender: No OFD packet to send [19:53:59]OFD Sender: No OFD packet to send [19:54:04]OFD Sender: No OFD packet to send [19:54:09]OFD Sender: No OFD packet to send [19:54:14]OFD Sender: No OFD packet to send [19:54:19]OFD Sender: No OFD packet to send [19:54:24]OFD Sender: No OFD packet to send [19:54:29]OFD Sender: No OFD packet to send [19:54:34]OFD Sender: No OFD packet to send [19:54:39]OFD Sender: No OFD packet to send [19:54:44]OFD Sender: No OFD packet to send [19:54:49]OFD Sender: No OFD packet to send [19:54:54]OFD Sender: No OFD packet to send [19:54:59]OFD Sender: No OFD packet to send [19:55:04]OFD Sender: No OFD packet to send [19:55:09]OFD Sender: No OFD packet to send [19:55:14]OFD Sender: No OFD packet to send [19:55:19]OFD Sender: No OFD packet to send [19:55:24]OFD Sender: No OFD packet to send [19:55:29]OFD Sender: No OFD packet to send [19:55:34]OFD Sender: No OFD packet to send [19:55:39]OFD Sender: No OFD packet to send [19:55:44]OFD Sender: No OFD packet to send [19:55:49]OFD Sender: No OFD packet to send [19:55:54]OFD Sender: No OFD packet to send [19:55:59]OFD Sender: No OFD packet to send [19:56:04]OFD Sender: No OFD packet to send [19:56:09]OFD Sender: No OFD packet to send [19:56:14]OFD Sender: No OFD packet to send [19:56:19]OFD Sender: No OFD packet to send [19:56:24]OFD Sender: No OFD packet to send [19:56:29]OFD Sender: No OFD packet to send [19:56:34]OFD Sender: No OFD packet to send [19:56:39]OFD Sender: No OFD packet to send [19:56:44]OFD Sender: No OFD packet to send [19:56:49]OFD Sender: No OFD packet to send [19:56:54]OFD Sender: No OFD packet to send [19:56:59]OFD Sender: No OFD packet to send [19:57:04]OFD Sender: No OFD packet to send [19:57:09]OFD Sender: No OFD packet to send [19:57:14]OFD Sender: No OFD packet to send [19:57:19]OFD Sender: No OFD packet to send [19:57:24]OFD Sender: No OFD packet to send [19:57:29]OFD Sender: No OFD packet to send [19:57:34]OFD Sender: No OFD packet to send [19:57:39]OFD Sender: No OFD packet to send [19:57:44]OFD Sender: No OFD packet to send [19:57:49]OFD Sender: No OFD packet to send [19:57:54]accept exits with 7 [19:57:54]New connection [19:57:54]New thread 3067616612 created [19:57:54]Thread 3067473252 joined [19:57:54]Waiting for new connection... [19:57:54] Sock 7.Parse request [19:57:54]Sock 7.Check first char [19:57:54]Sock 7.First char is OK [19:57:54]request: POST /json_proto HTTP/1.0 [19:57:54]Method: POST [19:57:54]URL: /json_proto [19:57:54]Method is POST - this is cgi request [19:57:54]url: /json_proto [19:57:54]query_string will be loaded in cgi processing [19:57:54]execute_cgi json_proto POST (null) [19:57:54]execute_cgi path=json_proto method=POST [19:57:54]POST find Content-Length [19:57:54]Host: 172.17.38.133:8080 [19:57:54]Content-Length: 819 [19:57:54]Content-Type: application/json [19:57:54] [19:57:54]POST finish read [19:57:54]Found Content-Length = 819 [19:57:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673687", "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" ] } } [19:57:54]execute_script... [19:57: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)673687", "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" ] } } [19:57:54]POST & json_proto [19:57:54]process_json_proto [19:57:54]json parsed OK: [19:57:54]protocol is kg_v1.0 [19:57:54]action value=close_receipt [19:57:54]process_action close_receipt [19:57:54]cmd_close_receipt [19:57:54]MH_GetDate [19:57:54]Write to MH i2c: F0 00 00 DE 05 D2 [19:57:54]Write i2c OK [19:57:54]MH_I2C_Read... [19:57:54]Read from MH i2c: F0 [19:57:54]MH_I2C_Read... [19:57:54]Read from MH i2c: F0 09 00 [19:57:54]MH_I2C_Read... [19:57:54]Read from MH i2c: F0 09 00 DE 05 00 43 DB 75 66 BD 8F 7C 64 00 [19:57:54]GetLastDocTimeStamp 1718999227 [19:57:54]current date 1718999875 [19:57:54]FM_GetShiftState [19:57:54]SAM_PROTO_GetShiftState [19:57:54]wFMCommunicate request_size=4 [19:57:54]MH_SAM_APDU [19:57:54]CAPDU: 80 13 01 00 [19:57:54]Write to MH i2c: E2 08 00 DF 05 80 13 01 00 00 00 00 00 61 [19:57:54]Write i2c OK [19:57:54]MH_I2C_Read... [19:57:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:57:54]Read from MH i2c: E2 [19:57:54]MH_I2C_Read... [19:57:54]Read from MH i2c: E2 0E 00 [19:57:54]MH_I2C_Read... [19:57:54]Read from MH i2c: E2 0E 00 DF 05 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 74 [19:57:54]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [19:57:54]wFMCommunicate OK [19:57:54]SAM_PROTO_GetShiftState done [19:57:54]FM_GetShiftState done [19:57:54]opened in 1718929509 [19:57:54]opened+sec_in_day 1719015909 [19:57:54]quantity*price = 100060 [19:57:54]sum+1 = 100062 [19:57: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 СНО: Общий режим Чек 134 21.06.2024 19:57 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875093 ФД: 104211 ФПД: 128213460182163 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T195755&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104211&fm=128213460182163&tin=02508201610067®Number=0000000000092785&sum=100061 [19:57:55]StoreToDocumentArchive [19:57:55]shift 355 fd 104211 [19:57:55]save to /storage/0355/doc_00104211 [19:57:55]save last doc name /storage/0355/doc_00104211 to /storage/kkm_last_doc_name [19:57:55]save OK [19:57:55]Clear old archive folders... [19:57:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:57:55]tlvbuf is 0063DCF0 [19:57:55]SAM_PROTO_ClearQueue [19:57:55]wFMCommunicate request_size=4 [19:57:55]MH_SAM_APDU [19:57:55]CAPDU: 80 09 00 00 [19:57:55]Write to MH i2c: E2 08 00 EC 05 80 09 00 00 00 00 00 00 63 [19:57:55]Write i2c OK [19:57:55]MH_I2C_Read... [19:57:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:57:55]Read from MH i2c: E2 [19:57:55]MH_I2C_Read... [19:57:55]Read from MH i2c: E2 03 00 [19:57:55]MH_I2C_Read... [19:57:55]Read from MH i2c: E2 03 00 EC 05 00 90 00 65 [19:57:55]RAPDU: 90 00 [19:57:55]wFMCommunicate OK [19:57:55]SAM_PROTO_ClearQueue done [19:57:55]KKMCreateOFDPacket [19:57:55]OFDProtocolAddRootSTLVToBuf [19:57:55]FM_MakeSignedData [19:57:55]FM_MakeSignedData [19:57:55]SAM_PROTO_SignData [19:57:55]wFMCommunicate request_size=4 [19:57:55]MH_SAM_APDU [19:57:55]CAPDU: 80 0D 01 02 [19:57:55]Write to MH i2c: E2 08 00 ED 05 80 0D 01 02 00 00 00 00 6B [19:57:55]Write i2c OK [19:57:55]MH_I2C_Read... [19:57:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:57:55]Read from MH i2c: E2 [19:57:55]MH_I2C_Read... [19:57:55]Read from MH i2c: E2 03 00 [19:57:55]MH_I2C_Read... [19:57:55]Read from MH i2c: E2 03 00 ED 05 00 90 00 66 [19:57:55]RAPDU: 90 00 [19:57:55]wFMCommunicate OK [19:57:55]wFMCommunicate request_size=255 [19:57:55]MH_SAM_APDU [19:57: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 86 00 00 00 F4 03 04 00 43 DB 75 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 13 97 01 00 35 04 06 00 74 [19:57:55]Write to MH i2c: E2 02 01 EE 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 86 00 00 00 F4 03 04 00 43 DB 75 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 13 97 01 00 35 04 06 00 74 00 00 E2 [19:57:55]Write i2c OK [19:57:55]MH_I2C_Read... [19:57:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:57:55]Read from MH i2c: E2 [19:57:55]MH_I2C_Read... [19:57:55]Read from MH i2c: E2 03 00 [19:57:55]MH_I2C_Read... [19:57:55]Read from MH i2c: E2 03 00 EE 05 00 90 00 67 [19:57:55]RAPDU: 90 00 [19:57:55]wFMCommunicate OK [19:57:55]wFMCommunicate request_size=10 [19:57:55]MH_SAM_APDU [19:57:55]CAPDU: 80 0D 02 02 05 9C 05 BF E4 93 [19:57:55]Write to MH i2c: E2 0D 00 EF 05 80 0D 02 02 05 00 9C 05 BF E4 93 00 00 4F [19:57:55]Write i2c OK [19:57:55]MH_I2C_Read... [19:57:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:57:55]Read from MH i2c: E2 [19:57:55]MH_I2C_Read... [19:57:55]Read from MH i2c: E2 03 00 [19:57:55]MH_I2C_Read... [19:57:55]Read from MH i2c: E2 03 00 EF 05 00 90 00 68 [19:57:55]RAPDU: 90 00 [19:57:55]wFMCommunicate OK [19:57:55]wFMCommunicate request_size=4 [19:57:55]MH_SAM_APDU [19:57:55]CAPDU: 80 0D 03 02 [19:57:55]Write to MH i2c: E2 08 00 F0 05 80 0D 03 02 00 00 00 00 70 [19:57:55]Write i2c OK [19:57:55]MH_I2C_Read... [19:57:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:57:55]Read from MH i2c: E2 [19:57:55]MH_I2C_Read... [19:57:55]Read from MH i2c: E2 0B 00 [19:57:55]MH_I2C_Read... [19:57:55]Read from MH i2c: E2 0B 00 F0 05 00 06 FF 49 9D D0 93 15 9C 90 00 70 [19:57:55]RAPDU: 06 FF 49 9D D0 93 15 9C 90 00 [19:57:55]wFMCommunicate OK [19:57:55]SAM_PROTO_SignData done [19:57:55]FM_MakeSignedData done [19:57:55]CreateOFDProtocolMessage [19:57:55]wFMCommunicate request_size=4 [19:57:55]MH_SAM_APDU [19:57:55]CAPDU: 80 11 00 00 [19:57:55]Write to MH i2c: E2 08 00 F1 05 80 11 00 00 00 00 00 00 70 [19:57:55]Write i2c OK [19:57:55]MH_I2C_Read... [19:57:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:57:55]Read from MH i2c: E2 [19:57:55]MH_I2C_Read... [19:57:55]Read from MH i2c: E2 17 00 [19:57:55]MH_I2C_Read... [19:57:55]Read from MH i2c: E2 17 00 F1 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 C3 [19:57:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [19:57:55]wFMCommunicate OK [19:57:55]CreateOFDProtocolMessage done [19:57:55]OFDSenderStorePacket 104211 [19:57:55]StoreOFDPacket docnum=104211 [19:57: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 4E 88 07 01 7C CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 86 00 00 00 F4 03 04 00 43 DB 75 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 13 97 01 00 35 04 06 00 74 9C 05 BF E4 93 06 FF 49 9D D0 93 15 9C [19:57:55]CheckFolder [19:57:55]dirname=/storage/ofd_packets [19:57:55]CheckFolder done [19:57:55]ProducePacketName [19:57:55]name=ofd_packets/00104211 [19:57:55]NVStorageSaveData ofd_packets/00104211 [19:57:55]File name is /storage/ofd_packets/00104211 [19:57:55]Write 301 bytes [19:57:55]NVStorageSaveData done [19:57:55]OFDSenderStorePacket done [19:57:55]KKMCreateOFDPacket done [19:57:55]NVStorageSaveData kkm_last_timestamp [19:57:55]File name is /storage/kkm_last_timestamp [19:57:55]Write 4 bytes [19:57:55]NVStorageSaveData done [19:57:55]ExternCall_PrintAddStr [19:57:55]wPrintStart [19:57:55]Write to MH i2c: 01 00 00 F2 05 F7 [19:57:55]Write i2c OK [19:57:55]MH_I2C_Read... [19:57:55]Read from MH i2c: 01 [19:57:55]MH_I2C_Read... [19:57:55]Read from MH i2c: 01 07 00 [19:57:55]MH_I2C_Read... [19:57:55]Read from MH i2c: 01 07 00 F2 05 00 00 00 00 00 FF 0F 0C [19:57:55]RasterBufferAndPrint [19:57:55]line Счет N : (1)673687 [19:57:55]line ИНН: 02508201610067 [19:57:55]line Контрольно-Кассовый Чек [19:57:55]line ПРОДАЖА [19:57:55]line ТРК (МРК, ГНК) : 41 [19:57:55]line Товар: 2710124500 [19:57:55]line Аи-95-К-5 [19:57:55]line 13.540 * 73.90 [19:57:55]line = 1000.61 [19:57:55]line НДС 12% НСП 1% [19:57:55]line > о реализуемом товаре [19:57:55]line ИТОГО: 1000.61 [19:57:55]line НСП 1% : 8.85 [19:57:55]line НДС 12% : 106.26 [19:57:55]line Наличными: 0.00 [19:57:55]line Безнал.: 1000.61 [19:57:55]line Место: АЗС № 120 "Партнер Нефть" [19:57:55]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [19:57:55]line СНО: Общий режим [19:57:55]line Чек 134 21.06.2024 19:57 [19:57:55]line Смена: 355 ФФД: 1.0 [19:57:55]line ЗНМ: 0300000164 [19:57:55]line РНМ: 0000000000092785 [19:57:55]line Версия ККМ: 001 [19:57:55]line Платежная система: Бакай Банк [19:57:55]line ФМ: 0000000000875093 [19:57:55]line ФД: 104211 [19:57:55]line ФПД: 128213460182163 [19:57:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T195755&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104211&fm=128213460182163&tin=02508201610067®Number=0000000000092785&sum=100061 [19:57:56]written 0, free lines is 4095 [19:57:56]OFD Sender: Processing packet 104211 [packets to send 17, broken 16] [19:57:56]ProducePacketName [19:57:56]name=ofd_packets/00104211 [19:57:56]OFD Sender: To server: pG, [19:57:56]CommunicateWithHost lk.salyk.kg:30040 [19:57:56]ConnectInit lk.salyk.kg [19:57:56]Connected sock=10 [19:57: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 4E 88 07 01 7C CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 86 00 00 00 F4 03 04 00 43 DB 75 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 13 97 01 00 35 04 06 00 74 9C 05 BF E4 93 06 FF 49 9D D0 93 15 9C [19:57: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 CC 7D 47 00 82 23 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 13 97 01 00 F4 03 04 00 C4 81 75 66 B6 04 01 00 00 D0 DE EE 26 53 DC C8 47 [19:57:56]CommunicateWithHost err = 0 [19:57:56]CheckOFDResponse [19:57:56]1017 (14) - 77093643461234 [19:57:56]1041 (16) - 0000000000875093 [19:57:56]1040 (4) - 104211 [19:57:56]1012 (4) - 21.06.2024 13:36 [19:57:56]1206 (1) - 0 [19:57:56]OFD Sender: Remove packet 104211 [19:57:56]ProducePacketName [19:57:56]name=ofd_packets/00104211 [19:57:56]NVStorageDeleteData [19:57:56]Write to MH i2c: 01 00 00 1C 06 22 [19:57:56]Write i2c OK [19:57:56]MH_I2C_Read... [19:57:56]Read from MH i2c: 01 [19:57:56]MH_I2C_Read... [19:57:56]Read from MH i2c: 01 07 00 [19:57:56]MH_I2C_Read... [19:57:56]Read from MH i2c: 01 07 00 1C 06 00 00 00 00 00 E4 0C 19 [19:57:56]RasterBufferAndPrint [19:57:56]line [19:57:56]line [19:57:56]line [19:57:56]line [19:57:56]line [19:57:56]written 0, free lines is 3307 [19:57:56]MH_Cut [19:57:56]Write to MH i2c: D1 01 00 23 06 01 FB [19:57:56]Write i2c OK [19:57:56]MH_I2C_Read... [19:57:56]Read from MH i2c: D1 [19:57:56]MH_I2C_Read... [19:57:56]Read from MH i2c: D1 01 00 [19:57:56]MH_I2C_Read... [19:57:56]Read from MH i2c: D1 01 00 23 06 00 FA [19:57:56]Write to MH i2c: 01 00 00 24 06 2A [19:57:56]Write i2c OK [19:57:56]MH_I2C_Read... [19:57:57]OFD Sender: No OFD packet to send [19:57:57]*** Cut start [19:57:57]*** Partial cut [19:57:57]*** CUTSNS_PIN = 1 [19:57:57]*** CUTSNS_PIN = 0 [19:57:57]*** Brake cut motor [19:57:57]Read from MH i2c: 01 [19:57:57]MH_I2C_Read... [19:57:57]*** Stop cut motor [19:57:57]*** Cut end [19:57:57]Read from MH i2c: 01 07 00 [19:57:57]MH_I2C_Read... [19:57:57]Read from MH i2c: 01 07 00 24 06 00 00 00 00 00 FF 0F 3F [19:57:57]process_action close_receipt done [19:57:57]requested_data is exist [19:57:57]produce_requested_data [19:57:57]requested_item fm.sn is exist - process it [19:57:57]wFMCommunicate request_size=4 [19:57:57]MH_SAM_APDU [19:57:57]CAPDU: 80 11 00 00 [19:57:57]Write to MH i2c: E2 08 00 25 06 80 11 00 00 00 00 00 00 A5 [19:57:57]Write i2c OK [19:57:57]MH_I2C_Read... [19:57:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:57:58]Read from MH i2c: E2 [19:57:58]MH_I2C_Read... [19:57:58]Read from MH i2c: E2 17 00 [19:57:58]MH_I2C_Read... [19:57:58]Read from MH i2c: E2 17 00 25 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 F8 [19:57: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:57:58]wFMCommunicate OK [19:57:58]requested_item fd.num is exist - process it [19:57:58]SAM_PROTO_GetFieldsCounters [19:57:58]wFMCommunicate request_size=4 [19:57:58]MH_SAM_APDU [19:57:58]CAPDU: 80 13 00 00 [19:57:58]Write to MH i2c: E2 08 00 26 06 80 13 00 00 00 00 00 00 A8 [19:57:58]Write i2c OK [19:57:58]MH_I2C_Read... [19:57:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:57:58]Read from MH i2c: E2 [19:57:58]MH_I2C_Read... [19:57:58]Read from MH i2c: E2 62 00 [19:57:58]MH_I2C_Read... [19:57:58]Read from MH i2c: E2 62 00 26 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 63 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 70 [19:57: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 13 97 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 86 00 00 00 5E 04 04 00 86 00 00 00 57 04 04 00 87 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:57:58]wFMCommunicate OK [19:57:58]SAM_PROTO_GetFieldsCounters done [19:57:58]requested_item shift.num is exist - process it [19:57:58]requested_item shift.opened is exist - process it [19:57:58]req_shift_opened [19:57:58]FM_GetShiftState [19:57:58]SAM_PROTO_GetShiftState [19:57:58]wFMCommunicate request_size=4 [19:57:58]MH_SAM_APDU [19:57:58]CAPDU: 80 13 01 00 [19:57:58]Write to MH i2c: E2 08 00 27 06 80 13 01 00 00 00 00 00 AA [19:57:58]Write i2c OK [19:57:58]MH_I2C_Read... [19:57:58]Read from MH i2c: E2 [19:57:58]MH_I2C_Read... [19:57:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:57:58]Read from MH i2c: E2 0E 00 [19:57:58]MH_I2C_Read... [19:57:58]Read from MH i2c: E2 0E 00 27 06 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 BD [19:57:58]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [19:57:58]wFMCommunicate OK [19:57:58]SAM_PROTO_GetShiftState done [19:57:58]FM_GetShiftState done [19:57:58]req_shift_opened done [19:57:58]requested_item shift.open_date is exist - process it [19:57:58]req_shift_open_date [19:57:58]req_shift_open_date done [19:57:58]produce_requested_data done [19:57:58]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104211,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [19:57:58]process_action_free close_receipt [19:57:58]json_value_free [19:57:58]json_value_free done [19:57:58]process_json_proto returns [19:57:58]Send response to host [19:57:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104211,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [19:57:58]free response buf [19:57:58]execute_script done [19:57:58]execute_script returns [19:57:58]free content buf [19:57:58]Sock 7.Close socket [19:57:58]Sock 7.Thread stoped [19:58:02]OFD Sender: No OFD packet to send [19:58:07]OFD Sender: No OFD packet to send [19:58:12]OFD Sender: No OFD packet to send [19:58:17]OFD Sender: No OFD packet to send [19:58:22]OFD Sender: No OFD packet to send [19:58:27]OFD Sender: No OFD packet to send [19:58:32]OFD Sender: No OFD packet to send [19:58:37]OFD Sender: No OFD packet to send [19:58:42]OFD Sender: No OFD packet to send [19:58:47]OFD Sender: No OFD packet to send [19:58:52]OFD Sender: No OFD packet to send [19:58:57]OFD Sender: No OFD packet to send [19:59:02]OFD Sender: No OFD packet to send [19:59:07]OFD Sender: No OFD packet to send [19:59:12]OFD Sender: No OFD packet to send [19:59:17]OFD Sender: No OFD packet to send [19:59:22]OFD Sender: No OFD packet to send [19:59:27]OFD Sender: No OFD packet to send [19:59:32]OFD Sender: No OFD packet to send [19:59:37]OFD Sender: No OFD packet to send [19:59:42]OFD Sender: No OFD packet to send [19:59:47]OFD Sender: No OFD packet to send [19:59:52]OFD Sender: No OFD packet to send [19:59:57]OFD Sender: No OFD packet to send [20:00:02]OFD Sender: No OFD packet to send [20:00:07]OFD Sender: No OFD packet to send [20:00:12]OFD Sender: No OFD packet to send [20:00:17]OFD Sender: No OFD packet to send [20:00:22]OFD Sender: No OFD packet to send [20:00:27]OFD Sender: No OFD packet to send [20:00:32]OFD Sender: No OFD packet to send [20:00:37]OFD Sender: No OFD packet to send [20:00:42]OFD Sender: No OFD packet to send [20:00:47]OFD Sender: No OFD packet to send [20:00:52]OFD Sender: No OFD packet to send [20:00:57]OFD Sender: No OFD packet to send [20:01:02]OFD Sender: No OFD packet to send [20:01:07]OFD Sender: No OFD packet to send [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:17]OFD Sender: No OFD packet to send [20:03:22]OFD Sender: No OFD packet to send [20:03:27]OFD Sender: No OFD packet to send [20:03:32]OFD Sender: No OFD packet to send [20:03:37]OFD Sender: No OFD packet to send [20:03:42]OFD Sender: No OFD packet to send [20:03:47]OFD Sender: No OFD packet to send [20:03:52]OFD Sender: No OFD packet to send [20:03:57]OFD Sender: No OFD packet to send [20:04:02]OFD Sender: No OFD packet to send [20:04:07]OFD Sender: No OFD packet to send [20:04:12]OFD Sender: No OFD packet to send [20:04:17]OFD Sender: No OFD packet to send [20:04:22]OFD Sender: No OFD packet to send [20:04:27]OFD Sender: No OFD packet to send [20:04:32]OFD Sender: No OFD packet to send [20:04:37]OFD Sender: No OFD packet to send [20:04:42]OFD Sender: No OFD packet to send [20:04:47]OFD Sender: No OFD packet to send [20:04:52]OFD Sender: No OFD packet to send [20:04:57]OFD Sender: No OFD packet to send [20:05:02]OFD Sender: No OFD packet to send [20:05:07]OFD Sender: No OFD packet to send [20:05:12]OFD Sender: No OFD packet to send [20:05:17]OFD Sender: No OFD packet to send [20:05:22]OFD Sender: No OFD packet to send [20:05:27]OFD Sender: No OFD packet to send [20:05:32]OFD Sender: No OFD packet to send [20:05:37]OFD Sender: No OFD packet to send [20:05:42]OFD Sender: No OFD packet to send [20:05:47]OFD Sender: No OFD packet to send [20:05:52]OFD Sender: No OFD packet to send [20:05:57]OFD Sender: No OFD packet to send [20:06:02]OFD Sender: No OFD packet to send [20:06:07]OFD Sender: No OFD packet to send [20:06:12]OFD Sender: No OFD packet to send [20:06:17]OFD Sender: No OFD packet to send [20:06:22]OFD Sender: No OFD packet to send [20:06:25]accept exits with 9 [20:06:25]New connection [20:06:25]New thread 3067473252 created [20:06:25]Thread 3067616612 joined [20:06:25]Waiting for new connection... [20:06:25] Sock 9.Parse request [20:06:25]Sock 9.Check first char [20:06:25]Sock 9.First char is OK [20:06:25]request: POST /json_proto HTTP/1.0 [20:06:25]Method: POST [20:06:25]URL: /json_proto [20:06:25]Method is POST - this is cgi request [20:06:25]url: /json_proto [20:06:25]query_string will be loaded in cgi processing [20:06:25]execute_cgi json_proto POST (null) [20:06:25]execute_cgi path=json_proto method=POST [20:06:25]POST find Content-Length [20:06:25]Host: 172.17.38.133:8080 [20:06:25]Content-Length: 677 [20:06:25]Content-Type: application/json [20:06:25] [20:06:25]POST finish read [20:06:25]Found Content-Length = 677 [20:06:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673688", "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" ] } } [20:06:25]execute_script... [20:06:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673688", "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" ] } } [20:06:25]POST & json_proto [20:06:25]process_json_proto [20:06:25]json parsed OK: [20:06:25]protocol is kg_v1.0 [20:06:25]action value=close_receipt [20:06:25]process_action close_receipt [20:06:25]cmd_close_receipt [20:06:25]MH_GetDate [20:06:25]Write to MH i2c: F0 00 00 28 06 1D [20:06:25]Write i2c OK [20:06:25]MH_I2C_Read... [20:06:25]Read from MH i2c: F0 [20:06:25]MH_I2C_Read... [20:06:25]Read from MH i2c: F0 09 00 [20:06:25]MH_I2C_Read... [20:06:25]Read from MH i2c: F0 09 00 28 06 00 42 DD 75 66 BD 8F 7C 64 4C [20:06:25]GetLastDocTimeStamp 1718999875 [20:06:25]current date 1719000386 [20:06:25]FM_GetShiftState [20:06:25]SAM_PROTO_GetShiftState [20:06:25]wFMCommunicate request_size=4 [20:06:25]MH_SAM_APDU [20:06:25]CAPDU: 80 13 01 00 [20:06:25]Write to MH i2c: E2 08 00 29 06 80 13 01 00 00 00 00 00 AC [20:06:25]Write i2c OK [20:06:25]MH_I2C_Read... [20:06:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:06:25]Read from MH i2c: E2 [20:06:25]MH_I2C_Read... [20:06:25]Read from MH i2c: E2 0E 00 [20:06:25]MH_I2C_Read... [20:06:25]Read from MH i2c: E2 0E 00 29 06 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 BF [20:06:25]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [20:06:25]wFMCommunicate OK [20:06:25]SAM_PROTO_GetShiftState done [20:06:25]FM_GetShiftState done [20:06:25]opened in 1718929509 [20:06:25]opened+sec_in_day 1719015909 [20:06:25]quantity*price = 50065 [20:06:25]sum+1 = 50067 [20:06: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 СНО: Общий режим Чек 135 21.06.2024 20:06 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104212 ФПД: 168107862306547 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T200626&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104212&fm=168107862306547&tin=02508201610067®Number=0000000000092785&sum=50000 [20:06:26]StoreToDocumentArchive [20:06:26]shift 355 fd 104212 [20:06:26]save to /storage/0355/doc_00104212 [20:06:26]save last doc name /storage/0355/doc_00104212 to /storage/kkm_last_doc_name [20:06:26]save OK [20:06:26]Clear old archive folders... [20:06:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:06:26]tlvbuf is 0063F060 [20:06:26]SAM_PROTO_ClearQueue [20:06:26]wFMCommunicate request_size=4 [20:06:26]MH_SAM_APDU [20:06:26]CAPDU: 80 09 00 00 [20:06:26]Write to MH i2c: E2 08 00 36 06 80 09 00 00 00 00 00 00 AE [20:06:26]Write i2c OK [20:06:26]MH_I2C_Read... [20:06:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:06:26]Read from MH i2c: E2 [20:06:26]MH_I2C_Read... [20:06:26]Read from MH i2c: E2 03 00 [20:06:26]MH_I2C_Read... [20:06:26]Read from MH i2c: E2 03 00 36 06 00 90 00 B0 [20:06:26]RAPDU: 90 00 [20:06:26]wFMCommunicate OK [20:06:26]SAM_PROTO_ClearQueue done [20:06:26]KKMCreateOFDPacket [20:06:26]OFDProtocolAddRootSTLVToBuf [20:06:26]FM_MakeSignedData [20:06:26]FM_MakeSignedData [20:06:26]SAM_PROTO_SignData [20:06:26]wFMCommunicate request_size=4 [20:06:26]MH_SAM_APDU [20:06:26]CAPDU: 80 0D 01 02 [20:06:26]Write to MH i2c: E2 08 00 37 06 80 0D 01 02 00 00 00 00 B6 [20:06:26]Write i2c OK [20:06:26]MH_I2C_Read... [20:06:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:06:26]Read from MH i2c: E2 [20:06:26]MH_I2C_Read... [20:06:26]Read from MH i2c: E2 03 00 [20:06:26]MH_I2C_Read... [20:06:26]Read from MH i2c: E2 03 00 37 06 00 90 00 B1 [20:06:26]RAPDU: 90 00 [20:06:26]wFMCommunicate OK [20:06:26]wFMCommunicate request_size=255 [20:06:26]MH_SAM_APDU [20:06:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 87 00 00 00 F4 03 04 00 42 DD 75 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 14 97 01 00 35 04 06 00 98 [20:06:26]Write to MH i2c: E2 02 01 38 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 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 87 00 00 00 F4 03 04 00 42 DD 75 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 14 97 01 00 35 04 06 00 98 00 00 99 [20:06:26]Write i2c OK [20:06:26]MH_I2C_Read... [20:06:26]Read from MH i2c: E2 [20:06:26]MH_I2C_Read... [20:06:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:06:26]Read from MH i2c: E2 03 00 [20:06:26]MH_I2C_Read... [20:06:26]Read from MH i2c: E2 03 00 38 06 00 90 00 B2 [20:06:26]RAPDU: 90 00 [20:06:26]wFMCommunicate OK [20:06:26]wFMCommunicate request_size=10 [20:06:26]MH_SAM_APDU [20:06:26]CAPDU: 80 0D 02 02 05 E4 A9 6A AE F3 [20:06:26]Write to MH i2c: E2 0D 00 39 06 80 0D 02 02 05 00 E4 A9 6A AE F3 00 00 5B [20:06:26]Write i2c OK [20:06:26]MH_I2C_Read... [20:06:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:06:27]Read from MH i2c: E2 [20:06:27]MH_I2C_Read... [20:06:27]Read from MH i2c: E2 03 00 [20:06:27]MH_I2C_Read... [20:06:27]Read from MH i2c: E2 03 00 39 06 00 90 00 B3 [20:06:27]RAPDU: 90 00 [20:06:27]wFMCommunicate OK [20:06:27]wFMCommunicate request_size=4 [20:06:27]MH_SAM_APDU [20:06:27]CAPDU: 80 0D 03 02 [20:06:27]Write to MH i2c: E2 08 00 3A 06 80 0D 03 02 00 00 00 00 BB [20:06:27]Write i2c OK [20:06:27]MH_I2C_Read... [20:06:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:06:27]Read from MH i2c: E2 [20:06:27]MH_I2C_Read... [20:06:27]Read from MH i2c: E2 0B 00 [20:06:27]MH_I2C_Read... [20:06:27]Read from MH i2c: E2 0B 00 3A 06 00 A6 28 E0 7C 66 1F FF 55 90 00 BF [20:06:27]RAPDU: A6 28 E0 7C 66 1F FF 55 90 00 [20:06:27]wFMCommunicate OK [20:06:27]SAM_PROTO_SignData done [20:06:27]FM_MakeSignedData done [20:06:27]CreateOFDProtocolMessage [20:06:27]wFMCommunicate request_size=4 [20:06:27]MH_SAM_APDU [20:06:27]CAPDU: 80 11 00 00 [20:06:27]Write to MH i2c: E2 08 00 3B 06 80 11 00 00 00 00 00 00 BB [20:06:27]Write i2c OK [20:06:27]MH_I2C_Read... [20:06:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:06:27]Read from MH i2c: E2 [20:06:27]MH_I2C_Read... [20:06:27]Read from MH i2c: E2 17 00 [20:06:27]MH_I2C_Read... [20:06:27]Read from MH i2c: E2 17 00 3B 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 0E [20:06: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:06:27]wFMCommunicate OK [20:06:27]CreateOFDProtocolMessage done [20:06:27]OFDSenderStorePacket 104212 [20:06:27]StoreOFDPacket docnum=104212 [20:06: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 D1 72 07 01 EB 08 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 87 00 00 00 F4 03 04 00 42 DD 75 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 14 97 01 00 35 04 06 00 98 E4 A9 6A AE F3 A6 28 E0 7C 66 1F FF 55 [20:06:27]CheckFolder [20:06:27]dirname=/storage/ofd_packets [20:06:27]CheckFolder done [20:06:27]ProducePacketName [20:06:27]name=ofd_packets/00104212 [20:06:27]NVStorageSaveData ofd_packets/00104212 [20:06:27]File name is /storage/ofd_packets/00104212 [20:06:27]Write 301 bytes [20:06:27]NVStorageSaveData done [20:06:27]OFDSenderStorePacket done [20:06:27]KKMCreateOFDPacket done [20:06:27]NVStorageSaveData kkm_last_timestamp [20:06:27]File name is /storage/kkm_last_timestamp [20:06:27]Write 4 bytes [20:06:27]NVStorageSaveData done [20:06:27]ExternCall_PrintAddStr [20:06:27]wPrintStart [20:06:27]Write to MH i2c: 01 00 00 3C 06 42 [20:06:27]Write i2c OK [20:06:27]MH_I2C_Read... [20:06:27]Read from MH i2c: 01 [20:06:27]MH_I2C_Read... [20:06:27]Read from MH i2c: 01 07 00 [20:06:27]MH_I2C_Read... [20:06:27]Read from MH i2c: 01 07 00 3C 06 00 00 00 00 00 FF 0F 57 [20:06:27]RasterBufferAndPrint [20:06:27]line Счет N : (1)673688 [20:06:27]line ИНН: 02508201610067 [20:06:27]line Контрольно-Кассовый Чек [20:06:27]line ПРОДАЖА [20:06:27]line ТРК (МРК, ГНК) : 32 [20:06:27]line Товар: 2710124130 [20:06:27]line Аи-92-К-5 [20:06:27]line 7.540 * 66.40 [20:06:27]line = 500.66 [20:06:27]line НДС 12% НСП 1% [20:06:27]line > о реализуемом товаре [20:06:27]line ОКРУГЛЕНИЕ: -0.66 [20:06:27]line ИТОГО: 500.00 [20:06:27]line Внесено: 500.00 [20:06:27]line СДАЧА: 0.00 [20:06:27]line НСП 1% : 4.43 [20:06:27]line НДС 12% : 53.17 [20:06:27]line Наличными: 500.00 [20:06:27]line Безнал.: 0.00 [20:06:27]line Место: АЗС № 120 "Партнер Нефть" [20:06:27]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [20:06:27]line СНО: Общий режим [20:06:27]line Чек 135 21.06.2024 20:06 [20:06:27]line Смена: 355 ФФД: 1.0 [20:06:27]line ЗНМ: 0300000164 [20:06:27]line РНМ: 0000000000092785 [20:06:27]line Версия ККМ: 001 [20:06:27]line ФМ: 0000000000875093 [20:06:27]line ФД: 104212 [20:06:27]line ФПД: 168107862306547 [20:06:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T200626&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104212&fm=168107862306547&tin=02508201610067®Number=0000000000092785&sum=50000 [20:06:27]OFD Sender: Processing packet 104212 [packets to send 17, broken 16] [20:06:27]ProducePacketName [20:06:27]name=ofd_packets/00104212 [20:06:27]OFD Sender: To server: pG, [20:06:27]CommunicateWithHost lk.salyk.kg:30040 [20:06:27]ConnectInit lk.salyk.kg [20:06:27]written 0, free lines is 4095 [20:06:27]Connected sock=10 [20:06:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 D1 72 07 01 EB 08 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 87 00 00 00 F4 03 04 00 42 DD 75 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 14 97 01 00 35 04 06 00 98 E4 A9 6A AE F3 A6 28 E0 7C 66 1F FF 55 [20:06:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 49 8C 47 00 EB 83 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 14 97 01 00 F4 03 04 00 C4 83 75 66 B6 04 01 00 00 D0 2A 32 E7 23 61 33 C2 [20:06:27]CommunicateWithHost err = 0 [20:06:27]CheckOFDResponse [20:06:27]1017 (14) - 77093643461234 [20:06:27]1041 (16) - 0000000000875093 [20:06:27]1040 (4) - 104212 [20:06:27]1012 (4) - 21.06.2024 13:44 [20:06:27]1206 (1) - 0 [20:06:27]OFD Sender: Remove packet 104212 [20:06:27]ProducePacketName [20:06:27]name=ofd_packets/00104212 [20:06:27]NVStorageDeleteData [20:06:27]Write to MH i2c: 01 00 00 67 06 6D [20:06:27]Write i2c OK [20:06:27]MH_I2C_Read... [20:06:27]Read from MH i2c: 01 [20:06:27]MH_I2C_Read... [20:06:27]Read from MH i2c: 01 07 00 [20:06:27]MH_I2C_Read... [20:06:27]Read from MH i2c: 01 07 00 67 06 00 00 00 00 00 EB 0C 6B [20:06:27]RasterBufferAndPrint [20:06:27]line [20:06:27]line [20:06:27]line [20:06:27]line [20:06:27]line [20:06:27]written 0, free lines is 3313 [20:06:27]MH_Cut [20:06:27]Write to MH i2c: D1 01 00 6E 06 01 46 [20:06:27]Write i2c OK [20:06:27]MH_I2C_Read... [20:06:27]Read from MH i2c: D1 [20:06:27]MH_I2C_Read... [20:06:27]Read from MH i2c: D1 01 00 [20:06:27]MH_I2C_Read... [20:06:27]Read from MH i2c: D1 01 00 6E 06 00 45 [20:06:27]Write to MH i2c: 01 00 00 6F 06 75 [20:06:27]Write i2c OK [20:06:27]MH_I2C_Read... [20:06:28]OFD Sender: No OFD packet to send [20:06:28]*** Cut start [20:06:28]*** Partial cut [20:06:28]*** CUTSNS_PIN = 1 [20:06:28]*** CUTSNS_PIN = 0 [20:06:28]*** Brake cut motor [20:06:29]Read from MH i2c: 01 [20:06:29]MH_I2C_Read... [20:06:29]*** Stop cut motor [20:06:29]*** Cut end [20:06:29]Read from MH i2c: 01 07 00 [20:06:29]MH_I2C_Read... [20:06:29]Read from MH i2c: 01 07 00 6F 06 00 00 00 00 00 FF 0F 8A [20:06:29]process_action close_receipt done [20:06:29]requested_data is exist [20:06:29]produce_requested_data [20:06:29]requested_item fm.sn is exist - process it [20:06:29]wFMCommunicate request_size=4 [20:06:29]MH_SAM_APDU [20:06:29]CAPDU: 80 11 00 00 [20:06:29]Write to MH i2c: E2 08 00 70 06 80 11 00 00 00 00 00 00 F0 [20:06:29]Write i2c OK [20:06:29]MH_I2C_Read... [20:06:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:06:29]Read from MH i2c: E2 [20:06:29]MH_I2C_Read... [20:06:29]Read from MH i2c: E2 17 00 [20:06:29]MH_I2C_Read... [20:06:29]Read from MH i2c: E2 17 00 70 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 43 [20: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 [20:06:29]wFMCommunicate OK [20:06:29]requested_item fd.num is exist - process it [20:06:29]SAM_PROTO_GetFieldsCounters [20:06:29]wFMCommunicate request_size=4 [20:06:29]MH_SAM_APDU [20:06:29]CAPDU: 80 13 00 00 [20:06:29]Write to MH i2c: E2 08 00 71 06 80 13 00 00 00 00 00 00 F3 [20:06:29]Write i2c OK [20:06:29]MH_I2C_Read... [20:06:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:06:29]Read from MH i2c: E2 [20:06:29]MH_I2C_Read... [20:06:29]Read from MH i2c: E2 62 00 [20:06:29]MH_I2C_Read... [20:06:29]Read from MH i2c: E2 62 00 71 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 63 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 BF [20:06:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 63 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 [20:06:29]wFMCommunicate OK [20:06:29]SAM_PROTO_GetFieldsCounters done [20:06:29]requested_item shift.num is exist - process it [20:06:29]requested_item shift.opened is exist - process it [20:06:29]req_shift_opened [20:06:29]FM_GetShiftState [20:06:29]SAM_PROTO_GetShiftState [20:06:29]wFMCommunicate request_size=4 [20:06:29]MH_SAM_APDU [20:06:29]CAPDU: 80 13 01 00 [20:06:29]Write to MH i2c: E2 08 00 72 06 80 13 01 00 00 00 00 00 F5 [20:06:29]Write i2c OK [20:06:29]MH_I2C_Read... [20:06:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:06:29]Read from MH i2c: E2 [20:06:29]MH_I2C_Read... [20:06:29]Read from MH i2c: E2 0E 00 [20:06:29]MH_I2C_Read... [20:06:29]Read from MH i2c: E2 0E 00 72 06 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 08 [20:06:29]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [20:06:29]wFMCommunicate OK [20:06:29]SAM_PROTO_GetShiftState done [20:06:29]FM_GetShiftState done [20:06:29]req_shift_opened done [20:06:29]requested_item shift.open_date is exist - process it [20:06:29]req_shift_open_date [20:06:29]req_shift_open_date done [20:06:29]produce_requested_data done [20:06:29]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104212,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [20:06:29]process_action_free close_receipt [20:06:29]json_value_free [20:06:29]json_value_free done [20:06:29]process_json_proto returns [20:06:29]Send response to host [20:06:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104212,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [20:06:29]free response buf [20:06:29]execute_script done [20:06:29]execute_script returns [20:06:29]free content buf [20:06:29]Sock 9.Close socket [20:06:29]Sock 9.Thread stoped [20:06:33]OFD Sender: No OFD packet to send [20:06:38]OFD Sender: No OFD packet to send [20:06:43]OFD Sender: No OFD packet to send [20:06:48]OFD Sender: No OFD packet to send [20:06:53]OFD Sender: No OFD packet to send [20:06:58]OFD Sender: No OFD packet to send [20:07:03]OFD Sender: No OFD packet to send [20:07:08]OFD Sender: No OFD packet to send [20:07:13]OFD Sender: No OFD packet to send [20:07:18]OFD Sender: No OFD packet to send [20:07:23]OFD Sender: No OFD packet to send [20:07:28]OFD Sender: No OFD packet to send [20:07:33]OFD Sender: No OFD packet to send [20:07:38]OFD Sender: No OFD packet to send [20:07:43]OFD Sender: No OFD packet to send [20:07:48]OFD Sender: No OFD packet to send [20:07:53]OFD Sender: No OFD packet to send [20:07:58]OFD Sender: No OFD packet to send [20:08:03]OFD Sender: No OFD packet to send [20:08:08]OFD Sender: No OFD packet to send [20:08:13]OFD Sender: No OFD packet to send [20:08:18]OFD Sender: No OFD packet to send [20:08:20]accept exits with 7 [20:08:20]New connection [20:08:20]New thread 3067616612 created [20:08:20]Thread 3067473252 joined [20:08:20]Waiting for new connection... [20:08:20] Sock 7.Parse request [20:08:20]Sock 7.Check first char [20:08:20]Sock 7.First char is OK [20:08:20]request: POST /json_proto HTTP/1.0 [20:08:20]Method: POST [20:08:20]URL: /json_proto [20:08:20]Method is POST - this is cgi request [20:08:20]url: /json_proto [20:08:20]query_string will be loaded in cgi processing [20:08:20]execute_cgi json_proto POST (null) [20:08:20]execute_cgi path=json_proto method=POST [20:08:20]POST find Content-Length [20:08:20]Host: 172.17.38.133:8080 [20:08:20]Content-Length: 682 [20:08:20]Content-Type: application/json [20:08:20] [20:08:20]POST finish read [20:08:20]Found Content-Length = 682 [20:08:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673689", "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" ] } } [20:08:20]execute_script... [20:08: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)673689", "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" ] } } [20:08:20]POST & json_proto [20:08:20]process_json_proto [20:08:20]json parsed OK: [20:08:20]protocol is kg_v1.0 [20:08:20]action value=close_receipt [20:08:20]process_action close_receipt [20:08:20]cmd_close_receipt [20:08:20]MH_GetDate [20:08:20]Write to MH i2c: F0 00 00 73 06 68 [20:08:20]Write i2c OK [20:08:20]MH_I2C_Read... [20:08:20]Read from MH i2c: F0 [20:08:20]MH_I2C_Read... [20:08:20]Read from MH i2c: F0 09 00 [20:08:20]MH_I2C_Read... [20:08:20]Read from MH i2c: F0 09 00 73 06 00 B5 DD 75 66 BD 8F 7C 64 0A [20:08:20]GetLastDocTimeStamp 1719000386 [20:08:20]current date 1719000501 [20:08:20]FM_GetShiftState [20:08:20]SAM_PROTO_GetShiftState [20:08:20]wFMCommunicate request_size=4 [20:08:20]MH_SAM_APDU [20:08:20]CAPDU: 80 13 01 00 [20:08:20]Write to MH i2c: E2 08 00 74 06 80 13 01 00 00 00 00 00 F7 [20:08:20]Write i2c OK [20:08:20]MH_I2C_Read... [20:08:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:08:20]Read from MH i2c: E2 [20:08:20]MH_I2C_Read... [20:08:20]Read from MH i2c: E2 0E 00 [20:08:20]MH_I2C_Read... [20:08:20]Read from MH i2c: E2 0E 00 74 06 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 0A [20:08:20]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [20:08:20]wFMCommunicate OK [20:08:20]SAM_PROTO_GetShiftState done [20:08:20]FM_GetShiftState done [20:08:20]opened in 1718929509 [20:08:20]opened+sec_in_day 1719015909 [20:08:20]quantity*price = 200063 [20:08:20]sum+1 = 200064 [20:08:20]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 СНО: Общий режим Чек 136 21.06.2024 20:08 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104213 ФПД: 227305556699679 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T200821&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104213&fm=227305556699679&tin=02508201610067®Number=0000000000092785&sum=200000 [20:08:21]StoreToDocumentArchive [20:08:21]shift 355 fd 104213 [20:08:21]save to /storage/0355/doc_00104213 [20:08:21]save last doc name /storage/0355/doc_00104213 to /storage/kkm_last_doc_name [20:08:21]save OK [20:08:21]Clear old archive folders... [20:08:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:08:21]tlvbuf is 006BABB0 [20:08:21]SAM_PROTO_ClearQueue [20:08:21]wFMCommunicate request_size=4 [20:08:21]MH_SAM_APDU [20:08:21]CAPDU: 80 09 00 00 [20:08:21]Write to MH i2c: E2 08 00 81 06 80 09 00 00 00 00 00 00 F9 [20:08:21]Write i2c OK [20:08:21]MH_I2C_Read... [20:08:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:08:21]Read from MH i2c: E2 [20:08:21]MH_I2C_Read... [20:08:21]Read from MH i2c: E2 03 00 [20:08:21]MH_I2C_Read... [20:08:21]Read from MH i2c: E2 03 00 81 06 00 90 00 FB [20:08:21]RAPDU: 90 00 [20:08:21]wFMCommunicate OK [20:08:21]SAM_PROTO_ClearQueue done [20:08:21]KKMCreateOFDPacket [20:08:21]OFDProtocolAddRootSTLVToBuf [20:08:21]FM_MakeSignedData [20:08:21]FM_MakeSignedData [20:08:21]SAM_PROTO_SignData [20:08:21]wFMCommunicate request_size=4 [20:08:21]MH_SAM_APDU [20:08:21]CAPDU: 80 0D 01 02 [20:08:21]Write to MH i2c: E2 08 00 82 06 80 0D 01 02 00 00 00 00 01 [20:08:21]Write i2c OK [20:08:21]MH_I2C_Read... [20:08:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:08:22]Read from MH i2c: E2 [20:08:22]MH_I2C_Read... [20:08:22]Read from MH i2c: E2 03 00 [20:08:22]MH_I2C_Read... [20:08:22]Read from MH i2c: E2 03 00 82 06 00 90 00 FC [20:08:22]RAPDU: 90 00 [20:08:22]wFMCommunicate OK [20:08:22]wFMCommunicate request_size=255 [20:08:22]MH_SAM_APDU [20:08: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 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 B5 DD 75 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 15 97 01 00 35 04 06 00 CE [20:08:22]Write to MH i2c: E2 02 01 83 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 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 B5 DD 75 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 15 97 01 00 35 04 06 00 CE 00 00 84 [20:08:22]Write i2c OK [20:08:22]MH_I2C_Read... [20:08:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:08:22]Read from MH i2c: E2 [20:08:22]MH_I2C_Read... [20:08:22]Read from MH i2c: E2 03 00 [20:08:22]MH_I2C_Read... [20:08:22]Read from MH i2c: E2 03 00 83 06 00 90 00 FD [20:08:22]RAPDU: 90 00 [20:08:22]wFMCommunicate OK [20:08:22]wFMCommunicate request_size=10 [20:08:22]MH_SAM_APDU [20:08:22]CAPDU: 80 0D 02 02 05 BB B2 F6 6A 1F [20:08:22]Write to MH i2c: E2 0D 00 84 06 80 0D 02 02 05 00 BB B2 F6 6A 1F 00 00 FA [20:08:22]Write i2c OK [20:08:22]MH_I2C_Read... [20:08:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:08:22]Read from MH i2c: E2 [20:08:22]MH_I2C_Read... [20:08:22]Read from MH i2c: E2 03 00 [20:08:22]MH_I2C_Read... [20:08:22]Read from MH i2c: E2 03 00 84 06 00 90 00 FE [20:08:22]RAPDU: 90 00 [20:08:22]wFMCommunicate OK [20:08:22]wFMCommunicate request_size=4 [20:08:22]MH_SAM_APDU [20:08:22]CAPDU: 80 0D 03 02 [20:08:22]Write to MH i2c: E2 08 00 85 06 80 0D 03 02 00 00 00 00 06 [20:08:22]Write i2c OK [20:08:22]MH_I2C_Read... [20:08:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:08:22]Read from MH i2c: E2 [20:08:22]MH_I2C_Read... [20:08:22]Read from MH i2c: E2 0B 00 [20:08:22]MH_I2C_Read... [20:08:22]Read from MH i2c: E2 0B 00 85 06 00 F2 83 50 13 2C E2 4A 35 90 00 6C [20:08:22]RAPDU: F2 83 50 13 2C E2 4A 35 90 00 [20:08:22]wFMCommunicate OK [20:08:22]SAM_PROTO_SignData done [20:08:22]FM_MakeSignedData done [20:08:22]CreateOFDProtocolMessage [20:08:22]wFMCommunicate request_size=4 [20:08:22]MH_SAM_APDU [20:08:22]CAPDU: 80 11 00 00 [20:08:22]Write to MH i2c: E2 08 00 86 06 80 11 00 00 00 00 00 00 06 [20:08:22]Write i2c OK [20:08:22]MH_I2C_Read... [20:08:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:08:22]Read from MH i2c: E2 [20:08:22]MH_I2C_Read... [20:08:22]Read from MH i2c: E2 17 00 [20:08:22]MH_I2C_Read... [20:08:22]Read from MH i2c: E2 17 00 86 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 59 [20:08:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [20:08:22]wFMCommunicate OK [20:08:22]CreateOFDProtocolMessage done [20:08:22]OFDSenderStorePacket 104213 [20:08:22]StoreOFDPacket docnum=104213 [20:08: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 E9 25 07 01 6C 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 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 B5 DD 75 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 15 97 01 00 35 04 06 00 CE BB B2 F6 6A 1F F2 83 50 13 2C E2 4A 35 [20:08:22]CheckFolder [20:08:22]dirname=/storage/ofd_packets [20:08:22]CheckFolder done [20:08:22]ProducePacketName [20:08:22]name=ofd_packets/00104213 [20:08:22]NVStorageSaveData ofd_packets/00104213 [20:08:22]File name is /storage/ofd_packets/00104213 [20:08:22]Write 301 bytes [20:08:22]NVStorageSaveData done [20:08:22]OFDSenderStorePacket done [20:08:22]KKMCreateOFDPacket done [20:08:22]NVStorageSaveData kkm_last_timestamp [20:08:22]File name is /storage/kkm_last_timestamp [20:08:22]Write 4 bytes [20:08:22]NVStorageSaveData done [20:08:22]ExternCall_PrintAddStr [20:08:22]wPrintStart [20:08:22]Write to MH i2c: 01 00 00 87 06 8D [20:08:22]Write i2c OK [20:08:22]MH_I2C_Read... [20:08:22]Read from MH i2c: 01 [20:08:22]MH_I2C_Read... [20:08:22]Read from MH i2c: 01 07 00 [20:08:22]MH_I2C_Read... [20:08:22]Read from MH i2c: 01 07 00 87 06 00 00 00 00 00 FF 0F A2 [20:08:22]RasterBufferAndPrint [20:08:22]line Счет N : (1)673689 [20:08:22]line ИНН: 02508201610067 [20:08:22]line Контрольно-Кассовый Чек [20:08:22]line ПРОДАЖА [20:08:22]line ТРК (МРК, ГНК) : 42 [20:08:22]line Товар: 2710124130 [20:08:22]line Аи-92-К-5 [20:08:22]line 30.130 * 66.40 [20:08:22]line = 2000.63 [20:08:22]line НДС 12% НСП 1% [20:08:22]line > о реализуемом товаре [20:08:22]line ОКРУГЛЕНИЕ: -0.63 [20:08:22]line ИТОГО: 2000.00 [20:08:22]line Внесено: 2000.00 [20:08:22]line СДАЧА: 0.00 [20:08:22]line НСП 1% : 17.70 [20:08:22]line НДС 12% : 212.46 [20:08:22]line Наличными: 2000.00 [20:08:22]line Безнал.: 0.00 [20:08:22]line Место: АЗС № 120 "Партнер Нефть" [20:08:22]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [20:08:22]line СНО: Общий режим [20:08:22]line Чек 136 21.06.2024 20:08 [20:08:22]line Смена: 355 ФФД: 1.0 [20:08:22]line ЗНМ: 0300000164 [20:08:22]line РНМ: 0000000000092785 [20:08:22]line Версия ККМ: 001 [20:08:22]line ФМ: 0000000000875093 [20:08:22]line ФД: 104213 [20:08:22]line ФПД: 227305556699679 [20:08:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T200821&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104213&fm=227305556699679&tin=02508201610067®Number=0000000000092785&sum=200000 [20:08:22]OFD Sender: Processing packet 104213 [packets to send 17, broken 16] [20:08:22]ProducePacketName [20:08:22]name=ofd_packets/00104213 [20:08:22]OFD Sender: To server: pG, [20:08:22]CommunicateWithHost lk.salyk.kg:30040 [20:08:22]ConnectInit lk.salyk.kg [20:08:22]written 0, free lines is 4095 [20:08:22]Connected sock=10 [20:08: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 E9 25 07 01 6C 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 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 B5 DD 75 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 15 97 01 00 35 04 06 00 CE BB B2 F6 6A 1F F2 83 50 13 2C E2 4A 35 [20:08: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 D8 3C 47 00 39 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 15 97 01 00 F4 03 04 00 37 84 75 66 B6 04 01 00 00 8B BD E5 C1 DA 14 65 48 [20:08:23]CommunicateWithHost err = 0 [20:08:23]CheckOFDResponse [20:08:23]1017 (14) - 77093643461234 [20:08:23]1041 (16) - 0000000000875093 [20:08:23]1040 (4) - 104213 [20:08:23]1012 (4) - 21.06.2024 13:46 [20:08:23]1206 (1) - 0 [20:08:23]OFD Sender: Remove packet 104213 [20:08:23]ProducePacketName [20:08:23]name=ofd_packets/00104213 [20:08:23]NVStorageDeleteData [20:08:23]Write to MH i2c: 01 00 00 B2 06 B8 [20:08:23]Write i2c OK [20:08:23]MH_I2C_Read... [20:08:23]Read from MH i2c: 01 [20:08:23]MH_I2C_Read... [20:08:23]Read from MH i2c: 01 07 00 [20:08:23]MH_I2C_Read... [20:08:23]Read from MH i2c: 01 07 00 B2 06 00 00 00 00 00 DD 0C A8 [20:08:23]RasterBufferAndPrint [20:08:23]line [20:08:23]line [20:08:23]line [20:08:23]line [20:08:23]line [20:08:23]written 0, free lines is 3299 [20:08:23]MH_Cut [20:08:23]Write to MH i2c: D1 01 00 B9 06 01 91 [20:08:23]Write i2c OK [20:08:23]MH_I2C_Read... [20:08:23]Read from MH i2c: D1 [20:08:23]MH_I2C_Read... [20:08:23]Read from MH i2c: D1 01 00 [20:08:23]MH_I2C_Read... [20:08:23]Read from MH i2c: D1 01 00 B9 06 00 90 [20:08:23]Write to MH i2c: 01 00 00 BA 06 C0 [20:08:23]Write i2c OK [20:08:23]MH_I2C_Read... [20:08:23]OFD Sender: No OFD packet to send [20:08:23]*** Cut start [20:08:23]*** Partial cut [20:08:23]*** CUTSNS_PIN = 1 [20:08:24]*** CUTSNS_PIN = 0 [20:08:24]*** Brake cut motor [20:08:24]Read from MH i2c: 01 [20:08:24]MH_I2C_Read... [20:08:24]*** Stop cut motor [20:08:24]*** Cut end [20:08:24]Read from MH i2c: 01 07 00 [20:08:24]MH_I2C_Read... [20:08:24]Read from MH i2c: 01 07 00 BA 06 00 00 00 00 00 FF 0F D5 [20:08:24]process_action close_receipt done [20:08:24]requested_data is exist [20:08:24]produce_requested_data [20:08:24]requested_item fm.sn is exist - process it [20:08:24]wFMCommunicate request_size=4 [20:08:24]MH_SAM_APDU [20:08:24]CAPDU: 80 11 00 00 [20:08:24]Write to MH i2c: E2 08 00 BB 06 80 11 00 00 00 00 00 00 3B [20:08:24]Write i2c OK [20:08:24]MH_I2C_Read... [20:08:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:08:24]Read from MH i2c: E2 [20:08:24]MH_I2C_Read... [20:08:24]Read from MH i2c: E2 17 00 [20:08:24]MH_I2C_Read... [20:08:24]Read from MH i2c: E2 17 00 BB 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 8E [20:08:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [20:08:24]wFMCommunicate OK [20:08:24]requested_item fd.num is exist - process it [20:08:24]SAM_PROTO_GetFieldsCounters [20:08:24]wFMCommunicate request_size=4 [20:08:24]MH_SAM_APDU [20:08:24]CAPDU: 80 13 00 00 [20:08:24]Write to MH i2c: E2 08 00 BC 06 80 13 00 00 00 00 00 00 3E [20:08:24]Write i2c OK [20:08:24]MH_I2C_Read... [20:08:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:08:24]Read from MH i2c: E2 [20:08:24]MH_I2C_Read... [20:08:24]Read from MH i2c: E2 62 00 [20:08:24]MH_I2C_Read... [20:08:24]Read from MH i2c: E2 62 00 BC 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 15 97 01 00 0E 04 04 00 63 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 0E [20:08:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 63 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 [20:08:24]wFMCommunicate OK [20:08:24]SAM_PROTO_GetFieldsCounters done [20:08:24]requested_item shift.num is exist - process it [20:08:24]requested_item shift.opened is exist - process it [20:08:24]req_shift_opened [20:08:24]FM_GetShiftState [20:08:24]SAM_PROTO_GetShiftState [20:08:24]wFMCommunicate request_size=4 [20:08:24]MH_SAM_APDU [20:08:24]CAPDU: 80 13 01 00 [20:08:24]Write to MH i2c: E2 08 00 BD 06 80 13 01 00 00 00 00 00 40 [20:08:24]Write i2c OK [20:08:24]MH_I2C_Read... [20:08:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:08:24]Read from MH i2c: E2 [20:08:24]MH_I2C_Read... [20:08:24]Read from MH i2c: E2 0E 00 [20:08:24]MH_I2C_Read... [20:08:24]Read from MH i2c: E2 0E 00 BD 06 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 53 [20:08:24]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [20:08:24]wFMCommunicate OK [20:08:24]SAM_PROTO_GetShiftState done [20:08:24]FM_GetShiftState done [20:08:24]req_shift_opened done [20:08:24]requested_item shift.open_date is exist - process it [20:08:24]req_shift_open_date [20:08:24]req_shift_open_date done [20:08:24]produce_requested_data done [20:08:24]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104213,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [20:08:24]process_action_free close_receipt [20:08:24]json_value_free [20:08:24]json_value_free done [20:08:24]process_json_proto returns [20:08:24]Send response to host [20:08:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104213,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [20:08:24]free response buf [20:08:24]execute_script done [20:08:24]execute_script returns [20:08:24]free content buf [20:08:24]Sock 7.Close socket [20:08:24]Sock 7.Thread stoped [20:08:28]OFD Sender: No OFD packet to send [20:08:33]OFD Sender: No OFD packet to send [20:08:38]OFD Sender: No OFD packet to send [20:08:43]OFD Sender: No OFD packet to send [20:08:48]OFD Sender: No OFD packet to send [20:08:53]OFD Sender: No OFD packet to send [20:08:58]OFD Sender: No OFD packet to send [20:09:03]OFD Sender: No OFD packet to send [20:09:08]OFD Sender: No OFD packet to send [20:09:13]OFD Sender: No OFD packet to send [20:09:18]OFD Sender: No OFD packet to send [20:09:23]OFD Sender: No OFD packet to send [20:09:28]OFD Sender: No OFD packet to send [20:09:33]OFD Sender: No OFD packet to send [20:09:38]OFD Sender: No OFD packet to send [20:09:43]OFD Sender: No OFD packet to send [20:09:48]OFD Sender: No OFD packet to send [20:09:53]OFD Sender: No OFD packet to send [20:09:58]OFD Sender: No OFD packet to send [20:10:03]OFD Sender: No OFD packet to send [20:10:08]OFD Sender: No OFD packet to send [20:10:13]OFD Sender: No OFD packet to send [20:10:18]OFD Sender: No OFD packet to send [20:10:23]OFD Sender: No OFD packet to send [20:10:28]OFD Sender: No OFD packet to send [20:10:33]OFD Sender: No OFD packet to send [20:10:38]OFD Sender: No OFD packet to send [20:10:43]OFD Sender: No OFD packet to send [20:10:48]OFD Sender: No OFD packet to send [20:10:53]OFD Sender: No OFD packet to send [20:10:58]OFD Sender: No OFD packet to send [20:11:03]OFD Sender: No OFD packet to send [20:11:08]OFD Sender: No OFD packet to send [20:11:13]OFD Sender: No OFD packet to send [20:11:18]OFD Sender: No OFD packet to send [20:11:23]OFD Sender: No OFD packet to send [20:11:28]OFD Sender: No OFD packet to send [20:11:33]OFD Sender: No OFD packet to send [20:11:38]OFD Sender: No OFD packet to send [20:11:43]OFD Sender: No OFD packet to send [20:11:47]accept exits with 9 [20:11:47]New connection [20:11:47]New thread 3067473252 created [20:11:47]Thread 3067616612 joined [20:11:47]Waiting for new connection... [20:11:47] Sock 9.Parse request [20:11:47]Sock 9.Check first char [20:11:47]Sock 9.First char is OK [20:11:47]request: POST /json_proto HTTP/1.0 [20:11:47]Method: POST [20:11:47]URL: /json_proto [20:11:47]Method is POST - this is cgi request [20:11:47]url: /json_proto [20:11:47]query_string will be loaded in cgi processing [20:11:47]execute_cgi json_proto POST (null) [20:11:47]execute_cgi path=json_proto method=POST [20:11:47]POST find Content-Length [20:11:47]Host: 172.17.38.133:8080 [20:11:47]Content-Length: 816 [20:11:47]Content-Type: application/json [20:11:47] [20:11:47]POST finish read [20:11:47]Found Content-Length = 816 [20:11:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673690", "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 }]} ], "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" ] } } [20:11:47]execute_script... [20:11: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)673690", "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 }]} ], "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" ] } } [20:11:47]POST & json_proto [20:11:47]process_json_proto [20:11:47]json parsed OK: [20:11:47]protocol is kg_v1.0 [20:11:47]action value=close_receipt [20:11:47]process_action close_receipt [20:11:47]cmd_close_receipt [20:11:47]MH_GetDate [20:11:47]Write to MH i2c: F0 00 00 BE 06 B3 [20:11:47]Write i2c OK [20:11:47]MH_I2C_Read... [20:11:47]Read from MH i2c: F0 [20:11:47]MH_I2C_Read... [20:11:47]Read from MH i2c: F0 09 00 [20:11:47]MH_I2C_Read... [20:11:47]Read from MH i2c: F0 09 00 BE 06 00 84 DE 75 66 BD 8F 7C 64 25 [20:11:47]GetLastDocTimeStamp 1719000501 [20:11:47]current date 1719000708 [20:11:47]FM_GetShiftState [20:11:47]SAM_PROTO_GetShiftState [20:11:47]wFMCommunicate request_size=4 [20:11:47]MH_SAM_APDU [20:11:47]CAPDU: 80 13 01 00 [20:11:47]Write to MH i2c: E2 08 00 BF 06 80 13 01 00 00 00 00 00 42 [20:11:47]Write i2c OK [20:11:47]MH_I2C_Read... [20:11:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:11:47]Read from MH i2c: E2 [20:11:47]MH_I2C_Read... [20:11:47]Read from MH i2c: E2 0E 00 [20:11:47]MH_I2C_Read... [20:11:47]Read from MH i2c: E2 0E 00 BF 06 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 55 [20:11:47]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [20:11:47]wFMCommunicate OK [20:11:47]SAM_PROTO_GetShiftState done [20:11:47]FM_GetShiftState done [20:11:47]opened in 1718929509 [20:11:47]opened+sec_in_day 1719015909 [20:11:47]quantity*price = 50065 [20:11:47]sum+1 = 50067 [20:11: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 СНО: Общий режим Чек 137 21.06.2024 20:11 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875093 ФД: 104214 ФПД: 208108837636300 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T201148&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104214&fm=208108837636300&tin=02508201610067®Number=0000000000092785&sum=50066 [20:11:48]StoreToDocumentArchive [20:11:48]shift 355 fd 104214 [20:11:48]save to /storage/0355/doc_00104214 [20:11:48]save last doc name /storage/0355/doc_00104214 to /storage/kkm_last_doc_name [20:11:48]save OK [20:11:48]Clear old archive folders... [20:11:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:11:48]tlvbuf is 0063DDA0 [20:11:48]SAM_PROTO_ClearQueue [20:11:48]wFMCommunicate request_size=4 [20:11:48]MH_SAM_APDU [20:11:48]CAPDU: 80 09 00 00 [20:11:48]Write to MH i2c: E2 08 00 CC 06 80 09 00 00 00 00 00 00 44 [20:11:48]Write i2c OK [20:11:48]MH_I2C_Read... [20:11:48]Read from MH i2c: E2 [20:11:48]MH_I2C_Read... [20:11:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:11:48]Read from MH i2c: E2 03 00 [20:11:48]MH_I2C_Read... [20:11:48]Read from MH i2c: E2 03 00 CC 06 00 90 00 46 [20:11:48]RAPDU: 90 00 [20:11:48]wFMCommunicate OK [20:11:48]SAM_PROTO_ClearQueue done [20:11:48]KKMCreateOFDPacket [20:11:48]OFDProtocolAddRootSTLVToBuf [20:11:48]FM_MakeSignedData [20:11:48]FM_MakeSignedData [20:11:48]SAM_PROTO_SignData [20:11:48]wFMCommunicate request_size=4 [20:11:48]MH_SAM_APDU [20:11:48]CAPDU: 80 0D 01 02 [20:11:48]Write to MH i2c: E2 08 00 CD 06 80 0D 01 02 00 00 00 00 4C [20:11:48]Write i2c OK [20:11:48]MH_I2C_Read... [20:11:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:11:48]Read from MH i2c: E2 [20:11:48]MH_I2C_Read... [20:11:48]Read from MH i2c: E2 03 00 [20:11:48]MH_I2C_Read... [20:11:48]Read from MH i2c: E2 03 00 CD 06 00 90 00 47 [20:11:48]RAPDU: 90 00 [20:11:48]wFMCommunicate OK [20:11:48]wFMCommunicate request_size=255 [20:11:48]MH_SAM_APDU [20:11: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 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 89 00 00 00 F4 03 04 00 84 DE 75 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 16 97 01 00 35 04 06 00 BD [20:11:48]Write to MH i2c: E2 02 01 CE 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 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 89 00 00 00 F4 03 04 00 84 DE 75 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 16 97 01 00 35 04 06 00 BD 00 00 1F [20:11:48]Write i2c OK [20:11:48]MH_I2C_Read... [20:11:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:11:48]Read from MH i2c: E2 [20:11:48]MH_I2C_Read... [20:11:48]Read from MH i2c: E2 03 00 [20:11:48]MH_I2C_Read... [20:11:48]Read from MH i2c: E2 03 00 CE 06 00 90 00 48 [20:11:48]RAPDU: 90 00 [20:11:48]wFMCommunicate OK [20:11:48]wFMCommunicate request_size=10 [20:11:48]MH_SAM_APDU [20:11:48]CAPDU: 80 0D 02 02 05 46 1D 57 88 CC [20:11:48]Write to MH i2c: E2 0D 00 CF 06 80 0D 02 02 05 00 46 1D 57 88 CC 00 00 67 [20:11:48]Write i2c OK [20:11:48]MH_I2C_Read... [20:11:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:11:48]Read from MH i2c: E2 [20:11:48]MH_I2C_Read... [20:11:48]Read from MH i2c: E2 03 00 [20:11:48]MH_I2C_Read... [20:11:48]Read from MH i2c: E2 03 00 CF 06 00 90 00 49 [20:11:48]RAPDU: 90 00 [20:11:48]wFMCommunicate OK [20:11:48]wFMCommunicate request_size=4 [20:11:48]MH_SAM_APDU [20:11:48]CAPDU: 80 0D 03 02 [20:11:48]Write to MH i2c: E2 08 00 D0 06 80 0D 03 02 00 00 00 00 51 [20:11:48]Write i2c OK [20:11:48]MH_I2C_Read... [20:11:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:11:48]Read from MH i2c: E2 [20:11:48]MH_I2C_Read... [20:11:48]Read from MH i2c: E2 0B 00 [20:11:48]MH_I2C_Read... [20:11:48]Read from MH i2c: E2 0B 00 D0 06 00 F3 53 30 CD 97 FB 8E 47 90 00 FC [20:11:48]RAPDU: F3 53 30 CD 97 FB 8E 47 90 00 [20:11:48]wFMCommunicate OK [20:11:48]SAM_PROTO_SignData done [20:11:48]FM_MakeSignedData done [20:11:48]CreateOFDProtocolMessage [20:11:48]wFMCommunicate request_size=4 [20:11:48]MH_SAM_APDU [20:11:48]CAPDU: 80 11 00 00 [20:11:48]Write to MH i2c: E2 08 00 D1 06 80 11 00 00 00 00 00 00 51 [20:11:48]Write i2c OK [20:11:48]MH_I2C_Read... [20:11:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:11:48]Read from MH i2c: E2 [20:11:48]MH_I2C_Read... [20:11:48]Read from MH i2c: E2 17 00 [20:11:48]MH_I2C_Read... [20:11:48]Read from MH i2c: E2 17 00 D1 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 A4 [20:11:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [20:11:48]wFMCommunicate OK [20:11:48]CreateOFDProtocolMessage done [20:11:48]OFDSenderStorePacket 104214 [20:11:48]StoreOFDPacket docnum=104214 [20:11: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 1A F2 07 01 53 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 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 89 00 00 00 F4 03 04 00 84 DE 75 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 16 97 01 00 35 04 06 00 BD 46 1D 57 88 CC F3 53 30 CD 97 FB 8E 47 [20:11:48]CheckFolder [20:11:48]dirname=/storage/ofd_packets [20:11:48]CheckFolder done [20:11:48]ProducePacketName [20:11:48]name=ofd_packets/00104214 [20:11:48]NVStorageSaveData ofd_packets/00104214 [20:11:48]File name is /storage/ofd_packets/00104214 [20:11:48]Write 301 bytes [20:11:48]NVStorageSaveData done [20:11:48]OFDSenderStorePacket done [20:11:48]KKMCreateOFDPacket done [20:11:48]NVStorageSaveData kkm_last_timestamp [20:11:48]File name is /storage/kkm_last_timestamp [20:11:48]Write 4 bytes [20:11:48]NVStorageSaveData done [20:11:48]ExternCall_PrintAddStr [20:11:48]wPrintStart [20:11:48]Write to MH i2c: 01 00 00 D2 06 D8 [20:11:48]Write i2c OK [20:11:48]MH_I2C_Read... [20:11:48]Read from MH i2c: 01 [20:11:48]MH_I2C_Read... [20:11:48]Read from MH i2c: 01 07 00 [20:11:48]MH_I2C_Read... [20:11:48]Read from MH i2c: 01 07 00 D2 06 00 00 00 00 00 FF 0F ED [20:11:48]RasterBufferAndPrint [20:11:48]line Счет N : (1)673690 [20:11:48]line ИНН: 02508201610067 [20:11:48]line Контрольно-Кассовый Чек [20:11:48]line ПРОДАЖА [20:11:48]line ТРК (МРК, ГНК) : 42 [20:11:48]line Товар: 2710124130 [20:11:48]line Аи-92-К-5 [20:11:48]line 7.540 * 66.40 [20:11:48]line = 500.66 [20:11:48]line НДС 12% НСП 1% [20:11:48]line > о реализуемом товаре [20:11:48]line ИТОГО: 500.66 [20:11:48]line НСП 1% : 4.43 [20:11:48]line НДС 12% : 53.17 [20:11:48]line Наличными: 0.00 [20:11:48]line Безнал.: 500.66 [20:11:48]line Место: АЗС № 120 "Партнер Нефть" [20:11:48]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [20:11:48]line СНО: Общий режим [20:11:48]line Чек 137 21.06.2024 20:11 [20:11:48]line Смена: 355 ФФД: 1.0 [20:11:48]line ЗНМ: 0300000164 [20:11:48]line РНМ: 0000000000092785 [20:11:48]line Версия ККМ: 001 [20:11:48]line Платежная система: Бакай Банк [20:11:48]line ФМ: 0000000000875093 [20:11:48]line ФД: 104214 [20:11:48]line ФПД: 208108837636300 [20:11:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T201148&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104214&fm=208108837636300&tin=02508201610067®Number=0000000000092785&sum=50066 [20:11:49]written 0, free lines is 4095 [20:11:49]OFD Sender: Processing packet 104214 [packets to send 17, broken 16] [20:11:49]ProducePacketName [20:11:49]name=ofd_packets/00104214 [20:11:49]OFD Sender: To server: pG, [20:11:49]CommunicateWithHost lk.salyk.kg:30040 [20:11:49]ConnectInit lk.salyk.kg [20:11:49]Connected sock=10 [20:11: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 1A F2 07 01 53 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 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 89 00 00 00 F4 03 04 00 84 DE 75 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 16 97 01 00 35 04 06 00 BD 46 1D 57 88 CC F3 53 30 CD 97 FB 8E 47 [20:11: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 F9 CF 47 00 DB F8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 16 97 01 00 F4 03 04 00 05 85 75 66 B6 04 01 00 00 25 8B D8 F6 13 89 41 85 [20:11:49]CommunicateWithHost err = 0 [20:11:49]CheckOFDResponse [20:11:49]1017 (14) - 77093643461234 [20:11:49]1041 (16) - 0000000000875093 [20:11:49]1040 (4) - 104214 [20:11:49]1012 (4) - 21.06.2024 13:49 [20:11:49]1206 (1) - 0 [20:11:49]OFD Sender: Remove packet 104214 [20:11:49]ProducePacketName [20:11:49]name=ofd_packets/00104214 [20:11:49]NVStorageDeleteData [20:11:49]Write to MH i2c: 01 00 00 FC 06 02 [20:11:49]Write i2c OK [20:11:49]MH_I2C_Read... [20:11:49]Read from MH i2c: 01 [20:11:49]MH_I2C_Read... [20:11:49]Read from MH i2c: 01 07 00 [20:11:49]MH_I2C_Read... [20:11:49]Read from MH i2c: 01 07 00 FC 06 00 00 00 00 00 EA 0C FF [20:11:49]RasterBufferAndPrint [20:11:49]line [20:11:49]line [20:11:49]line [20:11:49]line [20:11:49]line [20:11:49]written 0, free lines is 3313 [20:11:49]MH_Cut [20:11:49]Write to MH i2c: D1 01 00 03 07 01 DC [20:11:49]Write i2c OK [20:11:49]MH_I2C_Read... [20:11:49]Read from MH i2c: D1 [20:11:49]MH_I2C_Read... [20:11:49]Read from MH i2c: D1 01 00 [20:11:49]MH_I2C_Read... [20:11:49]Read from MH i2c: D1 01 00 03 07 00 DB [20:11:49]Write to MH i2c: 01 00 00 04 07 0B [20:11:49]Write i2c OK [20:11:49]MH_I2C_Read... [20:11:50]OFD Sender: No OFD packet to send [20:11:50]*** Cut start [20:11:50]*** Partial cut [20:11:50]*** CUTSNS_PIN = 1 [20:11:50]*** CUTSNS_PIN = 0 [20:11:50]*** Brake cut motor [20:11:50]Read from MH i2c: 01 [20:11:50]MH_I2C_Read... [20:11:50]*** Stop cut motor [20:11:50]*** Cut end [20:11:50]Read from MH i2c: 01 07 00 [20:11:50]MH_I2C_Read... [20:11:50]Read from MH i2c: 01 07 00 04 07 00 00 00 00 00 FF 0F 20 [20:11:50]process_action close_receipt done [20:11:50]requested_data is exist [20:11:50]produce_requested_data [20:11:50]requested_item fm.sn is exist - process it [20:11:50]wFMCommunicate request_size=4 [20:11:50]MH_SAM_APDU [20:11:50]CAPDU: 80 11 00 00 [20:11:50]Write to MH i2c: E2 08 00 05 07 80 11 00 00 00 00 00 00 86 [20:11:50]Write i2c OK [20:11:50]MH_I2C_Read... [20:11:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:11:51]Read from MH i2c: E2 [20:11:51]MH_I2C_Read... [20:11:51]Read from MH i2c: E2 17 00 [20:11:51]MH_I2C_Read... [20:11:51]Read from MH i2c: E2 17 00 05 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 D9 [20:11: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:11:51]wFMCommunicate OK [20:11:51]requested_item fd.num is exist - process it [20:11:51]SAM_PROTO_GetFieldsCounters [20:11:51]wFMCommunicate request_size=4 [20:11:51]MH_SAM_APDU [20:11:51]CAPDU: 80 13 00 00 [20:11:51]Write to MH i2c: E2 08 00 06 07 80 13 00 00 00 00 00 00 89 [20:11:51]Write i2c OK [20:11:51]MH_I2C_Read... [20:11:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:11:51]Read from MH i2c: E2 [20:11:51]MH_I2C_Read... [20:11:51]Read from MH i2c: E2 62 00 [20:11:51]MH_I2C_Read... [20:11:51]Read from MH i2c: E2 62 00 06 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 16 97 01 00 0E 04 04 00 63 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 5D [20:11:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 89 00 00 00 5E 04 04 00 89 00 00 00 57 04 04 00 8A 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:11:51]wFMCommunicate OK [20:11:51]SAM_PROTO_GetFieldsCounters done [20:11:51]requested_item shift.num is exist - process it [20:11:51]requested_item shift.opened is exist - process it [20:11:51]req_shift_opened [20:11:51]FM_GetShiftState [20:11:51]SAM_PROTO_GetShiftState [20:11:51]wFMCommunicate request_size=4 [20:11:51]MH_SAM_APDU [20:11:51]CAPDU: 80 13 01 00 [20:11:51]Write to MH i2c: E2 08 00 07 07 80 13 01 00 00 00 00 00 8B [20:11:51]Write i2c OK [20:11:51]MH_I2C_Read... [20:11:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:11:51]Read from MH i2c: E2 [20:11:51]MH_I2C_Read... [20:11:51]Read from MH i2c: E2 0E 00 [20:11:51]MH_I2C_Read... [20:11:51]Read from MH i2c: E2 0E 00 07 07 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 9E [20:11:51]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [20:11:51]wFMCommunicate OK [20:11:51]SAM_PROTO_GetShiftState done [20:11:51]FM_GetShiftState done [20:11:51]req_shift_opened done [20:11:51]requested_item shift.open_date is exist - process it [20:11:51]req_shift_open_date [20:11:51]req_shift_open_date done [20:11:51]produce_requested_data done [20:11:51]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104214,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [20:11:51]process_action_free close_receipt [20:11:51]json_value_free [20:11:51]json_value_free done [20:11:51]process_json_proto returns [20:11:51]Send response to host [20:11:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104214,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [20:11:51]free response buf [20:11:51]execute_script done [20:11:51]execute_script returns [20:11:51]free content buf [20:11:51]Sock 9.Close socket [20:11:51]Sock 9.Thread stoped [20:11:55]OFD Sender: No OFD packet to send [20:12:00]OFD Sender: No OFD packet to send [20:12:05]OFD Sender: No OFD packet to send [20:12:10]OFD Sender: No OFD packet to send [20:12:15]OFD Sender: No OFD packet to send [20:12:20]OFD Sender: No OFD packet to send [20:12:25]OFD Sender: No OFD packet to send [20:12:30]OFD Sender: No OFD packet to send [20:12:35]OFD Sender: No OFD packet to send [20:12:40]OFD Sender: No OFD packet to send [20:12:45]OFD Sender: No OFD packet to send [20:12:50]OFD Sender: No OFD packet to send [20:12:55]OFD Sender: No OFD packet to send [20:13:00]OFD Sender: No OFD packet to send [20:13:05]OFD Sender: No OFD packet to send [20:13:10]OFD Sender: No OFD packet to send [20:13:15]OFD Sender: No OFD packet to send [20:13:20]OFD Sender: No OFD packet to send [20:13:25]OFD Sender: No OFD packet to send [20:13:30]OFD Sender: No OFD packet to send [20:13:35]OFD Sender: No OFD packet to send [20:13:40]OFD Sender: No OFD packet to send [20:13:45]OFD Sender: No OFD packet to send [20:13:50]OFD Sender: No OFD packet to send [20:13:55]OFD Sender: No OFD packet to send [20:14:00]OFD Sender: No OFD packet to send [20:14:05]OFD Sender: No OFD packet to send [20:14:10]OFD Sender: No OFD packet to send [20:14:15]OFD Sender: No OFD packet to send [20:14:20]OFD Sender: No OFD packet to send [20:14:25]OFD Sender: No OFD packet to send [20:14:30]OFD Sender: No OFD packet to send [20:14:35]OFD Sender: No OFD packet to send [20:14:40]OFD Sender: No OFD packet to send [20:14:45]OFD Sender: No OFD packet to send [20:14:50]OFD Sender: No OFD packet to send [20:14:55]OFD Sender: No OFD packet to send [20:15:00]OFD Sender: No OFD packet to send [20:15:05]OFD Sender: No OFD packet to send [20:15:10]OFD Sender: No OFD packet to send [20:15:15]OFD Sender: No OFD packet to send [20:15:20]OFD Sender: No OFD packet to send [20:15:25]OFD Sender: No OFD packet to send [20:15:30]OFD Sender: No OFD packet to send [20:15:35]OFD Sender: No OFD packet to send [20:15:40]OFD Sender: No OFD packet to send [20:15:45]OFD Sender: No OFD packet to send [20:15:50]OFD Sender: No OFD packet to send [20:15:55]OFD Sender: No OFD packet to send [20:16:00]OFD Sender: No OFD packet to send [20:16:05]OFD Sender: No OFD packet to send [20:16:10]OFD Sender: No OFD packet to send [20:16:15]OFD Sender: No OFD packet to send [20:16:20]OFD Sender: No OFD packet to send [20:16:25]OFD Sender: No OFD packet to send [20:16:30]OFD Sender: No OFD packet to send [20:16:35]OFD Sender: No OFD packet to send [20:16:39]accept exits with 7 [20:16:39]New connection [20:16:39]New thread 3067616612 created [20:16:39]Thread 3067473252 joined [20:16:39]Waiting for new connection... [20:16:39] Sock 7.Parse request [20:16:39]Sock 7.Check first char [20:16:39]Sock 7.First char is OK [20:16:39]request: POST /json_proto HTTP/1.0 [20:16:39]Method: POST [20:16:39]URL: /json_proto [20:16:39]Method is POST - this is cgi request [20:16:39]url: /json_proto [20:16:39]query_string will be loaded in cgi processing [20:16:39]execute_cgi json_proto POST (null) [20:16:39]execute_cgi path=json_proto method=POST [20:16:39]POST find Content-Length [20:16:39]Host: 172.17.38.133:8080 [20:16:39]Content-Length: 642 [20:16:39]Content-Type: application/json [20:16:39] [20:16:39]POST finish read [20:16:39]Found Content-Length = 642 [20:16:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673691", "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.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" ] } } [20:16:39]execute_script... [20:16: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)673691", "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.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" ] } } [20:16:39]POST & json_proto [20:16:39]process_json_proto [20:16:39]json parsed OK: [20:16:39]protocol is kg_v1.0 [20:16:39]action value=close_receipt [20:16:39]process_action close_receipt [20:16:39]cmd_close_receipt [20:16:39]MH_GetDate [20:16:39]Write to MH i2c: F0 00 00 08 07 FE [20:16:39]Write i2c OK [20:16:39]MH_I2C_Read... [20:16:39]Read from MH i2c: F0 [20:16:39]MH_I2C_Read... [20:16:39]Read from MH i2c: F0 09 00 [20:16:39]MH_I2C_Read... [20:16:39]Read from MH i2c: F0 09 00 08 07 00 A8 DF 75 66 BD 8F 7C 64 95 [20:16:39]GetLastDocTimeStamp 1719000708 [20:16:39]current date 1719001000 [20:16:39]FM_GetShiftState [20:16:39]SAM_PROTO_GetShiftState [20:16:39]wFMCommunicate request_size=4 [20:16:39]MH_SAM_APDU [20:16:39]CAPDU: 80 13 01 00 [20:16:39]Write to MH i2c: E2 08 00 09 07 80 13 01 00 00 00 00 00 8D [20:16:39]Write i2c OK [20:16:39]MH_I2C_Read... [20:16:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:16:39]Read from MH i2c: E2 [20:16:39]MH_I2C_Read... [20:16:39]Read from MH i2c: E2 0E 00 [20:16:39]MH_I2C_Read... [20:16:39]Read from MH i2c: E2 0E 00 09 07 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 A0 [20:16:39]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [20:16:39]wFMCommunicate OK [20:16:39]SAM_PROTO_GetShiftState done [20:16:39]FM_GetShiftState done [20:16:39]opened in 1718929509 [20:16:39]opened+sec_in_day 1719015909 [20:16:39]quantity*price = 132800 [20:16:39]sum+1 = 132801 [20:16:39]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 СНО: Общий режим Чек 138 21.06.2024 20:16 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104215 ФПД: 146337425340356 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T201640&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104215&fm=146337425340356&tin=02508201610067®Number=0000000000092785&sum=132800 [20:16:40]StoreToDocumentArchive [20:16:40]shift 355 fd 104215 [20:16:40]save to /storage/0355/doc_00104215 [20:16:40]save last doc name /storage/0355/doc_00104215 to /storage/kkm_last_doc_name [20:16:40]save OK [20:16:40]Clear old archive folders... [20:16:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:16:40]tlvbuf is 0063E070 [20:16:40]SAM_PROTO_ClearQueue [20:16:40]wFMCommunicate request_size=4 [20:16:40]MH_SAM_APDU [20:16:40]CAPDU: 80 09 00 00 [20:16:40]Write to MH i2c: E2 08 00 16 07 80 09 00 00 00 00 00 00 8F [20:16:40]Write i2c OK [20:16:40]MH_I2C_Read... [20:16:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:16:40]Read from MH i2c: E2 [20:16:40]MH_I2C_Read... [20:16:40]Read from MH i2c: E2 03 00 [20:16:40]MH_I2C_Read... [20:16:40]Read from MH i2c: E2 03 00 16 07 00 90 00 91 [20:16:40]RAPDU: 90 00 [20:16:40]wFMCommunicate OK [20:16:40]SAM_PROTO_ClearQueue done [20:16:40]KKMCreateOFDPacket [20:16:40]OFDProtocolAddRootSTLVToBuf [20:16:40]FM_MakeSignedData [20:16:40]FM_MakeSignedData [20:16:40]SAM_PROTO_SignData [20:16:40]wFMCommunicate request_size=4 [20:16:40]MH_SAM_APDU [20:16:40]CAPDU: 80 0D 01 02 [20:16:40]Write to MH i2c: E2 08 00 17 07 80 0D 01 02 00 00 00 00 97 [20:16:40]Write i2c OK [20:16:40]MH_I2C_Read... [20:16:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:16:40]Read from MH i2c: E2 [20:16:40]MH_I2C_Read... [20:16:40]Read from MH i2c: E2 03 00 [20:16:40]MH_I2C_Read... [20:16:40]Read from MH i2c: E2 03 00 17 07 00 90 00 92 [20:16:40]RAPDU: 90 00 [20:16:40]wFMCommunicate OK [20:16:40]wFMCommunicate request_size=255 [20:16:40]MH_SAM_APDU [20:16: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 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 8A 00 00 00 F4 03 04 00 A8 DF 75 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 17 97 01 00 35 04 06 00 85 [20:16:40]Write to MH i2c: E2 02 01 18 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 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 8A 00 00 00 F4 03 04 00 A8 DF 75 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 17 97 01 00 35 04 06 00 85 00 00 E3 [20:16:40]Write i2c OK [20:16:40]MH_I2C_Read... [20:16:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:16:40]Read from MH i2c: E2 [20:16:40]MH_I2C_Read... [20:16:40]Read from MH i2c: E2 03 00 [20:16:40]MH_I2C_Read... [20:16:40]Read from MH i2c: E2 03 00 18 07 00 90 00 93 [20:16:40]RAPDU: 90 00 [20:16:40]wFMCommunicate OK [20:16:40]wFMCommunicate request_size=10 [20:16:40]MH_SAM_APDU [20:16:40]CAPDU: 80 0D 02 02 05 17 D6 41 37 C4 [20:16:40]Write to MH i2c: E2 0D 00 19 07 80 0D 02 02 05 00 17 D6 41 37 C4 00 00 CD [20:16:40]Write i2c OK [20:16:40]MH_I2C_Read... [20:16:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:16:41]Read from MH i2c: E2 [20:16:41]MH_I2C_Read... [20:16:41]Read from MH i2c: E2 03 00 [20:16:41]MH_I2C_Read... [20:16:41]Read from MH i2c: E2 03 00 19 07 00 90 00 94 [20:16:41]RAPDU: 90 00 [20:16:41]wFMCommunicate OK [20:16:41]wFMCommunicate request_size=4 [20:16:41]MH_SAM_APDU [20:16:41]CAPDU: 80 0D 03 02 [20:16:41]Write to MH i2c: E2 08 00 1A 07 80 0D 03 02 00 00 00 00 9C [20:16:41]Write i2c OK [20:16:41]MH_I2C_Read... [20:16:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:16:41]Read from MH i2c: E2 [20:16:41]MH_I2C_Read... [20:16:41]Read from MH i2c: E2 0B 00 [20:16:41]MH_I2C_Read... [20:16:41]Read from MH i2c: E2 0B 00 1A 07 00 75 2D A9 ED 88 CC 7F 13 90 00 BB [20:16:41]RAPDU: 75 2D A9 ED 88 CC 7F 13 90 00 [20:16:41]wFMCommunicate OK [20:16:41]SAM_PROTO_SignData done [20:16:41]FM_MakeSignedData done [20:16:41]CreateOFDProtocolMessage [20:16:41]wFMCommunicate request_size=4 [20:16:41]MH_SAM_APDU [20:16:41]CAPDU: 80 11 00 00 [20:16:41]Write to MH i2c: E2 08 00 1B 07 80 11 00 00 00 00 00 00 9C [20:16:41]Write i2c OK [20:16:41]MH_I2C_Read... [20:16:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:16:41]Read from MH i2c: E2 [20:16:41]MH_I2C_Read... [20:16:41]Read from MH i2c: E2 17 00 [20:16:41]MH_I2C_Read... [20:16:41]Read from MH i2c: E2 17 00 1B 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 EF [20:16:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [20:16:41]wFMCommunicate OK [20:16:41]CreateOFDProtocolMessage done [20:16:41]OFDSenderStorePacket 104215 [20:16:41]StoreOFDPacket docnum=104215 [20:16: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 A6 55 07 01 A5 A2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 8A 00 00 00 F4 03 04 00 A8 DF 75 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 17 97 01 00 35 04 06 00 85 17 D6 41 37 C4 75 2D A9 ED 88 CC 7F 13 [20:16:41]CheckFolder [20:16:41]dirname=/storage/ofd_packets [20:16:41]CheckFolder done [20:16:41]ProducePacketName [20:16:41]name=ofd_packets/00104215 [20:16:41]NVStorageSaveData ofd_packets/00104215 [20:16:41]File name is /storage/ofd_packets/00104215 [20:16:41]Write 301 bytes [20:16:41]NVStorageSaveData done [20:16:41]OFDSenderStorePacket done [20:16:41]KKMCreateOFDPacket done [20:16:41]NVStorageSaveData kkm_last_timestamp [20:16:41]File name is /storage/kkm_last_timestamp [20:16:41]Write 4 bytes [20:16:41]NVStorageSaveData done [20:16:41]ExternCall_PrintAddStr [20:16:41]wPrintStart [20:16:41]Write to MH i2c: 01 00 00 1C 07 23 [20:16:41]OFD Sender: Processing packet 104215 [packets to send 17, broken 16] [20:16:41]ProducePacketName [20:16:41]name=ofd_packets/00104215 [20:16:41]OFD Sender: To server: pG, [20:16:41]CommunicateWithHost lk.salyk.kg:30040 [20:16:41]ConnectInit lk.salyk.kg [20:16:41]Write i2c OK [20:16:41]MH_I2C_Read... [20:16:41]Read from MH i2c: 01 [20:16:41]MH_I2C_Read... [20:16:41]Read from MH i2c: 01 07 00 [20:16:41]MH_I2C_Read... [20:16:41]Read from MH i2c: 01 07 00 1C 07 00 00 00 00 00 FF 0F 38 [20:16:41]RasterBufferAndPrint [20:16:41]line Счет N : (1)673691 [20:16:41]line ИНН: 02508201610067 [20:16:41]line Контрольно-Кассовый Чек [20:16:41]line ПРОДАЖА [20:16:41]line ТРК (МРК, ГНК) : 42 [20:16:41]line Товар: 2710124130 [20:16:41]line Аи-92-К-5 [20:16:41]line 20.000 * 66.40 [20:16:41]line = 1328.00 [20:16:41]line НДС 12% НСП 1% [20:16:41]line > о реализуемом товаре [20:16:41]line ИТОГО: 1328.00 [20:16:41]line НСП 1% : 11.75 [20:16:41]line НДС 12% : 141.03 [20:16:41]line Наличными: 1328.00 [20:16:41]line Безнал.: 0.00 [20:16:41]line Место: АЗС № 120 "Партнер Нефть" [20:16:41]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [20:16:41]line СНО: Общий режим [20:16:41]line Чек 138 21.06.2024 20:16 [20:16:41]line Смена: 355 ФФД: 1.0 [20:16:41]line ЗНМ: 0300000164 [20:16:41]line РНМ: 0000000000092785 [20:16:41]line Версия ККМ: 001 [20:16:41]line ФМ: 0000000000875093 [20:16:41]line ФД: 104215 [20:16:41]line ФПД: 146337425340356 [20:16:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T201640&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104215&fm=146337425340356&tin=02508201610067®Number=0000000000092785&sum=132800 [20:16:41]Connected sock=10 [20:16: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 A6 55 07 01 A5 A2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 8A 00 00 00 F4 03 04 00 A8 DF 75 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 17 97 01 00 35 04 06 00 85 17 D6 41 37 C4 75 2D A9 ED 88 CC 7F 13 [20:16:41]written 0, free lines is 4095 [20:16: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 AB 1F 47 00 2D 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 17 97 01 00 F4 03 04 00 29 86 75 66 B6 04 01 00 00 45 C2 B9 F0 BE 34 97 8A [20:16:41]CommunicateWithHost err = 0 [20:16:41]CheckOFDResponse [20:16:41]1017 (14) - 77093643461234 [20:16:41]1041 (16) - 0000000000875093 [20:16:41]1040 (4) - 104215 [20:16:41]1012 (4) - 21.06.2024 13:54 [20:16:41]1206 (1) - 0 [20:16:41]OFD Sender: Remove packet 104215 [20:16:41]ProducePacketName [20:16:41]name=ofd_packets/00104215 [20:16:41]NVStorageDeleteData [20:16:41]Write to MH i2c: 01 00 00 44 07 4B [20:16:41]Write i2c OK [20:16:41]MH_I2C_Read... [20:16:41]Read from MH i2c: 01 [20:16:41]MH_I2C_Read... [20:16:41]Read from MH i2c: 01 07 00 [20:16:41]MH_I2C_Read... [20:16:41]Read from MH i2c: 01 07 00 44 07 00 00 00 00 00 12 0D 71 [20:16:41]RasterBufferAndPrint [20:16:41]line [20:16:41]line [20:16:41]line [20:16:41]line [20:16:41]line [20:16:41]written 0, free lines is 3353 [20:16:41]MH_Cut [20:16:41]Write to MH i2c: D1 01 00 4B 07 01 24 [20:16:41]Write i2c OK [20:16:41]MH_I2C_Read... [20:16:41]Read from MH i2c: D1 [20:16:41]MH_I2C_Read... [20:16:41]Read from MH i2c: D1 01 00 [20:16:41]MH_I2C_Read... [20:16:41]Read from MH i2c: D1 01 00 4B 07 00 23 [20:16:41]Write to MH i2c: 01 00 00 4C 07 53 [20:16:41]Write i2c OK [20:16:41]MH_I2C_Read... [20:16:42]OFD Sender: No OFD packet to send [20:16:42]*** Cut start [20:16:42]*** Partial cut [20:16:42]*** CUTSNS_PIN = 1 [20:16:42]*** CUTSNS_PIN = 0 [20:16:42]*** Brake cut motor [20:16:43]Read from MH i2c: 01 [20:16:43]MH_I2C_Read... [20:16:43]*** Stop cut motor [20:16:43]*** Cut end [20:16:43]Read from MH i2c: 01 07 00 [20:16:43]MH_I2C_Read... [20:16:43]Read from MH i2c: 01 07 00 4C 07 00 00 00 00 00 FF 0F 68 [20:16:43]process_action close_receipt done [20:16:43]requested_data is exist [20:16:43]produce_requested_data [20:16:43]requested_item fm.sn is exist - process it [20:16:43]wFMCommunicate request_size=4 [20:16:43]MH_SAM_APDU [20:16:43]CAPDU: 80 11 00 00 [20:16:43]Write to MH i2c: E2 08 00 4D 07 80 11 00 00 00 00 00 00 CE [20:16:43]Write i2c OK [20:16:43]MH_I2C_Read... [20:16:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:16:43]Read from MH i2c: E2 [20:16:43]MH_I2C_Read... [20:16:43]Read from MH i2c: E2 17 00 [20:16:43]MH_I2C_Read... [20:16:43]Read from MH i2c: E2 17 00 4D 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 21 [20:16: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:16:43]wFMCommunicate OK [20:16:43]requested_item fd.num is exist - process it [20:16:43]SAM_PROTO_GetFieldsCounters [20:16:43]wFMCommunicate request_size=4 [20:16:43]MH_SAM_APDU [20:16:43]CAPDU: 80 13 00 00 [20:16:43]Write to MH i2c: E2 08 00 4E 07 80 13 00 00 00 00 00 00 D1 [20:16:43]Write i2c OK [20:16:43]MH_I2C_Read... [20:16:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:16:43]Read from MH i2c: E2 [20:16:43]MH_I2C_Read... [20:16:43]Read from MH i2c: E2 62 00 [20:16:43]MH_I2C_Read... [20:16:43]Read from MH i2c: E2 62 00 4E 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 17 97 01 00 0E 04 04 00 63 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 A9 [20:16: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 17 97 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 8A 00 00 00 5E 04 04 00 8A 00 00 00 57 04 04 00 8B 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:16:43]wFMCommunicate OK [20:16:43]SAM_PROTO_GetFieldsCounters done [20:16:43]requested_item shift.num is exist - process it [20:16:43]requested_item shift.opened is exist - process it [20:16:43]req_shift_opened [20:16:43]FM_GetShiftState [20:16:43]SAM_PROTO_GetShiftState [20:16:43]wFMCommunicate request_size=4 [20:16:43]MH_SAM_APDU [20:16:43]CAPDU: 80 13 01 00 [20:16:43]Write to MH i2c: E2 08 00 4F 07 80 13 01 00 00 00 00 00 D3 [20:16:43]Write i2c OK [20:16:43]MH_I2C_Read... [20:16:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:16:43]Read from MH i2c: E2 [20:16:43]MH_I2C_Read... [20:16:43]Read from MH i2c: E2 0E 00 [20:16:43]MH_I2C_Read... [20:16:43]Read from MH i2c: E2 0E 00 4F 07 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 E6 [20:16:43]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [20:16:43]wFMCommunicate OK [20:16:43]SAM_PROTO_GetShiftState done [20:16:43]FM_GetShiftState done [20:16:43]req_shift_opened done [20:16:43]requested_item shift.open_date is exist - process it [20:16:43]req_shift_open_date [20:16:43]req_shift_open_date done [20:16:43]produce_requested_data done [20:16:43]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104215,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [20:16:43]process_action_free close_receipt [20:16:43]json_value_free [20:16:43]json_value_free done [20:16:43]process_json_proto returns [20:16:43]Send response to host [20:16:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104215,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [20:16:43]free response buf [20:16:43]execute_script done [20:16:43]execute_script returns [20:16:43]free content buf [20:16:43]Sock 7.Close socket [20:16:43]Sock 7.Thread stoped [20:16:45]accept exits with 9 [20:16:45]New connection [20:16:45]New thread 3067473252 created [20:16:45]Thread 3067616612 joined [20:16:45]Waiting for new connection... [20:16:45] Sock 9.Parse request [20:16:45]Sock 9.Check first char [20:16:45]Sock 9.First char is OK [20:16:45]request: POST /json_proto HTTP/1.0 [20:16:45]Method: POST [20:16:45]URL: /json_proto [20:16:45]Method is POST - this is cgi request [20:16:45]url: /json_proto [20:16:45]query_string will be loaded in cgi processing [20:16:45]execute_cgi json_proto POST (null) [20:16:45]execute_cgi path=json_proto method=POST [20:16:45]POST find Content-Length [20:16:45]Host: 172.17.38.133:8080 [20:16:45]Content-Length: 699 [20:16:45]Content-Type: application/json [20:16:45] [20:16:45]POST finish read [20:16:45]Found Content-Length = 699 [20:16:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 104215, "base_FM": "0000000000875093", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673691", "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.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" ] } } [20:16:45]execute_script... [20:16:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 104215, "base_FM": "0000000000875093", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673691", "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.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" ] } } [20:16:45]POST & json_proto [20:16:45]process_json_proto [20:16:45]json parsed OK: [20:16:45]protocol is kg_v1.0 [20:16:45]action value=close_receipt [20:16:45]process_action close_receipt [20:16:45]cmd_close_receipt [20:16:45]MH_GetDate [20:16:45]Write to MH i2c: F0 00 00 50 07 46 [20:16:45]Write i2c OK [20:16:45]MH_I2C_Read... [20:16:45]Read from MH i2c: F0 [20:16:45]MH_I2C_Read... [20:16:45]Read from MH i2c: F0 09 00 [20:16:45]MH_I2C_Read... [20:16:45]Read from MH i2c: F0 09 00 50 07 00 AE DF 75 66 BD 8F 7C 64 E3 [20:16:45]GetLastDocTimeStamp 1719001000 [20:16:45]current date 1719001006 [20:16:45]FM_GetShiftState [20:16:45]SAM_PROTO_GetShiftState [20:16:45]wFMCommunicate request_size=4 [20:16:45]MH_SAM_APDU [20:16:45]CAPDU: 80 13 01 00 [20:16:45]Write to MH i2c: E2 08 00 51 07 80 13 01 00 00 00 00 00 D5 [20:16:45]Write i2c OK [20:16:45]MH_I2C_Read... [20:16:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:16:45]Read from MH i2c: E2 [20:16:45]MH_I2C_Read... [20:16:45]Read from MH i2c: E2 0E 00 [20:16:45]MH_I2C_Read... [20:16:45]Read from MH i2c: E2 0E 00 51 07 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 E8 [20:16:45]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [20:16:45]wFMCommunicate OK [20:16:45]SAM_PROTO_GetShiftState done [20:16:45]FM_GetShiftState done [20:16:45]opened in 1718929509 [20:16:45]opened+sec_in_day 1719015909 [20:16:45]quantity*price = 132800 [20:16:45]sum+1 = 132801 [20:16:45]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 СНО: Общий режим Чек 139 21.06.2024 20:16 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФД осн.: 104215 ФМ осн.: 0000000000875093 ФМ: 0000000000875093 ФД: 104216 ФПД: 197415588636446 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T201647&type=2&operation_type=1&fn_number=0000000000875093&fd_number=104216&fm=197415588636446&tin=02508201610067®Number=0000000000092785&sum=132800 [20:16:47]StoreToDocumentArchive [20:16:47]shift 355 fd 104216 [20:16:47]save to /storage/0355/doc_00104216 [20:16:47]save last doc name /storage/0355/doc_00104216 to /storage/kkm_last_doc_name [20:16:47]save OK [20:16:47]Clear old archive folders... [20:16:47]ProcessDocumentItem done err = 0, tmpTLVsize=279 [20:16:47]tlvbuf is 006B5C00 [20:16:47]SAM_PROTO_ClearQueue [20:16:47]wFMCommunicate request_size=4 [20:16:47]MH_SAM_APDU [20:16:47]CAPDU: 80 09 00 00 [20:16:47]Write to MH i2c: E2 08 00 60 07 80 09 00 00 00 00 00 00 D9 [20:16:47]Write i2c OK [20:16:47]MH_I2C_Read... [20:16:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:16:47]Read from MH i2c: E2 [20:16:47]MH_I2C_Read... [20:16:47]Read from MH i2c: E2 03 00 [20:16:47]MH_I2C_Read... [20:16:47]Read from MH i2c: E2 03 00 60 07 00 90 00 DB [20:16:47]RAPDU: 90 00 [20:16:47]wFMCommunicate OK [20:16:47]SAM_PROTO_ClearQueue done [20:16:47]KKMCreateOFDPacket [20:16:47]OFDProtocolAddRootSTLVToBuf [20:16:47]FM_MakeSignedData [20:16:47]FM_MakeSignedData [20:16:47]SAM_PROTO_SignData [20:16:47]wFMCommunicate request_size=4 [20:16:47]MH_SAM_APDU [20:16:47]CAPDU: 80 0D 01 02 [20:16:47]Write to MH i2c: E2 08 00 61 07 80 0D 01 02 00 00 00 00 E1 [20:16:47]Write i2c OK [20:16:47]MH_I2C_Read... [20:16:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:16:47]Read from MH i2c: E2 [20:16:47]MH_I2C_Read... [20:16:47]Read from MH i2c: E2 03 00 [20:16:47]MH_I2C_Read... [20:16:47]Read from MH i2c: E2 03 00 61 07 00 90 00 DC [20:16:47]RAPDU: 90 00 [20:16:47]wFMCommunicate OK [20:16:47]wFMCommunicate request_size=255 [20:16:47]MH_SAM_APDU [20:16:47]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 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 8B 00 00 00 F4 03 04 00 AF DF 75 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 27 04 04 00 17 97 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 [20:16:47]Write to MH i2c: E2 02 01 62 07 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 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 8B 00 00 00 F4 03 04 00 AF DF 75 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 27 04 04 00 17 97 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 12 [20:16:47]Write i2c OK [20:16:47]MH_I2C_Read... [20:16:47]OFD Sender: No OFD packet to send [20:16:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:16:47]Read from MH i2c: E2 [20:16:47]MH_I2C_Read... [20:16:47]Read from MH i2c: E2 03 00 [20:16:47]MH_I2C_Read... [20:16:47]Read from MH i2c: E2 03 00 62 07 00 90 00 DD [20:16:47]RAPDU: 90 00 [20:16:47]wFMCommunicate OK [20:16:47]wFMCommunicate request_size=38 [20:16:47]MH_SAM_APDU [20:16:47]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 18 97 01 00 35 04 06 00 B3 8C 66 08 A7 1E [20:16:47]Write to MH i2c: E2 29 00 63 07 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 18 97 01 00 35 04 06 00 B3 8C 66 08 A7 1E 00 00 8F [20:16:47]Write i2c OK [20:16:47]MH_I2C_Read... [20:16:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:16:47]Read from MH i2c: E2 [20:16:47]MH_I2C_Read... [20:16:47]Read from MH i2c: E2 03 00 [20:16:47]MH_I2C_Read... [20:16:47]Read from MH i2c: E2 03 00 63 07 00 90 00 DE [20:16:47]RAPDU: 90 00 [20:16:47]wFMCommunicate OK [20:16:47]wFMCommunicate request_size=4 [20:16:47]MH_SAM_APDU [20:16:47]CAPDU: 80 0D 03 02 [20:16:47]Write to MH i2c: E2 08 00 64 07 80 0D 03 02 00 00 00 00 E6 [20:16:47]Write i2c OK [20:16:47]MH_I2C_Read... [20:16:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:16:47]Read from MH i2c: E2 [20:16:47]MH_I2C_Read... [20:16:47]Read from MH i2c: E2 0B 00 [20:16:47]MH_I2C_Read... [20:16:47]Read from MH i2c: E2 0B 00 64 07 00 69 26 DC 6F 84 6E 5F E1 90 00 F3 [20:16:47]RAPDU: 69 26 DC 6F 84 6E 5F E1 90 00 [20:16:47]wFMCommunicate OK [20:16:47]SAM_PROTO_SignData done [20:16:47]FM_MakeSignedData done [20:16:47]CreateOFDProtocolMessage [20:16:47]wFMCommunicate request_size=4 [20:16:47]MH_SAM_APDU [20:16:47]CAPDU: 80 11 00 00 [20:16:47]Write to MH i2c: E2 08 00 65 07 80 11 00 00 00 00 00 00 E6 [20:16:47]Write i2c OK [20:16:47]MH_I2C_Read... [20:16:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:16:47]Read from MH i2c: E2 [20:16:47]MH_I2C_Read... [20:16:47]Read from MH i2c: E2 17 00 [20:16:47]MH_I2C_Read... [20:16:47]Read from MH i2c: E2 17 00 65 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 39 [20: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 [20:16:47]wFMCommunicate OK [20:16:47]CreateOFDProtocolMessage done [20:16:47]OFDSenderStorePacket 104216 [20:16:47]StoreOFDPacket docnum=104216 [20:16: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 2B 01 00 00 E9 8A 23 01 47 79 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 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 8B 00 00 00 F4 03 04 00 AF DF 75 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 27 04 04 00 17 97 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 18 97 01 00 35 04 06 00 B3 8C 66 08 A7 1E 69 26 DC 6F 84 6E 5F E1 [20:16:47]CheckFolder [20:16:47]dirname=/storage/ofd_packets [20:16:47]CheckFolder done [20:16:47]ProducePacketName [20:16:47]name=ofd_packets/00104216 [20:16:47]NVStorageSaveData ofd_packets/00104216 [20:16:47]File name is /storage/ofd_packets/00104216 [20:16:47]Write 329 bytes [20:16:47]NVStorageSaveData done [20:16:47]OFDSenderStorePacket done [20:16:47]KKMCreateOFDPacket done [20:16:47]NVStorageSaveData kkm_last_timestamp [20:16:47]File name is /storage/kkm_last_timestamp [20:16:47]Write 4 bytes [20:16:47]NVStorageSaveData done [20:16:47]ExternCall_PrintAddStr [20:16:47]wPrintStart [20:16:47]Write to MH i2c: 01 00 00 66 07 6D [20:16:47]Write i2c OK [20:16:47]MH_I2C_Read... [20:16:47]Read from MH i2c: 01 [20:16:47]MH_I2C_Read... [20:16:47]Read from MH i2c: 01 07 00 [20:16:47]MH_I2C_Read... [20:16:47]Read from MH i2c: 01 07 00 66 07 00 00 00 00 00 FF 0F 82 [20:16:47]RasterBufferAndPrint [20:16:47]line Счет N : (1)673691 [20:16:47]line ИНН: 02508201610067 [20:16:47]line Контрольно-Кассовый Чек [20:16:47]line ВОЗВРАТ ПРОДАЖИ [20:16:47]line ТРК (МРК, ГНК) : 42 [20:16:47]line Товар: 2710124130 [20:16:47]line Аи-92-К-5 [20:16:47]line 20.000 * 66.40 [20:16:47]line = 1328.00 [20:16:47]line НДС 12% НСП 1% [20:16:47]line > о реализуемом товаре [20:16:47]line ИТОГО: 1328.00 [20:16:47]line НСП 1% : 11.75 [20:16:47]line НДС 12% : 141.03 [20:16:47]line Наличными: 1328.00 [20:16:47]line Безнал.: 0.00 [20:16:47]line Место: АЗС № 120 "Партнер Нефть" [20:16:47]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [20:16:47]line СНО: Общий режим [20:16:47]line Чек 139 21.06.2024 20:16 [20:16:47]line Смена: 355 ФФД: 1.0 [20:16:47]line ЗНМ: 0300000164 [20:16:47]line РНМ: 0000000000092785 [20:16:47]line Версия ККМ: 001 [20:16:47]line ФД осн.: 104215 [20:16:47]line ФМ осн.: 0000000000875093 [20:16:47]line ФМ: 0000000000875093 [20:16:47]line ФД: 104216 [20:16:47]line ФПД: 197415588636446 [20:16:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T201647&type=2&operation_type=1&fn_number=0000000000875093&fd_number=104216&fm=197415588636446&tin=02508201610067®Number=0000000000092785&sum=132800 [20:16:47]written 0, free lines is 4095 [20:16:47]OFD Sender: Processing packet 104216 [packets to send 17, broken 16] [20:16:47]ProducePacketName [20:16:47]name=ofd_packets/00104216 [20:16:47]OFD Sender: To server: pG, [20:16:47]CommunicateWithHost lk.salyk.kg:30040 [20:16:47]ConnectInit lk.salyk.kg [20:16:47]Connected sock=10 [20:16:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 2B 01 00 00 E9 8A 23 01 47 79 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 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 8B 00 00 00 F4 03 04 00 AF DF 75 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 27 04 04 00 17 97 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 18 97 01 00 35 04 06 00 B3 8C 66 08 A7 1E 69 26 DC 6F 84 6E 5F E1 [20:16: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 BD 0F 47 00 F0 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 18 97 01 00 F4 03 04 00 30 86 75 66 B6 04 01 00 00 38 09 C3 40 17 7C DB D0 [20:16:48]CommunicateWithHost err = 0 [20:16:48]CheckOFDResponse [20:16:48]1017 (14) - 77093643461234 [20:16:48]1041 (16) - 0000000000875093 [20:16:48]1040 (4) - 104216 [20:16:48]1012 (4) - 21.06.2024 13:54 [20:16:48]1206 (1) - 0 [20:16:48]OFD Sender: Remove packet 104216 [20:16:48]ProducePacketName [20:16:48]name=ofd_packets/00104216 [20:16:48]NVStorageDeleteData [20:16:48]Write to MH i2c: 01 00 00 90 07 97 [20:16:48]Write i2c OK [20:16:48]MH_I2C_Read... [20:16:48]Read from MH i2c: 01 [20:16:48]MH_I2C_Read... [20:16:48]Read from MH i2c: 01 07 00 [20:16:48]MH_I2C_Read... [20:16:48]Read from MH i2c: 01 07 00 90 07 00 00 00 00 00 14 0D BF [20:16:48]RasterBufferAndPrint [20:16:48]line [20:16:48]line [20:16:48]line [20:16:48]line [20:16:48]line [20:16:48]written 0, free lines is 3362 [20:16:48]MH_Cut [20:16:48]Write to MH i2c: D1 01 00 97 07 01 70 [20:16:48]Write i2c OK [20:16:48]MH_I2C_Read... [20:16:48]Read from MH i2c: D1 [20:16:48]MH_I2C_Read... [20:16:48]Read from MH i2c: D1 01 00 [20:16:48]MH_I2C_Read... [20:16:48]Read from MH i2c: D1 01 00 97 07 00 6F [20:16:48]Write to MH i2c: 01 00 00 98 07 9F [20:16:48]Write i2c OK [20:16:48]MH_I2C_Read... [20:16:48]OFD Sender: No OFD packet to send [20:16:48]*** Cut start [20:16:48]*** Partial cut [20:16:48]*** CUTSNS_PIN = 1 [20:16:48]*** CUTSNS_PIN = 0 [20:16:49]*** Brake cut motor [20:16:49]Read from MH i2c: 01 [20:16:49]MH_I2C_Read... [20:16:49]*** Stop cut motor [20:16:49]*** Cut end [20:16:49]Read from MH i2c: 01 07 00 [20:16:49]MH_I2C_Read... [20:16:49]Read from MH i2c: 01 07 00 98 07 00 00 00 00 00 FF 0F B4 [20:16:49]process_action close_receipt done [20:16:49]requested_data is exist [20:16:49]produce_requested_data [20:16:49]requested_item fm.sn is exist - process it [20:16:49]wFMCommunicate request_size=4 [20:16:49]MH_SAM_APDU [20:16:49]CAPDU: 80 11 00 00 [20:16:49]Write to MH i2c: E2 08 00 99 07 80 11 00 00 00 00 00 00 1A [20:16:49]Write i2c OK [20:16:49]MH_I2C_Read... [20:16:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:16:49]Read from MH i2c: E2 [20:16:49]MH_I2C_Read... [20:16:49]Read from MH i2c: E2 17 00 [20:16:49]MH_I2C_Read... [20:16:49]Read from MH i2c: E2 17 00 99 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 6D [20:16: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:16:49]wFMCommunicate OK [20:16:49]requested_item fd.num is exist - process it [20:16:49]SAM_PROTO_GetFieldsCounters [20:16:49]wFMCommunicate request_size=4 [20:16:49]MH_SAM_APDU [20:16:49]CAPDU: 80 13 00 00 [20:16:49]Write to MH i2c: E2 08 00 9A 07 80 13 00 00 00 00 00 00 1D [20:16:49]Write i2c OK [20:16:49]MH_I2C_Read... [20:16:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:16:49]Read from MH i2c: E2 [20:16:49]MH_I2C_Read... [20:16:49]Read from MH i2c: E2 62 00 [20:16:49]MH_I2C_Read... [20:16:49]Read from MH i2c: E2 62 00 9A 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 18 97 01 00 0E 04 04 00 63 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 F9 [20:16: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 18 97 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 8B 00 00 00 5E 04 04 00 8B 00 00 00 57 04 04 00 8C 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:16:49]wFMCommunicate OK [20:16:49]SAM_PROTO_GetFieldsCounters done [20:16:49]requested_item shift.num is exist - process it [20:16:49]requested_item shift.opened is exist - process it [20:16:49]req_shift_opened [20:16:49]FM_GetShiftState [20:16:49]SAM_PROTO_GetShiftState [20:16:49]wFMCommunicate request_size=4 [20:16:49]MH_SAM_APDU [20:16:49]CAPDU: 80 13 01 00 [20:16:49]Write to MH i2c: E2 08 00 9B 07 80 13 01 00 00 00 00 00 1F [20:16:49]Write i2c OK [20:16:49]MH_I2C_Read... [20:16:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:16:49]Read from MH i2c: E2 [20:16:49]MH_I2C_Read... [20:16:49]Read from MH i2c: E2 0E 00 [20:16:49]MH_I2C_Read... [20:16:49]Read from MH i2c: E2 0E 00 9B 07 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 32 [20:16:49]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [20:16:49]wFMCommunicate OK [20:16:49]SAM_PROTO_GetShiftState done [20:16:49]FM_GetShiftState done [20:16:49]req_shift_opened done [20:16:49]requested_item shift.open_date is exist - process it [20:16:49]req_shift_open_date [20:16:49]req_shift_open_date done [20:16:49]produce_requested_data done [20:16:49]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104216,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [20:16:49]process_action_free close_receipt [20:16:49]json_value_free [20:16:49]json_value_free done [20:16:49]process_json_proto returns [20:16:49]Send response to host [20:16:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104216,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [20:16:49]free response buf [20:16:49]execute_script done [20:16:49]execute_script returns [20:16:49]free content buf [20:16:49]Sock 9.Close socket [20:16:49]Sock 9.Thread stoped [20:16:53]OFD Sender: No OFD packet to send [20:16:58]OFD Sender: No OFD packet to send [20:17:03]OFD Sender: No OFD packet to send [20:17:08]OFD Sender: No OFD packet to send [20:17:13]OFD Sender: No OFD packet to send [20:17:18]OFD Sender: No OFD packet to send [20:17:23]OFD Sender: No OFD packet to send [20:17:28]OFD Sender: No OFD packet to send [20:17:33]OFD Sender: No OFD packet to send [20:17:38]OFD Sender: No OFD packet to send [20:17:43]OFD Sender: No OFD packet to send [20:17:48]OFD Sender: No OFD packet to send [20:17:53]OFD Sender: No OFD packet to send [20:17:54]accept exits with 7 [20:17:54]New connection [20:17:54]New thread 3067616612 created [20:17:54]Thread 3067473252 joined [20:17:54]Waiting for new connection... [20:17:54] Sock 7.Parse request [20:17:54]Sock 7.Check first char [20:17:54]Sock 7.First char is OK [20:17:54]request: POST /json_proto HTTP/1.0 [20:17:54]Method: POST [20:17:54]URL: /json_proto [20:17:54]Method is POST - this is cgi request [20:17:54]url: /json_proto [20:17:54]query_string will be loaded in cgi processing [20:17:54]execute_cgi json_proto POST (null) [20:17:54]execute_cgi path=json_proto method=POST [20:17:54]POST find Content-Length [20:17:54]Host: 172.17.38.133:8080 [20:17:54]Content-Length: 642 [20:17:54]Content-Type: application/json [20:17:54] [20:17:54]POST finish read [20:17:54]Found Content-Length = 642 [20:17:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673692", "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" ] } } [20:17:54]execute_script... [20:17: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)673692", "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" ] } } [20:17:54]POST & json_proto [20:17:54]process_json_proto [20:17:54]json parsed OK: [20:17:54]protocol is kg_v1.0 [20:17:54]action value=close_receipt [20:17:54]process_action close_receipt [20:17:54]cmd_close_receipt [20:17:54]MH_GetDate [20:17:54]Write to MH i2c: F0 00 00 9C 07 92 [20:17:54]Write i2c OK [20:17:54]MH_I2C_Read... [20:17:54]Read from MH i2c: F0 [20:17:54]MH_I2C_Read... [20:17:54]Read from MH i2c: F0 09 00 [20:17:54]MH_I2C_Read... [20:17:54]Read from MH i2c: F0 09 00 9C 07 00 F4 DF 75 66 BD 8F 7C 64 75 [20:17:54]GetLastDocTimeStamp 1719001007 [20:17:54]current date 1719001076 [20:17:54]FM_GetShiftState [20:17:54]SAM_PROTO_GetShiftState [20:17:54]wFMCommunicate request_size=4 [20:17:54]MH_SAM_APDU [20:17:54]CAPDU: 80 13 01 00 [20:17:54]Write to MH i2c: E2 08 00 9D 07 80 13 01 00 00 00 00 00 21 [20:17:54]Write i2c OK [20:17:54]MH_I2C_Read... [20:17:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:17:54]Read from MH i2c: E2 [20:17:54]MH_I2C_Read... [20:17:54]Read from MH i2c: E2 0E 00 [20:17:54]MH_I2C_Read... [20:17:54]Read from MH i2c: E2 0E 00 9D 07 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 34 [20:17:54]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [20:17:54]wFMCommunicate OK [20:17:54]SAM_PROTO_GetShiftState done [20:17:54]FM_GetShiftState done [20:17:54]opened in 1718929509 [20:17:54]opened+sec_in_day 1719015909 [20:17:54]quantity*price = 132800 [20:17:54]sum+1 = 132801 [20:17:54]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 СНО: Общий режим Чек 140 21.06.2024 20:17 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104217 ФПД: 184216936584720 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T201756&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104217&fm=184216936584720&tin=02508201610067®Number=0000000000092785&sum=132800 [20:17:55]StoreToDocumentArchive [20:17:55]shift 355 fd 104217 [20:17:55]save to /storage/0355/doc_00104217 [20:17:55]save last doc name /storage/0355/doc_00104217 to /storage/kkm_last_doc_name [20:17:55]save OK [20:17:55]Clear old archive folders... [20:17:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:17:55]tlvbuf is 006396D0 [20:17:55]SAM_PROTO_ClearQueue [20:17:55]wFMCommunicate request_size=4 [20:17:55]MH_SAM_APDU [20:17:55]CAPDU: 80 09 00 00 [20:17:55]Write to MH i2c: E2 08 00 AA 07 80 09 00 00 00 00 00 00 23 [20:17:55]Write i2c OK [20:17:55]MH_I2C_Read... [20:17:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:17:56]Read from MH i2c: E2 [20:17:56]MH_I2C_Read... [20:17:56]Read from MH i2c: E2 03 00 [20:17:56]MH_I2C_Read... [20:17:56]Read from MH i2c: E2 03 00 AA 07 00 90 00 25 [20:17:56]RAPDU: 90 00 [20:17:56]wFMCommunicate OK [20:17:56]SAM_PROTO_ClearQueue done [20:17:56]KKMCreateOFDPacket [20:17:56]OFDProtocolAddRootSTLVToBuf [20:17:56]FM_MakeSignedData [20:17:56]FM_MakeSignedData [20:17:56]SAM_PROTO_SignData [20:17:56]wFMCommunicate request_size=4 [20:17:56]MH_SAM_APDU [20:17:56]CAPDU: 80 0D 01 02 [20:17:56]Write to MH i2c: E2 08 00 AB 07 80 0D 01 02 00 00 00 00 2B [20:17:56]Write i2c OK [20:17:56]MH_I2C_Read... [20:17:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:17:56]Read from MH i2c: E2 [20:17:56]MH_I2C_Read... [20:17:56]Read from MH i2c: E2 03 00 [20:17:56]MH_I2C_Read... [20:17:56]Read from MH i2c: E2 03 00 AB 07 00 90 00 26 [20:17:56]RAPDU: 90 00 [20:17:56]wFMCommunicate OK [20:17:56]wFMCommunicate request_size=255 [20:17:56]MH_SAM_APDU [20:17:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 8C 00 00 00 F4 03 04 00 F4 DF 75 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 19 97 01 00 35 04 06 00 A7 [20:17:56]Write to MH i2c: E2 02 01 AC 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 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 8C 00 00 00 F4 03 04 00 F4 DF 75 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 19 97 01 00 35 04 06 00 A7 00 00 E9 [20:17:56]Write i2c OK [20:17:56]MH_I2C_Read... [20:17:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:17:56]Read from MH i2c: E2 [20:17:56]MH_I2C_Read... [20:17:56]Read from MH i2c: E2 03 00 [20:17:56]MH_I2C_Read... [20:17:56]Read from MH i2c: E2 03 00 AC 07 00 90 00 27 [20:17:56]RAPDU: 90 00 [20:17:56]wFMCommunicate OK [20:17:56]wFMCommunicate request_size=10 [20:17:56]MH_SAM_APDU [20:17:56]CAPDU: 80 0D 02 02 05 8B 59 11 16 10 [20:17:56]Write to MH i2c: E2 0D 00 AD 07 80 0D 02 02 05 00 8B 59 11 16 10 00 00 53 [20:17:56]Write i2c OK [20:17:56]MH_I2C_Read... [20:17:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:17:56]Read from MH i2c: E2 [20:17:56]MH_I2C_Read... [20:17:56]Read from MH i2c: E2 03 00 [20:17:56]MH_I2C_Read... [20:17:56]Read from MH i2c: E2 03 00 AD 07 00 90 00 28 [20:17:56]RAPDU: 90 00 [20:17:56]wFMCommunicate OK [20:17:56]wFMCommunicate request_size=4 [20:17:56]MH_SAM_APDU [20:17:56]CAPDU: 80 0D 03 02 [20:17:56]Write to MH i2c: E2 08 00 AE 07 80 0D 03 02 00 00 00 00 30 [20:17:56]Write i2c OK [20:17:56]MH_I2C_Read... [20:17:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:17:56]Read from MH i2c: E2 [20:17:56]MH_I2C_Read... [20:17:56]Read from MH i2c: E2 0B 00 [20:17:56]MH_I2C_Read... [20:17:56]Read from MH i2c: E2 0B 00 AE 07 00 07 25 32 08 DE F1 0A F4 90 00 64 [20:17:56]RAPDU: 07 25 32 08 DE F1 0A F4 90 00 [20:17:56]wFMCommunicate OK [20:17:56]SAM_PROTO_SignData done [20:17:56]FM_MakeSignedData done [20:17:56]CreateOFDProtocolMessage [20:17:56]wFMCommunicate request_size=4 [20:17:56]MH_SAM_APDU [20:17:56]CAPDU: 80 11 00 00 [20:17:56]Write to MH i2c: E2 08 00 AF 07 80 11 00 00 00 00 00 00 30 [20:17:56]Write i2c OK [20:17:56]MH_I2C_Read... [20:17:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:17:56]Read from MH i2c: E2 [20:17:56]MH_I2C_Read... [20:17:56]Read from MH i2c: E2 17 00 [20:17:56]MH_I2C_Read... [20:17:56]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 [20:17:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [20:17:56]wFMCommunicate OK [20:17:56]CreateOFDProtocolMessage done [20:17:56]OFDSenderStorePacket 104217 [20:17:56]StoreOFDPacket docnum=104217 [20:17: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 95 1D 07 01 8A C2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 8C 00 00 00 F4 03 04 00 F4 DF 75 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 19 97 01 00 35 04 06 00 A7 8B 59 11 16 10 07 25 32 08 DE F1 0A F4 [20:17:56]CheckFolder [20:17:56]dirname=/storage/ofd_packets [20:17:56]CheckFolder done [20:17:56]ProducePacketName [20:17:56]name=ofd_packets/00104217 [20:17:56]NVStorageSaveData ofd_packets/00104217 [20:17:56]File name is /storage/ofd_packets/00104217 [20:17:56]Write 301 bytes [20:17:56]NVStorageSaveData done [20:17:56]OFDSenderStorePacket done [20:17:56]KKMCreateOFDPacket done [20:17:56]NVStorageSaveData kkm_last_timestamp [20:17:56]File name is /storage/kkm_last_timestamp [20:17:56]Write 4 bytes [20:17:56]NVStorageSaveData done [20:17:56]ExternCall_PrintAddStr [20:17:56]wPrintStart [20:17:56]Write to MH i2c: 01 00 00 B0 07 B7 [20:17:56]Write i2c OK [20:17:56]MH_I2C_Read... [20:17:56]Read from MH i2c: 01 [20:17:56]MH_I2C_Read... [20:17:56]Read from MH i2c: 01 07 00 [20:17:56]MH_I2C_Read... [20:17:56]Read from MH i2c: 01 07 00 B0 07 00 00 00 00 00 FF 0F CC [20:17:56]RasterBufferAndPrint [20:17:56]line Счет N : (1)673692 [20:17:56]line ИНН: 02508201610067 [20:17:56]line Контрольно-Кассовый Чек [20:17:56]line ПРОДАЖА [20:17:56]line ТРК (МРК, ГНК) : 32 [20:17:56]line Товар: 2710124130 [20:17:56]line Аи-92-К-5 [20:17:56]line 20.000 * 66.40 [20:17:56]line = 1328.00 [20:17:56]line НДС 12% НСП 1% [20:17:56]line > о реализуемом товаре [20:17:56]line ИТОГО: 1328.00 [20:17:56]line НСП 1% : 11.75 [20:17:56]line НДС 12% : 141.03 [20:17:56]line Наличными: 1328.00 [20:17:56]line Безнал.: 0.00 [20:17:56]line Место: АЗС № 120 "Партнер Нефть" [20:17:56]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [20:17:56]line СНО: Общий режим [20:17:56]line Чек 140 21.06.2024 20:17 [20:17:56]line Смена: 355 ФФД: 1.0 [20:17:56]line ЗНМ: 0300000164 [20:17:56]line РНМ: 0000000000092785 [20:17:56]line Версия ККМ: 001 [20:17:56]line ФМ: 0000000000875093 [20:17:56]line ФД: 104217 [20:17:56]line ФПД: 184216936584720 [20:17:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T201756&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104217&fm=184216936584720&tin=02508201610067®Number=0000000000092785&sum=132800 [20:17:56]OFD Sender: Processing packet 104217 [packets to send 17, broken 16] [20:17:56]ProducePacketName [20:17:56]name=ofd_packets/00104217 [20:17:56]OFD Sender: To server: pG, [20:17:56]CommunicateWithHost lk.salyk.kg:30040 [20:17:56]ConnectInit lk.salyk.kg [20:17:56]written 0, free lines is 4095 [20:17:56]Connected sock=10 [20:17: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 95 1D 07 01 8A C2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 8C 00 00 00 F4 03 04 00 F4 DF 75 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 19 97 01 00 35 04 06 00 A7 8B 59 11 16 10 07 25 32 08 DE F1 0A F4 [20:17: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 1A 3E 47 00 47 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 19 97 01 00 F4 03 04 00 75 86 75 66 B6 04 01 00 00 76 24 14 38 74 E3 B7 75 [20:17:57]CommunicateWithHost err = 0 [20:17:57]CheckOFDResponse [20:17:57]1017 (14) - 77093643461234 [20:17:57]1041 (16) - 0000000000875093 [20:17:57]1040 (4) - 104217 [20:17:57]1012 (4) - 21.06.2024 13:56 [20:17:57]1206 (1) - 0 [20:17:57]OFD Sender: Remove packet 104217 [20:17:57]ProducePacketName [20:17:57]name=ofd_packets/00104217 [20:17:57]NVStorageDeleteData [20:17:57]Write to MH i2c: 01 00 00 D8 07 DF [20:17:57]Write i2c OK [20:17:57]MH_I2C_Read... [20:17:57]Read from MH i2c: 01 [20:17:57]MH_I2C_Read... [20:17:57]Read from MH i2c: 01 07 00 [20:17:57]MH_I2C_Read... [20:17:57]Read from MH i2c: 01 07 00 D8 07 00 00 00 00 00 12 0D 05 [20:17:57]RasterBufferAndPrint [20:17:57]line [20:17:57]line [20:17:57]line [20:17:57]line [20:17:57]line [20:17:57]written 0, free lines is 3353 [20:17:57]MH_Cut [20:17:57]Write to MH i2c: D1 01 00 DF 07 01 B8 [20:17:57]Write i2c OK [20:17:57]MH_I2C_Read... [20:17:57]Read from MH i2c: D1 [20:17:57]MH_I2C_Read... [20:17:57]Read from MH i2c: D1 01 00 [20:17:57]MH_I2C_Read... [20:17:57]Read from MH i2c: D1 01 00 DF 07 00 B7 [20:17:57]Write to MH i2c: 01 00 00 E0 07 E7 [20:17:57]Write i2c OK [20:17:57]MH_I2C_Read... [20:17:57]OFD Sender: No OFD packet to send [20:17:57]*** Cut start [20:17:57]*** Partial cut [20:17:57]*** CUTSNS_PIN = 1 [20:17:58]*** CUTSNS_PIN = 0 [20:17:58]*** Brake cut motor [20:17:58]Read from MH i2c: 01 [20:17:58]MH_I2C_Read... [20:17:58]*** Stop cut motor [20:17:58]*** Cut end [20:17:58]Read from MH i2c: 01 07 00 [20:17:58]MH_I2C_Read... [20:17:58]Read from MH i2c: 01 07 00 E0 07 00 00 00 00 00 FF 0F FC [20:17:58]process_action close_receipt done [20:17:58]requested_data is exist [20:17:58]produce_requested_data [20:17:58]requested_item fm.sn is exist - process it [20:17:58]wFMCommunicate request_size=4 [20:17:58]MH_SAM_APDU [20:17:58]CAPDU: 80 11 00 00 [20:17:58]Write to MH i2c: E2 08 00 E1 07 80 11 00 00 00 00 00 00 62 [20:17:58]Write i2c OK [20:17:58]MH_I2C_Read... [20:17:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:17:58]Read from MH i2c: E2 [20:17:58]MH_I2C_Read... [20:17:58]Read from MH i2c: E2 17 00 [20:17:58]MH_I2C_Read... [20:17:58]Read from MH i2c: E2 17 00 E1 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 B5 [20:17: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:17:58]wFMCommunicate OK [20:17:58]requested_item fd.num is exist - process it [20:17:58]SAM_PROTO_GetFieldsCounters [20:17:58]wFMCommunicate request_size=4 [20:17:58]MH_SAM_APDU [20:17:58]CAPDU: 80 13 00 00 [20:17:58]Write to MH i2c: E2 08 00 E2 07 80 13 00 00 00 00 00 00 65 [20:17:58]Write i2c OK [20:17:58]MH_I2C_Read... [20:17:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:17:58]Read from MH i2c: E2 [20:17:58]MH_I2C_Read... [20:17:58]Read from MH i2c: E2 62 00 [20:17:58]MH_I2C_Read... [20:17:58]Read from MH i2c: E2 62 00 E2 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 19 97 01 00 0E 04 04 00 63 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 45 [20:17:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 8C 00 00 00 5E 04 04 00 8C 00 00 00 57 04 04 00 8D 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:17:58]wFMCommunicate OK [20:17:58]SAM_PROTO_GetFieldsCounters done [20:17:58]requested_item shift.num is exist - process it [20:17:58]requested_item shift.opened is exist - process it [20:17:58]req_shift_opened [20:17:58]FM_GetShiftState [20:17:58]SAM_PROTO_GetShiftState [20:17:58]wFMCommunicate request_size=4 [20:17:58]MH_SAM_APDU [20:17:58]CAPDU: 80 13 01 00 [20:17:58]Write to MH i2c: E2 08 00 E3 07 80 13 01 00 00 00 00 00 67 [20:17:58]Write i2c OK [20:17:58]MH_I2C_Read... [20:17:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:17:58]Read from MH i2c: E2 [20:17:58]MH_I2C_Read... [20:17:58]Read from MH i2c: E2 0E 00 [20:17:58]MH_I2C_Read... [20:17:58]Read from MH i2c: E2 0E 00 E3 07 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 7A [20:17:58]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [20:17:58]wFMCommunicate OK [20:17:58]SAM_PROTO_GetShiftState done [20:17:58]FM_GetShiftState done [20:17:58]req_shift_opened done [20:17:58]requested_item shift.open_date is exist - process it [20:17:58]req_shift_open_date [20:17:58]req_shift_open_date done [20:17:58]produce_requested_data done [20:17:58]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104217,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [20:17:58]process_action_free close_receipt [20:17:58]json_value_free [20:17:58]json_value_free done [20:17:58]process_json_proto returns [20:17:58]Send response to host [20:17:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104217,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [20:17:58]free response buf [20:17:58]execute_script done [20:17:58]execute_script returns [20:17:58]free content buf [20:17:58]Sock 7.Close socket [20:17:58]Sock 7.Thread stoped [20:18:02]OFD Sender: No OFD packet to send [20:18:07]OFD Sender: No OFD packet to send [20:18:12]OFD Sender: No OFD packet to send [20:18:17]OFD Sender: No OFD packet to send [20:18:22]OFD Sender: No OFD packet to send [20:18:27]OFD Sender: No OFD packet to send [20:18:32]OFD Sender: No OFD packet to send [20:18:37]OFD Sender: No OFD packet to send [20:18:42]OFD Sender: No OFD packet to send [20:18:47]OFD Sender: No OFD packet to send [20:18:52]OFD Sender: No OFD packet to send [20:18:57]OFD Sender: No OFD packet to send [20:19:02]OFD Sender: No OFD packet to send [20:19:07]OFD Sender: No OFD packet to send [20:19:12]OFD Sender: No OFD packet to send [20:19:17]OFD Sender: No OFD packet to send [20:19:22]OFD Sender: No OFD packet to send [20:19:27]OFD Sender: No OFD packet to send [20:19:32]OFD Sender: No OFD packet to send [20:19:37]OFD Sender: No OFD packet to send [20:19:42]OFD Sender: No OFD packet to send [20:19:47]OFD Sender: No OFD packet to send [20:19:52]OFD Sender: No OFD packet to send [20:19:57]OFD Sender: No OFD packet to send [20:20:02]OFD Sender: No OFD packet to send [20:20:07]accept exits with 9 [20:20:07]New connection [20:20:07]New thread 3067473252 created [20:20:07]Thread 3067616612 joined [20:20:07]Waiting for new connection... [20:20:07] Sock 9.Parse request [20:20:07]Sock 9.Check first char [20:20:07]Sock 9.First char is OK [20:20:07]request: POST /json_proto HTTP/1.0 [20:20:07]Method: POST [20:20:07]URL: /json_proto [20:20:07]Method is POST - this is cgi request [20:20:07]url: /json_proto [20:20:07]query_string will be loaded in cgi processing [20:20:07]execute_cgi json_proto POST (null) [20:20:07]execute_cgi path=json_proto method=POST [20:20:07]POST find Content-Length [20:20:07]Host: 172.17.38.133:8080 [20:20:07]Content-Length: 817 [20:20:07]Content-Type: application/json [20:20:07] [20:20:07]POST finish read [20:20:07]Found Content-Length = 817 [20:20:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673693", "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 }]} ], "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.52 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:20:07]execute_script... [20:20: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)673693", "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 }]} ], "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.52 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:20:07]POST & json_proto [20:20:07]process_json_proto [20:20:07]json parsed OK: [20:20:07]protocol is kg_v1.0 [20:20:07]action value=close_receipt [20:20:07]process_action close_receipt [20:20:07]cmd_close_receipt [20:20:07]MH_GetDate [20:20:07]Write to MH i2c: F0 00 00 E4 07 DA [20:20:07]Write i2c OK [20:20:07]MH_I2C_Read... [20:20:07]Read from MH i2c: F0 [20:20:07]MH_I2C_Read... [20:20:07]Read from MH i2c: F0 09 00 [20:20:07]MH_I2C_Read... [20:20:07]Read from MH i2c: F0 09 00 E4 07 00 78 E0 75 66 BD 8F 7C 64 42 [20:20:07]GetLastDocTimeStamp 1719001076 [20:20:07]current date 1719001208 [20:20:07]FM_GetShiftState [20:20:07]SAM_PROTO_GetShiftState [20:20:07]wFMCommunicate request_size=4 [20:20:07]MH_SAM_APDU [20:20:07]CAPDU: 80 13 01 00 [20:20:07]Write to MH i2c: E2 08 00 E5 07 80 13 01 00 00 00 00 00 69 [20:20:07]Write i2c OK [20:20:07]MH_I2C_Read... [20:20:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:20:07]Read from MH i2c: E2 [20:20:07]MH_I2C_Read... [20:20:07]Read from MH i2c: E2 0E 00 [20:20:07]MH_I2C_Read... [20:20:07]Read from MH i2c: E2 0E 00 E5 07 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 7C [20:20:07]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [20:20:07]wFMCommunicate OK [20:20:07]SAM_PROTO_GetShiftState done [20:20:07]FM_GetShiftState done [20:20:07]opened in 1718929509 [20:20:07]opened+sec_in_day 1719015909 [20:20:07]quantity*price = 70052 [20:20:07]sum+1 = 70053 [20:20:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.52 НСП 1% : 6.20 НДС 12% : 74.39 Наличными: 0.00 Безнал.: 700.52 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 141 21.06.2024 20:20 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875093 ФД: 104218 ФПД: 168728869425699 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T202008&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104218&fm=168728869425699&tin=02508201610067®Number=0000000000092785&sum=70052 [20:20:08]StoreToDocumentArchive [20:20:08]shift 355 fd 104218 [20:20:08]save to /storage/0355/doc_00104218 [20:20:08]save last doc name /storage/0355/doc_00104218 to /storage/kkm_last_doc_name [20:20:08]save OK [20:20:08]Clear old archive folders... [20:20:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:20:08]tlvbuf is 0063A2F0 [20:20:08]SAM_PROTO_ClearQueue [20:20:08]wFMCommunicate request_size=4 [20:20:08]MH_SAM_APDU [20:20:08]CAPDU: 80 09 00 00 [20:20:08]Write to MH i2c: E2 08 00 F2 07 80 09 00 00 00 00 00 00 6B [20:20:08]Write i2c OK [20:20:08]MH_I2C_Read... [20:20:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:20:08]Read from MH i2c: E2 [20:20:08]MH_I2C_Read... [20:20:08]Read from MH i2c: E2 03 00 [20:20:08]MH_I2C_Read... [20:20:08]Read from MH i2c: E2 03 00 F2 07 00 90 00 6D [20:20:08]RAPDU: 90 00 [20:20:08]wFMCommunicate OK [20:20:08]SAM_PROTO_ClearQueue done [20:20:08]KKMCreateOFDPacket [20:20:08]OFDProtocolAddRootSTLVToBuf [20:20:08]FM_MakeSignedData [20:20:08]FM_MakeSignedData [20:20:08]SAM_PROTO_SignData [20:20:08]wFMCommunicate request_size=4 [20:20:08]MH_SAM_APDU [20:20:08]CAPDU: 80 0D 01 02 [20:20:08]Write to MH i2c: E2 08 00 F3 07 80 0D 01 02 00 00 00 00 73 [20:20:08]Write i2c OK [20:20:08]MH_I2C_Read... [20:20:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:20:08]Read from MH i2c: E2 [20:20:08]MH_I2C_Read... [20:20:08]Read from MH i2c: E2 03 00 [20:20:08]MH_I2C_Read... [20:20:08]Read from MH i2c: E2 03 00 F3 07 00 90 00 6E [20:20:08]RAPDU: 90 00 [20:20:08]wFMCommunicate OK [20:20:08]wFMCommunicate request_size=255 [20:20:08]MH_SAM_APDU [20:20: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 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 A4 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 00 00 00 00 00 00 39 04 06 00 A4 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 78 E0 75 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 1A 97 01 00 35 04 06 00 99 [20:20:08]Write to MH i2c: E2 02 01 F4 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 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 A4 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 00 00 00 00 00 00 39 04 06 00 A4 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 78 E0 75 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 1A 97 01 00 35 04 06 00 99 00 00 16 [20:20:08]Write i2c OK [20:20:08]MH_I2C_Read... [20:20:08]Read from MH i2c: E2 [20:20:08]MH_I2C_Read... [20:20:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:20:08]Read from MH i2c: E2 03 00 [20:20:08]MH_I2C_Read... [20:20:08]Read from MH i2c: E2 03 00 F4 07 00 90 00 6F [20:20:08]RAPDU: 90 00 [20:20:08]wFMCommunicate OK [20:20:08]wFMCommunicate request_size=10 [20:20:08]MH_SAM_APDU [20:20:08]CAPDU: 80 0D 02 02 05 75 40 53 52 23 [20:20:08]Write to MH i2c: E2 0D 00 F5 07 80 0D 02 02 05 00 75 40 53 52 23 00 00 FD [20:20:08]Write i2c OK [20:20:08]MH_I2C_Read... [20:20:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:20:08]Read from MH i2c: E2 [20:20:08]MH_I2C_Read... [20:20:08]Read from MH i2c: E2 03 00 [20:20:08]MH_I2C_Read... [20:20:08]Read from MH i2c: E2 03 00 F5 07 00 90 00 70 [20:20:08]RAPDU: 90 00 [20:20:08]wFMCommunicate OK [20:20:08]wFMCommunicate request_size=4 [20:20:08]MH_SAM_APDU [20:20:08]CAPDU: 80 0D 03 02 [20:20:08]Write to MH i2c: E2 08 00 F6 07 80 0D 03 02 00 00 00 00 78 [20:20:08]Write i2c OK [20:20:08]MH_I2C_Read... [20:20:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:20:08]Read from MH i2c: E2 [20:20:08]MH_I2C_Read... [20:20:08]Read from MH i2c: E2 0B 00 [20:20:08]MH_I2C_Read... [20:20:08]Read from MH i2c: E2 0B 00 F6 07 00 4D FC C6 94 D8 10 7A FA 90 00 78 [20:20:08]RAPDU: 4D FC C6 94 D8 10 7A FA 90 00 [20:20:08]wFMCommunicate OK [20:20:08]SAM_PROTO_SignData done [20:20:08]FM_MakeSignedData done [20:20:08]CreateOFDProtocolMessage [20:20:08]wFMCommunicate request_size=4 [20:20:08]MH_SAM_APDU [20:20:08]CAPDU: 80 11 00 00 [20:20:08]Write to MH i2c: E2 08 00 F7 07 80 11 00 00 00 00 00 00 78 [20:20:08]Write i2c OK [20:20:08]MH_I2C_Read... [20:20:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:20:08]Read from MH i2c: E2 [20:20:08]MH_I2C_Read... [20:20:08]Read from MH i2c: E2 17 00 [20:20:08]MH_I2C_Read... [20:20:08]Read from MH i2c: E2 17 00 F7 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 CB [20:20: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:20:08]wFMCommunicate OK [20:20:08]CreateOFDProtocolMessage done [20:20:08]OFDSenderStorePacket 104218 [20:20:08]StoreOFDPacket docnum=104218 [20:20: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 E4 5A 07 01 F4 F9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 A4 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 00 00 00 00 00 00 39 04 06 00 A4 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 78 E0 75 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 1A 97 01 00 35 04 06 00 99 75 40 53 52 23 4D FC C6 94 D8 10 7A FA [20:20:08]CheckFolder [20:20:08]dirname=/storage/ofd_packets [20:20:08]CheckFolder done [20:20:08]ProducePacketName [20:20:08]name=ofd_packets/00104218 [20:20:08]NVStorageSaveData ofd_packets/00104218 [20:20:08]File name is /storage/ofd_packets/00104218 [20:20:08]Write 301 bytes [20:20:08]NVStorageSaveData done [20:20:08]OFDSenderStorePacket done [20:20:08]KKMCreateOFDPacket done [20:20:09]NVStorageSaveData kkm_last_timestamp [20:20:09]File name is /storage/kkm_last_timestamp [20:20:09]Write 4 bytes [20:20:09]NVStorageSaveData done [20:20:09]ExternCall_PrintAddStr [20:20:09]wPrintStart [20:20:09]Write to MH i2c: 01 00 00 F8 07 FF [20:20:09]Write i2c OK [20:20:09]MH_I2C_Read... [20:20:09]Read from MH i2c: 01 [20:20:09]MH_I2C_Read... [20:20:09]Read from MH i2c: 01 07 00 [20:20:09]MH_I2C_Read... [20:20:09]Read from MH i2c: 01 07 00 F8 07 00 00 00 00 00 FF 0F 14 [20:20:09]RasterBufferAndPrint [20:20:09]line Счет N : (1)673693 [20:20:09]line ИНН: 02508201610067 [20:20:09]line Контрольно-Кассовый Чек [20:20:09]line ПРОДАЖА [20:20:09]line ТРК (МРК, ГНК) : 32 [20:20:09]line Товар: 2710124130 [20:20:09]line Аи-92-К-5 [20:20:09]line 10.550 * 66.40 [20:20:09]line = 700.52 [20:20:09]line НДС 12% НСП 1% [20:20:09]line > о реализуемом товаре [20:20:09]line ИТОГО: 700.52 [20:20:09]line НСП 1% : 6.20 [20:20:09]line НДС 12% : 74.39 [20:20:09]line Наличными: 0.00 [20:20:09]line Безнал.: 700.52 [20:20:09]line Место: АЗС № 120 "Партнер Нефть" [20:20:09]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [20:20:09]line СНО: Общий режим [20:20:09]line Чек 141 21.06.2024 20:20 [20:20:09]line Смена: 355 ФФД: 1.0 [20:20:09]line ЗНМ: 0300000164 [20:20:09]line РНМ: 0000000000092785 [20:20:09]line Версия ККМ: 001 [20:20:09]line Платежная система: Бакай Банк [20:20:09]line ФМ: 0000000000875093 [20:20:09]line ФД: 104218 [20:20:09]line ФПД: 168728869425699 [20:20:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T202008&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104218&fm=168728869425699&tin=02508201610067®Number=0000000000092785&sum=70052 [20:20:09]OFD Sender: Processing packet 104218 [packets to send 17, broken 16] [20:20:09]ProducePacketName [20:20:09]name=ofd_packets/00104218 [20:20:09]OFD Sender: To server: pG, [20:20:09]CommunicateWithHost lk.salyk.kg:30040 [20:20:09]ConnectInit lk.salyk.kg [20:20:09]written 0, free lines is 4095 [20:20:09]Connected sock=10 [20:20: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 E4 5A 07 01 F4 F9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 A4 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 00 00 00 00 00 00 39 04 06 00 A4 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 78 E0 75 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 1A 97 01 00 35 04 06 00 99 75 40 53 52 23 4D FC C6 94 D8 10 7A FA [20:20: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 C5 65 47 00 C9 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 1A 97 01 00 F4 03 04 00 F9 86 75 66 B6 04 01 00 00 44 66 F1 50 BE 18 D6 B1 [20:20:09]CommunicateWithHost err = 0 [20:20:09]CheckOFDResponse [20:20:09]1017 (14) - 77093643461234 [20:20:09]1041 (16) - 0000000000875093 [20:20:09]1040 (4) - 104218 [20:20:09]1012 (4) - 21.06.2024 13:58 [20:20:09]1206 (1) - 0 [20:20:09]OFD Sender: Remove packet 104218 [20:20:09]ProducePacketName [20:20:09]name=ofd_packets/00104218 [20:20:09]NVStorageDeleteData [20:20:09]Write to MH i2c: 01 00 00 22 08 2A [20:20:09]Write i2c OK [20:20:09]MH_I2C_Read... [20:20:09]Read from MH i2c: 01 [20:20:09]MH_I2C_Read... [20:20:09]Read from MH i2c: 01 07 00 [20:20:09]MH_I2C_Read... [20:20:09]Read from MH i2c: 01 07 00 22 08 00 00 00 00 00 F4 0C 31 [20:20:09]RasterBufferAndPrint [20:20:09]line [20:20:09]line [20:20:09]line [20:20:09]line [20:20:09]line [20:20:09]written 0, free lines is 3324 [20:20:09]MH_Cut [20:20:09]Write to MH i2c: D1 01 00 29 08 01 03 [20:20:09]Write i2c OK [20:20:09]MH_I2C_Read... [20:20:09]Read from MH i2c: D1 [20:20:09]MH_I2C_Read... [20:20:09]Read from MH i2c: D1 01 00 [20:20:09]MH_I2C_Read... [20:20:09]Read from MH i2c: D1 01 00 29 08 00 02 [20:20:09]Write to MH i2c: 01 00 00 2A 08 32 [20:20:09]Write i2c OK [20:20:09]MH_I2C_Read... [20:20:10]OFD Sender: No OFD packet to send [20:20:10]*** Cut start [20:20:10]*** Partial cut [20:20:10]*** CUTSNS_PIN = 1 [20:20:10]*** CUTSNS_PIN = 0 [20:20:10]*** Brake cut motor [20:20:11]Read from MH i2c: 01 [20:20:11]MH_I2C_Read... [20:20:11]*** Stop cut motor [20:20:11]*** Cut end [20:20:11]Read from MH i2c: 01 07 00 [20:20:11]MH_I2C_Read... [20:20:11]Read from MH i2c: 01 07 00 2A 08 00 00 00 00 00 FF 0F 47 [20:20:11]process_action close_receipt done [20:20:11]requested_data is exist [20:20:11]produce_requested_data [20:20:11]requested_item fm.sn is exist - process it [20:20:11]wFMCommunicate request_size=4 [20:20:11]MH_SAM_APDU [20:20:11]CAPDU: 80 11 00 00 [20:20:11]Write to MH i2c: E2 08 00 2B 08 80 11 00 00 00 00 00 00 AD [20:20:11]Write i2c OK [20:20:11]MH_I2C_Read... [20:20:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:20:11]Read from MH i2c: E2 [20:20:11]MH_I2C_Read... [20:20:11]Read from MH i2c: E2 17 00 [20:20:11]MH_I2C_Read... [20:20:11]Read from MH i2c: E2 17 00 2B 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 00 [20:20: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:20:11]wFMCommunicate OK [20:20:11]requested_item fd.num is exist - process it [20:20:11]SAM_PROTO_GetFieldsCounters [20:20:11]wFMCommunicate request_size=4 [20:20:11]MH_SAM_APDU [20:20:11]CAPDU: 80 13 00 00 [20:20:11]Write to MH i2c: E2 08 00 2C 08 80 13 00 00 00 00 00 00 B0 [20:20:11]Write i2c OK [20:20:11]MH_I2C_Read... [20:20:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:20:11]Read from MH i2c: E2 [20:20:11]MH_I2C_Read... [20:20:11]Read from MH i2c: E2 62 00 [20:20:11]MH_I2C_Read... [20:20:11]Read from MH i2c: E2 62 00 2C 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 1A 97 01 00 0E 04 04 00 63 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 94 [20:20: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 1A 97 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 8D 00 00 00 5E 04 04 00 8D 00 00 00 57 04 04 00 8E 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:20:11]wFMCommunicate OK [20:20:11]SAM_PROTO_GetFieldsCounters done [20:20:11]requested_item shift.num is exist - process it [20:20:11]requested_item shift.opened is exist - process it [20:20:11]req_shift_opened [20:20:11]FM_GetShiftState [20:20:11]SAM_PROTO_GetShiftState [20:20:11]wFMCommunicate request_size=4 [20:20:11]MH_SAM_APDU [20:20:11]CAPDU: 80 13 01 00 [20:20:11]Write to MH i2c: E2 08 00 2D 08 80 13 01 00 00 00 00 00 B2 [20:20:11]Write i2c OK [20:20:11]MH_I2C_Read... [20:20:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:20:11]Read from MH i2c: E2 [20:20:11]MH_I2C_Read... [20:20:11]Read from MH i2c: E2 0E 00 [20:20:11]MH_I2C_Read... [20:20:11]Read from MH i2c: E2 0E 00 2D 08 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 C5 [20:20:11]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [20:20:11]wFMCommunicate OK [20:20:11]SAM_PROTO_GetShiftState done [20:20:11]FM_GetShiftState done [20:20:11]req_shift_opened done [20:20:11]requested_item shift.open_date is exist - process it [20:20:11]req_shift_open_date [20:20:11]req_shift_open_date done [20:20:11]produce_requested_data done [20:20:11]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104218,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [20:20:11]process_action_free close_receipt [20:20:11]json_value_free [20:20:11]json_value_free done [20:20:11]process_json_proto returns [20:20:11]Send response to host [20:20:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104218,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [20:20:11]free response buf [20:20:11]execute_script done [20:20:11]execute_script returns [20:20:11]free content buf [20:20:11]Sock 9.Close socket [20:20:11]Sock 9.Thread stoped [20:20:15]OFD Sender: No OFD packet to send [20:20:20]OFD Sender: No OFD packet to send [20:20:25]OFD Sender: No OFD packet to send [20:20:30]OFD Sender: No OFD packet to send [20:20:35]OFD Sender: No OFD packet to send [20:20:40]OFD Sender: No OFD packet to send [20:20:45]OFD Sender: No OFD packet to send [20:20:50]OFD Sender: No OFD packet to send [20:20:55]OFD Sender: No OFD packet to send [20:21:00]OFD Sender: No OFD packet to send [20:21:05]OFD Sender: No OFD packet to send [20:21:10]OFD Sender: No OFD packet to send [20:21:15]OFD Sender: No OFD packet to send [20:21:20]OFD Sender: No OFD packet to send [20:21:25]OFD Sender: No OFD packet to send [20:21:30]OFD Sender: No OFD packet to send [20:21:35]OFD Sender: No OFD packet to send [20:21:40]OFD Sender: No OFD packet to send [20:21:45]OFD Sender: No OFD packet to send [20:21:50]OFD Sender: No OFD packet to send [20:21:55]OFD Sender: No OFD packet to send [20:22:00]OFD Sender: No OFD packet to send [20:22:05]OFD Sender: No OFD packet to send [20:22:10]accept exits with 7 [20:22:10]New connection [20:22:10]New thread 3067616612 created [20:22:10]Thread 3067473252 joined [20:22:10]Waiting for new connection... [20:22:10] Sock 7.Parse request [20:22:10]Sock 7.Check first char [20:22:10]Sock 7.First char is OK [20:22:10]request: POST /json_proto HTTP/1.0 [20:22:10]Method: POST [20:22:10]URL: /json_proto [20:22:10]Method is POST - this is cgi request [20:22:10]url: /json_proto [20:22:10]query_string will be loaded in cgi processing [20:22:10]execute_cgi json_proto POST (null) [20:22:10]execute_cgi path=json_proto method=POST [20:22:10]POST find Content-Length [20:22:10]Host: 172.17.38.133:8080 [20:22:10]Content-Length: 803 [20:22:10]Content-Type: application/json [20:22:10] [20:22:10]POST finish read [20:22:10]Found Content-Length = 803 [20:22:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673694", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.63 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:22:10]execute_script... [20:22: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)673694", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.63 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:22:10]POST & json_proto [20:22:10]process_json_proto [20:22:10]json parsed OK: [20:22:10]protocol is kg_v1.0 [20:22:10]action value=close_receipt [20:22:10]process_action close_receipt [20:22:10]cmd_close_receipt [20:22:10]MH_GetDate [20:22:10]Write to MH i2c: F0 00 00 2E 08 25 [20:22:10]Write i2c OK [20:22:10]MH_I2C_Read... [20:22:10]Read from MH i2c: F0 [20:22:10]MH_I2C_Read... [20:22:10]Read from MH i2c: F0 09 00 [20:22:10]MH_I2C_Read... [20:22:10]Read from MH i2c: F0 09 00 2E 08 00 F3 E0 75 66 BD 8F 7C 64 08 [20:22:10]GetLastDocTimeStamp 1719001208 [20:22:10]current date 1719001331 [20:22:10]FM_GetShiftState [20:22:10]SAM_PROTO_GetShiftState [20:22:10]wFMCommunicate request_size=4 [20:22:10]MH_SAM_APDU [20:22:10]CAPDU: 80 13 01 00 [20:22:10]Write to MH i2c: E2 08 00 2F 08 80 13 01 00 00 00 00 00 B4 [20:22:10]Write i2c OK [20:22:10]MH_I2C_Read... [20:22:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:22:10]Read from MH i2c: E2 [20:22:10]MH_I2C_Read... [20:22:10]Read from MH i2c: E2 0E 00 [20:22:10]MH_I2C_Read... [20:22:10]Read from MH i2c: E2 0E 00 2F 08 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 C7 [20:22:10]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [20:22:10]wFMCommunicate OK [20:22:10]SAM_PROTO_GetShiftState done [20:22:10]FM_GetShiftState done [20:22:10]opened in 1718929509 [20:22:10]opened+sec_in_day 1719015909 [20:22:10]quantity*price = 200063 [20:22:10]sum+1 = 200064 [20:22:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.63 НСП 1% : 17.70 НДС 12% : 212.46 Наличными: 0.00 Безнал.: 2000.63 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 142 21.06.2024 20:22 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875093 ФД: 104219 ФПД: 96809874883592 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T202211&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104219&fm=96809874883592&tin=02508201610067®Number=0000000000092785&sum=200063 [20:22:11]StoreToDocumentArchive [20:22:11]shift 355 fd 104219 [20:22:11]save to /storage/0355/doc_00104219 [20:22:11]save last doc name /storage/0355/doc_00104219 to /storage/kkm_last_doc_name [20:22:11]save OK [20:22:11]Clear old archive folders... [20:22:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:22:11]tlvbuf is 006AD8F0 [20:22:11]SAM_PROTO_ClearQueue [20:22:11]wFMCommunicate request_size=4 [20:22:11]MH_SAM_APDU [20:22:11]CAPDU: 80 09 00 00 [20:22:11]Write to MH i2c: E2 08 00 3C 08 80 09 00 00 00 00 00 00 B6 [20:22:11]Write i2c OK [20:22:11]MH_I2C_Read... [20:22:11]Read from MH i2c: E2 [20:22:11]MH_I2C_Read... [20:22:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:22:11]Read from MH i2c: E2 03 00 [20:22:11]MH_I2C_Read... [20:22:11]Read from MH i2c: E2 03 00 3C 08 00 90 00 B8 [20:22:11]RAPDU: 90 00 [20:22:11]wFMCommunicate OK [20:22:11]SAM_PROTO_ClearQueue done [20:22:11]KKMCreateOFDPacket [20:22:11]OFDProtocolAddRootSTLVToBuf [20:22:11]FM_MakeSignedData [20:22:11]FM_MakeSignedData [20:22:11]SAM_PROTO_SignData [20:22:11]wFMCommunicate request_size=4 [20:22:11]MH_SAM_APDU [20:22:11]CAPDU: 80 0D 01 02 [20:22:11]Write to MH i2c: E2 08 00 3D 08 80 0D 01 02 00 00 00 00 BE [20:22:11]Write i2c OK [20:22:11]MH_I2C_Read... [20:22:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:22:11]Read from MH i2c: E2 [20:22:11]MH_I2C_Read... [20:22:11]Read from MH i2c: E2 03 00 [20:22:11]MH_I2C_Read... [20:22:11]Read from MH i2c: E2 03 00 3D 08 00 90 00 B9 [20:22:11]RAPDU: 90 00 [20:22:11]wFMCommunicate OK [20:22:11]wFMCommunicate request_size=255 [20:22:11]MH_SAM_APDU [20:22: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 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 7F 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 00 00 00 00 00 00 39 04 06 00 7F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 F3 E0 75 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 1B 97 01 00 35 04 06 00 58 [20:22:11]Write to MH i2c: E2 02 01 3E 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 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 7F 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 00 00 00 00 00 00 39 04 06 00 7F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 F3 E0 75 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 1B 97 01 00 35 04 06 00 58 00 00 96 [20:22:11]Write i2c OK [20:22:11]MH_I2C_Read... [20:22:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:22:11]Read from MH i2c: E2 [20:22:11]MH_I2C_Read... [20:22:11]Read from MH i2c: E2 03 00 [20:22:11]MH_I2C_Read... [20:22:11]Read from MH i2c: E2 03 00 3E 08 00 90 00 BA [20:22:11]RAPDU: 90 00 [20:22:11]wFMCommunicate OK [20:22:11]wFMCommunicate request_size=10 [20:22:11]MH_SAM_APDU [20:22:11]CAPDU: 80 0D 02 02 05 0C 4E 34 04 08 [20:22:11]Write to MH i2c: E2 0D 00 3F 08 80 0D 02 02 05 00 0C 4E 34 04 08 00 00 65 [20:22:11]Write i2c OK [20:22:11]MH_I2C_Read... [20:22:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:22:11]Read from MH i2c: E2 [20:22:11]MH_I2C_Read... [20:22:11]Read from MH i2c: E2 03 00 [20:22:11]MH_I2C_Read... [20:22:11]Read from MH i2c: E2 03 00 3F 08 00 90 00 BB [20:22:11]RAPDU: 90 00 [20:22:11]wFMCommunicate OK [20:22:11]wFMCommunicate request_size=4 [20:22:11]MH_SAM_APDU [20:22:11]CAPDU: 80 0D 03 02 [20:22:11]Write to MH i2c: E2 08 00 40 08 80 0D 03 02 00 00 00 00 C3 [20:22:11]Write i2c OK [20:22:11]MH_I2C_Read... [20:22:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:22:11]Read from MH i2c: E2 [20:22:11]MH_I2C_Read... [20:22:11]Read from MH i2c: E2 0B 00 [20:22:11]MH_I2C_Read... [20:22:11]Read from MH i2c: E2 0B 00 40 08 00 AA 9A F2 78 C3 F4 2E EE 90 00 45 [20:22:11]RAPDU: AA 9A F2 78 C3 F4 2E EE 90 00 [20:22:11]wFMCommunicate OK [20:22:11]SAM_PROTO_SignData done [20:22:11]FM_MakeSignedData done [20:22:11]CreateOFDProtocolMessage [20:22:11]wFMCommunicate request_size=4 [20:22:11]MH_SAM_APDU [20:22:11]CAPDU: 80 11 00 00 [20:22:11]Write to MH i2c: E2 08 00 41 08 80 11 00 00 00 00 00 00 C3 [20:22:11]Write i2c OK [20:22:11]MH_I2C_Read... [20:22:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:22:11]Read from MH i2c: E2 [20:22:11]MH_I2C_Read... [20:22:11]Read from MH i2c: E2 17 00 [20:22:11]MH_I2C_Read... [20:22:11]Read from MH i2c: E2 17 00 41 08 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:22: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:22:11]wFMCommunicate OK [20:22:11]CreateOFDProtocolMessage done [20:22:11]OFDSenderStorePacket 104219 [20:22:11]StoreOFDPacket docnum=104219 [20:22: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 BA 6B 07 01 56 75 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 7F 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 00 00 00 00 00 00 39 04 06 00 7F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 F3 E0 75 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 1B 97 01 00 35 04 06 00 58 0C 4E 34 04 08 AA 9A F2 78 C3 F4 2E EE [20:22:11]CheckFolder [20:22:11]dirname=/storage/ofd_packets [20:22:11]CheckFolder done [20:22:11]ProducePacketName [20:22:11]name=ofd_packets/00104219 [20:22:11]NVStorageSaveData ofd_packets/00104219 [20:22:11]File name is /storage/ofd_packets/00104219 [20:22:11]Write 301 bytes [20:22:11]NVStorageSaveData done [20:22:11]OFDSenderStorePacket done [20:22:11]KKMCreateOFDPacket done [20:22:11]NVStorageSaveData kkm_last_timestamp [20:22:11]File name is /storage/kkm_last_timestamp [20:22:11]Write 4 bytes [20:22:11]NVStorageSaveData done [20:22:11]ExternCall_PrintAddStr [20:22:11]wPrintStart [20:22:11]Write to MH i2c: 01 00 00 42 08 4A [20:22:11]Write i2c OK [20:22:11]MH_I2C_Read... [20:22:11]Read from MH i2c: 01 [20:22:11]MH_I2C_Read... [20:22:11]Read from MH i2c: 01 07 00 [20:22:11]MH_I2C_Read... [20:22:11]Read from MH i2c: 01 07 00 42 08 00 00 00 00 00 FF 0F 5F [20:22:11]RasterBufferAndPrint [20:22:11]line Счет N : (1)673694 [20:22:11]line ИНН: 02508201610067 [20:22:11]line Контрольно-Кассовый Чек [20:22:11]line ПРОДАЖА [20:22:11]line ТРК (МРК, ГНК) : 42 [20:22:11]line Товар: 2710124130 [20:22:11]line Аи-92-К-5 [20:22:11]line 30.130 * 66.40 [20:22:11]line = 2000.63 [20:22:11]line НДС 12% НСП 1% [20:22:11]line > о реализуемом товаре [20:22:11]line ИТОГО: 2000.63 [20:22:11]line НСП 1% : 17.70 [20:22:11]line НДС 12% : 212.46 [20:22:11]line Наличными: 0.00 [20:22:11]line Безнал.: 2000.63 [20:22:11]line Место: АЗС № 120 "Партнер Нефть" [20:22:11]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [20:22:11]line СНО: Общий режим [20:22:11]line Чек 142 21.06.2024 20:22 [20:22:11]line Смена: 355 ФФД: 1.0 [20:22:11]line ЗНМ: 0300000164 [20:22:11]line РНМ: 0000000000092785 [20:22:11]line Версия ККМ: 001 [20:22:11]line Платежная система: O! деньги [20:22:11]line ФМ: 0000000000875093 [20:22:11]line ФД: 104219 [20:22:11]line ФПД: 96809874883592 [20:22:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T202211&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104219&fm=96809874883592&tin=02508201610067®Number=0000000000092785&sum=200063 [20:22:12]OFD Sender: Processing packet 104219 [packets to send 17, broken 16] [20:22:12]ProducePacketName [20:22:12]name=ofd_packets/00104219 [20:22:12]OFD Sender: To server: pG, [20:22:12]CommunicateWithHost lk.salyk.kg:30040 [20:22:12]ConnectInit lk.salyk.kg [20:22:12]written 0, free lines is 4095 [20:22:12]Connected sock=9 [20:22: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 BA 6B 07 01 56 75 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 7F 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 00 00 00 00 00 00 39 04 06 00 7F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 F3 E0 75 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 1B 97 01 00 35 04 06 00 58 0C 4E 34 04 08 AA 9A F2 78 C3 F4 2E EE [20:22: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 D1 03 47 00 81 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 1B 97 01 00 F4 03 04 00 74 87 75 66 B6 04 01 00 00 E3 06 8B C5 F4 79 3C 49 [20:22:12]CommunicateWithHost err = 0 [20:22:12]CheckOFDResponse [20:22:12]1017 (14) - 77093643461234 [20:22:12]1041 (16) - 0000000000875093 [20:22:12]1040 (4) - 104219 [20:22:12]1012 (4) - 21.06.2024 14:00 [20:22:12]1206 (1) - 0 [20:22:12]OFD Sender: Remove packet 104219 [20:22:12]ProducePacketName [20:22:12]name=ofd_packets/00104219 [20:22:12]NVStorageDeleteData [20:22:12]Write to MH i2c: 01 00 00 6C 08 74 [20:22:12]Write i2c OK [20:22:12]MH_I2C_Read... [20:22:12]Read from MH i2c: 01 [20:22:12]MH_I2C_Read... [20:22:12]Read from MH i2c: 01 07 00 [20:22:12]MH_I2C_Read... [20:22:12]Read from MH i2c: 01 07 00 6C 08 00 00 00 00 00 01 0D 89 [20:22:12]RasterBufferAndPrint [20:22:12]line [20:22:12]line [20:22:12]line [20:22:12]line [20:22:12]line [20:22:12]written 0, free lines is 3335 [20:22:12]MH_Cut [20:22:12]Write to MH i2c: D1 01 00 73 08 01 4D [20:22:12]Write i2c OK [20:22:12]MH_I2C_Read... [20:22:12]Read from MH i2c: D1 [20:22:12]MH_I2C_Read... [20:22:12]Read from MH i2c: D1 01 00 [20:22:12]MH_I2C_Read... [20:22:12]Read from MH i2c: D1 01 00 73 08 00 4C [20:22:12]Write to MH i2c: 01 00 00 74 08 7C [20:22:12]Write i2c OK [20:22:12]MH_I2C_Read... [20:22:13]OFD Sender: No OFD packet to send [20:22:13]*** Cut start [20:22:13]*** Partial cut [20:22:13]*** CUTSNS_PIN = 1 [20:22:13]*** CUTSNS_PIN = 0 [20:22:13]*** Brake cut motor [20:22:13]Read from MH i2c: 01 [20:22:13]MH_I2C_Read... [20:22:13]*** Stop cut motor [20:22:13]*** Cut end [20:22:13]Read from MH i2c: 01 07 00 [20:22:13]MH_I2C_Read... [20:22:13]Read from MH i2c: 01 07 00 74 08 00 00 00 00 00 FF 0F 91 [20:22:13]process_action close_receipt done [20:22:13]requested_data is exist [20:22:13]produce_requested_data [20:22:13]requested_item fm.sn is exist - process it [20:22:13]wFMCommunicate request_size=4 [20:22:13]MH_SAM_APDU [20:22:13]CAPDU: 80 11 00 00 [20:22:13]Write to MH i2c: E2 08 00 75 08 80 11 00 00 00 00 00 00 F7 [20:22:13]Write i2c OK [20:22:13]MH_I2C_Read... [20:22:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:22:14]Read from MH i2c: E2 [20:22:14]MH_I2C_Read... [20:22:14]Read from MH i2c: E2 17 00 [20:22:14]MH_I2C_Read... [20:22:14]Read from MH i2c: E2 17 00 75 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 4A [20:22: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:22:14]wFMCommunicate OK [20:22:14]requested_item fd.num is exist - process it [20:22:14]SAM_PROTO_GetFieldsCounters [20:22:14]wFMCommunicate request_size=4 [20:22:14]MH_SAM_APDU [20:22:14]CAPDU: 80 13 00 00 [20:22:14]Write to MH i2c: E2 08 00 76 08 80 13 00 00 00 00 00 00 FA [20:22:14]Write i2c OK [20:22:14]MH_I2C_Read... [20:22:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:22:14]Read from MH i2c: E2 [20:22:14]MH_I2C_Read... [20:22:14]Read from MH i2c: E2 62 00 [20:22:14]MH_I2C_Read... [20:22:14]Read from MH i2c: E2 62 00 76 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 63 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 E2 [20:22: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 1B 97 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 8E 00 00 00 5E 04 04 00 8E 00 00 00 57 04 04 00 8F 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:22:14]wFMCommunicate OK [20:22:14]SAM_PROTO_GetFieldsCounters done [20:22:14]requested_item shift.num is exist - process it [20:22:14]requested_item shift.opened is exist - process it [20:22:14]req_shift_opened [20:22:14]FM_GetShiftState [20:22:14]SAM_PROTO_GetShiftState [20:22:14]wFMCommunicate request_size=4 [20:22:14]MH_SAM_APDU [20:22:14]CAPDU: 80 13 01 00 [20:22:14]Write to MH i2c: E2 08 00 77 08 80 13 01 00 00 00 00 00 FC [20:22:14]Write i2c OK [20:22:14]MH_I2C_Read... [20:22:14]Read from MH i2c: E2 [20:22:14]MH_I2C_Read... [20:22:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:22:14]Read from MH i2c: E2 0E 00 [20:22:14]MH_I2C_Read... [20:22:14]Read from MH i2c: E2 0E 00 77 08 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 0F [20:22:14]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [20:22:14]wFMCommunicate OK [20:22:14]SAM_PROTO_GetShiftState done [20:22:14]FM_GetShiftState done [20:22:14]req_shift_opened done [20:22:14]requested_item shift.open_date is exist - process it [20:22:14]req_shift_open_date [20:22:14]req_shift_open_date done [20:22:14]produce_requested_data done [20:22:14]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104219,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [20:22:14]process_action_free close_receipt [20:22:14]json_value_free [20:22:14]json_value_free done [20:22:14]process_json_proto returns [20:22:14]Send response to host [20:22:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104219,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [20:22:14]free response buf [20:22:14]execute_script done [20:22:14]execute_script returns [20:22:14]free content buf [20:22:14]Sock 7.Close socket [20:22:14]Sock 7.Thread stoped [20:22:18]OFD Sender: No OFD packet to send [20:22:23]OFD Sender: No OFD packet to send [20:22:28]OFD Sender: No OFD packet to send [20:22:33]OFD Sender: No OFD packet to send [20:22:38]OFD Sender: No OFD packet to send [20:22:43]OFD Sender: No OFD packet to send [20:22:48]OFD Sender: No OFD packet to send [20:22:53]OFD Sender: No OFD packet to send [20:22:58]OFD Sender: No OFD packet to send [20:23:03]OFD Sender: No OFD packet to send [20:23:08]OFD Sender: No OFD packet to send [20:23:13]OFD Sender: No OFD packet to send [20:23:18]OFD Sender: No OFD packet to send [20:23:23]OFD Sender: No OFD packet to send [20:23:28]OFD Sender: No OFD packet to send [20:23:33]OFD Sender: No OFD packet to send [20:23:34]accept exits with 10 [20:23:34]New connection [20:23:34]New thread 3067473252 created [20:23:34]Thread 3067616612 joined [20:23:34]Waiting for new connection... [20:23:34] Sock 10.Parse request [20:23:34]Sock 10.Check first char [20:23:34]Sock 10.First char is OK [20:23:34]request: POST /json_proto HTTP/1.0 [20:23:34]Method: POST [20:23:34]URL: /json_proto [20:23:34]Method is POST - this is cgi request [20:23:34]url: /json_proto [20:23:34]query_string will be loaded in cgi processing [20:23:34]execute_cgi json_proto POST (null) [20:23:34]execute_cgi path=json_proto method=POST [20:23:34]POST find Content-Length [20:23:34]Host: 172.17.38.133:8080 [20:23:34]Content-Length: 682 [20:23:34]Content-Type: application/json [20:23:34] [20:23:34]POST finish read [20:23:34]Found Content-Length = 682 [20:23:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673695", "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" : 16.870, "sum" : 1120.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1120.00, "total" : 1120.00, "payments": [ { "type": 0, "sum" : 1120.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:23:34]execute_script... [20:23: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)673695", "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" : 16.870, "sum" : 1120.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1120.00, "total" : 1120.00, "payments": [ { "type": 0, "sum" : 1120.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:23:34]POST & json_proto [20:23:34]process_json_proto [20:23:34]json parsed OK: [20:23:34]protocol is kg_v1.0 [20:23:34]action value=close_receipt [20:23:34]process_action close_receipt [20:23:34]cmd_close_receipt [20:23:34]MH_GetDate [20:23:34]Write to MH i2c: F0 00 00 78 08 6F [20:23:34]Write i2c OK [20:23:34]MH_I2C_Read... [20:23:34]Read from MH i2c: F0 [20:23:34]MH_I2C_Read... [20:23:34]Read from MH i2c: F0 09 00 [20:23:34]MH_I2C_Read... [20:23:34]Read from MH i2c: F0 09 00 78 08 00 48 E1 75 66 BD 8F 7C 64 A8 [20:23:34]GetLastDocTimeStamp 1719001331 [20:23:34]current date 1719001416 [20:23:34]FM_GetShiftState [20:23:34]SAM_PROTO_GetShiftState [20:23:34]wFMCommunicate request_size=4 [20:23:34]MH_SAM_APDU [20:23:34]CAPDU: 80 13 01 00 [20:23:34]Write to MH i2c: E2 08 00 79 08 80 13 01 00 00 00 00 00 FE [20:23:34]Write i2c OK [20:23:34]MH_I2C_Read... [20:23:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:23:34]Read from MH i2c: E2 [20:23:34]MH_I2C_Read... [20:23:34]Read from MH i2c: E2 0E 00 [20:23:34]MH_I2C_Read... [20:23:34]Read from MH i2c: E2 0E 00 79 08 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 11 [20:23:34]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [20:23:34]wFMCommunicate OK [20:23:34]SAM_PROTO_GetShiftState done [20:23:34]FM_GetShiftState done [20:23:34]opened in 1718929509 [20:23:34]opened+sec_in_day 1719015909 [20:23:34]quantity*price = 112016 [20:23:34]sum+1 = 112018 [20:23:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.17 ИТОГО: 1120.00 Внесено: 1120.00 СДАЧА: 0.00 НСП 1% : 9.91 НДС 12% : 118.96 Наличными: 1120.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 143 21.06.2024 20:23 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104220 ФПД: 142718423089409 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T202336&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104220&fm=142718423089409&tin=02508201610067®Number=0000000000092785&sum=112000 [20:23:35]StoreToDocumentArchive [20:23:35]shift 355 fd 104220 [20:23:35]save to /storage/0355/doc_00104220 [20:23:35]save last doc name /storage/0355/doc_00104220 to /storage/kkm_last_doc_name [20:23:35]save OK [20:23:35]Clear old archive folders... [20:23:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:23:35]tlvbuf is B6F633C0 [20:23:35]SAM_PROTO_ClearQueue [20:23:35]wFMCommunicate request_size=4 [20:23:35]MH_SAM_APDU [20:23:35]CAPDU: 80 09 00 00 [20:23:35]Write to MH i2c: E2 08 00 86 08 80 09 00 00 00 00 00 00 00 [20:23:35]Write i2c OK [20:23:35]MH_I2C_Read... [20:23:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:23:36]Read from MH i2c: E2 [20:23:36]MH_I2C_Read... [20:23:36]Read from MH i2c: E2 03 00 [20:23:36]MH_I2C_Read... [20:23:36]Read from MH i2c: E2 03 00 86 08 00 90 00 02 [20:23:36]RAPDU: 90 00 [20:23:36]wFMCommunicate OK [20:23:36]SAM_PROTO_ClearQueue done [20:23:36]KKMCreateOFDPacket [20:23:36]OFDProtocolAddRootSTLVToBuf [20:23:36]FM_MakeSignedData [20:23:36]FM_MakeSignedData [20:23:36]SAM_PROTO_SignData [20:23:36]wFMCommunicate request_size=4 [20:23:36]MH_SAM_APDU [20:23:36]CAPDU: 80 0D 01 02 [20:23:36]Write to MH i2c: E2 08 00 87 08 80 0D 01 02 00 00 00 00 08 [20:23:36]Write i2c OK [20:23:36]MH_I2C_Read... [20:23:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:23:36]Read from MH i2c: E2 [20:23:36]MH_I2C_Read... [20:23:36]Read from MH i2c: E2 03 00 [20:23:36]MH_I2C_Read... [20:23:36]Read from MH i2c: E2 03 00 87 08 00 90 00 03 [20:23:36]RAPDU: 90 00 [20:23:36]wFMCommunicate OK [20:23:36]wFMCommunicate request_size=255 [20:23:36]MH_SAM_APDU [20:23: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 E6 41 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 91 B5 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 B5 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DF 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 2E 00 00 00 00 07 04 06 00 80 B5 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 48 E1 75 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 1C 97 01 00 35 04 06 00 81 [20:23:36]Write to MH i2c: E2 02 01 88 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 E6 41 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 91 B5 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 B5 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DF 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 2E 00 00 00 00 07 04 06 00 80 B5 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 48 E1 75 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 1C 97 01 00 35 04 06 00 81 00 00 AF [20:23:36]Write i2c OK [20:23:36]MH_I2C_Read... [20:23:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:23:36]Read from MH i2c: E2 [20:23:36]MH_I2C_Read... [20:23:36]Read from MH i2c: E2 03 00 [20:23:36]MH_I2C_Read... [20:23:36]Read from MH i2c: E2 03 00 88 08 00 90 00 04 [20:23:36]RAPDU: 90 00 [20:23:36]wFMCommunicate OK [20:23:36]wFMCommunicate request_size=10 [20:23:36]MH_SAM_APDU [20:23:36]CAPDU: 80 0D 02 02 05 CD 38 E9 41 01 [20:23:36]Write to MH i2c: E2 0D 00 89 08 80 0D 02 02 05 00 CD 38 E9 41 01 00 00 45 [20:23:36]Write i2c OK [20:23:36]MH_I2C_Read... [20:23:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:23:36]Read from MH i2c: E2 [20:23:36]MH_I2C_Read... [20:23:36]Read from MH i2c: E2 03 00 [20:23:36]MH_I2C_Read... [20:23:36]Read from MH i2c: E2 03 00 89 08 00 90 00 05 [20:23:36]RAPDU: 90 00 [20:23:36]wFMCommunicate OK [20:23:36]wFMCommunicate request_size=4 [20:23:36]MH_SAM_APDU [20:23:36]CAPDU: 80 0D 03 02 [20:23:36]Write to MH i2c: E2 08 00 8A 08 80 0D 03 02 00 00 00 00 0D [20:23:36]Write i2c OK [20:23:36]MH_I2C_Read... [20:23:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:23:36]Read from MH i2c: E2 [20:23:36]MH_I2C_Read... [20:23:36]Read from MH i2c: E2 0B 00 [20:23:36]MH_I2C_Read... [20:23:36]Read from MH i2c: E2 0B 00 8A 08 00 9C 4F 39 E8 E4 2A 92 C1 90 00 7B [20:23:36]RAPDU: 9C 4F 39 E8 E4 2A 92 C1 90 00 [20:23:36]wFMCommunicate OK [20:23:36]SAM_PROTO_SignData done [20:23:36]FM_MakeSignedData done [20:23:36]CreateOFDProtocolMessage [20:23:36]wFMCommunicate request_size=4 [20:23:36]MH_SAM_APDU [20:23:36]CAPDU: 80 11 00 00 [20:23:36]Write to MH i2c: E2 08 00 8B 08 80 11 00 00 00 00 00 00 0D [20:23:36]Write i2c OK [20:23:36]MH_I2C_Read... [20:23:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:23:36]Read from MH i2c: E2 [20:23:36]MH_I2C_Read... [20:23:36]Read from MH i2c: E2 17 00 [20:23:36]MH_I2C_Read... [20:23:36]Read from MH i2c: E2 17 00 8B 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 60 [20:23:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [20:23:36]wFMCommunicate OK [20:23:36]CreateOFDProtocolMessage done [20:23:36]OFDSenderStorePacket 104220 [20:23:36]StoreOFDPacket docnum=104220 [20:23: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 C0 07 01 AA 0E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 41 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 91 B5 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 B5 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DF 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 2E 00 00 00 00 07 04 06 00 80 B5 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 48 E1 75 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 1C 97 01 00 35 04 06 00 81 CD 38 E9 41 01 9C 4F 39 E8 E4 2A 92 C1 [20:23:36]CheckFolder [20:23:36]dirname=/storage/ofd_packets [20:23:36]CheckFolder done [20:23:36]ProducePacketName [20:23:36]name=ofd_packets/00104220 [20:23:36]NVStorageSaveData ofd_packets/00104220 [20:23:36]File name is /storage/ofd_packets/00104220 [20:23:36]Write 301 bytes [20:23:36]NVStorageSaveData done [20:23:36]OFDSenderStorePacket done [20:23:36]KKMCreateOFDPacket done [20:23:36]NVStorageSaveData kkm_last_timestamp [20:23:36]File name is /storage/kkm_last_timestamp [20:23:36]Write 4 bytes [20:23:36]NVStorageSaveData done [20:23:36]ExternCall_PrintAddStr [20:23:36]wPrintStart [20:23:36]Write to MH i2c: 01 00 00 8C 08 94 [20:23:36]Write i2c OK [20:23:36]MH_I2C_Read... [20:23:36]Read from MH i2c: 01 [20:23:36]MH_I2C_Read... [20:23:36]Read from MH i2c: 01 07 00 [20:23:36]MH_I2C_Read... [20:23:36]Read from MH i2c: 01 07 00 8C 08 00 00 00 00 00 FF 0F A9 [20:23:36]RasterBufferAndPrint [20:23:36]line Счет N : (1)673695 [20:23:36]line ИНН: 02508201610067 [20:23:36]line Контрольно-Кассовый Чек [20:23:36]line ПРОДАЖА [20:23:36]line ТРК (МРК, ГНК) : 32 [20:23:36]line Товар: 2710124130 [20:23:36]line Аи-92-К-5 [20:23:36]line 16.870 * 66.40 [20:23:36]line = 1120.17 [20:23:36]line НДС 12% НСП 1% [20:23:36]line > о реализуемом товаре [20:23:36]line ОКРУГЛЕНИЕ: -0.17 [20:23:36]line ИТОГО: 1120.00 [20:23:36]line Внесено: 1120.00 [20:23:36]line СДАЧА: 0.00 [20:23:36]line НСП 1% : 9.91 [20:23:36]line НДС 12% : 118.96 [20:23:36]line Наличными: 1120.00 [20:23:36]line Безнал.: 0.00 [20:23:36]line Место: АЗС № 120 "Партнер Нефть" [20:23:36]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [20:23:36]line СНО: Общий режим [20:23:36]line Чек 143 21.06.2024 20:23 [20:23:36]line Смена: 355 ФФД: 1.0 [20:23:36]line ЗНМ: 0300000164 [20:23:36]line РНМ: 0000000000092785 [20:23:36]line Версия ККМ: 001 [20:23:36]line ФМ: 0000000000875093 [20:23:36]line ФД: 104220 [20:23:36]line ФПД: 142718423089409 [20:23:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T202336&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104220&fm=142718423089409&tin=02508201610067®Number=0000000000092785&sum=112000 [20:23:36]OFD Sender: Processing packet 104220 [packets to send 17, broken 16] [20:23:36]ProducePacketName [20:23:36]name=ofd_packets/00104220 [20:23:36]OFD Sender: To server: pG, [20:23:36]CommunicateWithHost lk.salyk.kg:30040 [20:23:36]ConnectInit lk.salyk.kg [20:23:36]written 0, free lines is 4095 [20:23:36]Connected sock=9 [20:23: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 C0 07 01 AA 0E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 41 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 91 B5 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 B5 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DF 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 2E 00 00 00 00 07 04 06 00 80 B5 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 48 E1 75 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 1C 97 01 00 35 04 06 00 81 CD 38 E9 41 01 9C 4F 39 E8 E4 2A 92 C1 [20:23: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 CB B3 47 00 C0 6B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 1C 97 01 00 F4 03 04 00 C9 87 75 66 B6 04 01 00 00 8F 25 E5 BF 2E BB 70 42 [20:23:37]CommunicateWithHost err = 0 [20:23:37]CheckOFDResponse [20:23:37]1017 (14) - 77093643461234 [20:23:37]1041 (16) - 0000000000875093 [20:23:37]1040 (4) - 104220 [20:23:37]1012 (4) - 21.06.2024 14:01 [20:23:37]1206 (1) - 0 [20:23:37]OFD Sender: Remove packet 104220 [20:23:37]ProducePacketName [20:23:37]name=ofd_packets/00104220 [20:23:37]NVStorageDeleteData [20:23:37]Write to MH i2c: 01 00 00 B7 08 BF [20:23:37]Write i2c OK [20:23:37]MH_I2C_Read... [20:23:37]Read from MH i2c: 01 [20:23:37]MH_I2C_Read... [20:23:37]Read from MH i2c: 01 07 00 [20:23:37]MH_I2C_Read... [20:23:37]Read from MH i2c: 01 07 00 B7 08 00 00 00 00 00 E5 0C B7 [20:23:37]RasterBufferAndPrint [20:23:37]line [20:23:37]line [20:23:37]line [20:23:37]line [20:23:37]line [20:23:37]written 0, free lines is 3307 [20:23:37]MH_Cut [20:23:37]Write to MH i2c: D1 01 00 BE 08 01 98 [20:23:37]Write i2c OK [20:23:37]MH_I2C_Read... [20:23:37]Read from MH i2c: D1 [20:23:37]MH_I2C_Read... [20:23:37]Read from MH i2c: D1 01 00 [20:23:37]MH_I2C_Read... [20:23:37]Read from MH i2c: D1 01 00 BE 08 00 97 [20:23:37]Write to MH i2c: 01 00 00 BF 08 C7 [20:23:37]Write i2c OK [20:23:37]MH_I2C_Read... [20:23:37]OFD Sender: No OFD packet to send [20:23:37]*** Cut start [20:23:37]*** Partial cut [20:23:37]*** CUTSNS_PIN = 1 [20:23:38]*** CUTSNS_PIN = 0 [20:23:38]*** Brake cut motor [20:23:38]Read from MH i2c: 01 [20:23:38]MH_I2C_Read... [20:23:38]*** Stop cut motor [20:23:38]*** Cut end [20:23:38]Read from MH i2c: 01 07 00 [20:23:38]MH_I2C_Read... [20:23:38]Read from MH i2c: 01 07 00 BF 08 00 00 00 00 00 FF 0F DC [20:23:38]process_action close_receipt done [20:23:38]requested_data is exist [20:23:38]produce_requested_data [20:23:38]requested_item fm.sn is exist - process it [20:23:38]wFMCommunicate request_size=4 [20:23:38]MH_SAM_APDU [20:23:38]CAPDU: 80 11 00 00 [20:23:38]Write to MH i2c: E2 08 00 C0 08 80 11 00 00 00 00 00 00 42 [20:23:38]Write i2c OK [20:23:38]MH_I2C_Read... [20:23:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:23:38]Read from MH i2c: E2 [20:23:38]MH_I2C_Read... [20:23:38]Read from MH i2c: E2 17 00 [20:23:38]MH_I2C_Read... [20:23:38]Read from MH i2c: E2 17 00 C0 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 95 [20:23:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [20:23:38]wFMCommunicate OK [20:23:38]requested_item fd.num is exist - process it [20:23:38]SAM_PROTO_GetFieldsCounters [20:23:38]wFMCommunicate request_size=4 [20:23:38]MH_SAM_APDU [20:23:38]CAPDU: 80 13 00 00 [20:23:38]Write to MH i2c: E2 08 00 C1 08 80 13 00 00 00 00 00 00 45 [20:23:38]Write i2c OK [20:23:38]MH_I2C_Read... [20:23:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:23:38]Read from MH i2c: E2 [20:23:38]MH_I2C_Read... [20:23:38]Read from MH i2c: E2 62 00 [20:23:38]MH_I2C_Read... [20:23:38]Read from MH i2c: E2 62 00 C1 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 63 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 31 [20:23: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 1C 97 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 90 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:23:38]wFMCommunicate OK [20:23:38]SAM_PROTO_GetFieldsCounters done [20:23:38]requested_item shift.num is exist - process it [20:23:38]requested_item shift.opened is exist - process it [20:23:38]req_shift_opened [20:23:38]FM_GetShiftState [20:23:38]SAM_PROTO_GetShiftState [20:23:38]wFMCommunicate request_size=4 [20:23:38]MH_SAM_APDU [20:23:38]CAPDU: 80 13 01 00 [20:23:38]Write to MH i2c: E2 08 00 C2 08 80 13 01 00 00 00 00 00 47 [20:23:38]Write i2c OK [20:23:38]MH_I2C_Read... [20:23:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:23:38]Read from MH i2c: E2 [20:23:38]MH_I2C_Read... [20:23:38]Read from MH i2c: E2 0E 00 [20:23:38]MH_I2C_Read... [20:23:38]Read from MH i2c: E2 0E 00 C2 08 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 5A [20:23:38]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [20:23:38]wFMCommunicate OK [20:23:38]SAM_PROTO_GetShiftState done [20:23:38]FM_GetShiftState done [20:23:38]req_shift_opened done [20:23:38]requested_item shift.open_date is exist - process it [20:23:38]req_shift_open_date [20:23:38]req_shift_open_date done [20:23:38]produce_requested_data done [20:23:38]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104220,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [20:23:38]process_action_free close_receipt [20:23:38]json_value_free [20:23:38]json_value_free done [20:23:38]process_json_proto returns [20:23:38]Send response to host [20:23:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104220,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [20:23:38]free response buf [20:23:38]execute_script done [20:23:38]execute_script returns [20:23:38]free content buf [20:23:38]Sock 10.Close socket [20:23:38]Sock 10.Thread stoped [20:23:42]OFD Sender: No OFD packet to send [20:23:47]OFD Sender: No OFD packet to send [20:23:52]OFD Sender: No OFD packet to send [20:23:57]OFD Sender: No OFD packet to send [20:24:02]OFD Sender: No OFD packet to send [20:24:07]OFD Sender: No OFD packet to send [20:24:12]OFD Sender: No OFD packet to send [20:24:17]OFD Sender: No OFD packet to send [20:24:22]OFD Sender: No OFD packet to send [20:24:27]OFD Sender: No OFD packet to send [20:24:32]OFD Sender: No OFD packet to send [20:24:37]OFD Sender: No OFD packet to send [20:24:42]OFD Sender: No OFD packet to send [20:24:47]OFD Sender: No OFD packet to send [20:24:52]OFD Sender: No OFD packet to send [20:24:57]OFD Sender: No OFD packet to send [20:25:02]OFD Sender: No OFD packet to send [20:25:07]OFD Sender: No OFD packet to send [20:25:12]OFD Sender: No OFD packet to send [20:25:17]OFD Sender: No OFD packet to send [20:25:22]OFD Sender: No OFD packet to send [20:25:27]OFD Sender: No OFD packet to send [20:25:32]OFD Sender: No OFD packet to send [20:25:37]OFD Sender: No OFD packet to send [20:25:42]OFD Sender: No OFD packet to send [20:25:47]OFD Sender: No OFD packet to send [20:25:52]OFD Sender: No OFD packet to send [20:25:57]OFD Sender: No OFD packet to send [20:26:02]OFD Sender: No OFD packet to send [20:26:03]accept exits with 7 [20:26:03]New connection [20:26:03]New thread 3067616612 created [20:26:03]Thread 3067473252 joined [20:26:03]Waiting for new connection... [20:26:03] Sock 7.Parse request [20:26:03]Sock 7.Check first char [20:26:03]Sock 7.First char is OK [20:26:03]request: POST /json_proto HTTP/1.0 [20:26:03]Method: POST [20:26:03]URL: /json_proto [20:26:03]Method is POST - this is cgi request [20:26:03]url: /json_proto [20:26:03]query_string will be loaded in cgi processing [20:26:03]execute_cgi json_proto POST (null) [20:26:03]execute_cgi path=json_proto method=POST [20:26:03]POST find Content-Length [20:26:03]Host: 172.17.38.133:8080 [20:26:03]Content-Length: 677 [20:26:03]Content-Type: application/json [20:26:03] [20:26:03]POST finish read [20:26:03]Found Content-Length = 677 [20:26:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673696", "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:26:03]execute_script... [20:26:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673696", "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:26:03]POST & json_proto [20:26:03]process_json_proto [20:26:03]json parsed OK: [20:26:03]protocol is kg_v1.0 [20:26:03]action value=close_receipt [20:26:03]process_action close_receipt [20:26:03]cmd_close_receipt [20:26:03]MH_GetDate [20:26:03]Write to MH i2c: F0 00 00 C3 08 BA [20:26:03]Write i2c OK [20:26:03]MH_I2C_Read... [20:26:03]Read from MH i2c: F0 [20:26:03]MH_I2C_Read... [20:26:03]Read from MH i2c: F0 09 00 [20:26:03]MH_I2C_Read... [20:26:03]Read from MH i2c: F0 09 00 C3 08 00 DC E1 75 66 BD 8F 7C 64 87 [20:26:03]GetLastDocTimeStamp 1719001416 [20:26:03]current date 1719001564 [20:26:03]FM_GetShiftState [20:26:03]SAM_PROTO_GetShiftState [20:26:03]wFMCommunicate request_size=4 [20:26:03]MH_SAM_APDU [20:26:03]CAPDU: 80 13 01 00 [20:26:03]Write to MH i2c: E2 08 00 C4 08 80 13 01 00 00 00 00 00 49 [20:26:03]Write i2c OK [20:26:03]MH_I2C_Read... [20:26:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:26:03]Read from MH i2c: E2 [20:26:03]MH_I2C_Read... [20:26:03]Read from MH i2c: E2 0E 00 [20:26:03]MH_I2C_Read... [20:26:03]Read from MH i2c: E2 0E 00 C4 08 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 5C [20:26:03]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [20:26:03]wFMCommunicate OK [20:26:03]SAM_PROTO_GetShiftState done [20:26:03]FM_GetShiftState done [20:26:03]opened in 1718929509 [20:26:03]opened+sec_in_day 1719015909 [20:26:03]quantity*price = 50065 [20:26:03]sum+1 = 50067 [20:26: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 СНО: Общий режим Чек 144 21.06.2024 20:26 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104221 ФПД: 217488525996605 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T202604&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104221&fm=217488525996605&tin=02508201610067®Number=0000000000092785&sum=50000 [20:26:04]StoreToDocumentArchive [20:26:04]shift 355 fd 104221 [20:26:04]save to /storage/0355/doc_00104221 [20:26:04]save last doc name /storage/0355/doc_00104221 to /storage/kkm_last_doc_name [20:26:04]save OK [20:26:04]Clear old archive folders... [20:26:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:26:04]tlvbuf is 00695A40 [20:26:04]SAM_PROTO_ClearQueue [20:26:04]wFMCommunicate request_size=4 [20:26:04]MH_SAM_APDU [20:26:04]CAPDU: 80 09 00 00 [20:26:04]Write to MH i2c: E2 08 00 D1 08 80 09 00 00 00 00 00 00 4B [20:26:04]Write i2c OK [20:26:04]MH_I2C_Read... [20:26:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:26:04]Read from MH i2c: E2 [20:26:04]MH_I2C_Read... [20:26:04]Read from MH i2c: E2 03 00 [20:26:04]MH_I2C_Read... [20:26:04]Read from MH i2c: E2 03 00 D1 08 00 90 00 4D [20:26:04]RAPDU: 90 00 [20:26:04]wFMCommunicate OK [20:26:04]SAM_PROTO_ClearQueue done [20:26:04]KKMCreateOFDPacket [20:26:04]OFDProtocolAddRootSTLVToBuf [20:26:04]FM_MakeSignedData [20:26:04]FM_MakeSignedData [20:26:04]SAM_PROTO_SignData [20:26:04]wFMCommunicate request_size=4 [20:26:04]MH_SAM_APDU [20:26:04]CAPDU: 80 0D 01 02 [20:26:04]Write to MH i2c: E2 08 00 D2 08 80 0D 01 02 00 00 00 00 53 [20:26:04]Write i2c OK [20:26:04]MH_I2C_Read... [20:26:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:26:04]Read from MH i2c: E2 [20:26:04]MH_I2C_Read... [20:26:04]Read from MH i2c: E2 03 00 [20:26:04]MH_I2C_Read... [20:26:04]Read from MH i2c: E2 03 00 D2 08 00 90 00 4E [20:26:04]RAPDU: 90 00 [20:26:04]wFMCommunicate OK [20:26:04]wFMCommunicate request_size=255 [20:26:04]MH_SAM_APDU [20:26: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 90 00 00 00 F4 03 04 00 DC E1 75 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 1D 97 01 00 35 04 06 00 C5 [20:26:04]Write to MH i2c: E2 02 01 D3 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 90 00 00 00 F4 03 04 00 DC E1 75 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 1D 97 01 00 35 04 06 00 C5 00 00 13 [20:26:04]Write i2c OK [20:26:04]MH_I2C_Read... [20:26:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:26:04]Read from MH i2c: E2 [20:26:04]MH_I2C_Read... [20:26:04]Read from MH i2c: E2 03 00 [20:26:04]MH_I2C_Read... [20:26:04]Read from MH i2c: E2 03 00 D3 08 00 90 00 4F [20:26:04]RAPDU: 90 00 [20:26:04]wFMCommunicate OK [20:26:04]wFMCommunicate request_size=10 [20:26:04]MH_SAM_APDU [20:26:04]CAPDU: 80 0D 02 02 05 CD FE 55 B2 3D [20:26:04]Write to MH i2c: E2 0D 00 D4 08 80 0D 02 02 05 00 CD FE 55 B2 3D 00 00 6F [20:26:04]Write i2c OK [20:26:04]MH_I2C_Read... [20:26:04]Read from MH i2c: E2 [20:26:04]MH_I2C_Read... [20:26:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:26:04]Read from MH i2c: E2 03 00 [20:26:04]MH_I2C_Read... [20:26:05]Read from MH i2c: E2 03 00 D4 08 00 90 00 50 [20:26:05]RAPDU: 90 00 [20:26:05]wFMCommunicate OK [20:26:05]wFMCommunicate request_size=4 [20:26:05]MH_SAM_APDU [20:26:05]CAPDU: 80 0D 03 02 [20:26:05]Write to MH i2c: E2 08 00 D5 08 80 0D 03 02 00 00 00 00 58 [20:26:05]Write i2c OK [20:26:05]MH_I2C_Read... [20:26:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:26:05]Read from MH i2c: E2 [20:26:05]MH_I2C_Read... [20:26:05]Read from MH i2c: E2 0B 00 [20:26:05]MH_I2C_Read... [20:26:05]Read from MH i2c: E2 0B 00 D5 08 00 D4 33 63 47 76 84 0D 94 90 00 A5 [20:26:05]RAPDU: D4 33 63 47 76 84 0D 94 90 00 [20:26:05]wFMCommunicate OK [20:26:05]SAM_PROTO_SignData done [20:26:05]FM_MakeSignedData done [20:26:05]CreateOFDProtocolMessage [20:26:05]wFMCommunicate request_size=4 [20:26:05]MH_SAM_APDU [20:26:05]CAPDU: 80 11 00 00 [20:26:05]Write to MH i2c: E2 08 00 D6 08 80 11 00 00 00 00 00 00 58 [20:26:05]Write i2c OK [20:26:05]MH_I2C_Read... [20:26:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:26:05]Read from MH i2c: E2 [20:26:05]MH_I2C_Read... [20:26:05]Read from MH i2c: E2 17 00 [20:26:05]MH_I2C_Read... [20:26:05]Read from MH i2c: E2 17 00 D6 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 AB [20:26: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:26:05]wFMCommunicate OK [20:26:05]CreateOFDProtocolMessage done [20:26:05]OFDSenderStorePacket 104221 [20:26:05]StoreOFDPacket docnum=104221 [20:26: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 2B ED 07 01 3B BB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 90 00 00 00 F4 03 04 00 DC E1 75 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 1D 97 01 00 35 04 06 00 C5 CD FE 55 B2 3D D4 33 63 47 76 84 0D 94 [20:26:05]CheckFolder [20:26:05]dirname=/storage/ofd_packets [20:26:05]CheckFolder done [20:26:05]ProducePacketName [20:26:05]name=ofd_packets/00104221 [20:26:05]NVStorageSaveData ofd_packets/00104221 [20:26:05]File name is /storage/ofd_packets/00104221 [20:26:05]Write 301 bytes [20:26:05]NVStorageSaveData done [20:26:05]OFDSenderStorePacket done [20:26:05]KKMCreateOFDPacket done [20:26:05]NVStorageSaveData kkm_last_timestamp [20:26:05]File name is /storage/kkm_last_timestamp [20:26:05]Write 4 bytes [20:26:05]NVStorageSaveData done [20:26:05]ExternCall_PrintAddStr [20:26:05]wPrintStart [20:26:05]Write to MH i2c: 01 00 00 D7 08 DF [20:26:05]Write i2c OK [20:26:05]MH_I2C_Read... [20:26:05]Read from MH i2c: 01 [20:26:05]MH_I2C_Read... [20:26:05]Read from MH i2c: 01 07 00 [20:26:05]MH_I2C_Read... [20:26:05]Read from MH i2c: 01 07 00 D7 08 00 00 00 00 00 FF 0F F4 [20:26:05]RasterBufferAndPrint [20:26:05]line Счет N : (1)673696 [20:26:05]line ИНН: 02508201610067 [20:26:05]line Контрольно-Кассовый Чек [20:26:05]line ПРОДАЖА [20:26:05]line ТРК (МРК, ГНК) : 42 [20:26:05]line Товар: 2710124130 [20:26:05]line Аи-92-К-5 [20:26:05]line 7.540 * 66.40 [20:26:05]line = 500.66 [20:26:05]line НДС 12% НСП 1% [20:26:05]line > о реализуемом товаре [20:26:05]line ОКРУГЛЕНИЕ: -0.66 [20:26:05]line ИТОГО: 500.00 [20:26:05]line Внесено: 500.00 [20:26:05]line СДАЧА: 0.00 [20:26:05]line НСП 1% : 4.43 [20:26:05]line НДС 12% : 53.17 [20:26:05]line Наличными: 500.00 [20:26:05]line Безнал.: 0.00 [20:26:05]line Место: АЗС № 120 "Партнер Нефть" [20:26:05]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [20:26:05]line СНО: Общий режим [20:26:05]line Чек 144 21.06.2024 20:26 [20:26:05]line Смена: 355 ФФД: 1.0 [20:26:05]line ЗНМ: 0300000164 [20:26:05]line РНМ: 0000000000092785 [20:26:05]line Версия ККМ: 001 [20:26:05]line ФМ: 0000000000875093 [20:26:05]line ФД: 104221 [20:26:05]line ФПД: 217488525996605 [20:26:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T202604&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104221&fm=217488525996605&tin=02508201610067®Number=0000000000092785&sum=50000 [20:26:05]OFD Sender: Processing packet 104221 [packets to send 17, broken 16] [20:26:05]ProducePacketName [20:26:05]name=ofd_packets/00104221 [20:26:05]OFD Sender: To server: pG, [20:26:05]CommunicateWithHost lk.salyk.kg:30040 [20:26:05]ConnectInit lk.salyk.kg [20:26:05]written 0, free lines is 4095 [20:26:05]Connected sock=10 [20:26:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 2B ED 07 01 3B BB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 90 00 00 00 F4 03 04 00 DC E1 75 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 1D 97 01 00 35 04 06 00 C5 CD FE 55 B2 3D D4 33 63 47 76 84 0D 94 [20:26:05]Write to MH i2c: 01 00 00 02 09 0B [20:26:05]Write i2c OK [20:26:05]MH_I2C_Read... [20:26:05]Read from MH i2c: 01 [20:26:05]MH_I2C_Read... [20:26:05]Read from MH i2c: 01 07 00 [20:26:05]MH_I2C_Read... [20:26:05]Read from MH i2c: 01 07 00 02 09 00 00 00 00 00 E1 0C FF [20:26:05]RasterBufferAndPrint [20:26:05]line [20:26:05]line [20:26:05]line [20:26:05]line [20:26:05]line [20:26:05]written 0, free lines is 3303 [20:26:05]MH_Cut [20:26:05]Write to MH i2c: D1 01 00 09 09 01 E4 [20:26:05]Write i2c OK [20:26:05]MH_I2C_Read... [20:26:05]Read from MH i2c: D1 [20:26:05]MH_I2C_Read... [20:26:05]Read from MH i2c: D1 01 00 [20:26:05]MH_I2C_Read... [20:26:05]Read from MH i2c: D1 01 00 09 09 00 E3 [20:26:05]Write to MH i2c: 01 00 00 0A 09 13 [20:26:05]Write i2c OK [20:26:05]MH_I2C_Read... [20:26: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 9F E7 47 00 32 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 1D 97 01 00 F4 03 04 00 5E 88 75 66 B6 04 01 00 00 D0 49 29 EE 11 C2 AB 7E [20:26:05]CommunicateWithHost err = 0 [20:26:05]CheckOFDResponse [20:26:05]1017 (14) - 77093643461234 [20:26:05]1041 (16) - 0000000000875093 [20:26:05]1040 (4) - 104221 [20:26:05]1012 (4) - 21.06.2024 14:04 [20:26:05]1206 (1) - 0 [20:26:05]OFD Sender: Remove packet 104221 [20:26:05]ProducePacketName [20:26:05]name=ofd_packets/00104221 [20:26:05]NVStorageDeleteData [20:26:06]OFD Sender: No OFD packet to send [20:26:06]*** Cut start [20:26:06]*** Partial cut [20:26:06]*** CUTSNS_PIN = 1 [20:26:06]*** CUTSNS_PIN = 0 [20:26:06]*** Brake cut motor [20:26:07]Read from MH i2c: 01 [20:26:07]MH_I2C_Read... [20:26:07]*** Stop cut motor [20:26:07]*** Cut end [20:26:07]Read from MH i2c: 01 07 00 [20:26:07]MH_I2C_Read... [20:26:07]Read from MH i2c: 01 07 00 0A 09 00 00 00 00 00 FF 0F 28 [20:26:07]process_action close_receipt done [20:26:07]requested_data is exist [20:26:07]produce_requested_data [20:26:07]requested_item fm.sn is exist - process it [20:26:07]wFMCommunicate request_size=4 [20:26:07]MH_SAM_APDU [20:26:07]CAPDU: 80 11 00 00 [20:26:07]Write to MH i2c: E2 08 00 0B 09 80 11 00 00 00 00 00 00 8E [20:26:07]Write i2c OK [20:26:07]MH_I2C_Read... [20:26:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:26:07]Read from MH i2c: E2 [20:26:07]MH_I2C_Read... [20:26:07]Read from MH i2c: E2 17 00 [20:26:07]MH_I2C_Read... [20:26:07]Read from MH i2c: E2 17 00 0B 09 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:26: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:26:07]wFMCommunicate OK [20:26:07]requested_item fd.num is exist - process it [20:26:07]SAM_PROTO_GetFieldsCounters [20:26:07]wFMCommunicate request_size=4 [20:26:07]MH_SAM_APDU [20:26:07]CAPDU: 80 13 00 00 [20:26:07]Write to MH i2c: E2 08 00 0C 09 80 13 00 00 00 00 00 00 91 [20:26:07]Write i2c OK [20:26:07]MH_I2C_Read... [20:26:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:26:07]Read from MH i2c: E2 [20:26:07]MH_I2C_Read... [20:26:07]Read from MH i2c: E2 62 00 [20:26:07]MH_I2C_Read... [20:26:07]Read from MH i2c: E2 62 00 0C 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 1D 97 01 00 0E 04 04 00 63 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 81 [20:26: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 1D 97 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 90 00 00 00 5E 04 04 00 90 00 00 00 57 04 04 00 91 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:26:07]wFMCommunicate OK [20:26:07]SAM_PROTO_GetFieldsCounters done [20:26:07]requested_item shift.num is exist - process it [20:26:07]requested_item shift.opened is exist - process it [20:26:07]req_shift_opened [20:26:07]FM_GetShiftState [20:26:07]SAM_PROTO_GetShiftState [20:26:07]wFMCommunicate request_size=4 [20:26:07]MH_SAM_APDU [20:26:07]CAPDU: 80 13 01 00 [20:26:07]Write to MH i2c: E2 08 00 0D 09 80 13 01 00 00 00 00 00 93 [20:26:07]Write i2c OK [20:26:07]MH_I2C_Read... [20:26:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:26:07]Read from MH i2c: E2 [20:26:07]MH_I2C_Read... [20:26:07]Read from MH i2c: E2 0E 00 [20:26:07]MH_I2C_Read... [20:26:07]Read from MH i2c: E2 0E 00 0D 09 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 A6 [20:26:07]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [20:26:07]wFMCommunicate OK [20:26:07]SAM_PROTO_GetShiftState done [20:26:07]FM_GetShiftState done [20:26:07]req_shift_opened done [20:26:07]requested_item shift.open_date is exist - process it [20:26:07]req_shift_open_date [20:26:07]req_shift_open_date done [20:26:07]produce_requested_data done [20:26:07]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104221,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [20:26:07]process_action_free close_receipt [20:26:07]json_value_free [20:26:07]json_value_free done [20:26:07]process_json_proto returns [20:26:07]Send response to host [20:26:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104221,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [20:26:07]free response buf [20:26:07]execute_script done [20:26:07]execute_script returns [20:26:07]free content buf [20:26:07]Sock 7.Close socket [20:26:07]Sock 7.Thread stoped [20:26:11]OFD Sender: No OFD packet to send [20:26:16]OFD Sender: No OFD packet to send [20:26:21]OFD Sender: No OFD packet to send [20:26:26]OFD Sender: No OFD packet to send [20:26:31]OFD Sender: No OFD packet to send [20:26:36]OFD Sender: No OFD packet to send [20:26:41]OFD Sender: No OFD packet to send [20:26:46]OFD Sender: No OFD packet to send [20:26:51]OFD Sender: No OFD packet to send [20:26:56]OFD Sender: No OFD packet to send [20:27:01]OFD Sender: No OFD packet to send [20:27:06]OFD Sender: No OFD packet to send [20:27:11]OFD Sender: No OFD packet to send [20:27:16]OFD Sender: No OFD packet to send [20:27:21]OFD Sender: No OFD packet to send [20:27:26]OFD Sender: No OFD packet to send [20:27:28]accept exits with 9 [20:27:28]New connection [20:27:28]New thread 3067473252 created [20:27:28]Thread 3067616612 joined [20:27:28]Waiting for new connection... [20:27:28] Sock 9.Parse request [20:27:28]Sock 9.Check first char [20:27:28]Sock 9.First char is OK [20:27:28]request: POST /json_proto HTTP/1.0 [20:27:28]Method: POST [20:27:28]URL: /json_proto [20:27:28]Method is POST - this is cgi request [20:27:28]url: /json_proto [20:27:28]query_string will be loaded in cgi processing [20:27:28]execute_cgi json_proto POST (null) [20:27:28]execute_cgi path=json_proto method=POST [20:27:28]POST find Content-Length [20:27:28]Host: 172.17.38.133:8080 [20:27:28]Content-Length: 682 [20:27:28]Content-Type: application/json [20:27:28] [20:27:28]POST finish read [20:27:28]Found Content-Length = 682 [20:27:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673697", "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" ] } } [20:27:28]execute_script... [20:27: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)673697", "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" ] } } [20:27:28]POST & json_proto [20:27:28]process_json_proto [20:27:28]json parsed OK: [20:27:28]protocol is kg_v1.0 [20:27:28]action value=close_receipt [20:27:28]process_action close_receipt [20:27:28]cmd_close_receipt [20:27:28]MH_GetDate [20:27:28]Write to MH i2c: F0 00 00 0E 09 06 [20:27:28]Write i2c OK [20:27:28]MH_I2C_Read... [20:27:28]Read from MH i2c: F0 [20:27:28]MH_I2C_Read... [20:27:28]Read from MH i2c: F0 09 00 [20:27:28]MH_I2C_Read... [20:27:28]Read from MH i2c: F0 09 00 0E 09 00 31 E2 75 66 BD 8F 7C 64 29 [20:27:28]GetLastDocTimeStamp 1719001564 [20:27:28]current date 1719001649 [20:27:28]FM_GetShiftState [20:27:28]SAM_PROTO_GetShiftState [20:27:28]wFMCommunicate request_size=4 [20:27:28]MH_SAM_APDU [20:27:28]CAPDU: 80 13 01 00 [20:27:28]Write to MH i2c: E2 08 00 0F 09 80 13 01 00 00 00 00 00 95 [20:27:28]Write i2c OK [20:27:28]MH_I2C_Read... [20:27:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:27:28]Read from MH i2c: E2 [20:27:28]MH_I2C_Read... [20:27:28]Read from MH i2c: E2 0E 00 [20:27:28]MH_I2C_Read... [20:27:28]Read from MH i2c: E2 0E 00 0F 09 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 A8 [20:27:28]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [20:27:28]wFMCommunicate OK [20:27:28]SAM_PROTO_GetShiftState done [20:27:28]FM_GetShiftState done [20:27:28]opened in 1718929509 [20:27:28]opened+sec_in_day 1719015909 [20:27:28]quantity*price = 100064 [20:27:28]sum+1 = 100066 [20:27: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 СНО: Общий режим Чек 145 21.06.2024 20:27 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104222 ФПД: 176187956862917 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T202729&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104222&fm=176187956862917&tin=02508201610067®Number=0000000000092785&sum=100000 [20:27:29]StoreToDocumentArchive [20:27:29]shift 355 fd 104222 [20:27:29]save to /storage/0355/doc_00104222 [20:27:29]save last doc name /storage/0355/doc_00104222 to /storage/kkm_last_doc_name [20:27:29]save OK [20:27:29]Clear old archive folders... [20:27:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:27:29]tlvbuf is 006B9F70 [20:27:29]SAM_PROTO_ClearQueue [20:27:29]wFMCommunicate request_size=4 [20:27:29]MH_SAM_APDU [20:27:29]CAPDU: 80 09 00 00 [20:27:29]Write to MH i2c: E2 08 00 1C 09 80 09 00 00 00 00 00 00 97 [20:27:29]Write i2c OK [20:27:29]MH_I2C_Read... [20:27:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:27:29]Read from MH i2c: E2 [20:27:29]MH_I2C_Read... [20:27:29]Read from MH i2c: E2 03 00 [20:27:29]MH_I2C_Read... [20:27:29]Read from MH i2c: E2 03 00 1C 09 00 90 00 99 [20:27:29]RAPDU: 90 00 [20:27:29]wFMCommunicate OK [20:27:29]SAM_PROTO_ClearQueue done [20:27:29]KKMCreateOFDPacket [20:27:29]OFDProtocolAddRootSTLVToBuf [20:27:29]FM_MakeSignedData [20:27:29]FM_MakeSignedData [20:27:29]SAM_PROTO_SignData [20:27:29]wFMCommunicate request_size=4 [20:27:29]MH_SAM_APDU [20:27:29]CAPDU: 80 0D 01 02 [20:27:29]Write to MH i2c: E2 08 00 1D 09 80 0D 01 02 00 00 00 00 9F [20:27:29]Write i2c OK [20:27:29]MH_I2C_Read... [20:27:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:27:29]Read from MH i2c: E2 [20:27:29]MH_I2C_Read... [20:27:29]Read from MH i2c: E2 03 00 [20:27:29]MH_I2C_Read... [20:27:29]Read from MH i2c: E2 03 00 1D 09 00 90 00 9A [20:27:29]RAPDU: 90 00 [20:27:29]wFMCommunicate OK [20:27:29]wFMCommunicate request_size=255 [20:27:29]MH_SAM_APDU [20:27: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 91 00 00 00 F4 03 04 00 31 E2 75 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 1E 97 01 00 35 04 06 00 A0 [20:27:29]Write to MH i2c: E2 02 01 1E 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 91 00 00 00 F4 03 04 00 31 E2 75 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 1E 97 01 00 35 04 06 00 A0 00 00 E2 [20:27:29]Write i2c OK [20:27:29]MH_I2C_Read... [20:27:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:27:30]Read from MH i2c: E2 [20:27:30]MH_I2C_Read... [20:27:30]Read from MH i2c: E2 03 00 [20:27:30]MH_I2C_Read... [20:27:30]Read from MH i2c: E2 03 00 1E 09 00 90 00 9B [20:27:30]RAPDU: 90 00 [20:27:30]wFMCommunicate OK [20:27:30]wFMCommunicate request_size=10 [20:27:30]MH_SAM_APDU [20:27:30]CAPDU: 80 0D 02 02 05 3D F4 95 1F C5 [20:27:30]Write to MH i2c: E2 0D 00 1F 09 80 0D 02 02 05 00 3D F4 95 1F C5 00 00 56 [20:27:30]Write i2c OK [20:27:30]MH_I2C_Read... [20:27:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:27:30]Read from MH i2c: E2 [20:27:30]MH_I2C_Read... [20:27:30]Read from MH i2c: E2 03 00 [20:27:30]MH_I2C_Read... [20:27:30]Read from MH i2c: E2 03 00 1F 09 00 90 00 9C [20:27:30]RAPDU: 90 00 [20:27:30]wFMCommunicate OK [20:27:30]wFMCommunicate request_size=4 [20:27:30]MH_SAM_APDU [20:27:30]CAPDU: 80 0D 03 02 [20:27:30]Write to MH i2c: E2 08 00 20 09 80 0D 03 02 00 00 00 00 A4 [20:27:30]Write i2c OK [20:27:30]MH_I2C_Read... [20:27:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:27:30]Read from MH i2c: E2 [20:27:30]MH_I2C_Read... [20:27:30]Read from MH i2c: E2 0B 00 [20:27:30]MH_I2C_Read... [20:27:30]Read from MH i2c: E2 0B 00 20 09 00 33 9E 1E 4A B2 07 92 80 90 00 A9 [20:27:30]RAPDU: 33 9E 1E 4A B2 07 92 80 90 00 [20:27:30]wFMCommunicate OK [20:27:30]SAM_PROTO_SignData done [20:27:30]FM_MakeSignedData done [20:27:30]CreateOFDProtocolMessage [20:27:30]wFMCommunicate request_size=4 [20:27:30]MH_SAM_APDU [20:27:30]CAPDU: 80 11 00 00 [20:27:30]Write to MH i2c: E2 08 00 21 09 80 11 00 00 00 00 00 00 A4 [20:27:30]Write i2c OK [20:27:30]MH_I2C_Read... [20:27:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:27:30]Read from MH i2c: E2 [20:27:30]MH_I2C_Read... [20:27:30]Read from MH i2c: E2 17 00 [20:27:30]MH_I2C_Read... [20:27:30]Read from MH i2c: E2 17 00 21 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 F7 [20:27: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:27:30]wFMCommunicate OK [20:27:30]CreateOFDProtocolMessage done [20:27:30]OFDSenderStorePacket 104222 [20:27:30]StoreOFDPacket docnum=104222 [20:27: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 C2 E9 07 01 45 04 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 91 00 00 00 F4 03 04 00 31 E2 75 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 1E 97 01 00 35 04 06 00 A0 3D F4 95 1F C5 33 9E 1E 4A B2 07 92 80 [20:27:30]CheckFolder [20:27:30]dirname=/storage/ofd_packets [20:27:30]CheckFolder done [20:27:30]ProducePacketName [20:27:30]name=ofd_packets/00104222 [20:27:30]NVStorageSaveData ofd_packets/00104222 [20:27:30]File name is /storage/ofd_packets/00104222 [20:27:30]Write 301 bytes [20:27:30]NVStorageSaveData done [20:27:30]OFDSenderStorePacket done [20:27:30]KKMCreateOFDPacket done [20:27:30]NVStorageSaveData kkm_last_timestamp [20:27:30]File name is /storage/kkm_last_timestamp [20:27:30]Write 4 bytes [20:27:30]NVStorageSaveData done [20:27:30]ExternCall_PrintAddStr [20:27:30]wPrintStart [20:27:30]Write to MH i2c: 01 00 00 22 09 2B [20:27:30]Write i2c OK [20:27:30]MH_I2C_Read... [20:27:30]Read from MH i2c: 01 [20:27:30]MH_I2C_Read... [20:27:30]Read from MH i2c: 01 07 00 [20:27:30]MH_I2C_Read... [20:27:30]Read from MH i2c: 01 07 00 22 09 00 00 00 00 00 FF 0F 40 [20:27:30]RasterBufferAndPrint [20:27:30]line Счет N : (1)673697 [20:27:30]line ИНН: 02508201610067 [20:27:30]line Контрольно-Кассовый Чек [20:27:30]line ПРОДАЖА [20:27:30]line ТРК (МРК, ГНК) : 32 [20:27:30]line Товар: 2710124130 [20:27:30]line Аи-92-К-5 [20:27:30]line 15.070 * 66.40 [20:27:30]line = 1000.65 [20:27:30]line НДС 12% НСП 1% [20:27:30]line > о реализуемом товаре [20:27:30]line ОКРУГЛЕНИЕ: -0.65 [20:27:30]line ИТОГО: 1000.00 [20:27:30]line Внесено: 1000.00 [20:27:30]line СДАЧА: 0.00 [20:27:30]line НСП 1% : 8.85 [20:27:30]line НДС 12% : 106.26 [20:27:30]line Наличными: 1000.00 [20:27:30]line Безнал.: 0.00 [20:27:30]line Место: АЗС № 120 "Партнер Нефть" [20:27:30]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [20:27:30]line СНО: Общий режим [20:27:30]line Чек 145 21.06.2024 20:27 [20:27:30]line Смена: 355 ФФД: 1.0 [20:27:30]line ЗНМ: 0300000164 [20:27:30]line РНМ: 0000000000092785 [20:27:30]line Версия ККМ: 001 [20:27:30]line ФМ: 0000000000875093 [20:27:30]line ФД: 104222 [20:27:30]line ФПД: 176187956862917 [20:27:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T202729&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104222&fm=176187956862917&tin=02508201610067®Number=0000000000092785&sum=100000 [20:27:30]OFD Sender: Processing packet 104222 [packets to send 17, broken 16] [20:27:30]ProducePacketName [20:27:30]name=ofd_packets/00104222 [20:27:30]OFD Sender: To server: pG, [20:27:30]CommunicateWithHost lk.salyk.kg:30040 [20:27:30]ConnectInit lk.salyk.kg [20:27:30]written 0, free lines is 4095 [20:27:30]Connected sock=11 [20:27: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 C2 E9 07 01 45 04 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 91 00 00 00 F4 03 04 00 31 E2 75 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 1E 97 01 00 35 04 06 00 A0 3D F4 95 1F C5 33 9E 1E 4A B2 07 92 80 [20:27:30]Write to MH i2c: 01 00 00 4D 09 56 [20:27:30]Write i2c OK [20:27:30]MH_I2C_Read... [20:27:30]Read from MH i2c: 01 [20:27:30]MH_I2C_Read... [20:27:30]Read from MH i2c: 01 07 00 [20:27:30]MH_I2C_Read... [20:27:30]Read from MH i2c: 01 07 00 4D 09 00 00 00 00 00 DD 0C 46 [20:27:30]RasterBufferAndPrint [20:27:30]line [20:27:30]line [20:27:30]line [20:27:30]line [20:27:30]line [20:27:30]written 0, free lines is 3297 [20:27:30]MH_Cut [20:27:30]Write to MH i2c: D1 01 00 54 09 01 2F [20:27:30]Write i2c OK [20:27:30]MH_I2C_Read... [20:27:30]Read from MH i2c: D1 [20:27:30]MH_I2C_Read... [20:27:30]Read from MH i2c: D1 01 00 [20:27:30]MH_I2C_Read... [20:27:30]Read from MH i2c: D1 01 00 54 09 00 2E [20:27:30]Write to MH i2c: 01 00 00 55 09 5E [20:27:30]Write i2c OK [20:27:30]MH_I2C_Read... [20:27: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 28 DB 47 00 3A 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 1E 97 01 00 F4 03 04 00 B3 88 75 66 B6 04 01 00 00 1E F2 4A A6 82 BF E5 42 [20:27:31]CommunicateWithHost err = 0 [20:27:31]CheckOFDResponse [20:27:31]1017 (14) - 77093643461234 [20:27:31]1041 (16) - 0000000000875093 [20:27:31]1040 (4) - 104222 [20:27:31]1012 (4) - 21.06.2024 14:05 [20:27:31]1206 (1) - 0 [20:27:31]OFD Sender: Remove packet 104222 [20:27:31]ProducePacketName [20:27:31]name=ofd_packets/00104222 [20:27:31]NVStorageDeleteData [20:27:31]OFD Sender: No OFD packet to send [20:27:31]*** Cut start [20:27:31]*** Partial cut [20:27:31]*** CUTSNS_PIN = 1 [20:27:31]*** CUTSNS_PIN = 0 [20:27:31]*** Brake cut motor [20:27:32]Read from MH i2c: 01 [20:27:32]MH_I2C_Read... [20:27:32]*** Stop cut motor [20:27:32]*** Cut end [20:27:32]Read from MH i2c: 01 07 00 [20:27:32]MH_I2C_Read... [20:27:32]Read from MH i2c: 01 07 00 55 09 00 00 00 00 00 FF 0F 73 [20:27:32]process_action close_receipt done [20:27:32]requested_data is exist [20:27:32]produce_requested_data [20:27:32]requested_item fm.sn is exist - process it [20:27:32]wFMCommunicate request_size=4 [20:27:32]MH_SAM_APDU [20:27:32]CAPDU: 80 11 00 00 [20:27:32]Write to MH i2c: E2 08 00 56 09 80 11 00 00 00 00 00 00 D9 [20:27:32]Write i2c OK [20:27:32]MH_I2C_Read... [20:27:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:27:32]Read from MH i2c: E2 [20:27:32]MH_I2C_Read... [20:27:32]Read from MH i2c: E2 17 00 [20:27:32]MH_I2C_Read... [20:27:32]Read from MH i2c: E2 17 00 56 09 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:27: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:27:32]wFMCommunicate OK [20:27:32]requested_item fd.num is exist - process it [20:27:32]SAM_PROTO_GetFieldsCounters [20:27:32]wFMCommunicate request_size=4 [20:27:32]MH_SAM_APDU [20:27:32]CAPDU: 80 13 00 00 [20:27:32]Write to MH i2c: E2 08 00 57 09 80 13 00 00 00 00 00 00 DC [20:27:32]Write i2c OK [20:27:32]MH_I2C_Read... [20:27:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:27:32]Read from MH i2c: E2 [20:27:32]MH_I2C_Read... [20:27:32]Read from MH i2c: E2 62 00 [20:27:32]MH_I2C_Read... [20:27:32]Read from MH i2c: E2 62 00 57 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 1E 97 01 00 0E 04 04 00 63 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 D0 [20:27: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 1E 97 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 91 00 00 00 5E 04 04 00 91 00 00 00 57 04 04 00 92 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:27:32]wFMCommunicate OK [20:27:32]SAM_PROTO_GetFieldsCounters done [20:27:32]requested_item shift.num is exist - process it [20:27:32]requested_item shift.opened is exist - process it [20:27:32]req_shift_opened [20:27:32]FM_GetShiftState [20:27:32]SAM_PROTO_GetShiftState [20:27:32]wFMCommunicate request_size=4 [20:27:32]MH_SAM_APDU [20:27:32]CAPDU: 80 13 01 00 [20:27:32]Write to MH i2c: E2 08 00 58 09 80 13 01 00 00 00 00 00 DE [20:27:32]Write i2c OK [20:27:32]MH_I2C_Read... [20:27:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:27:32]Read from MH i2c: E2 [20:27:32]MH_I2C_Read... [20:27:32]Read from MH i2c: E2 0E 00 [20:27:32]MH_I2C_Read... [20:27:32]Read from MH i2c: E2 0E 00 58 09 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 F1 [20:27:32]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [20:27:32]wFMCommunicate OK [20:27:32]SAM_PROTO_GetShiftState done [20:27:32]FM_GetShiftState done [20:27:32]req_shift_opened done [20:27:32]requested_item shift.open_date is exist - process it [20:27:32]req_shift_open_date [20:27:32]req_shift_open_date done [20:27:32]produce_requested_data done [20:27:32]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104222,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [20:27:32]process_action_free close_receipt [20:27:32]json_value_free [20:27:32]json_value_free done [20:27:32]process_json_proto returns [20:27:32]Send response to host [20:27:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104222,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [20:27:32]free response buf [20:27:32]execute_script done [20:27:32]execute_script returns [20:27:32]free content buf [20:27:32]Sock 9.Close socket [20:27:32]Sock 9.Thread stoped [20:27:36]OFD Sender: No OFD packet to send [20:27:41]OFD Sender: No OFD packet to send [20:27:46]OFD Sender: No OFD packet to send [20:27:51]OFD Sender: No OFD packet to send [20:27:56]OFD Sender: No OFD packet to send [20:28:01]OFD Sender: No OFD packet to send [20:28:06]OFD Sender: No OFD packet to send [20:28:11]OFD Sender: No OFD packet to send [20:28:16]OFD Sender: No OFD packet to send [20:28:21]OFD Sender: No OFD packet to send [20:28:26]OFD Sender: No OFD packet to send [20:28:31]OFD Sender: No OFD packet to send [20:28:36]OFD Sender: No OFD packet to send [20:28:41]OFD Sender: No OFD packet to send [20:28:46]OFD Sender: No OFD packet to send [20:28:51]OFD Sender: No OFD packet to send [20:28:56]OFD Sender: No OFD packet to send [20:29:01]OFD Sender: No OFD packet to send [20:29:06]OFD Sender: No OFD packet to send [20:29:11]OFD Sender: No OFD packet to send [20:29:16]OFD Sender: No OFD packet to send [20:29:21]OFD Sender: No OFD packet to send [20:29:26]OFD Sender: No OFD packet to send [20:29:31]OFD Sender: No OFD packet to send [20:29:36]OFD Sender: No OFD packet to send [20:29:41]OFD Sender: No OFD packet to send [20:29:46]OFD Sender: No OFD packet to send [20:29:51]OFD Sender: No OFD packet to send [20:29:56]OFD Sender: No OFD packet to send [20:30:01]OFD Sender: No OFD packet to send [20:30:06]OFD Sender: No OFD packet to send [20:30:11]OFD Sender: No OFD packet to send [20:30:16]OFD Sender: No OFD packet to send [20:30:21]OFD Sender: No OFD packet to send [20:30:26]OFD Sender: No OFD packet to send [20:30:31]OFD Sender: No OFD packet to send [20:30:33]accept exits with 7 [20:30:33]New connection [20:30:33]New thread 3067616612 created [20:30:33]Thread 3067473252 joined [20:30:33]Waiting for new connection... [20:30:33] Sock 7.Parse request [20:30:33]Sock 7.Check first char [20:30:33]Sock 7.First char is OK [20:30:33]request: POST /json_proto HTTP/1.0 [20:30:33]Method: POST [20:30:33]URL: /json_proto [20:30:33]Method is POST - this is cgi request [20:30:33]url: /json_proto [20:30:33]query_string will be loaded in cgi processing [20:30:33]execute_cgi json_proto POST (null) [20:30:33]execute_cgi path=json_proto method=POST [20:30:33]POST find Content-Length [20:30:33]Host: 172.17.38.133:8080 [20:30:33]Content-Length: 677 [20:30:33]Content-Type: application/json [20:30:33] [20:30:33]POST finish read [20:30:33]Found Content-Length = 677 [20:30:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673699", "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.890, "sum" : 435.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 435.00, "total" : 435.00, "payments": [ { "type": 0, "sum" : 435.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:30:33]execute_script... [20:30: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)673699", "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.890, "sum" : 435.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 435.00, "total" : 435.00, "payments": [ { "type": 0, "sum" : 435.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:30:33]POST & json_proto [20:30:33]process_json_proto [20:30:33]json parsed OK: [20:30:33]protocol is kg_v1.0 [20:30:33]action value=close_receipt [20:30:33]process_action close_receipt [20:30:33]cmd_close_receipt [20:30:33]MH_GetDate [20:30:33]Write to MH i2c: F0 00 00 59 09 51 [20:30:33]Write i2c OK [20:30:33]MH_I2C_Read... [20:30:33]Read from MH i2c: F0 [20:30:33]MH_I2C_Read... [20:30:33]Read from MH i2c: F0 09 00 [20:30:33]MH_I2C_Read... [20:30:33]Read from MH i2c: F0 09 00 59 09 00 EB E2 75 66 BD 8F 7C 64 2E [20:30:33]GetLastDocTimeStamp 1719001649 [20:30:33]current date 1719001835 [20:30:33]FM_GetShiftState [20:30:33]SAM_PROTO_GetShiftState [20:30:33]wFMCommunicate request_size=4 [20:30:33]MH_SAM_APDU [20:30:33]CAPDU: 80 13 01 00 [20:30:33]Write to MH i2c: E2 08 00 5A 09 80 13 01 00 00 00 00 00 E0 [20:30:33]Write i2c OK [20:30:33]MH_I2C_Read... [20:30:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:30:33]Read from MH i2c: E2 [20:30:33]MH_I2C_Read... [20:30:33]Read from MH i2c: E2 0E 00 [20:30:33]MH_I2C_Read... [20:30:33]Read from MH i2c: E2 0E 00 5A 09 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 F3 [20:30:33]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [20:30:33]wFMCommunicate OK [20:30:33]SAM_PROTO_GetShiftState done [20:30:33]FM_GetShiftState done [20:30:33]opened in 1718929509 [20:30:33]opened+sec_in_day 1719015909 [20:30:33]quantity*price = 43527 [20:30:33]sum+1 = 43528 [20:30:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.27 ИТОГО: 435.00 Внесено: 435.00 СДАЧА: 0.00 НСП 1% : 3.85 НДС 12% : 46.22 Наличными: 435.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 146 21.06.2024 20:30 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104223 ФПД: 185179259806105 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T203035&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104223&fm=185179259806105&tin=02508201610067®Number=0000000000092785&sum=43500 [20:30:35]StoreToDocumentArchive [20:30:35]shift 355 fd 104223 [20:30:35]save to /storage/0355/doc_00104223 [20:30:35]save last doc name /storage/0355/doc_00104223 to /storage/kkm_last_doc_name [20:30:35]save OK [20:30:35]Clear old archive folders... [20:30:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:30:35]tlvbuf is 006A25A0 [20:30:35]SAM_PROTO_ClearQueue [20:30:35]wFMCommunicate request_size=4 [20:30:35]MH_SAM_APDU [20:30:35]CAPDU: 80 09 00 00 [20:30:35]Write to MH i2c: E2 08 00 67 09 80 09 00 00 00 00 00 00 E2 [20:30:35]Write i2c OK [20:30:35]MH_I2C_Read... [20:30:35]Read from MH i2c: E2 [20:30:35]MH_I2C_Read... [20:30:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:30:35]Read from MH i2c: E2 03 00 [20:30:35]MH_I2C_Read... [20:30:35]Read from MH i2c: E2 03 00 67 09 00 90 00 E4 [20:30:35]RAPDU: 90 00 [20:30:35]wFMCommunicate OK [20:30:35]SAM_PROTO_ClearQueue done [20:30:35]KKMCreateOFDPacket [20:30:35]OFDProtocolAddRootSTLVToBuf [20:30:35]FM_MakeSignedData [20:30:35]FM_MakeSignedData [20:30:35]SAM_PROTO_SignData [20:30:35]wFMCommunicate request_size=4 [20:30:35]MH_SAM_APDU [20:30:35]CAPDU: 80 0D 01 02 [20:30:35]Write to MH i2c: E2 08 00 68 09 80 0D 01 02 00 00 00 00 EA [20:30:35]Write i2c OK [20:30:35]MH_I2C_Read... [20:30:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:30:35]Read from MH i2c: E2 [20:30:35]MH_I2C_Read... [20:30:35]Read from MH i2c: E2 03 00 [20:30:35]MH_I2C_Read... [20:30:35]Read from MH i2c: E2 03 00 68 09 00 90 00 E5 [20:30:35]RAPDU: 90 00 [20:30:35]wFMCommunicate OK [20:30:35]wFMCommunicate request_size=255 [20:30:35]MH_SAM_APDU [20:30: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 02 17 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 07 AA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC A9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 81 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 12 00 00 00 00 07 04 06 00 EC A9 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 EB E2 75 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 1F 97 01 00 35 04 06 00 A8 [20:30:35]Write to MH i2c: E2 02 01 69 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 02 17 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 07 AA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC A9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 81 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 12 00 00 00 00 07 04 06 00 EC A9 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 EB E2 75 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 1F 97 01 00 35 04 06 00 A8 00 00 8B [20:30:35]Write i2c OK [20:30:35]MH_I2C_Read... [20:30:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:30:35]Read from MH i2c: E2 [20:30:35]MH_I2C_Read... [20:30:35]Read from MH i2c: E2 03 00 [20:30:35]MH_I2C_Read... [20:30:35]Read from MH i2c: E2 03 00 69 09 00 90 00 E6 [20:30:35]RAPDU: 90 00 [20:30:35]wFMCommunicate OK [20:30:35]wFMCommunicate request_size=10 [20:30:35]MH_SAM_APDU [20:30:35]CAPDU: 80 0D 02 02 05 6B 68 00 21 99 [20:30:35]Write to MH i2c: E2 0D 00 6A 09 80 0D 02 02 05 00 6B 68 00 21 99 00 00 84 [20:30:35]Write i2c OK [20:30:35]MH_I2C_Read... [20:30:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:30:35]Read from MH i2c: E2 [20:30:35]MH_I2C_Read... [20:30:35]Read from MH i2c: E2 03 00 [20:30:35]MH_I2C_Read... [20:30:35]Read from MH i2c: E2 03 00 6A 09 00 90 00 E7 [20:30:35]RAPDU: 90 00 [20:30:35]wFMCommunicate OK [20:30:35]wFMCommunicate request_size=4 [20:30:35]MH_SAM_APDU [20:30:35]CAPDU: 80 0D 03 02 [20:30:35]Write to MH i2c: E2 08 00 6B 09 80 0D 03 02 00 00 00 00 EF [20:30:35]Write i2c OK [20:30:35]MH_I2C_Read... [20:30:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:30:35]Read from MH i2c: E2 [20:30:35]MH_I2C_Read... [20:30:35]Read from MH i2c: E2 0B 00 [20:30:35]MH_I2C_Read... [20:30:35]Read from MH i2c: E2 0B 00 6B 09 00 B8 58 7E D8 8E 61 6F 33 90 00 E7 [20:30:35]RAPDU: B8 58 7E D8 8E 61 6F 33 90 00 [20:30:35]wFMCommunicate OK [20:30:35]SAM_PROTO_SignData done [20:30:35]FM_MakeSignedData done [20:30:35]CreateOFDProtocolMessage [20:30:35]wFMCommunicate request_size=4 [20:30:35]MH_SAM_APDU [20:30:35]CAPDU: 80 11 00 00 [20:30:35]Write to MH i2c: E2 08 00 6C 09 80 11 00 00 00 00 00 00 EF [20:30:35]Write i2c OK [20:30:35]MH_I2C_Read... [20:30:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:30:35]Read from MH i2c: E2 [20:30:35]MH_I2C_Read... [20:30:35]Read from MH i2c: E2 17 00 [20:30:35]MH_I2C_Read... [20:30:35]Read from MH i2c: E2 17 00 6C 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 42 [20:30: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:30:35]wFMCommunicate OK [20:30:35]CreateOFDProtocolMessage done [20:30:35]OFDSenderStorePacket 104223 [20:30:35]StoreOFDPacket docnum=104223 [20:30: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 40 AE 07 01 54 35 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 02 17 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 07 AA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC A9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 81 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 12 00 00 00 00 07 04 06 00 EC A9 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 EB E2 75 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 1F 97 01 00 35 04 06 00 A8 6B 68 00 21 99 B8 58 7E D8 8E 61 6F 33 [20:30:35]CheckFolder [20:30:35]dirname=/storage/ofd_packets [20:30:35]CheckFolder done [20:30:35]ProducePacketName [20:30:35]name=ofd_packets/00104223 [20:30:35]NVStorageSaveData ofd_packets/00104223 [20:30:35]File name is /storage/ofd_packets/00104223 [20:30:35]Write 301 bytes [20:30:35]NVStorageSaveData done [20:30:35]OFDSenderStorePacket done [20:30:35]KKMCreateOFDPacket done [20:30:35]NVStorageSaveData kkm_last_timestamp [20:30:35]File name is /storage/kkm_last_timestamp [20:30:35]Write 4 bytes [20:30:35]NVStorageSaveData done [20:30:35]ExternCall_PrintAddStr [20:30:35]wPrintStart [20:30:35]Write to MH i2c: 01 00 00 6D 09 76 [20:30:35]Write i2c OK [20:30:35]MH_I2C_Read... [20:30:35]Read from MH i2c: 01 [20:30:35]MH_I2C_Read... [20:30:35]Read from MH i2c: 01 07 00 [20:30:35]MH_I2C_Read... [20:30:35]Read from MH i2c: 01 07 00 6D 09 00 00 00 00 00 FF 0F 8B [20:30:35]RasterBufferAndPrint [20:30:35]line Счет N : (1)673699 [20:30:35]line ИНН: 02508201610067 [20:30:35]line Контрольно-Кассовый Чек [20:30:35]line ПРОДАЖА [20:30:35]line ТРК (МРК, ГНК) : 41 [20:30:35]line Товар: 2710124500 [20:30:35]line Аи-95-К-5 [20:30:35]line 5.890 * 73.90 [20:30:35]line = 435.27 [20:30:35]line НДС 12% НСП 1% [20:30:35]line > о реализуемом товаре [20:30:35]line ОКРУГЛЕНИЕ: -0.27 [20:30:35]line ИТОГО: 435.00 [20:30:35]line Внесено: 435.00 [20:30:35]line СДАЧА: 0.00 [20:30:35]line НСП 1% : 3.85 [20:30:35]line НДС 12% : 46.22 [20:30:35]line Наличными: 435.00 [20:30:35]line Безнал.: 0.00 [20:30:35]line Место: АЗС № 120 "Партнер Нефть" [20:30:35]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [20:30:35]line СНО: Общий режим [20:30:35]line Чек 146 21.06.2024 20:30 [20:30:35]line Смена: 355 ФФД: 1.0 [20:30:35]line ЗНМ: 0300000164 [20:30:35]line РНМ: 0000000000092785 [20:30:35]line Версия ККМ: 001 [20:30:35]line ФМ: 0000000000875093 [20:30:35]line ФД: 104223 [20:30:35]line ФПД: 185179259806105 [20:30:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T203035&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104223&fm=185179259806105&tin=02508201610067®Number=0000000000092785&sum=43500 [20:30:35]OFD Sender: Processing packet 104223 [packets to send 17, broken 16] [20:30:35]ProducePacketName [20:30:35]name=ofd_packets/00104223 [20:30:35]OFD Sender: To server: pG, [20:30:35]CommunicateWithHost lk.salyk.kg:30040 [20:30:35]ConnectInit lk.salyk.kg [20:30:35]written 0, free lines is 4095 [20:30:36]Connected sock=10 [20:30: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 40 AE 07 01 54 35 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 02 17 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 07 AA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC A9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 81 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 12 00 00 00 00 07 04 06 00 EC A9 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 EB E2 75 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 1F 97 01 00 35 04 06 00 A8 6B 68 00 21 99 B8 58 7E D8 8E 61 6F 33 [20:30: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 C5 A0 47 00 23 A6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 1F 97 01 00 F4 03 04 00 6C 89 75 66 B6 04 01 00 00 A8 F4 BC B3 D9 10 97 49 [20:30:36]CommunicateWithHost err = 0 [20:30:36]CheckOFDResponse [20:30:36]1017 (14) - 77093643461234 [20:30:36]1041 (16) - 0000000000875093 [20:30:36]1040 (4) - 104223 [20:30:36]1012 (4) - 21.06.2024 14:08 [20:30:36]1206 (1) - 0 [20:30:36]OFD Sender: Remove packet 104223 [20:30:36]ProducePacketName [20:30:36]name=ofd_packets/00104223 [20:30:36]NVStorageDeleteData [20:30:36]Write to MH i2c: 01 00 00 98 09 A1 [20:30:36]Write i2c OK [20:30:36]MH_I2C_Read... [20:30:36]Read from MH i2c: 01 [20:30:36]MH_I2C_Read... [20:30:36]Read from MH i2c: 01 07 00 [20:30:36]MH_I2C_Read... [20:30:36]Read from MH i2c: 01 07 00 98 09 00 00 00 00 00 E8 0C 9C [20:30:36]RasterBufferAndPrint [20:30:36]line [20:30:36]line [20:30:36]line [20:30:36]line [20:30:36]line [20:30:36]written 0, free lines is 3310 [20:30:36]MH_Cut [20:30:36]Write to MH i2c: D1 01 00 9F 09 01 7A [20:30:36]Write i2c OK [20:30:36]MH_I2C_Read... [20:30:36]Read from MH i2c: D1 [20:30:36]MH_I2C_Read... [20:30:36]Read from MH i2c: D1 01 00 [20:30:36]MH_I2C_Read... [20:30:36]Read from MH i2c: D1 01 00 9F 09 00 79 [20:30:36]Write to MH i2c: 01 00 00 A0 09 A9 [20:30:36]Write i2c OK [20:30:36]MH_I2C_Read... [20:30:36]OFD Sender: No OFD packet to send [20:30:37]*** Cut start [20:30:37]*** Partial cut [20:30:37]*** CUTSNS_PIN = 1 [20:30:37]*** CUTSNS_PIN = 0 [20:30:37]*** Brake cut motor [20:30:37]Read from MH i2c: 01 [20:30:37]MH_I2C_Read... [20:30:37]*** Stop cut motor [20:30:37]*** Cut end [20:30:37]Read from MH i2c: 01 07 00 [20:30:37]MH_I2C_Read... [20:30:37]Read from MH i2c: 01 07 00 A0 09 00 00 00 00 00 FF 0F BE [20:30:37]process_action close_receipt done [20:30:37]requested_data is exist [20:30:37]produce_requested_data [20:30:37]requested_item fm.sn is exist - process it [20:30:37]wFMCommunicate request_size=4 [20:30:37]MH_SAM_APDU [20:30:37]CAPDU: 80 11 00 00 [20:30:37]Write to MH i2c: E2 08 00 A1 09 80 11 00 00 00 00 00 00 24 [20:30:37]Write i2c OK [20:30:37]MH_I2C_Read... [20:30:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:30:37]Read from MH i2c: E2 [20:30:37]MH_I2C_Read... [20:30:37]Read from MH i2c: E2 17 00 [20:30:37]MH_I2C_Read... [20:30:37]Read from MH i2c: E2 17 00 A1 09 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:30: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:30:37]wFMCommunicate OK [20:30:37]requested_item fd.num is exist - process it [20:30:37]SAM_PROTO_GetFieldsCounters [20:30:37]wFMCommunicate request_size=4 [20:30:37]MH_SAM_APDU [20:30:37]CAPDU: 80 13 00 00 [20:30:37]Write to MH i2c: E2 08 00 A2 09 80 13 00 00 00 00 00 00 27 [20:30:37]Write i2c OK [20:30:37]MH_I2C_Read... [20:30:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:30:37]Read from MH i2c: E2 [20:30:37]MH_I2C_Read... [20:30:37]Read from MH i2c: E2 62 00 [20:30:37]MH_I2C_Read... [20:30:37]Read from MH i2c: E2 62 00 A2 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 1F 97 01 00 0E 04 04 00 63 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 1F [20:30: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 1F 97 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 92 00 00 00 5E 04 04 00 92 00 00 00 57 04 04 00 93 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:30:37]wFMCommunicate OK [20:30:37]SAM_PROTO_GetFieldsCounters done [20:30:37]requested_item shift.num is exist - process it [20:30:37]requested_item shift.opened is exist - process it [20:30:37]req_shift_opened [20:30:37]FM_GetShiftState [20:30:37]SAM_PROTO_GetShiftState [20:30:37]wFMCommunicate request_size=4 [20:30:37]MH_SAM_APDU [20:30:37]CAPDU: 80 13 01 00 [20:30:37]Write to MH i2c: E2 08 00 A3 09 80 13 01 00 00 00 00 00 29 [20:30:37]Write i2c OK [20:30:37]MH_I2C_Read... [20:30:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:30:37]Read from MH i2c: E2 [20:30:37]MH_I2C_Read... [20:30:37]Read from MH i2c: E2 0E 00 [20:30:37]MH_I2C_Read... [20:30:37]Read from MH i2c: E2 0E 00 A3 09 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 3C [20:30:37]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [20:30:37]wFMCommunicate OK [20:30:37]SAM_PROTO_GetShiftState done [20:30:37]FM_GetShiftState done [20:30:37]req_shift_opened done [20:30:37]requested_item shift.open_date is exist - process it [20:30:37]req_shift_open_date [20:30:37]req_shift_open_date done [20:30:37]produce_requested_data done [20:30:37]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104223,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [20:30:37]process_action_free close_receipt [20:30:37]json_value_free [20:30:37]json_value_free done [20:30:37]process_json_proto returns [20:30:37]Send response to host [20:30:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104223,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [20:30:37]free response buf [20:30:37]execute_script done [20:30:37]execute_script returns [20:30:37]free content buf [20:30:37]Sock 7.Close socket [20:30:37]Sock 7.Thread stoped [20:30:41]OFD Sender: No OFD packet to send [20:30:46]OFD Sender: No OFD packet to send [20:30:51]OFD Sender: No OFD packet to send [20:30:56]OFD Sender: No OFD packet to send [20:31:01]OFD Sender: No OFD packet to send [20:31:06]OFD Sender: No OFD packet to send [20:31:11]OFD Sender: No OFD packet to send [20:31:13]accept exits with 9 [20:31:13]New connection [20:31:13]New thread 3067473252 created [20:31:13]Thread 3067616612 joined [20:31:13]Waiting for new connection... [20:31:13] Sock 9.Parse request [20:31:13]Sock 9.Check first char [20:31:13]Sock 9.First char is OK [20:31:13]request: POST /json_proto HTTP/1.0 [20:31:13]Method: POST [20:31:13]URL: /json_proto [20:31:13]Method is POST - this is cgi request [20:31:13]url: /json_proto [20:31:13]query_string will be loaded in cgi processing [20:31:13]execute_cgi json_proto POST (null) [20:31:13]execute_cgi path=json_proto method=POST [20:31:13]POST find Content-Length [20:31:13]Host: 172.17.38.133:8080 [20:31:13]Content-Length: 1199 [20:31:13]Content-Type: application/json [20:31:13] [20:31:13]POST finish read [20:31:13]Found Content-Length = 1199 [20:31: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 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)673698\u000A21.06.2024 20: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.980 x 72.90\u000A\u0418\u0422\u041E\u0413: 800.44\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\u000A01088\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:31:13]execute_script... [20:31: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 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)673698\u000A21.06.2024 20: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.980 x 72.90\u000A\u0418\u0422\u041E\u0413: 800.44\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\u000A01088\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:31:13]POST & json_proto [20:31:13]process_json_proto [20:31:13]json parsed OK: [20:31:13]protocol is kg_v1.0 [20:31:13]action value=print_text [20:31:13]process_action print_text [20:31:13]cmd_print_text [20:31:13]ExternCall_PrintAddStr [20:31:13]wPrintStart [20:31:13]Write to MH i2c: 01 00 00 A4 09 AD [20:31:13]Write i2c OK [20:31:13]MH_I2C_Read... [20:31:13]Read from MH i2c: 01 [20:31:13]MH_I2C_Read... [20:31:13]Read from MH i2c: 01 07 00 [20:31:13]MH_I2C_Read... [20:31:13]Read from MH i2c: 01 07 00 A4 09 00 00 00 00 00 FF 0F C2 [20:31:13]RasterBufferAndPrint [20:31:13]line *****ТОВАРНЫЙ ЧЕК***** [20:31:13]line АЗС 120 [20:31:13]line Партнер нефть [20:31:13]line 02508201610067 [20:31:13]line Кассир : Асанбаев Н. [20:31:13]line Счет N : (1)673698 [20:31:13]line 21.06.2024 20:08 [20:31:13]line ПРОДАЖА [20:31:13]line ТРК (МРК, ГНК): 21 [20:31:13]line Вид ГСМ : 2710194210 [20:31:13]line ДТ(л)-К-5 [20:31:13]line 10.980 x 72.90 [20:31:13]line ИТОГ: 800.44 [20:31:13]line Тип оплаты: Талоны: Топливная Карта [20:31:13]line 01088 [20:31:13]line ______________________ [20:31:13]line (подпись) [20:31:13]written 0, free lines is 4095 [20:31:13]Write to MH i2c: 01 00 00 B8 09 C1 [20:31:13]Write i2c OK [20:31:13]MH_I2C_Read... [20:31:13]Read from MH i2c: 01 [20:31:13]MH_I2C_Read... [20:31:13]Read from MH i2c: 01 07 00 [20:31:13]MH_I2C_Read... [20:31:13]Read from MH i2c: 01 07 00 B8 09 00 00 00 00 00 0F 0E E5 [20:31:13]RasterBufferAndPrint [20:31:13]line [20:31:13]line [20:31:13]line [20:31:13]line [20:31:13]line [20:31:13]written 0, free lines is 3601 [20:31:13]MH_Cut [20:31:13]Write to MH i2c: D1 01 00 BF 09 01 9A [20:31:13]Write i2c OK [20:31:13]MH_I2C_Read... [20:31:13]Read from MH i2c: D1 [20:31:13]MH_I2C_Read... [20:31:13]Read from MH i2c: D1 01 00 [20:31:13]MH_I2C_Read... [20:31:13]Read from MH i2c: D1 01 00 BF 09 00 99 [20:31:13]Write to MH i2c: 01 00 00 C0 09 C9 [20:31:13]Write i2c OK [20:31:13]MH_I2C_Read... [20:31:14]*** Cut start [20:31:14]*** Partial cut [20:31:14]*** CUTSNS_PIN = 1 [20:31:14]*** CUTSNS_PIN = 0 [20:31:14]*** Brake cut motor [20:31:15]Read from MH i2c: 01 [20:31:15]MH_I2C_Read... [20:31:15]Read from MH i2c: 01 07 00 [20:31:15]MH_I2C_Read... [20:31:15]*** Stop cut motor [20:31:15]*** Cut end [20:31:15]Read from MH i2c: 01 07 00 C0 09 00 00 00 00 00 FF 0F DE [20:31:15]process_action print_text done [20:31:15]requested_data is exist [20:31:15]produce_requested_data [20:31:15]requested_item fm.sn is exist - process it [20:31:15]wFMCommunicate request_size=4 [20:31:15]MH_SAM_APDU [20:31:15]CAPDU: 80 11 00 00 [20:31:15]Write to MH i2c: E2 08 00 C1 09 80 11 00 00 00 00 00 00 44 [20:31:15]Write i2c OK [20:31:15]MH_I2C_Read... [20:31:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:31:15]Read from MH i2c: E2 [20:31:15]MH_I2C_Read... [20:31:15]Read from MH i2c: E2 17 00 [20:31:15]MH_I2C_Read... [20:31:15]Read from MH i2c: E2 17 00 C1 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 97 [20:31:15]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:15]wFMCommunicate OK [20:31:15]requested_item fd.num is exist - process it [20:31:15]SAM_PROTO_GetFieldsCounters [20:31:15]wFMCommunicate request_size=4 [20:31:15]MH_SAM_APDU [20:31:15]CAPDU: 80 13 00 00 [20:31:15]Write to MH i2c: E2 08 00 C2 09 80 13 00 00 00 00 00 00 47 [20:31:15]Write i2c OK [20:31:15]MH_I2C_Read... [20:31:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:31:15]Read from MH i2c: E2 [20:31:15]MH_I2C_Read... [20:31:15]Read from MH i2c: E2 62 00 [20:31:15]MH_I2C_Read... [20:31:15]Read from MH i2c: E2 62 00 C2 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 1F 97 01 00 0E 04 04 00 63 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 3F [20:31: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 1F 97 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 92 00 00 00 5E 04 04 00 92 00 00 00 57 04 04 00 93 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:31:15]wFMCommunicate OK [20:31:15]SAM_PROTO_GetFieldsCounters done [20:31:15]requested_item shift.num is exist - process it [20:31:15]requested_item shift.opened is exist - process it [20:31:15]req_shift_opened [20:31:15]FM_GetShiftState [20:31:15]SAM_PROTO_GetShiftState [20:31:15]wFMCommunicate request_size=4 [20:31:15]MH_SAM_APDU [20:31:15]CAPDU: 80 13 01 00 [20:31:15]Write to MH i2c: E2 08 00 C3 09 80 13 01 00 00 00 00 00 49 [20:31:15]Write i2c OK [20:31:15]MH_I2C_Read... [20:31:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:31:15]Read from MH i2c: E2 [20:31:15]MH_I2C_Read... [20:31:15]Read from MH i2c: E2 0E 00 [20:31:15]MH_I2C_Read... [20:31:15]Read from MH i2c: E2 0E 00 C3 09 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 5C [20:31:15]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [20:31:15]wFMCommunicate OK [20:31:15]SAM_PROTO_GetShiftState done [20:31:15]FM_GetShiftState done [20:31:15]req_shift_opened done [20:31:15]requested_item shift.open_date is exist - process it [20:31:15]req_shift_open_date [20:31:15]req_shift_open_date done [20:31:15]produce_requested_data done [20:31:15]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104223,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [20:31:15]process_action_free print_text [20:31:15]json_value_free [20:31:15]json_value_free done [20:31:15]process_json_proto returns [20:31:15]Send response to host [20:31:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104223,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [20:31:15]free response buf [20:31:15]execute_script done [20:31:15]execute_script returns [20:31:15]free content buf [20:31:15]Sock 9.Close socket [20:31:15]Sock 9.Thread stoped [20:31:16]OFD Sender: No OFD packet to send [20:31:21]OFD Sender: No OFD packet to send [20:31:26]OFD Sender: No OFD packet to send [20:31:31]OFD Sender: No OFD packet to send [20:31:36]OFD Sender: No OFD packet to send [20:31:41]OFD Sender: No OFD packet to send [20:31:46]OFD Sender: No OFD packet to send [20:31:51]OFD Sender: No OFD packet to send [20:31:56]OFD Sender: No OFD packet to send [20:32:01]OFD Sender: No OFD packet to send [20:32:06]OFD Sender: No OFD packet to send [20:32:11]OFD Sender: No OFD packet to send [20:32:16]OFD Sender: No OFD packet to send [20:32:21]OFD Sender: No OFD packet to send [20:32:26]OFD Sender: No OFD packet to send [20:32:31]OFD Sender: No OFD packet to send [20:32:36]OFD Sender: No OFD packet to send [20:32:41]OFD Sender: No OFD packet to send [20:32:46]OFD Sender: No OFD packet to send [20:32:51]OFD Sender: No OFD packet to send [20:32:56]OFD Sender: No OFD packet to send [20:33:01]OFD Sender: No OFD packet to send [20:33:06]OFD Sender: No OFD packet to send [20:33:11]OFD Sender: No OFD packet to send [20:33:16]OFD Sender: No OFD packet to send [20:33:21]OFD Sender: No OFD packet to send [20:33:26]OFD Sender: No OFD packet to send [20:33:27]accept exits with 7 [20:33:27]New connection [20:33:27]New thread 3067616612 created [20:33:27]Thread 3067473252 joined [20:33:27]Waiting for new connection... [20:33:27] Sock 7.Parse request [20:33:27]Sock 7.Check first char [20:33:27]Sock 7.First char is OK [20:33:27]request: POST /json_proto HTTP/1.0 [20:33:27]Method: POST [20:33:27]URL: /json_proto [20:33:27]Method is POST - this is cgi request [20:33:27]url: /json_proto [20:33:27]query_string will be loaded in cgi processing [20:33:27]execute_cgi json_proto POST (null) [20:33:27]execute_cgi path=json_proto method=POST [20:33:27]POST find Content-Length [20:33:27]Host: 172.17.38.133:8080 [20:33:27]Content-Length: 1157 [20:33:27]Content-Type: application/json [20:33:27] [20:33:27]POST finish read [20:33:27]Found Content-Length = 1157 [20:33:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 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)673700\u000A21.06.2024 20: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 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\u000A30094959\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:33:27]execute_script... [20:33:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 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)673700\u000A21.06.2024 20: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 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\u000A30094959\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:33:27]POST & json_proto [20:33:27]process_json_proto [20:33:27]json parsed OK: [20:33:27]protocol is kg_v1.0 [20:33:27]action value=print_text [20:33:27]process_action print_text [20:33:27]cmd_print_text [20:33:27]ExternCall_PrintAddStr [20:33:27]wPrintStart [20:33:27]Write to MH i2c: 01 00 00 C4 09 CD [20:33:27]Write i2c OK [20:33:27]MH_I2C_Read... [20:33:27]Read from MH i2c: 01 [20:33:27]MH_I2C_Read... [20:33:27]Read from MH i2c: 01 07 00 [20:33:27]MH_I2C_Read... [20:33:27]Read from MH i2c: 01 07 00 C4 09 00 00 00 00 00 FF 0F E2 [20:33:27]RasterBufferAndPrint [20:33:27]line *****ТОВАРНЫЙ ЧЕК***** [20:33:27]line АЗС 120 [20:33:27]line Партнер нефть [20:33:27]line 02508201610067 [20:33:27]line Кассир : Асанбаев Н. [20:33:27]line Счет N : (1)673700 [20:33:27]line 21.06.2024 20:10 [20:33:27]line ПРОДАЖА [20:33:27]line ТРК (МРК, ГНК): 32 [20:33:27]line Вид ГСМ : 2710124130 [20:33:27]line Аи-92-К-5 [20:33:27]line 20.000 x 66.40 [20:33:27]line ИТОГ: 1328.00 [20:33:27]line Тип оплаты: Талоны: ТК ГПНА Online [20:33:27]line 30094959 [20:33:27]line ______________________ [20:33:27]line (подпись) [20:33:27]written 0, free lines is 4095 [20:33:27]Write to MH i2c: 01 00 00 D8 09 E1 [20:33:27]Write i2c OK [20:33:27]MH_I2C_Read... [20:33:27]Read from MH i2c: 01 [20:33:27]MH_I2C_Read... [20:33:27]Read from MH i2c: 01 07 00 [20:33:27]MH_I2C_Read... [20:33:27]Read from MH i2c: 01 07 00 D8 09 00 00 00 00 00 10 0E 06 [20:33:27]RasterBufferAndPrint [20:33:27]line [20:33:27]line [20:33:27]line [20:33:27]line [20:33:27]line [20:33:27]written 0, free lines is 3601 [20:33:27]MH_Cut [20:33:27]Write to MH i2c: D1 01 00 DF 09 01 BA [20:33:27]Write i2c OK [20:33:27]MH_I2C_Read... [20:33:27]Read from MH i2c: D1 [20:33:27]MH_I2C_Read... [20:33:27]Read from MH i2c: D1 01 00 [20:33:27]MH_I2C_Read... [20:33:27]Read from MH i2c: D1 01 00 DF 09 00 B9 [20:33:27]Write to MH i2c: 01 00 00 E0 09 E9 [20:33:27]Write i2c OK [20:33:27]MH_I2C_Read... [20:33:27]*** Cut start [20:33:27]*** Partial cut [20:33:27]*** CUTSNS_PIN = 1 [20:33:27]*** CUTSNS_PIN = 0 [20:33:28]*** Brake cut motor [20:33:28]Read from MH i2c: 01 [20:33:28]MH_I2C_Read... [20:33:28]Read from MH i2c: 01 07 00 [20:33:28]MH_I2C_Read... [20:33:28]*** Stop cut motor [20:33:28]*** Cut end [20:33:28]Read from MH i2c: 01 07 00 E0 09 00 00 00 00 00 FF 0F FE [20:33:28]process_action print_text done [20:33:28]requested_data is exist [20:33:28]produce_requested_data [20:33:28]requested_item fm.sn is exist - process it [20:33:28]wFMCommunicate request_size=4 [20:33:28]MH_SAM_APDU [20:33:28]CAPDU: 80 11 00 00 [20:33:28]Write to MH i2c: E2 08 00 E1 09 80 11 00 00 00 00 00 00 64 [20:33:28]Write i2c OK [20:33:28]MH_I2C_Read... [20:33:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:33:28]Read from MH i2c: E2 [20:33:28]MH_I2C_Read... [20:33:28]Read from MH i2c: E2 17 00 [20:33:28]MH_I2C_Read... [20:33:28]Read from MH i2c: E2 17 00 E1 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 B7 [20:33: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:33:28]wFMCommunicate OK [20:33:28]requested_item fd.num is exist - process it [20:33:28]SAM_PROTO_GetFieldsCounters [20:33:28]wFMCommunicate request_size=4 [20:33:28]MH_SAM_APDU [20:33:28]CAPDU: 80 13 00 00 [20:33:28]Write to MH i2c: E2 08 00 E2 09 80 13 00 00 00 00 00 00 67 [20:33:28]Write i2c OK [20:33:28]MH_I2C_Read... [20:33:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:33:28]Read from MH i2c: E2 [20:33:28]MH_I2C_Read... [20:33:28]Read from MH i2c: E2 62 00 [20:33:28]MH_I2C_Read... [20:33:28]Read from MH i2c: E2 62 00 E2 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 1F 97 01 00 0E 04 04 00 63 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 5F [20:33: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 1F 97 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 92 00 00 00 5E 04 04 00 92 00 00 00 57 04 04 00 93 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:33:28]wFMCommunicate OK [20:33:28]SAM_PROTO_GetFieldsCounters done [20:33:28]requested_item shift.num is exist - process it [20:33:28]requested_item shift.opened is exist - process it [20:33:28]req_shift_opened [20:33:28]FM_GetShiftState [20:33:28]SAM_PROTO_GetShiftState [20:33:28]wFMCommunicate request_size=4 [20:33:28]MH_SAM_APDU [20:33:28]CAPDU: 80 13 01 00 [20:33:28]Write to MH i2c: E2 08 00 E3 09 80 13 01 00 00 00 00 00 69 [20:33:28]Write i2c OK [20:33:28]MH_I2C_Read... [20:33:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:33:28]Read from MH i2c: E2 [20:33:28]MH_I2C_Read... [20:33:28]Read from MH i2c: E2 0E 00 [20:33:28]MH_I2C_Read... [20:33:28]Read from MH i2c: E2 0E 00 E3 09 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 7C [20:33:28]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [20:33:28]wFMCommunicate OK [20:33:28]SAM_PROTO_GetShiftState done [20:33:28]FM_GetShiftState done [20:33:28]req_shift_opened done [20:33:28]requested_item shift.open_date is exist - process it [20:33:28]req_shift_open_date [20:33:28]req_shift_open_date done [20:33:28]produce_requested_data done [20:33:28]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104223,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [20:33:28]process_action_free print_text [20:33:28]json_value_free [20:33:28]json_value_free done [20:33:28]process_json_proto returns [20:33:28]Send response to host [20:33:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104223,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [20:33:28]free response buf [20:33:28]execute_script done [20:33:28]execute_script returns [20:33:28]free content buf [20:33:28]Sock 7.Close socket [20:33:28]Sock 7.Thread stoped [20:33:31]OFD Sender: No OFD packet to send [20:33:36]OFD Sender: No OFD packet to send [20:33:41]OFD Sender: No OFD packet to send [20:33:46]OFD Sender: No OFD packet to send [20:33:51]OFD Sender: No OFD packet to send [20:33:56]OFD Sender: No OFD packet to send [20:34:01]OFD Sender: No OFD packet to send [20:34:06]OFD Sender: No OFD packet to send [20:34:11]OFD Sender: No OFD packet to send [20:34:16]OFD Sender: No OFD packet to send [20:34:22]OFD Sender: No OFD packet to send [20:34:27]OFD Sender: No OFD packet to send [20:34:32]OFD Sender: No OFD packet to send [20:34:37]OFD Sender: No OFD packet to send [20:34:42]OFD Sender: No OFD packet to send [20:34:47]OFD Sender: No OFD packet to send [20:34:52]OFD Sender: No OFD packet to send [20:34:57]OFD Sender: No OFD packet to send [20:35:02]OFD Sender: No OFD packet to send [20:35:07]OFD Sender: No OFD packet to send [20:35:12]OFD Sender: No OFD packet to send [20:35:17]OFD Sender: No OFD packet to send [20:35:22]OFD Sender: No OFD packet to send [20:35:27]OFD Sender: No OFD packet to send [20:35:32]OFD Sender: No OFD packet to send [20:35:37]OFD Sender: No OFD packet to send [20:35:42]OFD Sender: No OFD packet to send [20:35:47]OFD Sender: No OFD packet to send [20:35:52]OFD Sender: No OFD packet to send [20:35:57]OFD Sender: No OFD packet to send [20:36:02]OFD Sender: No OFD packet to send [20:36:07]OFD Sender: No OFD packet to send [20:36:12]OFD Sender: No OFD packet to send [20:36:17]OFD Sender: No OFD packet to send [20:36:22]OFD Sender: No OFD packet to send [20:36:27]OFD Sender: No OFD packet to send [20:36:32]OFD Sender: No OFD packet to send [20:36:37]OFD Sender: No OFD packet to send [20:36:42]OFD Sender: No OFD packet to send [20:36:47]OFD Sender: No OFD packet to send [20:36:52]OFD Sender: No OFD packet to send [20:36:57]OFD Sender: No OFD packet to send [20:37:02]OFD Sender: No OFD packet to send [20:37:07]OFD Sender: No OFD packet to send [20:37:12]OFD Sender: No OFD packet to send [20:37:17]OFD Sender: No OFD packet to send [20:37:22]OFD Sender: No OFD packet to send [20:37:27]OFD Sender: No OFD packet to send [20:37:32]OFD Sender: No OFD packet to send [20:37:37]OFD Sender: No OFD packet to send [20:37:42]OFD Sender: No OFD packet to send [20:37:47]OFD Sender: No OFD packet to send [20:37:52]OFD Sender: No OFD packet to send [20:37:57]OFD Sender: No OFD packet to send [20:38:02]OFD Sender: No OFD packet to send [20:38:07]OFD Sender: No OFD packet to send [20:38:12]OFD Sender: No OFD packet to send [20:38:17]OFD Sender: No OFD packet to send [20:38:22]OFD Sender: No OFD packet to send [20:38:27]OFD Sender: No OFD packet to send [20:38:32]OFD Sender: No OFD packet to send [20:38:37]OFD Sender: No OFD packet to send [20:38:42]OFD Sender: No OFD packet to send [20:38:47]OFD Sender: No OFD packet to send [20:38:52]OFD Sender: No OFD packet to send [20:38:57]OFD Sender: No OFD packet to send [20:39:02]OFD Sender: No OFD packet to send [20:39:07]OFD Sender: No OFD packet to send [20:39:12]OFD Sender: No OFD packet to send [20:39:17]OFD Sender: No OFD packet to send [20:39:22]OFD Sender: No OFD packet to send [20:39:27]OFD Sender: No OFD packet to send [20:39:32]OFD Sender: No OFD packet to send [20:39:37]OFD Sender: No OFD packet to send [20:39:42]OFD Sender: No OFD packet to send [20:39:47]OFD Sender: No OFD packet to send [20:39:52]OFD Sender: No OFD packet to send [20:39:57]OFD Sender: No OFD packet to send [20:40:02]OFD Sender: No OFD packet to send [20:40:07]OFD Sender: No OFD packet to send [20:40:12]OFD Sender: No OFD packet to send [20:40:17]OFD Sender: No OFD packet to send [20:40:22]OFD Sender: No OFD packet to send [20:40:27]OFD Sender: No OFD packet to send [20:40:32]OFD Sender: No OFD packet to send [20:40:37]OFD Sender: No OFD packet to send [20:40:42]OFD Sender: No OFD packet to send [20:40:47]OFD Sender: No OFD packet to send [20:40:52]OFD Sender: No OFD packet to send [20:40:53]accept exits with 9 [20:40:53]New connection [20:40:53]New thread 3067473252 created [20:40:53]Thread 3067616612 joined [20:40:53]Waiting for new connection... [20:40:53] Sock 9.Parse request [20:40:53]Sock 9.Check first char [20:40:53]Sock 9.First char is OK [20:40:53]request: POST /json_proto HTTP/1.0 [20:40:53]Method: POST [20:40:53]URL: /json_proto [20:40:53]Method is POST - this is cgi request [20:40:53]url: /json_proto [20:40:53]query_string will be loaded in cgi processing [20:40:53]execute_cgi json_proto POST (null) [20:40:53]execute_cgi path=json_proto method=POST [20:40:53]POST find Content-Length [20:40:53]Host: 172.17.38.133:8080 [20:40:53]Content-Length: 1184 [20:40:53]Content-Type: application/json [20:40:53] [20:40:53]POST finish read [20:40:53]Found Content-Length = 1184 [20:40:53]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)673701\u000A21.06.2024 20: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 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\u000A4104043\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:40:53]execute_script... [20:40:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "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)673701\u000A21.06.2024 20: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 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\u000A4104043\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:40:53]POST & json_proto [20:40:53]process_json_proto [20:40:53]json parsed OK: [20:40:53]protocol is kg_v1.0 [20:40:53]action value=print_text [20:40:53]process_action print_text [20:40:53]cmd_print_text [20:40:53]ExternCall_PrintAddStr [20:40:53]wPrintStart [20:40:53]Write to MH i2c: 01 00 00 E4 09 ED [20:40:53]Write i2c OK [20:40:53]MH_I2C_Read... [20:40:53]Read from MH i2c: 01 [20:40:53]MH_I2C_Read... [20:40:53]Read from MH i2c: 01 07 00 [20:40:53]MH_I2C_Read... [20:40:53]Read from MH i2c: 01 07 00 E4 09 00 00 00 00 00 FF 0F 02 [20:40:53]RasterBufferAndPrint [20:40:53]line *****ТОВАРНЫЙ ЧЕК***** [20:40:53]line АЗС 120 [20:40:53]line Партнер нефть [20:40:53]line 02508201610067 [20:40:53]line Кассир : Асанбаев Н. [20:40:53]line Счет N : (1)673701 [20:40:53]line 21.06.2024 20:17 [20:40:53]line ПРОДАЖА [20:40:53]line ТРК (МРК, ГНК): 42 [20:40:53]line Вид ГСМ : 2710124130 [20:40:53]line Аи-92-К-5 [20:40:53]line 10.000 x 66.40 [20:40:53]line ИТОГ: 664.00 [20:40:53]line Тип оплаты: Талоны: Партнер нефть [20:40:53]line 4104043 [20:40:53]line ______________________ [20:40:53]line (подпись) [20:40:53]written 0, free lines is 4095 [20:40:54]Write to MH i2c: 01 00 00 F8 09 01 [20:40:54]Write i2c OK [20:40:54]MH_I2C_Read... [20:40:54]Read from MH i2c: 01 [20:40:54]MH_I2C_Read... [20:40:54]Read from MH i2c: 01 07 00 [20:40:54]MH_I2C_Read... [20:40:54]Read from MH i2c: 01 07 00 F8 09 00 00 00 00 00 10 0E 26 [20:40:54]RasterBufferAndPrint [20:40:54]line [20:40:54]line [20:40:54]line [20:40:54]line [20:40:54]line [20:40:54]written 0, free lines is 3601 [20:40:54]MH_Cut [20:40:54]Write to MH i2c: D1 01 00 FF 09 01 DA [20:40:54]Write i2c OK [20:40:54]MH_I2C_Read... [20:40:54]Read from MH i2c: D1 [20:40:54]MH_I2C_Read... [20:40:54]Read from MH i2c: D1 01 00 [20:40:54]MH_I2C_Read... [20:40:54]Read from MH i2c: D1 01 00 FF 09 00 D9 [20:40:54]Write to MH i2c: 01 00 00 00 0A 0A [20:40:54]Write i2c OK [20:40:54]MH_I2C_Read... [20:40:54]*** Cut start [20:40:54]*** Partial cut [20:40:54]*** CUTSNS_PIN = 1 [20:40:54]*** CUTSNS_PIN = 0 [20:40:54]*** Brake cut motor [20:40:55]Read from MH i2c: 01 [20:40:55]MH_I2C_Read... [20:40:55]*** Stop cut motor [20:40:55]*** Cut end [20:40:55]Read from MH i2c: 01 07 00 [20:40:55]MH_I2C_Read... [20:40:55]Read from MH i2c: 01 07 00 00 0A 00 00 00 00 00 FF 0F 1F [20:40:55]process_action print_text done [20:40:55]requested_data is exist [20:40:55]produce_requested_data [20:40:55]requested_item fm.sn is exist - process it [20:40:55]wFMCommunicate request_size=4 [20:40:55]MH_SAM_APDU [20:40:55]CAPDU: 80 11 00 00 [20:40:55]Write to MH i2c: E2 08 00 01 0A 80 11 00 00 00 00 00 00 85 [20:40:55]Write i2c OK [20:40:55]MH_I2C_Read... [20:40:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:40:55]Read from MH i2c: E2 [20:40:55]MH_I2C_Read... [20:40:55]Read from MH i2c: E2 17 00 [20:40:55]MH_I2C_Read... [20:40:55]Read from MH i2c: E2 17 00 01 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 D8 [20:40: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:40:55]wFMCommunicate OK [20:40:55]requested_item fd.num is exist - process it [20:40:55]SAM_PROTO_GetFieldsCounters [20:40:55]wFMCommunicate request_size=4 [20:40:55]MH_SAM_APDU [20:40:55]CAPDU: 80 13 00 00 [20:40:55]Write to MH i2c: E2 08 00 02 0A 80 13 00 00 00 00 00 00 88 [20:40:55]Write i2c OK [20:40:55]MH_I2C_Read... [20:40:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:40:55]Read from MH i2c: E2 [20:40:55]MH_I2C_Read... [20:40:55]Read from MH i2c: E2 62 00 [20:40:55]MH_I2C_Read... [20:40:55]Read from MH i2c: E2 62 00 02 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 1F 97 01 00 0E 04 04 00 63 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 80 [20:40: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 97 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 92 00 00 00 5E 04 04 00 92 00 00 00 57 04 04 00 93 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:40:55]wFMCommunicate OK [20:40:55]SAM_PROTO_GetFieldsCounters done [20:40:55]requested_item shift.num is exist - process it [20:40:55]requested_item shift.opened is exist - process it [20:40:55]req_shift_opened [20:40:55]FM_GetShiftState [20:40:55]SAM_PROTO_GetShiftState [20:40:55]wFMCommunicate request_size=4 [20:40:55]MH_SAM_APDU [20:40:55]CAPDU: 80 13 01 00 [20:40:55]Write to MH i2c: E2 08 00 03 0A 80 13 01 00 00 00 00 00 8A [20:40:55]Write i2c OK [20:40:55]MH_I2C_Read... [20:40:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:40:55]Read from MH i2c: E2 [20:40:55]MH_I2C_Read... [20:40:55]Read from MH i2c: E2 0E 00 [20:40:55]MH_I2C_Read... [20:40:55]Read from MH i2c: E2 0E 00 03 0A 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 9D [20:40:55]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [20:40:55]wFMCommunicate OK [20:40:55]SAM_PROTO_GetShiftState done [20:40:55]FM_GetShiftState done [20:40:55]req_shift_opened done [20:40:55]requested_item shift.open_date is exist - process it [20:40:55]req_shift_open_date [20:40:55]req_shift_open_date done [20:40:55]produce_requested_data done [20:40:55]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104223,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [20:40:55]process_action_free print_text [20:40:55]json_value_free [20:40:55]json_value_free done [20:40:55]process_json_proto returns [20:40:55]Send response to host [20:40:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104223,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [20:40:55]free response buf [20:40:55]execute_script done [20:40:55]execute_script returns [20:40:55]free content buf [20:40:55]Sock 9.Close socket [20:40:55]Sock 9.Thread stoped [20:40:57]OFD Sender: No OFD packet to send [20:41:02]OFD Sender: No OFD packet to send [20:41:07]OFD Sender: No OFD packet to send [20:41:12]OFD Sender: No OFD packet to send [20:41:17]OFD Sender: No OFD packet to send [20:41:22]OFD Sender: No OFD packet to send [20:41:27]OFD Sender: No OFD packet to send [20:41:32]OFD Sender: No OFD packet to send [20:41:37]OFD Sender: No OFD packet to send [20:41:42]OFD Sender: No OFD packet to send [20:41:47]OFD Sender: No OFD packet to send [20:41:52]OFD Sender: No OFD packet to send [20:41:57]OFD Sender: No OFD packet to send [20:42:02]OFD Sender: No OFD packet to send [20:42:07]OFD Sender: No OFD packet to send [20:42:12]OFD Sender: No OFD packet to send [20:42:17]OFD Sender: No OFD packet to send [20:42:22]OFD Sender: No OFD packet to send [20:42:27]OFD Sender: No OFD packet to send [20:42:32]OFD Sender: No OFD packet to send [20:42:37]OFD Sender: No OFD packet to send [20:42:42]OFD Sender: No OFD packet to send [20:42:47]OFD Sender: No OFD packet to send [20:42:52]OFD Sender: No OFD packet to send [20:42:57]OFD Sender: No OFD packet to send [20:43:02]OFD Sender: No OFD packet to send [20:43:07]OFD Sender: No OFD packet to send [20:43:12]OFD Sender: No OFD packet to send [20:43:17]OFD Sender: No OFD packet to send [20:43:22]OFD Sender: No OFD packet to send [20:43:27]OFD Sender: No OFD packet to send [20:43:32]OFD Sender: No OFD packet to send [20:43:32]accept exits with 7 [20:43:32]New connection [20:43:32]New thread 3067616612 created [20:43:32]Thread 3067473252 joined [20:43:32]Waiting for new connection... [20:43:32] Sock 7.Parse request [20:43:32]Sock 7.Check first char [20:43:32]Sock 7.First char is OK [20:43:32]request: POST /json_proto HTTP/1.0 [20:43:32]Method: POST [20:43:32]URL: /json_proto [20:43:32]Method is POST - this is cgi request [20:43:32]url: /json_proto [20:43:32]query_string will be loaded in cgi processing [20:43:32]execute_cgi json_proto POST (null) [20:43:32]execute_cgi path=json_proto method=POST [20:43:32]POST find Content-Length [20:43:32]Host: 172.17.38.133:8080 [20:43:32]Content-Length: 678 [20:43:32]Content-Type: application/json [20:43:32] [20:43:32]POST finish read [20:43:32]Found Content-Length = 678 [20:43:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673703", "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" ] } } [20:43:32]execute_script... [20:43:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673703", "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" ] } } [20:43:32]POST & json_proto [20:43:32]process_json_proto [20:43:32]json parsed OK: [20:43:32]protocol is kg_v1.0 [20:43:32]action value=close_receipt [20:43:32]process_action close_receipt [20:43:32]cmd_close_receipt [20:43:32]MH_GetDate [20:43:32]Write to MH i2c: F0 00 00 04 0A FD [20:43:32]Write i2c OK [20:43:32]MH_I2C_Read... [20:43:32]Read from MH i2c: F0 [20:43:32]MH_I2C_Read... [20:43:32]Read from MH i2c: F0 09 00 [20:43:32]MH_I2C_Read... [20:43:32]Read from MH i2c: F0 09 00 04 0A 00 F6 E5 75 66 BD 8F 7C 64 E8 [20:43:32]GetLastDocTimeStamp 1719001835 [20:43:32]current date 1719002614 [20:43:32]FM_GetShiftState [20:43:32]SAM_PROTO_GetShiftState [20:43:32]wFMCommunicate request_size=4 [20:43:32]MH_SAM_APDU [20:43:32]CAPDU: 80 13 01 00 [20:43:32]Write to MH i2c: E2 08 00 05 0A 80 13 01 00 00 00 00 00 8C [20:43:32]Write i2c OK [20:43:32]MH_I2C_Read... [20:43:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:43:32]Read from MH i2c: E2 [20:43:32]MH_I2C_Read... [20:43:32]Read from MH i2c: E2 0E 00 [20:43:32]MH_I2C_Read... [20:43:32]Read from MH i2c: E2 0E 00 05 0A 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 9F [20:43:32]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [20:43:32]wFMCommunicate OK [20:43:32]SAM_PROTO_GetShiftState done [20:43:32]FM_GetShiftState done [20:43:32]opened in 1718929509 [20:43:32]opened+sec_in_day 1719015909 [20:43:32]quantity*price = 70052 [20:43:32]sum+1 = 70053 [20:43:32]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 СНО: Общий режим Чек 147 21.06.2024 20:43 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104224 ФПД: 135119830002798 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T204334&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104224&fm=135119830002798&tin=02508201610067®Number=0000000000092785&sum=70000 [20:43:34]StoreToDocumentArchive [20:43:34]shift 355 fd 104224 [20:43:34]save to /storage/0355/doc_00104224 [20:43:34]save last doc name /storage/0355/doc_00104224 to /storage/kkm_last_doc_name [20:43:34]save OK [20:43:34]Clear old archive folders... [20:43:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:43:34]tlvbuf is 0067BE60 [20:43:34]SAM_PROTO_ClearQueue [20:43:34]wFMCommunicate request_size=4 [20:43:34]MH_SAM_APDU [20:43:34]CAPDU: 80 09 00 00 [20:43:34]Write to MH i2c: E2 08 00 12 0A 80 09 00 00 00 00 00 00 8E [20:43:34]Write i2c OK [20:43:34]MH_I2C_Read... [20:43:34]Read from MH i2c: E2 [20:43:34]MH_I2C_Read... [20:43:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:43:34]Read from MH i2c: E2 03 00 [20:43:34]MH_I2C_Read... [20:43:34]Read from MH i2c: E2 03 00 12 0A 00 90 00 90 [20:43:34]RAPDU: 90 00 [20:43:34]wFMCommunicate OK [20:43:34]SAM_PROTO_ClearQueue done [20:43:34]KKMCreateOFDPacket [20:43:34]OFDProtocolAddRootSTLVToBuf [20:43:34]FM_MakeSignedData [20:43:34]FM_MakeSignedData [20:43:34]SAM_PROTO_SignData [20:43:34]wFMCommunicate request_size=4 [20:43:34]MH_SAM_APDU [20:43:34]CAPDU: 80 0D 01 02 [20:43:34]Write to MH i2c: E2 08 00 13 0A 80 0D 01 02 00 00 00 00 96 [20:43:34]Write i2c OK [20:43:34]MH_I2C_Read... [20:43:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:43:34]Read from MH i2c: E2 [20:43:34]MH_I2C_Read... [20:43:34]Read from MH i2c: E2 03 00 [20:43:34]MH_I2C_Read... [20:43:34]Read from MH i2c: E2 03 00 13 0A 00 90 00 91 [20:43:34]RAPDU: 90 00 [20:43:34]wFMCommunicate OK [20:43:34]wFMCommunicate request_size=255 [20:43:34]MH_SAM_APDU [20:43: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 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 93 00 00 00 F4 03 04 00 F6 E5 75 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 20 97 01 00 35 04 06 00 7A [20:43:34]Write to MH i2c: E2 02 01 14 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 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 93 00 00 00 F4 03 04 00 F6 E5 75 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 20 97 01 00 35 04 06 00 7A 00 00 41 [20:43:34]Write i2c OK [20:43:34]MH_I2C_Read... [20:43:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:43:34]Read from MH i2c: E2 [20:43:34]MH_I2C_Read... [20:43:34]Read from MH i2c: E2 03 00 [20:43:34]MH_I2C_Read... [20:43:34]Read from MH i2c: E2 03 00 14 0A 00 90 00 92 [20:43:34]RAPDU: 90 00 [20:43:34]wFMCommunicate OK [20:43:34]wFMCommunicate request_size=10 [20:43:34]MH_SAM_APDU [20:43:34]CAPDU: 80 0D 02 02 05 E4 09 78 2C 6E [20:43:34]Write to MH i2c: E2 0D 00 15 0A 80 0D 02 02 05 00 E4 09 78 2C 6E 00 00 A2 [20:43:34]Write i2c OK [20:43:34]MH_I2C_Read... [20:43:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:43:34]Read from MH i2c: E2 [20:43:34]MH_I2C_Read... [20:43:34]Read from MH i2c: E2 03 00 [20:43:34]MH_I2C_Read... [20:43:34]Read from MH i2c: E2 03 00 15 0A 00 90 00 93 [20:43:34]RAPDU: 90 00 [20:43:34]wFMCommunicate OK [20:43:34]wFMCommunicate request_size=4 [20:43:34]MH_SAM_APDU [20:43:34]CAPDU: 80 0D 03 02 [20:43:34]Write to MH i2c: E2 08 00 16 0A 80 0D 03 02 00 00 00 00 9B [20:43:34]Write i2c OK [20:43:34]MH_I2C_Read... [20:43:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:43:34]Read from MH i2c: E2 [20:43:34]MH_I2C_Read... [20:43:34]Read from MH i2c: E2 0B 00 [20:43:34]MH_I2C_Read... [20:43:34]Read from MH i2c: E2 0B 00 16 0A 00 4A 8B 39 59 0B 87 BF 3C 90 00 90 [20:43:34]RAPDU: 4A 8B 39 59 0B 87 BF 3C 90 00 [20:43:34]wFMCommunicate OK [20:43:34]SAM_PROTO_SignData done [20:43:34]FM_MakeSignedData done [20:43:34]CreateOFDProtocolMessage [20:43:34]wFMCommunicate request_size=4 [20:43:34]MH_SAM_APDU [20:43:34]CAPDU: 80 11 00 00 [20:43:34]Write to MH i2c: E2 08 00 17 0A 80 11 00 00 00 00 00 00 9B [20:43:34]Write i2c OK [20:43:34]MH_I2C_Read... [20:43:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:43:34]Read from MH i2c: E2 [20:43:34]MH_I2C_Read... [20:43:34]Read from MH i2c: E2 17 00 [20:43:34]MH_I2C_Read... [20:43:34]Read from MH i2c: E2 17 00 17 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 EE [20:43: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:43:34]wFMCommunicate OK [20:43:34]CreateOFDProtocolMessage done [20:43:34]OFDSenderStorePacket 104224 [20:43:34]StoreOFDPacket docnum=104224 [20:43: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 5B 8A 07 01 D3 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 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 93 00 00 00 F4 03 04 00 F6 E5 75 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 20 97 01 00 35 04 06 00 7A E4 09 78 2C 6E 4A 8B 39 59 0B 87 BF 3C [20:43:34]CheckFolder [20:43:34]dirname=/storage/ofd_packets [20:43:34]CheckFolder done [20:43:34]ProducePacketName [20:43:34]name=ofd_packets/00104224 [20:43:34]NVStorageSaveData ofd_packets/00104224 [20:43:34]File name is /storage/ofd_packets/00104224 [20:43:34]Write 301 bytes [20:43:34]NVStorageSaveData done [20:43:34]OFDSenderStorePacket done [20:43:34]KKMCreateOFDPacket done [20:43:34]NVStorageSaveData kkm_last_timestamp [20:43:34]File name is /storage/kkm_last_timestamp [20:43:34]Write 4 bytes [20:43:34]NVStorageSaveData done [20:43:34]ExternCall_PrintAddStr [20:43:34]wPrintStart [20:43:34]Write to MH i2c: 01 00 00 18 0A 22 [20:43:34]Write i2c OK [20:43:34]MH_I2C_Read... [20:43:34]Read from MH i2c: 01 [20:43:34]MH_I2C_Read... [20:43:34]Read from MH i2c: 01 07 00 [20:43:34]MH_I2C_Read... [20:43:34]Read from MH i2c: 01 07 00 18 0A 00 00 00 00 00 FF 0F 37 [20:43:34]RasterBufferAndPrint [20:43:34]line Счет N : (1)673703 [20:43:34]line ИНН: 02508201610067 [20:43:34]line Контрольно-Кассовый Чек [20:43:34]line ПРОДАЖА [20:43:34]line ТРК (МРК, ГНК) : 42 [20:43:34]line Товар: 2710124130 [20:43:34]line Аи-92-К-5 [20:43:34]line 10.550 * 66.40 [20:43:34]line = 700.52 [20:43:34]line НДС 12% НСП 1% [20:43:34]line > о реализуемом товаре [20:43:34]line ОКРУГЛЕНИЕ: -0.52 [20:43:34]line ИТОГО: 700.00 [20:43:34]line Внесено: 700.00 [20:43:34]line СДАЧА: 0.00 [20:43:34]line НСП 1% : 6.20 [20:43:34]line НДС 12% : 74.39 [20:43:34]line Наличными: 700.00 [20:43:34]line Безнал.: 0.00 [20:43:34]line Место: АЗС № 120 "Партнер Нефть" [20:43:34]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [20:43:34]line СНО: Общий режим [20:43:34]line Чек 147 21.06.2024 20:43 [20:43:34]line Смена: 355 ФФД: 1.0 [20:43:34]line ЗНМ: 0300000164 [20:43:34]line РНМ: 0000000000092785 [20:43:34]line Версия ККМ: 001 [20:43:34]line ФМ: 0000000000875093 [20:43:34]line ФД: 104224 [20:43:34]line ФПД: 135119830002798 [20:43:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T204334&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104224&fm=135119830002798&tin=02508201610067®Number=0000000000092785&sum=70000 [20:43:34]OFD Sender: Processing packet 104224 [packets to send 17, broken 16] [20:43:34]ProducePacketName [20:43:34]name=ofd_packets/00104224 [20:43:34]OFD Sender: To server: pG, [20:43:34]CommunicateWithHost lk.salyk.kg:30040 [20:43:34]ConnectInit lk.salyk.kg [20:43:34]written 0, free lines is 4095 [20:43:35]Connected sock=10 [20:43: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 5B 8A 07 01 D3 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 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 93 00 00 00 F4 03 04 00 F6 E5 75 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 20 97 01 00 35 04 06 00 7A E4 09 78 2C 6E 4A 8B 39 59 0B 87 BF 3C [20:43: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 B0 67 47 00 C8 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 20 97 01 00 F4 03 04 00 77 8C 75 66 B6 04 01 00 00 89 47 87 60 9D 14 3A 91 [20:43:35]CommunicateWithHost err = 0 [20:43:35]CheckOFDResponse [20:43:35]1017 (14) - 77093643461234 [20:43:35]1041 (16) - 0000000000875093 [20:43:35]1040 (4) - 104224 [20:43:35]1012 (4) - 21.06.2024 14:21 [20:43:35]1206 (1) - 0 [20:43:35]OFD Sender: Remove packet 104224 [20:43:35]ProducePacketName [20:43:35]name=ofd_packets/00104224 [20:43:35]NVStorageDeleteData [20:43:35]Write to MH i2c: 01 00 00 43 0A 4D [20:43:35]Write i2c OK [20:43:35]MH_I2C_Read... [20:43:35]Read from MH i2c: 01 [20:43:35]MH_I2C_Read... [20:43:35]Read from MH i2c: 01 07 00 [20:43:35]MH_I2C_Read... [20:43:35]Read from MH i2c: 01 07 00 43 0A 00 00 00 00 00 D9 0C 39 [20:43:35]RasterBufferAndPrint [20:43:35]line [20:43:35]line [20:43:35]line [20:43:35]line [20:43:35]line [20:43:35]written 0, free lines is 3296 [20:43:35]MH_Cut [20:43:35]Write to MH i2c: D1 01 00 4A 0A 01 26 [20:43:35]Write i2c OK [20:43:35]MH_I2C_Read... [20:43:35]Read from MH i2c: D1 [20:43:35]MH_I2C_Read... [20:43:35]Read from MH i2c: D1 01 00 [20:43:35]MH_I2C_Read... [20:43:35]Read from MH i2c: D1 01 00 4A 0A 00 25 [20:43:35]Write to MH i2c: 01 00 00 4B 0A 55 [20:43:35]Write i2c OK [20:43:35]MH_I2C_Read... [20:43:35]OFD Sender: No OFD packet to send [20:43:36]*** Cut start [20:43:36]*** Partial cut [20:43:36]*** CUTSNS_PIN = 1 [20:43:36]*** CUTSNS_PIN = 0 [20:43:36]*** Brake cut motor [20:43:36]Read from MH i2c: 01 [20:43:36]MH_I2C_Read... [20:43:36]*** Stop cut motor [20:43:36]*** Cut end [20:43:36]Read from MH i2c: 01 07 00 [20:43:36]MH_I2C_Read... [20:43:36]Read from MH i2c: 01 07 00 4B 0A 00 00 00 00 00 FF 0F 6A [20:43:36]process_action close_receipt done [20:43:36]requested_data is exist [20:43:36]produce_requested_data [20:43:36]requested_item fm.sn is exist - process it [20:43:36]wFMCommunicate request_size=4 [20:43:36]MH_SAM_APDU [20:43:36]CAPDU: 80 11 00 00 [20:43:36]Write to MH i2c: E2 08 00 4C 0A 80 11 00 00 00 00 00 00 D0 [20:43:36]Write i2c OK [20:43:36]MH_I2C_Read... [20:43:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:43:36]Read from MH i2c: E2 [20:43:36]MH_I2C_Read... [20:43:36]Read from MH i2c: E2 17 00 [20:43:36]MH_I2C_Read... [20:43:36]Read from MH i2c: E2 17 00 4C 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 23 [20:43:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [20:43:36]wFMCommunicate OK [20:43:36]requested_item fd.num is exist - process it [20:43:36]SAM_PROTO_GetFieldsCounters [20:43:36]wFMCommunicate request_size=4 [20:43:36]MH_SAM_APDU [20:43:36]CAPDU: 80 13 00 00 [20:43:36]Write to MH i2c: E2 08 00 4D 0A 80 13 00 00 00 00 00 00 D3 [20:43:36]Write i2c OK [20:43:36]MH_I2C_Read... [20:43:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:43:36]Read from MH i2c: E2 [20:43:36]MH_I2C_Read... [20:43:36]Read from MH i2c: E2 62 00 [20:43:36]MH_I2C_Read... [20:43:36]Read from MH i2c: E2 62 00 4D 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 20 97 01 00 0E 04 04 00 63 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 CF [20:43:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 93 00 00 00 5E 04 04 00 93 00 00 00 57 04 04 00 94 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:43:36]wFMCommunicate OK [20:43:36]SAM_PROTO_GetFieldsCounters done [20:43:36]requested_item shift.num is exist - process it [20:43:36]requested_item shift.opened is exist - process it [20:43:36]req_shift_opened [20:43:36]FM_GetShiftState [20:43:36]SAM_PROTO_GetShiftState [20:43:36]wFMCommunicate request_size=4 [20:43:36]MH_SAM_APDU [20:43:36]CAPDU: 80 13 01 00 [20:43:36]Write to MH i2c: E2 08 00 4E 0A 80 13 01 00 00 00 00 00 D5 [20:43:36]Write i2c OK [20:43:36]MH_I2C_Read... [20:43:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:43:36]Read from MH i2c: E2 [20:43:36]MH_I2C_Read... [20:43:36]Read from MH i2c: E2 0E 00 [20:43:36]MH_I2C_Read... [20:43:36]Read from MH i2c: E2 0E 00 4E 0A 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 E8 [20:43:36]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [20:43:36]wFMCommunicate OK [20:43:36]SAM_PROTO_GetShiftState done [20:43:36]FM_GetShiftState done [20:43:36]req_shift_opened done [20:43:36]requested_item shift.open_date is exist - process it [20:43:36]req_shift_open_date [20:43:36]req_shift_open_date done [20:43:36]produce_requested_data done [20:43:36]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104224,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [20:43:36]process_action_free close_receipt [20:43:36]json_value_free [20:43:36]json_value_free done [20:43:36]process_json_proto returns [20:43:36]Send response to host [20:43:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104224,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [20:43:36]free response buf [20:43:36]execute_script done [20:43:36]execute_script returns [20:43:36]free content buf [20:43:36]Sock 7.Close socket [20:43:36]Sock 7.Thread stoped [20:43:40]OFD Sender: No OFD packet to send [20:43:45]OFD Sender: No OFD packet to send [20:43:50]OFD Sender: No OFD packet to send [20:43:55]OFD Sender: No OFD packet to send [20:44:00]OFD Sender: No OFD packet to send [20:44:05]OFD Sender: No OFD packet to send [20:44:10]OFD Sender: No OFD packet to send [20:44:15]OFD Sender: No OFD packet to send [20:44:20]OFD Sender: No OFD packet to send [20:44:23]accept exits with 9 [20:44:23]New connection [20:44:23]New thread 3067473252 created [20:44:23]Thread 3067616612 joined [20:44:23]Waiting for new connection... [20:44:23] Sock 9.Parse request [20:44:23]Sock 9.Check first char [20:44:23]Sock 9.First char is OK [20:44:23]request: POST /json_proto HTTP/1.0 [20:44:23]Method: POST [20:44:23]URL: /json_proto [20:44:23]Method is POST - this is cgi request [20:44:23]url: /json_proto [20:44:23]query_string will be loaded in cgi processing [20:44:23]execute_cgi json_proto POST (null) [20:44:23]execute_cgi path=json_proto method=POST [20:44:23]POST find Content-Length [20:44:23]Host: 172.17.38.133:8080 [20:44:23]Content-Length: 1195 [20:44:23]Content-Type: application/json [20:44:23] [20:44:23]POST finish read [20:44:23]Found Content-Length = 1195 [20:44:23]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)673702\u000A21.06.2024 20:21\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 40.000 x 73.90\u000A\u0418\u0422\u041E\u0413: 2956.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\u000A32170\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:44:23]execute_script... [20:44:23]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)673702\u000A21.06.2024 20:21\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 40.000 x 73.90\u000A\u0418\u0422\u041E\u0413: 2956.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\u000A32170\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:44:23]POST & json_proto [20:44:23]process_json_proto [20:44:23]json parsed OK: [20:44:23]protocol is kg_v1.0 [20:44:23]action value=print_text [20:44:23]process_action print_text [20:44:23]cmd_print_text [20:44:23]ExternCall_PrintAddStr [20:44:23]wPrintStart [20:44:23]Write to MH i2c: 01 00 00 4F 0A 59 [20:44:23]Write i2c OK [20:44:23]MH_I2C_Read... [20:44:23]Read from MH i2c: 01 [20:44:23]MH_I2C_Read... [20:44:23]Read from MH i2c: 01 07 00 [20:44:23]MH_I2C_Read... [20:44:23]Read from MH i2c: 01 07 00 4F 0A 00 00 00 00 00 FF 0F 6E [20:44:23]RasterBufferAndPrint [20:44:23]line *****ТОВАРНЫЙ ЧЕК***** [20:44:23]line АЗС 120 [20:44:23]line Партнер нефть [20:44:23]line 02508201610067 [20:44:23]line Кассир : Асанбаев Н. [20:44:23]line Счет N : (1)673702 [20:44:23]line 21.06.2024 20:21 [20:44:23]line ПРОДАЖА [20:44:23]line ТРК (МРК, ГНК): 31 [20:44:23]line Вид ГСМ : 2710124500 [20:44:23]line Аи-95-К-5 [20:44:23]line 40.000 x 73.90 [20:44:23]line ИТОГ: 2956.00 [20:44:23]line Тип оплаты: Талоны: Топливная Карта [20:44:23]line 32170 [20:44:23]line ______________________ [20:44:23]line (подпись) [20:44:23]written 0, free lines is 4095 [20:44:23]Write to MH i2c: 01 00 00 63 0A 6D [20:44:23]Write i2c OK [20:44:23]MH_I2C_Read... [20:44:23]Read from MH i2c: 01 [20:44:23]MH_I2C_Read... [20:44:23]Read from MH i2c: 01 07 00 [20:44:23]MH_I2C_Read... [20:44:23]Read from MH i2c: 01 07 00 63 0A 00 00 00 00 00 10 0E 92 [20:44:23]RasterBufferAndPrint [20:44:23]line [20:44:23]line [20:44:23]line [20:44:23]line [20:44:23]line [20:44:23]written 0, free lines is 3601 [20:44:23]MH_Cut [20:44:23]Write to MH i2c: D1 01 00 6A 0A 01 46 [20:44:23]Write i2c OK [20:44:23]MH_I2C_Read... [20:44:23]Read from MH i2c: D1 [20:44:23]MH_I2C_Read... [20:44:23]Read from MH i2c: D1 01 00 [20:44:23]MH_I2C_Read... [20:44:23]Read from MH i2c: D1 01 00 6A 0A 00 45 [20:44:23]Write to MH i2c: 01 00 00 6B 0A 75 [20:44:23]Write i2c OK [20:44:23]MH_I2C_Read... [20:44:24]*** Cut start [20:44:24]*** Partial cut [20:44:24]*** CUTSNS_PIN = 1 [20:44:24]*** CUTSNS_PIN = 0 [20:44:24]*** Brake cut motor [20:44:25]Read from MH i2c: 01 [20:44:25]MH_I2C_Read... [20:44:25]Read from MH i2c: 01 07 00 [20:44:25]MH_I2C_Read... [20:44:25]*** Stop cut motor [20:44:25]*** Cut end [20:44:25]Read from MH i2c: 01 07 00 6B 0A 00 00 00 00 00 FF 0F 8A [20:44:25]process_action print_text done [20:44:25]requested_data is exist [20:44:25]produce_requested_data [20:44:25]requested_item fm.sn is exist - process it [20:44:25]wFMCommunicate request_size=4 [20:44:25]MH_SAM_APDU [20:44:25]CAPDU: 80 11 00 00 [20:44:25]Write to MH i2c: E2 08 00 6C 0A 80 11 00 00 00 00 00 00 F0 [20:44:25]Write i2c OK [20:44:25]MH_I2C_Read... [20:44:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:44:25]Read from MH i2c: E2 [20:44:25]MH_I2C_Read... [20:44:25]Read from MH i2c: E2 17 00 [20:44:25]MH_I2C_Read... [20:44:25]Read from MH i2c: E2 17 00 6C 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 43 [20:44: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:44:25]wFMCommunicate OK [20:44:25]requested_item fd.num is exist - process it [20:44:25]SAM_PROTO_GetFieldsCounters [20:44:25]wFMCommunicate request_size=4 [20:44:25]MH_SAM_APDU [20:44:25]CAPDU: 80 13 00 00 [20:44:25]Write to MH i2c: E2 08 00 6D 0A 80 13 00 00 00 00 00 00 F3 [20:44:25]Write i2c OK [20:44:25]MH_I2C_Read... [20:44:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:44:25]Read from MH i2c: E2 [20:44:25]MH_I2C_Read... [20:44:25]Read from MH i2c: E2 62 00 [20:44:25]MH_I2C_Read... [20:44:25]Read from MH i2c: E2 62 00 6D 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 20 97 01 00 0E 04 04 00 63 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 EF [20:44: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 20 97 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 93 00 00 00 5E 04 04 00 93 00 00 00 57 04 04 00 94 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:44:25]wFMCommunicate OK [20:44:25]SAM_PROTO_GetFieldsCounters done [20:44:25]requested_item shift.num is exist - process it [20:44:25]requested_item shift.opened is exist - process it [20:44:25]req_shift_opened [20:44:25]FM_GetShiftState [20:44:25]SAM_PROTO_GetShiftState [20:44:25]wFMCommunicate request_size=4 [20:44:25]MH_SAM_APDU [20:44:25]CAPDU: 80 13 01 00 [20:44:25]Write to MH i2c: E2 08 00 6E 0A 80 13 01 00 00 00 00 00 F5 [20:44:25]Write i2c OK [20:44:25]MH_I2C_Read... [20:44:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:44:25]Read from MH i2c: E2 [20:44:25]MH_I2C_Read... [20:44:25]Read from MH i2c: E2 0E 00 [20:44:25]MH_I2C_Read... [20:44:25]Read from MH i2c: E2 0E 00 6E 0A 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 08 [20:44:25]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [20:44:25]wFMCommunicate OK [20:44:25]SAM_PROTO_GetShiftState done [20:44:25]FM_GetShiftState done [20:44:25]req_shift_opened done [20:44:25]requested_item shift.open_date is exist - process it [20:44:25]req_shift_open_date [20:44:25]req_shift_open_date done [20:44:25]produce_requested_data done [20:44:25]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104224,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [20:44:25]process_action_free print_text [20:44:25]json_value_free [20:44:25]json_value_free done [20:44:25]process_json_proto returns [20:44:25]Send response to host [20:44:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104224,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [20:44:25]free response buf [20:44:25]execute_script done [20:44:25]execute_script returns [20:44:25]free content buf [20:44:25]Sock 9.Close socket [20:44:25]Sock 9.Thread stoped [20:44:25]OFD Sender: No OFD packet to send [20:44:30]OFD Sender: No OFD packet to send [20:44:35]OFD Sender: No OFD packet to send [20:44:40]OFD Sender: No OFD packet to send [20:44:45]OFD Sender: No OFD packet to send [20:44:50]OFD Sender: No OFD packet to send [20:44:55]OFD Sender: No OFD packet to send [20:45:00]OFD Sender: No OFD packet to send [20:45:05]OFD Sender: No OFD packet to send [20:45:10]OFD Sender: No OFD packet to send [20:45:15]OFD Sender: No OFD packet to send [20:45:20]OFD Sender: No OFD packet to send [20:45:25]OFD Sender: No OFD packet to send [20:45:30]OFD Sender: No OFD packet to send [20:45:35]OFD Sender: No OFD packet to send [20:45:40]OFD Sender: No OFD packet to send [20:45:45]OFD Sender: No OFD packet to send [20:45:50]OFD Sender: No OFD packet to send [20:45:55]OFD Sender: No OFD packet to send [20:46:00]OFD Sender: No OFD packet to send [20:46:05]OFD Sender: No OFD packet to send [20:46:10]OFD Sender: No OFD packet to send [20:46:15]OFD Sender: No OFD packet to send [20:46:20]OFD Sender: No OFD packet to send [20:46:21]accept exits with 7 [20:46:21]New connection [20:46:21]New thread 3067616612 created [20:46:21]Thread 3067473252 joined [20:46:21]Waiting for new connection... [20:46:21] Sock 7.Parse request [20:46:21]Sock 7.Check first char [20:46:21]Sock 7.First char is OK [20:46:21]request: POST /json_proto HTTP/1.0 [20:46:21]Method: POST [20:46:21]URL: /json_proto [20:46:21]Method is POST - this is cgi request [20:46:21]url: /json_proto [20:46:21]query_string will be loaded in cgi processing [20:46:21]execute_cgi json_proto POST (null) [20:46:21]execute_cgi path=json_proto method=POST [20:46:21]POST find Content-Length [20:46:21]Host: 172.17.38.133:8080 [20:46:21]Content-Length: 1200 [20:46:21]Content-Type: application/json [20:46:21] [20:46:21]POST finish read [20:46:21]Found Content-Length = 1200 [20:46: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 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)673704\u000A21.06.2024 20:23\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\u000A01088\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:46:21]execute_script... [20:46: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 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)673704\u000A21.06.2024 20:23\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\u000A01088\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:46:21]POST & json_proto [20:46:21]process_json_proto [20:46:21]json parsed OK: [20:46:21]protocol is kg_v1.0 [20:46:21]action value=print_text [20:46:21]process_action print_text [20:46:21]cmd_print_text [20:46:21]ExternCall_PrintAddStr [20:46:21]wPrintStart [20:46:21]Write to MH i2c: 01 00 00 6F 0A 79 [20:46:21]Write i2c OK [20:46:21]MH_I2C_Read... [20:46:21]Read from MH i2c: 01 [20:46:21]MH_I2C_Read... [20:46:21]Read from MH i2c: 01 07 00 [20:46:21]MH_I2C_Read... [20:46:21]Read from MH i2c: 01 07 00 6F 0A 00 00 00 00 00 FF 0F 8E [20:46:21]RasterBufferAndPrint [20:46:21]line *****ТОВАРНЫЙ ЧЕК***** [20:46:21]line АЗС 120 [20:46:21]line Партнер нефть [20:46:21]line 02508201610067 [20:46:21]line Кассир : Асанбаев Н. [20:46:21]line Счет N : (1)673704 [20:46:21]line 21.06.2024 20:23 [20:46:21]line ПРОДАЖА [20:46:21]line ТРК (МРК, ГНК): 11 [20:46:21]line Вид ГСМ : 2710194210 [20:46:21]line ДТ(л)-К-5 [20:46:21]line 27.440 x 72.90 [20:46:21]line ИТОГ: 2000.38 [20:46:21]line Тип оплаты: Талоны: Топливная Карта [20:46:21]line 01088 [20:46:21]line ______________________ [20:46:21]line (подпись) [20:46:21]written 0, free lines is 4095 [20:46:21]Write to MH i2c: 01 00 00 83 0A 8D [20:46:21]Write i2c OK [20:46:21]MH_I2C_Read... [20:46:21]Read from MH i2c: 01 [20:46:21]MH_I2C_Read... [20:46:21]Read from MH i2c: 01 07 00 [20:46:21]MH_I2C_Read... [20:46:21]Read from MH i2c: 01 07 00 83 0A 00 00 00 00 00 0F 0E B1 [20:46:21]RasterBufferAndPrint [20:46:21]line [20:46:21]line [20:46:21]line [20:46:21]line [20:46:21]line [20:46:21]written 0, free lines is 3601 [20:46:21]MH_Cut [20:46:21]Write to MH i2c: D1 01 00 8A 0A 01 66 [20:46:21]Write i2c OK [20:46:21]MH_I2C_Read... [20:46:21]Read from MH i2c: D1 [20:46:21]MH_I2C_Read... [20:46:21]Read from MH i2c: D1 01 00 [20:46:21]MH_I2C_Read... [20:46:21]Read from MH i2c: D1 01 00 8A 0A 00 65 [20:46:21]Write to MH i2c: 01 00 00 8B 0A 95 [20:46:21]Write i2c OK [20:46:21]MH_I2C_Read... [20:46:21]*** Cut start [20:46:21]*** Partial cut [20:46:21]*** CUTSNS_PIN = 1 [20:46:21]*** CUTSNS_PIN = 0 [20:46:22]*** Brake cut motor [20:46:22]Read from MH i2c: 01 [20:46:22]MH_I2C_Read... [20:46:22]*** Stop cut motor [20:46:22]*** Cut end [20:46:22]Read from MH i2c: 01 07 00 [20:46:22]MH_I2C_Read... [20:46:22]Read from MH i2c: 01 07 00 8B 0A 00 00 00 00 00 FF 0F AA [20:46:22]process_action print_text done [20:46:22]requested_data is exist [20:46:22]produce_requested_data [20:46:22]requested_item fm.sn is exist - process it [20:46:22]wFMCommunicate request_size=4 [20:46:22]MH_SAM_APDU [20:46:22]CAPDU: 80 11 00 00 [20:46:22]Write to MH i2c: E2 08 00 8C 0A 80 11 00 00 00 00 00 00 10 [20:46:22]Write i2c OK [20:46:22]MH_I2C_Read... [20:46:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:46:22]Read from MH i2c: E2 [20:46:22]MH_I2C_Read... [20:46:22]Read from MH i2c: E2 17 00 [20:46:22]MH_I2C_Read... [20:46:22]Read from MH i2c: E2 17 00 8C 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 63 [20:46:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [20:46:22]wFMCommunicate OK [20:46:22]requested_item fd.num is exist - process it [20:46:22]SAM_PROTO_GetFieldsCounters [20:46:22]wFMCommunicate request_size=4 [20:46:22]MH_SAM_APDU [20:46:22]CAPDU: 80 13 00 00 [20:46:22]Write to MH i2c: E2 08 00 8D 0A 80 13 00 00 00 00 00 00 13 [20:46:22]Write i2c OK [20:46:22]MH_I2C_Read... [20:46:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:46:22]Read from MH i2c: E2 [20:46:22]MH_I2C_Read... [20:46:22]Read from MH i2c: E2 62 00 [20:46:22]MH_I2C_Read... [20:46:22]Read from MH i2c: E2 62 00 8D 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 20 97 01 00 0E 04 04 00 63 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 0F [20:46:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 93 00 00 00 5E 04 04 00 93 00 00 00 57 04 04 00 94 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:46:22]wFMCommunicate OK [20:46:22]SAM_PROTO_GetFieldsCounters done [20:46:22]requested_item shift.num is exist - process it [20:46:22]requested_item shift.opened is exist - process it [20:46:22]req_shift_opened [20:46:22]FM_GetShiftState [20:46:22]SAM_PROTO_GetShiftState [20:46:22]wFMCommunicate request_size=4 [20:46:22]MH_SAM_APDU [20:46:22]CAPDU: 80 13 01 00 [20:46:22]Write to MH i2c: E2 08 00 8E 0A 80 13 01 00 00 00 00 00 15 [20:46:22]Write i2c OK [20:46:22]MH_I2C_Read... [20:46:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:46:22]Read from MH i2c: E2 [20:46:22]MH_I2C_Read... [20:46:22]Read from MH i2c: E2 0E 00 [20:46:22]MH_I2C_Read... [20:46:22]Read from MH i2c: E2 0E 00 8E 0A 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 28 [20:46:22]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [20:46:22]wFMCommunicate OK [20:46:22]SAM_PROTO_GetShiftState done [20:46:22]FM_GetShiftState done [20:46:22]req_shift_opened done [20:46:22]requested_item shift.open_date is exist - process it [20:46:22]req_shift_open_date [20:46:22]req_shift_open_date done [20:46:22]produce_requested_data done [20:46:22]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104224,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [20:46:22]process_action_free print_text [20:46:22]json_value_free [20:46:22]json_value_free done [20:46:22]process_json_proto returns [20:46:22]Send response to host [20:46:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104224,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [20:46:22]free response buf [20:46:22]execute_script done [20:46:22]execute_script returns [20:46:22]free content buf [20:46:22]Sock 7.Close socket [20:46:22]Sock 7.Thread stoped [20:46:25]OFD Sender: No OFD packet to send [20:46:30]OFD Sender: No OFD packet to send [20:46:35]OFD Sender: No OFD packet to send [20:46:40]OFD Sender: No OFD packet to send [20:46:45]OFD Sender: No OFD packet to send [20:46:50]OFD Sender: No OFD packet to send [20:46:55]OFD Sender: No OFD packet to send [20:47:00]OFD Sender: No OFD packet to send [20:47:05]OFD Sender: No OFD packet to send [20:47:10]OFD Sender: No OFD packet to send [20:47:16]OFD Sender: No OFD packet to send [20:47:21]OFD Sender: No OFD packet to send [20:47:26]OFD Sender: No OFD packet to send [20:47:31]OFD Sender: No OFD packet to send [20:47:36]OFD Sender: No OFD packet to send [20:47:41]OFD Sender: No OFD packet to send [20:47:46]OFD Sender: No OFD packet to send [20:47:51]OFD Sender: No OFD packet to send [20:47:56]OFD Sender: No OFD packet to send [20:48:01]OFD Sender: No OFD packet to send [20:48:06]OFD Sender: No OFD packet to send [20:48:11]OFD Sender: No OFD packet to send [20:48:16]OFD Sender: No OFD packet to send [20:48:21]OFD Sender: No OFD packet to send [20:48:26]OFD Sender: No OFD packet to send [20:48:31]OFD Sender: No OFD packet to send [20:48:36]OFD Sender: No OFD packet to send [20:48:41]OFD Sender: No OFD packet to send [20:48:46]OFD Sender: No OFD packet to send [20:48:51]OFD Sender: No OFD packet to send [20:48:56]OFD Sender: No OFD packet to send [20:49:01]OFD Sender: No OFD packet to send [20:49:03]accept exits with 10 [20:49:03]New connection [20:49:03]New thread 3067473252 created [20:49:03]Thread 3067616612 joined [20:49:03]Waiting for new connection... [20:49:03] Sock 10.Parse request [20:49:03]Sock 10.Check first char [20:49:03]Sock 10.First char is OK [20:49:03]request: POST /json_proto HTTP/1.0 [20:49:03]Method: POST [20:49:03]URL: /json_proto [20:49:03]Method is POST - this is cgi request [20:49:03]url: /json_proto [20:49:03]query_string will be loaded in cgi processing [20:49:03]execute_cgi json_proto POST (null) [20:49:03]execute_cgi path=json_proto method=POST [20:49:03]POST find Content-Length [20:49:03]Host: 172.17.38.133:8080 [20:49:03]Content-Length: 803 [20:49:03]Content-Type: application/json [20:49:03] [20:49:03]POST finish read [20:49:03]Found Content-Length = 803 [20:49:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673707", "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.000, "sum" : 1328.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" : 1328.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:49:03]execute_script... [20:49: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)673707", "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.000, "sum" : 1328.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" : 1328.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:49:03]POST & json_proto [20:49:03]process_json_proto [20:49:03]json parsed OK: [20:49:03]protocol is kg_v1.0 [20:49:03]action value=close_receipt [20:49:03]process_action close_receipt [20:49:03]cmd_close_receipt [20:49:03]MH_GetDate [20:49:03]Write to MH i2c: F0 00 00 8F 0A 88 [20:49:03]Write i2c OK [20:49:03]MH_I2C_Read... [20:49:03]Read from MH i2c: F0 [20:49:03]MH_I2C_Read... [20:49:03]Read from MH i2c: F0 09 00 [20:49:03]MH_I2C_Read... [20:49:03]Read from MH i2c: F0 09 00 8F 0A 00 41 E7 75 66 BD 8F 7C 64 C0 [20:49:03]GetLastDocTimeStamp 1719002614 [20:49:03]current date 1719002945 [20:49:03]FM_GetShiftState [20:49:03]SAM_PROTO_GetShiftState [20:49:03]wFMCommunicate request_size=4 [20:49:03]MH_SAM_APDU [20:49:03]CAPDU: 80 13 01 00 [20:49:03]Write to MH i2c: E2 08 00 90 0A 80 13 01 00 00 00 00 00 17 [20:49:03]Write i2c OK [20:49:03]MH_I2C_Read... [20:49:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:49:03]Read from MH i2c: E2 [20:49:03]MH_I2C_Read... [20:49:03]Read from MH i2c: E2 0E 00 [20:49:03]MH_I2C_Read... [20:49:03]Read from MH i2c: E2 0E 00 90 0A 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 2A [20:49:03]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [20:49:03]wFMCommunicate OK [20:49:03]SAM_PROTO_GetShiftState done [20:49:03]FM_GetShiftState done [20:49:03]opened in 1718929509 [20:49:03]opened+sec_in_day 1719015909 [20:49:03]quantity*price = 132800 [20:49:03]sum+1 = 132801 [20:49:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1328.00 НСП 1% : 11.75 НДС 12% : 141.03 Наличными: 0.00 Безнал.: 1328.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 148 21.06.2024 20:49 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875093 ФД: 104225 ФПД: 265395488264536 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T204905&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104225&fm=265395488264536&tin=02508201610067®Number=0000000000092785&sum=132800 [20:49:04]StoreToDocumentArchive [20:49:04]shift 355 fd 104225 [20:49:04]save to /storage/0355/doc_00104225 [20:49:04]save last doc name /storage/0355/doc_00104225 to /storage/kkm_last_doc_name [20:49:04]save OK [20:49:04]Clear old archive folders... [20:49:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:49:04]tlvbuf is 0067B530 [20:49:04]SAM_PROTO_ClearQueue [20:49:04]wFMCommunicate request_size=4 [20:49:04]MH_SAM_APDU [20:49:04]CAPDU: 80 09 00 00 [20:49:04]Write to MH i2c: E2 08 00 9D 0A 80 09 00 00 00 00 00 00 19 [20:49:04]Write i2c OK [20:49:04]MH_I2C_Read... [20:49:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:49:04]Read from MH i2c: E2 [20:49:04]MH_I2C_Read... [20:49:04]Read from MH i2c: E2 03 00 [20:49:04]MH_I2C_Read... [20:49:04]Read from MH i2c: E2 03 00 9D 0A 00 90 00 1B [20:49:04]RAPDU: 90 00 [20:49:04]wFMCommunicate OK [20:49:04]SAM_PROTO_ClearQueue done [20:49:04]KKMCreateOFDPacket [20:49:04]OFDProtocolAddRootSTLVToBuf [20:49:04]FM_MakeSignedData [20:49:04]FM_MakeSignedData [20:49:04]SAM_PROTO_SignData [20:49:04]wFMCommunicate request_size=4 [20:49:04]MH_SAM_APDU [20:49:04]CAPDU: 80 0D 01 02 [20:49:04]Write to MH i2c: E2 08 00 9E 0A 80 0D 01 02 00 00 00 00 21 [20:49:04]Write i2c OK [20:49:04]MH_I2C_Read... [20:49:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:49:04]Read from MH i2c: E2 [20:49:04]MH_I2C_Read... [20:49:04]Read from MH i2c: E2 03 00 [20:49:04]MH_I2C_Read... [20:49:04]Read from MH i2c: E2 03 00 9E 0A 00 90 00 1C [20:49:04]RAPDU: 90 00 [20:49:04]wFMCommunicate OK [20:49:04]wFMCommunicate request_size=255 [20:49:04]MH_SAM_APDU [20:49: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 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 00 00 00 00 00 00 39 04 06 00 C0 06 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 41 E7 75 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 21 97 01 00 35 04 06 00 F1 [20:49:04]Write to MH i2c: E2 02 01 9F 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 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 00 00 00 00 00 00 39 04 06 00 C0 06 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 41 E7 75 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 21 97 01 00 35 04 06 00 F1 00 00 8E [20:49:04]Write i2c OK [20:49:04]MH_I2C_Read... [20:49:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:49:05]Read from MH i2c: E2 [20:49:05]MH_I2C_Read... [20:49:05]Read from MH i2c: E2 03 00 [20:49:05]MH_I2C_Read... [20:49:05]Read from MH i2c: E2 03 00 9F 0A 00 90 00 1D [20:49:05]RAPDU: 90 00 [20:49:05]wFMCommunicate OK [20:49:05]wFMCommunicate request_size=10 [20:49:05]MH_SAM_APDU [20:49:05]CAPDU: 80 0D 02 02 05 60 33 CD 91 58 [20:49:05]Write to MH i2c: E2 0D 00 A0 0A 80 0D 02 02 05 00 60 33 CD 91 58 00 00 77 [20:49:05]Write i2c OK [20:49:05]MH_I2C_Read... [20:49:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:49:05]Read from MH i2c: E2 [20:49:05]MH_I2C_Read... [20:49:05]Read from MH i2c: E2 03 00 [20:49:05]MH_I2C_Read... [20:49:05]Read from MH i2c: E2 03 00 A0 0A 00 90 00 1E [20:49:05]RAPDU: 90 00 [20:49:05]wFMCommunicate OK [20:49:05]wFMCommunicate request_size=4 [20:49:05]MH_SAM_APDU [20:49:05]CAPDU: 80 0D 03 02 [20:49:05]Write to MH i2c: E2 08 00 A1 0A 80 0D 03 02 00 00 00 00 26 [20:49:05]Write i2c OK [20:49:05]MH_I2C_Read... [20:49:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:49:05]Read from MH i2c: E2 [20:49:05]MH_I2C_Read... [20:49:05]Read from MH i2c: E2 0B 00 [20:49:05]MH_I2C_Read... [20:49:05]Read from MH i2c: E2 0B 00 A1 0A 00 2A DF 40 B0 EE 97 52 BD 90 00 B4 [20:49:05]RAPDU: 2A DF 40 B0 EE 97 52 BD 90 00 [20:49:05]wFMCommunicate OK [20:49:05]SAM_PROTO_SignData done [20:49:05]FM_MakeSignedData done [20:49:05]CreateOFDProtocolMessage [20:49:05]wFMCommunicate request_size=4 [20:49:05]MH_SAM_APDU [20:49:05]CAPDU: 80 11 00 00 [20:49:05]Write to MH i2c: E2 08 00 A2 0A 80 11 00 00 00 00 00 00 26 [20:49:05]Write i2c OK [20:49:05]MH_I2C_Read... [20:49:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:49:05]Read from MH i2c: E2 [20:49:05]MH_I2C_Read... [20:49:05]Read from MH i2c: E2 17 00 [20:49:05]MH_I2C_Read... [20:49:05]Read from MH i2c: E2 17 00 A2 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 79 [20:49: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:49:05]wFMCommunicate OK [20:49:05]CreateOFDProtocolMessage done [20:49:05]OFDSenderStorePacket 104225 [20:49:05]StoreOFDPacket docnum=104225 [20:49: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 13 DA 07 01 F3 82 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 00 00 00 00 00 00 39 04 06 00 C0 06 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 41 E7 75 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 21 97 01 00 35 04 06 00 F1 60 33 CD 91 58 2A DF 40 B0 EE 97 52 BD [20:49:05]CheckFolder [20:49:05]dirname=/storage/ofd_packets [20:49:05]CheckFolder done [20:49:05]ProducePacketName [20:49:05]name=ofd_packets/00104225 [20:49:05]NVStorageSaveData ofd_packets/00104225 [20:49:05]File name is /storage/ofd_packets/00104225 [20:49:05]Write 301 bytes [20:49:05]NVStorageSaveData done [20:49:05]OFDSenderStorePacket done [20:49:05]KKMCreateOFDPacket done [20:49:05]NVStorageSaveData kkm_last_timestamp [20:49:05]File name is /storage/kkm_last_timestamp [20:49:05]Write 4 bytes [20:49:05]NVStorageSaveData done [20:49:05]ExternCall_PrintAddStr [20:49:05]wPrintStart [20:49:05]Write to MH i2c: 01 00 00 A3 0A AD [20:49:05]Write i2c OK [20:49:05]MH_I2C_Read... [20:49:05]Read from MH i2c: 01 [20:49:05]MH_I2C_Read... [20:49:05]Read from MH i2c: 01 07 00 [20:49:05]MH_I2C_Read... [20:49:05]Read from MH i2c: 01 07 00 A3 0A 00 00 00 00 00 FF 0F C2 [20:49:05]RasterBufferAndPrint [20:49:05]line Счет N : (1)673707 [20:49:05]line ИНН: 02508201610067 [20:49:05]line Контрольно-Кассовый Чек [20:49:05]line ПРОДАЖА [20:49:05]line ТРК (МРК, ГНК) : 42 [20:49:05]line Товар: 2710124130 [20:49:05]line Аи-92-К-5 [20:49:05]line 20.000 * 66.40 [20:49:05]line = 1328.00 [20:49:05]line НДС 12% НСП 1% [20:49:05]line > о реализуемом товаре [20:49:05]line ИТОГО: 1328.00 [20:49:05]line НСП 1% : 11.75 [20:49:05]line НДС 12% : 141.03 [20:49:05]line Наличными: 0.00 [20:49:05]line Безнал.: 1328.00 [20:49:05]line Место: АЗС № 120 "Партнер Нефть" [20:49:05]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [20:49:05]line СНО: Общий режим [20:49:05]line Чек 148 21.06.2024 20:49 [20:49:05]line Смена: 355 ФФД: 1.0 [20:49:05]line ЗНМ: 0300000164 [20:49:05]line РНМ: 0000000000092785 [20:49:05]line Версия ККМ: 001 [20:49:05]line Платежная система: O! деньги [20:49:05]line ФМ: 0000000000875093 [20:49:05]line ФД: 104225 [20:49:05]line ФПД: 265395488264536 [20:49:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T204905&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104225&fm=265395488264536&tin=02508201610067®Number=0000000000092785&sum=132800 [20:49:05]OFD Sender: Processing packet 104225 [packets to send 17, broken 16] [20:49:05]ProducePacketName [20:49:05]name=ofd_packets/00104225 [20:49:05]OFD Sender: To server: pG, [20:49:05]CommunicateWithHost lk.salyk.kg:30040 [20:49:05]ConnectInit lk.salyk.kg [20:49:05]written 0, free lines is 4095 [20:49:05]Connected sock=9 [20:49: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 13 DA 07 01 F3 82 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 00 00 00 00 00 00 39 04 06 00 C0 06 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 41 E7 75 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 21 97 01 00 35 04 06 00 F1 60 33 CD 91 58 2A DF 40 B0 EE 97 52 BD [20:49: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 6F 5F 47 00 2C 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 21 97 01 00 F4 03 04 00 C2 8D 75 66 B6 04 01 00 00 FC C4 11 16 44 0F 37 B3 [20:49:06]CommunicateWithHost err = 0 [20:49:06]CheckOFDResponse [20:49:06]1017 (14) - 77093643461234 [20:49:06]1041 (16) - 0000000000875093 [20:49:06]1040 (4) - 104225 [20:49:06]1012 (4) - 21.06.2024 14:27 [20:49:06]1206 (1) - 0 [20:49:06]OFD Sender: Remove packet 104225 [20:49:06]ProducePacketName [20:49:06]name=ofd_packets/00104225 [20:49:06]NVStorageDeleteData [20:49:06]Write to MH i2c: 01 00 00 CD 0A D7 [20:49:06]Write i2c OK [20:49:06]MH_I2C_Read... [20:49:06]Read from MH i2c: 01 [20:49:06]MH_I2C_Read... [20:49:06]Read from MH i2c: 01 07 00 [20:49:06]MH_I2C_Read... [20:49:06]Read from MH i2c: 01 07 00 CD 0A 00 00 00 00 00 F6 0C E0 [20:49:06]RasterBufferAndPrint [20:49:06]line [20:49:06]line [20:49:06]line [20:49:06]line [20:49:06]line [20:49:06]written 0, free lines is 3326 [20:49:06]MH_Cut [20:49:06]Write to MH i2c: D1 01 00 D4 0A 01 B0 [20:49:06]Write i2c OK [20:49:06]MH_I2C_Read... [20:49:06]Read from MH i2c: D1 [20:49:06]MH_I2C_Read... [20:49:06]Read from MH i2c: D1 01 00 [20:49:06]MH_I2C_Read... [20:49:06]Read from MH i2c: D1 01 00 D4 0A 00 AF [20:49:06]Write to MH i2c: 01 00 00 D5 0A DF [20:49:06]Write i2c OK [20:49:06]MH_I2C_Read... [20:49:06]OFD Sender: No OFD packet to send [20:49:06]*** Cut start [20:49:06]*** Partial cut [20:49:06]*** CUTSNS_PIN = 1 [20:49:06]*** CUTSNS_PIN = 0 [20:49:07]*** Brake cut motor [20:49:07]Read from MH i2c: 01 [20:49:07]MH_I2C_Read... [20:49:07]*** Stop cut motor [20:49:07]*** Cut end [20:49:07]Read from MH i2c: 01 07 00 [20:49:07]MH_I2C_Read... [20:49:07]Read from MH i2c: 01 07 00 D5 0A 00 00 00 00 00 FF 0F F4 [20:49:07]process_action close_receipt done [20:49:07]requested_data is exist [20:49:07]produce_requested_data [20:49:07]requested_item fm.sn is exist - process it [20:49:07]wFMCommunicate request_size=4 [20:49:07]MH_SAM_APDU [20:49:07]CAPDU: 80 11 00 00 [20:49:07]Write to MH i2c: E2 08 00 D6 0A 80 11 00 00 00 00 00 00 5A [20:49:07]Write i2c OK [20:49:07]MH_I2C_Read... [20:49:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:49:07]Read from MH i2c: E2 [20:49:07]MH_I2C_Read... [20:49:07]Read from MH i2c: E2 17 00 [20:49:07]MH_I2C_Read... [20:49:07]Read from MH i2c: E2 17 00 D6 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 AD [20:49: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:49:07]wFMCommunicate OK [20:49:07]requested_item fd.num is exist - process it [20:49:07]SAM_PROTO_GetFieldsCounters [20:49:07]wFMCommunicate request_size=4 [20:49:07]MH_SAM_APDU [20:49:07]CAPDU: 80 13 00 00 [20:49:07]Write to MH i2c: E2 08 00 D7 0A 80 13 00 00 00 00 00 00 5D [20:49:07]Write i2c OK [20:49:07]MH_I2C_Read... [20:49:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:49:07]Read from MH i2c: E2 [20:49:07]MH_I2C_Read... [20:49:07]Read from MH i2c: E2 62 00 [20:49:07]MH_I2C_Read... [20:49:07]Read from MH i2c: E2 62 00 D7 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 21 97 01 00 0E 04 04 00 63 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 5D [20:49: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 21 97 01 00 0E 04 04 00 63 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 [20:49:07]wFMCommunicate OK [20:49:07]SAM_PROTO_GetFieldsCounters done [20:49:07]requested_item shift.num is exist - process it [20:49:07]requested_item shift.opened is exist - process it [20:49:07]req_shift_opened [20:49:07]FM_GetShiftState [20:49:07]SAM_PROTO_GetShiftState [20:49:07]wFMCommunicate request_size=4 [20:49:07]MH_SAM_APDU [20:49:07]CAPDU: 80 13 01 00 [20:49:07]Write to MH i2c: E2 08 00 D8 0A 80 13 01 00 00 00 00 00 5F [20:49:07]Write i2c OK [20:49:07]MH_I2C_Read... [20:49:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:49:07]Read from MH i2c: E2 [20:49:07]MH_I2C_Read... [20:49:07]Read from MH i2c: E2 0E 00 [20:49:07]MH_I2C_Read... [20:49:07]Read from MH i2c: E2 0E 00 D8 0A 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 72 [20:49:07]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [20:49:07]wFMCommunicate OK [20:49:07]SAM_PROTO_GetShiftState done [20:49:07]FM_GetShiftState done [20:49:07]req_shift_opened done [20:49:07]requested_item shift.open_date is exist - process it [20:49:07]req_shift_open_date [20:49:07]req_shift_open_date done [20:49:07]produce_requested_data done [20:49:07]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104225,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [20:49:07]process_action_free close_receipt [20:49:07]json_value_free [20:49:07]json_value_free done [20:49:07]process_json_proto returns [20:49:07]Send response to host [20:49:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104225,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [20:49:07]free response buf [20:49:07]execute_script done [20:49:07]execute_script returns [20:49:07]free content buf [20:49:07]Sock 10.Close socket [20:49:07]Sock 10.Thread stoped [20:49:11]OFD Sender: No OFD packet to send [20:49:13]accept exits with 7 [20:49:13]New connection [20:49:13]New thread 3067616612 created [20:49:13]Thread 3067473252 joined [20:49:13]Waiting for new connection... [20:49:13] Sock 7.Parse request [20:49:13]Sock 7.Check first char [20:49:13]Sock 7.First char is OK [20:49:13]request: POST /json_proto HTTP/1.0 [20:49:13]Method: POST [20:49:13]URL: /json_proto [20:49:13]Method is POST - this is cgi request [20:49:13]url: /json_proto [20:49:13]query_string will be loaded in cgi processing [20:49:13]execute_cgi json_proto POST (null) [20:49:13]execute_cgi path=json_proto method=POST [20:49:13]POST find Content-Length [20:49:13]Host: 172.17.38.133:8080 [20:49:13]Content-Length: 1198 [20:49:13]Content-Type: application/json [20:49:13] [20:49:13]POST finish read [20:49:13]Found Content-Length = 1198 [20:49: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 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)673706\u000A21.06.2024 20:26\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\u000A3750950;3750946\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:49:13]execute_script... [20:49: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 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)673706\u000A21.06.2024 20:26\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\u000A3750950;3750946\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:49:13]POST & json_proto [20:49:13]process_json_proto [20:49:13]json parsed OK: [20:49:13]protocol is kg_v1.0 [20:49:13]action value=print_text [20:49:13]process_action print_text [20:49:13]cmd_print_text [20:49:13]ExternCall_PrintAddStr [20:49:13]wPrintStart [20:49:13]Write to MH i2c: 01 00 00 D9 0A E3 [20:49:13]Write i2c OK [20:49:13]MH_I2C_Read... [20:49:13]Read from MH i2c: 01 [20:49:13]MH_I2C_Read... [20:49:13]Read from MH i2c: 01 07 00 [20:49:13]MH_I2C_Read... [20:49:13]Read from MH i2c: 01 07 00 D9 0A 00 00 00 00 00 FF 0F F8 [20:49:13]RasterBufferAndPrint [20:49:13]line *****ТОВАРНЫЙ ЧЕК***** [20:49:13]line АЗС 120 [20:49:13]line Партнер нефть [20:49:13]line 02508201610067 [20:49:13]line Кассир : Асанбаев Н. [20:49:13]line Счет N : (1)673706 [20:49:13]line 21.06.2024 20:26 [20:49:13]line ПРОДАЖА [20:49:13]line ТРК (МРК, ГНК): 21 [20:49:13]line Вид ГСМ : 2710194210 [20:49:13]line ДТ(л)-К-5 [20:49:13]line 20.000 x 72.90 [20:49:13]line ИТОГ: 1458.00 [20:49:13]line Тип оплаты: Талоны: Партнер нефть [20:49:13]line 3750950;3750946 [20:49:13]line ______________________ [20:49:13]line (подпись) [20:49:13]written 0, free lines is 4095 [20:49:13]Write to MH i2c: 01 00 00 ED 0A F7 [20:49:13]Write i2c OK [20:49:13]MH_I2C_Read... [20:49:13]Read from MH i2c: 01 [20:49:13]MH_I2C_Read... [20:49:13]Read from MH i2c: 01 07 00 [20:49:13]MH_I2C_Read... [20:49:13]Read from MH i2c: 01 07 00 ED 0A 00 00 00 00 00 15 0E 21 [20:49:13]RasterBufferAndPrint [20:49:13]line [20:49:13]line [20:49:13]line [20:49:13]line [20:49:13]line [20:49:13]written 0, free lines is 3607 [20:49:13]MH_Cut [20:49:13]Write to MH i2c: D1 01 00 F4 0A 01 D0 [20:49:13]Write i2c OK [20:49:13]MH_I2C_Read... [20:49:13]Read from MH i2c: D1 [20:49:13]MH_I2C_Read... [20:49:13]Read from MH i2c: D1 01 00 [20:49:13]MH_I2C_Read... [20:49:13]Read from MH i2c: D1 01 00 F4 0A 00 CF [20:49:13]Write to MH i2c: 01 00 00 F5 0A FF [20:49:13]Write i2c OK [20:49:13]MH_I2C_Read... [20:49:14]*** Cut start [20:49:14]*** Partial cut [20:49:14]*** CUTSNS_PIN = 1 [20:49:14]*** CUTSNS_PIN = 0 [20:49:14]*** Brake cut motor [20:49:14]Read from MH i2c: 01 [20:49:14]MH_I2C_Read... [20:49:14]*** Stop cut motor [20:49:14]*** Cut end [20:49:14]Read from MH i2c: 01 07 00 [20:49:14]MH_I2C_Read... [20:49:14]Read from MH i2c: 01 07 00 F5 0A 00 00 00 00 00 FF 0F 14 [20:49:14]process_action print_text done [20:49:14]requested_data is exist [20:49:14]produce_requested_data [20:49:14]requested_item fm.sn is exist - process it [20:49:14]wFMCommunicate request_size=4 [20:49:14]MH_SAM_APDU [20:49:14]CAPDU: 80 11 00 00 [20:49:14]Write to MH i2c: E2 08 00 F6 0A 80 11 00 00 00 00 00 00 7A [20:49:14]Write i2c OK [20:49:14]MH_I2C_Read... [20:49:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:49:14]Read from MH i2c: E2 [20:49:14]MH_I2C_Read... [20:49:14]Read from MH i2c: E2 17 00 [20:49:14]MH_I2C_Read... [20:49:14]Read from MH i2c: E2 17 00 F6 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 CD [20:49: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:49:14]wFMCommunicate OK [20:49:14]requested_item fd.num is exist - process it [20:49:14]SAM_PROTO_GetFieldsCounters [20:49:14]wFMCommunicate request_size=4 [20:49:14]MH_SAM_APDU [20:49:14]CAPDU: 80 13 00 00 [20:49:14]Write to MH i2c: E2 08 00 F7 0A 80 13 00 00 00 00 00 00 7D [20:49:14]Write i2c OK [20:49:14]MH_I2C_Read... [20:49:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:49:14]Read from MH i2c: E2 [20:49:14]MH_I2C_Read... [20:49:14]Read from MH i2c: E2 62 00 [20:49:14]MH_I2C_Read... [20:49:14]Read from MH i2c: E2 62 00 F7 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 21 97 01 00 0E 04 04 00 63 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 7D [20:49:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 63 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 [20:49:14]wFMCommunicate OK [20:49:14]SAM_PROTO_GetFieldsCounters done [20:49:14]requested_item shift.num is exist - process it [20:49:14]requested_item shift.opened is exist - process it [20:49:14]req_shift_opened [20:49:14]FM_GetShiftState [20:49:14]SAM_PROTO_GetShiftState [20:49:14]wFMCommunicate request_size=4 [20:49:14]MH_SAM_APDU [20:49:14]CAPDU: 80 13 01 00 [20:49:14]Write to MH i2c: E2 08 00 F8 0A 80 13 01 00 00 00 00 00 7F [20:49:14]Write i2c OK [20:49:14]MH_I2C_Read... [20:49:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:49:14]Read from MH i2c: E2 [20:49:14]MH_I2C_Read... [20:49:14]Read from MH i2c: E2 0E 00 [20:49:14]MH_I2C_Read... [20:49:14]Read from MH i2c: E2 0E 00 F8 0A 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 92 [20:49:14]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [20:49:14]wFMCommunicate OK [20:49:14]SAM_PROTO_GetShiftState done [20:49:14]FM_GetShiftState done [20:49:14]req_shift_opened done [20:49:14]requested_item shift.open_date is exist - process it [20:49:14]req_shift_open_date [20:49:14]req_shift_open_date done [20:49:14]produce_requested_data done [20:49:14]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104225,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [20:49:14]process_action_free print_text [20:49:14]json_value_free [20:49:14]json_value_free done [20:49:14]process_json_proto returns [20:49:14]Send response to host [20:49:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104225,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [20:49:14]free response buf [20:49:14]execute_script done [20:49:14]execute_script returns [20:49:14]free content buf [20:49:14]Sock 7.Close socket [20:49:14]Sock 7.Thread stoped [20:49:16]OFD Sender: No OFD packet to send [20:49:21]OFD Sender: No OFD packet to send [20:49:26]OFD Sender: No OFD packet to send [20:49:31]OFD Sender: No OFD packet to send [20:49:36]OFD Sender: No OFD packet to send [20:49:41]OFD Sender: No OFD packet to send [20:49:46]OFD Sender: No OFD packet to send [20:49:51]OFD Sender: No OFD packet to send [20:49:56]OFD Sender: No OFD packet to send [20:50:01]OFD Sender: No OFD packet to send [20:50:06]OFD Sender: No OFD packet to send [20:50:11]OFD Sender: No OFD packet to send [20:50:16]OFD Sender: No OFD packet to send [20:50:21]OFD Sender: No OFD packet to send [20:50:26]OFD Sender: No OFD packet to send [20:50:31]OFD Sender: No OFD packet to send [20:50:36]OFD Sender: No OFD packet to send [20:50:41]OFD Sender: No OFD packet to send [20:50:46]OFD Sender: No OFD packet to send [20:50:51]OFD Sender: No OFD packet to send [20:50:56]OFD Sender: No OFD packet to send [20:51:01]OFD Sender: No OFD packet to send [20:51:06]OFD Sender: No OFD packet to send [20:51:11]OFD Sender: No OFD packet to send [20:51:16]OFD Sender: No OFD packet to send [20:51:21]OFD Sender: No OFD packet to send [20:51:26]OFD Sender: No OFD packet to send [20:51:31]OFD Sender: No OFD packet to send [20:51:36]OFD Sender: No OFD packet to send [20:51:41]OFD Sender: No OFD packet to send [20:51:46]OFD Sender: No OFD packet to send [20:51:51]OFD Sender: No OFD packet to send [20:51:56]OFD Sender: No OFD packet to send [20:52:01]OFD Sender: No OFD packet to send [20:52:06]OFD Sender: No OFD packet to send [20:52:11]OFD Sender: No OFD packet to send [20:52:16]OFD Sender: No OFD packet to send [20:52:21]OFD Sender: No OFD packet to send [20:52:26]OFD Sender: No OFD packet to send [20:52:31]OFD Sender: No OFD packet to send [20:52:36]OFD Sender: No OFD packet to send [20:52:41]OFD Sender: No OFD packet to send [20:52:46]OFD Sender: No OFD packet to send [20:52:51]OFD Sender: No OFD packet to send [20:52:56]OFD Sender: No OFD packet to send [20:53:01]OFD Sender: No OFD packet to send [20:53:06]OFD Sender: No OFD packet to send [20:53:11]OFD Sender: No OFD packet to send [20:53:16]OFD Sender: No OFD packet to send [20:53:21]OFD Sender: No OFD packet to send [20:53:26]OFD Sender: No OFD packet to send [20:53:31]OFD Sender: No OFD packet to send [20:53:36]OFD Sender: No OFD packet to send [20:53:41]OFD Sender: No OFD packet to send [20:53:42]accept exits with 9 [20:53:42]New connection [20:53:42]New thread 3067473252 created [20:53:42]Thread 3067616612 joined [20:53:42]Waiting for new connection... [20:53:42] Sock 9.Parse request [20:53:42]Sock 9.Check first char [20:53:42]Sock 9.First char is OK [20:53:42]request: POST /json_proto HTTP/1.0 [20:53:42]Method: POST [20:53:42]URL: /json_proto [20:53:42]Method is POST - this is cgi request [20:53:42]url: /json_proto [20:53:42]query_string will be loaded in cgi processing [20:53:42]execute_cgi json_proto POST (null) [20:53:42]execute_cgi path=json_proto method=POST [20:53:42]POST find Content-Length [20:53:42]Host: 172.17.38.133:8080 [20:53:42]Content-Length: 682 [20:53:42]Content-Type: application/json [20:53:42] [20:53:42]POST finish read [20:53:42]Found Content-Length = 682 [20:53:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673709", "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" ] } } [20:53:42]execute_script... [20:53:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673709", "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" ] } } [20:53:42]POST & json_proto [20:53:42]process_json_proto [20:53:42]json parsed OK: [20:53:42]protocol is kg_v1.0 [20:53:42]action value=close_receipt [20:53:42]process_action close_receipt [20:53:42]cmd_close_receipt [20:53:42]MH_GetDate [20:53:42]Write to MH i2c: F0 00 00 F9 0A F2 [20:53:42]Write i2c OK [20:53:42]MH_I2C_Read... [20:53:42]Read from MH i2c: F0 [20:53:42]MH_I2C_Read... [20:53:42]Read from MH i2c: F0 09 00 [20:53:42]MH_I2C_Read... [20:53:42]Read from MH i2c: F0 09 00 F9 0A 00 57 E8 75 66 BD 8F 7C 64 41 [20:53:42]GetLastDocTimeStamp 1719002945 [20:53:42]current date 1719003223 [20:53:42]FM_GetShiftState [20:53:42]SAM_PROTO_GetShiftState [20:53:42]wFMCommunicate request_size=4 [20:53:42]MH_SAM_APDU [20:53:42]CAPDU: 80 13 01 00 [20:53:42]Write to MH i2c: E2 08 00 FA 0A 80 13 01 00 00 00 00 00 81 [20:53:42]Write i2c OK [20:53:42]MH_I2C_Read... [20:53:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:53:42]Read from MH i2c: E2 [20:53:42]MH_I2C_Read... [20:53:42]Read from MH i2c: E2 0E 00 [20:53:42]MH_I2C_Read... [20:53:42]Read from MH i2c: E2 0E 00 FA 0A 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 94 [20:53:42]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [20:53:42]wFMCommunicate OK [20:53:42]SAM_PROTO_GetShiftState done [20:53:42]FM_GetShiftState done [20:53:42]opened in 1718929509 [20:53:42]opened+sec_in_day 1719015909 [20:53:42]quantity*price = 100064 [20:53:42]sum+1 = 100066 [20:53:42]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 СНО: Общий режим Чек 149 21.06.2024 20:53 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104226 ФПД: 76108748824619 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T205343&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104226&fm=76108748824619&tin=02508201610067®Number=0000000000092785&sum=100000 [20:53:43]StoreToDocumentArchive [20:53:43]shift 355 fd 104226 [20:53:43]save to /storage/0355/doc_00104226 [20:53:43]save last doc name /storage/0355/doc_00104226 to /storage/kkm_last_doc_name [20:53:43]save OK [20:53:43]Clear old archive folders... [20:53:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:53:43]tlvbuf is 006A1D20 [20:53:43]SAM_PROTO_ClearQueue [20:53:43]wFMCommunicate request_size=4 [20:53:43]MH_SAM_APDU [20:53:43]CAPDU: 80 09 00 00 [20:53:43]Write to MH i2c: E2 08 00 07 0B 80 09 00 00 00 00 00 00 84 [20:53:43]Write i2c OK [20:53:43]MH_I2C_Read... [20:53:43]Read from MH i2c: E2 [20:53:43]MH_I2C_Read... [20:53:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:53:43]Read from MH i2c: E2 03 00 [20:53:43]MH_I2C_Read... [20:53:43]Read from MH i2c: E2 03 00 07 0B 00 90 00 86 [20:53:43]RAPDU: 90 00 [20:53:43]wFMCommunicate OK [20:53:43]SAM_PROTO_ClearQueue done [20:53:43]KKMCreateOFDPacket [20:53:43]OFDProtocolAddRootSTLVToBuf [20:53:43]FM_MakeSignedData [20:53:43]FM_MakeSignedData [20:53:43]SAM_PROTO_SignData [20:53:43]wFMCommunicate request_size=4 [20:53:43]MH_SAM_APDU [20:53:43]CAPDU: 80 0D 01 02 [20:53:43]Write to MH i2c: E2 08 00 08 0B 80 0D 01 02 00 00 00 00 8C [20:53:43]Write i2c OK [20:53:43]MH_I2C_Read... [20:53:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:53:43]Read from MH i2c: E2 [20:53:43]MH_I2C_Read... [20:53:43]Read from MH i2c: E2 03 00 [20:53:43]MH_I2C_Read... [20:53:43]Read from MH i2c: E2 03 00 08 0B 00 90 00 87 [20:53:43]RAPDU: 90 00 [20:53:43]wFMCommunicate OK [20:53:43]wFMCommunicate request_size=255 [20:53:43]MH_SAM_APDU [20:53:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 95 00 00 00 F4 03 04 00 57 E8 75 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 22 97 01 00 35 04 06 00 45 [20:53:43]Write to MH i2c: E2 02 01 09 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 95 00 00 00 F4 03 04 00 57 E8 75 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 22 97 01 00 35 04 06 00 45 00 00 A8 [20:53:43]Write i2c OK [20:53:43]MH_I2C_Read... [20:53:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:53:43]Read from MH i2c: E2 [20:53:43]MH_I2C_Read... [20:53:43]Read from MH i2c: E2 03 00 [20:53:43]MH_I2C_Read... [20:53:43]Read from MH i2c: E2 03 00 09 0B 00 90 00 88 [20:53:43]RAPDU: 90 00 [20:53:43]wFMCommunicate OK [20:53:43]wFMCommunicate request_size=10 [20:53:43]MH_SAM_APDU [20:53:43]CAPDU: 80 0D 02 02 05 38 72 F0 20 2B [20:53:43]Write to MH i2c: E2 0D 00 0A 0B 80 0D 02 02 05 00 38 72 F0 20 2B 00 00 7E [20:53:43]Write i2c OK [20:53:43]MH_I2C_Read... [20:53:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:53:43]Read from MH i2c: E2 [20:53:43]MH_I2C_Read... [20:53:43]Read from MH i2c: E2 03 00 [20:53:43]MH_I2C_Read... [20:53:43]Read from MH i2c: E2 03 00 0A 0B 00 90 00 89 [20:53:43]RAPDU: 90 00 [20:53:43]wFMCommunicate OK [20:53:43]wFMCommunicate request_size=4 [20:53:43]MH_SAM_APDU [20:53:43]CAPDU: 80 0D 03 02 [20:53:43]Write to MH i2c: E2 08 00 0B 0B 80 0D 03 02 00 00 00 00 91 [20:53:43]Write i2c OK [20:53:43]MH_I2C_Read... [20:53:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:53:43]Read from MH i2c: E2 [20:53:43]MH_I2C_Read... [20:53:43]Read from MH i2c: E2 0B 00 [20:53:43]MH_I2C_Read... [20:53:43]Read from MH i2c: E2 0B 00 0B 0B 00 DD 97 5F 3C 64 E5 63 1C 90 00 69 [20:53:43]RAPDU: DD 97 5F 3C 64 E5 63 1C 90 00 [20:53:43]wFMCommunicate OK [20:53:43]SAM_PROTO_SignData done [20:53:43]FM_MakeSignedData done [20:53:43]CreateOFDProtocolMessage [20:53:43]wFMCommunicate request_size=4 [20:53:43]MH_SAM_APDU [20:53:43]CAPDU: 80 11 00 00 [20:53:43]Write to MH i2c: E2 08 00 0C 0B 80 11 00 00 00 00 00 00 91 [20:53:43]Write i2c OK [20:53:43]MH_I2C_Read... [20:53:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:53:43]Read from MH i2c: E2 [20:53:43]MH_I2C_Read... [20:53:43]Read from MH i2c: E2 17 00 [20:53:43]MH_I2C_Read... [20:53:43]Read from MH i2c: E2 17 00 0C 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 E4 [20:53: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:53:43]wFMCommunicate OK [20:53:43]CreateOFDProtocolMessage done [20:53:43]OFDSenderStorePacket 104226 [20:53:43]StoreOFDPacket docnum=104226 [20:53: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 58 1F 07 01 85 80 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 95 00 00 00 F4 03 04 00 57 E8 75 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 22 97 01 00 35 04 06 00 45 38 72 F0 20 2B DD 97 5F 3C 64 E5 63 1C [20:53:43]CheckFolder [20:53:43]dirname=/storage/ofd_packets [20:53:43]CheckFolder done [20:53:43]ProducePacketName [20:53:43]name=ofd_packets/00104226 [20:53:43]NVStorageSaveData ofd_packets/00104226 [20:53:43]File name is /storage/ofd_packets/00104226 [20:53:43]Write 301 bytes [20:53:43]NVStorageSaveData done [20:53:43]OFDSenderStorePacket done [20:53:43]KKMCreateOFDPacket done [20:53:43]NVStorageSaveData kkm_last_timestamp [20:53:43]File name is /storage/kkm_last_timestamp [20:53:43]Write 4 bytes [20:53:43]NVStorageSaveData done [20:53:43]ExternCall_PrintAddStr [20:53:43]wPrintStart [20:53:43]Write to MH i2c: 01 00 00 0D 0B 18 [20:53:43]Write i2c OK [20:53:43]MH_I2C_Read... [20:53:43]Read from MH i2c: 01 [20:53:43]MH_I2C_Read... [20:53:43]Read from MH i2c: 01 07 00 [20:53:43]MH_I2C_Read... [20:53:43]Read from MH i2c: 01 07 00 0D 0B 00 00 00 00 00 FF 0F 2D [20:53:43]RasterBufferAndPrint [20:53:43]line Счет N : (1)673709 [20:53:43]line ИНН: 02508201610067 [20:53:43]line Контрольно-Кассовый Чек [20:53:43]line ПРОДАЖА [20:53:43]line ТРК (МРК, ГНК) : 42 [20:53:43]line Товар: 2710124130 [20:53:43]line Аи-92-К-5 [20:53:43]line 15.070 * 66.40 [20:53:43]line = 1000.65 [20:53:43]line НДС 12% НСП 1% [20:53:43]line > о реализуемом товаре [20:53:43]line ОКРУГЛЕНИЕ: -0.65 [20:53:43]line ИТОГО: 1000.00 [20:53:43]line Внесено: 1000.00 [20:53:43]line СДАЧА: 0.00 [20:53:43]line НСП 1% : 8.85 [20:53:43]line НДС 12% : 106.26 [20:53:43]line Наличными: 1000.00 [20:53:43]line Безнал.: 0.00 [20:53:43]line Место: АЗС № 120 "Партнер Нефть" [20:53:43]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [20:53:43]line СНО: Общий режим [20:53:43]line Чек 149 21.06.2024 20:53 [20:53:43]line Смена: 355 ФФД: 1.0 [20:53:43]line ЗНМ: 0300000164 [20:53:43]line РНМ: 0000000000092785 [20:53:43]line Версия ККМ: 001 [20:53:43]line ФМ: 0000000000875093 [20:53:43]line ФД: 104226 [20:53:43]line ФПД: 76108748824619 [20:53:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T205343&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104226&fm=76108748824619&tin=02508201610067®Number=0000000000092785&sum=100000 [20:53:44]OFD Sender: Processing packet 104226 [packets to send 17, broken 16] [20:53:44]ProducePacketName [20:53:44]name=ofd_packets/00104226 [20:53:44]OFD Sender: To server: pG, [20:53:44]CommunicateWithHost lk.salyk.kg:30040 [20:53:44]ConnectInit lk.salyk.kg [20:53:44]written 0, free lines is 4095 [20:53:44]Connected sock=11 [20:53:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 58 1F 07 01 85 80 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 95 00 00 00 F4 03 04 00 57 E8 75 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 22 97 01 00 35 04 06 00 45 38 72 F0 20 2B DD 97 5F 3C 64 E5 63 1C [20:53:44]Write to MH i2c: 01 00 00 38 0B 43 [20:53:44]Write i2c OK [20:53:44]MH_I2C_Read... [20:53:44]Read from MH i2c: 01 [20:53:44]MH_I2C_Read... [20:53:44]Read from MH i2c: 01 07 00 [20:53:44]MH_I2C_Read... [20:53:44]Read from MH i2c: 01 07 00 38 0B 00 00 00 00 00 E4 0C 3A [20:53:44]RasterBufferAndPrint [20:53:44]line [20:53:44]line [20:53:44]line [20:53:44]line [20:53:44]line [20:53:44]written 0, free lines is 3306 [20:53:44]MH_Cut [20:53:44]Write to MH i2c: D1 01 00 3F 0B 01 1C [20:53:44]Write i2c OK [20:53:44]MH_I2C_Read... [20:53:44]Read from MH i2c: D1 [20:53:44]MH_I2C_Read... [20:53:44]Read from MH i2c: D1 01 00 [20:53:44]MH_I2C_Read... [20:53:44]Read from MH i2c: D1 01 00 3F 0B 00 1B [20:53:44]Write to MH i2c: 01 00 00 40 0B 4B [20:53:44]Write i2c OK [20:53:44]MH_I2C_Read... [20:53: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 61 40 47 00 F7 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 22 97 01 00 F4 03 04 00 D9 8E 75 66 B6 04 01 00 00 02 D8 E6 EA 17 C1 D3 68 [20:53:44]CommunicateWithHost err = 0 [20:53:44]CheckOFDResponse [20:53:44]1017 (14) - 77093643461234 [20:53:44]1041 (16) - 0000000000875093 [20:53:44]1040 (4) - 104226 [20:53:44]1012 (4) - 21.06.2024 14:31 [20:53:44]1206 (1) - 0 [20:53:44]OFD Sender: Remove packet 104226 [20:53:44]ProducePacketName [20:53:44]name=ofd_packets/00104226 [20:53:44]NVStorageDeleteData [20:53:45]OFD Sender: No OFD packet to send [20:53:45]*** Cut start [20:53:45]*** Partial cut [20:53:45]*** CUTSNS_PIN = 1 [20:53:45]*** CUTSNS_PIN = 0 [20:53:45]*** Brake cut motor [20:53:45]Read from MH i2c: 01 [20:53:45]MH_I2C_Read... [20:53:45]*** Stop cut motor [20:53:45]*** Cut end [20:53:45]Read from MH i2c: 01 07 00 [20:53:45]MH_I2C_Read... [20:53:45]Read from MH i2c: 01 07 00 40 0B 00 00 00 00 00 FF 0F 60 [20:53:45]process_action close_receipt done [20:53:45]requested_data is exist [20:53:45]produce_requested_data [20:53:45]requested_item fm.sn is exist - process it [20:53:45]wFMCommunicate request_size=4 [20:53:45]MH_SAM_APDU [20:53:45]CAPDU: 80 11 00 00 [20:53:45]Write to MH i2c: E2 08 00 41 0B 80 11 00 00 00 00 00 00 C6 [20:53:45]Write i2c OK [20:53:45]MH_I2C_Read... [20:53:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:53:45]Read from MH i2c: E2 [20:53:45]MH_I2C_Read... [20:53:45]Read from MH i2c: E2 17 00 [20:53:45]MH_I2C_Read... [20:53:45]Read from MH i2c: E2 17 00 41 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 19 [20:53: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:53:45]wFMCommunicate OK [20:53:45]requested_item fd.num is exist - process it [20:53:45]SAM_PROTO_GetFieldsCounters [20:53:45]wFMCommunicate request_size=4 [20:53:45]MH_SAM_APDU [20:53:45]CAPDU: 80 13 00 00 [20:53:45]Write to MH i2c: E2 08 00 42 0B 80 13 00 00 00 00 00 00 C9 [20:53:45]Write i2c OK [20:53:45]MH_I2C_Read... [20:53:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:53:46]Read from MH i2c: E2 [20:53:46]MH_I2C_Read... [20:53:46]Read from MH i2c: E2 62 00 [20:53:46]MH_I2C_Read... [20:53:46]Read from MH i2c: E2 62 00 42 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 22 97 01 00 0E 04 04 00 63 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 CD [20:53:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 63 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 [20:53:46]wFMCommunicate OK [20:53:46]SAM_PROTO_GetFieldsCounters done [20:53:46]requested_item shift.num is exist - process it [20:53:46]requested_item shift.opened is exist - process it [20:53:46]req_shift_opened [20:53:46]FM_GetShiftState [20:53:46]SAM_PROTO_GetShiftState [20:53:46]wFMCommunicate request_size=4 [20:53:46]MH_SAM_APDU [20:53:46]CAPDU: 80 13 01 00 [20:53:46]Write to MH i2c: E2 08 00 43 0B 80 13 01 00 00 00 00 00 CB [20:53:46]Write i2c OK [20:53:46]MH_I2C_Read... [20:53:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:53:46]Read from MH i2c: E2 [20:53:46]MH_I2C_Read... [20:53:46]Read from MH i2c: E2 0E 00 [20:53:46]MH_I2C_Read... [20:53:46]Read from MH i2c: E2 0E 00 43 0B 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 DE [20:53:46]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [20:53:46]wFMCommunicate OK [20:53:46]SAM_PROTO_GetShiftState done [20:53:46]FM_GetShiftState done [20:53:46]req_shift_opened done [20:53:46]requested_item shift.open_date is exist - process it [20:53:46]req_shift_open_date [20:53:46]req_shift_open_date done [20:53:46]produce_requested_data done [20:53:46]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104226,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [20:53:46]process_action_free close_receipt [20:53:46]json_value_free [20:53:46]json_value_free done [20:53:46]process_json_proto returns [20:53:46]Send response to host [20:53:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104226,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [20:53:46]free response buf [20:53:46]execute_script done [20:53:46]execute_script returns [20:53:46]free content buf [20:53:46]Sock 9.Close socket [20:53:46]Sock 9.Thread stoped [20:53:50]OFD Sender: No OFD packet to send [20:53:55]OFD Sender: No OFD packet to send [20:54:00]OFD Sender: No OFD packet to send [20:54:05]OFD Sender: No OFD packet to send [20:54:10]OFD Sender: No OFD packet to send [20:54:15]OFD Sender: No OFD packet to send [20:54:20]OFD Sender: No OFD packet to send [20:54:25]OFD Sender: No OFD packet to send [20:54:30]OFD Sender: No OFD packet to send [20:54:35]OFD Sender: No OFD packet to send [20:54:40]OFD Sender: No OFD packet to send [20:54:45]OFD Sender: No OFD packet to send [20:54:50]OFD Sender: No OFD packet to send [20:54:55]OFD Sender: No OFD packet to send [20:55:00]OFD Sender: No OFD packet to send [20:55:05]OFD Sender: No OFD packet to send [20:55:10]OFD Sender: No OFD packet to send [20:55:15]OFD Sender: No OFD packet to send [20:55:20]OFD Sender: No OFD packet to send [20:55:25]OFD Sender: No OFD packet to send [20:55:30]OFD Sender: No OFD packet to send [20:55:35]OFD Sender: No OFD packet to send [20:55:40]OFD Sender: No OFD packet to send [20:55:45]OFD Sender: No OFD packet to send [20:55:50]OFD Sender: No OFD packet to send [20:55:55]OFD Sender: No OFD packet to send [20:56:00]OFD Sender: No OFD packet to send [20:56:05]OFD Sender: No OFD packet to send [20:56:10]OFD Sender: No OFD packet to send [20:56:15]OFD Sender: No OFD packet to send [20:56:20]OFD Sender: No OFD packet to send [20:56:25]OFD Sender: No OFD packet to send [20:56:30]OFD Sender: No OFD packet to send [20:56:35]OFD Sender: No OFD packet to send [20:56:40]OFD Sender: No OFD packet to send [20:56:45]OFD Sender: No OFD packet to send [20:56:50]OFD Sender: No OFD packet to send [20:56:55]OFD Sender: No OFD packet to send [20:57:00]OFD Sender: No OFD packet to send [20:57:05]OFD Sender: No OFD packet to send [20:57:10]OFD Sender: No OFD packet to send [20:57:15]OFD Sender: No OFD packet to send [20:57:20]OFD Sender: No OFD packet to send [20:57:25]OFD Sender: No OFD packet to send [20:57:30]OFD Sender: No OFD packet to send [20:57:35]OFD Sender: No OFD packet to send [20:57:40]OFD Sender: No OFD packet to send [20:57:45]OFD Sender: No OFD packet to send [20:57:50]OFD Sender: No OFD packet to send [20:57:55]OFD Sender: No OFD packet to send [20:58:00]OFD Sender: No OFD packet to send [20:58:05]OFD Sender: No OFD packet to send [20:58:10]OFD Sender: No OFD packet to send [20:58:15]OFD Sender: No OFD packet to send [20:58:20]OFD Sender: No OFD packet to send [20:58:25]OFD Sender: No OFD packet to send [20:58:30]OFD Sender: No OFD packet to send [20:58:35]OFD Sender: No OFD packet to send [20:58:40]OFD Sender: No OFD packet to send [20:58:45]OFD Sender: No OFD packet to send [20:58:50]OFD Sender: No OFD packet to send [20:58:55]OFD Sender: No OFD packet to send [20:59:00]OFD Sender: No OFD packet to send [20:59:05]OFD Sender: No OFD packet to send [20:59:10]OFD Sender: No OFD packet to send [20:59:15]OFD Sender: No OFD packet to send [20:59:20]OFD Sender: No OFD packet to send [20:59:25]OFD Sender: No OFD packet to send [20:59:30]OFD Sender: No OFD packet to send [20:59:35]OFD Sender: No OFD packet to send [20:59:40]OFD Sender: No OFD packet to send [20:59:45]OFD Sender: No OFD packet to send [20:59:50]OFD Sender: No OFD packet to send [20:59:55]OFD Sender: No OFD packet to send [21:00:00]OFD Sender: No OFD packet to send [21:00:05]OFD Sender: No OFD packet to send [21:00:10]OFD Sender: No OFD packet to send [21:00:15]OFD Sender: No OFD packet to send [21:00:20]OFD Sender: No OFD packet to send [21:00:25]OFD Sender: No OFD packet to send [21:00:30]OFD Sender: No OFD packet to send [21:00:35]OFD Sender: No OFD packet to send [21:00:40]OFD Sender: No OFD packet to send [21:00:45]OFD Sender: No OFD packet to send [21:00:50]OFD Sender: No OFD packet to send [21:00:55]OFD Sender: No OFD packet to send [21:01:00]OFD Sender: No OFD packet to send [21:01:05]OFD Sender: No OFD packet to send [21:01:10]OFD Sender: No OFD packet to send [21:01:15]OFD Sender: No OFD packet to send [21:01:20]OFD Sender: No OFD packet to send [21:01:25]OFD Sender: No OFD packet to send [21:01:30]OFD Sender: No OFD packet to send [21:01:35]OFD Sender: No OFD packet to send [21:01:40]OFD Sender: No OFD packet to send [21:01:45]OFD Sender: No OFD packet to send [21:01:50]OFD Sender: No OFD packet to send [21:01:55]OFD Sender: No OFD packet to send [21:01:56]accept exits with 7 [21:01:56]New connection [21:01:56]New thread 3067616612 created [21:01:56]Thread 3067473252 joined [21:01:56]Waiting for new connection... [21:01:56] Sock 7.Parse request [21:01:56]Sock 7.Check first char [21:01:56]Sock 7.First char is OK [21:01:56]request: POST /json_proto HTTP/1.0 [21:01:56]Method: POST [21:01:56]URL: /json_proto [21:01:56]Method is POST - this is cgi request [21:01:56]url: /json_proto [21:01:56]query_string will be loaded in cgi processing [21:01:56]execute_cgi json_proto POST (null) [21:01:56]execute_cgi path=json_proto method=POST [21:01:56]POST find Content-Length [21:01:56]Host: 172.17.38.133:8080 [21:01:56]Content-Length: 1197 [21:01:56]Content-Type: application/json [21:01:56] [21:01:56]POST finish read [21:01:56]Found Content-Length = 1197 [21:01: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 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)673708\u000A21.06.2024 20:38\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 178.440 x 73.90\u000A\u0418\u0422\u041E\u0413: 13186.72\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" ] } } [21:01:56]execute_script... [21:01: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 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)673708\u000A21.06.2024 20:38\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 178.440 x 73.90\u000A\u0418\u0422\u041E\u0413: 13186.72\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" ] } } [21:01:56]POST & json_proto [21:01:56]process_json_proto [21:01:56]json parsed OK: [21:01:56]protocol is kg_v1.0 [21:01:56]action value=print_text [21:01:56]process_action print_text [21:01:56]cmd_print_text [21:01:56]ExternCall_PrintAddStr [21:01:56]wPrintStart [21:01:56]Write to MH i2c: 01 00 00 44 0B 4F [21:01:56]Write i2c OK [21:01:56]MH_I2C_Read... [21:01:56]Read from MH i2c: 01 [21:01:56]MH_I2C_Read... [21:01:56]Read from MH i2c: 01 07 00 [21:01:56]MH_I2C_Read... [21:01:56]Read from MH i2c: 01 07 00 44 0B 00 00 00 00 00 FF 0F 64 [21:01:56]RasterBufferAndPrint [21:01:56]line *****ТОВАРНЫЙ ЧЕК***** [21:01:56]line АЗС 120 [21:01:56]line Партнер нефть [21:01:56]line 02508201610067 [21:01:56]line Кассир : Асанбаев Н. [21:01:56]line Счет N : (1)673708 [21:01:56]line 21.06.2024 20:38 [21:01:56]line ПРОДАЖА [21:01:56]line ТРК (МРК, ГНК): 31 [21:01:56]line Вид ГСМ : 2710124500 [21:01:56]line Аи-95-К-5 [21:01:56]line 178.440 x 73.90 [21:01:56]line ИТОГ: 13186.72 [21:01:56]line Тип оплаты: Талоны: Топливная Карта [21:01:56]line 32170 [21:01:56]line ______________________ [21:01:56]line (подпись) [21:01:56]written 0, free lines is 4095 [21:01:56]Write to MH i2c: 01 00 00 58 0B 63 [21:01:56]Write i2c OK [21:01:56]MH_I2C_Read... [21:01:56]Read from MH i2c: 01 [21:01:56]MH_I2C_Read... [21:01:56]Read from MH i2c: 01 07 00 [21:01:56]MH_I2C_Read... [21:01:56]Read from MH i2c: 01 07 00 58 0B 00 00 00 00 00 10 0E 88 [21:01:56]RasterBufferAndPrint [21:01:56]line [21:01:56]line [21:01:56]line [21:01:56]line [21:01:56]line [21:01:56]written 0, free lines is 3602 [21:01:56]MH_Cut [21:01:56]Write to MH i2c: D1 01 00 5F 0B 01 3C [21:01:56]Write i2c OK [21:01:56]MH_I2C_Read... [21:01:56]Read from MH i2c: D1 [21:01:56]MH_I2C_Read... [21:01:56]Read from MH i2c: D1 01 00 [21:01:56]MH_I2C_Read... [21:01:56]Read from MH i2c: D1 01 00 5F 0B 00 3B [21:01:56]Write to MH i2c: 01 00 00 60 0B 6B [21:01:56]Write i2c OK [21:01:56]MH_I2C_Read... [21:01:56]*** Cut start [21:01:56]*** Partial cut [21:01:56]*** CUTSNS_PIN = 1 [21:01:56]*** CUTSNS_PIN = 0 [21:01:57]*** Brake cut motor [21:01:57]Read from MH i2c: 01 [21:01:57]MH_I2C_Read... [21:01:57]Read from MH i2c: 01 07 00 [21:01:57]MH_I2C_Read... [21:01:57]*** Stop cut motor [21:01:57]*** Cut end [21:01:57]Read from MH i2c: 01 07 00 60 0B 00 00 00 00 00 FF 0F 80 [21:01:57]process_action print_text done [21:01:57]requested_data is exist [21:01:57]produce_requested_data [21:01:57]requested_item fm.sn is exist - process it [21:01:57]wFMCommunicate request_size=4 [21:01:57]MH_SAM_APDU [21:01:57]CAPDU: 80 11 00 00 [21:01:57]Write to MH i2c: E2 08 00 61 0B 80 11 00 00 00 00 00 00 E6 [21:01:57]Write i2c OK [21:01:57]MH_I2C_Read... [21:01:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:01:57]Read from MH i2c: E2 [21:01:57]MH_I2C_Read... [21:01:57]Read from MH i2c: E2 17 00 [21:01:57]MH_I2C_Read... [21:01:57]Read from MH i2c: E2 17 00 61 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 39 [21:01:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [21:01:57]wFMCommunicate OK [21:01:57]requested_item fd.num is exist - process it [21:01:57]SAM_PROTO_GetFieldsCounters [21:01:57]wFMCommunicate request_size=4 [21:01:57]MH_SAM_APDU [21:01:57]CAPDU: 80 13 00 00 [21:01:57]Write to MH i2c: E2 08 00 62 0B 80 13 00 00 00 00 00 00 E9 [21:01:57]Write i2c OK [21:01:57]MH_I2C_Read... [21:01:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:01:57]Read from MH i2c: E2 [21:01:57]MH_I2C_Read... [21:01:57]Read from MH i2c: E2 62 00 [21:01:57]MH_I2C_Read... [21:01:57]Read from MH i2c: E2 62 00 62 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 22 97 01 00 0E 04 04 00 63 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 ED [21:01: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 97 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 95 00 00 00 5E 04 04 00 95 00 00 00 57 04 04 00 96 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:01:57]wFMCommunicate OK [21:01:57]SAM_PROTO_GetFieldsCounters done [21:01:57]requested_item shift.num is exist - process it [21:01:57]requested_item shift.opened is exist - process it [21:01:57]req_shift_opened [21:01:57]FM_GetShiftState [21:01:57]SAM_PROTO_GetShiftState [21:01:57]wFMCommunicate request_size=4 [21:01:57]MH_SAM_APDU [21:01:57]CAPDU: 80 13 01 00 [21:01:57]Write to MH i2c: E2 08 00 63 0B 80 13 01 00 00 00 00 00 EB [21:01:57]Write i2c OK [21:01:57]MH_I2C_Read... [21:01:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:01:57]Read from MH i2c: E2 [21:01:57]MH_I2C_Read... [21:01:57]Read from MH i2c: E2 0E 00 [21:01:57]MH_I2C_Read... [21:01:57]Read from MH i2c: E2 0E 00 63 0B 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 FE [21:01:57]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [21:01:57]wFMCommunicate OK [21:01:57]SAM_PROTO_GetShiftState done [21:01:57]FM_GetShiftState done [21:01:57]req_shift_opened done [21:01:57]requested_item shift.open_date is exist - process it [21:01:57]req_shift_open_date [21:01:57]req_shift_open_date done [21:01:57]produce_requested_data done [21:01:57]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104226,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [21:01:57]process_action_free print_text [21:01:57]json_value_free [21:01:57]json_value_free done [21:01:57]process_json_proto returns [21:01:57]Send response to host [21:01:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104226,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [21:01:57]free response buf [21:01:57]execute_script done [21:01:57]execute_script returns [21:01:57]free content buf [21:01:57]Sock 7.Close socket [21:01:57]Sock 7.Thread stoped [21:02:00]OFD Sender: No OFD packet to send [21:02:05]OFD Sender: No OFD packet to send [21:02:10]OFD Sender: No OFD packet to send [21:02:15]OFD Sender: No OFD packet to send [21:02:20]OFD Sender: No OFD packet to send [21:02:25]OFD Sender: No OFD packet to send [21:02:30]OFD Sender: No OFD packet to send [21:02:35]OFD Sender: No OFD packet to send [21:02:40]OFD Sender: No OFD packet to send [21:02:45]OFD Sender: No OFD packet to send [21:02:50]OFD Sender: No OFD packet to send [21:02:55]OFD Sender: No OFD packet to send [21:03:00]OFD Sender: No OFD packet to send [21:03:05]OFD Sender: No OFD packet to send [21:03:10]OFD Sender: No OFD packet to send [21:03:15]OFD Sender: No OFD packet to send [21:03:20]OFD Sender: No OFD packet to send [21:03:25]OFD Sender: No OFD packet to send [21:03:29]accept exits with 9 [21:03:29]New connection [21:03:29]New thread 3067473252 created [21:03:29]Thread 3067616612 joined [21:03:29]Waiting for new connection... [21:03:29] Sock 9.Parse request [21:03:29]Sock 9.Check first char [21:03:29]Sock 9.First char is OK [21:03:29]request: POST /json_proto HTTP/1.0 [21:03:29]Method: POST [21:03:29]URL: /json_proto [21:03:29]Method is POST - this is cgi request [21:03:29]url: /json_proto [21:03:29]query_string will be loaded in cgi processing [21:03:29]execute_cgi json_proto POST (null) [21:03:29]execute_cgi path=json_proto method=POST [21:03:29]POST find Content-Length [21:03:29]Host: 172.17.38.133:8080 [21:03:29]Content-Length: 687 [21:03:29]Content-Type: application/json [21:03:29] [21:03:29]POST finish read [21:03:29]Found Content-Length = 687 [21:03:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673710", "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" ] } } [21:03:29]execute_script... [21:03: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)673710", "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" ] } } [21:03:29]POST & json_proto [21:03:29]process_json_proto [21:03:29]json parsed OK: [21:03:29]protocol is kg_v1.0 [21:03:29]action value=close_receipt [21:03:29]process_action close_receipt [21:03:29]cmd_close_receipt [21:03:29]MH_GetDate [21:03:29]Write to MH i2c: F0 00 00 64 0B 5E [21:03:29]Write i2c OK [21:03:29]MH_I2C_Read... [21:03:29]Read from MH i2c: F0 [21:03:29]MH_I2C_Read... [21:03:29]Read from MH i2c: F0 09 00 [21:03:29]MH_I2C_Read... [21:03:29]Read from MH i2c: F0 09 00 64 0B 00 A2 EA 75 66 BD 8F 7C 64 FA [21:03:29]GetLastDocTimeStamp 1719003223 [21:03:29]current date 1719003810 [21:03:29]FM_GetShiftState [21:03:29]SAM_PROTO_GetShiftState [21:03:29]wFMCommunicate request_size=4 [21:03:29]MH_SAM_APDU [21:03:29]CAPDU: 80 13 01 00 [21:03:29]Write to MH i2c: E2 08 00 65 0B 80 13 01 00 00 00 00 00 ED [21:03:29]Write i2c OK [21:03:29]MH_I2C_Read... [21:03:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:03:29]Read from MH i2c: E2 [21:03:29]MH_I2C_Read... [21:03:29]Read from MH i2c: E2 0E 00 [21:03:29]MH_I2C_Read... [21:03:29]Read from MH i2c: E2 0E 00 65 0B 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 00 [21:03:29]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [21:03:29]wFMCommunicate OK [21:03:29]SAM_PROTO_GetShiftState done [21:03:29]FM_GetShiftState done [21:03:29]opened in 1718929509 [21:03:29]opened+sec_in_day 1719015909 [21:03:29]quantity*price = 300056 [21:03:29]sum+1 = 300057 [21:03:29]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 СНО: Общий режим Чек 150 21.06.2024 21:03 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104227 ФПД: 46347412421356 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T210331&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104227&fm=46347412421356&tin=02508201610067®Number=0000000000092785&sum=300000 [21:03:30]StoreToDocumentArchive [21:03:30]shift 355 fd 104227 [21:03:30]save to /storage/0355/doc_00104227 [21:03:30]save last doc name /storage/0355/doc_00104227 to /storage/kkm_last_doc_name [21:03:30]save OK [21:03:30]Clear old archive folders... [21:03:30]ProcessDocumentItem done err = 0, tmpTLVsize=252 [21:03:30]tlvbuf is 006442A0 [21:03:30]SAM_PROTO_ClearQueue [21:03:30]wFMCommunicate request_size=4 [21:03:30]MH_SAM_APDU [21:03:30]CAPDU: 80 09 00 00 [21:03:30]Write to MH i2c: E2 08 00 72 0B 80 09 00 00 00 00 00 00 EF [21:03:30]Write i2c OK [21:03:30]MH_I2C_Read... [21:03:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:03:30]Read from MH i2c: E2 [21:03:30]MH_I2C_Read... [21:03:30]Read from MH i2c: E2 03 00 [21:03:30]MH_I2C_Read... [21:03:30]Read from MH i2c: E2 03 00 72 0B 00 90 00 F1 [21:03:30]RAPDU: 90 00 [21:03:30]wFMCommunicate OK [21:03:30]SAM_PROTO_ClearQueue done [21:03:30]KKMCreateOFDPacket [21:03:30]OFDProtocolAddRootSTLVToBuf [21:03:30]FM_MakeSignedData [21:03:30]FM_MakeSignedData [21:03:30]SAM_PROTO_SignData [21:03:30]wFMCommunicate request_size=4 [21:03:30]MH_SAM_APDU [21:03:30]CAPDU: 80 0D 01 02 [21:03:30]Write to MH i2c: E2 08 00 73 0B 80 0D 01 02 00 00 00 00 F7 [21:03:30]Write i2c OK [21:03:30]MH_I2C_Read... [21:03:30]OFD Sender: No OFD packet to send [21:03:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:03:30]Read from MH i2c: E2 [21:03:30]MH_I2C_Read... [21:03:30]Read from MH i2c: E2 03 00 [21:03:30]MH_I2C_Read... [21:03:30]Read from MH i2c: E2 03 00 73 0B 00 90 00 F2 [21:03:30]RAPDU: 90 00 [21:03:30]wFMCommunicate OK [21:03:30]wFMCommunicate request_size=255 [21:03:30]MH_SAM_APDU [21:03: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 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 96 00 00 00 F4 03 04 00 A3 EA 75 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 23 97 01 00 35 04 06 00 [21:03:30]Write to MH i2c: E2 02 01 74 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 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 96 00 00 00 F4 03 04 00 A3 EA 75 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 23 97 01 00 35 04 06 00 00 00 58 [21:03:30]Write i2c OK [21:03:30]MH_I2C_Read... [21:03:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:03:31]Read from MH i2c: E2 [21:03:31]MH_I2C_Read... [21:03:31]Read from MH i2c: E2 03 00 [21:03:31]MH_I2C_Read... [21:03:31]Read from MH i2c: E2 03 00 74 0B 00 90 00 F3 [21:03:31]RAPDU: 90 00 [21:03:31]wFMCommunicate OK [21:03:31]wFMCommunicate request_size=11 [21:03:31]MH_SAM_APDU [21:03:31]CAPDU: 80 0D 02 02 06 2A 27 19 0D BA EC [21:03:31]Write to MH i2c: E2 0E 00 75 0B 80 0D 02 02 06 00 2A 27 19 0D BA EC 00 00 23 [21:03:31]Write i2c OK [21:03:31]MH_I2C_Read... [21:03:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:03:31]Read from MH i2c: E2 [21:03:31]MH_I2C_Read... [21:03:31]Read from MH i2c: E2 03 00 [21:03:31]MH_I2C_Read... [21:03:31]Read from MH i2c: E2 03 00 75 0B 00 90 00 F4 [21:03:31]RAPDU: 90 00 [21:03:31]wFMCommunicate OK [21:03:31]wFMCommunicate request_size=4 [21:03:31]MH_SAM_APDU [21:03:31]CAPDU: 80 0D 03 02 [21:03:31]Write to MH i2c: E2 08 00 76 0B 80 0D 03 02 00 00 00 00 FC [21:03:31]Write i2c OK [21:03:31]MH_I2C_Read... [21:03:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:03:31]Read from MH i2c: E2 [21:03:31]MH_I2C_Read... [21:03:31]Read from MH i2c: E2 0B 00 [21:03:31]MH_I2C_Read... [21:03:31]Read from MH i2c: E2 0B 00 76 0B 00 6B 67 9A D7 2E 92 A9 A0 90 00 49 [21:03:31]RAPDU: 6B 67 9A D7 2E 92 A9 A0 90 00 [21:03:31]wFMCommunicate OK [21:03:31]SAM_PROTO_SignData done [21:03:31]FM_MakeSignedData done [21:03:31]CreateOFDProtocolMessage [21:03:31]wFMCommunicate request_size=4 [21:03:31]MH_SAM_APDU [21:03:31]CAPDU: 80 11 00 00 [21:03:31]Write to MH i2c: E2 08 00 77 0B 80 11 00 00 00 00 00 00 FC [21:03:31]Write i2c OK [21:03:31]MH_I2C_Read... [21:03:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:03:31]Read from MH i2c: E2 [21:03:31]MH_I2C_Read... [21:03:31]Read from MH i2c: E2 17 00 [21:03:31]MH_I2C_Read... [21:03:31]Read from MH i2c: E2 17 00 77 0B 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:03:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [21:03:31]wFMCommunicate OK [21:03:31]CreateOFDProtocolMessage done [21:03:31]OFDSenderStorePacket 104227 [21:03:31]StoreOFDPacket docnum=104227 [21:03: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 A6 A8 08 01 84 F6 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 96 00 00 00 F4 03 04 00 A3 EA 75 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 23 97 01 00 35 04 06 00 2A 27 19 0D BA EC 6B 67 9A D7 2E 92 A9 A0 [21:03:31]CheckFolder [21:03:31]dirname=/storage/ofd_packets [21:03:31]CheckFolder done [21:03:31]ProducePacketName [21:03:31]name=ofd_packets/00104227 [21:03:31]NVStorageSaveData ofd_packets/00104227 [21:03:31]File name is /storage/ofd_packets/00104227 [21:03:31]Write 302 bytes [21:03:31]NVStorageSaveData done [21:03:31]OFDSenderStorePacket done [21:03:31]KKMCreateOFDPacket done [21:03:31]NVStorageSaveData kkm_last_timestamp [21:03:31]File name is /storage/kkm_last_timestamp [21:03:31]Write 4 bytes [21:03:31]NVStorageSaveData done [21:03:31]ExternCall_PrintAddStr [21:03:31]wPrintStart [21:03:31]Write to MH i2c: 01 00 00 78 0B 83 [21:03:31]Write i2c OK [21:03:31]MH_I2C_Read... [21:03:31]Read from MH i2c: 01 [21:03:31]MH_I2C_Read... [21:03:31]Read from MH i2c: 01 07 00 [21:03:31]MH_I2C_Read... [21:03:31]Read from MH i2c: 01 07 00 78 0B 00 00 00 00 00 FF 0F 98 [21:03:31]RasterBufferAndPrint [21:03:31]line Счет N : (1)673710 [21:03:31]line ИНН: 02508201610067 [21:03:31]line Контрольно-Кассовый Чек [21:03:31]line ПРОДАЖА [21:03:31]line ТРК (МРК, ГНК) : 11 [21:03:31]line Товар: 2710194210 [21:03:31]line ДТ(л)-К-5 [21:03:31]line 41.160 * 72.90 [21:03:31]line = 3000.56 [21:03:31]line НДС 12% НСП 1% [21:03:31]line > о реализуемом товаре [21:03:31]line ОКРУГЛЕНИЕ: -0.56 [21:03:31]line ИТОГО: 3000.00 [21:03:31]line Внесено: 3000.00 [21:03:31]line СДАЧА: 0.00 [21:03:31]line НСП 1% : 26.55 [21:03:31]line НДС 12% : 318.64 [21:03:31]line Наличными: 3000.00 [21:03:31]line Безнал.: 0.00 [21:03:31]line Место: АЗС № 120 "Партнер Нефть" [21:03:31]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [21:03:31]line СНО: Общий режим [21:03:31]line Чек 150 21.06.2024 21:03 [21:03:31]line Смена: 355 ФФД: 1.0 [21:03:31]line ЗНМ: 0300000164 [21:03:31]line РНМ: 0000000000092785 [21:03:31]line Версия ККМ: 001 [21:03:31]line ФМ: 0000000000875093 [21:03:31]line ФД: 104227 [21:03:31]line ФПД: 46347412421356 [21:03:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T210331&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104227&fm=46347412421356&tin=02508201610067®Number=0000000000092785&sum=300000 [21:03:31]OFD Sender: Processing packet 104227 [packets to send 17, broken 16] [21:03:31]ProducePacketName [21:03:31]name=ofd_packets/00104227 [21:03:31]OFD Sender: To server: pG, [21:03:31]CommunicateWithHost lk.salyk.kg:30040 [21:03:31]ConnectInit lk.salyk.kg [21:03:31]written 0, free lines is 4095 [21:03:31]Connected sock=10 [21:03: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 A6 A8 08 01 84 F6 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 96 00 00 00 F4 03 04 00 A3 EA 75 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 23 97 01 00 35 04 06 00 2A 27 19 0D BA EC 6B 67 9A D7 2E 92 A9 A0 [21:03: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 8A 3D 47 00 08 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 23 97 01 00 F4 03 04 00 24 91 75 66 B6 04 01 00 00 19 58 64 76 EE 38 D9 BA [21:03:31]CommunicateWithHost err = 0 [21:03:31]CheckOFDResponse [21:03:31]1017 (14) - 77093643461234 [21:03:31]1041 (16) - 0000000000875093 [21:03:31]1040 (4) - 104227 [21:03:31]1012 (4) - 21.06.2024 14:41 [21:03:31]1206 (1) - 0 [21:03:31]OFD Sender: Remove packet 104227 [21:03:31]ProducePacketName [21:03:31]name=ofd_packets/00104227 [21:03:31]NVStorageDeleteData [21:03:32]Write to MH i2c: 01 00 00 A3 0B AE [21:03:32]Write i2c OK [21:03:32]MH_I2C_Read... [21:03:32]Read from MH i2c: 01 [21:03:32]MH_I2C_Read... [21:03:32]Read from MH i2c: 01 07 00 [21:03:32]MH_I2C_Read... [21:03:32]Read from MH i2c: 01 07 00 A3 0B 00 00 00 00 00 E2 0C A3 [21:03:32]RasterBufferAndPrint [21:03:32]line [21:03:32]line [21:03:32]line [21:03:32]line [21:03:32]line [21:03:32]written 0, free lines is 3304 [21:03:32]MH_Cut [21:03:32]Write to MH i2c: D1 01 00 AA 0B 01 87 [21:03:32]Write i2c OK [21:03:32]MH_I2C_Read... [21:03:32]Read from MH i2c: D1 [21:03:32]MH_I2C_Read... [21:03:32]Read from MH i2c: D1 01 00 [21:03:32]MH_I2C_Read... [21:03:32]Read from MH i2c: D1 01 00 AA 0B 00 86 [21:03:32]Write to MH i2c: 01 00 00 AB 0B B6 [21:03:32]Write i2c OK [21:03:32]MH_I2C_Read... [21:03:32]OFD Sender: No OFD packet to send [21:03:32]*** Cut start [21:03:32]*** Partial cut [21:03:32]*** CUTSNS_PIN = 1 [21:03:32]*** CUTSNS_PIN = 0 [21:03:33]*** Brake cut motor [21:03:33]Read from MH i2c: 01 [21:03:33]MH_I2C_Read... [21:03:33]*** Stop cut motor [21:03:33]*** Cut end [21:03:33]Read from MH i2c: 01 07 00 [21:03:33]MH_I2C_Read... [21:03:33]Read from MH i2c: 01 07 00 AB 0B 00 00 00 00 00 FF 0F CB [21:03:33]process_action close_receipt done [21:03:33]requested_data is exist [21:03:33]produce_requested_data [21:03:33]requested_item fm.sn is exist - process it [21:03:33]wFMCommunicate request_size=4 [21:03:33]MH_SAM_APDU [21:03:33]CAPDU: 80 11 00 00 [21:03:33]Write to MH i2c: E2 08 00 AC 0B 80 11 00 00 00 00 00 00 31 [21:03:33]Write i2c OK [21:03:33]MH_I2C_Read... [21:03:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:03:33]Read from MH i2c: E2 [21:03:33]MH_I2C_Read... [21:03:33]Read from MH i2c: E2 17 00 [21:03:33]MH_I2C_Read... [21:03:33]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 [21:03:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [21:03:33]wFMCommunicate OK [21:03:33]requested_item fd.num is exist - process it [21:03:33]SAM_PROTO_GetFieldsCounters [21:03:33]wFMCommunicate request_size=4 [21:03:33]MH_SAM_APDU [21:03:33]CAPDU: 80 13 00 00 [21:03:33]Write to MH i2c: E2 08 00 AD 0B 80 13 00 00 00 00 00 00 34 [21:03:33]Write i2c OK [21:03:33]MH_I2C_Read... [21:03:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:03:33]Read from MH i2c: E2 [21:03:33]MH_I2C_Read... [21:03:33]Read from MH i2c: E2 62 00 [21:03:33]MH_I2C_Read... [21:03:33]Read from MH i2c: E2 62 00 AD 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 23 97 01 00 0E 04 04 00 63 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 3C [21:03: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 23 97 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 96 00 00 00 5E 04 04 00 96 00 00 00 57 04 04 00 97 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:03:33]wFMCommunicate OK [21:03:33]SAM_PROTO_GetFieldsCounters done [21:03:33]requested_item shift.num is exist - process it [21:03:33]requested_item shift.opened is exist - process it [21:03:33]req_shift_opened [21:03:33]FM_GetShiftState [21:03:33]SAM_PROTO_GetShiftState [21:03:33]wFMCommunicate request_size=4 [21:03:33]MH_SAM_APDU [21:03:33]CAPDU: 80 13 01 00 [21:03:33]Write to MH i2c: E2 08 00 AE 0B 80 13 01 00 00 00 00 00 36 [21:03:33]Write i2c OK [21:03:33]MH_I2C_Read... [21:03:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:03:33]Read from MH i2c: E2 [21:03:33]MH_I2C_Read... [21:03:33]Read from MH i2c: E2 0E 00 [21:03:33]MH_I2C_Read... [21:03:33]Read from MH i2c: E2 0E 00 AE 0B 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 49 [21:03:33]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [21:03:33]wFMCommunicate OK [21:03:33]SAM_PROTO_GetShiftState done [21:03:33]FM_GetShiftState done [21:03:33]req_shift_opened done [21:03:33]requested_item shift.open_date is exist - process it [21:03:33]req_shift_open_date [21:03:33]req_shift_open_date done [21:03:33]produce_requested_data done [21:03:33]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104227,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [21:03:33]process_action_free close_receipt [21:03:33]json_value_free [21:03:33]json_value_free done [21:03:33]process_json_proto returns [21:03:33]Send response to host [21:03:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104227,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [21:03:33]free response buf [21:03:33]execute_script done [21:03:33]execute_script returns [21:03:33]free content buf [21:03:33]Sock 9.Close socket [21:03:33]Sock 9.Thread stoped [21:03:37]OFD Sender: No OFD packet to send [21:03:42]OFD Sender: No OFD packet to send [21:03:47]OFD Sender: No OFD packet to send [21:03:52]OFD Sender: No OFD packet to send [21:03:57]OFD Sender: No OFD packet to send [21:04:02]OFD Sender: No OFD packet to send [21:04:07]OFD Sender: No OFD packet to send [21:04:12]OFD Sender: No OFD packet to send [21:04:17]OFD Sender: No OFD packet to send [21:04:22]OFD Sender: No OFD packet to send [21:04:27]OFD Sender: No OFD packet to send [21:04:32]OFD Sender: No OFD packet to send [21:04:37]OFD Sender: No OFD packet to send [21:04:42]OFD Sender: No OFD packet to send [21:04:47]OFD Sender: No OFD packet to send [21:04:52]OFD Sender: No OFD packet to send [21:04:52]accept exits with 7 [21:04:52]New connection [21:04:52]New thread 3067616612 created [21:04:52] Sock 7.Parse request [21:04:52]Thread 3067473252 joined [21:04:52]Sock 7.Check first char [21:04:52]Waiting for new connection... [21:04:52]Sock 7.First char is OK [21:04:52]request: POST /json_proto HTTP/1.0 [21:04:52]Method: POST [21:04:52]URL: /json_proto [21:04:52]Method is POST - this is cgi request [21:04:52]url: /json_proto [21:04:52]query_string will be loaded in cgi processing [21:04:52]execute_cgi json_proto POST (null) [21:04:52]execute_cgi path=json_proto method=POST [21:04:52]POST find Content-Length [21:04:52]Host: 172.17.38.133:8080 [21:04:52]Content-Length: 1195 [21:04:52]Content-Type: application/json [21:04:52] [21:04:52]POST finish read [21:04:52]Found Content-Length = 1195 [21:04: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 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)673711\u000A21.06.2024 20:41\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 24.680 x 73.90\u000A\u0418\u0422\u041E\u0413: 1823.85\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" ] } } [21:04:52]execute_script... [21:04: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 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)673711\u000A21.06.2024 20:41\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 24.680 x 73.90\u000A\u0418\u0422\u041E\u0413: 1823.85\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" ] } } [21:04:52]POST & json_proto [21:04:52]process_json_proto [21:04:52]json parsed OK: [21:04:52]protocol is kg_v1.0 [21:04:52]action value=print_text [21:04:52]process_action print_text [21:04:52]cmd_print_text [21:04:52]ExternCall_PrintAddStr [21:04:52]wPrintStart [21:04:52]Write to MH i2c: 01 00 00 AF 0B BA [21:04:52]Write i2c OK [21:04:52]MH_I2C_Read... [21:04:52]Read from MH i2c: 01 [21:04:52]MH_I2C_Read... [21:04:52]Read from MH i2c: 01 07 00 [21:04:52]MH_I2C_Read... [21:04:52]Read from MH i2c: 01 07 00 AF 0B 00 00 00 00 00 FF 0F CF [21:04:52]RasterBufferAndPrint [21:04:52]line *****ТОВАРНЫЙ ЧЕК***** [21:04:52]line АЗС 120 [21:04:52]line Партнер нефть [21:04:52]line 02508201610067 [21:04:52]line Кассир : Асанбаев Н. [21:04:52]line Счет N : (1)673711 [21:04:52]line 21.06.2024 20:41 [21:04:52]line ПРОДАЖА [21:04:52]line ТРК (МРК, ГНК): 31 [21:04:52]line Вид ГСМ : 2710124500 [21:04:52]line Аи-95-К-5 [21:04:52]line 24.680 x 73.90 [21:04:52]line ИТОГ: 1823.85 [21:04:52]line Тип оплаты: Талоны: Топливная Карта [21:04:52]line 32170 [21:04:52]line ______________________ [21:04:52]line (подпись) [21:04:52]written 0, free lines is 4095 [21:04:52]Write to MH i2c: 01 00 00 C3 0B CE [21:04:52]Write i2c OK [21:04:52]MH_I2C_Read... [21:04:52]Read from MH i2c: 01 [21:04:52]MH_I2C_Read... [21:04:52]Read from MH i2c: 01 07 00 [21:04:52]MH_I2C_Read... [21:04:52]Read from MH i2c: 01 07 00 C3 0B 00 00 00 00 00 10 0E F3 [21:04:52]RasterBufferAndPrint [21:04:52]line [21:04:52]line [21:04:52]line [21:04:52]line [21:04:52]line [21:04:52]written 0, free lines is 3601 [21:04:52]MH_Cut [21:04:52]Write to MH i2c: D1 01 00 CA 0B 01 A7 [21:04:52]Write i2c OK [21:04:52]MH_I2C_Read... [21:04:52]Read from MH i2c: D1 [21:04:52]MH_I2C_Read... [21:04:52]Read from MH i2c: D1 01 00 [21:04:52]MH_I2C_Read... [21:04:52]Read from MH i2c: D1 01 00 CA 0B 00 A6 [21:04:52]Write to MH i2c: 01 00 00 CB 0B D6 [21:04:52]Write i2c OK [21:04:52]MH_I2C_Read... [21:04:53]*** Cut start [21:04:53]*** Partial cut [21:04:53]*** CUTSNS_PIN = 1 [21:04:53]*** CUTSNS_PIN = 0 [21:04:53]*** Brake cut motor [21:04:53]Read from MH i2c: 01 [21:04:53]MH_I2C_Read... [21:04:53]Read from MH i2c: 01 07 00 [21:04:53]MH_I2C_Read... [21:04:53]*** Stop cut motor [21:04:53]*** Cut end [21:04:53]Read from MH i2c: 01 07 00 CB 0B 00 00 00 00 00 FF 0F EB [21:04:53]process_action print_text done [21:04:53]requested_data is exist [21:04:53]produce_requested_data [21:04:53]requested_item fm.sn is exist - process it [21:04:53]wFMCommunicate request_size=4 [21:04:53]MH_SAM_APDU [21:04:53]CAPDU: 80 11 00 00 [21:04:53]Write to MH i2c: E2 08 00 CC 0B 80 11 00 00 00 00 00 00 51 [21:04:53]Write i2c OK [21:04:53]MH_I2C_Read... [21:04:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:04:53]Read from MH i2c: E2 [21:04:53]MH_I2C_Read... [21:04:53]Read from MH i2c: E2 17 00 [21:04:53]MH_I2C_Read... [21:04:53]Read from MH i2c: E2 17 00 CC 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 A4 [21:04:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [21:04:53]wFMCommunicate OK [21:04:53]requested_item fd.num is exist - process it [21:04:53]SAM_PROTO_GetFieldsCounters [21:04:53]wFMCommunicate request_size=4 [21:04:53]MH_SAM_APDU [21:04:53]CAPDU: 80 13 00 00 [21:04:53]Write to MH i2c: E2 08 00 CD 0B 80 13 00 00 00 00 00 00 54 [21:04:53]Write i2c OK [21:04:53]MH_I2C_Read... [21:04:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:04:54]Read from MH i2c: E2 [21:04:54]MH_I2C_Read... [21:04:54]Read from MH i2c: E2 62 00 [21:04:54]MH_I2C_Read... [21:04:54]Read from MH i2c: E2 62 00 CD 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 23 97 01 00 0E 04 04 00 63 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 5C [21:04: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 23 97 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 96 00 00 00 5E 04 04 00 96 00 00 00 57 04 04 00 97 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:04:54]wFMCommunicate OK [21:04:54]SAM_PROTO_GetFieldsCounters done [21:04:54]requested_item shift.num is exist - process it [21:04:54]requested_item shift.opened is exist - process it [21:04:54]req_shift_opened [21:04:54]FM_GetShiftState [21:04:54]SAM_PROTO_GetShiftState [21:04:54]wFMCommunicate request_size=4 [21:04:54]MH_SAM_APDU [21:04:54]CAPDU: 80 13 01 00 [21:04:54]Write to MH i2c: E2 08 00 CE 0B 80 13 01 00 00 00 00 00 56 [21:04:54]Write i2c OK [21:04:54]MH_I2C_Read... [21:04:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:04:54]Read from MH i2c: E2 [21:04:54]MH_I2C_Read... [21:04:54]Read from MH i2c: E2 0E 00 [21:04:54]MH_I2C_Read... [21:04:54]Read from MH i2c: E2 0E 00 CE 0B 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 69 [21:04:54]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [21:04:54]wFMCommunicate OK [21:04:54]SAM_PROTO_GetShiftState done [21:04:54]FM_GetShiftState done [21:04:54]req_shift_opened done [21:04:54]requested_item shift.open_date is exist - process it [21:04:54]req_shift_open_date [21:04:54]req_shift_open_date done [21:04:54]produce_requested_data done [21:04:54]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104227,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [21:04:54]process_action_free print_text [21:04:54]json_value_free [21:04:54]json_value_free done [21:04:54]process_json_proto returns [21:04:54]Send response to host [21:04:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104227,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [21:04:54]free response buf [21:04:54]execute_script done [21:04:54]execute_script returns [21:04:54]free content buf [21:04:54]Sock 7.Close socket [21:04:54]Sock 7.Thread stoped [21:04:57]OFD Sender: No OFD packet to send [21:05:02]OFD Sender: No OFD packet to send [21:05:07]OFD Sender: No OFD packet to send [21:05:12]OFD Sender: No OFD packet to send [21:05:17]OFD Sender: No OFD packet to send [21:05:22]OFD Sender: No OFD packet to send [21:05:27]OFD Sender: No OFD packet to send [21:05:32]OFD Sender: No OFD packet to send [21:05:37]OFD Sender: No OFD packet to send [21:05:42]OFD Sender: No OFD packet to send [21:05:47]OFD Sender: No OFD packet to send [21:05:52]OFD Sender: No OFD packet to send [21:05:57]OFD Sender: No OFD packet to send [21:06:02]OFD Sender: No OFD packet to send [21:06:07]OFD Sender: No OFD packet to send [21:06:12]OFD Sender: No OFD packet to send [21:06:16]accept exits with 9 [21:06:16]New connection [21:06:16]New thread 3067473252 created [21:06:16]Thread 3067616612 joined [21:06:16]Waiting for new connection... [21:06:16] Sock 9.Parse request [21:06:16]Sock 9.Check first char [21:06:16]Sock 9.First char is OK [21:06:16]request: POST /json_proto HTTP/1.0 [21:06:16]Method: POST [21:06:16]URL: /json_proto [21:06:16]Method is POST - this is cgi request [21:06:16]url: /json_proto [21:06:16]query_string will be loaded in cgi processing [21:06:16]execute_cgi json_proto POST (null) [21:06:16]execute_cgi path=json_proto method=POST [21:06:16]POST find Content-Length [21:06:16]Host: 172.17.38.133:8080 [21:06:16]Content-Length: 677 [21:06:16]Content-Type: application/json [21:06:16] [21:06:16]POST finish read [21:06:16]Found Content-Length = 677 [21:06:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673713", "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.000, "sum" : 464.80, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 464.00, "payments": [ { "type": 0, "sum" : 464.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:06:16]execute_script... [21:06: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)673713", "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.000, "sum" : 464.80, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 464.00, "payments": [ { "type": 0, "sum" : 464.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:06:16]POST & json_proto [21:06:16]process_json_proto [21:06:16]json parsed OK: [21:06:16]protocol is kg_v1.0 [21:06:16]action value=close_receipt [21:06:16]process_action close_receipt [21:06:16]cmd_close_receipt [21:06:16]MH_GetDate [21:06:16]Write to MH i2c: F0 00 00 CF 0B C9 [21:06:16]Write i2c OK [21:06:16]MH_I2C_Read... [21:06:16]Read from MH i2c: F0 [21:06:16]MH_I2C_Read... [21:06:16]Read from MH i2c: F0 09 00 [21:06:16]MH_I2C_Read... [21:06:16]Read from MH i2c: F0 09 00 CF 0B 00 4A EB 75 66 BD 8F 7C 64 0E [21:06:16]GetLastDocTimeStamp 1719003811 [21:06:16]current date 1719003978 [21:06:16]FM_GetShiftState [21:06:16]SAM_PROTO_GetShiftState [21:06:16]wFMCommunicate request_size=4 [21:06:16]MH_SAM_APDU [21:06:16]CAPDU: 80 13 01 00 [21:06:16]Write to MH i2c: E2 08 00 D0 0B 80 13 01 00 00 00 00 00 58 [21:06:16]Write i2c OK [21:06:16]MH_I2C_Read... [21:06:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:06:16]Read from MH i2c: E2 [21:06:16]MH_I2C_Read... [21:06:16]Read from MH i2c: E2 0E 00 [21:06:16]MH_I2C_Read... [21:06:16]Read from MH i2c: E2 0E 00 D0 0B 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 6B [21:06:16]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [21:06:16]wFMCommunicate OK [21:06:16]SAM_PROTO_GetShiftState done [21:06:16]FM_GetShiftState done [21:06:16]opened in 1718929509 [21:06:16]opened+sec_in_day 1719015909 [21:06:16]quantity*price = 46480 [21:06:16]sum+1 = 46481 [21:06:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.80 ИТОГО: 464.00 Внесено: 500.00 СДАЧА: 36.00 НСП 1% : 4.11 НДС 12% : 49.36 Наличными: 464.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 151 21.06.2024 21:06 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104228 ФПД: 176677102813679 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T210618&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104228&fm=176677102813679&tin=02508201610067®Number=0000000000092785&sum=46400 [21:06:18]StoreToDocumentArchive [21:06:18]shift 355 fd 104228 [21:06:18]save to /storage/0355/doc_00104228 [21:06:18]save last doc name /storage/0355/doc_00104228 to /storage/kkm_last_doc_name [21:06:18]save OK [21:06:18]Clear old archive folders... [21:06:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:06:18]tlvbuf is 006954A0 [21:06:18]SAM_PROTO_ClearQueue [21:06:18]wFMCommunicate request_size=4 [21:06:18]MH_SAM_APDU [21:06:18]CAPDU: 80 09 00 00 [21:06:18]Write to MH i2c: E2 08 00 DD 0B 80 09 00 00 00 00 00 00 5A [21:06:18]Write i2c OK [21:06:18]MH_I2C_Read... [21:06:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:06:18]Read from MH i2c: E2 [21:06:18]MH_I2C_Read... [21:06:18]Read from MH i2c: E2 03 00 [21:06:18]MH_I2C_Read... [21:06:18]Read from MH i2c: E2 03 00 DD 0B 00 90 00 5C [21:06:18]RAPDU: 90 00 [21:06:18]wFMCommunicate OK [21:06:18]SAM_PROTO_ClearQueue done [21:06:18]KKMCreateOFDPacket [21:06:18]OFDProtocolAddRootSTLVToBuf [21:06:18]FM_MakeSignedData [21:06:18]FM_MakeSignedData [21:06:18]SAM_PROTO_SignData [21:06:18]wFMCommunicate request_size=4 [21:06:18]MH_SAM_APDU [21:06:18]CAPDU: 80 0D 01 02 [21:06:18]Write to MH i2c: E2 08 00 DE 0B 80 0D 01 02 00 00 00 00 62 [21:06:18]Write i2c OK [21:06:18]MH_I2C_Read... [21:06:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:06:18]Read from MH i2c: E2 [21:06:18]MH_I2C_Read... [21:06:18]Read from MH i2c: E2 03 00 [21:06:18]MH_I2C_Read... [21:06:18]Read from MH i2c: E2 03 00 DE 0B 00 90 00 5D [21:06:18]RAPDU: 90 00 [21:06:18]wFMCommunicate OK [21:06:18]wFMCommunicate request_size=255 [21:06:18]MH_SAM_APDU [21:06: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 58 1B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 90 B5 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 B5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 13 00 00 00 00 07 04 06 00 40 B5 00 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 4A EB 75 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 24 97 01 00 35 04 06 00 A0 [21:06:18]Write to MH i2c: E2 02 01 DF 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 58 1B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 90 B5 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 B5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 13 00 00 00 00 07 04 06 00 40 B5 00 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 4A EB 75 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 24 97 01 00 35 04 06 00 A0 00 00 7B [21:06:18]Write i2c OK [21:06:18]MH_I2C_Read... [21:06:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:06:18]Read from MH i2c: E2 [21:06:18]MH_I2C_Read... [21:06:18]Read from MH i2c: E2 03 00 [21:06:18]MH_I2C_Read... [21:06:18]Read from MH i2c: E2 03 00 DF 0B 00 90 00 5E [21:06:18]RAPDU: 90 00 [21:06:18]wFMCommunicate OK [21:06:18]wFMCommunicate request_size=10 [21:06:18]MH_SAM_APDU [21:06:18]CAPDU: 80 0D 02 02 05 AF D7 F4 01 EF [21:06:18]Write to MH i2c: E2 0D 00 E0 0B 80 0D 02 02 05 00 AF D7 F4 01 EF 00 00 D9 [21:06:18]Write i2c OK [21:06:18]MH_I2C_Read... [21:06:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:06:18]Read from MH i2c: E2 [21:06:18]MH_I2C_Read... [21:06:18]Read from MH i2c: E2 03 00 [21:06:18]MH_I2C_Read... [21:06:18]Read from MH i2c: E2 03 00 E0 0B 00 90 00 5F [21:06:18]RAPDU: 90 00 [21:06:18]wFMCommunicate OK [21:06:18]wFMCommunicate request_size=4 [21:06:18]MH_SAM_APDU [21:06:18]CAPDU: 80 0D 03 02 [21:06:18]Write to MH i2c: E2 08 00 E1 0B 80 0D 03 02 00 00 00 00 67 [21:06:18]Write i2c OK [21:06:18]MH_I2C_Read... [21:06:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:06:18]Read from MH i2c: E2 [21:06:18]MH_I2C_Read... [21:06:18]Read from MH i2c: E2 0B 00 [21:06:18]MH_I2C_Read... [21:06:18]Read from MH i2c: E2 0B 00 E1 0B 00 F0 BA E6 D9 75 58 BD 24 90 00 7F [21:06:18]RAPDU: F0 BA E6 D9 75 58 BD 24 90 00 [21:06:18]wFMCommunicate OK [21:06:18]SAM_PROTO_SignData done [21:06:18]FM_MakeSignedData done [21:06:18]CreateOFDProtocolMessage [21:06:18]wFMCommunicate request_size=4 [21:06:18]MH_SAM_APDU [21:06:18]CAPDU: 80 11 00 00 [21:06:18]Write to MH i2c: E2 08 00 E2 0B 80 11 00 00 00 00 00 00 67 [21:06:18]Write i2c OK [21:06:18]MH_I2C_Read... [21:06:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:06:18]Read from MH i2c: E2 [21:06:18]MH_I2C_Read... [21:06:18]Read from MH i2c: E2 17 00 [21:06:18]MH_I2C_Read... [21:06:18]Read from MH i2c: E2 17 00 E2 0B 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:06:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [21:06:18]wFMCommunicate OK [21:06:18]CreateOFDProtocolMessage done [21:06:18]OFDSenderStorePacket 104228 [21:06:18]StoreOFDPacket docnum=104228 [21:06: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 40 0E 07 01 A9 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 58 1B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 90 B5 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 B5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 13 00 00 00 00 07 04 06 00 40 B5 00 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 4A EB 75 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 24 97 01 00 35 04 06 00 A0 AF D7 F4 01 EF F0 BA E6 D9 75 58 BD 24 [21:06:18]CheckFolder [21:06:18]dirname=/storage/ofd_packets [21:06:18]CheckFolder done [21:06:18]ProducePacketName [21:06:18]name=ofd_packets/00104228 [21:06:18]NVStorageSaveData ofd_packets/00104228 [21:06:18]File name is /storage/ofd_packets/00104228 [21:06:18]Write 301 bytes [21:06:18]NVStorageSaveData done [21:06:18]OFDSenderStorePacket done [21:06:18]KKMCreateOFDPacket done [21:06:18]NVStorageSaveData kkm_last_timestamp [21:06:18]File name is /storage/kkm_last_timestamp [21:06:18]Write 4 bytes [21:06:18]NVStorageSaveData done [21:06:18]ExternCall_PrintAddStr [21:06:18]wPrintStart [21:06:18]Write to MH i2c: 01 00 00 E3 0B EE [21:06:18]Write i2c OK [21:06:18]MH_I2C_Read... [21:06:18]Read from MH i2c: 01 [21:06:18]MH_I2C_Read... [21:06:18]Read from MH i2c: 01 07 00 [21:06:18]MH_I2C_Read... [21:06:18]Read from MH i2c: 01 07 00 E3 0B 00 00 00 00 00 FF 0F 03 [21:06:18]RasterBufferAndPrint [21:06:18]line Счет N : (1)673713 [21:06:18]line ИНН: 02508201610067 [21:06:18]line Контрольно-Кассовый Чек [21:06:18]line ПРОДАЖА [21:06:18]line ТРК (МРК, ГНК) : 32 [21:06:18]line Товар: 2710124130 [21:06:18]line Аи-92-К-5 [21:06:18]line 7.000 * 66.40 [21:06:18]line = 464.80 [21:06:18]line НДС 12% НСП 1% [21:06:18]line > о реализуемом товаре [21:06:18]line ОКРУГЛЕНИЕ: -0.80 [21:06:18]line ИТОГО: 464.00 [21:06:18]line Внесено: 500.00 [21:06:18]line СДАЧА: 36.00 [21:06:18]line НСП 1% : 4.11 [21:06:18]line НДС 12% : 49.36 [21:06:18]line Наличными: 464.00 [21:06:18]line Безнал.: 0.00 [21:06:18]line Место: АЗС № 120 "Партнер Нефть" [21:06:18]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [21:06:18]line СНО: Общий режим [21:06:18]line Чек 151 21.06.2024 21:06 [21:06:18]line Смена: 355 ФФД: 1.0 [21:06:18]line ЗНМ: 0300000164 [21:06:18]line РНМ: 0000000000092785 [21:06:18]line Версия ККМ: 001 [21:06:18]line ФМ: 0000000000875093 [21:06:18]line ФД: 104228 [21:06:18]line ФПД: 176677102813679 [21:06:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T210618&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104228&fm=176677102813679&tin=02508201610067®Number=0000000000092785&sum=46400 [21:06:18]OFD Sender: Processing packet 104228 [packets to send 17, broken 16] [21:06:18]ProducePacketName [21:06:18]name=ofd_packets/00104228 [21:06:18]OFD Sender: To server: pG, [21:06:18]CommunicateWithHost lk.salyk.kg:30040 [21:06:18]ConnectInit lk.salyk.kg [21:06:18]written 0, free lines is 4095 [21:06:19]Connected sock=10 [21:06: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 40 0E 07 01 A9 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 58 1B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 90 B5 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 B5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 13 00 00 00 00 07 04 06 00 40 B5 00 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 4A EB 75 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 24 97 01 00 35 04 06 00 A0 AF D7 F4 01 EF F0 BA E6 D9 75 58 BD 24 [21:06: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 47 D8 47 00 65 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 24 97 01 00 F4 03 04 00 CB 91 75 66 B6 04 01 00 00 43 35 47 C2 37 E2 6B 16 [21:06:19]CommunicateWithHost err = 0 [21:06:19]CheckOFDResponse [21:06:19]1017 (14) - 77093643461234 [21:06:19]1041 (16) - 0000000000875093 [21:06:19]1040 (4) - 104228 [21:06:19]1012 (4) - 21.06.2024 14:44 [21:06:19]1206 (1) - 0 [21:06:19]OFD Sender: Remove packet 104228 [21:06:19]ProducePacketName [21:06:19]name=ofd_packets/00104228 [21:06:19]NVStorageDeleteData [21:06:19]Write to MH i2c: 01 00 00 0E 0C 1A [21:06:19]Write i2c OK [21:06:19]MH_I2C_Read... [21:06:19]Read from MH i2c: 01 [21:06:19]MH_I2C_Read... [21:06:19]Read from MH i2c: 01 07 00 [21:06:19]MH_I2C_Read... [21:06:19]Read from MH i2c: 01 07 00 0E 0C 00 00 00 00 00 E5 0C 12 [21:06:19]RasterBufferAndPrint [21:06:19]line [21:06:19]line [21:06:19]line [21:06:19]line [21:06:19]line [21:06:19]written 0, free lines is 3310 [21:06:19]MH_Cut [21:06:19]Write to MH i2c: D1 01 00 15 0C 01 F3 [21:06:19]Write i2c OK [21:06:19]MH_I2C_Read... [21:06:19]Read from MH i2c: D1 [21:06:19]MH_I2C_Read... [21:06:19]Read from MH i2c: D1 01 00 [21:06:19]MH_I2C_Read... [21:06:19]Read from MH i2c: D1 01 00 15 0C 00 F2 [21:06:19]Write to MH i2c: 01 00 00 16 0C 22 [21:06:19]Write i2c OK [21:06:19]MH_I2C_Read... [21:06:19]OFD Sender: No OFD packet to send [21:06:20]*** Cut start [21:06:20]*** Partial cut [21:06:20]*** CUTSNS_PIN = 1 [21:06:20]*** CUTSNS_PIN = 0 [21:06:20]*** Brake cut motor [21:06:20]Read from MH i2c: 01 [21:06:20]MH_I2C_Read... [21:06:20]*** Stop cut motor [21:06:20]*** Cut end [21:06:20]Read from MH i2c: 01 07 00 [21:06:20]MH_I2C_Read... [21:06:20]Read from MH i2c: 01 07 00 16 0C 00 00 00 00 00 FF 0F 37 [21:06:20]process_action close_receipt done [21:06:20]requested_data is exist [21:06:20]produce_requested_data [21:06:20]requested_item fm.sn is exist - process it [21:06:20]wFMCommunicate request_size=4 [21:06:20]MH_SAM_APDU [21:06:20]CAPDU: 80 11 00 00 [21:06:20]Write to MH i2c: E2 08 00 17 0C 80 11 00 00 00 00 00 00 9D [21:06:20]Write i2c OK [21:06:20]MH_I2C_Read... [21:06:20]Read from MH i2c: E2 [21:06:20]MH_I2C_Read... [21:06:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:06:20]Read from MH i2c: E2 17 00 [21:06:20]MH_I2C_Read... [21:06:20]Read from MH i2c: E2 17 00 17 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 F0 [21:06:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [21:06:20]wFMCommunicate OK [21:06:20]requested_item fd.num is exist - process it [21:06:20]SAM_PROTO_GetFieldsCounters [21:06:20]wFMCommunicate request_size=4 [21:06:20]MH_SAM_APDU [21:06:20]CAPDU: 80 13 00 00 [21:06:20]Write to MH i2c: E2 08 00 18 0C 80 13 00 00 00 00 00 00 A0 [21:06:20]Write i2c OK [21:06:20]MH_I2C_Read... [21:06:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:06:20]Read from MH i2c: E2 [21:06:20]MH_I2C_Read... [21:06:20]Read from MH i2c: E2 62 00 [21:06:20]MH_I2C_Read... [21:06:20]Read from MH i2c: E2 62 00 18 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 24 97 01 00 0E 04 04 00 63 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 AC [21:06: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 24 97 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 97 00 00 00 5E 04 04 00 97 00 00 00 57 04 04 00 98 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:06:20]wFMCommunicate OK [21:06:20]SAM_PROTO_GetFieldsCounters done [21:06:20]requested_item shift.num is exist - process it [21:06:20]requested_item shift.opened is exist - process it [21:06:20]req_shift_opened [21:06:20]FM_GetShiftState [21:06:20]SAM_PROTO_GetShiftState [21:06:20]wFMCommunicate request_size=4 [21:06:20]MH_SAM_APDU [21:06:20]CAPDU: 80 13 01 00 [21:06:20]Write to MH i2c: E2 08 00 19 0C 80 13 01 00 00 00 00 00 A2 [21:06:20]Write i2c OK [21:06:20]MH_I2C_Read... [21:06:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:06:21]Read from MH i2c: E2 [21:06:21]MH_I2C_Read... [21:06:21]Read from MH i2c: E2 0E 00 [21:06:21]MH_I2C_Read... [21:06:21]Read from MH i2c: E2 0E 00 19 0C 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 B5 [21:06:21]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [21:06:21]wFMCommunicate OK [21:06:21]SAM_PROTO_GetShiftState done [21:06:21]FM_GetShiftState done [21:06:21]req_shift_opened done [21:06:21]requested_item shift.open_date is exist - process it [21:06:21]req_shift_open_date [21:06:21]req_shift_open_date done [21:06:21]produce_requested_data done [21:06:21]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104228,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [21:06:21]process_action_free close_receipt [21:06:21]json_value_free [21:06:21]json_value_free done [21:06:21]process_json_proto returns [21:06:21]Send response to host [21:06:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104228,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [21:06:21]free response buf [21:06:21]execute_script done [21:06:21]execute_script returns [21:06:21]free content buf [21:06:21]Sock 9.Close socket [21:06:21]Sock 9.Thread stoped [21:06:24]OFD Sender: No OFD packet to send [21:06:29]OFD Sender: No OFD packet to send [21:06:34]OFD Sender: No OFD packet to send [21:06:39]OFD Sender: No OFD packet to send [21:06:44]OFD Sender: No OFD packet to send [21:06:49]OFD Sender: No OFD packet to send [21:06:54]OFD Sender: No OFD packet to send [21:06:59]OFD Sender: No OFD packet to send [21:07:04]OFD Sender: No OFD packet to send [21:07:09]OFD Sender: No OFD packet to send [21:07:14]OFD Sender: No OFD packet to send [21:07:19]OFD Sender: No OFD packet to send [21:07:24]OFD Sender: No OFD packet to send [21:07:29]OFD Sender: No OFD packet to send [21:07:34]OFD Sender: No OFD packet to send [21:07:39]OFD Sender: No OFD packet to send [21:07:44]OFD Sender: No OFD packet to send [21:07:49]accept exits with 7 [21:07:49]New connection [21:07:49]New thread 3067616612 created [21:07:49]Thread 3067473252 joined [21:07:49]Waiting for new connection... [21:07:49] Sock 7.Parse request [21:07:49]Sock 7.Check first char [21:07:49]Sock 7.First char is OK [21:07:49]request: POST /json_proto HTTP/1.0 [21:07:49]Method: POST [21:07:49]URL: /json_proto [21:07:49]Method is POST - this is cgi request [21:07:49]url: /json_proto [21:07:49]query_string will be loaded in cgi processing [21:07:49]execute_cgi json_proto POST (null) [21:07:49]execute_cgi path=json_proto method=POST [21:07:49]POST find Content-Length [21:07:49]Host: 172.17.38.133:8080 [21:07:49]Content-Length: 734 [21:07:49]Content-Type: application/json [21:07:49] [21:07:49]POST finish read [21:07:49]Found Content-Length = 734 [21:07:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 104228, "base_FM": "0000000000875093", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673713", "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.000, "sum" : 464.80, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 464.00, "payments": [ { "type": 0, "sum" : 464.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:07:49]execute_script... [21:07:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 104228, "base_FM": "0000000000875093", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673713", "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.000, "sum" : 464.80, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 464.00, "payments": [ { "type": 0, "sum" : 464.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:07:49]POST & json_proto [21:07:49]process_json_proto [21:07:49]json parsed OK: [21:07:49]protocol is kg_v1.0 [21:07:49]action value=close_receipt [21:07:49]process_action close_receipt [21:07:49]cmd_close_receipt [21:07:49]MH_GetDate [21:07:49]Write to MH i2c: F0 00 00 1A 0C 15 [21:07:49]Write i2c OK [21:07:49]MH_I2C_Read... [21:07:49]Read from MH i2c: F0 [21:07:49]MH_I2C_Read... [21:07:49]Read from MH i2c: F0 09 00 [21:07:49]MH_I2C_Read... [21:07:49]Read from MH i2c: F0 09 00 1A 0C 00 A6 EB 75 66 BD 8F 7C 64 B6 [21:07:49]GetLastDocTimeStamp 1719003978 [21:07:49]current date 1719004070 [21:07:49]FM_GetShiftState [21:07:49]SAM_PROTO_GetShiftState [21:07:49]wFMCommunicate request_size=4 [21:07:49]MH_SAM_APDU [21:07:49]CAPDU: 80 13 01 00 [21:07:49]Write to MH i2c: E2 08 00 1B 0C 80 13 01 00 00 00 00 00 A4 [21:07:49]Write i2c OK [21:07:49]MH_I2C_Read... [21:07:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:07:49]Read from MH i2c: E2 [21:07:49]MH_I2C_Read... [21:07:49]Read from MH i2c: E2 0E 00 [21:07:49]MH_I2C_Read... [21:07:49]Read from MH i2c: E2 0E 00 1B 0C 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 B7 [21:07:49]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [21:07:49]wFMCommunicate OK [21:07:49]SAM_PROTO_GetShiftState done [21:07:49]FM_GetShiftState done [21:07:49]opened in 1718929509 [21:07:49]opened+sec_in_day 1719015909 [21:07:49]quantity*price = 46480 [21:07:49]sum+1 = 46481 [21:07:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.80 ИТОГО: 464.00 НСП 1% : 4.11 НДС 12% : 49.36 Наличными: 464.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 152 21.06.2024 21:07 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФД осн.: 104228 ФМ осн.: 0000000000875093 ФМ: 0000000000875093 ФД: 104229 ФПД: 71072759569995 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T210750&type=2&operation_type=1&fn_number=0000000000875093&fd_number=104229&fm=71072759569995&tin=02508201610067®Number=0000000000092785&sum=46400 [21:07:50]StoreToDocumentArchive [21:07:50]shift 355 fd 104229 [21:07:50]save to /storage/0355/doc_00104229 [21:07:50]save last doc name /storage/0355/doc_00104229 to /storage/kkm_last_doc_name [21:07:50]save OK [21:07:50]Clear old archive folders... [21:07:50]ProcessDocumentItem done err = 0, tmpTLVsize=279 [21:07:50]tlvbuf is 00677AE0 [21:07:50]SAM_PROTO_ClearQueue [21:07:50]wFMCommunicate request_size=4 [21:07:50]MH_SAM_APDU [21:07:50]CAPDU: 80 09 00 00 [21:07:50]Write to MH i2c: E2 08 00 2A 0C 80 09 00 00 00 00 00 00 A8 [21:07:50]Write i2c OK [21:07:50]MH_I2C_Read... [21:07:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:07:50]Read from MH i2c: E2 [21:07:50]MH_I2C_Read... [21:07:50]Read from MH i2c: E2 03 00 [21:07:50]MH_I2C_Read... [21:07:50]Read from MH i2c: E2 03 00 2A 0C 00 90 00 AA [21:07:50]RAPDU: 90 00 [21:07:50]wFMCommunicate OK [21:07:50]SAM_PROTO_ClearQueue done [21:07:50]KKMCreateOFDPacket [21:07:50]OFDProtocolAddRootSTLVToBuf [21:07:50]FM_MakeSignedData [21:07:50]FM_MakeSignedData [21:07:50]SAM_PROTO_SignData [21:07:50]wFMCommunicate request_size=4 [21:07:50]MH_SAM_APDU [21:07:50]CAPDU: 80 0D 01 02 [21:07:50]Write to MH i2c: E2 08 00 2B 0C 80 0D 01 02 00 00 00 00 B0 [21:07:50]Write i2c OK [21:07:50]MH_I2C_Read... [21:07:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:07:50]Read from MH i2c: E2 [21:07:50]MH_I2C_Read... [21:07:50]Read from MH i2c: E2 03 00 [21:07:50]MH_I2C_Read... [21:07:50]Read from MH i2c: E2 03 00 2B 0C 00 90 00 AB [21:07:50]RAPDU: 90 00 [21:07:50]wFMCommunicate OK [21:07:50]wFMCommunicate request_size=255 [21:07:50]MH_SAM_APDU [21:07:50]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 58 1B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 90 B5 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 B5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 13 00 00 00 00 07 04 06 00 40 B5 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 A6 EB 75 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 27 04 04 00 24 97 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 [21:07:50]Write to MH i2c: E2 02 01 2C 0C 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 58 1B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 90 B5 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 B5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 13 00 00 00 00 07 04 06 00 40 B5 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 A6 EB 75 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 27 04 04 00 24 97 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 E8 [21:07:50]Write i2c OK [21:07:50]MH_I2C_Read... [21:07:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:07:51]Read from MH i2c: E2 [21:07:51]MH_I2C_Read... [21:07:51]Read from MH i2c: E2 03 00 [21:07:51]MH_I2C_Read... [21:07:51]Read from MH i2c: E2 03 00 2C 0C 00 90 00 AC [21:07:51]RAPDU: 90 00 [21:07:51]wFMCommunicate OK [21:07:51]wFMCommunicate request_size=38 [21:07:51]MH_SAM_APDU [21:07:51]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 25 97 01 00 35 04 06 00 40 A3 EA 96 5E 4B [21:07:51]Write to MH i2c: E2 29 00 2D 0C 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 25 97 01 00 35 04 06 00 40 A3 EA 96 5E 4B 00 00 05 [21:07:51]Write i2c OK [21:07:51]MH_I2C_Read... [21:07:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:07:51]Read from MH i2c: E2 [21:07:51]MH_I2C_Read... [21:07:51]Read from MH i2c: E2 03 00 [21:07:51]MH_I2C_Read... [21:07:51]Read from MH i2c: E2 03 00 2D 0C 00 90 00 AD [21:07:51]RAPDU: 90 00 [21:07:51]wFMCommunicate OK [21:07:51]wFMCommunicate request_size=4 [21:07:51]MH_SAM_APDU [21:07:51]CAPDU: 80 0D 03 02 [21:07:51]Write to MH i2c: E2 08 00 2E 0C 80 0D 03 02 00 00 00 00 B5 [21:07:51]Write i2c OK [21:07:51]MH_I2C_Read... [21:07:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:07:51]Read from MH i2c: E2 [21:07:51]MH_I2C_Read... [21:07:51]Read from MH i2c: E2 0B 00 [21:07:51]MH_I2C_Read... [21:07:51]Read from MH i2c: E2 0B 00 2E 0C 00 6D 12 0F 47 28 DA 10 53 90 00 F0 [21:07:51]RAPDU: 6D 12 0F 47 28 DA 10 53 90 00 [21:07:51]wFMCommunicate OK [21:07:51]SAM_PROTO_SignData done [21:07:51]FM_MakeSignedData done [21:07:51]CreateOFDProtocolMessage [21:07:51]wFMCommunicate request_size=4 [21:07:51]MH_SAM_APDU [21:07:51]CAPDU: 80 11 00 00 [21:07:51]Write to MH i2c: E2 08 00 2F 0C 80 11 00 00 00 00 00 00 B5 [21:07:51]Write i2c OK [21:07:51]MH_I2C_Read... [21:07:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:07:51]Read from MH i2c: E2 [21:07:51]MH_I2C_Read... [21:07:51]Read from MH i2c: E2 17 00 [21:07:51]MH_I2C_Read... [21:07:51]Read from MH i2c: E2 17 00 2F 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 08 [21:07: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:07:51]wFMCommunicate OK [21:07:51]CreateOFDProtocolMessage done [21:07:51]OFDSenderStorePacket 104229 [21:07:51]StoreOFDPacket docnum=104229 [21:07: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 2B 01 00 00 8F 34 23 01 22 45 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 58 1B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 90 B5 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 B5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 13 00 00 00 00 07 04 06 00 40 B5 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 A6 EB 75 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 27 04 04 00 24 97 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 25 97 01 00 35 04 06 00 40 A3 EA 96 5E 4B 6D 12 0F 47 28 DA 10 53 [21:07:51]CheckFolder [21:07:51]dirname=/storage/ofd_packets [21:07:51]CheckFolder done [21:07:51]ProducePacketName [21:07:51]name=ofd_packets/00104229 [21:07:51]NVStorageSaveData ofd_packets/00104229 [21:07:51]File name is /storage/ofd_packets/00104229 [21:07:51]Write 329 bytes [21:07:51]NVStorageSaveData done [21:07:51]OFDSenderStorePacket done [21:07:51]KKMCreateOFDPacket done [21:07:51]NVStorageSaveData kkm_last_timestamp [21:07:51]File name is /storage/kkm_last_timestamp [21:07:51]OFD Sender: Processing packet 104229 [packets to send 17, broken 16] [21:07:51]ProducePacketName [21:07:51]name=ofd_packets/00104229 [21:07:51]OFD Sender: To server: pG, [21:07:51]CommunicateWithHost lk.salyk.kg:30040 [21:07:51]ConnectInit lk.salyk.kg [21:07:51]Write 4 bytes [21:07:51]NVStorageSaveData done [21:07:51]ExternCall_PrintAddStr [21:07:51]wPrintStart [21:07:51]Write to MH i2c: 01 00 00 30 0C 3C [21:07:51]Write i2c OK [21:07:51]MH_I2C_Read... [21:07:51]Read from MH i2c: 01 [21:07:51]MH_I2C_Read... [21:07:51]Read from MH i2c: 01 07 00 [21:07:51]MH_I2C_Read... [21:07:51]Read from MH i2c: 01 07 00 30 0C 00 00 00 00 00 FF 0F 51 [21:07:51]RasterBufferAndPrint [21:07:51]line Счет N : (1)673713 [21:07:51]line ИНН: 02508201610067 [21:07:51]line Контрольно-Кассовый Чек [21:07:51]line ВОЗВРАТ ПРОДАЖИ [21:07:51]line ТРК (МРК, ГНК) : 32 [21:07:51]line Товар: 2710124130 [21:07:51]line Аи-92-К-5 [21:07:51]line 7.000 * 66.40 [21:07:51]line = 464.80 [21:07:51]line НДС 12% НСП 1% [21:07:51]line > о реализуемом товаре [21:07:51]line ОКРУГЛЕНИЕ: -0.80 [21:07:51]line ИТОГО: 464.00 [21:07:51]line НСП 1% : 4.11 [21:07:51]line НДС 12% : 49.36 [21:07:51]line Наличными: 464.00 [21:07:51]line Безнал.: 0.00 [21:07:51]line Место: АЗС № 120 "Партнер Нефть" [21:07:51]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [21:07:51]line СНО: Общий режим [21:07:51]line Чек 152 21.06.2024 21:07 [21:07:51]line Смена: 355 ФФД: 1.0 [21:07:51]line ЗНМ: 0300000164 [21:07:51]line РНМ: 0000000000092785 [21:07:51]line Версия ККМ: 001 [21:07:51]line ФД осн.: 104228 [21:07:51]line ФМ осн.: 0000000000875093 [21:07:51]line ФМ: 0000000000875093 [21:07:51]line ФД: 104229 [21:07:51]line ФПД: 71072759569995 [21:07:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T210750&type=2&operation_type=1&fn_number=0000000000875093&fd_number=104229&fm=71072759569995&tin=02508201610067®Number=0000000000092785&sum=46400 [21:07:51]Connected sock=11 [21:07: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 2B 01 00 00 8F 34 23 01 22 45 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 58 1B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 90 B5 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 B5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 13 00 00 00 00 07 04 06 00 40 B5 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 A6 EB 75 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 27 04 04 00 24 97 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 25 97 01 00 35 04 06 00 40 A3 EA 96 5E 4B 6D 12 0F 47 28 DA 10 53 [21:07:51]written 0, free lines is 4095 [21:07: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 81 18 47 00 83 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 25 97 01 00 F4 03 04 00 28 92 75 66 B6 04 01 00 00 F8 D2 BA 70 89 34 EA EF [21:07:51]CommunicateWithHost err = 0 [21:07:51]CheckOFDResponse [21:07:51]1017 (14) - 77093643461234 [21:07:51]1041 (16) - 0000000000875093 [21:07:51]1040 (4) - 104229 [21:07:51]1012 (4) - 21.06.2024 14:46 [21:07:51]1206 (1) - 0 [21:07:51]OFD Sender: Remove packet 104229 [21:07:51]ProducePacketName [21:07:51]name=ofd_packets/00104229 [21:07:51]NVStorageDeleteData [21:07:52]Write to MH i2c: 01 00 00 5B 0C 67 [21:07:52]Write i2c OK [21:07:52]MH_I2C_Read... [21:07:52]Read from MH i2c: 01 [21:07:52]MH_I2C_Read... [21:07:52]Read from MH i2c: 01 07 00 [21:07:52]MH_I2C_Read... [21:07:52]Read from MH i2c: 01 07 00 5B 0C 00 00 00 00 00 E3 0C 5D [21:07:52]RasterBufferAndPrint [21:07:52]line [21:07:52]line [21:07:52]line [21:07:52]line [21:07:52]line [21:07:52]written 0, free lines is 3305 [21:07:52]MH_Cut [21:07:52]Write to MH i2c: D1 01 00 62 0C 01 40 [21:07:52]Write i2c OK [21:07:52]MH_I2C_Read... [21:07:52]Read from MH i2c: D1 [21:07:52]MH_I2C_Read... [21:07:52]Read from MH i2c: D1 01 00 [21:07:52]MH_I2C_Read... [21:07:52]Read from MH i2c: D1 01 00 62 0C 00 3F [21:07:52]Write to MH i2c: 01 00 00 63 0C 6F [21:07:52]Write i2c OK [21:07:52]MH_I2C_Read... [21:07:52]OFD Sender: No OFD packet to send [21:07:52]*** Cut start [21:07:52]*** Partial cut [21:07:52]*** CUTSNS_PIN = 1 [21:07:52]*** CUTSNS_PIN = 0 [21:07:53]*** Brake cut motor [21:07:53]Read from MH i2c: 01 [21:07:53]MH_I2C_Read... [21:07:53]*** Stop cut motor [21:07:53]*** Cut end [21:07:53]Read from MH i2c: 01 07 00 [21:07:53]MH_I2C_Read... [21:07:53]Read from MH i2c: 01 07 00 63 0C 00 00 00 00 00 FF 0F 84 [21:07:53]process_action close_receipt done [21:07:53]requested_data is exist [21:07:53]produce_requested_data [21:07:53]requested_item fm.sn is exist - process it [21:07:53]wFMCommunicate request_size=4 [21:07:53]MH_SAM_APDU [21:07:53]CAPDU: 80 11 00 00 [21:07:53]Write to MH i2c: E2 08 00 64 0C 80 11 00 00 00 00 00 00 EA [21:07:53]Write i2c OK [21:07:53]MH_I2C_Read... [21:07:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:07:53]Read from MH i2c: E2 [21:07:53]MH_I2C_Read... [21:07:53]Read from MH i2c: E2 17 00 [21:07:53]MH_I2C_Read... [21:07:53]Read from MH i2c: E2 17 00 64 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 3D [21:07:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [21:07:53]wFMCommunicate OK [21:07:53]requested_item fd.num is exist - process it [21:07:53]SAM_PROTO_GetFieldsCounters [21:07:53]wFMCommunicate request_size=4 [21:07:53]MH_SAM_APDU [21:07:53]CAPDU: 80 13 00 00 [21:07:53]Write to MH i2c: E2 08 00 65 0C 80 13 00 00 00 00 00 00 ED [21:07:53]Write i2c OK [21:07:53]MH_I2C_Read... [21:07:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:07:53]Read from MH i2c: E2 [21:07:53]MH_I2C_Read... [21:07:53]Read from MH i2c: E2 62 00 [21:07:53]MH_I2C_Read... [21:07:53]Read from MH i2c: E2 62 00 65 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 25 97 01 00 0E 04 04 00 63 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 FD [21:07: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 25 97 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 98 00 00 00 5E 04 04 00 98 00 00 00 57 04 04 00 99 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:07:53]wFMCommunicate OK [21:07:53]SAM_PROTO_GetFieldsCounters done [21:07:53]requested_item shift.num is exist - process it [21:07:53]requested_item shift.opened is exist - process it [21:07:53]req_shift_opened [21:07:53]FM_GetShiftState [21:07:53]SAM_PROTO_GetShiftState [21:07:53]wFMCommunicate request_size=4 [21:07:53]MH_SAM_APDU [21:07:53]CAPDU: 80 13 01 00 [21:07:53]Write to MH i2c: E2 08 00 66 0C 80 13 01 00 00 00 00 00 EF [21:07:53]Write i2c OK [21:07:53]MH_I2C_Read... [21:07:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:07:53]Read from MH i2c: E2 [21:07:53]MH_I2C_Read... [21:07:53]Read from MH i2c: E2 0E 00 [21:07:53]MH_I2C_Read... [21:07:53]Read from MH i2c: E2 0E 00 66 0C 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 02 [21:07:53]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [21:07:53]wFMCommunicate OK [21:07:53]SAM_PROTO_GetShiftState done [21:07:53]FM_GetShiftState done [21:07:53]req_shift_opened done [21:07:53]requested_item shift.open_date is exist - process it [21:07:53]req_shift_open_date [21:07:53]req_shift_open_date done [21:07:53]produce_requested_data done [21:07:53]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104229,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [21:07:53]process_action_free close_receipt [21:07:53]json_value_free [21:07:53]json_value_free done [21:07:53]process_json_proto returns [21:07:53]Send response to host [21:07:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104229,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [21:07:53]free response buf [21:07:53]execute_script done [21:07:53]execute_script returns [21:07:53]free content buf [21:07:53]Sock 7.Close socket [21:07:53]Sock 7.Thread stoped [21:07:57]OFD Sender: No OFD packet to send [21:07:57]accept exits with 9 [21:07:57]New connection [21:07:57]New thread 3067473252 created [21:07:57]Thread 3067616612 joined [21:07:57]Waiting for new connection... [21:07:57] Sock 9.Parse request [21:07:57]Sock 9.Check first char [21:07:57]Sock 9.First char is OK [21:07:57]request: POST /json_proto HTTP/1.0 [21:07:57]Method: POST [21:07:57]URL: /json_proto [21:07:57]Method is POST - this is cgi request [21:07:57]url: /json_proto [21:07:57]query_string will be loaded in cgi processing [21:07:57]execute_cgi json_proto POST (null) [21:07:57]execute_cgi path=json_proto method=POST [21:07:57]POST find Content-Length [21:07:57]Host: 172.17.38.133:8080 [21:07:57]Content-Length: 677 [21:07:57]Content-Type: application/json [21:07:57] [21:07:57]POST finish read [21:07:57]Found Content-Length = 677 [21:07:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673714", "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.000, "sum" : 464.80, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 464.00, "total" : 464.00, "payments": [ { "type": 0, "sum" : 464.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:07:57]execute_script... [21:07: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)673714", "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.000, "sum" : 464.80, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 464.00, "total" : 464.00, "payments": [ { "type": 0, "sum" : 464.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:07:57]POST & json_proto [21:07:57]process_json_proto [21:07:57]json parsed OK: [21:07:57]protocol is kg_v1.0 [21:07:57]action value=close_receipt [21:07:57]process_action close_receipt [21:07:57]cmd_close_receipt [21:07:57]MH_GetDate [21:07:57]Write to MH i2c: F0 00 00 67 0C 62 [21:07:57]Write i2c OK [21:07:57]MH_I2C_Read... [21:07:57]Read from MH i2c: F0 [21:07:57]MH_I2C_Read... [21:07:57]Read from MH i2c: F0 09 00 [21:07:57]MH_I2C_Read... [21:07:57]Read from MH i2c: F0 09 00 67 0C 00 AF EB 75 66 BD 8F 7C 64 0C [21:07:57]GetLastDocTimeStamp 1719004070 [21:07:57]current date 1719004079 [21:07:57]FM_GetShiftState [21:07:57]SAM_PROTO_GetShiftState [21:07:57]wFMCommunicate request_size=4 [21:07:57]MH_SAM_APDU [21:07:57]CAPDU: 80 13 01 00 [21:07:57]Write to MH i2c: E2 08 00 68 0C 80 13 01 00 00 00 00 00 F1 [21:07:57]Write i2c OK [21:07:57]MH_I2C_Read... [21:07:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:07:57]Read from MH i2c: E2 [21:07:57]MH_I2C_Read... [21:07:57]Read from MH i2c: E2 0E 00 [21:07:57]MH_I2C_Read... [21:07:57]Read from MH i2c: E2 0E 00 68 0C 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 04 [21:07:57]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [21:07:57]wFMCommunicate OK [21:07:57]SAM_PROTO_GetShiftState done [21:07:57]FM_GetShiftState done [21:07:57]opened in 1718929509 [21:07:57]opened+sec_in_day 1719015909 [21:07:57]quantity*price = 46480 [21:07:57]sum+1 = 46481 [21:07:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.80 ИТОГО: 464.00 Внесено: 464.00 СДАЧА: 0.00 НСП 1% : 4.11 НДС 12% : 49.36 Наличными: 464.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 153 21.06.2024 21:07 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104230 ФПД: 6463082060304 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T210759&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104230&fm=6463082060304&tin=02508201610067®Number=0000000000092785&sum=46400 [21:07:59]StoreToDocumentArchive [21:07:59]shift 355 fd 104230 [21:07:59]save to /storage/0355/doc_00104230 [21:07:59]save last doc name /storage/0355/doc_00104230 to /storage/kkm_last_doc_name [21:07:59]save OK [21:07:59]Clear old archive folders... [21:07:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:07:59]tlvbuf is 006AF210 [21:07:59]SAM_PROTO_ClearQueue [21:07:59]wFMCommunicate request_size=4 [21:07:59]MH_SAM_APDU [21:07:59]CAPDU: 80 09 00 00 [21:07:59]Write to MH i2c: E2 08 00 75 0C 80 09 00 00 00 00 00 00 F3 [21:07:59]Write i2c OK [21:07:59]MH_I2C_Read... [21:07:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:07:59]Read from MH i2c: E2 [21:07:59]MH_I2C_Read... [21:07:59]Read from MH i2c: E2 03 00 [21:07:59]MH_I2C_Read... [21:07:59]Read from MH i2c: E2 03 00 75 0C 00 90 00 F5 [21:07:59]RAPDU: 90 00 [21:07:59]wFMCommunicate OK [21:07:59]SAM_PROTO_ClearQueue done [21:07:59]KKMCreateOFDPacket [21:07:59]OFDProtocolAddRootSTLVToBuf [21:07:59]FM_MakeSignedData [21:07:59]FM_MakeSignedData [21:07:59]SAM_PROTO_SignData [21:07:59]wFMCommunicate request_size=4 [21:07:59]MH_SAM_APDU [21:07:59]CAPDU: 80 0D 01 02 [21:07:59]Write to MH i2c: E2 08 00 76 0C 80 0D 01 02 00 00 00 00 FB [21:07:59]Write i2c OK [21:07:59]MH_I2C_Read... [21:07:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:07:59]Read from MH i2c: E2 [21:07:59]MH_I2C_Read... [21:07:59]Read from MH i2c: E2 03 00 [21:07:59]MH_I2C_Read... [21:07:59]Read from MH i2c: E2 03 00 76 0C 00 90 00 F6 [21:07:59]RAPDU: 90 00 [21:07:59]wFMCommunicate OK [21:07:59]wFMCommunicate request_size=255 [21:07:59]MH_SAM_APDU [21:07: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 58 1B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 90 B5 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 B5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 13 00 00 00 00 07 04 06 00 40 B5 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 AF EB 75 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 26 97 01 00 35 04 06 00 05 [21:07:59]Write to MH i2c: E2 02 01 77 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 58 1B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 90 B5 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 B5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 13 00 00 00 00 07 04 06 00 40 B5 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 AF EB 75 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 26 97 01 00 35 04 06 00 05 00 00 E2 [21:07:59]Write i2c OK [21:07:59]MH_I2C_Read... [21:07:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:07:59]Read from MH i2c: E2 [21:07:59]MH_I2C_Read... [21:07:59]Read from MH i2c: E2 03 00 [21:07:59]MH_I2C_Read... [21:07:59]Read from MH i2c: E2 03 00 77 0C 00 90 00 F7 [21:07:59]RAPDU: 90 00 [21:07:59]wFMCommunicate OK [21:07:59]wFMCommunicate request_size=10 [21:07:59]MH_SAM_APDU [21:07:59]CAPDU: 80 0D 02 02 05 E0 CD B5 DA 10 [21:07:59]Write to MH i2c: E2 0D 00 78 0C 80 0D 02 02 05 00 E0 CD B5 DA 10 00 00 54 [21:07:59]Write i2c OK [21:07:59]MH_I2C_Read... [21:07:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:07:59]Read from MH i2c: E2 [21:07:59]MH_I2C_Read... [21:07:59]Read from MH i2c: E2 03 00 [21:07:59]MH_I2C_Read... [21:07:59]Read from MH i2c: E2 03 00 78 0C 00 90 00 F8 [21:07:59]RAPDU: 90 00 [21:07:59]wFMCommunicate OK [21:07:59]wFMCommunicate request_size=4 [21:07:59]MH_SAM_APDU [21:07:59]CAPDU: 80 0D 03 02 [21:07:59]Write to MH i2c: E2 08 00 79 0C 80 0D 03 02 00 00 00 00 00 [21:07:59]Write i2c OK [21:07:59]MH_I2C_Read... [21:07:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:07:59]Read from MH i2c: E2 [21:07:59]MH_I2C_Read... [21:07:59]Read from MH i2c: E2 0B 00 [21:07:59]MH_I2C_Read... [21:07:59]Read from MH i2c: E2 0B 00 79 0C 00 E1 FC 63 DE 05 00 A6 D9 90 00 A3 [21:07:59]RAPDU: E1 FC 63 DE 05 00 A6 D9 90 00 [21:07:59]wFMCommunicate OK [21:07:59]SAM_PROTO_SignData done [21:07:59]FM_MakeSignedData done [21:07:59]CreateOFDProtocolMessage [21:07:59]wFMCommunicate request_size=4 [21:07:59]MH_SAM_APDU [21:07:59]CAPDU: 80 11 00 00 [21:07:59]Write to MH i2c: E2 08 00 7A 0C 80 11 00 00 00 00 00 00 00 [21:07:59]Write i2c OK [21:07:59]MH_I2C_Read... [21:07:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:07:59]Read from MH i2c: E2 [21:07:59]MH_I2C_Read... [21:07:59]Read from MH i2c: E2 17 00 [21:07:59]MH_I2C_Read... [21:07:59]Read from MH i2c: E2 17 00 7A 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 53 [21:07:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [21:07:59]wFMCommunicate OK [21:07:59]CreateOFDProtocolMessage done [21:07:59]OFDSenderStorePacket 104230 [21:07:59]StoreOFDPacket docnum=104230 [21:07: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 1B B7 07 01 A8 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 58 1B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 90 B5 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 B5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 13 00 00 00 00 07 04 06 00 40 B5 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 AF EB 75 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 26 97 01 00 35 04 06 00 05 E0 CD B5 DA 10 E1 FC 63 DE 05 00 A6 D9 [21:07:59]CheckFolder [21:07:59]dirname=/storage/ofd_packets [21:07:59]CheckFolder done [21:07:59]ProducePacketName [21:07:59]name=ofd_packets/00104230 [21:07:59]NVStorageSaveData ofd_packets/00104230 [21:07:59]File name is /storage/ofd_packets/00104230 [21:07:59]Write 301 bytes [21:07:59]NVStorageSaveData done [21:07:59]OFDSenderStorePacket done [21:07:59]KKMCreateOFDPacket done [21:07:59]NVStorageSaveData kkm_last_timestamp [21:07:59]File name is /storage/kkm_last_timestamp [21:07:59]Write 4 bytes [21:07:59]NVStorageSaveData done [21:07:59]ExternCall_PrintAddStr [21:07:59]wPrintStart [21:07:59]Write to MH i2c: 01 00 00 7B 0C 87 [21:07:59]Write i2c OK [21:07:59]MH_I2C_Read... [21:07:59]Read from MH i2c: 01 [21:07:59]MH_I2C_Read... [21:07:59]Read from MH i2c: 01 07 00 [21:07:59]MH_I2C_Read... [21:07:59]Read from MH i2c: 01 07 00 7B 0C 00 00 00 00 00 FF 0F 9C [21:07:59]RasterBufferAndPrint [21:07:59]line Счет N : (1)673714 [21:07:59]line ИНН: 02508201610067 [21:07:59]line Контрольно-Кассовый Чек [21:07:59]line ПРОДАЖА [21:07:59]line ТРК (МРК, ГНК) : 32 [21:07:59]line Товар: 2710124130 [21:07:59]line Аи-92-К-5 [21:07:59]line 7.000 * 66.40 [21:07:59]line = 464.80 [21:07:59]line НДС 12% НСП 1% [21:07:59]line > о реализуемом товаре [21:07:59]line ОКРУГЛЕНИЕ: -0.80 [21:07:59]line ИТОГО: 464.00 [21:07:59]line Внесено: 464.00 [21:07:59]line СДАЧА: 0.00 [21:07:59]line НСП 1% : 4.11 [21:07:59]line НДС 12% : 49.36 [21:07:59]line Наличными: 464.00 [21:07:59]line Безнал.: 0.00 [21:07:59]line Место: АЗС № 120 "Партнер Нефть" [21:07:59]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [21:07:59]line СНО: Общий режим [21:07:59]line Чек 153 21.06.2024 21:07 [21:07:59]line Смена: 355 ФФД: 1.0 [21:07:59]line ЗНМ: 0300000164 [21:07:59]line РНМ: 0000000000092785 [21:07:59]line Версия ККМ: 001 [21:07:59]line ФМ: 0000000000875093 [21:07:59]line ФД: 104230 [21:07:59]line ФПД: 6463082060304 [21:07:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T210759&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104230&fm=6463082060304&tin=02508201610067®Number=0000000000092785&sum=46400 [21:07:59]written 0, free lines is 4095 [21:07:59]OFD Sender: Processing packet 104230 [packets to send 17, broken 16] [21:07:59]ProducePacketName [21:07:59]name=ofd_packets/00104230 [21:07:59]OFD Sender: To server: pG, [21:07:59]CommunicateWithHost lk.salyk.kg:30040 [21:07:59]ConnectInit lk.salyk.kg [21:07:59]Connected sock=10 [21:07: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 0F 01 00 00 1B B7 07 01 A8 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 58 1B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 90 B5 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 B5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 13 00 00 00 00 07 04 06 00 40 B5 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 AF EB 75 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 26 97 01 00 35 04 06 00 05 E0 CD B5 DA 10 E1 FC 63 DE 05 00 A6 D9 [21:08: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 0A A9 47 00 49 30 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 26 97 01 00 F4 03 04 00 30 92 75 66 B6 04 01 00 00 89 BA 20 B4 17 66 1D E5 [21:08:00]CommunicateWithHost err = 0 [21:08:00]CheckOFDResponse [21:08:00]1017 (14) - 77093643461234 [21:08:00]1041 (16) - 0000000000875093 [21:08:00]1040 (4) - 104230 [21:08:00]1012 (4) - 21.06.2024 14:46 [21:08:00]1206 (1) - 0 [21:08:00]OFD Sender: Remove packet 104230 [21:08:00]ProducePacketName [21:08:00]name=ofd_packets/00104230 [21:08:00]NVStorageDeleteData [21:08:00]Write to MH i2c: 01 00 00 A6 0C B2 [21:08:00]Write i2c OK [21:08:00]MH_I2C_Read... [21:08:00]Read from MH i2c: 01 [21:08:00]MH_I2C_Read... [21:08:00]Read from MH i2c: 01 07 00 [21:08:00]MH_I2C_Read... [21:08:00]Read from MH i2c: 01 07 00 A6 0C 00 00 00 00 00 EC 0C B1 [21:08:00]RasterBufferAndPrint [21:08:00]line [21:08:00]line [21:08:00]line [21:08:00]line [21:08:00]line [21:08:00]written 0, free lines is 3320 [21:08:00]MH_Cut [21:08:00]Write to MH i2c: D1 01 00 AD 0C 01 8B [21:08:00]Write i2c OK [21:08:00]MH_I2C_Read... [21:08:00]Read from MH i2c: D1 [21:08:00]MH_I2C_Read... [21:08:00]Read from MH i2c: D1 01 00 [21:08:00]MH_I2C_Read... [21:08:00]Read from MH i2c: D1 01 00 AD 0C 00 8A [21:08:00]Write to MH i2c: 01 00 00 AE 0C BA [21:08:00]Write i2c OK [21:08:00]MH_I2C_Read... [21:08:00]OFD Sender: No OFD packet to send [21:08:00]*** Cut start [21:08:00]*** Partial cut [21:08:00]*** CUTSNS_PIN = 1 [21:08:00]*** CUTSNS_PIN = 0 [21:08:01]*** Brake cut motor [21:08:01]Read from MH i2c: 01 [21:08:01]MH_I2C_Read... [21:08:01]*** Stop cut motor [21:08:01]*** Cut end [21:08:01]Read from MH i2c: 01 07 00 [21:08:01]MH_I2C_Read... [21:08:01]Read from MH i2c: 01 07 00 AE 0C 00 00 00 00 00 FF 0F CF [21:08:01]process_action close_receipt done [21:08:01]requested_data is exist [21:08:01]produce_requested_data [21:08:01]requested_item fm.sn is exist - process it [21:08:01]wFMCommunicate request_size=4 [21:08:01]MH_SAM_APDU [21:08:01]CAPDU: 80 11 00 00 [21:08:01]Write to MH i2c: E2 08 00 AF 0C 80 11 00 00 00 00 00 00 35 [21:08:01]Write i2c OK [21:08:01]MH_I2C_Read... [21:08:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:08:01]Read from MH i2c: E2 [21:08:01]MH_I2C_Read... [21:08:01]Read from MH i2c: E2 17 00 [21:08:01]MH_I2C_Read... [21:08:01]Read from MH i2c: E2 17 00 AF 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 88 [21:08: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:08:01]wFMCommunicate OK [21:08:01]requested_item fd.num is exist - process it [21:08:01]SAM_PROTO_GetFieldsCounters [21:08:01]wFMCommunicate request_size=4 [21:08:01]MH_SAM_APDU [21:08:01]CAPDU: 80 13 00 00 [21:08:01]Write to MH i2c: E2 08 00 B0 0C 80 13 00 00 00 00 00 00 38 [21:08:01]Write i2c OK [21:08:01]MH_I2C_Read... [21:08:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:08:01]Read from MH i2c: E2 [21:08:01]MH_I2C_Read... [21:08:01]Read from MH i2c: E2 62 00 [21:08:01]MH_I2C_Read... [21:08:01]Read from MH i2c: E2 62 00 B0 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 26 97 01 00 0E 04 04 00 63 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 4C [21:08: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 26 97 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 99 00 00 00 5E 04 04 00 99 00 00 00 57 04 04 00 9A 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:08:01]wFMCommunicate OK [21:08:01]SAM_PROTO_GetFieldsCounters done [21:08:01]requested_item shift.num is exist - process it [21:08:01]requested_item shift.opened is exist - process it [21:08:01]req_shift_opened [21:08:01]FM_GetShiftState [21:08:01]SAM_PROTO_GetShiftState [21:08:01]wFMCommunicate request_size=4 [21:08:01]MH_SAM_APDU [21:08:01]CAPDU: 80 13 01 00 [21:08:01]Write to MH i2c: E2 08 00 B1 0C 80 13 01 00 00 00 00 00 3A [21:08:01]Write i2c OK [21:08:01]MH_I2C_Read... [21:08:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:08:01]Read from MH i2c: E2 [21:08:01]MH_I2C_Read... [21:08:01]Read from MH i2c: E2 0E 00 [21:08:01]MH_I2C_Read... [21:08:01]Read from MH i2c: E2 0E 00 B1 0C 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 4D [21:08:01]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [21:08:01]wFMCommunicate OK [21:08:01]SAM_PROTO_GetShiftState done [21:08:01]FM_GetShiftState done [21:08:01]req_shift_opened done [21:08:01]requested_item shift.open_date is exist - process it [21:08:01]req_shift_open_date [21:08:01]req_shift_open_date done [21:08:01]produce_requested_data done [21:08:01]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104230,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [21:08:01]process_action_free close_receipt [21:08:01]json_value_free [21:08:01]json_value_free done [21:08:01]process_json_proto returns [21:08:01]Send response to host [21:08:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104230,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [21:08:01]free response buf [21:08:01]execute_script done [21:08:01]execute_script returns [21:08:01]free content buf [21:08:01]Sock 9.Close socket [21:08:01]Sock 9.Thread stoped [21:08:05]OFD Sender: No OFD packet to send [21:08:10]OFD Sender: No OFD packet to send [21:08:15]OFD Sender: No OFD packet to send [21:08:18]accept exits with 7 [21:08:18]New connection [21:08:18]New thread 3067616612 created [21:08:18]Thread 3067473252 joined [21:08:18]Waiting for new connection... [21:08:18] Sock 7.Parse request [21:08:18]Sock 7.Check first char [21:08:18]Sock 7.First char is OK [21:08:18]request: POST /json_proto HTTP/1.0 [21:08:18]Method: POST [21:08:18]URL: /json_proto [21:08:18]Method is POST - this is cgi request [21:08:18]url: /json_proto [21:08:18]query_string will be loaded in cgi processing [21:08:18]execute_cgi json_proto POST (null) [21:08:18]execute_cgi path=json_proto method=POST [21:08:18]POST find Content-Length [21:08:18]Host: 172.17.38.133:8080 [21:08:18]Content-Length: 683 [21:08:18]Content-Type: application/json [21:08:18] [21:08:18]POST finish read [21:08:18]Found Content-Length = 683 [21:08:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673712", "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" : 78.100, "sum" : 5771.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 15000.00, "total" : 5771.00, "payments": [ { "type": 0, "sum" : 5771.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:08:18]execute_script... [21:08:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673712", "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" : 78.100, "sum" : 5771.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 15000.00, "total" : 5771.00, "payments": [ { "type": 0, "sum" : 5771.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:08:18]POST & json_proto [21:08:18]process_json_proto [21:08:18]json parsed OK: [21:08:18]protocol is kg_v1.0 [21:08:18]action value=close_receipt [21:08:18]process_action close_receipt [21:08:18]cmd_close_receipt [21:08:18]MH_GetDate [21:08:18]Write to MH i2c: F0 00 00 B2 0C AD [21:08:18]Write i2c OK [21:08:18]MH_I2C_Read... [21:08:18]Read from MH i2c: F0 [21:08:18]MH_I2C_Read... [21:08:18]Read from MH i2c: F0 09 00 [21:08:18]MH_I2C_Read... [21:08:18]Read from MH i2c: F0 09 00 B2 0C 00 C3 EB 75 66 BD 8F 7C 64 6B [21:08:18]GetLastDocTimeStamp 1719004079 [21:08:18]current date 1719004099 [21:08:18]FM_GetShiftState [21:08:18]SAM_PROTO_GetShiftState [21:08:18]wFMCommunicate request_size=4 [21:08:18]MH_SAM_APDU [21:08:18]CAPDU: 80 13 01 00 [21:08:18]Write to MH i2c: E2 08 00 B3 0C 80 13 01 00 00 00 00 00 3C [21:08:18]Write i2c OK [21:08:18]MH_I2C_Read... [21:08:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:08:18]Read from MH i2c: E2 [21:08:18]MH_I2C_Read... [21:08:18]Read from MH i2c: E2 0E 00 [21:08:18]MH_I2C_Read... [21:08:18]Read from MH i2c: E2 0E 00 B3 0C 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 4F [21:08:18]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [21:08:18]wFMCommunicate OK [21:08:18]SAM_PROTO_GetShiftState done [21:08:18]FM_GetShiftState done [21:08:18]opened in 1718929509 [21:08:18]opened+sec_in_day 1719015909 [21:08:18]quantity*price = 577159 [21:08:18]sum+1 = 577160 [21:08:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 5771.00 Внесено: 15000.00 СДАЧА: 9229.00 НСП 1% : 51.08 НДС 12% : 612.91 Наличными: 5771.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 154 21.06.2024 21:08 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104231 ФПД: 275533162926416 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T210819&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104231&fm=275533162926416&tin=02508201610067®Number=0000000000092785&sum=577100 [21:08:19]StoreToDocumentArchive [21:08:19]shift 355 fd 104231 [21:08:19]save to /storage/0355/doc_00104231 [21:08:19]save last doc name /storage/0355/doc_00104231 to /storage/kkm_last_doc_name [21:08:19]save OK [21:08:19]Clear old archive folders... [21:08:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:08:19]tlvbuf is 00677D90 [21:08:19]SAM_PROTO_ClearQueue [21:08:19]wFMCommunicate request_size=4 [21:08:19]MH_SAM_APDU [21:08:19]CAPDU: 80 09 00 00 [21:08:19]Write to MH i2c: E2 08 00 C0 0C 80 09 00 00 00 00 00 00 3E [21:08:19]Write i2c OK [21:08:19]MH_I2C_Read... [21:08:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:08:19]Read from MH i2c: E2 [21:08:19]MH_I2C_Read... [21:08:19]Read from MH i2c: E2 03 00 [21:08:19]MH_I2C_Read... [21:08:19]Read from MH i2c: E2 03 00 C0 0C 00 90 00 40 [21:08:19]RAPDU: 90 00 [21:08:19]wFMCommunicate OK [21:08:19]SAM_PROTO_ClearQueue done [21:08:19]KKMCreateOFDPacket [21:08:19]OFDProtocolAddRootSTLVToBuf [21:08:19]FM_MakeSignedData [21:08:19]FM_MakeSignedData [21:08:19]SAM_PROTO_SignData [21:08:19]wFMCommunicate request_size=4 [21:08:19]MH_SAM_APDU [21:08:19]CAPDU: 80 0D 01 02 [21:08:19]Write to MH i2c: E2 08 00 C1 0C 80 0D 01 02 00 00 00 00 46 [21:08:19]Write i2c OK [21:08:19]MH_I2C_Read... [21:08:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:08:19]Read from MH i2c: E2 [21:08:19]MH_I2C_Read... [21:08:19]Read from MH i2c: E2 03 00 [21:08:19]MH_I2C_Read... [21:08:19]Read from MH i2c: E2 03 00 C1 0C 00 90 00 41 [21:08:19]RAPDU: 90 00 [21:08:19]wFMCommunicate OK [21:08:19]wFMCommunicate request_size=255 [21:08:19]MH_SAM_APDU [21:08:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 14 31 01 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 87 CE 08 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C CE 08 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F4 13 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6B EF 00 00 00 00 07 04 06 00 4C CE 08 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 C3 EB 75 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 27 97 01 00 35 04 06 00 FA [21:08:19]Write to MH i2c: E2 02 01 C2 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 14 31 01 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 87 CE 08 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C CE 08 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F4 13 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6B EF 00 00 00 00 07 04 06 00 4C CE 08 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 C3 EB 75 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 27 97 01 00 35 04 06 00 FA 00 00 DC [21:08:19]Write i2c OK [21:08:19]MH_I2C_Read... [21:08:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:08:20]Read from MH i2c: E2 [21:08:20]MH_I2C_Read... [21:08:20]Read from MH i2c: E2 03 00 [21:08:20]MH_I2C_Read... [21:08:20]Read from MH i2c: E2 03 00 C2 0C 00 90 00 42 [21:08:20]RAPDU: 90 00 [21:08:20]wFMCommunicate OK [21:08:20]wFMCommunicate request_size=10 [21:08:20]MH_SAM_APDU [21:08:20]CAPDU: 80 0D 02 02 05 98 90 4C D1 50 [21:08:20]Write to MH i2c: E2 0D 00 C3 0C 80 0D 02 02 05 00 98 90 4C D1 50 00 00 E8 [21:08:20]Write i2c OK [21:08:20]MH_I2C_Read... [21:08:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:08:20]Read from MH i2c: E2 [21:08:20]MH_I2C_Read... [21:08:20]Read from MH i2c: E2 03 00 [21:08:20]MH_I2C_Read... [21:08:20]Read from MH i2c: E2 03 00 C3 0C 00 90 00 43 [21:08:20]RAPDU: 90 00 [21:08:20]wFMCommunicate OK [21:08:20]wFMCommunicate request_size=4 [21:08:20]MH_SAM_APDU [21:08:20]CAPDU: 80 0D 03 02 [21:08:20]Write to MH i2c: E2 08 00 C4 0C 80 0D 03 02 00 00 00 00 4B [21:08:20]Write i2c OK [21:08:20]MH_I2C_Read... [21:08:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:08:20]Read from MH i2c: E2 [21:08:20]MH_I2C_Read... [21:08:20]Read from MH i2c: E2 0B 00 [21:08:20]MH_I2C_Read... [21:08:20]Read from MH i2c: E2 0B 00 C4 0C 00 EF 0B 1F 09 0C 85 64 EE 90 00 51 [21:08:20]RAPDU: EF 0B 1F 09 0C 85 64 EE 90 00 [21:08:20]wFMCommunicate OK [21:08:20]SAM_PROTO_SignData done [21:08:20]FM_MakeSignedData done [21:08:20]CreateOFDProtocolMessage [21:08:20]wFMCommunicate request_size=4 [21:08:20]MH_SAM_APDU [21:08:20]CAPDU: 80 11 00 00 [21:08:20]Write to MH i2c: E2 08 00 C5 0C 80 11 00 00 00 00 00 00 4B [21:08:20]Write i2c OK [21:08:20]MH_I2C_Read... [21:08:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:08:20]Read from MH i2c: E2 [21:08:20]MH_I2C_Read... [21:08:20]Read from MH i2c: E2 17 00 [21:08:20]MH_I2C_Read... [21:08:20]Read from MH i2c: E2 17 00 C5 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 9E [21:08:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [21:08:20]wFMCommunicate OK [21:08:20]CreateOFDProtocolMessage done [21:08:20]OFDSenderStorePacket 104231 [21:08:20]StoreOFDPacket docnum=104231 [21:08: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 97 4C 07 01 76 33 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 14 31 01 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 87 CE 08 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C CE 08 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F4 13 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6B EF 00 00 00 00 07 04 06 00 4C CE 08 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 C3 EB 75 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 27 97 01 00 35 04 06 00 FA 98 90 4C D1 50 EF 0B 1F 09 0C 85 64 EE [21:08:20]CheckFolder [21:08:20]dirname=/storage/ofd_packets [21:08:20]CheckFolder done [21:08:20]ProducePacketName [21:08:20]name=ofd_packets/00104231 [21:08:20]NVStorageSaveData ofd_packets/00104231 [21:08:20]File name is /storage/ofd_packets/00104231 [21:08:20]Write 301 bytes [21:08:20]NVStorageSaveData done [21:08:20]OFDSenderStorePacket done [21:08:20]KKMCreateOFDPacket done [21:08:20]NVStorageSaveData kkm_last_timestamp [21:08:20]File name is /storage/kkm_last_timestamp [21:08:20]Write 4 bytes [21:08:20]NVStorageSaveData done [21:08:20]ExternCall_PrintAddStr [21:08:20]wPrintStart [21:08:20]Write to MH i2c: 01 00 00 C6 0C D2 [21:08:20]Write i2c OK [21:08:20]MH_I2C_Read... [21:08:20]Read from MH i2c: 01 [21:08:20]MH_I2C_Read... [21:08:20]Read from MH i2c: 01 07 00 [21:08:20]MH_I2C_Read... [21:08:20]Read from MH i2c: 01 07 00 C6 0C 00 00 00 00 00 FF 0F E7 [21:08:20]RasterBufferAndPrint [21:08:20]line Счет N : (1)673712 [21:08:20]line ИНН: 02508201610067 [21:08:20]line Контрольно-Кассовый Чек [21:08:20]line ПРОДАЖА [21:08:20]line ТРК (МРК, ГНК) : 41 [21:08:20]line Товар: 2710124500 [21:08:20]line Аи-95-К-5 [21:08:20]line 78.100 * 73.90 [21:08:20]line = 5771.59 [21:08:20]line НДС 12% НСП 1% [21:08:20]line > о реализуемом товаре [21:08:20]line ОКРУГЛЕНИЕ: -0.59 [21:08:20]line ИТОГО: 5771.00 [21:08:20]line Внесено: 15000.00 [21:08:20]line СДАЧА: 9229.00 [21:08:20]line НСП 1% : 51.08 [21:08:20]line НДС 12% : 612.91 [21:08:20]line Наличными: 5771.00 [21:08:20]line Безнал.: 0.00 [21:08:20]line Место: АЗС № 120 "Партнер Нефть" [21:08:20]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [21:08:20]line СНО: Общий режим [21:08:20]line Чек 154 21.06.2024 21:08 [21:08:20]line Смена: 355 ФФД: 1.0 [21:08:20]line ЗНМ: 0300000164 [21:08:20]line РНМ: 0000000000092785 [21:08:20]line Версия ККМ: 001 [21:08:20]line ФМ: 0000000000875093 [21:08:20]line ФД: 104231 [21:08:20]line ФПД: 275533162926416 [21:08:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T210819&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104231&fm=275533162926416&tin=02508201610067®Number=0000000000092785&sum=577100 [21:08:20]OFD Sender: Processing packet 104231 [packets to send 17, broken 16] [21:08:20]ProducePacketName [21:08:20]name=ofd_packets/00104231 [21:08:20]OFD Sender: To server: pG, [21:08:20]CommunicateWithHost lk.salyk.kg:30040 [21:08:20]ConnectInit lk.salyk.kg [21:08:20]written 0, free lines is 4095 [21:08:20]Connected sock=10 [21:08:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 97 4C 07 01 76 33 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 14 31 01 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 87 CE 08 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C CE 08 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F4 13 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6B EF 00 00 00 00 07 04 06 00 4C CE 08 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 C3 EB 75 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 27 97 01 00 35 04 06 00 FA 98 90 4C D1 50 EF 0B 1F 09 0C 85 64 EE [21:08:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 6C 5F 47 00 AB 9D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 27 97 01 00 F4 03 04 00 45 92 75 66 B6 04 01 00 00 E6 37 29 F8 AA E3 AD 6E [21:08:20]CommunicateWithHost err = 0 [21:08:20]CheckOFDResponse [21:08:20]1017 (14) - 77093643461234 [21:08:20]1041 (16) - 0000000000875093 [21:08:20]1040 (4) - 104231 [21:08:20]1012 (4) - 21.06.2024 14:46 [21:08:20]1206 (1) - 0 [21:08:20]OFD Sender: Remove packet 104231 [21:08:20]ProducePacketName [21:08:20]name=ofd_packets/00104231 [21:08:20]NVStorageDeleteData [21:08:21]Write to MH i2c: 01 00 00 F1 0C FD [21:08:21]Write i2c OK [21:08:21]MH_I2C_Read... [21:08:21]Read from MH i2c: 01 [21:08:21]MH_I2C_Read... [21:08:21]Read from MH i2c: 01 07 00 [21:08:21]MH_I2C_Read... [21:08:21]Read from MH i2c: 01 07 00 F1 0C 00 00 00 00 00 DC 0C EC [21:08:21]RasterBufferAndPrint [21:08:21]line [21:08:21]line [21:08:21]line [21:08:21]line [21:08:21]line [21:08:21]written 0, free lines is 3299 [21:08:21]MH_Cut [21:08:21]Write to MH i2c: D1 01 00 F8 0C 01 D6 [21:08:21]Write i2c OK [21:08:21]MH_I2C_Read... [21:08:21]Read from MH i2c: D1 [21:08:21]MH_I2C_Read... [21:08:21]Read from MH i2c: D1 01 00 [21:08:21]MH_I2C_Read... [21:08:21]Read from MH i2c: D1 01 00 F8 0C 00 D5 [21:08:21]Write to MH i2c: 01 00 00 F9 0C 05 [21:08:21]Write i2c OK [21:08:21]MH_I2C_Read... [21:08:21]OFD Sender: No OFD packet to send [21:08:21]*** Cut start [21:08:21]*** Partial cut [21:08:21]*** CUTSNS_PIN = 1 [21:08:21]*** CUTSNS_PIN = 0 [21:08:21]*** Brake cut motor [21:08:22]Read from MH i2c: 01 [21:08:22]MH_I2C_Read... [21:08:22]*** Stop cut motor [21:08:22]*** Cut end [21:08:22]Read from MH i2c: 01 07 00 [21:08:22]MH_I2C_Read... [21:08:22]Read from MH i2c: 01 07 00 F9 0C 00 00 00 00 00 FF 0F 1A [21:08:22]process_action close_receipt done [21:08:22]requested_data is exist [21:08:22]produce_requested_data [21:08:22]requested_item fm.sn is exist - process it [21:08:22]wFMCommunicate request_size=4 [21:08:22]MH_SAM_APDU [21:08:22]CAPDU: 80 11 00 00 [21:08:22]Write to MH i2c: E2 08 00 FA 0C 80 11 00 00 00 00 00 00 80 [21:08:22]Write i2c OK [21:08:22]MH_I2C_Read... [21:08:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:08:22]Read from MH i2c: E2 [21:08:22]MH_I2C_Read... [21:08:22]Read from MH i2c: E2 17 00 [21:08:22]MH_I2C_Read... [21:08:22]Read from MH i2c: E2 17 00 FA 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 D3 [21:08:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [21:08:22]wFMCommunicate OK [21:08:22]requested_item fd.num is exist - process it [21:08:22]SAM_PROTO_GetFieldsCounters [21:08:22]wFMCommunicate request_size=4 [21:08:22]MH_SAM_APDU [21:08:22]CAPDU: 80 13 00 00 [21:08:22]Write to MH i2c: E2 08 00 FB 0C 80 13 00 00 00 00 00 00 83 [21:08:22]Write i2c OK [21:08:22]MH_I2C_Read... [21:08:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:08:22]Read from MH i2c: E2 [21:08:22]MH_I2C_Read... [21:08:22]Read from MH i2c: E2 62 00 [21:08:22]MH_I2C_Read... [21:08:22]Read from MH i2c: E2 62 00 FB 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 27 97 01 00 0E 04 04 00 63 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 9B [21:08:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 9A 00 00 00 5E 04 04 00 9A 00 00 00 57 04 04 00 9B 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:08:22]wFMCommunicate OK [21:08:22]SAM_PROTO_GetFieldsCounters done [21:08:22]requested_item shift.num is exist - process it [21:08:22]requested_item shift.opened is exist - process it [21:08:22]req_shift_opened [21:08:22]FM_GetShiftState [21:08:22]SAM_PROTO_GetShiftState [21:08:22]wFMCommunicate request_size=4 [21:08:22]MH_SAM_APDU [21:08:22]CAPDU: 80 13 01 00 [21:08:22]Write to MH i2c: E2 08 00 FC 0C 80 13 01 00 00 00 00 00 85 [21:08:22]Write i2c OK [21:08:22]MH_I2C_Read... [21:08:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:08:22]Read from MH i2c: E2 [21:08:22]MH_I2C_Read... [21:08:22]Read from MH i2c: E2 0E 00 [21:08:22]MH_I2C_Read... [21:08:22]Read from MH i2c: E2 0E 00 FC 0C 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 98 [21:08:22]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [21:08:22]wFMCommunicate OK [21:08:22]SAM_PROTO_GetShiftState done [21:08:22]FM_GetShiftState done [21:08:22]req_shift_opened done [21:08:22]requested_item shift.open_date is exist - process it [21:08:22]req_shift_open_date [21:08:22]req_shift_open_date done [21:08:22]produce_requested_data done [21:08:22]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104231,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [21:08:22]process_action_free close_receipt [21:08:22]json_value_free [21:08:22]json_value_free done [21:08:22]process_json_proto returns [21:08:22]Send response to host [21:08:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104231,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [21:08:22]free response buf [21:08:22]execute_script done [21:08:22]execute_script returns [21:08:22]free content buf [21:08:22]Sock 7.Close socket [21:08:22]Sock 7.Thread stoped [21:08:26]OFD Sender: No OFD packet to send [21:08:31]OFD Sender: No OFD packet to send [21:08:36]OFD Sender: No OFD packet to send [21:08:41]OFD Sender: No OFD packet to send [21:08:46]OFD Sender: No OFD packet to send [21:08:51]OFD Sender: No OFD packet to send [21:08:56]OFD Sender: No OFD packet to send [21:09:01]OFD Sender: No OFD packet to send [21:09:06]OFD Sender: No OFD packet to send [21:09:11]OFD Sender: No OFD packet to send [21:09:14]accept exits with 9 [21:09:14]New connection [21:09:14]New thread 3067473252 created [21:09:14]Thread 3067616612 joined [21:09:14]Waiting for new connection... [21:09:14] Sock 9.Parse request [21:09:14]Sock 9.Check first char [21:09:14]Sock 9.First char is OK [21:09:14]request: POST /json_proto HTTP/1.0 [21:09:14]Method: POST [21:09:14]URL: /json_proto [21:09:14]Method is POST - this is cgi request [21:09:14]url: /json_proto [21:09:14]query_string will be loaded in cgi processing [21:09:14]execute_cgi json_proto POST (null) [21:09:14]execute_cgi path=json_proto method=POST [21:09:14]POST find Content-Length [21:09:14]Host: 172.17.38.133:8080 [21:09:14]Content-Length: 687 [21:09:14]Content-Type: application/json [21:09:14] [21:09:14]POST finish read [21:09:14]Found Content-Length = 687 [21:09:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673715", "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" : 178.440, "sum" : 13186.72, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 13186.00, "total" : 13186.00, "payments": [ { "type": 0, "sum" : 13186.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:09:14]execute_script... [21:09: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)673715", "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" : 178.440, "sum" : 13186.72, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 13186.00, "total" : 13186.00, "payments": [ { "type": 0, "sum" : 13186.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:09:14]POST & json_proto [21:09:14]process_json_proto [21:09:14]json parsed OK: [21:09:14]protocol is kg_v1.0 [21:09:14]action value=close_receipt [21:09:14]process_action close_receipt [21:09:14]cmd_close_receipt [21:09:14]MH_GetDate [21:09:14]Write to MH i2c: F0 00 00 FD 0C F8 [21:09:14]Write i2c OK [21:09:14]MH_I2C_Read... [21:09:14]Read from MH i2c: F0 [21:09:14]MH_I2C_Read... [21:09:14]Read from MH i2c: F0 09 00 [21:09:14]MH_I2C_Read... [21:09:14]Read from MH i2c: F0 09 00 FD 0C 00 FB EB 75 66 BD 8F 7C 64 EE [21:09:14]GetLastDocTimeStamp 1719004099 [21:09:14]current date 1719004155 [21:09:14]FM_GetShiftState [21:09:14]SAM_PROTO_GetShiftState [21:09:14]wFMCommunicate request_size=4 [21:09:14]MH_SAM_APDU [21:09:14]CAPDU: 80 13 01 00 [21:09:14]Write to MH i2c: E2 08 00 FE 0C 80 13 01 00 00 00 00 00 87 [21:09:14]Write i2c OK [21:09:14]MH_I2C_Read... [21:09:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:09:14]Read from MH i2c: E2 [21:09:14]MH_I2C_Read... [21:09:14]Read from MH i2c: E2 0E 00 [21:09:14]MH_I2C_Read... [21:09:14]Read from MH i2c: E2 0E 00 FE 0C 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 9A [21:09:14]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [21:09:14]wFMCommunicate OK [21:09:14]SAM_PROTO_GetShiftState done [21:09:14]FM_GetShiftState done [21:09:14]opened in 1718929509 [21:09:14]opened+sec_in_day 1719015909 [21:09:14]quantity*price = 1318671 [21:09:14]sum+1 = 1318673 [21:09:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.72 ИТОГО: 13186.00 Внесено: 13186.00 СДАЧА: 0.00 НСП 1% : 116.70 НДС 12% : 1400.36 Наличными: 13186.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 155 21.06.2024 21:09 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104232 ФПД: 152478553063463 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T210915&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104232&fm=152478553063463&tin=02508201610067®Number=0000000000092785&sum=1318600 [21:09:15]StoreToDocumentArchive [21:09:15]shift 355 fd 104232 [21:09:15]save to /storage/0355/doc_00104232 [21:09:15]save last doc name /storage/0355/doc_00104232 to /storage/kkm_last_doc_name [21:09:15]save OK [21:09:15]Clear old archive folders... [21:09:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:09:15]tlvbuf is 00699B70 [21:09:15]SAM_PROTO_ClearQueue [21:09:15]wFMCommunicate request_size=4 [21:09:15]MH_SAM_APDU [21:09:15]CAPDU: 80 09 00 00 [21:09:15]Write to MH i2c: E2 08 00 0B 0D 80 09 00 00 00 00 00 00 8A [21:09:15]Write i2c OK [21:09:15]MH_I2C_Read... [21:09:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:09:15]Read from MH i2c: E2 [21:09:15]MH_I2C_Read... [21:09:15]Read from MH i2c: E2 03 00 [21:09:15]MH_I2C_Read... [21:09:15]Read from MH i2c: E2 03 00 0B 0D 00 90 00 8C [21:09:15]RAPDU: 90 00 [21:09:15]wFMCommunicate OK [21:09:15]SAM_PROTO_ClearQueue done [21:09:15]KKMCreateOFDPacket [21:09:15]OFDProtocolAddRootSTLVToBuf [21:09:15]FM_MakeSignedData [21:09:15]FM_MakeSignedData [21:09:15]SAM_PROTO_SignData [21:09:15]wFMCommunicate request_size=4 [21:09:15]MH_SAM_APDU [21:09:15]CAPDU: 80 0D 01 02 [21:09:15]Write to MH i2c: E2 08 00 0C 0D 80 0D 01 02 00 00 00 00 92 [21:09:15]Write i2c OK [21:09:15]MH_I2C_Read... [21:09:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:09:15]Read from MH i2c: E2 [21:09:15]MH_I2C_Read... [21:09:15]Read from MH i2c: E2 03 00 [21:09:15]MH_I2C_Read... [21:09:15]Read from MH i2c: E2 03 00 0C 0D 00 90 00 8D [21:09:15]RAPDU: 90 00 [21:09:15]wFMCommunicate OK [21:09:15]wFMCommunicate request_size=255 [21:09:15]MH_SAM_APDU [21:09:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 08 B9 02 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 10 1F 14 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 1E 14 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 2D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 04 23 02 00 00 00 07 04 06 00 C8 1E 14 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 FB EB 75 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 28 97 01 00 35 04 06 00 8A [21:09:15]Write to MH i2c: E2 02 01 0D 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 08 B9 02 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 10 1F 14 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 1E 14 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 2D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 04 23 02 00 00 00 07 04 06 00 C8 1E 14 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 FB EB 75 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 28 97 01 00 35 04 06 00 8A 00 00 90 [21:09:15]Write i2c OK [21:09:15]MH_I2C_Read... [21:09:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:09:15]Read from MH i2c: E2 [21:09:15]MH_I2C_Read... [21:09:15]Read from MH i2c: E2 03 00 [21:09:15]MH_I2C_Read... [21:09:15]Read from MH i2c: E2 03 00 0D 0D 00 90 00 8E [21:09:15]RAPDU: 90 00 [21:09:15]wFMCommunicate OK [21:09:15]wFMCommunicate request_size=10 [21:09:15]MH_SAM_APDU [21:09:15]CAPDU: 80 0D 02 02 05 AD AD FD C0 27 [21:09:15]Write to MH i2c: E2 0D 00 0E 0D 80 0D 02 02 05 00 AD AD FD C0 27 00 00 DD [21:09:15]Write i2c OK [21:09:15]MH_I2C_Read... [21:09:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:09:15]Read from MH i2c: E2 [21:09:15]MH_I2C_Read... [21:09:15]Read from MH i2c: E2 03 00 [21:09:15]MH_I2C_Read... [21:09:15]Read from MH i2c: E2 03 00 0E 0D 00 90 00 8F [21:09:15]RAPDU: 90 00 [21:09:15]wFMCommunicate OK [21:09:15]wFMCommunicate request_size=4 [21:09:15]MH_SAM_APDU [21:09:15]CAPDU: 80 0D 03 02 [21:09:15]Write to MH i2c: E2 08 00 0F 0D 80 0D 03 02 00 00 00 00 97 [21:09:15]Write i2c OK [21:09:15]MH_I2C_Read... [21:09:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:09:16]Read from MH i2c: E2 [21:09:16]MH_I2C_Read... [21:09:16]Read from MH i2c: E2 0B 00 [21:09:16]MH_I2C_Read... [21:09:16]Read from MH i2c: E2 0B 00 0F 0D 00 1E B0 38 A9 80 11 56 BB 90 00 E9 [21:09:16]RAPDU: 1E B0 38 A9 80 11 56 BB 90 00 [21:09:16]wFMCommunicate OK [21:09:16]SAM_PROTO_SignData done [21:09:16]FM_MakeSignedData done [21:09:16]CreateOFDProtocolMessage [21:09:16]wFMCommunicate request_size=4 [21:09:16]MH_SAM_APDU [21:09:16]CAPDU: 80 11 00 00 [21:09:16]Write to MH i2c: E2 08 00 10 0D 80 11 00 00 00 00 00 00 97 [21:09:16]Write i2c OK [21:09:16]MH_I2C_Read... [21:09:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:09:16]Read from MH i2c: E2 [21:09:16]MH_I2C_Read... [21:09:16]Read from MH i2c: E2 17 00 [21:09:16]MH_I2C_Read... [21:09:16]Read from MH i2c: E2 17 00 10 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 EA [21:09:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [21:09:16]wFMCommunicate OK [21:09:16]CreateOFDProtocolMessage done [21:09:16]OFDSenderStorePacket 104232 [21:09:16]StoreOFDPacket docnum=104232 [21:09: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 A8 15 07 01 FE 1E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 08 B9 02 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 10 1F 14 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 1E 14 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 2D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 04 23 02 00 00 00 07 04 06 00 C8 1E 14 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 FB EB 75 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 28 97 01 00 35 04 06 00 8A AD AD FD C0 27 1E B0 38 A9 80 11 56 BB [21:09:16]CheckFolder [21:09:16]dirname=/storage/ofd_packets [21:09:16]CheckFolder done [21:09:16]ProducePacketName [21:09:16]name=ofd_packets/00104232 [21:09:16]NVStorageSaveData ofd_packets/00104232 [21:09:16]File name is /storage/ofd_packets/00104232 [21:09:16]Write 301 bytes [21:09:16]NVStorageSaveData done [21:09:16]OFDSenderStorePacket done [21:09:16]KKMCreateOFDPacket done [21:09:16]NVStorageSaveData kkm_last_timestamp [21:09:16]File name is /storage/kkm_last_timestamp [21:09:16]Write 4 bytes [21:09:16]NVStorageSaveData done [21:09:16]ExternCall_PrintAddStr [21:09:16]wPrintStart [21:09:16]Write to MH i2c: 01 00 00 11 0D 1E [21:09:16]Write i2c OK [21:09:16]MH_I2C_Read... [21:09:16]Read from MH i2c: 01 [21:09:16]MH_I2C_Read... [21:09:16]Read from MH i2c: 01 07 00 [21:09:16]MH_I2C_Read... [21:09:16]Read from MH i2c: 01 07 00 11 0D 00 00 00 00 00 FF 0F 33 [21:09:16]RasterBufferAndPrint [21:09:16]line Счет N : (1)673715 [21:09:16]line ИНН: 02508201610067 [21:09:16]line Контрольно-Кассовый Чек [21:09:16]line ПРОДАЖА [21:09:16]line ТРК (МРК, ГНК) : 41 [21:09:16]line Товар: 2710124500 [21:09:16]line Аи-95-К-5 [21:09:16]line 178.440 * 73.90 [21:09:16]line = 13186.72 [21:09:16]line НДС 12% НСП 1% [21:09:16]line > о реализуемом товаре [21:09:16]line ОКРУГЛЕНИЕ: -0.72 [21:09:16]line ИТОГО: 13186.00 [21:09:16]line Внесено: 13186.00 [21:09:16]line СДАЧА: 0.00 [21:09:16]line НСП 1% : 116.70 [21:09:16]line НДС 12% : 1400.36 [21:09:16]line Наличными: 13186.00 [21:09:16]line Безнал.: 0.00 [21:09:16]line Место: АЗС № 120 "Партнер Нефть" [21:09:16]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [21:09:16]line СНО: Общий режим [21:09:16]line Чек 155 21.06.2024 21:09 [21:09:16]line Смена: 355 ФФД: 1.0 [21:09:16]line ЗНМ: 0300000164 [21:09:16]line РНМ: 0000000000092785 [21:09:16]line Версия ККМ: 001 [21:09:16]line ФМ: 0000000000875093 [21:09:16]line ФД: 104232 [21:09:16]line ФПД: 152478553063463 [21:09:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T210915&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104232&fm=152478553063463&tin=02508201610067®Number=0000000000092785&sum=1318600 [21:09:16]OFD Sender: Processing packet 104232 [packets to send 17, broken 16] [21:09:16]ProducePacketName [21:09:16]name=ofd_packets/00104232 [21:09:16]OFD Sender: To server: pG, [21:09:16]CommunicateWithHost lk.salyk.kg:30040 [21:09:16]ConnectInit lk.salyk.kg [21:09:16]written 0, free lines is 4095 [21:09:16]Connected sock=10 [21:09: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 0F 01 00 00 A8 15 07 01 FE 1E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 08 B9 02 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 10 1F 14 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 1E 14 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 2D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 04 23 02 00 00 00 07 04 06 00 C8 1E 14 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 FB EB 75 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 28 97 01 00 35 04 06 00 8A AD AD FD C0 27 1E B0 38 A9 80 11 56 BB [21:09: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 71 E8 47 00 7A B3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 28 97 01 00 F4 03 04 00 7D 92 75 66 B6 04 01 00 00 A7 CE 5E 0F 04 F3 A9 24 [21:09:16]CommunicateWithHost err = 0 [21:09:16]CheckOFDResponse [21:09:16]1017 (14) - 77093643461234 [21:09:16]1041 (16) - 0000000000875093 [21:09:16]1040 (4) - 104232 [21:09:16]1012 (4) - 21.06.2024 14:47 [21:09:16]1206 (1) - 0 [21:09:16]OFD Sender: Remove packet 104232 [21:09:16]ProducePacketName [21:09:16]name=ofd_packets/00104232 [21:09:16]NVStorageDeleteData [21:09:16]Write to MH i2c: 01 00 00 3C 0D 49 [21:09:16]Write i2c OK [21:09:16]MH_I2C_Read... [21:09:16]Read from MH i2c: 01 [21:09:16]MH_I2C_Read... [21:09:16]Read from MH i2c: 01 07 00 [21:09:16]MH_I2C_Read... [21:09:16]Read from MH i2c: 01 07 00 3C 0D 00 00 00 00 00 E1 0C 3D [21:09:16]RasterBufferAndPrint [21:09:16]line [21:09:16]line [21:09:16]line [21:09:16]line [21:09:16]line [21:09:16]written 0, free lines is 3305 [21:09:16]MH_Cut [21:09:16]Write to MH i2c: D1 01 00 43 0D 01 22 [21:09:16]Write i2c OK [21:09:16]MH_I2C_Read... [21:09:16]Read from MH i2c: D1 [21:09:16]MH_I2C_Read... [21:09:16]Read from MH i2c: D1 01 00 [21:09:16]MH_I2C_Read... [21:09:16]Read from MH i2c: D1 01 00 43 0D 00 21 [21:09:16]Write to MH i2c: 01 00 00 44 0D 51 [21:09:16]Write i2c OK [21:09:16]MH_I2C_Read... [21:09:17]OFD Sender: No OFD packet to send [21:09:17]*** Cut start [21:09:17]*** Partial cut [21:09:17]*** CUTSNS_PIN = 1 [21:09:17]*** CUTSNS_PIN = 0 [21:09:17]*** Brake cut motor [21:09:18]Read from MH i2c: 01 [21:09:18]MH_I2C_Read... [21:09:18]*** Stop cut motor [21:09:18]*** Cut end [21:09:18]Read from MH i2c: 01 07 00 [21:09:18]MH_I2C_Read... [21:09:18]Read from MH i2c: 01 07 00 44 0D 00 00 00 00 00 FF 0F 66 [21:09:18]process_action close_receipt done [21:09:18]requested_data is exist [21:09:18]produce_requested_data [21:09:18]requested_item fm.sn is exist - process it [21:09:18]wFMCommunicate request_size=4 [21:09:18]MH_SAM_APDU [21:09:18]CAPDU: 80 11 00 00 [21:09:18]Write to MH i2c: E2 08 00 45 0D 80 11 00 00 00 00 00 00 CC [21:09:18]Write i2c OK [21:09:18]MH_I2C_Read... [21:09:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:09:18]Read from MH i2c: E2 [21:09:18]MH_I2C_Read... [21:09:18]Read from MH i2c: E2 17 00 [21:09:18]MH_I2C_Read... [21:09:18]Read from MH i2c: E2 17 00 45 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 1F [21:09:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [21:09:18]wFMCommunicate OK [21:09:18]requested_item fd.num is exist - process it [21:09:18]SAM_PROTO_GetFieldsCounters [21:09:18]wFMCommunicate request_size=4 [21:09:18]MH_SAM_APDU [21:09:18]CAPDU: 80 13 00 00 [21:09:18]Write to MH i2c: E2 08 00 46 0D 80 13 00 00 00 00 00 00 CF [21:09:18]Write i2c OK [21:09:18]MH_I2C_Read... [21:09:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:09:18]Read from MH i2c: E2 [21:09:18]MH_I2C_Read... [21:09:18]Read from MH i2c: E2 62 00 [21:09:18]MH_I2C_Read... [21:09:18]Read from MH i2c: E2 62 00 46 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 28 97 01 00 0E 04 04 00 63 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 EB [21:09: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 28 97 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 9B 00 00 00 5E 04 04 00 9B 00 00 00 57 04 04 00 9C 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:09:18]wFMCommunicate OK [21:09:18]SAM_PROTO_GetFieldsCounters done [21:09:18]requested_item shift.num is exist - process it [21:09:18]requested_item shift.opened is exist - process it [21:09:18]req_shift_opened [21:09:18]FM_GetShiftState [21:09:18]SAM_PROTO_GetShiftState [21:09:18]wFMCommunicate request_size=4 [21:09:18]MH_SAM_APDU [21:09:18]CAPDU: 80 13 01 00 [21:09:18]Write to MH i2c: E2 08 00 47 0D 80 13 01 00 00 00 00 00 D1 [21:09:18]Write i2c OK [21:09:18]MH_I2C_Read... [21:09:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:09:18]Read from MH i2c: E2 [21:09:18]MH_I2C_Read... [21:09:18]Read from MH i2c: E2 0E 00 [21:09:18]MH_I2C_Read... [21:09:18]Read from MH i2c: E2 0E 00 47 0D 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 E4 [21:09:18]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [21:09:18]wFMCommunicate OK [21:09:18]SAM_PROTO_GetShiftState done [21:09:18]FM_GetShiftState done [21:09:18]req_shift_opened done [21:09:18]requested_item shift.open_date is exist - process it [21:09:18]req_shift_open_date [21:09:18]req_shift_open_date done [21:09:18]produce_requested_data done [21:09:18]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104232,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [21:09:18]process_action_free close_receipt [21:09:18]json_value_free [21:09:18]json_value_free done [21:09:18]process_json_proto returns [21:09:18]Send response to host [21:09:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104232,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [21:09:18]free response buf [21:09:18]execute_script done [21:09:18]execute_script returns [21:09:18]free content buf [21:09:18]Sock 9.Close socket [21:09:18]Sock 9.Thread stoped [21:09:22]OFD Sender: No OFD packet to send [21:09:27]OFD Sender: No OFD packet to send [21:09:32]OFD Sender: No OFD packet to send [21:09:34]accept exits with 7 [21:09:34]New connection [21:09:34]New thread 3067616612 created [21:09:34]Thread 3067473252 joined [21:09:34]Waiting for new connection... [21:09:34] Sock 7.Parse request [21:09:34]Sock 7.Check first char [21:09:34]Sock 7.First char is OK [21:09:34]request: POST /json_proto HTTP/1.0 [21:09:34]Method: POST [21:09:34]URL: /json_proto [21:09:34]Method is POST - this is cgi request [21:09:34]url: /json_proto [21:09:34]query_string will be loaded in cgi processing [21:09:34]execute_cgi json_proto POST (null) [21:09:34]execute_cgi path=json_proto method=POST [21:09:34]POST find Content-Length [21:09:34]Host: 172.17.38.133:8080 [21:09:34]Content-Length: 682 [21:09:34]Content-Type: application/json [21:09:34] [21:09:34]POST finish read [21:09:34]Found Content-Length = 682 [21:09:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673716", "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.680, "sum" : 1823.85, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1823.00, "total" : 1823.00, "payments": [ { "type": 0, "sum" : 1823.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:09:34]execute_script... [21:09: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)673716", "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.680, "sum" : 1823.85, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1823.00, "total" : 1823.00, "payments": [ { "type": 0, "sum" : 1823.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:09:34]POST & json_proto [21:09:34]process_json_proto [21:09:34]json parsed OK: [21:09:34]protocol is kg_v1.0 [21:09:34]action value=close_receipt [21:09:34]process_action close_receipt [21:09:34]cmd_close_receipt [21:09:34]MH_GetDate [21:09:34]Write to MH i2c: F0 00 00 48 0D 44 [21:09:34]Write i2c OK [21:09:34]MH_I2C_Read... [21:09:34]Read from MH i2c: F0 [21:09:34]MH_I2C_Read... [21:09:34]Read from MH i2c: F0 09 00 [21:09:34]MH_I2C_Read... [21:09:34]Read from MH i2c: F0 09 00 48 0D 00 10 EC 75 66 BD 8F 7C 64 50 [21:09:34]GetLastDocTimeStamp 1719004155 [21:09:34]current date 1719004176 [21:09:34]FM_GetShiftState [21:09:34]SAM_PROTO_GetShiftState [21:09:34]wFMCommunicate request_size=4 [21:09:34]MH_SAM_APDU [21:09:34]CAPDU: 80 13 01 00 [21:09:34]Write to MH i2c: E2 08 00 49 0D 80 13 01 00 00 00 00 00 D3 [21:09:34]Write i2c OK [21:09:34]MH_I2C_Read... [21:09:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:09:34]Read from MH i2c: E2 [21:09:34]MH_I2C_Read... [21:09:34]Read from MH i2c: E2 0E 00 [21:09:34]MH_I2C_Read... [21:09:34]Read from MH i2c: E2 0E 00 49 0D 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 E6 [21:09:34]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [21:09:34]wFMCommunicate OK [21:09:34]SAM_PROTO_GetShiftState done [21:09:34]FM_GetShiftState done [21:09:34]opened in 1718929509 [21:09:34]opened+sec_in_day 1719015909 [21:09:34]quantity*price = 182385 [21:09:34]sum+1 = 182386 [21:09:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.85 ИТОГО: 1823.00 Внесено: 1823.00 СДАЧА: 0.00 НСП 1% : 16.14 НДС 12% : 193.68 Наличными: 1823.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 156 21.06.2024 21:09 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104233 ФПД: 50050610756254 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T210936&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104233&fm=50050610756254&tin=02508201610067®Number=0000000000092785&sum=182300 [21:09:36]StoreToDocumentArchive [21:09:36]shift 355 fd 104233 [21:09:36]save to /storage/0355/doc_00104233 [21:09:36]save last doc name /storage/0355/doc_00104233 to /storage/kkm_last_doc_name [21:09:36]save OK [21:09:36]Clear old archive folders... [21:09:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:09:36]tlvbuf is 006997B0 [21:09:36]SAM_PROTO_ClearQueue [21:09:36]wFMCommunicate request_size=4 [21:09:36]MH_SAM_APDU [21:09:36]CAPDU: 80 09 00 00 [21:09:36]Write to MH i2c: E2 08 00 56 0D 80 09 00 00 00 00 00 00 D5 [21:09:36]Write i2c OK [21:09:36]MH_I2C_Read... [21:09:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:09:36]Read from MH i2c: E2 [21:09:36]MH_I2C_Read... [21:09:36]Read from MH i2c: E2 03 00 [21:09:36]MH_I2C_Read... [21:09:36]Read from MH i2c: E2 03 00 56 0D 00 90 00 D7 [21:09:36]RAPDU: 90 00 [21:09:36]wFMCommunicate OK [21:09:36]SAM_PROTO_ClearQueue done [21:09:36]KKMCreateOFDPacket [21:09:36]OFDProtocolAddRootSTLVToBuf [21:09:36]FM_MakeSignedData [21:09:36]FM_MakeSignedData [21:09:36]SAM_PROTO_SignData [21:09:36]wFMCommunicate request_size=4 [21:09:36]MH_SAM_APDU [21:09:36]CAPDU: 80 0D 01 02 [21:09:36]Write to MH i2c: E2 08 00 57 0D 80 0D 01 02 00 00 00 00 DD [21:09:36]Write i2c OK [21:09:36]MH_I2C_Read... [21:09:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:09:36]Read from MH i2c: E2 [21:09:36]MH_I2C_Read... [21:09:36]Read from MH i2c: E2 03 00 [21:09:36]MH_I2C_Read... [21:09:36]Read from MH i2c: E2 03 00 57 0D 00 90 00 D8 [21:09:36]RAPDU: 90 00 [21:09:36]wFMCommunicate OK [21:09:36]wFMCommunicate request_size=255 [21:09:36]MH_SAM_APDU [21:09: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 68 60 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 71 C8 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C C8 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4E 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A8 4B 00 00 00 00 07 04 06 00 1C C8 02 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 10 EC 75 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 29 97 01 00 35 04 06 00 2D [21:09:36]Write to MH i2c: E2 02 01 58 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 68 60 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 71 C8 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C C8 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4E 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A8 4B 00 00 00 00 07 04 06 00 1C C8 02 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 10 EC 75 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 29 97 01 00 35 04 06 00 2D 00 00 C6 [21:09:36]Write i2c OK [21:09:36]MH_I2C_Read... [21:09:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:09:36]Read from MH i2c: E2 [21:09:36]MH_I2C_Read... [21:09:36]Read from MH i2c: E2 03 00 [21:09:36]MH_I2C_Read... [21:09:36]Read from MH i2c: E2 03 00 58 0D 00 90 00 D9 [21:09:36]RAPDU: 90 00 [21:09:36]wFMCommunicate OK [21:09:36]wFMCommunicate request_size=10 [21:09:36]MH_SAM_APDU [21:09:36]CAPDU: 80 0D 02 02 05 85 50 DF FA 9E [21:09:36]Write to MH i2c: E2 0D 00 59 0D 80 0D 02 02 05 00 85 50 DF FA 9E 00 00 36 [21:09:36]Write i2c OK [21:09:36]MH_I2C_Read... [21:09:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:09:36]Read from MH i2c: E2 [21:09:36]MH_I2C_Read... [21:09:36]Read from MH i2c: E2 03 00 [21:09:36]MH_I2C_Read... [21:09:36]Read from MH i2c: E2 03 00 59 0D 00 90 00 DA [21:09:36]RAPDU: 90 00 [21:09:36]wFMCommunicate OK [21:09:36]wFMCommunicate request_size=4 [21:09:36]MH_SAM_APDU [21:09:36]CAPDU: 80 0D 03 02 [21:09:36]Write to MH i2c: E2 08 00 5A 0D 80 0D 03 02 00 00 00 00 E2 [21:09:36]Write i2c OK [21:09:36]MH_I2C_Read... [21:09:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:09:36]Read from MH i2c: E2 [21:09:36]MH_I2C_Read... [21:09:36]Read from MH i2c: E2 0B 00 [21:09:36]MH_I2C_Read... [21:09:36]Read from MH i2c: E2 0B 00 5A 0D 00 C6 7F 99 6A E0 BE F0 EB 90 00 A4 [21:09:36]RAPDU: C6 7F 99 6A E0 BE F0 EB 90 00 [21:09:36]wFMCommunicate OK [21:09:36]SAM_PROTO_SignData done [21:09:36]FM_MakeSignedData done [21:09:36]CreateOFDProtocolMessage [21:09:36]wFMCommunicate request_size=4 [21:09:36]MH_SAM_APDU [21:09:36]CAPDU: 80 11 00 00 [21:09:36]Write to MH i2c: E2 08 00 5B 0D 80 11 00 00 00 00 00 00 E2 [21:09:36]Write i2c OK [21:09:36]MH_I2C_Read... [21:09:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:09:36]Read from MH i2c: E2 [21:09:36]MH_I2C_Read... [21:09:36]Read from MH i2c: E2 17 00 [21:09:36]MH_I2C_Read... [21:09:36]Read from MH i2c: E2 17 00 5B 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 35 [21:09: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:09:36]wFMCommunicate OK [21:09:36]CreateOFDProtocolMessage done [21:09:36]OFDSenderStorePacket 104233 [21:09:36]StoreOFDPacket docnum=104233 [21:09: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 70 83 07 01 6A 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 68 60 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 71 C8 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C C8 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4E 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A8 4B 00 00 00 00 07 04 06 00 1C C8 02 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 10 EC 75 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 29 97 01 00 35 04 06 00 2D 85 50 DF FA 9E C6 7F 99 6A E0 BE F0 EB [21:09:36]CheckFolder [21:09:36]dirname=/storage/ofd_packets [21:09:36]CheckFolder done [21:09:36]ProducePacketName [21:09:36]name=ofd_packets/00104233 [21:09:36]NVStorageSaveData ofd_packets/00104233 [21:09:36]File name is /storage/ofd_packets/00104233 [21:09:36]Write 301 bytes [21:09:36]NVStorageSaveData done [21:09:36]OFDSenderStorePacket done [21:09:36]KKMCreateOFDPacket done [21:09:36]NVStorageSaveData kkm_last_timestamp [21:09:36]File name is /storage/kkm_last_timestamp [21:09:36]Write 4 bytes [21:09:36]NVStorageSaveData done [21:09:36]ExternCall_PrintAddStr [21:09:36]wPrintStart [21:09:36]Write to MH i2c: 01 00 00 5C 0D 69 [21:09:36]Write i2c OK [21:09:36]MH_I2C_Read... [21:09:36]Read from MH i2c: 01 [21:09:36]MH_I2C_Read... [21:09:36]Read from MH i2c: 01 07 00 [21:09:36]MH_I2C_Read... [21:09:36]Read from MH i2c: 01 07 00 5C 0D 00 00 00 00 00 FF 0F 7E [21:09:36]RasterBufferAndPrint [21:09:36]line Счет N : (1)673716 [21:09:36]line ИНН: 02508201610067 [21:09:36]line Контрольно-Кассовый Чек [21:09:36]line ПРОДАЖА [21:09:36]line ТРК (МРК, ГНК) : 31 [21:09:36]line Товар: 2710124500 [21:09:36]line Аи-95-К-5 [21:09:36]line 24.680 * 73.90 [21:09:36]line = 1823.85 [21:09:36]line НДС 12% НСП 1% [21:09:36]line > о реализуемом товаре [21:09:36]line ОКРУГЛЕНИЕ: -0.85 [21:09:36]line ИТОГО: 1823.00 [21:09:36]line Внесено: 1823.00 [21:09:36]line СДАЧА: 0.00 [21:09:36]line НСП 1% : 16.14 [21:09:36]line НДС 12% : 193.68 [21:09:36]line Наличными: 1823.00 [21:09:36]line Безнал.: 0.00 [21:09:36]line Место: АЗС № 120 "Партнер Нефть" [21:09:36]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [21:09:36]line СНО: Общий режим [21:09:36]line Чек 156 21.06.2024 21:09 [21:09:36]line Смена: 355 ФФД: 1.0 [21:09:36]line ЗНМ: 0300000164 [21:09:36]line РНМ: 0000000000092785 [21:09:36]line Версия ККМ: 001 [21:09:36]line ФМ: 0000000000875093 [21:09:36]line ФД: 104233 [21:09:36]line ФПД: 50050610756254 [21:09:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T210936&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104233&fm=50050610756254&tin=02508201610067®Number=0000000000092785&sum=182300 [21:09:36]OFD Sender: Processing packet 104233 [packets to send 17, broken 16] [21:09:36]ProducePacketName [21:09:36]name=ofd_packets/00104233 [21:09:36]OFD Sender: To server: pG, [21:09:36]CommunicateWithHost lk.salyk.kg:30040 [21:09:36]ConnectInit lk.salyk.kg [21:09:36]written 0, free lines is 4095 [21:09:37]Connected sock=10 [21:09: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 70 83 07 01 6A 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 68 60 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 71 C8 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C C8 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4E 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A8 4B 00 00 00 00 07 04 06 00 1C C8 02 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 10 EC 75 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 29 97 01 00 35 04 06 00 2D 85 50 DF FA 9E C6 7F 99 6A E0 BE F0 EB [21:09: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 1A 3E 47 00 01 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 29 97 01 00 F4 03 04 00 91 92 75 66 B6 04 01 00 00 49 B2 03 09 EE B8 C7 16 [21:09:37]CommunicateWithHost err = 0 [21:09:37]CheckOFDResponse [21:09:37]1017 (14) - 77093643461234 [21:09:37]1041 (16) - 0000000000875093 [21:09:37]1040 (4) - 104233 [21:09:37]1012 (4) - 21.06.2024 14:47 [21:09:37]1206 (1) - 0 [21:09:37]OFD Sender: Remove packet 104233 [21:09:37]ProducePacketName [21:09:37]name=ofd_packets/00104233 [21:09:37]NVStorageDeleteData [21:09:37]Write to MH i2c: 01 00 00 87 0D 94 [21:09:37]Write i2c OK [21:09:37]MH_I2C_Read... [21:09:37]Read from MH i2c: 01 [21:09:37]MH_I2C_Read... [21:09:37]Read from MH i2c: 01 07 00 [21:09:37]MH_I2C_Read... [21:09:37]Read from MH i2c: 01 07 00 87 0D 00 00 00 00 00 EE 0C 95 [21:09:37]RasterBufferAndPrint [21:09:37]line [21:09:37]line [21:09:37]line [21:09:37]line [21:09:37]line [21:09:37]written 0, free lines is 3316 [21:09:37]MH_Cut [21:09:37]Write to MH i2c: D1 01 00 8E 0D 01 6D [21:09:37]Write i2c OK [21:09:37]MH_I2C_Read... [21:09:37]Read from MH i2c: D1 [21:09:37]MH_I2C_Read... [21:09:37]Read from MH i2c: D1 01 00 [21:09:37]MH_I2C_Read... [21:09:37]Read from MH i2c: D1 01 00 8E 0D 00 6C [21:09:37]Write to MH i2c: 01 00 00 8F 0D 9C [21:09:37]Write i2c OK [21:09:37]MH_I2C_Read... [21:09:37]OFD Sender: No OFD packet to send [21:09:38]*** Cut start [21:09:38]*** Partial cut [21:09:38]*** CUTSNS_PIN = 1 [21:09:38]*** CUTSNS_PIN = 0 [21:09:38]*** Brake cut motor [21:09:38]Read from MH i2c: 01 [21:09:38]MH_I2C_Read... [21:09:38]*** Stop cut motor [21:09:38]*** Cut end [21:09:38]Read from MH i2c: 01 07 00 [21:09:38]MH_I2C_Read... [21:09:38]Read from MH i2c: 01 07 00 8F 0D 00 00 00 00 00 FF 0F B1 [21:09:38]process_action close_receipt done [21:09:38]requested_data is exist [21:09:38]produce_requested_data [21:09:38]requested_item fm.sn is exist - process it [21:09:38]wFMCommunicate request_size=4 [21:09:38]MH_SAM_APDU [21:09:38]CAPDU: 80 11 00 00 [21:09:38]Write to MH i2c: E2 08 00 90 0D 80 11 00 00 00 00 00 00 17 [21:09:38]Write i2c OK [21:09:38]MH_I2C_Read... [21:09:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:09:38]Read from MH i2c: E2 [21:09:38]MH_I2C_Read... [21:09:38]Read from MH i2c: E2 17 00 [21:09:38]MH_I2C_Read... [21:09:38]Read from MH i2c: E2 17 00 90 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 6A [21:09:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [21:09:38]wFMCommunicate OK [21:09:38]requested_item fd.num is exist - process it [21:09:38]SAM_PROTO_GetFieldsCounters [21:09:38]wFMCommunicate request_size=4 [21:09:38]MH_SAM_APDU [21:09:38]CAPDU: 80 13 00 00 [21:09:38]Write to MH i2c: E2 08 00 91 0D 80 13 00 00 00 00 00 00 1A [21:09:38]Write i2c OK [21:09:38]MH_I2C_Read... [21:09:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:09:38]Read from MH i2c: E2 [21:09:38]MH_I2C_Read... [21:09:38]Read from MH i2c: E2 62 00 [21:09:38]MH_I2C_Read... [21:09:38]Read from MH i2c: E2 62 00 91 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 29 97 01 00 0E 04 04 00 63 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 3A [21:09: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 29 97 01 00 0E 04 04 00 63 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 [21:09:38]wFMCommunicate OK [21:09:38]SAM_PROTO_GetFieldsCounters done [21:09:38]requested_item shift.num is exist - process it [21:09:38]requested_item shift.opened is exist - process it [21:09:38]req_shift_opened [21:09:38]FM_GetShiftState [21:09:38]SAM_PROTO_GetShiftState [21:09:38]wFMCommunicate request_size=4 [21:09:38]MH_SAM_APDU [21:09:38]CAPDU: 80 13 01 00 [21:09:38]Write to MH i2c: E2 08 00 92 0D 80 13 01 00 00 00 00 00 1C [21:09:38]Write i2c OK [21:09:38]MH_I2C_Read... [21:09:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:09:39]Read from MH i2c: E2 [21:09:39]MH_I2C_Read... [21:09:39]Read from MH i2c: E2 0E 00 [21:09:39]MH_I2C_Read... [21:09:39]Read from MH i2c: E2 0E 00 92 0D 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 2F [21:09:39]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [21:09:39]wFMCommunicate OK [21:09:39]SAM_PROTO_GetShiftState done [21:09:39]FM_GetShiftState done [21:09:39]req_shift_opened done [21:09:39]requested_item shift.open_date is exist - process it [21:09:39]req_shift_open_date [21:09:39]req_shift_open_date done [21:09:39]produce_requested_data done [21:09:39]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104233,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [21:09:39]process_action_free close_receipt [21:09:39]json_value_free [21:09:39]json_value_free done [21:09:39]process_json_proto returns [21:09:39]Send response to host [21:09:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104233,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [21:09:39]free response buf [21:09:39]execute_script done [21:09:39]execute_script returns [21:09:39]free content buf [21:09:39]Sock 7.Close socket [21:09:39]Sock 7.Thread stoped [21:09:42]OFD Sender: No OFD packet to send [21:09:47]OFD Sender: No OFD packet to send [21:09:52]OFD Sender: No OFD packet to send [21:09:57]OFD Sender: No OFD packet to send [21:10:02]OFD Sender: No OFD packet to send [21:10:07]OFD Sender: No OFD packet to send [21:10:08]accept exits with 9 [21:10:08]New connection [21:10:08]New thread 3067473252 created [21:10:08]Thread 3067616612 joined [21:10:08]Waiting for new connection... [21:10:08] Sock 9.Parse request [21:10:08]Sock 9.Check first char [21:10:08]Sock 9.First char is OK [21:10:08]request: POST /json_proto HTTP/1.0 [21:10:08]Method: POST [21:10:08]URL: /json_proto [21:10:08]Method is POST - this is cgi request [21:10:08]url: /json_proto [21:10:08]query_string will be loaded in cgi processing [21:10:08]execute_cgi json_proto POST (null) [21:10:08]execute_cgi path=json_proto method=POST [21:10:08]POST find Content-Length [21:10:08]Host: 172.17.38.133:8080 [21:10:08]Content-Length: 739 [21:10:08]Content-Type: application/json [21:10:08] [21:10:08]POST finish read [21:10:08]Found Content-Length = 739 [21:10:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 104233, "base_FM": "0000000000875093", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673716", "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.680, "sum" : 1823.85, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1823.00, "total" : 1823.00, "payments": [ { "type": 0, "sum" : 1823.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:10:08]execute_script... [21:10:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 104233, "base_FM": "0000000000875093", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673716", "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.680, "sum" : 1823.85, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1823.00, "total" : 1823.00, "payments": [ { "type": 0, "sum" : 1823.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:10:08]POST & json_proto [21:10:08]process_json_proto [21:10:08]json parsed OK: [21:10:08]protocol is kg_v1.0 [21:10:08]action value=close_receipt [21:10:08]process_action close_receipt [21:10:08]cmd_close_receipt [21:10:08]MH_GetDate [21:10:08]Write to MH i2c: F0 00 00 93 0D 8F [21:10:08]Write i2c OK [21:10:08]MH_I2C_Read... [21:10:08]Read from MH i2c: F0 [21:10:08]MH_I2C_Read... [21:10:08]Read from MH i2c: F0 09 00 [21:10:08]MH_I2C_Read... [21:10:08]Read from MH i2c: F0 09 00 93 0D 00 32 EC 75 66 BD 8F 7C 64 BD [21:10:08]GetLastDocTimeStamp 1719004176 [21:10:08]current date 1719004210 [21:10:08]FM_GetShiftState [21:10:08]SAM_PROTO_GetShiftState [21:10:08]wFMCommunicate request_size=4 [21:10:08]MH_SAM_APDU [21:10:08]CAPDU: 80 13 01 00 [21:10:08]Write to MH i2c: E2 08 00 94 0D 80 13 01 00 00 00 00 00 1E [21:10:08]Write i2c OK [21:10:08]MH_I2C_Read... [21:10:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:10:08]Read from MH i2c: E2 [21:10:08]MH_I2C_Read... [21:10:08]Read from MH i2c: E2 0E 00 [21:10:08]MH_I2C_Read... [21:10:08]Read from MH i2c: E2 0E 00 94 0D 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 31 [21:10:08]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [21:10:08]wFMCommunicate OK [21:10:08]SAM_PROTO_GetShiftState done [21:10:08]FM_GetShiftState done [21:10:08]opened in 1718929509 [21:10:08]opened+sec_in_day 1719015909 [21:10:08]quantity*price = 182385 [21:10:08]sum+1 = 182386 [21:10:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.85 ИТОГО: 1823.00 НСП 1% : 16.14 НДС 12% : 193.68 Наличными: 1823.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 157 21.06.2024 21:10 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФД осн.: 104233 ФМ осн.: 0000000000875093 ФМ: 0000000000875093 ФД: 104234 ФПД: 103913852235525 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T211010&type=2&operation_type=1&fn_number=0000000000875093&fd_number=104234&fm=103913852235525&tin=02508201610067®Number=0000000000092785&sum=182300 [21:10:10]StoreToDocumentArchive [21:10:10]shift 355 fd 104234 [21:10:10]save to /storage/0355/doc_00104234 [21:10:10]save last doc name /storage/0355/doc_00104234 to /storage/kkm_last_doc_name [21:10:10]save OK [21:10:10]Clear old archive folders... [21:10:10]ProcessDocumentItem done err = 0, tmpTLVsize=279 [21:10:10]tlvbuf is 006A1830 [21:10:10]SAM_PROTO_ClearQueue [21:10:10]wFMCommunicate request_size=4 [21:10:10]MH_SAM_APDU [21:10:10]CAPDU: 80 09 00 00 [21:10:10]Write to MH i2c: E2 08 00 A3 0D 80 09 00 00 00 00 00 00 22 [21:10:10]Write i2c OK [21:10:10]MH_I2C_Read... [21:10:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:10:10]Read from MH i2c: E2 [21:10:10]MH_I2C_Read... [21:10:10]Read from MH i2c: E2 03 00 [21:10:10]MH_I2C_Read... [21:10:10]Read from MH i2c: E2 03 00 A3 0D 00 90 00 24 [21:10:10]RAPDU: 90 00 [21:10:10]wFMCommunicate OK [21:10:10]SAM_PROTO_ClearQueue done [21:10:10]KKMCreateOFDPacket [21:10:10]OFDProtocolAddRootSTLVToBuf [21:10:10]FM_MakeSignedData [21:10:10]FM_MakeSignedData [21:10:10]SAM_PROTO_SignData [21:10:10]wFMCommunicate request_size=4 [21:10:10]MH_SAM_APDU [21:10:10]CAPDU: 80 0D 01 02 [21:10:10]Write to MH i2c: E2 08 00 A4 0D 80 0D 01 02 00 00 00 00 2A [21:10:10]Write i2c OK [21:10:10]MH_I2C_Read... [21:10:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:10:10]Read from MH i2c: E2 [21:10:10]MH_I2C_Read... [21:10:10]Read from MH i2c: E2 03 00 [21:10:10]MH_I2C_Read... [21:10:10]Read from MH i2c: E2 03 00 A4 0D 00 90 00 25 [21:10:10]RAPDU: 90 00 [21:10:10]wFMCommunicate OK [21:10:10]wFMCommunicate request_size=255 [21:10:10]MH_SAM_APDU [21:10:10]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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 68 60 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 71 C8 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C C8 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4E 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A8 4B 00 00 00 00 07 04 06 00 1C C8 02 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 32 EC 75 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 27 04 04 00 29 97 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 [21:10:10]Write to MH i2c: E2 02 01 A5 0D 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 68 60 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 71 C8 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C C8 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4E 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A8 4B 00 00 00 00 07 04 06 00 1C C8 02 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 32 EC 75 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 27 04 04 00 29 97 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 6B [21:10:10]Write i2c OK [21:10:10]MH_I2C_Read... [21:10:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:10:10]Read from MH i2c: E2 [21:10:10]MH_I2C_Read... [21:10:10]Read from MH i2c: E2 03 00 [21:10:10]MH_I2C_Read... [21:10:10]Read from MH i2c: E2 03 00 A5 0D 00 90 00 26 [21:10:10]RAPDU: 90 00 [21:10:10]wFMCommunicate OK [21:10:10]wFMCommunicate request_size=38 [21:10:10]MH_SAM_APDU [21:10:10]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 2A 97 01 00 35 04 06 00 5E 82 54 3F EF 05 [21:10:10]Write to MH i2c: E2 29 00 A6 0D 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 2A 97 01 00 35 04 06 00 5E 82 54 3F EF 05 00 00 DF [21:10:10]Write i2c OK [21:10:10]MH_I2C_Read... [21:10:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:10:10]Read from MH i2c: E2 [21:10:10]MH_I2C_Read... [21:10:10]Read from MH i2c: E2 03 00 [21:10:10]MH_I2C_Read... [21:10:10]Read from MH i2c: E2 03 00 A6 0D 00 90 00 27 [21:10:10]RAPDU: 90 00 [21:10:10]wFMCommunicate OK [21:10:10]wFMCommunicate request_size=4 [21:10:10]MH_SAM_APDU [21:10:10]CAPDU: 80 0D 03 02 [21:10:10]Write to MH i2c: E2 08 00 A7 0D 80 0D 03 02 00 00 00 00 2F [21:10:10]Write i2c OK [21:10:10]MH_I2C_Read... [21:10:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:10:10]Read from MH i2c: E2 [21:10:10]MH_I2C_Read... [21:10:10]Read from MH i2c: E2 0B 00 [21:10:10]MH_I2C_Read... [21:10:10]Read from MH i2c: E2 0B 00 A7 0D 00 5B 58 DF 7B 09 88 83 09 90 00 5A [21:10:10]RAPDU: 5B 58 DF 7B 09 88 83 09 90 00 [21:10:10]wFMCommunicate OK [21:10:10]SAM_PROTO_SignData done [21:10:10]FM_MakeSignedData done [21:10:10]CreateOFDProtocolMessage [21:10:10]wFMCommunicate request_size=4 [21:10:10]MH_SAM_APDU [21:10:10]CAPDU: 80 11 00 00 [21:10:10]Write to MH i2c: E2 08 00 A8 0D 80 11 00 00 00 00 00 00 2F [21:10:10]Write i2c OK [21:10:10]MH_I2C_Read... [21:10:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:10:10]Read from MH i2c: E2 [21:10:10]MH_I2C_Read... [21:10:10]Read from MH i2c: E2 17 00 [21:10:10]MH_I2C_Read... [21:10:10]Read from MH i2c: E2 17 00 A8 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 82 [21:10: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:10:10]wFMCommunicate OK [21:10:10]CreateOFDProtocolMessage done [21:10:10]OFDSenderStorePacket 104234 [21:10:10]StoreOFDPacket docnum=104234 [21:10: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 2B 01 00 00 79 6E 23 01 A9 C6 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 68 60 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 71 C8 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C C8 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4E 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A8 4B 00 00 00 00 07 04 06 00 1C C8 02 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 32 EC 75 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 27 04 04 00 29 97 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 2A 97 01 00 35 04 06 00 5E 82 54 3F EF 05 5B 58 DF 7B 09 88 83 09 [21:10:10]CheckFolder [21:10:10]dirname=/storage/ofd_packets [21:10:10]CheckFolder done [21:10:10]ProducePacketName [21:10:10]name=ofd_packets/00104234 [21:10:10]NVStorageSaveData ofd_packets/00104234 [21:10:10]File name is /storage/ofd_packets/00104234 [21:10:10]Write 329 bytes [21:10:10]NVStorageSaveData done [21:10:10]OFDSenderStorePacket done [21:10:10]KKMCreateOFDPacket done [21:10:10]NVStorageSaveData kkm_last_timestamp [21:10:10]File name is /storage/kkm_last_timestamp [21:10:10]Write 4 bytes [21:10:10]NVStorageSaveData done [21:10:10]ExternCall_PrintAddStr [21:10:10]wPrintStart [21:10:10]Write to MH i2c: 01 00 00 A9 0D B6 [21:10:10]Write i2c OK [21:10:10]MH_I2C_Read... [21:10:10]Read from MH i2c: 01 [21:10:10]MH_I2C_Read... [21:10:10]Read from MH i2c: 01 07 00 [21:10:10]MH_I2C_Read... [21:10:10]Read from MH i2c: 01 07 00 A9 0D 00 00 00 00 00 FF 0F CB [21:10:10]RasterBufferAndPrint [21:10:10]line Счет N : (1)673716 [21:10:10]line ИНН: 02508201610067 [21:10:10]line Контрольно-Кассовый Чек [21:10:10]line ВОЗВРАТ ПРОДАЖИ [21:10:10]line ТРК (МРК, ГНК) : 31 [21:10:10]line Товар: 2710124500 [21:10:10]line Аи-95-К-5 [21:10:10]line 24.680 * 73.90 [21:10:10]line = 1823.85 [21:10:10]line НДС 12% НСП 1% [21:10:10]line > о реализуемом товаре [21:10:10]line ОКРУГЛЕНИЕ: -0.85 [21:10:10]line ИТОГО: 1823.00 [21:10:10]line НСП 1% : 16.14 [21:10:10]line НДС 12% : 193.68 [21:10:10]line Наличными: 1823.00 [21:10:10]line Безнал.: 0.00 [21:10:10]line Место: АЗС № 120 "Партнер Нефть" [21:10:10]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [21:10:10]line СНО: Общий режим [21:10:10]line Чек 157 21.06.2024 21:10 [21:10:10]line Смена: 355 ФФД: 1.0 [21:10:10]line ЗНМ: 0300000164 [21:10:10]line РНМ: 0000000000092785 [21:10:10]line Версия ККМ: 001 [21:10:10]line ФД осн.: 104233 [21:10:10]line ФМ осн.: 0000000000875093 [21:10:10]line ФМ: 0000000000875093 [21:10:10]line ФД: 104234 [21:10:10]line ФПД: 103913852235525 [21:10:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T211010&type=2&operation_type=1&fn_number=0000000000875093&fd_number=104234&fm=103913852235525&tin=02508201610067®Number=0000000000092785&sum=182300 [21:10:10]OFD Sender: Processing packet 104234 [packets to send 17, broken 16] [21:10:10]ProducePacketName [21:10:10]name=ofd_packets/00104234 [21:10:10]OFD Sender: To server: pG, [21:10:10]CommunicateWithHost lk.salyk.kg:30040 [21:10:10]ConnectInit lk.salyk.kg [21:10:10]written 0, free lines is 4095 [21:10:11]Connected sock=10 [21:10: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 2B 01 00 00 79 6E 23 01 A9 C6 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 68 60 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 71 C8 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C C8 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4E 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A8 4B 00 00 00 00 07 04 06 00 1C C8 02 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 32 EC 75 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 27 04 04 00 29 97 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 2A 97 01 00 35 04 06 00 5E 82 54 3F EF 05 5B 58 DF 7B 09 88 83 09 [21:10: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 AD 83 47 00 1F 01 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 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 97 01 00 F4 03 04 00 B3 92 75 66 B6 04 01 00 00 65 12 CF AA A5 3A 54 AD [21:10:11]CommunicateWithHost err = 0 [21:10:11]CheckOFDResponse [21:10:11]1017 (14) - 77093643461234 [21:10:11]1041 (16) - 0000000000875093 [21:10:11]1040 (4) - 104234 [21:10:11]1012 (4) - 21.06.2024 14:48 [21:10:11]1206 (1) - 0 [21:10:11]OFD Sender: Remove packet 104234 [21:10:11]ProducePacketName [21:10:11]name=ofd_packets/00104234 [21:10:11]NVStorageDeleteData [21:10:11]Write to MH i2c: 01 00 00 D4 0D E1 [21:10:11]Write i2c OK [21:10:11]MH_I2C_Read... [21:10:11]Read from MH i2c: 01 [21:10:11]MH_I2C_Read... [21:10:11]Read from MH i2c: 01 07 00 [21:10:11]MH_I2C_Read... [21:10:11]Read from MH i2c: 01 07 00 D4 0D 00 00 00 00 00 F0 0C E4 [21:10:11]RasterBufferAndPrint [21:10:11]line [21:10:11]line [21:10:11]line [21:10:11]line [21:10:11]line [21:10:11]written 0, free lines is 3319 [21:10:11]MH_Cut [21:10:11]Write to MH i2c: D1 01 00 DB 0D 01 BA [21:10:11]Write i2c OK [21:10:11]MH_I2C_Read... [21:10:11]Read from MH i2c: D1 [21:10:11]MH_I2C_Read... [21:10:11]Read from MH i2c: D1 01 00 [21:10:11]MH_I2C_Read... [21:10:11]Read from MH i2c: D1 01 00 DB 0D 00 B9 [21:10:11]Write to MH i2c: 01 00 00 DC 0D E9 [21:10:11]Write i2c OK [21:10:11]MH_I2C_Read... [21:10:11]OFD Sender: No OFD packet to send [21:10:12]*** Cut start [21:10:12]*** Partial cut [21:10:12]*** CUTSNS_PIN = 1 [21:10:12]*** CUTSNS_PIN = 0 [21:10:12]*** Brake cut motor [21:10:12]Read from MH i2c: 01 [21:10:12]MH_I2C_Read... [21:10:12]*** Stop cut motor [21:10:12]*** Cut end [21:10:12]Read from MH i2c: 01 07 00 [21:10:12]MH_I2C_Read... [21:10:12]Read from MH i2c: 01 07 00 DC 0D 00 00 00 00 00 FF 0F FE [21:10:12]process_action close_receipt done [21:10:12]requested_data is exist [21:10:12]produce_requested_data [21:10:12]requested_item fm.sn is exist - process it [21:10:12]wFMCommunicate request_size=4 [21:10:12]MH_SAM_APDU [21:10:12]CAPDU: 80 11 00 00 [21:10:12]Write to MH i2c: E2 08 00 DD 0D 80 11 00 00 00 00 00 00 64 [21:10:12]Write i2c OK [21:10:12]MH_I2C_Read... [21:10:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:10:12]Read from MH i2c: E2 [21:10:12]MH_I2C_Read... [21:10:12]Read from MH i2c: E2 17 00 [21:10:12]MH_I2C_Read... [21:10:12]Read from MH i2c: E2 17 00 DD 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 B7 [21:10:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [21:10:12]wFMCommunicate OK [21:10:12]requested_item fd.num is exist - process it [21:10:12]SAM_PROTO_GetFieldsCounters [21:10:12]wFMCommunicate request_size=4 [21:10:12]MH_SAM_APDU [21:10:12]CAPDU: 80 13 00 00 [21:10:12]Write to MH i2c: E2 08 00 DE 0D 80 13 00 00 00 00 00 00 67 [21:10:12]Write i2c OK [21:10:12]MH_I2C_Read... [21:10:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:10:12]Read from MH i2c: E2 [21:10:12]MH_I2C_Read... [21:10:12]Read from MH i2c: E2 62 00 [21:10:12]MH_I2C_Read... [21:10:12]Read from MH i2c: E2 62 00 DE 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 2A 97 01 00 0E 04 04 00 63 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 8B [21:10: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 2A 97 01 00 0E 04 04 00 63 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 [21:10:12]wFMCommunicate OK [21:10:12]SAM_PROTO_GetFieldsCounters done [21:10:12]requested_item shift.num is exist - process it [21:10:12]requested_item shift.opened is exist - process it [21:10:12]req_shift_opened [21:10:12]FM_GetShiftState [21:10:12]SAM_PROTO_GetShiftState [21:10:12]wFMCommunicate request_size=4 [21:10:12]MH_SAM_APDU [21:10:12]CAPDU: 80 13 01 00 [21:10:12]Write to MH i2c: E2 08 00 DF 0D 80 13 01 00 00 00 00 00 69 [21:10:12]Write i2c OK [21:10:12]MH_I2C_Read... [21:10:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:10:12]Read from MH i2c: E2 [21:10:12]MH_I2C_Read... [21:10:12]Read from MH i2c: E2 0E 00 [21:10:12]MH_I2C_Read... [21:10:12]Read from MH i2c: E2 0E 00 DF 0D 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 7C [21:10:12]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [21:10:12]wFMCommunicate OK [21:10:12]SAM_PROTO_GetShiftState done [21:10:12]FM_GetShiftState done [21:10:12]req_shift_opened done [21:10:12]requested_item shift.open_date is exist - process it [21:10:12]req_shift_open_date [21:10:12]req_shift_open_date done [21:10:12]produce_requested_data done [21:10:12]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104234,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [21:10:12]process_action_free close_receipt [21:10:12]json_value_free [21:10:12]json_value_free done [21:10:12]process_json_proto returns [21:10:12]Send response to host [21:10:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104234,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [21:10:12]free response buf [21:10:12]execute_script done [21:10:12]execute_script returns [21:10:12]free content buf [21:10:12]Sock 9.Close socket [21:10:12]Sock 9.Thread stoped [21:10:16]OFD Sender: No OFD packet to send [21:10:21]OFD Sender: No OFD packet to send [21:10:26]OFD Sender: No OFD packet to send [21:10:31]OFD Sender: No OFD packet to send [21:10:36]OFD Sender: No OFD packet to send [21:10:41]OFD Sender: No OFD packet to send [21:10:46]OFD Sender: No OFD packet to send [21:10:51]OFD Sender: No OFD packet to send [21:10:56]OFD Sender: No OFD packet to send [21:10:58]accept exits with 7 [21:10:58]New connection [21:10:58]New thread 3067616612 created [21:10:58]Thread 3067473252 joined [21:10:58]Waiting for new connection... [21:10:58] Sock 7.Parse request [21:10:58]Sock 7.Check first char [21:10:58]Sock 7.First char is OK [21:10:58]request: POST /json_proto HTTP/1.0 [21:10:58]Method: POST [21:10:58]URL: /json_proto [21:10:58]Method is POST - this is cgi request [21:10:58]url: /json_proto [21:10:58]query_string will be loaded in cgi processing [21:10:58]execute_cgi json_proto POST (null) [21:10:58]execute_cgi path=json_proto method=POST [21:10:58]POST find Content-Length [21:10:58]Host: 172.17.38.133:8080 [21:10:58]Content-Length: 682 [21:10:58]Content-Type: application/json [21:10:58] [21:10:58]POST finish read [21:10:58]Found Content-Length = 682 [21:10:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673717", "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" ] } } [21:10:58]execute_script... [21:10: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)673717", "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" ] } } [21:10:58]POST & json_proto [21:10:58]process_json_proto [21:10:58]json parsed OK: [21:10:58]protocol is kg_v1.0 [21:10:58]action value=close_receipt [21:10:58]process_action close_receipt [21:10:58]cmd_close_receipt [21:10:58]MH_GetDate [21:10:58]Write to MH i2c: F0 00 00 E0 0D DC [21:10:58]Write i2c OK [21:10:58]MH_I2C_Read... [21:10:58]Read from MH i2c: F0 [21:10:58]MH_I2C_Read... [21:10:58]Read from MH i2c: F0 09 00 [21:10:58]MH_I2C_Read... [21:10:58]Read from MH i2c: F0 09 00 E0 0D 00 64 EC 75 66 BD 8F 7C 64 3C [21:10:58]GetLastDocTimeStamp 1719004210 [21:10:58]current date 1719004260 [21:10:58]FM_GetShiftState [21:10:58]SAM_PROTO_GetShiftState [21:10:58]wFMCommunicate request_size=4 [21:10:58]MH_SAM_APDU [21:10:58]CAPDU: 80 13 01 00 [21:10:58]Write to MH i2c: E2 08 00 E1 0D 80 13 01 00 00 00 00 00 6B [21:10:58]Write i2c OK [21:10:58]MH_I2C_Read... [21:10:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:10:58]Read from MH i2c: E2 [21:10:58]MH_I2C_Read... [21:10:58]Read from MH i2c: E2 0E 00 [21:10:58]MH_I2C_Read... [21:10:58]Read from MH i2c: E2 0E 00 E1 0D 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 7E [21:10:58]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [21:10:58]wFMCommunicate OK [21:10:58]SAM_PROTO_GetShiftState done [21:10:58]FM_GetShiftState done [21:10:58]opened in 1718929509 [21:10:58]opened+sec_in_day 1719015909 [21:10:58]quantity*price = 150064 [21:10:58]sum+1 = 150065 [21:10:58]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 СНО: Общий режим Чек 158 21.06.2024 21:11 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104235 ФПД: 245468432336687 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T211100&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104235&fm=245468432336687&tin=02508201610067®Number=0000000000092785&sum=150000 [21:10:59]StoreToDocumentArchive [21:10:59]shift 355 fd 104235 [21:10:59]save to /storage/0355/doc_00104235 [21:10:59]save last doc name /storage/0355/doc_00104235 to /storage/kkm_last_doc_name [21:10:59]save OK [21:10:59]Clear old archive folders... [21:10:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:10:59]tlvbuf is 00642200 [21:10:59]SAM_PROTO_ClearQueue [21:10:59]wFMCommunicate request_size=4 [21:10:59]MH_SAM_APDU [21:10:59]CAPDU: 80 09 00 00 [21:10:59]Write to MH i2c: E2 08 00 EE 0D 80 09 00 00 00 00 00 00 6D [21:10:59]Write i2c OK [21:10:59]MH_I2C_Read... [21:10:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:10:59]Read from MH i2c: E2 [21:10:59]MH_I2C_Read... [21:10:59]Read from MH i2c: E2 03 00 [21:10:59]MH_I2C_Read... [21:10:59]Read from MH i2c: E2 03 00 EE 0D 00 90 00 6F [21:10:59]RAPDU: 90 00 [21:10:59]wFMCommunicate OK [21:10:59]SAM_PROTO_ClearQueue done [21:10:59]KKMCreateOFDPacket [21:10:59]OFDProtocolAddRootSTLVToBuf [21:10:59]FM_MakeSignedData [21:10:59]FM_MakeSignedData [21:10:59]SAM_PROTO_SignData [21:10:59]wFMCommunicate request_size=4 [21:10:59]MH_SAM_APDU [21:10:59]CAPDU: 80 0D 01 02 [21:10:59]Write to MH i2c: E2 08 00 EF 0D 80 0D 01 02 00 00 00 00 75 [21:10:59]Write i2c OK [21:10:59]MH_I2C_Read... [21:10:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:10:59]Read from MH i2c: E2 [21:10:59]MH_I2C_Read... [21:10:59]Read from MH i2c: E2 03 00 [21:10:59]MH_I2C_Read... [21:10:59]Read from MH i2c: E2 03 00 EF 0D 00 90 00 70 [21:10:59]RAPDU: 90 00 [21:10:59]wFMCommunicate OK [21:10:59]wFMCommunicate request_size=255 [21:10:59]MH_SAM_APDU [21:10: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 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 9E 00 00 00 F4 03 04 00 64 EC 75 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 2B 97 01 00 35 04 06 00 DF [21:10:59]Write to MH i2c: E2 02 01 F0 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 9E 00 00 00 F4 03 04 00 64 EC 75 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 2B 97 01 00 35 04 06 00 DF 00 00 A2 [21:10:59]Write i2c OK [21:10:59]MH_I2C_Read... [21:11:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:11:00]Read from MH i2c: E2 [21:11:00]MH_I2C_Read... [21:11:00]Read from MH i2c: E2 03 00 [21:11:00]MH_I2C_Read... [21:11:00]Read from MH i2c: E2 03 00 F0 0D 00 90 00 71 [21:11:00]RAPDU: 90 00 [21:11:00]wFMCommunicate OK [21:11:00]wFMCommunicate request_size=10 [21:11:00]MH_SAM_APDU [21:11:00]CAPDU: 80 0D 02 02 05 40 92 B6 87 2F [21:11:00]Write to MH i2c: E2 0D 00 F1 0D 80 0D 02 02 05 00 40 92 B6 87 2F 00 00 C0 [21:11:00]Write i2c OK [21:11:00]MH_I2C_Read... [21:11:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:11:00]Read from MH i2c: E2 [21:11:00]MH_I2C_Read... [21:11:00]Read from MH i2c: E2 03 00 [21:11:00]MH_I2C_Read... [21:11:00]Read from MH i2c: E2 03 00 F1 0D 00 90 00 72 [21:11:00]RAPDU: 90 00 [21:11:00]wFMCommunicate OK [21:11:00]wFMCommunicate request_size=4 [21:11:00]MH_SAM_APDU [21:11:00]CAPDU: 80 0D 03 02 [21:11:00]Write to MH i2c: E2 08 00 F2 0D 80 0D 03 02 00 00 00 00 7A [21:11:00]Write i2c OK [21:11:00]MH_I2C_Read... [21:11:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:11:00]Read from MH i2c: E2 [21:11:00]MH_I2C_Read... [21:11:00]Read from MH i2c: E2 0B 00 [21:11:00]MH_I2C_Read... [21:11:00]Read from MH i2c: E2 0B 00 F2 0D 00 4D 12 1C EA 26 D3 66 31 90 00 70 [21:11:00]RAPDU: 4D 12 1C EA 26 D3 66 31 90 00 [21:11:00]wFMCommunicate OK [21:11:00]SAM_PROTO_SignData done [21:11:00]FM_MakeSignedData done [21:11:00]CreateOFDProtocolMessage [21:11:00]wFMCommunicate request_size=4 [21:11:00]MH_SAM_APDU [21:11:00]CAPDU: 80 11 00 00 [21:11:00]Write to MH i2c: E2 08 00 F3 0D 80 11 00 00 00 00 00 00 7A [21:11:00]Write i2c OK [21:11:00]MH_I2C_Read... [21:11:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:11:00]Read from MH i2c: E2 [21:11:00]MH_I2C_Read... [21:11:00]Read from MH i2c: E2 17 00 [21:11:00]MH_I2C_Read... [21:11:00]Read from MH i2c: E2 17 00 F3 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 CD [21:11: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:11:00]wFMCommunicate OK [21:11:00]CreateOFDProtocolMessage done [21:11:00]OFDSenderStorePacket 104235 [21:11:00]StoreOFDPacket docnum=104235 [21:11: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 0F 01 00 00 FF C6 07 01 A1 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 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 9E 00 00 00 F4 03 04 00 64 EC 75 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 2B 97 01 00 35 04 06 00 DF 40 92 B6 87 2F 4D 12 1C EA 26 D3 66 31 [21:11:00]CheckFolder [21:11:00]dirname=/storage/ofd_packets [21:11:00]CheckFolder done [21:11:00]ProducePacketName [21:11:00]name=ofd_packets/00104235 [21:11:00]NVStorageSaveData ofd_packets/00104235 [21:11:00]File name is /storage/ofd_packets/00104235 [21:11:00]Write 301 bytes [21:11:00]NVStorageSaveData done [21:11:00]OFDSenderStorePacket done [21:11:00]KKMCreateOFDPacket done [21:11:00]NVStorageSaveData kkm_last_timestamp [21:11:00]File name is /storage/kkm_last_timestamp [21:11:00]Write 4 bytes [21:11:00]NVStorageSaveData done [21:11:00]ExternCall_PrintAddStr [21:11:00]wPrintStart [21:11:00]Write to MH i2c: 01 00 00 F4 0D 01 [21:11:00]Write i2c OK [21:11:00]MH_I2C_Read... [21:11:00]Read from MH i2c: 01 [21:11:00]MH_I2C_Read... [21:11:00]Read from MH i2c: 01 07 00 [21:11:00]MH_I2C_Read... [21:11:00]Read from MH i2c: 01 07 00 F4 0D 00 00 00 00 00 FF 0F 16 [21:11:00]RasterBufferAndPrint [21:11:00]line Счет N : (1)673717 [21:11:00]line ИНН: 02508201610067 [21:11:00]line Контрольно-Кассовый Чек [21:11:00]line ПРОДАЖА [21:11:00]line ТРК (МРК, ГНК) : 42 [21:11:00]line Товар: 2710124130 [21:11:00]line Аи-92-К-5 [21:11:00]line 22.600 * 66.40 [21:11:00]line = 1500.64 [21:11:00]line НДС 12% НСП 1% [21:11:00]line > о реализуемом товаре [21:11:00]line ОКРУГЛЕНИЕ: -0.64 [21:11:00]line ИТОГО: 1500.00 [21:11:00]line Внесено: 1500.00 [21:11:00]line СДАЧА: 0.00 [21:11:00]line НСП 1% : 13.28 [21:11:00]line НДС 12% : 159.36 [21:11:00]line Наличными: 1500.00 [21:11:00]line Безнал.: 0.00 [21:11:00]line Место: АЗС № 120 "Партнер Нефть" [21:11:00]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [21:11:00]line СНО: Общий режим [21:11:00]line Чек 158 21.06.2024 21:11 [21:11:00]line Смена: 355 ФФД: 1.0 [21:11:00]line ЗНМ: 0300000164 [21:11:00]line РНМ: 0000000000092785 [21:11:00]line Версия ККМ: 001 [21:11:00]line ФМ: 0000000000875093 [21:11:00]line ФД: 104235 [21:11:00]line ФПД: 245468432336687 [21:11:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T211100&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104235&fm=245468432336687&tin=02508201610067®Number=0000000000092785&sum=150000 [21:11:00]OFD Sender: Processing packet 104235 [packets to send 17, broken 16] [21:11:00]ProducePacketName [21:11:00]name=ofd_packets/00104235 [21:11:00]OFD Sender: To server: pG, [21:11:00]CommunicateWithHost lk.salyk.kg:30040 [21:11:00]ConnectInit lk.salyk.kg [21:11:00]written 0, free lines is 4095 [21:11:00]Connected sock=10 [21:11: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 FF C6 07 01 A1 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 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 9E 00 00 00 F4 03 04 00 64 EC 75 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 2B 97 01 00 35 04 06 00 DF 40 92 B6 87 2F 4D 12 1C EA 26 D3 66 31 [21:11: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 A8 B5 47 00 31 36 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 2B 97 01 00 F4 03 04 00 E5 92 75 66 B6 04 01 00 00 42 19 67 60 AE FD EB 7B [21:11:01]CommunicateWithHost err = 0 [21:11:01]CheckOFDResponse [21:11:01]1017 (14) - 77093643461234 [21:11:01]1041 (16) - 0000000000875093 [21:11:01]1040 (4) - 104235 [21:11:01]1012 (4) - 21.06.2024 14:49 [21:11:01]1206 (1) - 0 [21:11:01]OFD Sender: Remove packet 104235 [21:11:01]ProducePacketName [21:11:01]name=ofd_packets/00104235 [21:11:01]NVStorageDeleteData [21:11:01]Write to MH i2c: 01 00 00 1F 0E 2D [21:11:01]Write i2c OK [21:11:01]MH_I2C_Read... [21:11:01]Read from MH i2c: 01 [21:11:01]MH_I2C_Read... [21:11:01]Read from MH i2c: 01 07 00 [21:11:01]MH_I2C_Read... [21:11:01]Read from MH i2c: 01 07 00 1F 0E 00 00 00 00 00 EB 0C 2B [21:11:01]RasterBufferAndPrint [21:11:01]line [21:11:01]line [21:11:01]line [21:11:01]line [21:11:01]line [21:11:01]written 0, free lines is 3313 [21:11:01]MH_Cut [21:11:01]Write to MH i2c: D1 01 00 26 0E 01 06 [21:11:01]Write i2c OK [21:11:01]MH_I2C_Read... [21:11:01]Read from MH i2c: D1 [21:11:01]MH_I2C_Read... [21:11:01]Read from MH i2c: D1 01 00 [21:11:01]MH_I2C_Read... [21:11:01]Read from MH i2c: D1 01 00 26 0E 00 05 [21:11:01]Write to MH i2c: 01 00 00 27 0E 35 [21:11:01]Write i2c OK [21:11:01]MH_I2C_Read... [21:11:01]OFD Sender: No OFD packet to send [21:11:01]*** Cut start [21:11:01]*** Partial cut [21:11:01]*** CUTSNS_PIN = 1 [21:11:01]*** CUTSNS_PIN = 0 [21:11:02]*** Brake cut motor [21:11:02]Read from MH i2c: 01 [21:11:02]MH_I2C_Read... [21:11:02]*** Stop cut motor [21:11:02]*** Cut end [21:11:02]Read from MH i2c: 01 07 00 [21:11:02]MH_I2C_Read... [21:11:02]Read from MH i2c: 01 07 00 27 0E 00 00 00 00 00 FF 0F 4A [21:11:02]process_action close_receipt done [21:11:02]requested_data is exist [21:11:02]produce_requested_data [21:11:02]requested_item fm.sn is exist - process it [21:11:02]wFMCommunicate request_size=4 [21:11:02]MH_SAM_APDU [21:11:02]CAPDU: 80 11 00 00 [21:11:02]Write to MH i2c: E2 08 00 28 0E 80 11 00 00 00 00 00 00 B0 [21:11:02]Write i2c OK [21:11:02]MH_I2C_Read... [21:11:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:11:02]Read from MH i2c: E2 [21:11:02]MH_I2C_Read... [21:11:02]Read from MH i2c: E2 17 00 [21:11:02]MH_I2C_Read... [21:11:02]Read from MH i2c: E2 17 00 28 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 03 [21:11: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:11:02]wFMCommunicate OK [21:11:02]requested_item fd.num is exist - process it [21:11:02]SAM_PROTO_GetFieldsCounters [21:11:02]wFMCommunicate request_size=4 [21:11:02]MH_SAM_APDU [21:11:02]CAPDU: 80 13 00 00 [21:11:02]Write to MH i2c: E2 08 00 29 0E 80 13 00 00 00 00 00 00 B3 [21:11:02]Write i2c OK [21:11:02]MH_I2C_Read... [21:11:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:11:02]Read from MH i2c: E2 [21:11:02]MH_I2C_Read... [21:11:02]Read from MH i2c: E2 62 00 [21:11:02]MH_I2C_Read... [21:11:02]Read from MH i2c: E2 62 00 29 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 2B 97 01 00 0E 04 04 00 63 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 DB [21:11: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 2B 97 01 00 0E 04 04 00 63 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 [21:11:02]wFMCommunicate OK [21:11:02]SAM_PROTO_GetFieldsCounters done [21:11:02]requested_item shift.num is exist - process it [21:11:02]requested_item shift.opened is exist - process it [21:11:02]req_shift_opened [21:11:02]FM_GetShiftState [21:11:02]SAM_PROTO_GetShiftState [21:11:02]wFMCommunicate request_size=4 [21:11:02]MH_SAM_APDU [21:11:02]CAPDU: 80 13 01 00 [21:11:02]Write to MH i2c: E2 08 00 2A 0E 80 13 01 00 00 00 00 00 B5 [21:11:02]Write i2c OK [21:11:02]MH_I2C_Read... [21:11:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:11:02]Read from MH i2c: E2 [21:11:02]MH_I2C_Read... [21:11:02]Read from MH i2c: E2 0E 00 [21:11:02]MH_I2C_Read... [21:11:02]Read from MH i2c: E2 0E 00 2A 0E 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 C8 [21:11:02]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [21:11:02]wFMCommunicate OK [21:11:02]SAM_PROTO_GetShiftState done [21:11:02]FM_GetShiftState done [21:11:02]req_shift_opened done [21:11:02]requested_item shift.open_date is exist - process it [21:11:02]req_shift_open_date [21:11:02]req_shift_open_date done [21:11:02]produce_requested_data done [21:11:02]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104235,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [21:11:02]process_action_free close_receipt [21:11:02]json_value_free [21:11:02]json_value_free done [21:11:02]process_json_proto returns [21:11:02]Send response to host [21:11:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104235,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [21:11:02]free response buf [21:11:02]execute_script done [21:11:02]execute_script returns [21:11:02]free content buf [21:11:02]Sock 7.Close socket [21:11:02]Sock 7.Thread stoped [21:11:06]OFD Sender: No OFD packet to send [21:11:11]OFD Sender: No OFD packet to send [21:11:16]OFD Sender: No OFD packet to send [21:11:21]OFD Sender: No OFD packet to send [21:11:26]OFD Sender: No OFD packet to send [21:11:31]OFD Sender: No OFD packet to send [21:11:36]OFD Sender: No OFD packet to send [21:11:41]OFD Sender: No OFD packet to send [21:11:46]OFD Sender: No OFD packet to send [21:11:51]OFD Sender: No OFD packet to send [21:11:56]OFD Sender: No OFD packet to send [21:12:01]OFD Sender: No OFD packet to send [21:12:06]OFD Sender: No OFD packet to send [21:12:11]OFD Sender: No OFD packet to send [21:12:16]OFD Sender: No OFD packet to send [21:12:21]OFD Sender: No OFD packet to send [21:12:26]OFD Sender: No OFD packet to send [21:12:31]accept exits with 9 [21:12:31]New connection [21:12:31]New thread 3067473252 created [21:12:31]Thread 3067616612 joined [21:12:31]Waiting for new connection... [21:12:31] Sock 9.Parse request [21:12:31]Sock 9.Check first char [21:12:31]Sock 9.First char is OK [21:12:31]request: POST /json_proto HTTP/1.0 [21:12:31]Method: POST [21:12:31]URL: /json_proto [21:12:31]Method is POST - this is cgi request [21:12:31]url: /json_proto [21:12:31]query_string will be loaded in cgi processing [21:12:31]execute_cgi json_proto POST (null) [21:12:31]execute_cgi path=json_proto method=POST [21:12:31]POST find Content-Length [21:12:31]Host: 172.17.38.133:8080 [21:12:31]Content-Length: 677 [21:12:31]Content-Type: application/json [21:12:31] [21:12:31]POST finish read [21:12:31]Found Content-Length = 677 [21:12:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673718", "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:12:31]execute_script... [21:12: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)673718", "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:12:31]POST & json_proto [21:12:31]process_json_proto [21:12:31]json parsed OK: [21:12:31]protocol is kg_v1.0 [21:12:31]action value=close_receipt [21:12:31]process_action close_receipt [21:12:31]cmd_close_receipt [21:12:31]MH_GetDate [21:12:31]Write to MH i2c: F0 00 00 2B 0E 28 [21:12:31]Write i2c OK [21:12:31]MH_I2C_Read... [21:12:31]Read from MH i2c: F0 [21:12:31]MH_I2C_Read... [21:12:31]Read from MH i2c: F0 09 00 [21:12:31]MH_I2C_Read... [21:12:31]Read from MH i2c: F0 09 00 2B 0E 00 C0 EC 75 66 BD 8F 7C 64 E4 [21:12:31]GetLastDocTimeStamp 1719004260 [21:12:31]current date 1719004352 [21:12:31]FM_GetShiftState [21:12:31]SAM_PROTO_GetShiftState [21:12:31]wFMCommunicate request_size=4 [21:12:31]MH_SAM_APDU [21:12:31]CAPDU: 80 13 01 00 [21:12:31]Write to MH i2c: E2 08 00 2C 0E 80 13 01 00 00 00 00 00 B7 [21:12:31]Write i2c OK [21:12:31]MH_I2C_Read... [21:12:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:12:31]Read from MH i2c: E2 [21:12:31]MH_I2C_Read... [21:12:31]Read from MH i2c: E2 0E 00 [21:12:31]MH_I2C_Read... [21:12:31]Read from MH i2c: E2 0E 00 2C 0E 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 CA [21:12:31]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [21:12:31]wFMCommunicate OK [21:12:31]SAM_PROTO_GetShiftState done [21:12:31]FM_GetShiftState done [21:12:31]opened in 1718929509 [21:12:31]opened+sec_in_day 1719015909 [21:12:31]quantity*price = 50065 [21:12:31]sum+1 = 50067 [21:12: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 СНО: Общий режим Чек 159 21.06.2024 21:12 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104236 ФПД: 102770261739629 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T211232&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104236&fm=102770261739629&tin=02508201610067®Number=0000000000092785&sum=50000 [21:12:32]StoreToDocumentArchive [21:12:32]shift 355 fd 104236 [21:12:32]save to /storage/0355/doc_00104236 [21:12:32]save last doc name /storage/0355/doc_00104236 to /storage/kkm_last_doc_name [21:12:32]save OK [21:12:32]Clear old archive folders... [21:12:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:12:32]tlvbuf is 006A1C00 [21:12:32]SAM_PROTO_ClearQueue [21:12:32]wFMCommunicate request_size=4 [21:12:32]MH_SAM_APDU [21:12:32]CAPDU: 80 09 00 00 [21:12:32]Write to MH i2c: E2 08 00 39 0E 80 09 00 00 00 00 00 00 B9 [21:12:32]Write i2c OK [21:12:32]MH_I2C_Read... [21:12:32]Read from MH i2c: E2 [21:12:32]MH_I2C_Read... [21:12:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:12:32]Read from MH i2c: E2 03 00 [21:12:32]MH_I2C_Read... [21:12:32]Read from MH i2c: E2 03 00 39 0E 00 90 00 BB [21:12:32]RAPDU: 90 00 [21:12:32]wFMCommunicate OK [21:12:32]SAM_PROTO_ClearQueue done [21:12:32]KKMCreateOFDPacket [21:12:32]OFDProtocolAddRootSTLVToBuf [21:12:32]FM_MakeSignedData [21:12:32]FM_MakeSignedData [21:12:32]SAM_PROTO_SignData [21:12:32]wFMCommunicate request_size=4 [21:12:32]MH_SAM_APDU [21:12:32]CAPDU: 80 0D 01 02 [21:12:32]Write to MH i2c: E2 08 00 3A 0E 80 0D 01 02 00 00 00 00 C1 [21:12:32]Write i2c OK [21:12:32]MH_I2C_Read... [21:12:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:12:32]Read from MH i2c: E2 [21:12:32]MH_I2C_Read... [21:12:32]Read from MH i2c: E2 03 00 [21:12:32]MH_I2C_Read... [21:12:32]Read from MH i2c: E2 03 00 3A 0E 00 90 00 BC [21:12:32]RAPDU: 90 00 [21:12:32]wFMCommunicate OK [21:12:32]wFMCommunicate request_size=255 [21:12:32]MH_SAM_APDU [21:12: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 9F 00 00 00 F4 03 04 00 C0 EC 75 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 2C 97 01 00 35 04 06 00 5D [21:12:32]Write to MH i2c: E2 02 01 3B 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 9F 00 00 00 F4 03 04 00 C0 EC 75 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 2C 97 01 00 35 04 06 00 5D 00 00 26 [21:12:32]Write i2c OK [21:12:32]MH_I2C_Read... [21:12:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:12:32]Read from MH i2c: E2 [21:12:32]MH_I2C_Read... [21:12:32]Read from MH i2c: E2 03 00 [21:12:32]MH_I2C_Read... [21:12:32]Read from MH i2c: E2 03 00 3B 0E 00 90 00 BD [21:12:32]RAPDU: 90 00 [21:12:32]wFMCommunicate OK [21:12:32]wFMCommunicate request_size=10 [21:12:32]MH_SAM_APDU [21:12:32]CAPDU: 80 0D 02 02 05 78 10 F1 C8 6D [21:12:32]Write to MH i2c: E2 0D 00 3C 0E 80 0D 02 02 05 00 78 10 F1 C8 6D 00 00 7C [21:12:32]Write i2c OK [21:12:32]MH_I2C_Read... [21:12:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:12:32]Read from MH i2c: E2 [21:12:32]MH_I2C_Read... [21:12:32]Read from MH i2c: E2 03 00 [21:12:32]MH_I2C_Read... [21:12:32]Read from MH i2c: E2 03 00 3C 0E 00 90 00 BE [21:12:32]RAPDU: 90 00 [21:12:32]wFMCommunicate OK [21:12:32]wFMCommunicate request_size=4 [21:12:32]MH_SAM_APDU [21:12:32]CAPDU: 80 0D 03 02 [21:12:32]Write to MH i2c: E2 08 00 3D 0E 80 0D 03 02 00 00 00 00 C6 [21:12:32]Write i2c OK [21:12:32]MH_I2C_Read... [21:12:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:12:32]Read from MH i2c: E2 [21:12:32]MH_I2C_Read... [21:12:32]Read from MH i2c: E2 0B 00 [21:12:32]MH_I2C_Read... [21:12:32]Read from MH i2c: E2 0B 00 3D 0E 00 19 76 EB 16 20 73 C6 E6 90 00 96 [21:12:32]RAPDU: 19 76 EB 16 20 73 C6 E6 90 00 [21:12:32]wFMCommunicate OK [21:12:32]SAM_PROTO_SignData done [21:12:32]FM_MakeSignedData done [21:12:32]CreateOFDProtocolMessage [21:12:32]wFMCommunicate request_size=4 [21:12:32]MH_SAM_APDU [21:12:32]CAPDU: 80 11 00 00 [21:12:32]Write to MH i2c: E2 08 00 3E 0E 80 11 00 00 00 00 00 00 C6 [21:12:32]Write i2c OK [21:12:32]MH_I2C_Read... [21:12:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:12:33]Read from MH i2c: E2 [21:12:33]MH_I2C_Read... [21:12:33]Read from MH i2c: E2 17 00 [21:12:33]MH_I2C_Read... [21:12:33]Read from MH i2c: E2 17 00 3E 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 19 [21:12:33]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:33]wFMCommunicate OK [21:12:33]CreateOFDProtocolMessage done [21:12:33]OFDSenderStorePacket 104236 [21:12:33]StoreOFDPacket docnum=104236 [21:12: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 DE B4 07 01 60 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 9F 00 00 00 F4 03 04 00 C0 EC 75 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 2C 97 01 00 35 04 06 00 5D 78 10 F1 C8 6D 19 76 EB 16 20 73 C6 E6 [21:12:33]CheckFolder [21:12:33]dirname=/storage/ofd_packets [21:12:33]CheckFolder done [21:12:33]ProducePacketName [21:12:33]name=ofd_packets/00104236 [21:12:33]NVStorageSaveData ofd_packets/00104236 [21:12:33]File name is /storage/ofd_packets/00104236 [21:12:33]Write 301 bytes [21:12:33]NVStorageSaveData done [21:12:33]OFDSenderStorePacket done [21:12:33]KKMCreateOFDPacket done [21:12:33]NVStorageSaveData kkm_last_timestamp [21:12:33]File name is /storage/kkm_last_timestamp [21:12:33]Write 4 bytes [21:12:33]NVStorageSaveData done [21:12:33]ExternCall_PrintAddStr [21:12:33]wPrintStart [21:12:33]Write to MH i2c: 01 00 00 3F 0E 4D [21:12:33]Write i2c OK [21:12:33]MH_I2C_Read... [21:12:33]Read from MH i2c: 01 [21:12:33]MH_I2C_Read... [21:12:33]Read from MH i2c: 01 07 00 [21:12:33]MH_I2C_Read... [21:12:33]Read from MH i2c: 01 07 00 3F 0E 00 00 00 00 00 FF 0F 62 [21:12:33]RasterBufferAndPrint [21:12:33]line Счет N : (1)673718 [21:12:33]line ИНН: 02508201610067 [21:12:33]line Контрольно-Кассовый Чек [21:12:33]line ПРОДАЖА [21:12:33]line ТРК (МРК, ГНК) : 32 [21:12:33]line Товар: 2710124130 [21:12:33]line Аи-92-К-5 [21:12:33]line 7.540 * 66.40 [21:12:33]line = 500.66 [21:12:33]line НДС 12% НСП 1% [21:12:33]line > о реализуемом товаре [21:12:33]line ОКРУГЛЕНИЕ: -0.66 [21:12:33]line ИТОГО: 500.00 [21:12:33]line Внесено: 500.00 [21:12:33]line СДАЧА: 0.00 [21:12:33]line НСП 1% : 4.43 [21:12:33]line НДС 12% : 53.17 [21:12:33]line Наличными: 500.00 [21:12:33]line Безнал.: 0.00 [21:12:33]line Место: АЗС № 120 "Партнер Нефть" [21:12:33]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [21:12:33]line СНО: Общий режим [21:12:33]line Чек 159 21.06.2024 21:12 [21:12:33]line Смена: 355 ФФД: 1.0 [21:12:33]line ЗНМ: 0300000164 [21:12:33]line РНМ: 0000000000092785 [21:12:33]line Версия ККМ: 001 [21:12:33]line ФМ: 0000000000875093 [21:12:33]line ФД: 104236 [21:12:33]line ФПД: 102770261739629 [21:12:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T211232&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104236&fm=102770261739629&tin=02508201610067®Number=0000000000092785&sum=50000 [21:12:33]OFD Sender: Processing packet 104236 [packets to send 17, broken 16] [21:12:33]ProducePacketName [21:12:33]name=ofd_packets/00104236 [21:12:33]OFD Sender: To server: pG, [21:12:33]CommunicateWithHost lk.salyk.kg:30040 [21:12:33]ConnectInit lk.salyk.kg [21:12:33]written 0, free lines is 4095 [21:12:33]Connected sock=10 [21:12: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 DE B4 07 01 60 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 9F 00 00 00 F4 03 04 00 C0 EC 75 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 2C 97 01 00 35 04 06 00 5D 78 10 F1 C8 6D 19 76 EB 16 20 73 C6 E6 [21:12: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 DE 5A 47 00 41 79 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 2C 97 01 00 F4 03 04 00 42 93 75 66 B6 04 01 00 00 49 AD 5F 08 D7 D6 B5 42 [21:12:33]CommunicateWithHost err = 0 [21:12:33]CheckOFDResponse [21:12:33]1017 (14) - 77093643461234 [21:12:33]1041 (16) - 0000000000875093 [21:12:33]1040 (4) - 104236 [21:12:33]1012 (4) - 21.06.2024 14:50 [21:12:33]1206 (1) - 0 [21:12:33]OFD Sender: Remove packet 104236 [21:12:33]ProducePacketName [21:12:33]name=ofd_packets/00104236 [21:12:33]NVStorageDeleteData [21:12:33]Write to MH i2c: 01 00 00 6A 0E 78 [21:12:33]Write i2c OK [21:12:33]MH_I2C_Read... [21:12:33]Read from MH i2c: 01 [21:12:33]MH_I2C_Read... [21:12:33]Read from MH i2c: 01 07 00 [21:12:33]MH_I2C_Read... [21:12:33]Read from MH i2c: 01 07 00 6A 0E 00 00 00 00 00 E1 0C 6C [21:12:33]RasterBufferAndPrint [21:12:33]line [21:12:33]line [21:12:33]line [21:12:33]line [21:12:33]line [21:12:33]written 0, free lines is 3303 [21:12:33]MH_Cut [21:12:33]Write to MH i2c: D1 01 00 71 0E 01 51 [21:12:33]Write i2c OK [21:12:33]MH_I2C_Read... [21:12:33]Read from MH i2c: D1 [21:12:33]MH_I2C_Read... [21:12:33]Read from MH i2c: D1 01 00 [21:12:33]MH_I2C_Read... [21:12:33]Read from MH i2c: D1 01 00 71 0E 00 50 [21:12:33]Write to MH i2c: 01 00 00 72 0E 80 [21:12:33]Write i2c OK [21:12:33]MH_I2C_Read... [21:12:34]OFD Sender: No OFD packet to send [21:12:34]*** Cut start [21:12:34]*** Partial cut [21:12:34]*** CUTSNS_PIN = 1 [21:12:34]*** CUTSNS_PIN = 0 [21:12:34]*** Brake cut motor [21:12:35]Read from MH i2c: 01 [21:12:35]MH_I2C_Read... [21:12:35]*** Stop cut motor [21:12:35]*** Cut end [21:12:35]Read from MH i2c: 01 07 00 [21:12:35]MH_I2C_Read... [21:12:35]Read from MH i2c: 01 07 00 72 0E 00 00 00 00 00 FF 0F 95 [21:12:35]process_action close_receipt done [21:12:35]requested_data is exist [21:12:35]produce_requested_data [21:12:35]requested_item fm.sn is exist - process it [21:12:35]wFMCommunicate request_size=4 [21:12:35]MH_SAM_APDU [21:12:35]CAPDU: 80 11 00 00 [21:12:35]Write to MH i2c: E2 08 00 73 0E 80 11 00 00 00 00 00 00 FB [21:12:35]Write i2c OK [21:12:35]MH_I2C_Read... [21:12:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:12:35]Read from MH i2c: E2 [21:12:35]MH_I2C_Read... [21:12:35]Read from MH i2c: E2 17 00 [21:12:35]MH_I2C_Read... [21:12:35]Read from MH i2c: E2 17 00 73 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 4E [21:12:35]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:35]wFMCommunicate OK [21:12:35]requested_item fd.num is exist - process it [21:12:35]SAM_PROTO_GetFieldsCounters [21:12:35]wFMCommunicate request_size=4 [21:12:35]MH_SAM_APDU [21:12:35]CAPDU: 80 13 00 00 [21:12:35]Write to MH i2c: E2 08 00 74 0E 80 13 00 00 00 00 00 00 FE [21:12:35]Write i2c OK [21:12:35]MH_I2C_Read... [21:12:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:12:35]Read from MH i2c: E2 [21:12:35]MH_I2C_Read... [21:12:35]Read from MH i2c: E2 62 00 [21:12:35]MH_I2C_Read... [21:12:35]Read from MH i2c: E2 62 00 74 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 2C 97 01 00 0E 04 04 00 63 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 2A [21:12: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 2C 97 01 00 0E 04 04 00 63 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 [21:12:35]wFMCommunicate OK [21:12:35]SAM_PROTO_GetFieldsCounters done [21:12:35]requested_item shift.num is exist - process it [21:12:35]requested_item shift.opened is exist - process it [21:12:35]req_shift_opened [21:12:35]FM_GetShiftState [21:12:35]SAM_PROTO_GetShiftState [21:12:35]wFMCommunicate request_size=4 [21:12:35]MH_SAM_APDU [21:12:35]CAPDU: 80 13 01 00 [21:12:35]Write to MH i2c: E2 08 00 75 0E 80 13 01 00 00 00 00 00 00 [21:12:35]Write i2c OK [21:12:35]MH_I2C_Read... [21:12:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:12:35]Read from MH i2c: E2 [21:12:35]MH_I2C_Read... [21:12:35]Read from MH i2c: E2 0E 00 [21:12:35]MH_I2C_Read... [21:12:35]Read from MH i2c: E2 0E 00 75 0E 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 13 [21:12:35]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [21:12:35]wFMCommunicate OK [21:12:35]SAM_PROTO_GetShiftState done [21:12:35]FM_GetShiftState done [21:12:35]req_shift_opened done [21:12:35]requested_item shift.open_date is exist - process it [21:12:35]req_shift_open_date [21:12:35]req_shift_open_date done [21:12:35]produce_requested_data done [21:12:35]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104236,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [21:12:35]process_action_free close_receipt [21:12:35]json_value_free [21:12:35]json_value_free done [21:12:35]process_json_proto returns [21:12:35]Send response to host [21:12:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104236,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [21:12:35]free response buf [21:12:35]execute_script done [21:12:35]execute_script returns [21:12:35]free content buf [21:12:35]Sock 9.Close socket [21:12:35]Sock 9.Thread stoped [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:51]accept exits with 7 [21:13:51]New connection [21:13:51]New thread 3067616612 created [21:13:51]Thread 3067473252 joined [21:13:51]Waiting for new connection... [21:13:51] Sock 7.Parse request [21:13:51]Sock 7.Check first char [21:13:51]Sock 7.First char is OK [21:13:51]request: POST /json_proto HTTP/1.0 [21:13:51]Method: POST [21:13:51]URL: /json_proto [21:13:51]Method is POST - this is cgi request [21:13:51]url: /json_proto [21:13:51]query_string will be loaded in cgi processing [21:13:51]execute_cgi json_proto POST (null) [21:13:51]execute_cgi path=json_proto method=POST [21:13:51]POST find Content-Length [21:13:51]Host: 172.17.38.133:8080 [21:13:51]Content-Length: 682 [21:13:51]Content-Type: application/json [21:13:51] [21:13:51]POST finish read [21:13:51]Found Content-Length = 682 [21:13:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673719", "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" ] } } [21:13:51]execute_script... [21:13: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)673719", "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" ] } } [21:13:51]POST & json_proto [21:13:51]process_json_proto [21:13:51]json parsed OK: [21:13:51]protocol is kg_v1.0 [21:13:51]action value=close_receipt [21:13:51]process_action close_receipt [21:13:51]cmd_close_receipt [21:13:51]MH_GetDate [21:13:51]Write to MH i2c: F0 00 00 76 0E 73 [21:13:51]Write i2c OK [21:13:51]MH_I2C_Read... [21:13:51]Read from MH i2c: F0 [21:13:51]MH_I2C_Read... [21:13:51]Read from MH i2c: F0 09 00 [21:13:51]MH_I2C_Read... [21:13:51]Read from MH i2c: F0 09 00 76 0E 00 10 ED 75 66 BD 8F 7C 64 80 [21:13:51]GetLastDocTimeStamp 1719004352 [21:13:51]current date 1719004432 [21:13:51]FM_GetShiftState [21:13:51]SAM_PROTO_GetShiftState [21:13:51]wFMCommunicate request_size=4 [21:13:51]MH_SAM_APDU [21:13:51]CAPDU: 80 13 01 00 [21:13:51]Write to MH i2c: E2 08 00 77 0E 80 13 01 00 00 00 00 00 02 [21:13:51]Write i2c OK [21:13:51]MH_I2C_Read... [21:13:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:13:51]Read from MH i2c: E2 [21:13:51]MH_I2C_Read... [21:13:51]Read from MH i2c: E2 0E 00 [21:13:51]MH_I2C_Read... [21:13:51]Read from MH i2c: E2 0E 00 77 0E 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 15 [21:13:51]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [21:13:51]wFMCommunicate OK [21:13:51]SAM_PROTO_GetShiftState done [21:13:51]FM_GetShiftState done [21:13:51]opened in 1718929509 [21:13:51]opened+sec_in_day 1719015909 [21:13:51]quantity*price = 150064 [21:13:51]sum+1 = 150065 [21:13:51]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 СНО: Общий режим Чек 160 21.06.2024 21:13 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104237 ФПД: 268491444398775 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T211352&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104237&fm=268491444398775&tin=02508201610067®Number=0000000000092785&sum=150000 [21:13:52]StoreToDocumentArchive [21:13:52]shift 355 fd 104237 [21:13:52]save to /storage/0355/doc_00104237 [21:13:52]save last doc name /storage/0355/doc_00104237 to /storage/kkm_last_doc_name [21:13:52]save OK [21:13:52]Clear old archive folders... [21:13:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:13:52]tlvbuf is 006200E0 [21:13:52]SAM_PROTO_ClearQueue [21:13:52]wFMCommunicate request_size=4 [21:13:52]MH_SAM_APDU [21:13:52]CAPDU: 80 09 00 00 [21:13:52]Write to MH i2c: E2 08 00 84 0E 80 09 00 00 00 00 00 00 04 [21:13:52]Write i2c OK [21:13:52]MH_I2C_Read... [21:13:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:13:52]Read from MH i2c: E2 [21:13:52]MH_I2C_Read... [21:13:52]Read from MH i2c: E2 03 00 [21:13:52]MH_I2C_Read... [21:13:52]Read from MH i2c: E2 03 00 84 0E 00 90 00 06 [21:13:52]RAPDU: 90 00 [21:13:52]wFMCommunicate OK [21:13:52]SAM_PROTO_ClearQueue done [21:13:52]KKMCreateOFDPacket [21:13:52]OFDProtocolAddRootSTLVToBuf [21:13:52]FM_MakeSignedData [21:13:52]FM_MakeSignedData [21:13:52]SAM_PROTO_SignData [21:13:52]wFMCommunicate request_size=4 [21:13:52]MH_SAM_APDU [21:13:52]CAPDU: 80 0D 01 02 [21:13:52]Write to MH i2c: E2 08 00 85 0E 80 0D 01 02 00 00 00 00 0C [21:13:52]Write i2c OK [21:13:52]MH_I2C_Read... [21:13:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:13:52]Read from MH i2c: E2 [21:13:52]MH_I2C_Read... [21:13:52]Read from MH i2c: E2 03 00 [21:13:52]MH_I2C_Read... [21:13:52]Read from MH i2c: E2 03 00 85 0E 00 90 00 07 [21:13:52]RAPDU: 90 00 [21:13:52]wFMCommunicate OK [21:13:52]wFMCommunicate request_size=255 [21:13:52]MH_SAM_APDU [21:13: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 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 A0 00 00 00 F4 03 04 00 10 ED 75 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 2D 97 01 00 35 04 06 00 F4 [21:13:52]Write to MH i2c: E2 02 01 86 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 A0 00 00 00 F4 03 04 00 10 ED 75 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 2D 97 01 00 35 04 06 00 F4 00 00 FF [21:13:52]Write i2c OK [21:13:52]MH_I2C_Read... [21:13:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:13:52]Read from MH i2c: E2 [21:13:52]MH_I2C_Read... [21:13:52]Read from MH i2c: E2 03 00 [21:13:52]MH_I2C_Read... [21:13:52]Read from MH i2c: E2 03 00 86 0E 00 90 00 08 [21:13:52]RAPDU: 90 00 [21:13:52]wFMCommunicate OK [21:13:52]wFMCommunicate request_size=10 [21:13:52]MH_SAM_APDU [21:13:52]CAPDU: 80 0D 02 02 05 31 09 2B 2A B7 [21:13:52]Write to MH i2c: E2 0D 00 87 0E 80 0D 02 02 05 00 31 09 2B 2A B7 00 00 5F [21:13:52]Write i2c OK [21:13:52]MH_I2C_Read... [21:13:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:13:52]Read from MH i2c: E2 [21:13:52]MH_I2C_Read... [21:13:52]Read from MH i2c: E2 03 00 [21:13:52]MH_I2C_Read... [21:13:52]Read from MH i2c: E2 03 00 87 0E 00 90 00 09 [21:13:52]RAPDU: 90 00 [21:13:52]wFMCommunicate OK [21:13:52]wFMCommunicate request_size=4 [21:13:52]MH_SAM_APDU [21:13:52]CAPDU: 80 0D 03 02 [21:13:52]Write to MH i2c: E2 08 00 88 0E 80 0D 03 02 00 00 00 00 11 [21:13:52]Write i2c OK [21:13:52]MH_I2C_Read... [21:13:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:13:52]Read from MH i2c: E2 [21:13:52]MH_I2C_Read... [21:13:52]Read from MH i2c: E2 0B 00 [21:13:52]MH_I2C_Read... [21:13:52]Read from MH i2c: E2 0B 00 88 0E 00 B3 B5 96 93 88 4B E8 AE 90 00 0C [21:13:52]RAPDU: B3 B5 96 93 88 4B E8 AE 90 00 [21:13:52]wFMCommunicate OK [21:13:52]SAM_PROTO_SignData done [21:13:52]FM_MakeSignedData done [21:13:52]CreateOFDProtocolMessage [21:13:52]wFMCommunicate request_size=4 [21:13:52]MH_SAM_APDU [21:13:52]CAPDU: 80 11 00 00 [21:13:52]Write to MH i2c: E2 08 00 89 0E 80 11 00 00 00 00 00 00 11 [21:13:52]Write i2c OK [21:13:52]MH_I2C_Read... [21:13:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:13:52]Read from MH i2c: E2 [21:13:52]MH_I2C_Read... [21:13:52]Read from MH i2c: E2 17 00 [21:13:52]MH_I2C_Read... [21:13:52]Read from MH i2c: E2 17 00 89 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 64 [21:13:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [21:13:52]wFMCommunicate OK [21:13:52]CreateOFDProtocolMessage done [21:13:52]OFDSenderStorePacket 104237 [21:13:52]StoreOFDPacket docnum=104237 [21:13: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 6F 05 07 01 B0 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 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 A0 00 00 00 F4 03 04 00 10 ED 75 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 2D 97 01 00 35 04 06 00 F4 31 09 2B 2A B7 B3 B5 96 93 88 4B E8 AE [21:13:52]CheckFolder [21:13:52]dirname=/storage/ofd_packets [21:13:52]CheckFolder done [21:13:52]ProducePacketName [21:13:52]name=ofd_packets/00104237 [21:13:52]NVStorageSaveData ofd_packets/00104237 [21:13:52]File name is /storage/ofd_packets/00104237 [21:13:52]Write 301 bytes [21:13:52]NVStorageSaveData done [21:13:52]OFDSenderStorePacket done [21:13:52]KKMCreateOFDPacket done [21:13:52]NVStorageSaveData kkm_last_timestamp [21:13:52]File name is /storage/kkm_last_timestamp [21:13:52]Write 4 bytes [21:13:52]NVStorageSaveData done [21:13:52]ExternCall_PrintAddStr [21:13:52]wPrintStart [21:13:52]Write to MH i2c: 01 00 00 8A 0E 98 [21:13:52]Write i2c OK [21:13:52]MH_I2C_Read... [21:13:52]Read from MH i2c: 01 [21:13:52]MH_I2C_Read... [21:13:52]Read from MH i2c: 01 07 00 [21:13:52]MH_I2C_Read... [21:13:52]Read from MH i2c: 01 07 00 8A 0E 00 00 00 00 00 FF 0F AD [21:13:52]RasterBufferAndPrint [21:13:52]line Счет N : (1)673719 [21:13:52]line ИНН: 02508201610067 [21:13:52]line Контрольно-Кассовый Чек [21:13:52]line ПРОДАЖА [21:13:52]line ТРК (МРК, ГНК) : 42 [21:13:52]line Товар: 2710124130 [21:13:52]line Аи-92-К-5 [21:13:52]line 22.600 * 66.40 [21:13:52]line = 1500.64 [21:13:52]line НДС 12% НСП 1% [21:13:52]line > о реализуемом товаре [21:13:52]line ОКРУГЛЕНИЕ: -0.64 [21:13:52]line ИТОГО: 1500.00 [21:13:52]line Внесено: 1500.00 [21:13:52]line СДАЧА: 0.00 [21:13:52]line НСП 1% : 13.28 [21:13:52]line НДС 12% : 159.36 [21:13:52]line Наличными: 1500.00 [21:13:52]line Безнал.: 0.00 [21:13:52]line Место: АЗС № 120 "Партнер Нефть" [21:13:52]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [21:13:52]line СНО: Общий режим [21:13:52]line Чек 160 21.06.2024 21:13 [21:13:52]line Смена: 355 ФФД: 1.0 [21:13:52]line ЗНМ: 0300000164 [21:13:52]line РНМ: 0000000000092785 [21:13:52]line Версия ККМ: 001 [21:13:52]line ФМ: 0000000000875093 [21:13:52]line ФД: 104237 [21:13:52]line ФПД: 268491444398775 [21:13:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T211352&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104237&fm=268491444398775&tin=02508201610067®Number=0000000000092785&sum=150000 [21:13:53]OFD Sender: Processing packet 104237 [packets to send 17, broken 16] [21:13:53]ProducePacketName [21:13:53]name=ofd_packets/00104237 [21:13:53]OFD Sender: To server: pG, [21:13:53]CommunicateWithHost lk.salyk.kg:30040 [21:13:53]ConnectInit lk.salyk.kg [21:13:53]written 0, free lines is 4095 [21:13:53]Connected sock=10 [21:13:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 6F 05 07 01 B0 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 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 A0 00 00 00 F4 03 04 00 10 ED 75 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 2D 97 01 00 35 04 06 00 F4 31 09 2B 2A B7 B3 B5 96 93 88 4B E8 AE [21:13: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 9D 89 47 00 F4 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 2D 97 01 00 F4 03 04 00 91 93 75 66 B6 04 01 00 00 42 69 93 E7 EB 0F 0D 0C [21:13:53]CommunicateWithHost err = 0 [21:13:53]CheckOFDResponse [21:13:53]1017 (14) - 77093643461234 [21:13:53]1041 (16) - 0000000000875093 [21:13:53]1040 (4) - 104237 [21:13:53]1012 (4) - 21.06.2024 14:52 [21:13:53]1206 (1) - 0 [21:13:53]OFD Sender: Remove packet 104237 [21:13:53]ProducePacketName [21:13:53]name=ofd_packets/00104237 [21:13:53]NVStorageDeleteData [21:13:53]Write to MH i2c: 01 00 00 B5 0E C3 [21:13:53]Write i2c OK [21:13:53]MH_I2C_Read... [21:13:53]Read from MH i2c: 01 [21:13:53]MH_I2C_Read... [21:13:53]Read from MH i2c: 01 07 00 [21:13:53]MH_I2C_Read... [21:13:53]Read from MH i2c: 01 07 00 B5 0E 00 00 00 00 00 DC 0C B2 [21:13:53]RasterBufferAndPrint [21:13:53]line [21:13:53]line [21:13:53]line [21:13:53]line [21:13:53]line [21:13:53]written 0, free lines is 3298 [21:13:53]MH_Cut [21:13:53]Write to MH i2c: D1 01 00 BC 0E 01 9C [21:13:53]Write i2c OK [21:13:53]MH_I2C_Read... [21:13:53]Read from MH i2c: D1 [21:13:53]MH_I2C_Read... [21:13:53]Read from MH i2c: D1 01 00 [21:13:53]MH_I2C_Read... [21:13:53]Read from MH i2c: D1 01 00 BC 0E 00 9B [21:13:53]Write to MH i2c: 01 00 00 BD 0E CB [21:13:53]Write i2c OK [21:13:53]MH_I2C_Read... [21:13:54]OFD Sender: No OFD packet to send [21:13:54]*** Cut start [21:13:54]*** Partial cut [21:13:54]*** CUTSNS_PIN = 1 [21:13:54]*** CUTSNS_PIN = 0 [21:13:54]*** Brake cut motor [21:13:54]Read from MH i2c: 01 [21:13:54]MH_I2C_Read... [21:13:54]*** Stop cut motor [21:13:54]*** Cut end [21:13:54]Read from MH i2c: 01 07 00 [21:13:54]MH_I2C_Read... [21:13:54]Read from MH i2c: 01 07 00 BD 0E 00 00 00 00 00 FF 0F E0 [21:13:54]process_action close_receipt done [21:13:54]requested_data is exist [21:13:54]produce_requested_data [21:13:54]requested_item fm.sn is exist - process it [21:13:54]wFMCommunicate request_size=4 [21:13:54]MH_SAM_APDU [21:13:54]CAPDU: 80 11 00 00 [21:13:54]Write to MH i2c: E2 08 00 BE 0E 80 11 00 00 00 00 00 00 46 [21:13:54]Write i2c OK [21:13:54]MH_I2C_Read... [21:13:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:13:54]Read from MH i2c: E2 [21:13:54]MH_I2C_Read... [21:13:54]Read from MH i2c: E2 17 00 [21:13:55]MH_I2C_Read... [21:13:55]Read from MH i2c: E2 17 00 BE 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 99 [21:13:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [21:13:55]wFMCommunicate OK [21:13:55]requested_item fd.num is exist - process it [21:13:55]SAM_PROTO_GetFieldsCounters [21:13:55]wFMCommunicate request_size=4 [21:13:55]MH_SAM_APDU [21:13:55]CAPDU: 80 13 00 00 [21:13:55]Write to MH i2c: E2 08 00 BF 0E 80 13 00 00 00 00 00 00 49 [21:13:55]Write i2c OK [21:13:55]MH_I2C_Read... [21:13:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:13:55]Read from MH i2c: E2 [21:13:55]MH_I2C_Read... [21:13:55]Read from MH i2c: E2 62 00 [21:13:55]MH_I2C_Read... [21:13:55]Read from MH i2c: E2 62 00 BF 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 2D 97 01 00 0E 04 04 00 63 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 79 [21:13: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 2D 97 01 00 0E 04 04 00 63 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 [21:13:55]wFMCommunicate OK [21:13:55]SAM_PROTO_GetFieldsCounters done [21:13:55]requested_item shift.num is exist - process it [21:13:55]requested_item shift.opened is exist - process it [21:13:55]req_shift_opened [21:13:55]FM_GetShiftState [21:13:55]SAM_PROTO_GetShiftState [21:13:55]wFMCommunicate request_size=4 [21:13:55]MH_SAM_APDU [21:13:55]CAPDU: 80 13 01 00 [21:13:55]Write to MH i2c: E2 08 00 C0 0E 80 13 01 00 00 00 00 00 4B [21:13:55]Write i2c OK [21:13:55]MH_I2C_Read... [21:13:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:13:55]Read from MH i2c: E2 [21:13:55]MH_I2C_Read... [21:13:55]Read from MH i2c: E2 0E 00 [21:13:55]MH_I2C_Read... [21:13:55]Read from MH i2c: E2 0E 00 C0 0E 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 5E [21:13:55]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [21:13:55]wFMCommunicate OK [21:13:55]SAM_PROTO_GetShiftState done [21:13:55]FM_GetShiftState done [21:13:55]req_shift_opened done [21:13:55]requested_item shift.open_date is exist - process it [21:13:55]req_shift_open_date [21:13:55]req_shift_open_date done [21:13:55]produce_requested_data done [21:13:55]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104237,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [21:13:55]process_action_free close_receipt [21:13:55]json_value_free [21:13:55]json_value_free done [21:13:55]process_json_proto returns [21:13:55]Send response to host [21:13:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104237,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [21:13:55]free response buf [21:13:55]execute_script done [21:13:55]execute_script returns [21:13:55]free content buf [21:13:55]Sock 7.Close socket [21:13:55]Sock 7.Thread stoped [21:13:59]OFD Sender: No OFD packet to send [21:14:04]OFD Sender: No OFD packet to send [21:14:09]OFD Sender: No OFD packet to send [21:14:14]OFD Sender: No OFD packet to send [21:14:19]OFD Sender: No OFD packet to send [21:14:24]OFD Sender: No OFD packet to send [21:14:29]OFD Sender: No OFD packet to send [21:14:34]OFD Sender: No OFD packet to send [21:14:39]OFD Sender: No OFD packet to send [21:14:44]OFD Sender: No OFD packet to send [21:14:49]OFD Sender: No OFD packet to send [21:14:54]OFD Sender: No OFD packet to send [21:14:59]OFD Sender: No OFD packet to send [21:15:04]OFD Sender: No OFD packet to send [21:15:09]OFD Sender: No OFD packet to send [21:15:14]OFD Sender: No OFD packet to send [21:15:19]OFD Sender: No OFD packet to send [21:15:24]OFD Sender: No OFD packet to send [21:15:29]OFD Sender: No OFD packet to send [21:15:34]OFD Sender: No OFD packet to send [21:15:39]OFD Sender: No OFD packet to send [21:15:44]OFD Sender: No OFD packet to send [21:15:49]OFD Sender: No OFD packet to send [21:15:54]OFD Sender: No OFD packet to send [21:15:59]OFD Sender: No OFD packet to send [21:16:04]OFD Sender: No OFD packet to send [21:16:09]OFD Sender: No OFD packet to send [21:16:14]OFD Sender: No OFD packet to send [21:16:19]OFD Sender: No OFD packet to send [21:16:24]OFD Sender: No OFD packet to send [21:16:29]OFD Sender: No OFD packet to send [21:16:34]OFD Sender: No OFD packet to send [21:16:39]OFD Sender: No OFD packet to send [21:16:44]OFD Sender: No OFD packet to send [21:16:49]OFD Sender: No OFD packet to send [21:16:54]OFD Sender: No OFD packet to send [21:16:59]OFD Sender: No OFD packet to send [21:17:04]OFD Sender: No OFD packet to send [21:17:09]OFD Sender: No OFD packet to send [21:17:14]OFD Sender: No OFD packet to send [21:17:19]OFD Sender: No OFD packet to send [21:17:24]OFD Sender: No OFD packet to send [21:17:29]OFD Sender: No OFD packet to send [21:17:34]OFD Sender: No OFD packet to send [21:17:39]OFD Sender: No OFD packet to send [21:17:44]OFD Sender: No OFD packet to send [21:17:49]OFD Sender: No OFD packet to send [21:17:54]OFD Sender: No OFD packet to send [21:17:59]OFD Sender: No OFD packet to send [21:18:04]OFD Sender: No OFD packet to send [21:18:09]OFD Sender: No OFD packet to send [21:18:14]OFD Sender: No OFD packet to send [21:18:19]OFD Sender: No OFD packet to send [21:18:24]OFD Sender: No OFD packet to send [21:18:29]OFD Sender: No OFD packet to send [21:18:34]OFD Sender: No OFD packet to send [21:18:39]OFD Sender: No OFD packet to send [21:18:44]OFD Sender: No OFD packet to send [21:18:49]OFD Sender: No OFD packet to send [21:18:54]OFD Sender: No OFD packet to send [21:18:59]OFD Sender: No OFD packet to send [21:19:04]OFD Sender: No OFD packet to send [21:19:09]OFD Sender: No OFD packet to send [21:19:14]OFD Sender: No OFD packet to send [21:19:19]OFD Sender: No OFD packet to send [21:19:24]OFD Sender: No OFD packet to send [21:19:29]OFD Sender: No OFD packet to send [21:19:34]OFD Sender: No OFD packet to send [21:19:39]OFD Sender: No OFD packet to send [21:19:44]OFD Sender: No OFD packet to send [21:19:49]OFD Sender: No OFD packet to send [21:19:54]OFD Sender: No OFD packet to send [21:19:59]OFD Sender: No OFD packet to send [21:20:04]OFD Sender: No OFD packet to send [21:20:09]OFD Sender: No OFD packet to send [21:20:14]OFD Sender: No OFD packet to send [21:20:19]OFD Sender: No OFD packet to send [21:20:24]OFD Sender: No OFD packet to send [21:20:29]OFD Sender: No OFD packet to send [21:20:34]OFD Sender: No OFD packet to send [21:20:39]OFD Sender: No OFD packet to send [21:20:44]OFD Sender: No OFD packet to send [21:20:49]OFD Sender: No OFD packet to send [21:20:54]OFD Sender: No OFD packet to send [21:20:59]OFD Sender: No OFD packet to send [21:21:04]OFD Sender: No OFD packet to send [21:21:09]OFD Sender: No OFD packet to send [21:21:14]OFD Sender: No OFD packet to send [21:21:19]OFD Sender: No OFD packet to send [21:21:24]OFD Sender: No OFD packet to send [21:21:29]OFD Sender: No OFD packet to send [21:21:34]OFD Sender: No OFD packet to send [21:21:39]OFD Sender: No OFD packet to send [21:21:44]OFD Sender: No OFD packet to send [21:21:49]OFD Sender: No OFD packet to send [21:21:54]OFD Sender: No OFD packet to send [21:21:59]OFD Sender: No OFD packet to send [21:22:04]OFD Sender: No OFD packet to send [21:22:09]OFD Sender: No OFD packet to send [21:22:14]OFD Sender: No OFD packet to send [21:22:19]OFD Sender: No OFD packet to send [21:22:24]OFD Sender: No OFD packet to send [21:22:29]OFD Sender: No OFD packet to send [21:22:34]OFD Sender: No OFD packet to send [21:22:39]OFD Sender: No OFD packet to send [21:22:44]OFD Sender: No OFD packet to send [21:22:49]OFD Sender: No OFD packet to send [21:22:54]OFD Sender: No OFD packet to send [21:22:59]OFD Sender: No OFD packet to send [21:23:04]OFD Sender: No OFD packet to send [21:23:09]OFD Sender: No OFD packet to send [21:23:14]OFD Sender: No OFD packet to send [21:23:19]OFD Sender: No OFD packet to send [21:23:24]OFD Sender: No OFD packet to send [21:23:29]OFD Sender: No OFD packet to send [21:23:34]OFD Sender: No OFD packet to send [21:23:39]OFD Sender: No OFD packet to send [21:23:44]OFD Sender: No OFD packet to send [21:23:49]OFD Sender: No OFD packet to send [21:23:54]OFD Sender: No OFD packet to send [21:23:59]OFD Sender: No OFD packet to send [21:24:04]OFD Sender: No OFD packet to send [21:24:09]OFD Sender: No OFD packet to send [21:24:14]OFD Sender: No OFD packet to send [21:24:19]OFD Sender: No OFD packet to send [21:24:24]OFD Sender: No OFD packet to send [21:24:29]OFD Sender: No OFD packet to send [21:24:34]OFD Sender: No OFD packet to send [21:24:39]OFD Sender: No OFD packet to send [21:24:44]OFD Sender: No OFD packet to send [21:24:49]OFD Sender: No OFD packet to send [21:24:54]OFD Sender: No OFD packet to send [21:24:59]OFD Sender: No OFD packet to send [21:25:04]OFD Sender: No OFD packet to send [21:25:09]OFD Sender: No OFD packet to send [21:25:14]OFD Sender: No OFD packet to send [21:25:19]OFD Sender: No OFD packet to send [21:25:24]OFD Sender: No OFD packet to send [21:25:29]OFD Sender: No OFD packet to send [21:25:34]OFD Sender: No OFD packet to send [21:25:39]OFD Sender: No OFD packet to send [21:25:44]OFD Sender: No OFD packet to send [21:25:49]OFD Sender: No OFD packet to send [21:25:54]OFD Sender: No OFD packet to send [21:25:59]OFD Sender: No OFD packet to send [21:26:04]OFD Sender: No OFD packet to send [21:26:09]OFD Sender: No OFD packet to send [21:26:14]OFD Sender: No OFD packet to send [21:26:19]OFD Sender: No OFD packet to send [21:26:24]OFD Sender: No OFD packet to send [21:26:25]accept exits with 9 [21:26:25]New connection [21:26:25]New thread 3067473252 created [21:26:25]Thread 3067616612 joined [21:26:25]Waiting for new connection... [21:26:25] Sock 9.Parse request [21:26:25]Sock 9.Check first char [21:26:25]Sock 9.First char is OK [21:26:25]request: POST /json_proto HTTP/1.0 [21:26:25]Method: POST [21:26:25]URL: /json_proto [21:26:25]Method is POST - this is cgi request [21:26:25]url: /json_proto [21:26:25]query_string will be loaded in cgi processing [21:26:25]execute_cgi json_proto POST (null) [21:26:25]execute_cgi path=json_proto method=POST [21:26:25]POST find Content-Length [21:26:25]Host: 172.17.38.133:8080 [21:26:25]Content-Length: 811 [21:26:25]Content-Type: application/json [21:26:25] [21:26:25]POST finish read [21:26:25]Found Content-Length = 811 [21:26:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673720", "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.900, "sum" : 11000.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" : 11000.61 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:26:25]execute_script... [21: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)673720", "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.900, "sum" : 11000.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" : 11000.61 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:26:25]POST & json_proto [21:26:25]process_json_proto [21:26:25]json parsed OK: [21:26:25]protocol is kg_v1.0 [21:26:25]action value=close_receipt [21:26:25]process_action close_receipt [21:26:25]cmd_close_receipt [21:26:25]MH_GetDate [21:26:25]Write to MH i2c: F0 00 00 C1 0E BE [21:26:25]Write i2c OK [21:26:25]MH_I2C_Read... [21:26:25]Read from MH i2c: F0 [21:26:25]MH_I2C_Read... [21:26:25]Read from MH i2c: F0 09 00 [21:26:25]MH_I2C_Read... [21:26:25]Read from MH i2c: F0 09 00 C1 0E 00 02 F0 75 66 BD 8F 7C 64 C0 [21:26:25]GetLastDocTimeStamp 1719004432 [21:26:25]current date 1719005186 [21:26:25]FM_GetShiftState [21:26:25]SAM_PROTO_GetShiftState [21:26:25]wFMCommunicate request_size=4 [21:26:25]MH_SAM_APDU [21:26:25]CAPDU: 80 13 01 00 [21:26:25]Write to MH i2c: E2 08 00 C2 0E 80 13 01 00 00 00 00 00 4D [21:26:25]Write i2c OK [21:26:25]MH_I2C_Read... [21:26:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:26:25]Read from MH i2c: E2 [21:26:25]MH_I2C_Read... [21:26:25]Read from MH i2c: E2 0E 00 [21:26:25]MH_I2C_Read... [21:26:25]Read from MH i2c: E2 0E 00 C2 0E 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 60 [21:26:25]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [21:26:25]wFMCommunicate OK [21:26:25]SAM_PROTO_GetShiftState done [21:26:25]FM_GetShiftState done [21:26:25]opened in 1718929509 [21:26:25]opened+sec_in_day 1719015909 [21:26:25]quantity*price = 1100061 [21:26:25]sum+1 = 1100062 [21:26:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 11000.61 НСП 1% : 97.35 НДС 12% : 1168.21 Наличными: 0.00 Безнал.: 11000.61 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 161 21.06.2024 21:26 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875093 ФД: 104238 ФПД: 68336322616721 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T212626&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104238&fm=68336322616721&tin=02508201610067®Number=0000000000092785&sum=1100061 [21:26:26]StoreToDocumentArchive [21:26:26]shift 355 fd 104238 [21:26:26]save to /storage/0355/doc_00104238 [21:26:26]save last doc name /storage/0355/doc_00104238 to /storage/kkm_last_doc_name [21:26:26]save OK [21:26:26]Clear old archive folders... [21:26:26]ProcessDocumentItem done err = 0, tmpTLVsize=252 [21:26:26]tlvbuf is 0064DA90 [21:26:26]SAM_PROTO_ClearQueue [21:26:26]wFMCommunicate request_size=4 [21:26:26]MH_SAM_APDU [21:26:26]CAPDU: 80 09 00 00 [21:26:26]Write to MH i2c: E2 08 00 CF 0E 80 09 00 00 00 00 00 00 4F [21:26:26]Write i2c OK [21:26:26]MH_I2C_Read... [21:26:26]Read from MH i2c: E2 [21:26:26]MH_I2C_Read... [21:26:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:26:26]Read from MH i2c: E2 03 00 [21:26:26]MH_I2C_Read... [21:26:26]Read from MH i2c: E2 03 00 CF 0E 00 90 00 51 [21:26:26]RAPDU: 90 00 [21:26:26]wFMCommunicate OK [21:26:26]SAM_PROTO_ClearQueue done [21:26:26]KKMCreateOFDPacket [21:26:26]OFDProtocolAddRootSTLVToBuf [21:26:26]FM_MakeSignedData [21:26:26]FM_MakeSignedData [21:26:26]SAM_PROTO_SignData [21:26:26]wFMCommunicate request_size=4 [21:26:26]MH_SAM_APDU [21:26:26]CAPDU: 80 0D 01 02 [21:26:26]Write to MH i2c: E2 08 00 D0 0E 80 0D 01 02 00 00 00 00 57 [21:26:26]Write i2c OK [21:26:26]MH_I2C_Read... [21:26:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:26:26]Read from MH i2c: E2 [21:26:26]MH_I2C_Read... [21:26:26]Read from MH i2c: E2 03 00 [21:26:26]MH_I2C_Read... [21:26:26]Read from MH i2c: E2 03 00 D0 0E 00 90 00 52 [21:26:26]RAPDU: 90 00 [21:26:26]wFMCommunicate OK [21:26:26]wFMCommunicate request_size=255 [21:26:26]MH_SAM_APDU [21:26: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 74 4D 02 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 1D C9 10 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1D C9 10 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 07 26 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 C8 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1D C9 10 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 02 F0 75 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 2E 97 01 00 35 04 06 00 [21:26:26]Write to MH i2c: E2 02 01 D1 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 74 4D 02 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 1D C9 10 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1D C9 10 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 07 26 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 C8 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1D C9 10 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 02 F0 75 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 2E 97 01 00 35 04 06 00 00 00 C0 [21:26:26]Write i2c OK [21:26:26]MH_I2C_Read... [21:26:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:26:26]Read from MH i2c: E2 [21:26:26]MH_I2C_Read... [21:26:26]Read from MH i2c: E2 03 00 [21:26:26]MH_I2C_Read... [21:26:26]Read from MH i2c: E2 03 00 D1 0E 00 90 00 53 [21:26:26]RAPDU: 90 00 [21:26:26]wFMCommunicate OK [21:26:26]wFMCommunicate request_size=11 [21:26:26]MH_SAM_APDU [21:26:26]CAPDU: 80 0D 02 02 06 3E 26 CA 3C 1D 91 [21:26:26]Write to MH i2c: E2 0E 00 D2 0E 80 0D 02 02 06 00 3E 26 CA 3C 1D 91 00 00 7E [21:26:26]Write i2c OK [21:26:26]MH_I2C_Read... [21:26:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:26:26]Read from MH i2c: E2 [21:26:26]MH_I2C_Read... [21:26:26]Read from MH i2c: E2 03 00 [21:26:26]MH_I2C_Read... [21:26:26]Read from MH i2c: E2 03 00 D2 0E 00 90 00 54 [21:26:26]RAPDU: 90 00 [21:26:26]wFMCommunicate OK [21:26:26]wFMCommunicate request_size=4 [21:26:26]MH_SAM_APDU [21:26:26]CAPDU: 80 0D 03 02 [21:26:26]Write to MH i2c: E2 08 00 D3 0E 80 0D 03 02 00 00 00 00 5C [21:26:26]Write i2c OK [21:26:26]MH_I2C_Read... [21:26:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:26:26]Read from MH i2c: E2 [21:26:26]MH_I2C_Read... [21:26:26]Read from MH i2c: E2 0B 00 [21:26:26]MH_I2C_Read... [21:26:26]Read from MH i2c: E2 0B 00 D3 0E 00 F7 FB 47 E4 81 DA 43 AA 90 00 C2 [21:26:26]RAPDU: F7 FB 47 E4 81 DA 43 AA 90 00 [21:26:26]wFMCommunicate OK [21:26:26]SAM_PROTO_SignData done [21:26:26]FM_MakeSignedData done [21:26:26]CreateOFDProtocolMessage [21:26:26]wFMCommunicate request_size=4 [21:26:26]MH_SAM_APDU [21:26:26]CAPDU: 80 11 00 00 [21:26:26]Write to MH i2c: E2 08 00 D4 0E 80 11 00 00 00 00 00 00 5C [21:26:26]Write i2c OK [21:26:26]MH_I2C_Read... [21:26:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:26:26]Read from MH i2c: E2 [21:26:26]MH_I2C_Read... [21:26:26]Read from MH i2c: E2 17 00 [21:26:26]MH_I2C_Read... [21:26:26]Read from MH i2c: E2 17 00 D4 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 AF [21: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 [21:26:26]wFMCommunicate OK [21:26:26]CreateOFDProtocolMessage done [21:26:26]OFDSenderStorePacket 104238 [21:26:26]StoreOFDPacket docnum=104238 [21: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 10 01 00 00 F1 4B 08 01 1E 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 74 4D 02 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 1D C9 10 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1D C9 10 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 07 26 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 C8 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1D C9 10 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 02 F0 75 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 2E 97 01 00 35 04 06 00 3E 26 CA 3C 1D 91 F7 FB 47 E4 81 DA 43 AA [21:26:26]CheckFolder [21:26:26]dirname=/storage/ofd_packets [21:26:26]CheckFolder done [21:26:26]ProducePacketName [21:26:26]name=ofd_packets/00104238 [21:26:26]NVStorageSaveData ofd_packets/00104238 [21:26:26]File name is /storage/ofd_packets/00104238 [21:26:26]Write 302 bytes [21:26:26]NVStorageSaveData done [21:26:26]OFDSenderStorePacket done [21:26:26]KKMCreateOFDPacket done [21:26:26]NVStorageSaveData kkm_last_timestamp [21:26:26]File name is /storage/kkm_last_timestamp [21:26:26]Write 4 bytes [21:26:26]NVStorageSaveData done [21:26:26]ExternCall_PrintAddStr [21:26:26]wPrintStart [21:26:26]Write to MH i2c: 01 00 00 D5 0E E3 [21:26:26]Write i2c OK [21:26:26]MH_I2C_Read... [21:26:26]Read from MH i2c: 01 [21:26:26]MH_I2C_Read... [21:26:26]Read from MH i2c: 01 07 00 [21:26:26]MH_I2C_Read... [21:26:26]Read from MH i2c: 01 07 00 D5 0E 00 00 00 00 00 FF 0F F8 [21:26:26]RasterBufferAndPrint [21:26:26]line Счет N : (1)673720 [21:26:26]line ИНН: 02508201610067 [21:26:26]line Контрольно-Кассовый Чек [21:26:26]line ПРОДАЖА [21:26:26]line ТРК (МРК, ГНК) : 11 [21:26:26]line Товар: 2710194210 [21:26:26]line ДТ(л)-К-5 [21:26:26]line 150.900 * 72.90 [21:26:26]line = 11000.61 [21:26:26]line НДС 12% НСП 1% [21:26:26]line > о реализуемом товаре [21:26:26]line ИТОГО: 11000.61 [21:26:26]line НСП 1% : 97.35 [21:26:26]line НДС 12% : 1168.21 [21:26:26]line Наличными: 0.00 [21:26:26]line Безнал.: 11000.61 [21:26:26]line Место: АЗС № 120 "Партнер Нефть" [21:26:26]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [21:26:26]line СНО: Общий режим [21:26:26]line Чек 161 21.06.2024 21:26 [21:26:26]line Смена: 355 ФФД: 1.0 [21:26:26]line ЗНМ: 0300000164 [21:26:26]line РНМ: 0000000000092785 [21:26:26]line Версия ККМ: 001 [21:26:26]line Платежная система: O! деньги [21:26:26]line ФМ: 0000000000875093 [21:26:26]line ФД: 104238 [21:26:26]line ФПД: 68336322616721 [21:26:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T212626&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104238&fm=68336322616721&tin=02508201610067®Number=0000000000092785&sum=1100061 [21:26:27]written 0, free lines is 4095 [21:26:27]OFD Sender: Processing packet 104238 [packets to send 17, broken 16] [21:26:27]ProducePacketName [21:26:27]name=ofd_packets/00104238 [21:26:27]OFD Sender: To server: pG, [21:26:27]CommunicateWithHost lk.salyk.kg:30040 [21:26:27]ConnectInit lk.salyk.kg [21:26:27]Connected sock=10 [21: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 10 01 00 00 F1 4B 08 01 1E 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 74 4D 02 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 1D C9 10 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1D C9 10 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 07 26 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 C8 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1D C9 10 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 02 F0 75 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 2E 97 01 00 35 04 06 00 3E 26 CA 3C 1D 91 F7 FB 47 E4 81 DA 43 AA [21: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 65 F6 47 00 DC 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 2E 97 01 00 F4 03 04 00 83 96 75 66 B6 04 01 00 00 1C 00 3B CA DC 43 DF 23 [21:26:27]CommunicateWithHost err = 0 [21:26:27]CheckOFDResponse [21:26:27]1017 (14) - 77093643461234 [21:26:27]1041 (16) - 0000000000875093 [21:26:27]1040 (4) - 104238 [21:26:27]1012 (4) - 21.06.2024 15:04 [21:26:27]1206 (1) - 0 [21:26:27]OFD Sender: Remove packet 104238 [21:26:27]ProducePacketName [21:26:27]name=ofd_packets/00104238 [21:26:27]NVStorageDeleteData [21:26:27]Write to MH i2c: 01 00 00 FF 0E 0D [21:26:27]Write i2c OK [21:26:27]MH_I2C_Read... [21:26:27]Read from MH i2c: 01 [21:26:27]MH_I2C_Read... [21:26:27]Read from MH i2c: 01 07 00 [21:26:27]MH_I2C_Read... [21:26:27]Read from MH i2c: 01 07 00 FF 0E 00 00 00 00 00 F7 0C 17 [21:26:27]RasterBufferAndPrint [21:26:27]line [21:26:27]line [21:26:27]line [21:26:27]line [21:26:27]line [21:26:27]written 0, free lines is 3324 [21:26:27]MH_Cut [21:26:27]Write to MH i2c: D1 01 00 06 0F 01 E7 [21:26:27]Write i2c OK [21:26:27]MH_I2C_Read... [21:26:27]Read from MH i2c: D1 [21:26:27]MH_I2C_Read... [21:26:27]Read from MH i2c: D1 01 00 [21:26:27]MH_I2C_Read... [21:26:27]Read from MH i2c: D1 01 00 06 0F 00 E6 [21:26:27]Write to MH i2c: 01 00 00 07 0F 16 [21:26:27]Write i2c OK [21:26:27]MH_I2C_Read... [21:26:28]OFD Sender: No OFD packet to send [21:26:28]*** Cut start [21:26:28]*** Partial cut [21:26:28]*** CUTSNS_PIN = 1 [21:26:28]*** CUTSNS_PIN = 0 [21:26:28]*** Brake cut motor [21:26:28]Read from MH i2c: 01 [21:26:28]MH_I2C_Read... [21:26:28]*** Stop cut motor [21:26:28]*** Cut end [21:26:28]Read from MH i2c: 01 07 00 [21:26:28]MH_I2C_Read... [21:26:28]Read from MH i2c: 01 07 00 07 0F 00 00 00 00 00 FF 0F 2B [21:26:28]process_action close_receipt done [21:26:28]requested_data is exist [21:26:28]produce_requested_data [21:26:28]requested_item fm.sn is exist - process it [21:26:28]wFMCommunicate request_size=4 [21:26:28]MH_SAM_APDU [21:26:28]CAPDU: 80 11 00 00 [21:26:28]Write to MH i2c: E2 08 00 08 0F 80 11 00 00 00 00 00 00 91 [21:26:28]Write i2c OK [21:26:28]MH_I2C_Read... [21:26:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:26:29]Read from MH i2c: E2 [21:26:29]MH_I2C_Read... [21:26:29]Read from MH i2c: E2 17 00 [21:26:29]MH_I2C_Read... [21:26:29]Read from MH i2c: E2 17 00 08 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 E4 [21: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 [21:26:29]wFMCommunicate OK [21:26:29]requested_item fd.num is exist - process it [21:26:29]SAM_PROTO_GetFieldsCounters [21:26:29]wFMCommunicate request_size=4 [21:26:29]MH_SAM_APDU [21:26:29]CAPDU: 80 13 00 00 [21:26:29]Write to MH i2c: E2 08 00 09 0F 80 13 00 00 00 00 00 00 94 [21:26:29]Write i2c OK [21:26:29]MH_I2C_Read... [21:26:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:26:29]Read from MH i2c: E2 [21:26:29]MH_I2C_Read... [21:26:29]Read from MH i2c: E2 62 00 [21:26:29]MH_I2C_Read... [21:26:29]Read from MH i2c: E2 62 00 09 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 2E 97 01 00 0E 04 04 00 63 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 C8 [21: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 2E 97 01 00 0E 04 04 00 63 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 [21:26:29]wFMCommunicate OK [21:26:29]SAM_PROTO_GetFieldsCounters done [21:26:29]requested_item shift.num is exist - process it [21:26:29]requested_item shift.opened is exist - process it [21:26:29]req_shift_opened [21:26:29]FM_GetShiftState [21:26:29]SAM_PROTO_GetShiftState [21:26:29]wFMCommunicate request_size=4 [21:26:29]MH_SAM_APDU [21:26:29]CAPDU: 80 13 01 00 [21:26:29]Write to MH i2c: E2 08 00 0A 0F 80 13 01 00 00 00 00 00 96 [21:26:29]Write i2c OK [21:26:29]MH_I2C_Read... [21:26:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:26:29]Read from MH i2c: E2 [21:26:29]MH_I2C_Read... [21:26:29]Read from MH i2c: E2 0E 00 [21:26:29]MH_I2C_Read... [21:26:29]Read from MH i2c: E2 0E 00 0A 0F 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 A9 [21:26:29]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [21:26:29]wFMCommunicate OK [21:26:29]SAM_PROTO_GetShiftState done [21:26:29]FM_GetShiftState done [21:26:29]req_shift_opened done [21:26:29]requested_item shift.open_date is exist - process it [21:26:29]req_shift_open_date [21:26:29]req_shift_open_date done [21:26:29]produce_requested_data done [21:26:29]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104238,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [21:26:29]process_action_free close_receipt [21:26:29]json_value_free [21:26:29]json_value_free done [21:26:29]process_json_proto returns [21:26:29]Send response to host [21:26:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104238,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [21:26:29]free response buf [21:26:29]execute_script done [21:26:29]execute_script returns [21:26:29]free content buf [21:26:29]Sock 9.Close socket [21:26:29]Sock 9.Thread stoped [21:26:33]OFD Sender: No OFD packet to send [21:26:38]OFD Sender: No OFD packet to send [21:26:43]OFD Sender: No OFD packet to send [21:26:48]OFD Sender: No OFD packet to send [21:26:53]OFD Sender: No OFD packet to send [21:26:58]OFD Sender: No OFD packet to send [21:27:03]OFD Sender: No OFD packet to send [21:27:08]OFD Sender: No OFD packet to send [21:27:13]OFD Sender: No OFD packet to send [21:27:17]accept exits with 7 [21:27:17]New connection [21:27:17]New thread 3067616612 created [21:27:17]Thread 3067473252 joined [21:27:17]Waiting for new connection... [21:27:17] Sock 7.Parse request [21:27:17]Sock 7.Check first char [21:27:17]Sock 7.First char is OK [21:27:17]request: POST /json_proto HTTP/1.0 [21:27:17]Method: POST [21:27:17]URL: /json_proto [21:27:17]Method is POST - this is cgi request [21:27:17]url: /json_proto [21:27:17]query_string will be loaded in cgi processing [21:27:17]execute_cgi json_proto POST (null) [21:27:17]execute_cgi path=json_proto method=POST [21:27:17]POST find Content-Length [21:27:17]Host: 172.17.38.133:8080 [21:27:17]Content-Length: 817 [21:27:17]Content-Type: application/json [21:27:17] [21:27:17]POST finish read [21:27:17]Found Content-Length = 817 [21:27:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673721", "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 }]} ], "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" : 900.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:27:17]execute_script... [21: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)673721", "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 }]} ], "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" : 900.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:27:17]POST & json_proto [21:27:17]process_json_proto [21:27:17]json parsed OK: [21:27:17]protocol is kg_v1.0 [21:27:17]action value=close_receipt [21:27:17]process_action close_receipt [21:27:17]cmd_close_receipt [21:27:17]MH_GetDate [21:27:17]Write to MH i2c: F0 00 00 0B 0F 09 [21:27:17]Write i2c OK [21:27:17]MH_I2C_Read... [21:27:17]Read from MH i2c: F0 [21:27:17]MH_I2C_Read... [21:27:17]Read from MH i2c: F0 09 00 [21:27:17]MH_I2C_Read... [21:27:17]Read from MH i2c: F0 09 00 0B 0F 00 37 F0 75 66 BD 8F 7C 64 40 [21:27:17]GetLastDocTimeStamp 1719005186 [21:27:17]current date 1719005239 [21:27:17]FM_GetShiftState [21:27:17]SAM_PROTO_GetShiftState [21:27:17]wFMCommunicate request_size=4 [21:27:17]MH_SAM_APDU [21:27:17]CAPDU: 80 13 01 00 [21:27:17]Write to MH i2c: E2 08 00 0C 0F 80 13 01 00 00 00 00 00 98 [21:27:17]Write i2c OK [21:27:17]MH_I2C_Read... [21:27:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:27:17]Read from MH i2c: E2 [21:27:17]MH_I2C_Read... [21:27:17]Read from MH i2c: E2 0E 00 [21:27:17]MH_I2C_Read... [21:27:17]Read from MH i2c: E2 0E 00 0C 0F 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 AB [21:27:17]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [21:27:17]wFMCommunicate OK [21:27:17]SAM_PROTO_GetShiftState done [21:27:17]FM_GetShiftState done [21:27:17]opened in 1718929509 [21:27:17]opened+sec_in_day 1719015909 [21:27:17]quantity*price = 90038 [21:27:17]sum+1 = 90039 [21:27:17]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 900.38 НСП 1% : 7.97 НДС 12% : 95.62 Наличными: 0.00 Безнал.: 900.38 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 162 21.06.2024 21:27 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875093 ФД: 104239 ФПД: 193071746600794 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T212719&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104239&fm=193071746600794&tin=02508201610067®Number=0000000000092785&sum=90038 [21:27:19]StoreToDocumentArchive [21:27:19]shift 355 fd 104239 [21:27:19]save to /storage/0355/doc_00104239 [21:27:19]save last doc name /storage/0355/doc_00104239 to /storage/kkm_last_doc_name [21:27:19]save OK [21:27:19]Clear old archive folders... [21:27:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:27:19]tlvbuf is 006A1A90 [21:27:19]SAM_PROTO_ClearQueue [21:27:19]wFMCommunicate request_size=4 [21:27:19]MH_SAM_APDU [21:27:19]CAPDU: 80 09 00 00 [21:27:19]Write to MH i2c: E2 08 00 19 0F 80 09 00 00 00 00 00 00 9A [21:27:19]Write i2c OK [21:27:19]MH_I2C_Read... [21:27:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:27:19]Read from MH i2c: E2 [21:27:19]MH_I2C_Read... [21:27:19]Read from MH i2c: E2 03 00 [21:27:19]MH_I2C_Read... [21:27:19]Read from MH i2c: E2 03 00 19 0F 00 90 00 9C [21:27:19]RAPDU: 90 00 [21:27:19]wFMCommunicate OK [21:27:19]SAM_PROTO_ClearQueue done [21:27:19]KKMCreateOFDPacket [21:27:19]OFDProtocolAddRootSTLVToBuf [21:27:19]FM_MakeSignedData [21:27:19]FM_MakeSignedData [21:27:19]SAM_PROTO_SignData [21:27:19]wFMCommunicate request_size=4 [21:27:19]MH_SAM_APDU [21:27:19]CAPDU: 80 0D 01 02 [21:27:19]Write to MH i2c: E2 08 00 1A 0F 80 0D 01 02 00 00 00 00 A2 [21:27:19]Write i2c OK [21:27:19]MH_I2C_Read... [21:27:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:27:19]Read from MH i2c: E2 [21:27:19]MH_I2C_Read... [21:27:19]Read from MH i2c: E2 03 00 [21:27:19]MH_I2C_Read... [21:27:19]Read from MH i2c: E2 03 00 1A 0F 00 90 00 9D [21:27:19]RAPDU: 90 00 [21:27:19]wFMCommunicate OK [21:27:19]wFMCommunicate request_size=255 [21:27:19]MH_SAM_APDU [21:27: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 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 B6 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 00 00 00 00 00 00 39 04 06 00 B6 5F 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 37 F0 75 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 2F 97 01 00 35 04 06 00 AF [21:27:19]Write to MH i2c: E2 02 01 1B 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 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 B6 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 00 00 00 00 00 00 39 04 06 00 B6 5F 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 37 F0 75 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 2F 97 01 00 35 04 06 00 AF 00 00 46 [21:27:19]Write i2c OK [21:27:19]MH_I2C_Read... [21:27:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:27:19]Read from MH i2c: E2 [21:27:19]MH_I2C_Read... [21:27:19]Read from MH i2c: E2 03 00 [21:27:19]MH_I2C_Read... [21:27:19]Read from MH i2c: E2 03 00 1B 0F 00 90 00 9E [21:27:19]RAPDU: 90 00 [21:27:19]wFMCommunicate OK [21:27:19]wFMCommunicate request_size=10 [21:27:19]MH_SAM_APDU [21:27:19]CAPDU: 80 0D 02 02 05 99 04 DF 4F 5A [21:27:19]Write to MH i2c: E2 0D 00 1C 0F 80 0D 02 02 05 00 99 04 DF 4F 5A 00 00 D4 [21:27:19]Write i2c OK [21:27:19]MH_I2C_Read... [21:27:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:27:19]Read from MH i2c: E2 [21:27:19]MH_I2C_Read... [21:27:19]Read from MH i2c: E2 03 00 [21:27:19]MH_I2C_Read... [21:27:19]Read from MH i2c: E2 03 00 1C 0F 00 90 00 9F [21:27:19]RAPDU: 90 00 [21:27:19]wFMCommunicate OK [21:27:19]wFMCommunicate request_size=4 [21:27:19]MH_SAM_APDU [21:27:19]CAPDU: 80 0D 03 02 [21:27:19]Write to MH i2c: E2 08 00 1D 0F 80 0D 03 02 00 00 00 00 A7 [21:27:19]Write i2c OK [21:27:19]MH_I2C_Read... [21:27:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:27:19]Read from MH i2c: E2 [21:27:19]MH_I2C_Read... [21:27:19]Read from MH i2c: E2 0B 00 [21:27:19]MH_I2C_Read... [21:27:19]Read from MH i2c: E2 0B 00 1D 0F 00 8B E7 98 94 5D 68 09 6E 90 00 82 [21:27:19]RAPDU: 8B E7 98 94 5D 68 09 6E 90 00 [21:27:19]wFMCommunicate OK [21:27:19]SAM_PROTO_SignData done [21:27:19]FM_MakeSignedData done [21:27:19]CreateOFDProtocolMessage [21:27:19]wFMCommunicate request_size=4 [21:27:19]MH_SAM_APDU [21:27:19]CAPDU: 80 11 00 00 [21:27:19]Write to MH i2c: E2 08 00 1E 0F 80 11 00 00 00 00 00 00 A7 [21:27:19]Write i2c OK [21:27:19]MH_I2C_Read... [21:27:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:27:19]Read from MH i2c: E2 [21:27:19]MH_I2C_Read... [21:27:19]Read from MH i2c: E2 17 00 [21:27:19]MH_I2C_Read... [21:27:19]Read from MH i2c: E2 17 00 1E 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 FA [21: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 [21:27:19]wFMCommunicate OK [21:27:19]CreateOFDProtocolMessage done [21:27:19]OFDSenderStorePacket 104239 [21:27:19]StoreOFDPacket docnum=104239 [21: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 E2 7B 07 01 A0 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 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 B6 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 00 00 00 00 00 00 39 04 06 00 B6 5F 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 37 F0 75 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 2F 97 01 00 35 04 06 00 AF 99 04 DF 4F 5A 8B E7 98 94 5D 68 09 6E [21:27:19]CheckFolder [21:27:19]dirname=/storage/ofd_packets [21:27:19]CheckFolder done [21:27:19]ProducePacketName [21:27:19]name=ofd_packets/00104239 [21:27:19]NVStorageSaveData ofd_packets/00104239 [21:27:19]File name is /storage/ofd_packets/00104239 [21:27:19]Write 301 bytes [21:27:19]NVStorageSaveData done [21:27:19]OFDSenderStorePacket done [21:27:19]KKMCreateOFDPacket done [21:27:19]NVStorageSaveData kkm_last_timestamp [21:27:19]File name is /storage/kkm_last_timestamp [21:27:19]Write 4 bytes [21:27:19]NVStorageSaveData done [21:27:19]ExternCall_PrintAddStr [21:27:19]wPrintStart [21:27:19]Write to MH i2c: 01 00 00 1F 0F 2E [21:27:19]Write i2c OK [21:27:19]MH_I2C_Read... [21:27:19]Read from MH i2c: 01 [21:27:19]MH_I2C_Read... [21:27:19]Read from MH i2c: 01 07 00 [21:27:19]MH_I2C_Read... [21:27:19]Read from MH i2c: 01 07 00 1F 0F 00 00 00 00 00 FF 0F 43 [21:27:19]RasterBufferAndPrint [21:27:19]line Счет N : (1)673721 [21:27:19]line ИНН: 02508201610067 [21:27:19]line Контрольно-Кассовый Чек [21:27:19]line ПРОДАЖА [21:27:19]line ТРК (МРК, ГНК) : 32 [21:27:19]line Товар: 2710124130 [21:27:19]line Аи-92-К-5 [21:27:19]line 13.560 * 66.40 [21:27:19]line = 900.38 [21:27:19]line НДС 12% НСП 1% [21:27:19]line > о реализуемом товаре [21:27:19]line ИТОГО: 900.38 [21:27:19]line НСП 1% : 7.97 [21:27:19]line НДС 12% : 95.62 [21:27:19]line Наличными: 0.00 [21:27:19]line Безнал.: 900.38 [21:27:19]line Место: АЗС № 120 "Партнер Нефть" [21:27:19]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [21:27:19]line СНО: Общий режим [21:27:19]line Чек 162 21.06.2024 21:27 [21:27:19]line Смена: 355 ФФД: 1.0 [21:27:19]line ЗНМ: 0300000164 [21:27:19]line РНМ: 0000000000092785 [21:27:19]line Версия ККМ: 001 [21:27:19]line Платежная система: Бакай Банк [21:27:19]line ФМ: 0000000000875093 [21:27:19]line ФД: 104239 [21:27:19]line ФПД: 193071746600794 [21:27:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T212719&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104239&fm=193071746600794&tin=02508201610067®Number=0000000000092785&sum=90038 [21:27:19]OFD Sender: Processing packet 104239 [packets to send 17, broken 16] [21:27:19]ProducePacketName [21:27:19]name=ofd_packets/00104239 [21:27:19]OFD Sender: To server: pG, [21:27:19]CommunicateWithHost lk.salyk.kg:30040 [21:27:19]ConnectInit lk.salyk.kg [21:27:19]written 0, free lines is 4095 [21:27:19]Connected sock=10 [21: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 E2 7B 07 01 A0 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 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 B6 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 00 00 00 00 00 00 39 04 06 00 B6 5F 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 37 F0 75 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 2F 97 01 00 35 04 06 00 AF 99 04 DF 4F 5A 8B E7 98 94 5D 68 09 6E [21:27:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 C7 40 47 00 3F 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 2F 97 01 00 F4 03 04 00 B8 96 75 66 B6 04 01 00 00 C4 FE 1A 6A 6F D9 54 F8 [21:27:20]CommunicateWithHost err = 0 [21:27:20]CheckOFDResponse [21:27:20]1017 (14) - 77093643461234 [21:27:20]1041 (16) - 0000000000875093 [21:27:20]1040 (4) - 104239 [21:27:20]1012 (4) - 21.06.2024 15:05 [21:27:20]1206 (1) - 0 [21:27:20]OFD Sender: Remove packet 104239 [21:27:20]ProducePacketName [21:27:20]name=ofd_packets/00104239 [21:27:20]NVStorageDeleteData [21:27:20]Write to MH i2c: 01 00 00 49 0F 58 [21:27:20]Write i2c OK [21:27:20]MH_I2C_Read... [21:27:20]Read from MH i2c: 01 [21:27:20]MH_I2C_Read... [21:27:20]Read from MH i2c: 01 07 00 [21:27:20]MH_I2C_Read... [21:27:20]Read from MH i2c: 01 07 00 49 0F 00 00 00 00 00 EE 0C 59 [21:27:20]RasterBufferAndPrint [21:27:20]line [21:27:20]line [21:27:20]line [21:27:20]line [21:27:20]line [21:27:20]written 0, free lines is 3317 [21:27:20]MH_Cut [21:27:20]Write to MH i2c: D1 01 00 50 0F 01 31 [21:27:20]Write i2c OK [21:27:20]MH_I2C_Read... [21:27:20]Read from MH i2c: D1 [21:27:20]MH_I2C_Read... [21:27:20]Read from MH i2c: D1 01 00 [21:27:20]MH_I2C_Read... [21:27:20]Read from MH i2c: D1 01 00 50 0F 00 30 [21:27:20]Write to MH i2c: 01 00 00 51 0F 60 [21:27:20]Write i2c OK [21:27:20]MH_I2C_Read... [21:27:20]OFD Sender: No OFD packet to send [21:27:21]*** Cut start [21:27:21]*** Partial cut [21:27:21]*** CUTSNS_PIN = 1 [21:27:21]*** CUTSNS_PIN = 0 [21:27:21]*** Brake cut motor [21:27:21]Read from MH i2c: 01 [21:27:21]MH_I2C_Read... [21:27:21]*** Stop cut motor [21:27:21]*** Cut end [21:27:21]Read from MH i2c: 01 07 00 [21:27:21]MH_I2C_Read... [21:27:21]Read from MH i2c: 01 07 00 51 0F 00 00 00 00 00 FF 0F 75 [21:27:21]process_action close_receipt done [21:27:21]requested_data is exist [21:27:21]produce_requested_data [21:27:21]requested_item fm.sn is exist - process it [21:27:21]wFMCommunicate request_size=4 [21:27:21]MH_SAM_APDU [21:27:21]CAPDU: 80 11 00 00 [21:27:21]Write to MH i2c: E2 08 00 52 0F 80 11 00 00 00 00 00 00 DB [21:27:21]Write i2c OK [21:27:21]MH_I2C_Read... [21:27:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:27:21]Read from MH i2c: E2 [21:27:21]MH_I2C_Read... [21:27:21]Read from MH i2c: E2 17 00 [21:27:21]MH_I2C_Read... [21:27:21]Read from MH i2c: E2 17 00 52 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 2E [21: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 [21:27:21]wFMCommunicate OK [21:27:21]requested_item fd.num is exist - process it [21:27:21]SAM_PROTO_GetFieldsCounters [21:27:21]wFMCommunicate request_size=4 [21:27:21]MH_SAM_APDU [21:27:21]CAPDU: 80 13 00 00 [21:27:21]Write to MH i2c: E2 08 00 53 0F 80 13 00 00 00 00 00 00 DE [21:27:21]Write i2c OK [21:27:21]MH_I2C_Read... [21:27:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:27:21]Read from MH i2c: E2 [21:27:21]MH_I2C_Read... [21:27:21]Read from MH i2c: E2 62 00 [21:27:21]MH_I2C_Read... [21:27:21]Read from MH i2c: E2 62 00 53 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 2F 97 01 00 0E 04 04 00 63 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 [21: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 2F 97 01 00 0E 04 04 00 63 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 [21:27:21]wFMCommunicate OK [21:27:21]SAM_PROTO_GetFieldsCounters done [21:27:21]requested_item shift.num is exist - process it [21:27:21]requested_item shift.opened is exist - process it [21:27:21]req_shift_opened [21:27:21]FM_GetShiftState [21:27:21]SAM_PROTO_GetShiftState [21:27:21]wFMCommunicate request_size=4 [21:27:21]MH_SAM_APDU [21:27:21]CAPDU: 80 13 01 00 [21:27:21]Write to MH i2c: E2 08 00 54 0F 80 13 01 00 00 00 00 00 E0 [21:27:21]Write i2c OK [21:27:21]MH_I2C_Read... [21:27:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:27:21]Read from MH i2c: E2 [21:27:21]MH_I2C_Read... [21:27:21]Read from MH i2c: E2 0E 00 [21:27:21]MH_I2C_Read... [21:27:21]Read from MH i2c: E2 0E 00 54 0F 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 F3 [21:27:21]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [21:27:21]wFMCommunicate OK [21:27:21]SAM_PROTO_GetShiftState done [21:27:21]FM_GetShiftState done [21:27:21]req_shift_opened done [21:27:21]requested_item shift.open_date is exist - process it [21:27:21]req_shift_open_date [21:27:21]req_shift_open_date done [21:27:21]produce_requested_data done [21:27:21]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104239,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [21:27:21]process_action_free close_receipt [21:27:21]json_value_free [21:27:21]json_value_free done [21:27:21]process_json_proto returns [21:27:21]Send response to host [21:27:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104239,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [21:27:21]free response buf [21:27:21]execute_script done [21:27:21]execute_script returns [21:27:21]free content buf [21:27:21]Sock 7.Close socket [21:27:21]Sock 7.Thread stoped [21:27:25]OFD Sender: No OFD packet to send [21:27:30]OFD Sender: No OFD packet to send [21:27:35]OFD Sender: No OFD packet to send [21:27:40]OFD Sender: No OFD packet to send [21:27:45]OFD Sender: No OFD packet to send [21:27:50]OFD Sender: No OFD packet to send [21:27:55]OFD Sender: No OFD packet to send [21:28:00]OFD Sender: No OFD packet to send [21:28:05]OFD Sender: No OFD packet to send [21:28:10]OFD Sender: No OFD packet to send [21:28:15]OFD Sender: No OFD packet to send [21:28:20]OFD Sender: No OFD packet to send [21:28:25]OFD Sender: No OFD packet to send [21:28:30]OFD Sender: No OFD packet to send [21:28:35]OFD Sender: No OFD packet to send [21:28:40]OFD Sender: No OFD packet to send [21:28:45]OFD Sender: No OFD packet to send [21:28:50]OFD Sender: No OFD packet to send [21:28:55]OFD Sender: No OFD packet to send [21:29:00]OFD Sender: No OFD packet to send [21:29:05]OFD Sender: No OFD packet to send [21:29:10]OFD Sender: No OFD packet to send [21:29:15]OFD Sender: No OFD packet to send [21:29:20]OFD Sender: No OFD packet to send [21:29:25]OFD Sender: No OFD packet to send [21:29:30]OFD Sender: No OFD packet to send [21:29:35]OFD Sender: No OFD packet to send [21:29:40]OFD Sender: No OFD packet to send [21:29:45]OFD Sender: No OFD packet to send [21:29:50]OFD Sender: No OFD packet to send [21:29:55]OFD Sender: No OFD packet to send [21:29:59]accept exits with 9 [21:29:59]New connection [21:29:59]New thread 3067473252 created [21:29:59]Thread 3067616612 joined [21:29:59]Waiting for new connection... [21:29:59] Sock 9.Parse request [21:29:59]Sock 9.Check first char [21:29:59]Sock 9.First char is OK [21:29:59]request: POST /json_proto HTTP/1.0 [21:29:59]Method: POST [21:29:59]URL: /json_proto [21:29:59]Method is POST - this is cgi request [21:29:59]url: /json_proto [21:29:59]query_string will be loaded in cgi processing [21:29:59]execute_cgi json_proto POST (null) [21:29:59]execute_cgi path=json_proto method=POST [21:29:59]POST find Content-Length [21:29:59]Host: 172.17.38.133:8080 [21:29:59]Content-Length: 677 [21:29:59]Content-Type: application/json [21:29:59] [21:29:59]POST finish read [21:29:59]Found Content-Length = 677 [21:29:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673723", "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" ] } } [21:29:59]execute_script... [21:29: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)673723", "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" ] } } [21:29:59]POST & json_proto [21:29:59]process_json_proto [21:29:59]json parsed OK: [21:29:59]protocol is kg_v1.0 [21:29:59]action value=close_receipt [21:29:59]process_action close_receipt [21:29:59]cmd_close_receipt [21:29:59]MH_GetDate [21:29:59]Write to MH i2c: F0 00 00 55 0F 53 [21:29:59]Write i2c OK [21:29:59]MH_I2C_Read... [21:29:59]Read from MH i2c: F0 [21:29:59]MH_I2C_Read... [21:29:59]Read from MH i2c: F0 09 00 [21:29:59]MH_I2C_Read... [21:29:59]Read from MH i2c: F0 09 00 55 0F 00 D9 F0 75 66 BD 8F 7C 64 2C [21:29:59]GetLastDocTimeStamp 1719005239 [21:29:59]current date 1719005401 [21:29:59]FM_GetShiftState [21:29:59]SAM_PROTO_GetShiftState [21:29:59]wFMCommunicate request_size=4 [21:29:59]MH_SAM_APDU [21:29:59]CAPDU: 80 13 01 00 [21:29:59]Write to MH i2c: E2 08 00 56 0F 80 13 01 00 00 00 00 00 E2 [21:29:59]Write i2c OK [21:29:59]MH_I2C_Read... [21:29:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:29:59]Read from MH i2c: E2 [21:29:59]MH_I2C_Read... [21:29:59]Read from MH i2c: E2 0E 00 [21:29:59]MH_I2C_Read... [21:29:59]Read from MH i2c: E2 0E 00 56 0F 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 F5 [21:29:59]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [21:29:59]wFMCommunicate OK [21:29:59]SAM_PROTO_GetShiftState done [21:29:59]FM_GetShiftState done [21:29:59]opened in 1718929509 [21:29:59]opened+sec_in_day 1719015909 [21:29:59]quantity*price = 40039 [21:29:59]sum+1 = 40040 [21:29:59]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 СНО: Общий режим Чек 163 21.06.2024 21:30 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104240 ФПД: 210846145283989 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T213001&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104240&fm=210846145283989&tin=02508201610067®Number=0000000000092785&sum=40000 [21:30:00]StoreToDocumentArchive [21:30:00]shift 355 fd 104240 [21:30:00]save to /storage/0355/doc_00104240 [21:30:00]save last doc name /storage/0355/doc_00104240 to /storage/kkm_last_doc_name [21:30:00]save OK [21:30:00]Clear old archive folders... [21:30:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:30:00]tlvbuf is B6FF7440 [21:30:00]SAM_PROTO_ClearQueue [21:30:00]wFMCommunicate request_size=4 [21:30:00]MH_SAM_APDU [21:30:00]CAPDU: 80 09 00 00 [21:30:00]Write to MH i2c: E2 08 00 63 0F 80 09 00 00 00 00 00 00 E4 [21:30:00]Write i2c OK [21:30:00]MH_I2C_Read... [21:30:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:30:00]Read from MH i2c: E2 [21:30:00]MH_I2C_Read... [21:30:00]Read from MH i2c: E2 03 00 [21:30:00]MH_I2C_Read... [21:30:00]Read from MH i2c: E2 03 00 63 0F 00 90 00 E6 [21:30:00]RAPDU: 90 00 [21:30:00]wFMCommunicate OK [21:30:00]SAM_PROTO_ClearQueue done [21:30:00]KKMCreateOFDPacket [21:30:00]OFDProtocolAddRootSTLVToBuf [21:30:00]FM_MakeSignedData [21:30:00]FM_MakeSignedData [21:30:00]SAM_PROTO_SignData [21:30:00]wFMCommunicate request_size=4 [21:30:00]MH_SAM_APDU [21:30:00]CAPDU: 80 0D 01 02 [21:30:00]Write to MH i2c: E2 08 00 64 0F 80 0D 01 02 00 00 00 00 EC [21:30:00]Write i2c OK [21:30:00]MH_I2C_Read... [21:30:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:30:00]Read from MH i2c: E2 [21:30:00]MH_I2C_Read... [21:30:00]Read from MH i2c: E2 03 00 [21:30:00]MH_I2C_Read... [21:30:00]Read from MH i2c: E2 03 00 64 0F 00 90 00 E7 [21:30:00]RAPDU: 90 00 [21:30:00]wFMCommunicate OK [21:30:00]wFMCommunicate request_size=255 [21:30:00]MH_SAM_APDU [21:30: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 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 A3 00 00 00 F4 03 04 00 D9 F0 75 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 30 97 01 00 35 04 06 00 BF [21:30:00]Write to MH i2c: E2 02 01 65 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 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 A3 00 00 00 F4 03 04 00 D9 F0 75 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 30 97 01 00 35 04 06 00 BF 00 00 A6 [21:30:01]Write i2c OK [21:30:01]MH_I2C_Read... [21:30:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:30:01]Read from MH i2c: E2 [21:30:01]MH_I2C_Read... [21:30:01]Read from MH i2c: E2 03 00 [21:30:01]MH_I2C_Read... [21:30:01]Read from MH i2c: E2 03 00 65 0F 00 90 00 E8 [21:30:01]RAPDU: 90 00 [21:30:01]wFMCommunicate OK [21:30:01]wFMCommunicate request_size=10 [21:30:01]MH_SAM_APDU [21:30:01]CAPDU: 80 0D 02 02 05 C3 71 97 87 95 [21:30:01]Write to MH i2c: E2 0D 00 66 0F 80 0D 02 02 05 00 C3 71 97 87 95 00 00 E0 [21:30:01]Write i2c OK [21:30:01]MH_I2C_Read... [21:30:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:30:01]Read from MH i2c: E2 [21:30:01]MH_I2C_Read... [21:30:01]Read from MH i2c: E2 03 00 [21:30:01]MH_I2C_Read... [21:30:01]Read from MH i2c: E2 03 00 66 0F 00 90 00 E9 [21:30:01]RAPDU: 90 00 [21:30:01]wFMCommunicate OK [21:30:01]wFMCommunicate request_size=4 [21:30:01]MH_SAM_APDU [21:30:01]CAPDU: 80 0D 03 02 [21:30:01]Write to MH i2c: E2 08 00 67 0F 80 0D 03 02 00 00 00 00 F1 [21:30:01]Write i2c OK [21:30:01]MH_I2C_Read... [21:30:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:30:01]Read from MH i2c: E2 [21:30:01]MH_I2C_Read... [21:30:01]Read from MH i2c: E2 0B 00 [21:30:01]MH_I2C_Read... [21:30:01]Read from MH i2c: E2 0B 00 67 0F 00 A9 08 DD 5C 97 80 54 23 90 00 6A [21:30:01]RAPDU: A9 08 DD 5C 97 80 54 23 90 00 [21:30:01]wFMCommunicate OK [21:30:01]SAM_PROTO_SignData done [21:30:01]FM_MakeSignedData done [21:30:01]CreateOFDProtocolMessage [21:30:01]wFMCommunicate request_size=4 [21:30:01]MH_SAM_APDU [21:30:01]CAPDU: 80 11 00 00 [21:30:01]Write to MH i2c: E2 08 00 68 0F 80 11 00 00 00 00 00 00 F1 [21:30:01]Write i2c OK [21:30:01]MH_I2C_Read... [21:30:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:30:01]Read from MH i2c: E2 [21:30:01]MH_I2C_Read... [21:30:01]Read from MH i2c: E2 17 00 [21:30:01]MH_I2C_Read... [21:30:01]Read from MH i2c: E2 17 00 68 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 44 [21:30: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:30:01]wFMCommunicate OK [21:30:01]CreateOFDProtocolMessage done [21:30:01]OFDSenderStorePacket 104240 [21:30:01]StoreOFDPacket docnum=104240 [21:30: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 71 42 07 01 65 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 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 A3 00 00 00 F4 03 04 00 D9 F0 75 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 30 97 01 00 35 04 06 00 BF C3 71 97 87 95 A9 08 DD 5C 97 80 54 23 [21:30:01]CheckFolder [21:30:01]dirname=/storage/ofd_packets [21:30:01]CheckFolder done [21:30:01]ProducePacketName [21:30:01]name=ofd_packets/00104240 [21:30:01]NVStorageSaveData ofd_packets/00104240 [21:30:01]File name is /storage/ofd_packets/00104240 [21:30:01]Write 301 bytes [21:30:01]NVStorageSaveData done [21:30:01]OFDSenderStorePacket done [21:30:01]KKMCreateOFDPacket done [21:30:01]NVStorageSaveData kkm_last_timestamp [21:30:01]File name is /storage/kkm_last_timestamp [21:30:01]Write 4 bytes [21:30:01]NVStorageSaveData done [21:30:01]ExternCall_PrintAddStr [21:30:01]wPrintStart [21:30:01]Write to MH i2c: 01 00 00 69 0F 78 [21:30:01]Write i2c OK [21:30:01]MH_I2C_Read... [21:30:01]Read from MH i2c: 01 [21:30:01]MH_I2C_Read... [21:30:01]Read from MH i2c: 01 07 00 [21:30:01]MH_I2C_Read... [21:30:01]Read from MH i2c: 01 07 00 69 0F 00 00 00 00 00 FF 0F 8D [21:30:01]RasterBufferAndPrint [21:30:01]line Счет N : (1)673723 [21:30:01]line ИНН: 02508201610067 [21:30:01]line Контрольно-Кассовый Чек [21:30:01]line ПРОДАЖА [21:30:01]line ТРК (МРК, ГНК) : 42 [21:30:01]line Товар: 2710124130 [21:30:01]line Аи-92-К-5 [21:30:01]line 6.030 * 66.40 [21:30:01]line = 400.39 [21:30:01]line НДС 12% НСП 1% [21:30:01]line > о реализуемом товаре [21:30:01]line ОКРУГЛЕНИЕ: -0.39 [21:30:01]line ИТОГО: 400.00 [21:30:01]line Внесено: 400.00 [21:30:01]line СДАЧА: 0.00 [21:30:01]line НСП 1% : 3.54 [21:30:01]line НДС 12% : 42.52 [21:30:01]line Наличными: 400.00 [21:30:01]line Безнал.: 0.00 [21:30:01]line Место: АЗС № 120 "Партнер Нефть" [21:30:01]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [21:30:01]line СНО: Общий режим [21:30:01]line Чек 163 21.06.2024 21:30 [21:30:01]line Смена: 355 ФФД: 1.0 [21:30:01]line ЗНМ: 0300000164 [21:30:01]line РНМ: 0000000000092785 [21:30:01]line Версия ККМ: 001 [21:30:01]line ФМ: 0000000000875093 [21:30:01]line ФД: 104240 [21:30:01]line ФПД: 210846145283989 [21:30:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T213001&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104240&fm=210846145283989&tin=02508201610067®Number=0000000000092785&sum=40000 [21:30:01]OFD Sender: Processing packet 104240 [packets to send 17, broken 16] [21:30:01]ProducePacketName [21:30:01]name=ofd_packets/00104240 [21:30:01]OFD Sender: To server: pG, [21:30:01]CommunicateWithHost lk.salyk.kg:30040 [21:30:01]ConnectInit lk.salyk.kg [21:30:01]written 0, free lines is 4095 [21:30:01]Connected sock=10 [21:30: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 71 42 07 01 65 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 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 A3 00 00 00 F4 03 04 00 D9 F0 75 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 30 97 01 00 35 04 06 00 BF C3 71 97 87 95 A9 08 DD 5C 97 80 54 23 [21:30:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 32 A2 47 00 8A 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 30 97 01 00 F4 03 04 00 5A 97 75 66 B6 04 01 00 00 D9 94 57 24 EA F8 2C 4F [21:30:02]CommunicateWithHost err = 0 [21:30:02]CheckOFDResponse [21:30:02]1017 (14) - 77093643461234 [21:30:02]1041 (16) - 0000000000875093 [21:30:02]1040 (4) - 104240 [21:30:02]1012 (4) - 21.06.2024 15:08 [21:30:02]1206 (1) - 0 [21:30:02]OFD Sender: Remove packet 104240 [21:30:02]ProducePacketName [21:30:02]name=ofd_packets/00104240 [21:30:02]NVStorageDeleteData [21:30:02]Write to MH i2c: 01 00 00 94 0F A3 [21:30:02]Write i2c OK [21:30:02]MH_I2C_Read... [21:30:02]Read from MH i2c: 01 [21:30:02]MH_I2C_Read... [21:30:02]Read from MH i2c: 01 07 00 [21:30:02]MH_I2C_Read... [21:30:02]Read from MH i2c: 01 07 00 94 0F 00 00 00 00 00 DD 0C 93 [21:30:02]RasterBufferAndPrint [21:30:02]line [21:30:02]line [21:30:02]line [21:30:02]line [21:30:02]line [21:30:02]written 0, free lines is 3299 [21:30:02]MH_Cut [21:30:02]Write to MH i2c: D1 01 00 9B 0F 01 7C [21:30:02]Write i2c OK [21:30:02]MH_I2C_Read... [21:30:02]Read from MH i2c: D1 [21:30:02]MH_I2C_Read... [21:30:02]Read from MH i2c: D1 01 00 [21:30:02]MH_I2C_Read... [21:30:02]Read from MH i2c: D1 01 00 9B 0F 00 7B [21:30:02]Write to MH i2c: 01 00 00 9C 0F AB [21:30:02]Write i2c OK [21:30:02]MH_I2C_Read... [21:30:02]OFD Sender: No OFD packet to send [21:30:02]*** Cut start [21:30:02]*** Partial cut [21:30:02]*** CUTSNS_PIN = 1 [21:30:03]*** CUTSNS_PIN = 0 [21:30:03]*** Brake cut motor [21:30:03]Read from MH i2c: 01 [21:30:03]MH_I2C_Read... [21:30:03]*** Stop cut motor [21:30:03]*** Cut end [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 9C 0F 00 00 00 00 00 FF 0F C0 [21:30:03]process_action close_receipt done [21:30:03]requested_data is exist [21:30:03]produce_requested_data [21:30:03]requested_item fm.sn is exist - process it [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 9D 0F 80 11 00 00 00 00 00 00 26 [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 9D 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 79 [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]requested_item fd.num is exist - process it [21:30:03]SAM_PROTO_GetFieldsCounters [21:30:03]wFMCommunicate request_size=4 [21:30:03]MH_SAM_APDU [21:30:03]CAPDU: 80 13 00 00 [21:30:03]Write to MH i2c: E2 08 00 9E 0F 80 13 00 00 00 00 00 00 29 [21:30:03]Write i2c OK [21:30:03]MH_I2C_Read... [21:30:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:30:03]Read from MH i2c: E2 [21:30:03]MH_I2C_Read... [21:30:03]Read from MH i2c: E2 62 00 [21:30:03]MH_I2C_Read... [21:30:03]Read from MH i2c: E2 62 00 9E 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 30 97 01 00 0E 04 04 00 63 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 65 [21:30: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 30 97 01 00 0E 04 04 00 63 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 [21:30:03]wFMCommunicate OK [21:30:03]SAM_PROTO_GetFieldsCounters done [21:30:03]requested_item shift.num is exist - process it [21:30:03]requested_item shift.opened is exist - process it [21:30:03]req_shift_opened [21:30:03]FM_GetShiftState [21:30:03]SAM_PROTO_GetShiftState [21:30:03]wFMCommunicate request_size=4 [21:30:03]MH_SAM_APDU [21:30:03]CAPDU: 80 13 01 00 [21:30:03]Write to MH i2c: E2 08 00 9F 0F 80 13 01 00 00 00 00 00 2B [21:30:03]Write i2c OK [21:30:03]MH_I2C_Read... [21:30:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:30:03]Read from MH i2c: E2 [21:30:03]MH_I2C_Read... [21:30:03]Read from MH i2c: E2 0E 00 [21:30:03]MH_I2C_Read... [21:30:03]Read from MH i2c: E2 0E 00 9F 0F 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 3E [21:30:03]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [21:30:03]wFMCommunicate OK [21:30:03]SAM_PROTO_GetShiftState done [21:30:03]FM_GetShiftState done [21:30:03]req_shift_opened done [21:30:03]requested_item shift.open_date is exist - process it [21:30:03]req_shift_open_date [21:30:03]req_shift_open_date done [21:30:03]produce_requested_data done [21:30:03]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104240,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [21:30:03]process_action_free close_receipt [21:30:03]json_value_free [21:30:03]json_value_free done [21:30:03]process_json_proto returns [21:30:03]Send response to host [21:30:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104240,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [21:30:03]free response buf [21:30:03]execute_script done [21:30:03]execute_script returns [21:30:03]free content buf [21:30:03]Sock 9.Close socket [21:30:03]Sock 9.Thread stoped [21:30:07]OFD Sender: No OFD packet to send [21:30:12]OFD Sender: No OFD packet to send [21:30:17]OFD Sender: No OFD packet to send [21:30:22]OFD Sender: No OFD packet to send [21:30:27]OFD Sender: No OFD packet to send [21:30:32]OFD Sender: No OFD packet to send [21:30:36]accept exits with 7 [21:30:36]New connection [21:30:36]New thread 3067616612 created [21:30:36]Thread 3067473252 joined [21:30:36]Waiting for new connection... [21:30:36] Sock 7.Parse request [21:30:36]Sock 7.Check first char [21:30:36]Sock 7.First char is OK [21:30:36]request: POST /json_proto HTTP/1.0 [21:30:36]Method: POST [21:30:36]URL: /json_proto [21:30:36]Method is POST - this is cgi request [21:30:36]url: /json_proto [21:30:36]query_string will be loaded in cgi processing [21:30:36]execute_cgi json_proto POST (null) [21:30:36]execute_cgi path=json_proto method=POST [21:30:36]POST find Content-Length [21:30:36]Host: 172.17.38.133:8080 [21:30:36]Content-Length: 1195 [21:30:36]Content-Type: application/json [21:30:36] [21:30:36]POST finish read [21:30:36]Found Content-Length = 1195 [21:30: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 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)673722\u000A21.06.2024 21:07\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\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A54650\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:30:36]execute_script... [21:30: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 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)673722\u000A21.06.2024 21:07\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\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A54650\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:30:36]POST & json_proto [21:30:36]process_json_proto [21:30:36]json parsed OK: [21:30:36]protocol is kg_v1.0 [21:30:36]action value=print_text [21:30:36]process_action print_text [21:30:36]cmd_print_text [21:30:36]ExternCall_PrintAddStr [21:30:36]wPrintStart [21:30:36]Write to MH i2c: 01 00 00 A0 0F AF [21:30:36]Write i2c OK [21:30:36]MH_I2C_Read... [21:30:36]Read from MH i2c: 01 [21:30:36]MH_I2C_Read... [21:30:36]Read from MH i2c: 01 07 00 [21:30:36]MH_I2C_Read... [21:30:36]Read from MH i2c: 01 07 00 A0 0F 00 00 00 00 00 FF 0F C4 [21:30:36]RasterBufferAndPrint [21:30:36]line *****ТОВАРНЫЙ ЧЕК***** [21:30:36]line АЗС 120 [21:30:36]line Партнер нефть [21:30:36]line 02508201610067 [21:30:36]line Кассир : Асанбаев Н. [21:30:36]line Счет N : (1)673722 [21:30:36]line 21.06.2024 21:07 [21:30:36]line ПРОДАЖА [21:30:36]line ТРК (МРК, ГНК): 32 [21:30:36]line Вид ГСМ : 2710124130 [21:30:36]line Аи-92-К-5 [21:30:36]line 20.000 x 66.40 [21:30:36]line ИТОГ: 1328.00 [21:30:36]line Тип оплаты: Талоны: Топливная Карта [21:30:36]line 54650 [21:30:36]line ______________________ [21:30:36]line (подпись) [21:30:36]written 0, free lines is 4095 [21:30:36]Write to MH i2c: 01 00 00 B4 0F C3 [21:30:36]Write i2c OK [21:30:36]MH_I2C_Read... [21:30:36]Read from MH i2c: 01 [21:30:36]MH_I2C_Read... [21:30:36]Read from MH i2c: 01 07 00 [21:30:36]MH_I2C_Read... [21:30:36]Read from MH i2c: 01 07 00 B4 0F 00 00 00 00 00 10 0E E8 [21:30:36]RasterBufferAndPrint [21:30:36]line [21:30:36]line [21:30:36]line [21:30:36]line [21:30:36]line [21:30:36]written 0, free lines is 3601 [21:30:36]MH_Cut [21:30:36]Write to MH i2c: D1 01 00 BB 0F 01 9C [21:30:36]Write i2c OK [21:30:36]MH_I2C_Read... [21:30:36]Read from MH i2c: D1 [21:30:36]MH_I2C_Read... [21:30:36]Read from MH i2c: D1 01 00 [21:30:36]MH_I2C_Read... [21:30:36]Read from MH i2c: D1 01 00 BB 0F 00 9B [21:30:36]Write to MH i2c: 01 00 00 BC 0F CB [21:30:36]Write i2c OK [21:30:36]MH_I2C_Read... [21:30:37]*** Cut start [21:30:37]*** Partial cut [21:30:37]*** CUTSNS_PIN = 1 [21:30:37]*** CUTSNS_PIN = 0 [21:30:37]*** Brake cut motor [21:30:37]OFD Sender: No OFD packet to send [21:30:37]Read from MH i2c: 01 [21:30:37]MH_I2C_Read... [21:30:37]*** Stop cut motor [21:30:37]*** Cut end [21:30:37]Read from MH i2c: 01 07 00 [21:30:37]MH_I2C_Read... [21:30:37]Read from MH i2c: 01 07 00 BC 0F 00 00 00 00 00 FF 0F E0 [21:30:37]process_action print_text done [21:30:37]requested_data is exist [21:30:37]produce_requested_data [21:30:37]requested_item fm.sn is exist - process it [21:30:37]wFMCommunicate request_size=4 [21:30:37]MH_SAM_APDU [21:30:37]CAPDU: 80 11 00 00 [21:30:37]Write to MH i2c: E2 08 00 BD 0F 80 11 00 00 00 00 00 00 46 [21:30:37]Write i2c OK [21:30:37]MH_I2C_Read... [21:30:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:30:37]Read from MH i2c: E2 [21:30:37]MH_I2C_Read... [21:30:37]Read from MH i2c: E2 17 00 [21:30:37]MH_I2C_Read... [21:30:37]Read from MH i2c: E2 17 00 BD 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 99 [21:30:37]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:37]wFMCommunicate OK [21:30:37]requested_item fd.num is exist - process it [21:30:37]SAM_PROTO_GetFieldsCounters [21:30:37]wFMCommunicate request_size=4 [21:30:37]MH_SAM_APDU [21:30:37]CAPDU: 80 13 00 00 [21:30:37]Write to MH i2c: E2 08 00 BE 0F 80 13 00 00 00 00 00 00 49 [21:30:37]Write i2c OK [21:30:37]MH_I2C_Read... [21:30:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:30:37]Read from MH i2c: E2 [21:30:37]MH_I2C_Read... [21:30:37]Read from MH i2c: E2 62 00 [21:30:37]MH_I2C_Read... [21:30:37]Read from MH i2c: E2 62 00 BE 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 30 97 01 00 0E 04 04 00 63 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 85 [21:30: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 30 97 01 00 0E 04 04 00 63 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 [21:30:37]wFMCommunicate OK [21:30:37]SAM_PROTO_GetFieldsCounters done [21:30:37]requested_item shift.num is exist - process it [21:30:37]requested_item shift.opened is exist - process it [21:30:37]req_shift_opened [21:30:37]FM_GetShiftState [21:30:37]SAM_PROTO_GetShiftState [21:30:37]wFMCommunicate request_size=4 [21:30:37]MH_SAM_APDU [21:30:37]CAPDU: 80 13 01 00 [21:30:37]Write to MH i2c: E2 08 00 BF 0F 80 13 01 00 00 00 00 00 4B [21:30:37]Write i2c OK [21:30:37]MH_I2C_Read... [21:30:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:30:38]Read from MH i2c: E2 [21:30:38]MH_I2C_Read... [21:30:38]Read from MH i2c: E2 0E 00 [21:30:38]MH_I2C_Read... [21:30:38]Read from MH i2c: E2 0E 00 BF 0F 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 5E [21:30:38]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [21:30:38]wFMCommunicate OK [21:30:38]SAM_PROTO_GetShiftState done [21:30:38]FM_GetShiftState done [21:30:38]req_shift_opened done [21:30:38]requested_item shift.open_date is exist - process it [21:30:38]req_shift_open_date [21:30:38]req_shift_open_date done [21:30:38]produce_requested_data done [21:30:38]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104240,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [21:30:38]process_action_free print_text [21:30:38]json_value_free [21:30:38]json_value_free done [21:30:38]process_json_proto returns [21:30:38]Send response to host [21:30:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104240,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [21:30:38]free response buf [21:30:38]execute_script done [21:30:38]execute_script returns [21:30:38]free content buf [21:30:38]Sock 7.Close socket [21:30:38]Sock 7.Thread stoped [21:30:42]OFD Sender: No OFD packet to send [21:30:47]OFD Sender: No OFD packet to send [21:30:52]OFD Sender: No OFD packet to send [21:30:57]OFD Sender: No OFD packet to send [21:31:02]OFD Sender: No OFD packet to send [21:31:07]OFD Sender: No OFD packet to send [21:31:12]OFD Sender: No OFD packet to send [21:31:17]OFD Sender: No OFD packet to send [21:31:22]OFD Sender: No OFD packet to send [21:31:27]OFD Sender: No OFD packet to send [21:31:32]OFD Sender: No OFD packet to send [21:31:37]OFD Sender: No OFD packet to send [21:31:42]OFD Sender: No OFD packet to send [21:31:47]accept exits with 9 [21:31:47]New connection [21:31:47]New thread 3067473252 created [21:31:47]Thread 3067616612 joined [21:31:47]Waiting for new connection... [21:31:47] Sock 9.Parse request [21:31:47]Sock 9.Check first char [21:31:47]Sock 9.First char is OK [21:31:47]request: POST /json_proto HTTP/1.0 [21:31:47]Method: POST [21:31:47]URL: /json_proto [21:31:47]Method is POST - this is cgi request [21:31:47]url: /json_proto [21:31:47]query_string will be loaded in cgi processing [21:31:47]execute_cgi json_proto POST (null) [21:31:47]execute_cgi path=json_proto method=POST [21:31:47]POST find Content-Length [21:31:47]Host: 172.17.38.133:8080 [21:31:47]Content-Length: 682 [21:31:47]Content-Type: application/json [21:31:47] [21:31:47]POST finish read [21:31:47]Found Content-Length = 682 [21:31:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673724", "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" : 19.580, "sum" : 1300.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1300.00, "total" : 1300.00, "payments": [ { "type": 0, "sum" : 1300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:31:47]execute_script... [21:31: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)673724", "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" : 19.580, "sum" : 1300.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1300.00, "total" : 1300.00, "payments": [ { "type": 0, "sum" : 1300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:31:47]POST & json_proto [21:31:47]process_json_proto [21:31:47]json parsed OK: [21:31:47]protocol is kg_v1.0 [21:31:47]action value=close_receipt [21:31:47]process_action close_receipt [21:31:47]cmd_close_receipt [21:31:47]MH_GetDate [21:31:47]Write to MH i2c: F0 00 00 C0 0F BE [21:31:47]Write i2c OK [21:31:47]MH_I2C_Read... [21:31:47]Read from MH i2c: F0 [21:31:47]MH_I2C_Read... [21:31:47]Read from MH i2c: F0 09 00 [21:31:47]MH_I2C_Read... [21:31:47]Read from MH i2c: F0 09 00 C0 0F 00 45 F1 75 66 BD 8F 7C 64 04 [21:31:47]GetLastDocTimeStamp 1719005401 [21:31:47]current date 1719005509 [21:31:47]FM_GetShiftState [21:31:47]SAM_PROTO_GetShiftState [21:31:47]wFMCommunicate request_size=4 [21:31:47]MH_SAM_APDU [21:31:47]CAPDU: 80 13 01 00 [21:31:47]Write to MH i2c: E2 08 00 C1 0F 80 13 01 00 00 00 00 00 4D [21:31:47]Write i2c OK [21:31:47]MH_I2C_Read... [21:31:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:31:47]Read from MH i2c: E2 [21:31:47]MH_I2C_Read... [21:31:47]Read from MH i2c: E2 0E 00 [21:31:47]MH_I2C_Read... [21:31:47]Read from MH i2c: E2 0E 00 C1 0F 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 60 [21:31:47]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [21:31:47]wFMCommunicate OK [21:31:47]SAM_PROTO_GetShiftState done [21:31:47]FM_GetShiftState done [21:31:47]opened in 1718929509 [21:31:47]opened+sec_in_day 1719015909 [21:31:47]quantity*price = 130011 [21:31:47]sum+1 = 130012 [21:31:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 1300.00 Внесено: 1300.00 СДАЧА: 0.00 НСП 1% : 11.50 НДС 12% : 138.06 Наличными: 1300.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 164 21.06.2024 21:31 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104241 ФПД: 140683891351940 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T213149&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104241&fm=140683891351940&tin=02508201610067®Number=0000000000092785&sum=130000 [21:31:48]StoreToDocumentArchive [21:31:48]shift 355 fd 104241 [21:31:48]save to /storage/0355/doc_00104241 [21:31:48]save last doc name /storage/0355/doc_00104241 to /storage/kkm_last_doc_name [21:31:48]save OK [21:31:48]Clear old archive folders... [21:31:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:31:48]tlvbuf is 006205A0 [21:31:48]SAM_PROTO_ClearQueue [21:31:48]wFMCommunicate request_size=4 [21:31:48]MH_SAM_APDU [21:31:48]CAPDU: 80 09 00 00 [21:31:48]Write to MH i2c: E2 08 00 CE 0F 80 09 00 00 00 00 00 00 4F [21:31:48]Write i2c OK [21:31:48]MH_I2C_Read... [21:31:48]Read from MH i2c: E2 [21:31:48]MH_I2C_Read... [21:31:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:31:48]Read from MH i2c: E2 03 00 [21:31:48]MH_I2C_Read... [21:31:48]Read from MH i2c: E2 03 00 CE 0F 00 90 00 51 [21:31:48]RAPDU: 90 00 [21:31:48]wFMCommunicate OK [21:31:48]SAM_PROTO_ClearQueue done [21:31:48]KKMCreateOFDPacket [21:31:48]OFDProtocolAddRootSTLVToBuf [21:31:48]FM_MakeSignedData [21:31:48]FM_MakeSignedData [21:31:48]SAM_PROTO_SignData [21:31:48]wFMCommunicate request_size=4 [21:31:48]MH_SAM_APDU [21:31:48]CAPDU: 80 0D 01 02 [21:31:48]Write to MH i2c: E2 08 00 CF 0F 80 0D 01 02 00 00 00 00 57 [21:31:48]Write i2c OK [21:31:48]MH_I2C_Read... [21:31:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:31:48]Read from MH i2c: E2 [21:31:48]MH_I2C_Read... [21:31:48]Read from MH i2c: E2 03 00 [21:31:48]MH_I2C_Read... [21:31:48]Read from MH i2c: E2 03 00 CF 0F 00 90 00 52 [21:31:48]RAPDU: 90 00 [21:31:48]wFMCommunicate OK [21:31:48]wFMCommunicate request_size=255 [21:31:48]MH_SAM_APDU [21:31: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 7C 4C 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 DB FB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EE 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 45 F1 75 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 31 97 01 00 35 04 06 00 7F [21:31:48]Write to MH i2c: E2 02 01 D0 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 7C 4C 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 DB FB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EE 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 45 F1 75 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 31 97 01 00 35 04 06 00 7F 00 00 AD [21:31:48]Write i2c OK [21:31:48]MH_I2C_Read... [21:31:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:31:49]Read from MH i2c: E2 [21:31:49]MH_I2C_Read... [21:31:49]Read from MH i2c: E2 03 00 [21:31:49]MH_I2C_Read... [21:31:49]Read from MH i2c: E2 03 00 D0 0F 00 90 00 53 [21:31:49]RAPDU: 90 00 [21:31:49]wFMCommunicate OK [21:31:49]wFMCommunicate request_size=10 [21:31:49]MH_SAM_APDU [21:31:49]CAPDU: 80 0D 02 02 05 F3 85 5E A1 84 [21:31:49]Write to MH i2c: E2 0D 00 D1 0F 80 0D 02 02 05 00 F3 85 5E A1 84 00 00 5F [21:31:49]Write i2c OK [21:31:49]MH_I2C_Read... [21:31:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:31:49]Read from MH i2c: E2 [21:31:49]MH_I2C_Read... [21:31:49]Read from MH i2c: E2 03 00 [21:31:49]MH_I2C_Read... [21:31:49]Read from MH i2c: E2 03 00 D1 0F 00 90 00 54 [21:31:49]RAPDU: 90 00 [21:31:49]wFMCommunicate OK [21:31:49]wFMCommunicate request_size=4 [21:31:49]MH_SAM_APDU [21:31:49]CAPDU: 80 0D 03 02 [21:31:49]Write to MH i2c: E2 08 00 D2 0F 80 0D 03 02 00 00 00 00 5C [21:31:49]Write i2c OK [21:31:49]MH_I2C_Read... [21:31:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:31:49]Read from MH i2c: E2 [21:31:49]MH_I2C_Read... [21:31:49]Read from MH i2c: E2 0B 00 [21:31:49]MH_I2C_Read... [21:31:49]Read from MH i2c: E2 0B 00 D2 0F 00 8C AE F5 77 C8 0F 92 E9 90 00 55 [21:31:49]RAPDU: 8C AE F5 77 C8 0F 92 E9 90 00 [21:31:49]wFMCommunicate OK [21:31:49]SAM_PROTO_SignData done [21:31:49]FM_MakeSignedData done [21:31:49]CreateOFDProtocolMessage [21:31:49]wFMCommunicate request_size=4 [21:31:49]MH_SAM_APDU [21:31:49]CAPDU: 80 11 00 00 [21:31:49]Write to MH i2c: E2 08 00 D3 0F 80 11 00 00 00 00 00 00 5C [21:31:49]Write i2c OK [21:31:49]MH_I2C_Read... [21:31:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:31:49]Read from MH i2c: E2 [21:31:49]MH_I2C_Read... [21:31:49]Read from MH i2c: E2 17 00 [21:31:49]MH_I2C_Read... [21:31:49]Read from MH i2c: E2 17 00 D3 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 AF [21: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 [21:31:49]wFMCommunicate OK [21:31:49]CreateOFDProtocolMessage done [21:31:49]OFDSenderStorePacket 104241 [21:31:49]StoreOFDPacket docnum=104241 [21:31: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 2D 27 07 01 9E EF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7C 4C 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 DB FB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EE 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 45 F1 75 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 31 97 01 00 35 04 06 00 7F F3 85 5E A1 84 8C AE F5 77 C8 0F 92 E9 [21:31:49]CheckFolder [21:31:49]dirname=/storage/ofd_packets [21:31:49]CheckFolder done [21:31:49]ProducePacketName [21:31:49]name=ofd_packets/00104241 [21:31:49]NVStorageSaveData ofd_packets/00104241 [21:31:49]File name is /storage/ofd_packets/00104241 [21:31:49]Write 301 bytes [21:31:49]NVStorageSaveData done [21:31:49]OFDSenderStorePacket done [21:31:49]KKMCreateOFDPacket done [21:31:49]NVStorageSaveData kkm_last_timestamp [21:31:49]File name is /storage/kkm_last_timestamp [21:31:49]Write 4 bytes [21:31:49]NVStorageSaveData done [21:31:49]ExternCall_PrintAddStr [21:31:49]wPrintStart [21:31:49]Write to MH i2c: 01 00 00 D4 0F E3 [21:31:49]Write i2c OK [21:31:49]MH_I2C_Read... [21:31:49]Read from MH i2c: 01 [21:31:49]MH_I2C_Read... [21:31:49]Read from MH i2c: 01 07 00 [21:31:49]MH_I2C_Read... [21:31:49]Read from MH i2c: 01 07 00 D4 0F 00 00 00 00 00 FF 0F F8 [21:31:49]RasterBufferAndPrint [21:31:49]line Счет N : (1)673724 [21:31:49]line ИНН: 02508201610067 [21:31:49]line Контрольно-Кассовый Чек [21:31:49]line ПРОДАЖА [21:31:49]line ТРК (МРК, ГНК) : 42 [21:31:49]line Товар: 2710124130 [21:31:49]line Аи-92-К-5 [21:31:49]line 19.580 * 66.40 [21:31:49]line = 1300.11 [21:31:49]line НДС 12% НСП 1% [21:31:49]line > о реализуемом товаре [21:31:49]line ОКРУГЛЕНИЕ: -0.11 [21:31:49]line ИТОГО: 1300.00 [21:31:49]line Внесено: 1300.00 [21:31:49]line СДАЧА: 0.00 [21:31:49]line НСП 1% : 11.50 [21:31:49]line НДС 12% : 138.06 [21:31:49]line Наличными: 1300.00 [21:31:49]line Безнал.: 0.00 [21:31:49]line Место: АЗС № 120 "Партнер Нефть" [21:31:49]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [21:31:49]line СНО: Общий режим [21:31:49]line Чек 164 21.06.2024 21:31 [21:31:49]line Смена: 355 ФФД: 1.0 [21:31:49]line ЗНМ: 0300000164 [21:31:49]line РНМ: 0000000000092785 [21:31:49]line Версия ККМ: 001 [21:31:49]line ФМ: 0000000000875093 [21:31:49]line ФД: 104241 [21:31:49]line ФПД: 140683891351940 [21:31:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T213149&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104241&fm=140683891351940&tin=02508201610067®Number=0000000000092785&sum=130000 [21:31:49]OFD Sender: Processing packet 104241 [packets to send 17, broken 16] [21:31:49]ProducePacketName [21:31:49]name=ofd_packets/00104241 [21:31:49]OFD Sender: To server: pG, [21:31:49]CommunicateWithHost lk.salyk.kg:30040 [21:31:49]ConnectInit lk.salyk.kg [21:31:49]written 0, free lines is 4095 [21:31:49]Connected sock=10 [21:31: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 2D 27 07 01 9E EF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7C 4C 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 DB FB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EE 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 45 F1 75 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 31 97 01 00 35 04 06 00 7F F3 85 5E A1 84 8C AE F5 77 C8 0F 92 E9 [21:31: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 86 CD 47 00 03 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 31 97 01 00 F4 03 04 00 C6 97 75 66 B6 04 01 00 00 92 8A 93 AF F5 24 03 FE [21:31:50]CommunicateWithHost err = 0 [21:31:50]CheckOFDResponse [21:31:50]1017 (14) - 77093643461234 [21:31:50]1041 (16) - 0000000000875093 [21:31:50]1040 (4) - 104241 [21:31:50]1012 (4) - 21.06.2024 15:09 [21:31:50]1206 (1) - 0 [21:31:50]OFD Sender: Remove packet 104241 [21:31:50]ProducePacketName [21:31:50]name=ofd_packets/00104241 [21:31:50]NVStorageDeleteData [21:31:50]Write to MH i2c: 01 00 00 FF 0F 0E [21:31:50]Write i2c OK [21:31:50]MH_I2C_Read... [21:31:50]Read from MH i2c: 01 [21:31:50]MH_I2C_Read... [21:31:50]Read from MH i2c: 01 07 00 [21:31:50]MH_I2C_Read... [21:31:50]Read from MH i2c: 01 07 00 FF 0F 00 00 00 00 00 E2 0C 03 [21:31:50]RasterBufferAndPrint [21:31:50]line [21:31:50]line [21:31:50]line [21:31:50]line [21:31:50]line [21:31:50]written 0, free lines is 3304 [21:31:50]MH_Cut [21:31:50]Write to MH i2c: D1 01 00 06 10 01 E8 [21:31:50]Write i2c OK [21:31:50]MH_I2C_Read... [21:31:50]Read from MH i2c: D1 [21:31:50]MH_I2C_Read... [21:31:50]Read from MH i2c: D1 01 00 [21:31:50]MH_I2C_Read... [21:31:50]Read from MH i2c: D1 01 00 06 10 00 E7 [21:31:50]Write to MH i2c: 01 00 00 07 10 17 [21:31:50]Write i2c OK [21:31:50]MH_I2C_Read... [21:31:50]OFD Sender: No OFD packet to send [21:31:50]*** Cut start [21:31:50]*** Partial cut [21:31:50]*** CUTSNS_PIN = 1 [21:31:50]*** CUTSNS_PIN = 0 [21:31:51]*** Brake cut motor [21:31:51]Read from MH i2c: 01 [21:31:51]MH_I2C_Read... [21:31:51]*** Stop cut motor [21:31:51]*** Cut end [21:31:51]Read from MH i2c: 01 07 00 [21:31:51]MH_I2C_Read... [21:31:51]Read from MH i2c: 01 07 00 07 10 00 00 00 00 00 FF 0F 2C [21:31:51]process_action close_receipt done [21:31:51]requested_data is exist [21:31:51]produce_requested_data [21:31:51]requested_item fm.sn is exist - process it [21:31:51]wFMCommunicate request_size=4 [21:31:51]MH_SAM_APDU [21:31:51]CAPDU: 80 11 00 00 [21:31:51]Write to MH i2c: E2 08 00 08 10 80 11 00 00 00 00 00 00 92 [21:31:51]Write i2c OK [21:31:51]MH_I2C_Read... [21:31:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:31:51]Read from MH i2c: E2 [21:31:51]MH_I2C_Read... [21:31:51]Read from MH i2c: E2 17 00 [21:31:51]MH_I2C_Read... [21:31:51]Read from MH i2c: E2 17 00 08 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 E5 [21:31: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:31:51]wFMCommunicate OK [21:31:51]requested_item fd.num is exist - process it [21:31:51]SAM_PROTO_GetFieldsCounters [21:31:51]wFMCommunicate request_size=4 [21:31:51]MH_SAM_APDU [21:31:51]CAPDU: 80 13 00 00 [21:31:51]Write to MH i2c: E2 08 00 09 10 80 13 00 00 00 00 00 00 95 [21:31:51]Write i2c OK [21:31:51]MH_I2C_Read... [21:31:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:31:51]Read from MH i2c: E2 [21:31:51]MH_I2C_Read... [21:31:51]Read from MH i2c: E2 62 00 [21:31:51]MH_I2C_Read... [21:31:51]Read from MH i2c: E2 62 00 09 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 63 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 D5 [21:31:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 63 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 [21:31:51]wFMCommunicate OK [21:31:51]SAM_PROTO_GetFieldsCounters done [21:31:51]requested_item shift.num is exist - process it [21:31:51]requested_item shift.opened is exist - process it [21:31:51]req_shift_opened [21:31:51]FM_GetShiftState [21:31:51]SAM_PROTO_GetShiftState [21:31:51]wFMCommunicate request_size=4 [21:31:51]MH_SAM_APDU [21:31:51]CAPDU: 80 13 01 00 [21:31:51]Write to MH i2c: E2 08 00 0A 10 80 13 01 00 00 00 00 00 97 [21:31:51]Write i2c OK [21:31:51]MH_I2C_Read... [21:31:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:31:51]Read from MH i2c: E2 [21:31:51]MH_I2C_Read... [21:31:51]Read from MH i2c: E2 0E 00 [21:31:51]MH_I2C_Read... [21:31:51]Read from MH i2c: E2 0E 00 0A 10 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 AA [21:31:51]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [21:31:51]wFMCommunicate OK [21:31:51]SAM_PROTO_GetShiftState done [21:31:51]FM_GetShiftState done [21:31:51]req_shift_opened done [21:31:51]requested_item shift.open_date is exist - process it [21:31:51]req_shift_open_date [21:31:51]req_shift_open_date done [21:31:51]produce_requested_data done [21:31:51]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104241,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [21:31:51]process_action_free close_receipt [21:31:51]json_value_free [21:31:51]json_value_free done [21:31:51]process_json_proto returns [21:31:51]Send response to host [21:31:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104241,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [21:31:51]free response buf [21:31:51]execute_script done [21:31:51]execute_script returns [21:31:51]free content buf [21:31:51]Sock 9.Close socket [21:31:51]Sock 9.Thread stoped [21:31:55]OFD Sender: No OFD packet to send [21:32:00]OFD Sender: No OFD packet to send [21:32:05]OFD Sender: No OFD packet to send [21:32:10]OFD Sender: No OFD packet to send [21:32:15]OFD Sender: No OFD packet to send [21:32:20]OFD Sender: No OFD packet to send [21:32:25]OFD Sender: No OFD packet to send [21:32:30]OFD Sender: No OFD packet to send [21:32:35]OFD Sender: No OFD packet to send [21:32:40]OFD Sender: No OFD packet to send [21:32:45]OFD Sender: No OFD packet to send [21:32:50]OFD Sender: No OFD packet to send [21:32:55]OFD Sender: No OFD packet to send [21:33:00]OFD Sender: No OFD packet to send [21:33:05]OFD Sender: No OFD packet to send [21:33:10]OFD Sender: No OFD packet to send [21:33:15]OFD Sender: No OFD packet to send [21:33:20]OFD Sender: No OFD packet to send [21:33:25]OFD Sender: No OFD packet to send [21:33:30]OFD Sender: No OFD packet to send [21:33:35]OFD Sender: No OFD packet to send [21:33:40]OFD Sender: No OFD packet to send [21:33:43]accept exits with 7 [21:33:43]New connection [21:33:43]New thread 3067616612 created [21:33:43]Thread 3067473252 joined [21:33:43]Waiting for new connection... [21:33:43] Sock 7.Parse request [21:33:43]Sock 7.Check first char [21:33:43]Sock 7.First char is OK [21:33:43]request: POST /json_proto HTTP/1.0 [21:33:43]Method: POST [21:33:43]URL: /json_proto [21:33:43]Method is POST - this is cgi request [21:33:43]url: /json_proto [21:33:43]query_string will be loaded in cgi processing [21:33:43]execute_cgi json_proto POST (null) [21:33:43]execute_cgi path=json_proto method=POST [21:33:43]POST find Content-Length [21:33:43]Host: 172.17.38.133:8080 [21:33:43]Content-Length: 803 [21:33:43]Content-Type: application/json [21:33:43] [21:33:43]POST finish read [21:33:43]Found Content-Length = 803 [21:33:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673725", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.63 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:33:43]execute_script... [21:33: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)673725", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.63 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:33:43]POST & json_proto [21:33:43]process_json_proto [21:33:43]json parsed OK: [21:33:43]protocol is kg_v1.0 [21:33:43]action value=close_receipt [21:33:43]process_action close_receipt [21:33:43]cmd_close_receipt [21:33:43]MH_GetDate [21:33:43]Write to MH i2c: F0 00 00 0B 10 0A [21:33:43]Write i2c OK [21:33:43]MH_I2C_Read... [21:33:43]Read from MH i2c: F0 [21:33:43]MH_I2C_Read... [21:33:43]Read from MH i2c: F0 09 00 [21:33:43]MH_I2C_Read... [21:33:43]Read from MH i2c: F0 09 00 0B 10 00 B9 F1 75 66 BD 8F 7C 64 C4 [21:33:43]GetLastDocTimeStamp 1719005509 [21:33:43]current date 1719005625 [21:33:43]FM_GetShiftState [21:33:43]SAM_PROTO_GetShiftState [21:33:43]wFMCommunicate request_size=4 [21:33:43]MH_SAM_APDU [21:33:43]CAPDU: 80 13 01 00 [21:33:43]Write to MH i2c: E2 08 00 0C 10 80 13 01 00 00 00 00 00 99 [21:33:43]Write i2c OK [21:33:43]MH_I2C_Read... [21:33:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:33:44]Read from MH i2c: E2 [21:33:44]MH_I2C_Read... [21:33:44]Read from MH i2c: E2 0E 00 [21:33:44]MH_I2C_Read... [21:33:44]Read from MH i2c: E2 0E 00 0C 10 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 AC [21:33:44]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [21:33:44]wFMCommunicate OK [21:33:44]SAM_PROTO_GetShiftState done [21:33:44]FM_GetShiftState done [21:33:44]opened in 1718929509 [21:33:44]opened+sec_in_day 1719015909 [21:33:44]quantity*price = 200063 [21:33:44]sum+1 = 200064 [21:33:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.63 НСП 1% : 17.70 НДС 12% : 212.46 Наличными: 0.00 Безнал.: 2000.63 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 165 21.06.2024 21:33 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875093 ФД: 104242 ФПД: 67116515186328 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T213345&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104242&fm=67116515186328&tin=02508201610067®Number=0000000000092785&sum=200063 [21:33:45]StoreToDocumentArchive [21:33:45]shift 355 fd 104242 [21:33:45]save to /storage/0355/doc_00104242 [21:33:45]save last doc name /storage/0355/doc_00104242 to /storage/kkm_last_doc_name [21:33:45]save OK [21:33:45]Clear old archive folders... [21:33:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:33:45]tlvbuf is B6FF7540 [21:33:45]SAM_PROTO_ClearQueue [21:33:45]wFMCommunicate request_size=4 [21:33:45]MH_SAM_APDU [21:33:45]CAPDU: 80 09 00 00 [21:33:45]Write to MH i2c: E2 08 00 19 10 80 09 00 00 00 00 00 00 9B [21:33:45]Write i2c OK [21:33:45]MH_I2C_Read... [21:33:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:33:45]Read from MH i2c: E2 [21:33:45]MH_I2C_Read... [21:33:45]Read from MH i2c: E2 03 00 [21:33:45]MH_I2C_Read... [21:33:45]Read from MH i2c: E2 03 00 19 10 00 90 00 9D [21:33:45]RAPDU: 90 00 [21:33:45]wFMCommunicate OK [21:33:45]SAM_PROTO_ClearQueue done [21:33:45]KKMCreateOFDPacket [21:33:45]OFDProtocolAddRootSTLVToBuf [21:33:45]FM_MakeSignedData [21:33:45]FM_MakeSignedData [21:33:45]SAM_PROTO_SignData [21:33:45]wFMCommunicate request_size=4 [21:33:45]MH_SAM_APDU [21:33:45]CAPDU: 80 0D 01 02 [21:33:45]Write to MH i2c: E2 08 00 1A 10 80 0D 01 02 00 00 00 00 A3 [21:33:45]Write i2c OK [21:33:45]MH_I2C_Read... [21:33:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:33:45]Read from MH i2c: E2 [21:33:45]MH_I2C_Read... [21:33:45]Read from MH i2c: E2 03 00 [21:33:45]MH_I2C_Read... [21:33:45]Read from MH i2c: E2 03 00 1A 10 00 90 00 9E [21:33:45]RAPDU: 90 00 [21:33:45]wFMCommunicate OK [21:33:45]wFMCommunicate request_size=255 [21:33:45]MH_SAM_APDU [21:33: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 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 7F 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 00 00 00 00 00 00 39 04 06 00 7F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 B9 F1 75 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 32 97 01 00 35 04 06 00 3D [21:33:45]Write to MH i2c: E2 02 01 1B 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 7F 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 00 00 00 00 00 00 39 04 06 00 7F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 B9 F1 75 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 32 97 01 00 35 04 06 00 3D 00 00 65 [21:33:45]Write i2c OK [21:33:45]MH_I2C_Read... [21:33:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:33:45]Read from MH i2c: E2 [21:33:45]MH_I2C_Read... [21:33:45]Read from MH i2c: E2 03 00 [21:33:45]MH_I2C_Read... [21:33:45]Read from MH i2c: E2 03 00 1B 10 00 90 00 9F [21:33:45]RAPDU: 90 00 [21:33:45]wFMCommunicate OK [21:33:45]wFMCommunicate request_size=10 [21:33:45]MH_SAM_APDU [21:33:45]CAPDU: 80 0D 02 02 05 0A C8 0B D6 98 [21:33:45]Write to MH i2c: E2 0D 00 1C 10 80 0D 02 02 05 00 0A C8 0B D6 98 00 00 FB [21:33:45]Write i2c OK [21:33:45]MH_I2C_Read... [21:33:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:33:45]Read from MH i2c: E2 [21:33:45]MH_I2C_Read... [21:33:45]Read from MH i2c: E2 03 00 [21:33:45]MH_I2C_Read... [21:33:45]Read from MH i2c: E2 03 00 1C 10 00 90 00 A0 [21:33:45]RAPDU: 90 00 [21:33:45]wFMCommunicate OK [21:33:45]wFMCommunicate request_size=4 [21:33:45]MH_SAM_APDU [21:33:45]CAPDU: 80 0D 03 02 [21:33:45]Write to MH i2c: E2 08 00 1D 10 80 0D 03 02 00 00 00 00 A8 [21:33:45]Write i2c OK [21:33:45]MH_I2C_Read... [21:33:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:33:45]Read from MH i2c: E2 [21:33:45]MH_I2C_Read... [21:33:45]Read from MH i2c: E2 0B 00 [21:33:45]MH_I2C_Read... [21:33:45]Read from MH i2c: E2 0B 00 1D 10 00 51 00 D6 CB 22 49 57 26 90 00 83 [21:33:45]RAPDU: 51 00 D6 CB 22 49 57 26 90 00 [21:33:45]wFMCommunicate OK [21:33:45]SAM_PROTO_SignData done [21:33:45]FM_MakeSignedData done [21:33:45]CreateOFDProtocolMessage [21:33:45]wFMCommunicate request_size=4 [21:33:45]MH_SAM_APDU [21:33:45]CAPDU: 80 11 00 00 [21:33:45]Write to MH i2c: E2 08 00 1E 10 80 11 00 00 00 00 00 00 A8 [21:33:45]Write i2c OK [21:33:45]MH_I2C_Read... [21:33:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:33:45]Read from MH i2c: E2 [21:33:45]MH_I2C_Read... [21:33:45]Read from MH i2c: E2 17 00 [21:33:45]MH_I2C_Read... [21:33:45]Read from MH i2c: E2 17 00 1E 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 FB [21:33:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [21:33:45]wFMCommunicate OK [21:33:45]CreateOFDProtocolMessage done [21:33:45]OFDSenderStorePacket 104242 [21:33:45]StoreOFDPacket docnum=104242 [21:33: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 7B E4 07 01 A2 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 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 7F 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 00 00 00 00 00 00 39 04 06 00 7F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 B9 F1 75 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 32 97 01 00 35 04 06 00 3D 0A C8 0B D6 98 51 00 D6 CB 22 49 57 26 [21:33:45]CheckFolder [21:33:45]dirname=/storage/ofd_packets [21:33:45]CheckFolder done [21:33:45]ProducePacketName [21:33:45]name=ofd_packets/00104242 [21:33:45]NVStorageSaveData ofd_packets/00104242 [21:33:45]File name is /storage/ofd_packets/00104242 [21:33:45]Write 301 bytes [21:33:45]NVStorageSaveData done [21:33:45]OFDSenderStorePacket done [21:33:45]KKMCreateOFDPacket done [21:33:45]NVStorageSaveData kkm_last_timestamp [21:33:45]File name is /storage/kkm_last_timestamp [21:33:45]Write 4 bytes [21:33:45]NVStorageSaveData done [21:33:45]ExternCall_PrintAddStr [21:33:45]wPrintStart [21:33:45]Write to MH i2c: 01 00 00 1F 10 2F [21:33:45]Write i2c OK [21:33:45]MH_I2C_Read... [21:33:45]Read from MH i2c: 01 [21:33:45]MH_I2C_Read... [21:33:45]Read from MH i2c: 01 07 00 [21:33:45]MH_I2C_Read... [21:33:45]Read from MH i2c: 01 07 00 1F 10 00 00 00 00 00 FF 0F 44 [21:33:45]RasterBufferAndPrint [21:33:45]line Счет N : (1)673725 [21:33:45]line ИНН: 02508201610067 [21:33:45]line Контрольно-Кассовый Чек [21:33:45]line ПРОДАЖА [21:33:45]line ТРК (МРК, ГНК) : 32 [21:33:45]line Товар: 2710124130 [21:33:45]line Аи-92-К-5 [21:33:45]line 30.130 * 66.40 [21:33:45]line = 2000.63 [21:33:45]line НДС 12% НСП 1% [21:33:45]line > о реализуемом товаре [21:33:45]line ИТОГО: 2000.63 [21:33:45]line НСП 1% : 17.70 [21:33:45]line НДС 12% : 212.46 [21:33:45]line Наличными: 0.00 [21:33:45]line Безнал.: 2000.63 [21:33:45]line Место: АЗС № 120 "Партнер Нефть" [21:33:45]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [21:33:45]line СНО: Общий режим [21:33:45]line Чек 165 21.06.2024 21:33 [21:33:45]line Смена: 355 ФФД: 1.0 [21:33:45]line ЗНМ: 0300000164 [21:33:45]line РНМ: 0000000000092785 [21:33:45]line Версия ККМ: 001 [21:33:45]line Платежная система: O! деньги [21:33:45]line ФМ: 0000000000875093 [21:33:45]line ФД: 104242 [21:33:45]line ФПД: 67116515186328 [21:33:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T213345&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104242&fm=67116515186328&tin=02508201610067®Number=0000000000092785&sum=200063 [21:33:46]OFD Sender: Processing packet 104242 [packets to send 17, broken 16] [21:33:46]ProducePacketName [21:33:46]name=ofd_packets/00104242 [21:33:46]OFD Sender: To server: pG, [21:33:46]CommunicateWithHost lk.salyk.kg:30040 [21:33:46]ConnectInit lk.salyk.kg [21:33:46]written 0, free lines is 4095 [21:33:46]Connected sock=10 [21:33: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 7B E4 07 01 A2 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 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 7F 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 00 00 00 00 00 00 39 04 06 00 7F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 B9 F1 75 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 32 97 01 00 35 04 06 00 3D 0A C8 0B D6 98 51 00 D6 CB 22 49 57 26 [21:33: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 36 3F 47 00 49 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 32 97 01 00 F4 03 04 00 3A 98 75 66 B6 04 01 00 00 99 09 90 68 22 C1 26 A4 [21:33:46]CommunicateWithHost err = 0 [21:33:46]CheckOFDResponse [21:33:46]1017 (14) - 77093643461234 [21:33:46]1041 (16) - 0000000000875093 [21:33:46]1040 (4) - 104242 [21:33:46]1012 (4) - 21.06.2024 15:11 [21:33:46]1206 (1) - 0 [21:33:46]OFD Sender: Remove packet 104242 [21:33:46]ProducePacketName [21:33:46]name=ofd_packets/00104242 [21:33:46]NVStorageDeleteData [21:33:46]Write to MH i2c: 01 00 00 49 10 59 [21:33:46]Write i2c OK [21:33:46]MH_I2C_Read... [21:33:46]Read from MH i2c: 01 [21:33:46]MH_I2C_Read... [21:33:46]Read from MH i2c: 01 07 00 [21:33:46]MH_I2C_Read... [21:33:46]Read from MH i2c: 01 07 00 49 10 00 00 00 00 00 FB 0C 67 [21:33:46]RasterBufferAndPrint [21:33:46]line [21:33:46]line [21:33:46]line [21:33:46]line [21:33:46]line [21:33:46]written 0, free lines is 3329 [21:33:46]MH_Cut [21:33:46]Write to MH i2c: D1 01 00 50 10 01 32 [21:33:46]Write i2c OK [21:33:46]MH_I2C_Read... [21:33:46]Read from MH i2c: D1 [21:33:46]MH_I2C_Read... [21:33:46]Read from MH i2c: D1 01 00 [21:33:46]MH_I2C_Read... [21:33:46]Read from MH i2c: D1 01 00 50 10 00 31 [21:33:46]Write to MH i2c: 01 00 00 51 10 61 [21:33:46]Write i2c OK [21:33:46]MH_I2C_Read... [21:33:46]OFD Sender: No OFD packet to send [21:33:47]*** Cut start [21:33:47]*** Partial cut [21:33:47]*** CUTSNS_PIN = 1 [21:33:47]*** CUTSNS_PIN = 0 [21:33:47]*** Brake cut motor [21:33:47]Read from MH i2c: 01 [21:33:47]MH_I2C_Read... [21:33:47]*** Stop cut motor [21:33:47]*** Cut end [21:33:47]Read from MH i2c: 01 07 00 [21:33:47]MH_I2C_Read... [21:33:47]Read from MH i2c: 01 07 00 51 10 00 00 00 00 00 FF 0F 76 [21:33:47]process_action close_receipt done [21:33:47]requested_data is exist [21:33:47]produce_requested_data [21:33:47]requested_item fm.sn is exist - process it [21:33:47]wFMCommunicate request_size=4 [21:33:47]MH_SAM_APDU [21:33:47]CAPDU: 80 11 00 00 [21:33:47]Write to MH i2c: E2 08 00 52 10 80 11 00 00 00 00 00 00 DC [21:33:47]Write i2c OK [21:33:47]MH_I2C_Read... [21:33:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:33:47]Read from MH i2c: E2 [21:33:47]MH_I2C_Read... [21:33:47]Read from MH i2c: E2 17 00 [21:33:47]MH_I2C_Read... [21:33:47]Read from MH i2c: E2 17 00 52 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 2F [21: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 [21:33:47]wFMCommunicate OK [21:33:47]requested_item fd.num is exist - process it [21:33:47]SAM_PROTO_GetFieldsCounters [21:33:47]wFMCommunicate request_size=4 [21:33:47]MH_SAM_APDU [21:33:47]CAPDU: 80 13 00 00 [21:33:47]Write to MH i2c: E2 08 00 53 10 80 13 00 00 00 00 00 00 DF [21:33:47]Write i2c OK [21:33:47]MH_I2C_Read... [21:33:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:33:47]Read from MH i2c: E2 [21:33:47]MH_I2C_Read... [21:33:47]Read from MH i2c: E2 62 00 [21:33:47]MH_I2C_Read... [21:33:47]Read from MH i2c: E2 62 00 53 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 A5 00 00 00 5E 04 04 00 A5 00 00 00 57 04 04 00 A6 00 00 00 19 04 04 00 00 00 00 00 90 00 23 [21: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 32 97 01 00 0E 04 04 00 63 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 [21:33:47]wFMCommunicate OK [21:33:47]SAM_PROTO_GetFieldsCounters done [21:33:47]requested_item shift.num is exist - process it [21:33:47]requested_item shift.opened is exist - process it [21:33:47]req_shift_opened [21:33:47]FM_GetShiftState [21:33:47]SAM_PROTO_GetShiftState [21:33:47]wFMCommunicate request_size=4 [21:33:47]MH_SAM_APDU [21:33:47]CAPDU: 80 13 01 00 [21:33:47]Write to MH i2c: E2 08 00 54 10 80 13 01 00 00 00 00 00 E1 [21:33:47]Write i2c OK [21:33:47]MH_I2C_Read... [21:33:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:33:48]Read from MH i2c: E2 [21:33:48]MH_I2C_Read... [21:33:48]Read from MH i2c: E2 0E 00 [21:33:48]MH_I2C_Read... [21:33:48]Read from MH i2c: E2 0E 00 54 10 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 F4 [21:33:48]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [21:33:48]wFMCommunicate OK [21:33:48]SAM_PROTO_GetShiftState done [21:33:48]FM_GetShiftState done [21:33:48]req_shift_opened done [21:33:48]requested_item shift.open_date is exist - process it [21:33:48]req_shift_open_date [21:33:48]req_shift_open_date done [21:33:48]produce_requested_data done [21:33:48]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104242,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [21:33:48]process_action_free close_receipt [21:33:48]json_value_free [21:33:48]json_value_free done [21:33:48]process_json_proto returns [21:33:48]Send response to host [21:33:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104242,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [21:33:48]free response buf [21:33:48]execute_script done [21:33:48]execute_script returns [21:33:48]free content buf [21:33:48]Sock 7.Close socket [21:33:48]Sock 7.Thread stoped [21:33:51]OFD Sender: No OFD packet to send [21:33:56]OFD Sender: No OFD packet to send [21:34:01]OFD Sender: No OFD packet to send [21:34:06]OFD Sender: No OFD packet to send [21:34:11]OFD Sender: No OFD packet to send [21:34:16]OFD Sender: No OFD packet to send [21:34:21]OFD Sender: No OFD packet to send [21:34:26]OFD Sender: No OFD packet to send [21:34:31]OFD Sender: No OFD packet to send [21:34:36]OFD Sender: No OFD packet to send [21:34:41]OFD Sender: No OFD packet to send [21:34:46]OFD Sender: No OFD packet to send [21:34:51]OFD Sender: No OFD packet to send [21:34:56]OFD Sender: No OFD packet to send [21:35:01]OFD Sender: No OFD packet to send [21:35:06]OFD Sender: No OFD packet to send [21:35:11]OFD Sender: No OFD packet to send [21:35:16]OFD Sender: No OFD packet to send [21:35:21]OFD Sender: No OFD packet to send [21:35:26]OFD Sender: No OFD packet to send [21:35:31]OFD Sender: No OFD packet to send [21:35:36]OFD Sender: No OFD packet to send [21:35:41]OFD Sender: No OFD packet to send [21:35:46]OFD Sender: No OFD packet to send [21:35:51]OFD Sender: No OFD packet to send [21:35:56]OFD Sender: No OFD packet to send [21:36:01]OFD Sender: No OFD packet to send [21:36:06]OFD Sender: No OFD packet to send [21:36:11]OFD Sender: No OFD packet to send [21:36:16]accept exits with 9 [21:36:16]New connection [21:36:16]New thread 3067473252 created [21:36:16]Thread 3067616612 joined [21:36:16]Waiting for new connection... [21:36:16] Sock 9.Parse request [21:36:16]Sock 9.Check first char [21:36:16]Sock 9.First char is OK [21:36:16]request: POST /json_proto HTTP/1.0 [21:36:16]Method: POST [21:36:16]URL: /json_proto [21:36:16]Method is POST - this is cgi request [21:36:16]url: /json_proto [21:36:16]query_string will be loaded in cgi processing [21:36:16]execute_cgi json_proto POST (null) [21:36:16]execute_cgi path=json_proto method=POST [21:36:16]POST find Content-Length [21:36:16]Host: 172.17.38.133:8080 [21:36:16]Content-Length: 682 [21:36:16]Content-Type: application/json [21:36:16] [21:36:16]POST finish read [21:36:16]Found Content-Length = 682 [21:36:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673726", "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:36:16]execute_script... [21:36: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)673726", "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:36:16]POST & json_proto [21:36:16]process_json_proto [21:36:16]json parsed OK: [21:36:16]protocol is kg_v1.0 [21:36:16]action value=close_receipt [21:36:16]process_action close_receipt [21:36:16]cmd_close_receipt [21:36:16]MH_GetDate [21:36:16]Write to MH i2c: F0 00 00 55 10 54 [21:36:16]Write i2c OK [21:36:16]MH_I2C_Read... [21:36:16]Read from MH i2c: F0 [21:36:16]MH_I2C_Read... [21:36:16]Read from MH i2c: F0 09 00 [21:36:16]MH_I2C_Read... [21:36:16]Read from MH i2c: F0 09 00 55 10 00 51 F2 75 66 BD 8F 7C 64 A7 [21:36:16]GetLastDocTimeStamp 1719005625 [21:36:16]current date 1719005777 [21:36:16]FM_GetShiftState [21:36:16]SAM_PROTO_GetShiftState [21:36:16]wFMCommunicate request_size=4 [21:36:16]MH_SAM_APDU [21:36:16]CAPDU: 80 13 01 00 [21:36:16]Write to MH i2c: E2 08 00 56 10 80 13 01 00 00 00 00 00 E3 [21:36:16]Write i2c OK [21:36:16]MH_I2C_Read... [21:36:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:36:16]Read from MH i2c: E2 [21:36:16]MH_I2C_Read... [21:36:16]Read from MH i2c: E2 0E 00 [21:36:16]MH_I2C_Read... [21:36:16]Read from MH i2c: E2 0E 00 56 10 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 F6 [21:36:16]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [21:36:16]wFMCommunicate OK [21:36:16]SAM_PROTO_GetShiftState done [21:36:16]FM_GetShiftState done [21:36:16]opened in 1718929509 [21:36:16]opened+sec_in_day 1719015909 [21:36:16]quantity*price = 100064 [21:36:16]sum+1 = 100066 [21:36: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 СНО: Общий режим Чек 166 21.06.2024 21:36 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104243 ФПД: 167590252620793 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T213617&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104243&fm=167590252620793&tin=02508201610067®Number=0000000000092785&sum=100000 [21:36:17]StoreToDocumentArchive [21:36:17]shift 355 fd 104243 [21:36:17]save to /storage/0355/doc_00104243 [21:36:17]save last doc name /storage/0355/doc_00104243 to /storage/kkm_last_doc_name [21:36:17]save OK [21:36:17]Clear old archive folders... [21:36:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:36:17]tlvbuf is 006202E0 [21:36:17]SAM_PROTO_ClearQueue [21:36:17]wFMCommunicate request_size=4 [21:36:17]MH_SAM_APDU [21:36:17]CAPDU: 80 09 00 00 [21:36:17]Write to MH i2c: E2 08 00 63 10 80 09 00 00 00 00 00 00 E5 [21:36:17]Write i2c OK [21:36:17]MH_I2C_Read... [21:36:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:36:17]Read from MH i2c: E2 [21:36:17]MH_I2C_Read... [21:36:17]Read from MH i2c: E2 03 00 [21:36:17]MH_I2C_Read... [21:36:17]Read from MH i2c: E2 03 00 63 10 00 90 00 E7 [21:36:17]RAPDU: 90 00 [21:36:17]wFMCommunicate OK [21:36:17]SAM_PROTO_ClearQueue done [21:36:17]KKMCreateOFDPacket [21:36:17]OFDProtocolAddRootSTLVToBuf [21:36:17]FM_MakeSignedData [21:36:17]FM_MakeSignedData [21:36:17]SAM_PROTO_SignData [21:36:17]wFMCommunicate request_size=4 [21:36:17]MH_SAM_APDU [21:36:17]CAPDU: 80 0D 01 02 [21:36:17]Write to MH i2c: E2 08 00 64 10 80 0D 01 02 00 00 00 00 ED [21:36:17]Write i2c OK [21:36:17]MH_I2C_Read... [21:36:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:36:17]Read from MH i2c: E2 [21:36:17]MH_I2C_Read... [21:36:17]Read from MH i2c: E2 03 00 [21:36:17]MH_I2C_Read... [21:36:17]Read from MH i2c: E2 03 00 64 10 00 90 00 E8 [21:36:17]RAPDU: 90 00 [21:36:17]wFMCommunicate OK [21:36:17]wFMCommunicate request_size=255 [21:36:17]MH_SAM_APDU [21:36: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 A6 00 00 00 F4 03 04 00 51 F2 75 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 33 97 01 00 35 04 06 00 98 [21:36:17]Write to MH i2c: E2 02 01 65 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 A6 00 00 00 F4 03 04 00 51 F2 75 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 33 97 01 00 35 04 06 00 98 00 00 82 [21:36:17]Write i2c OK [21:36:17]MH_I2C_Read... [21:36:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:36:17]Read from MH i2c: E2 [21:36:17]MH_I2C_Read... [21:36:17]Read from MH i2c: E2 03 00 [21:36:17]MH_I2C_Read... [21:36:17]Read from MH i2c: E2 03 00 65 10 00 90 00 E9 [21:36:17]RAPDU: 90 00 [21:36:17]wFMCommunicate OK [21:36:17]wFMCommunicate request_size=10 [21:36:17]MH_SAM_APDU [21:36:17]CAPDU: 80 0D 02 02 05 6C 25 79 AB F9 [21:36:17]Write to MH i2c: E2 0D 00 66 10 80 0D 02 02 05 00 6C 25 79 AB F9 00 00 A8 [21:36:17]Write i2c OK [21:36:17]MH_I2C_Read... [21:36:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:36:17]Read from MH i2c: E2 [21:36:17]MH_I2C_Read... [21:36:17]Read from MH i2c: E2 03 00 [21:36:17]MH_I2C_Read... [21:36:17]Read from MH i2c: E2 03 00 66 10 00 90 00 EA [21:36:17]RAPDU: 90 00 [21:36:17]wFMCommunicate OK [21:36:17]wFMCommunicate request_size=4 [21:36:17]MH_SAM_APDU [21:36:17]CAPDU: 80 0D 03 02 [21:36:17]Write to MH i2c: E2 08 00 67 10 80 0D 03 02 00 00 00 00 F2 [21:36:17]Write i2c OK [21:36:17]MH_I2C_Read... [21:36:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:36:17]Read from MH i2c: E2 [21:36:17]MH_I2C_Read... [21:36:17]Read from MH i2c: E2 0B 00 [21:36:17]MH_I2C_Read... [21:36:17]Read from MH i2c: E2 0B 00 67 10 00 18 C8 46 30 8F 66 71 C2 90 00 71 [21:36:17]RAPDU: 18 C8 46 30 8F 66 71 C2 90 00 [21:36:17]wFMCommunicate OK [21:36:17]SAM_PROTO_SignData done [21:36:17]FM_MakeSignedData done [21:36:17]CreateOFDProtocolMessage [21:36:17]wFMCommunicate request_size=4 [21:36:17]MH_SAM_APDU [21:36:17]CAPDU: 80 11 00 00 [21:36:17]Write to MH i2c: E2 08 00 68 10 80 11 00 00 00 00 00 00 F2 [21:36:17]Write i2c OK [21:36:17]MH_I2C_Read... [21:36:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:36:17]Read from MH i2c: E2 [21:36:17]MH_I2C_Read... [21:36:17]Read from MH i2c: E2 17 00 [21:36:17]MH_I2C_Read... [21:36:17]Read from MH i2c: E2 17 00 68 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 45 [21:36:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [21:36:17]wFMCommunicate OK [21:36:17]CreateOFDProtocolMessage done [21:36:17]OFDSenderStorePacket 104243 [21:36:17]StoreOFDPacket docnum=104243 [21:36: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 00 5F 07 01 4E FC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 A6 00 00 00 F4 03 04 00 51 F2 75 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 33 97 01 00 35 04 06 00 98 6C 25 79 AB F9 18 C8 46 30 8F 66 71 C2 [21:36:17]CheckFolder [21:36:17]dirname=/storage/ofd_packets [21:36:17]CheckFolder done [21:36:17]ProducePacketName [21:36:17]name=ofd_packets/00104243 [21:36:17]NVStorageSaveData ofd_packets/00104243 [21:36:17]File name is /storage/ofd_packets/00104243 [21:36:17]Write 301 bytes [21:36:17]NVStorageSaveData done [21:36:17]OFDSenderStorePacket done [21:36:17]KKMCreateOFDPacket done [21:36:17]NVStorageSaveData kkm_last_timestamp [21:36:17]File name is /storage/kkm_last_timestamp [21:36:17]Write 4 bytes [21:36:17]NVStorageSaveData done [21:36:17]ExternCall_PrintAddStr [21:36:17]wPrintStart [21:36:17]Write to MH i2c: 01 00 00 69 10 79 [21:36:17]Write i2c OK [21:36:17]MH_I2C_Read... [21:36:17]Read from MH i2c: 01 [21:36:17]MH_I2C_Read... [21:36:17]Read from MH i2c: 01 07 00 [21:36:17]MH_I2C_Read... [21:36:17]Read from MH i2c: 01 07 00 69 10 00 00 00 00 00 FF 0F 8E [21:36:17]RasterBufferAndPrint [21:36:17]line Счет N : (1)673726 [21:36:17]line ИНН: 02508201610067 [21:36:17]line Контрольно-Кассовый Чек [21:36:17]line ПРОДАЖА [21:36:17]line ТРК (МРК, ГНК) : 32 [21:36:17]line Товар: 2710124130 [21:36:17]line Аи-92-К-5 [21:36:17]line 15.070 * 66.40 [21:36:17]line = 1000.65 [21:36:17]line НДС 12% НСП 1% [21:36:17]line > о реализуемом товаре [21:36:17]line ОКРУГЛЕНИЕ: -0.65 [21:36:17]line ИТОГО: 1000.00 [21:36:17]line Внесено: 1000.00 [21:36:17]line СДАЧА: 0.00 [21:36:17]line НСП 1% : 8.85 [21:36:17]line НДС 12% : 106.26 [21:36:17]line Наличными: 1000.00 [21:36:17]line Безнал.: 0.00 [21:36:17]line Место: АЗС № 120 "Партнер Нефть" [21:36:17]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [21:36:17]line СНО: Общий режим [21:36:17]line Чек 166 21.06.2024 21:36 [21:36:17]line Смена: 355 ФФД: 1.0 [21:36:17]line ЗНМ: 0300000164 [21:36:17]line РНМ: 0000000000092785 [21:36:17]line Версия ККМ: 001 [21:36:17]line ФМ: 0000000000875093 [21:36:17]line ФД: 104243 [21:36:17]line ФПД: 167590252620793 [21:36:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T213617&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104243&fm=167590252620793&tin=02508201610067®Number=0000000000092785&sum=100000 [21:36:18]OFD Sender: Processing packet 104243 [packets to send 17, broken 16] [21:36:18]ProducePacketName [21:36:18]name=ofd_packets/00104243 [21:36:18]OFD Sender: To server: pG, [21:36:18]CommunicateWithHost lk.salyk.kg:30040 [21:36:18]ConnectInit lk.salyk.kg [21:36:18]written 0, free lines is 4095 [21:36:18]Connected sock=10 [21:36: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 00 5F 07 01 4E FC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 A6 00 00 00 F4 03 04 00 51 F2 75 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 33 97 01 00 35 04 06 00 98 6C 25 79 AB F9 18 C8 46 30 8F 66 71 C2 [21:36: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 E7 47 00 2D 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 33 97 01 00 F4 03 04 00 D3 98 75 66 B6 04 01 00 00 B3 EC 6C BD 7A FC 37 71 [21:36:18]CommunicateWithHost err = 0 [21:36:18]CheckOFDResponse [21:36:18]1017 (14) - 77093643461234 [21:36:18]1041 (16) - 0000000000875093 [21:36:18]1040 (4) - 104243 [21:36:18]1012 (4) - 21.06.2024 15:14 [21:36:18]1206 (1) - 0 [21:36:18]OFD Sender: Remove packet 104243 [21:36:18]ProducePacketName [21:36:18]name=ofd_packets/00104243 [21:36:18]NVStorageDeleteData [21:36:18]Write to MH i2c: 01 00 00 94 10 A4 [21:36:18]Write i2c OK [21:36:18]MH_I2C_Read... [21:36:18]Read from MH i2c: 01 [21:36:18]MH_I2C_Read... [21:36:18]Read from MH i2c: 01 07 00 [21:36:18]MH_I2C_Read... [21:36:18]Read from MH i2c: 01 07 00 94 10 00 00 00 00 00 EC 0C A3 [21:36:18]RasterBufferAndPrint [21:36:18]line [21:36:18]line [21:36:18]line [21:36:18]line [21:36:18]line [21:36:18]written 0, free lines is 3314 [21:36:18]MH_Cut [21:36:18]Write to MH i2c: D1 01 00 9B 10 01 7D [21:36:18]Write i2c OK [21:36:18]MH_I2C_Read... [21:36:18]Read from MH i2c: D1 [21:36:18]MH_I2C_Read... [21:36:18]Read from MH i2c: D1 01 00 [21:36:18]MH_I2C_Read... [21:36:18]Read from MH i2c: D1 01 00 9B 10 00 7C [21:36:18]Write to MH i2c: 01 00 00 9C 10 AC [21:36:18]Write i2c OK [21:36:18]MH_I2C_Read... [21:36:19]OFD Sender: No OFD packet to send [21:36:19]*** Cut start [21:36:19]*** Partial cut [21:36:19]*** CUTSNS_PIN = 1 [21:36:19]*** CUTSNS_PIN = 0 [21:36:19]*** Brake cut motor [21:36:20]Read from MH i2c: 01 [21:36:20]MH_I2C_Read... [21:36:20]*** Stop cut motor [21:36:20]*** Cut end [21:36:20]Read from MH i2c: 01 07 00 [21:36:20]MH_I2C_Read... [21:36:20]Read from MH i2c: 01 07 00 9C 10 00 00 00 00 00 FF 0F C1 [21:36:20]process_action close_receipt done [21:36:20]requested_data is exist [21:36:20]produce_requested_data [21:36:20]requested_item fm.sn is exist - process it [21:36:20]wFMCommunicate request_size=4 [21:36:20]MH_SAM_APDU [21:36:20]CAPDU: 80 11 00 00 [21:36:20]Write to MH i2c: E2 08 00 9D 10 80 11 00 00 00 00 00 00 27 [21:36:20]Write i2c OK [21:36:20]MH_I2C_Read... [21:36:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:36:20]Read from MH i2c: E2 [21:36:20]MH_I2C_Read... [21:36:20]Read from MH i2c: E2 17 00 [21:36:20]MH_I2C_Read... [21:36:20]Read from MH i2c: E2 17 00 9D 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 7A [21:36:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [21:36:20]wFMCommunicate OK [21:36:20]requested_item fd.num is exist - process it [21:36:20]SAM_PROTO_GetFieldsCounters [21:36:20]wFMCommunicate request_size=4 [21:36:20]MH_SAM_APDU [21:36:20]CAPDU: 80 13 00 00 [21:36:20]Write to MH i2c: E2 08 00 9E 10 80 13 00 00 00 00 00 00 2A [21:36:20]Write i2c OK [21:36:20]MH_I2C_Read... [21:36:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:36:20]Read from MH i2c: E2 [21:36:20]MH_I2C_Read... [21:36:20]Read from MH i2c: E2 62 00 [21:36:20]MH_I2C_Read... [21:36:20]Read from MH i2c: E2 62 00 9E 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 33 97 01 00 0E 04 04 00 63 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 72 [21:36: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 33 97 01 00 0E 04 04 00 63 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 [21:36:20]wFMCommunicate OK [21:36:20]SAM_PROTO_GetFieldsCounters done [21:36:20]requested_item shift.num is exist - process it [21:36:20]requested_item shift.opened is exist - process it [21:36:20]req_shift_opened [21:36:20]FM_GetShiftState [21:36:20]SAM_PROTO_GetShiftState [21:36:20]wFMCommunicate request_size=4 [21:36:20]MH_SAM_APDU [21:36:20]CAPDU: 80 13 01 00 [21:36:20]Write to MH i2c: E2 08 00 9F 10 80 13 01 00 00 00 00 00 2C [21:36:20]Write i2c OK [21:36:20]MH_I2C_Read... [21:36:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:36:20]Read from MH i2c: E2 [21:36:20]MH_I2C_Read... [21:36:20]Read from MH i2c: E2 0E 00 [21:36:20]MH_I2C_Read... [21:36:20]Read from MH i2c: E2 0E 00 9F 10 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 3F [21:36:20]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [21:36:20]wFMCommunicate OK [21:36:20]SAM_PROTO_GetShiftState done [21:36:20]FM_GetShiftState done [21:36:20]req_shift_opened done [21:36:20]requested_item shift.open_date is exist - process it [21:36:20]req_shift_open_date [21:36:20]req_shift_open_date done [21:36:20]produce_requested_data done [21:36:20]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104243,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [21:36:20]process_action_free close_receipt [21:36:20]json_value_free [21:36:20]json_value_free done [21:36:20]process_json_proto returns [21:36:20]Send response to host [21:36:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104243,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [21:36:20]free response buf [21:36:20]execute_script done [21:36:20]execute_script returns [21:36:20]free content buf [21:36:20]Sock 9.Close socket [21:36:20]Sock 9.Thread stoped [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:36]accept exits with 7 [21:37:36]New connection [21:37:36]New thread 3067616612 created [21:37:36]Thread 3067473252 joined [21:37:36]Waiting for new connection... [21:37:36] Sock 7.Parse request [21:37:36]Sock 7.Check first char [21:37:36]Sock 7.First char is OK [21:37:36]request: POST /json_proto HTTP/1.0 [21:37:36]Method: POST [21:37:36]URL: /json_proto [21:37:36]Method is POST - this is cgi request [21:37:36]url: /json_proto [21:37:36]query_string will be loaded in cgi processing [21:37:36]execute_cgi json_proto POST (null) [21:37:36]execute_cgi path=json_proto method=POST [21:37:36]POST find Content-Length [21:37:36]Host: 172.17.38.133:8080 [21:37:36]Content-Length: 1195 [21:37:36]Content-Type: application/json [21:37:36] [21:37:36]POST finish read [21:37:36]Found Content-Length = 1195 [21:37: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 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)673727\u000A21.06.2024 21: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 30.120 x 66.40\u000A\u0418\u0422\u041E\u0413: 1999.97\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\u000A99859\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:37:36]execute_script... [21:37: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 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)673727\u000A21.06.2024 21: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 30.120 x 66.40\u000A\u0418\u0422\u041E\u0413: 1999.97\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\u000A99859\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:37:36]POST & json_proto [21:37:36]process_json_proto [21:37:36]json parsed OK: [21:37:36]protocol is kg_v1.0 [21:37:36]action value=print_text [21:37:36]process_action print_text [21:37:36]cmd_print_text [21:37:36]ExternCall_PrintAddStr [21:37:36]wPrintStart [21:37:36]Write to MH i2c: 01 00 00 A0 10 B0 [21:37:36]Write i2c OK [21:37:36]MH_I2C_Read... [21:37:36]Read from MH i2c: 01 [21:37:36]MH_I2C_Read... [21:37:36]Read from MH i2c: 01 07 00 [21:37:36]MH_I2C_Read... [21:37:36]Read from MH i2c: 01 07 00 A0 10 00 00 00 00 00 FF 0F C5 [21:37:36]RasterBufferAndPrint [21:37:36]line *****ТОВАРНЫЙ ЧЕК***** [21:37:36]line АЗС 120 [21:37:36]line Партнер нефть [21:37:36]line 02508201610067 [21:37:36]line Кассир : Асанбаев Н. [21:37:36]line Счет N : (1)673727 [21:37:36]line 21.06.2024 21:14 [21:37:36]line ПРОДАЖА [21:37:36]line ТРК (МРК, ГНК): 42 [21:37:36]line Вид ГСМ : 2710124130 [21:37:36]line Аи-92-К-5 [21:37:36]line 30.120 x 66.40 [21:37:36]line ИТОГ: 1999.97 [21:37:36]line Тип оплаты: Талоны: Топливная Карта [21:37:36]line 99859 [21:37:36]line ______________________ [21:37:36]line (подпись) [21:37:36]written 0, free lines is 4095 [21:37:36]Write to MH i2c: 01 00 00 B4 10 C4 [21:37:36]Write i2c OK [21:37:36]MH_I2C_Read... [21:37:36]Read from MH i2c: 01 [21:37:36]MH_I2C_Read... [21:37:36]Read from MH i2c: 01 07 00 [21:37:36]MH_I2C_Read... [21:37:36]Read from MH i2c: 01 07 00 B4 10 00 00 00 00 00 10 0E E9 [21:37:36]RasterBufferAndPrint [21:37:36]line [21:37:36]line [21:37:36]line [21:37:36]line [21:37:36]line [21:37:36]written 0, free lines is 3602 [21:37:36]MH_Cut [21:37:36]Write to MH i2c: D1 01 00 BB 10 01 9D [21:37:36]Write i2c OK [21:37:36]MH_I2C_Read... [21:37:36]Read from MH i2c: D1 [21:37:36]MH_I2C_Read... [21:37:36]Read from MH i2c: D1 01 00 [21:37:36]MH_I2C_Read... [21:37:36]Read from MH i2c: D1 01 00 BB 10 00 9C [21:37:36]Write to MH i2c: 01 00 00 BC 10 CC [21:37:36]Write i2c OK [21:37:36]MH_I2C_Read... [21:37:37]*** Cut start [21:37:37]*** Partial cut [21:37:37]*** CUTSNS_PIN = 1 [21:37:37]*** CUTSNS_PIN = 0 [21:37:37]*** Brake cut motor [21:37:37]Read from MH i2c: 01 [21:37:37]MH_I2C_Read... [21:37:37]*** Stop cut motor [21:37:37]*** Cut end [21:37:37]Read from MH i2c: 01 07 00 [21:37:37]MH_I2C_Read... [21:37:37]Read from MH i2c: 01 07 00 BC 10 00 00 00 00 00 FF 0F E1 [21:37:37]process_action print_text done [21:37:37]requested_data is exist [21:37:37]produce_requested_data [21:37:37]requested_item fm.sn is exist - process it [21:37:37]wFMCommunicate request_size=4 [21:37:37]MH_SAM_APDU [21:37:37]CAPDU: 80 11 00 00 [21:37:37]Write to MH i2c: E2 08 00 BD 10 80 11 00 00 00 00 00 00 47 [21:37:37]Write i2c OK [21:37:37]MH_I2C_Read... [21:37:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:37:38]Read from MH i2c: E2 [21:37:38]MH_I2C_Read... [21:37:38]Read from MH i2c: E2 17 00 [21:37:38]MH_I2C_Read... [21:37:38]Read from MH i2c: E2 17 00 BD 10 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:37:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [21:37:38]wFMCommunicate OK [21:37:38]requested_item fd.num is exist - process it [21:37:38]SAM_PROTO_GetFieldsCounters [21:37:38]wFMCommunicate request_size=4 [21:37:38]MH_SAM_APDU [21:37:38]CAPDU: 80 13 00 00 [21:37:38]Write to MH i2c: E2 08 00 BE 10 80 13 00 00 00 00 00 00 4A [21:37:38]Write i2c OK [21:37:38]MH_I2C_Read... [21:37:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:37:38]Read from MH i2c: E2 [21:37:38]MH_I2C_Read... [21:37:38]Read from MH i2c: E2 62 00 [21:37:38]MH_I2C_Read... [21:37:38]Read from MH i2c: E2 62 00 BE 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 33 97 01 00 0E 04 04 00 63 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 92 [21:37: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 33 97 01 00 0E 04 04 00 63 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 [21:37:38]wFMCommunicate OK [21:37:38]SAM_PROTO_GetFieldsCounters done [21:37:38]requested_item shift.num is exist - process it [21:37:38]requested_item shift.opened is exist - process it [21:37:38]req_shift_opened [21:37:38]FM_GetShiftState [21:37:38]SAM_PROTO_GetShiftState [21:37:38]wFMCommunicate request_size=4 [21:37:38]MH_SAM_APDU [21:37:38]CAPDU: 80 13 01 00 [21:37:38]Write to MH i2c: E2 08 00 BF 10 80 13 01 00 00 00 00 00 4C [21:37:38]Write i2c OK [21:37:38]MH_I2C_Read... [21:37:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:37:38]Read from MH i2c: E2 [21:37:38]MH_I2C_Read... [21:37:38]Read from MH i2c: E2 0E 00 [21:37:38]MH_I2C_Read... [21:37:38]Read from MH i2c: E2 0E 00 BF 10 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 5F [21:37:38]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [21:37:38]wFMCommunicate OK [21:37:38]SAM_PROTO_GetShiftState done [21:37:38]FM_GetShiftState done [21:37:38]req_shift_opened done [21:37:38]requested_item shift.open_date is exist - process it [21:37:38]req_shift_open_date [21:37:38]req_shift_open_date done [21:37:38]produce_requested_data done [21:37:38]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104243,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [21:37:38]process_action_free print_text [21:37:38]json_value_free [21:37:38]json_value_free done [21:37:38]process_json_proto returns [21:37:38]Send response to host [21:37:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104243,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [21:37:38]free response buf [21:37:38]execute_script done [21:37:38]execute_script returns [21:37:38]free content buf [21:37:38]Sock 7.Close socket [21:37:38]Sock 7.Thread stoped [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]OFD Sender: No OFD packet to send [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:14]OFD Sender: No OFD packet to send [21:44:19]OFD Sender: No OFD packet to send [21:44:24]OFD Sender: No OFD packet to send [21:44:29]OFD Sender: No OFD packet to send [21:44:34]OFD Sender: No OFD packet to send [21:44:39]OFD Sender: No OFD packet to send [21:44:44]OFD Sender: No OFD packet to send [21:44:49]OFD Sender: No OFD packet to send [21:44:54]OFD Sender: No OFD packet to send [21:44:59]OFD Sender: No OFD packet to send [21:45:04]OFD Sender: No OFD packet to send [21:45:09]OFD Sender: No OFD packet to send [21:45:14]OFD Sender: No OFD packet to send [21:45:19]OFD Sender: No OFD packet to send [21:45:24]OFD Sender: No OFD packet to send [21:45:29]OFD Sender: No OFD packet to send [21:45:34]OFD Sender: No OFD packet to send [21:45:39]OFD Sender: No OFD packet to send [21:45:44]OFD Sender: No OFD packet to send [21:45:49]OFD Sender: No OFD packet to send [21:45:49]accept exits with 9 [21:45:49]New connection [21:45:49]New thread 3067473252 created [21:45:49]Thread 3067616612 joined [21:45:49]Waiting for new connection... [21:45:49] Sock 9.Parse request [21:45:49]Sock 9.Check first char [21:45:49]Sock 9.First char is OK [21:45:49]request: POST /json_proto HTTP/1.0 [21:45:49]Method: POST [21:45:49]URL: /json_proto [21:45:49]Method is POST - this is cgi request [21:45:49]url: /json_proto [21:45:49]query_string will be loaded in cgi processing [21:45:49]execute_cgi json_proto POST (null) [21:45:49]execute_cgi path=json_proto method=POST [21:45:49]POST find Content-Length [21:45:49]Host: 172.17.38.133:8080 [21:45:49]Content-Length: 816 [21:45:49]Content-Type: application/json [21:45:49] [21:45:49]POST finish read [21:45:49]Found Content-Length = 816 [21:45:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673729", "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 }]} ], "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.30 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:45:49]execute_script... [21:45: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)673729", "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 }]} ], "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.30 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:45:49]POST & json_proto [21:45:49]process_json_proto [21:45:49]json parsed OK: [21:45:49]protocol is kg_v1.0 [21:45:49]action value=close_receipt [21:45:49]process_action close_receipt [21:45:49]cmd_close_receipt [21:45:49]MH_GetDate [21:45:49]Write to MH i2c: F0 00 00 C0 10 BF [21:45:49]Write i2c OK [21:45:49]MH_I2C_Read... [21:45:49]Read from MH i2c: F0 [21:45:49]MH_I2C_Read... [21:45:49]Read from MH i2c: F0 09 00 [21:45:49]MH_I2C_Read... [21:45:49]Read from MH i2c: F0 09 00 C0 10 00 8F F4 75 66 BD 8F 7C 64 52 [21:45:49]GetLastDocTimeStamp 1719005777 [21:45:49]current date 1719006351 [21:45:49]FM_GetShiftState [21:45:49]SAM_PROTO_GetShiftState [21:45:49]wFMCommunicate request_size=4 [21:45:49]MH_SAM_APDU [21:45:49]CAPDU: 80 13 01 00 [21:45:49]Write to MH i2c: E2 08 00 C1 10 80 13 01 00 00 00 00 00 4E [21:45:49]Write i2c OK [21:45:49]MH_I2C_Read... [21:45:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:45:49]Read from MH i2c: E2 [21:45:49]MH_I2C_Read... [21:45:49]Read from MH i2c: E2 0E 00 [21:45:49]MH_I2C_Read... [21:45:49]Read from MH i2c: E2 0E 00 C1 10 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 61 [21:45:49]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [21:45:49]wFMCommunicate OK [21:45:49]SAM_PROTO_GetShiftState done [21:45:49]FM_GetShiftState done [21:45:49]opened in 1718929509 [21:45:49]opened+sec_in_day 1719015909 [21:45:49]quantity*price = 50030 [21:45:49]sum+1 = 50031 [21:45:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.30 НСП 1% : 4.43 НДС 12% : 53.13 Наличными: 0.00 Безнал.: 500.30 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 167 21.06.2024 21:45 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875093 ФД: 104244 ФПД: 20258501022013 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T214551&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104244&fm=20258501022013&tin=02508201610067®Number=0000000000092785&sum=50030 [21:45:50]StoreToDocumentArchive [21:45:50]shift 355 fd 104244 [21:45:50]save to /storage/0355/doc_00104244 [21:45:50]save last doc name /storage/0355/doc_00104244 to /storage/kkm_last_doc_name [21:45:50]save OK [21:45:50]Clear old archive folders... [21:45:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:45:50]tlvbuf is 00688600 [21:45:50]SAM_PROTO_ClearQueue [21:45:50]wFMCommunicate request_size=4 [21:45:50]MH_SAM_APDU [21:45:50]CAPDU: 80 09 00 00 [21:45:50]Write to MH i2c: E2 08 00 CE 10 80 09 00 00 00 00 00 00 50 [21:45:50]Write i2c OK [21:45:50]MH_I2C_Read... [21:45:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:45:50]Read from MH i2c: E2 [21:45:50]MH_I2C_Read... [21:45:50]Read from MH i2c: E2 03 00 [21:45:50]MH_I2C_Read... [21:45:50]Read from MH i2c: E2 03 00 CE 10 00 90 00 52 [21:45:50]RAPDU: 90 00 [21:45:50]wFMCommunicate OK [21:45:50]SAM_PROTO_ClearQueue done [21:45:50]KKMCreateOFDPacket [21:45:50]OFDProtocolAddRootSTLVToBuf [21:45:50]FM_MakeSignedData [21:45:50]FM_MakeSignedData [21:45:50]SAM_PROTO_SignData [21:45:50]wFMCommunicate request_size=4 [21:45:50]MH_SAM_APDU [21:45:50]CAPDU: 80 0D 01 02 [21:45:50]Write to MH i2c: E2 08 00 CF 10 80 0D 01 02 00 00 00 00 58 [21:45:50]Write i2c OK [21:45:50]MH_I2C_Read... [21:45:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:45:50]Read from MH i2c: E2 [21:45:50]MH_I2C_Read... [21:45:50]Read from MH i2c: E2 03 00 [21:45:50]MH_I2C_Read... [21:45:50]Read from MH i2c: E2 03 00 CF 10 00 90 00 53 [21:45:50]RAPDU: 90 00 [21:45:50]wFMCommunicate OK [21:45:50]wFMCommunicate request_size=255 [21:45:50]MH_SAM_APDU [21:45: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 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 6E C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 6E C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 8F F4 75 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 34 97 01 00 35 04 06 00 12 [21:45:50]Write to MH i2c: E2 02 01 D0 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 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 6E C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 6E C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 8F F4 75 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 34 97 01 00 35 04 06 00 12 00 00 5D [21:45:50]Write i2c OK [21:45:50]MH_I2C_Read... [21:45:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:45:51]Read from MH i2c: E2 [21:45:51]MH_I2C_Read... [21:45:51]Read from MH i2c: E2 03 00 [21:45:51]MH_I2C_Read... [21:45:51]Read from MH i2c: E2 03 00 D0 10 00 90 00 54 [21:45:51]RAPDU: 90 00 [21:45:51]wFMCommunicate OK [21:45:51]wFMCommunicate request_size=10 [21:45:51]MH_SAM_APDU [21:45:51]CAPDU: 80 0D 02 02 05 6C CC C1 D1 3D [21:45:51]Write to MH i2c: E2 0D 00 D1 10 80 0D 02 02 05 00 6C CC C1 D1 3D 00 00 6C [21:45:51]Write i2c OK [21:45:51]MH_I2C_Read... [21:45:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:45:51]Read from MH i2c: E2 [21:45:51]MH_I2C_Read... [21:45:51]Read from MH i2c: E2 03 00 [21:45:51]MH_I2C_Read... [21:45:51]Read from MH i2c: E2 03 00 D1 10 00 90 00 55 [21:45:51]RAPDU: 90 00 [21:45:51]wFMCommunicate OK [21:45:51]wFMCommunicate request_size=4 [21:45:51]MH_SAM_APDU [21:45:51]CAPDU: 80 0D 03 02 [21:45:51]Write to MH i2c: E2 08 00 D2 10 80 0D 03 02 00 00 00 00 5D [21:45:51]Write i2c OK [21:45:51]MH_I2C_Read... [21:45:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:45:51]Read from MH i2c: E2 [21:45:51]MH_I2C_Read... [21:45:51]Read from MH i2c: E2 0B 00 [21:45:51]MH_I2C_Read... [21:45:51]Read from MH i2c: E2 0B 00 D2 10 00 2B A6 6F 1D EB AB 5D 91 90 00 3F [21:45:51]RAPDU: 2B A6 6F 1D EB AB 5D 91 90 00 [21:45:51]wFMCommunicate OK [21:45:51]SAM_PROTO_SignData done [21:45:51]FM_MakeSignedData done [21:45:51]CreateOFDProtocolMessage [21:45:51]wFMCommunicate request_size=4 [21:45:51]MH_SAM_APDU [21:45:51]CAPDU: 80 11 00 00 [21:45:51]Write to MH i2c: E2 08 00 D3 10 80 11 00 00 00 00 00 00 5D [21:45:51]Write i2c OK [21:45:51]MH_I2C_Read... [21:45:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:45:51]Read from MH i2c: E2 [21:45:51]MH_I2C_Read... [21:45:51]Read from MH i2c: E2 17 00 [21:45:51]MH_I2C_Read... [21:45:51]Read from MH i2c: E2 17 00 D3 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 B0 [21:45: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:45:51]wFMCommunicate OK [21:45:51]CreateOFDProtocolMessage done [21:45:51]OFDSenderStorePacket 104244 [21:45:51]StoreOFDPacket docnum=104244 [21:45: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 6F E2 07 01 15 F6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 6E C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 6E C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 8F F4 75 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 34 97 01 00 35 04 06 00 12 6C CC C1 D1 3D 2B A6 6F 1D EB AB 5D 91 [21:45:51]CheckFolder [21:45:51]dirname=/storage/ofd_packets [21:45:51]CheckFolder done [21:45:51]ProducePacketName [21:45:51]name=ofd_packets/00104244 [21:45:51]NVStorageSaveData ofd_packets/00104244 [21:45:51]File name is /storage/ofd_packets/00104244 [21:45:51]Write 301 bytes [21:45:51]NVStorageSaveData done [21:45:51]OFDSenderStorePacket done [21:45:51]KKMCreateOFDPacket done [21:45:51]NVStorageSaveData kkm_last_timestamp [21:45:51]File name is /storage/kkm_last_timestamp [21:45:51]Write 4 bytes [21:45:51]NVStorageSaveData done [21:45:51]ExternCall_PrintAddStr [21:45:51]wPrintStart [21:45:51]Write to MH i2c: 01 00 00 D4 10 E4 [21:45:51]Write i2c OK [21:45:51]MH_I2C_Read... [21:45:51]Read from MH i2c: 01 [21:45:51]MH_I2C_Read... [21:45:51]Read from MH i2c: 01 07 00 [21:45:51]MH_I2C_Read... [21:45:51]Read from MH i2c: 01 07 00 D4 10 00 00 00 00 00 FF 0F F9 [21:45:51]RasterBufferAndPrint [21:45:51]line Счет N : (1)673729 [21:45:51]line ИНН: 02508201610067 [21:45:51]line Контрольно-Кассовый Чек [21:45:51]line ПРОДАЖА [21:45:51]line ТРК (МРК, ГНК) : 31 [21:45:51]line Товар: 2710124500 [21:45:51]line Аи-95-К-5 [21:45:51]line 6.770 * 73.90 [21:45:51]line = 500.30 [21:45:51]line НДС 12% НСП 1% [21:45:51]line > о реализуемом товаре [21:45:51]line ИТОГО: 500.30 [21:45:51]line НСП 1% : 4.43 [21:45:51]line НДС 12% : 53.13 [21:45:51]line Наличными: 0.00 [21:45:51]line Безнал.: 500.30 [21:45:51]line Место: АЗС № 120 "Партнер Нефть" [21:45:51]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [21:45:51]line СНО: Общий режим [21:45:51]line Чек 167 21.06.2024 21:45 [21:45:51]line Смена: 355 ФФД: 1.0 [21:45:51]line ЗНМ: 0300000164 [21:45:51]line РНМ: 0000000000092785 [21:45:51]line Версия ККМ: 001 [21:45:51]line Платежная система: Бакай Банк [21:45:51]line ФМ: 0000000000875093 [21:45:51]line ФД: 104244 [21:45:51]line ФПД: 20258501022013 [21:45:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T214551&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104244&fm=20258501022013&tin=02508201610067®Number=0000000000092785&sum=50030 [21:45:51]OFD Sender: Processing packet 104244 [packets to send 17, broken 16] [21:45:51]ProducePacketName [21:45:51]name=ofd_packets/00104244 [21:45:51]OFD Sender: To server: pG, [21:45:51]CommunicateWithHost lk.salyk.kg:30040 [21:45:51]ConnectInit lk.salyk.kg [21:45:51]written 0, free lines is 4095 [21:45:51]Connected sock=10 [21:45: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 6F E2 07 01 15 F6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 6E C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 6E C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 8F F4 75 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 34 97 01 00 35 04 06 00 12 6C CC C1 D1 3D 2B A6 6F 1D EB AB 5D 91 [21:45: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 C8 5D 47 00 03 77 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 34 97 01 00 F4 03 04 00 10 9B 75 66 B6 04 01 00 00 46 A1 A9 AD 7F F7 BF C5 [21:45:52]CommunicateWithHost err = 0 [21:45:52]CheckOFDResponse [21:45:52]1017 (14) - 77093643461234 [21:45:52]1041 (16) - 0000000000875093 [21:45:52]1040 (4) - 104244 [21:45:52]1012 (4) - 21.06.2024 15:24 [21:45:52]1206 (1) - 0 [21:45:52]OFD Sender: Remove packet 104244 [21:45:52]ProducePacketName [21:45:52]name=ofd_packets/00104244 [21:45:52]NVStorageDeleteData [21:45:52]Write to MH i2c: 01 00 00 FE 10 0E [21:45:52]Write i2c OK [21:45:52]MH_I2C_Read... [21:45:52]Read from MH i2c: 01 [21:45:52]MH_I2C_Read... [21:45:52]Read from MH i2c: 01 07 00 [21:45:52]MH_I2C_Read... [21:45:52]Read from MH i2c: 01 07 00 FE 10 00 00 00 00 00 F5 0C 16 [21:45:52]RasterBufferAndPrint [21:45:52]line [21:45:52]line [21:45:52]line [21:45:52]line [21:45:52]line [21:45:52]written 0, free lines is 3324 [21:45:52]MH_Cut [21:45:52]Write to MH i2c: D1 01 00 05 11 01 E8 [21:45:52]Write i2c OK [21:45:52]MH_I2C_Read... [21:45:52]Read from MH i2c: D1 [21:45:52]MH_I2C_Read... [21:45:52]Read from MH i2c: D1 01 00 [21:45:52]MH_I2C_Read... [21:45:52]Read from MH i2c: D1 01 00 05 11 00 E7 [21:45:52]Write to MH i2c: 01 00 00 06 11 17 [21:45:52]Write i2c OK [21:45:52]MH_I2C_Read... [21:45:52]OFD Sender: No OFD packet to send [21:45:52]*** Cut start [21:45:52]*** Partial cut [21:45:52]*** CUTSNS_PIN = 1 [21:45:52]*** CUTSNS_PIN = 0 [21:45:53]*** Brake cut motor [21:45:53]Read from MH i2c: 01 [21:45:53]MH_I2C_Read... [21:45:53]*** Stop cut motor [21:45:53]*** Cut end [21:45:53]Read from MH i2c: 01 07 00 [21:45:53]MH_I2C_Read... [21:45:53]Read from MH i2c: 01 07 00 06 11 00 00 00 00 00 FF 0F 2C [21:45:53]process_action close_receipt done [21:45:53]requested_data is exist [21:45:53]produce_requested_data [21:45:53]requested_item fm.sn is exist - process it [21:45:53]wFMCommunicate request_size=4 [21:45:53]MH_SAM_APDU [21:45:53]CAPDU: 80 11 00 00 [21:45:53]Write to MH i2c: E2 08 00 07 11 80 11 00 00 00 00 00 00 92 [21:45:53]Write i2c OK [21:45:53]MH_I2C_Read... [21:45:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:45:53]Read from MH i2c: E2 [21:45:53]MH_I2C_Read... [21:45:53]Read from MH i2c: E2 17 00 [21:45:53]MH_I2C_Read... [21:45:53]Read from MH i2c: E2 17 00 07 11 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:45:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [21:45:53]wFMCommunicate OK [21:45:53]requested_item fd.num is exist - process it [21:45:53]SAM_PROTO_GetFieldsCounters [21:45:53]wFMCommunicate request_size=4 [21:45:53]MH_SAM_APDU [21:45:53]CAPDU: 80 13 00 00 [21:45:53]Write to MH i2c: E2 08 00 08 11 80 13 00 00 00 00 00 00 95 [21:45:53]Write i2c OK [21:45:53]MH_I2C_Read... [21:45:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:45:53]Read from MH i2c: E2 [21:45:53]MH_I2C_Read... [21:45:53]Read from MH i2c: E2 62 00 [21:45:53]MH_I2C_Read... [21:45:53]Read from MH i2c: E2 62 00 08 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 34 97 01 00 0E 04 04 00 63 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 E1 [21:45: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 34 97 01 00 0E 04 04 00 63 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 [21:45:53]wFMCommunicate OK [21:45:53]SAM_PROTO_GetFieldsCounters done [21:45:53]requested_item shift.num is exist - process it [21:45:53]requested_item shift.opened is exist - process it [21:45:53]req_shift_opened [21:45:53]FM_GetShiftState [21:45:53]SAM_PROTO_GetShiftState [21:45:53]wFMCommunicate request_size=4 [21:45:53]MH_SAM_APDU [21:45:53]CAPDU: 80 13 01 00 [21:45:53]Write to MH i2c: E2 08 00 09 11 80 13 01 00 00 00 00 00 97 [21:45:53]Write i2c OK [21:45:53]MH_I2C_Read... [21:45:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:45:53]Read from MH i2c: E2 [21:45:53]MH_I2C_Read... [21:45:53]Read from MH i2c: E2 0E 00 [21:45:53]MH_I2C_Read... [21:45:53]Read from MH i2c: E2 0E 00 09 11 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 AA [21:45:53]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [21:45:53]wFMCommunicate OK [21:45:53]SAM_PROTO_GetShiftState done [21:45:53]FM_GetShiftState done [21:45:53]req_shift_opened done [21:45:53]requested_item shift.open_date is exist - process it [21:45:53]req_shift_open_date [21:45:53]req_shift_open_date done [21:45:53]produce_requested_data done [21:45:53]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104244,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [21:45:53]process_action_free close_receipt [21:45:53]json_value_free [21:45:53]json_value_free done [21:45:53]process_json_proto returns [21:45:53]Send response to host [21:45:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104244,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [21:45:53]free response buf [21:45:53]execute_script done [21:45:53]execute_script returns [21:45:53]free content buf [21:45:53]Sock 9.Close socket [21:45:53]Sock 9.Thread stoped [21:45:57]OFD Sender: No OFD packet to send [21:46:02]OFD Sender: No OFD packet to send [21:46:07]OFD Sender: No OFD packet to send [21:46:12]OFD Sender: No OFD packet to send [21:46:17]OFD Sender: No OFD packet to send [21:46:22]OFD Sender: No OFD packet to send [21:46:27]OFD Sender: No OFD packet to send [21:46:32]OFD Sender: No OFD packet to send [21:46:37]OFD Sender: No OFD packet to send [21:46:42]OFD Sender: No OFD packet to send [21:46:47]OFD Sender: No OFD packet to send [21:46:52]OFD Sender: No OFD packet to send [21:46:57]OFD Sender: No OFD packet to send [21:47:02]OFD Sender: No OFD packet to send [21:47:07]OFD Sender: No OFD packet to send [21:47:12]OFD Sender: No OFD packet to send [21:47:17]OFD Sender: No OFD packet to send [21:47:22]OFD Sender: No OFD packet to send [21:47:27]OFD Sender: No OFD packet to send [21:47:32]OFD Sender: No OFD packet to send [21:47:37]OFD Sender: No OFD packet to send [21:47:42]OFD Sender: No OFD packet to send [21:47:47]OFD Sender: No OFD packet to send [21:47:52]OFD Sender: No OFD packet to send [21:47:57]OFD Sender: No OFD packet to send [21:48:02]OFD Sender: No OFD packet to send [21:48:07]accept exits with 7 [21:48:07]New connection [21:48:07]New thread 3067616612 created [21:48:07]Thread 3067473252 joined [21:48:07]Waiting for new connection... [21:48:07] Sock 7.Parse request [21:48:07]Sock 7.Check first char [21:48:07]Sock 7.First char is OK [21:48:07]request: POST /json_proto HTTP/1.0 [21:48:07]Method: POST [21:48:07]URL: /json_proto [21:48:07]Method is POST - this is cgi request [21:48:07]url: /json_proto [21:48:07]query_string will be loaded in cgi processing [21:48:07]execute_cgi json_proto POST (null) [21:48:07]execute_cgi path=json_proto method=POST [21:48:07]POST find Content-Length [21:48:07]Host: 172.17.38.133:8080 [21:48:07]Content-Length: 682 [21:48:07]Content-Type: application/json [21:48:07] [21:48:07]POST finish read [21:48:07]Found Content-Length = 682 [21:48:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673730", "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" ] } } [21:48:07]execute_script... [21:48: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)673730", "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" ] } } [21:48:07]POST & json_proto [21:48:07]process_json_proto [21:48:07]json parsed OK: [21:48:07]protocol is kg_v1.0 [21:48:07]action value=close_receipt [21:48:07]process_action close_receipt [21:48:07]cmd_close_receipt [21:48:07]MH_GetDate [21:48:07]Write to MH i2c: F0 00 00 0A 11 0A [21:48:07]Write i2c OK [21:48:07]MH_I2C_Read... [21:48:07]Read from MH i2c: F0 [21:48:07]MH_I2C_Read... [21:48:07]Read from MH i2c: F0 09 00 [21:48:07]MH_I2C_Read... [21:48:07]Read from MH i2c: F0 09 00 0A 11 00 18 F5 75 66 BD 8F 7C 64 27 [21:48:07]GetLastDocTimeStamp 1719006351 [21:48:07]current date 1719006488 [21:48:07]FM_GetShiftState [21:48:07]SAM_PROTO_GetShiftState [21:48:07]wFMCommunicate request_size=4 [21:48:07]MH_SAM_APDU [21:48:07]CAPDU: 80 13 01 00 [21:48:07]Write to MH i2c: E2 08 00 0B 11 80 13 01 00 00 00 00 00 99 [21:48:07]Write i2c OK [21:48:07]MH_I2C_Read... [21:48:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:48:07]Read from MH i2c: E2 [21:48:07]MH_I2C_Read... [21:48:07]Read from MH i2c: E2 0E 00 [21:48:07]MH_I2C_Read... [21:48:07]Read from MH i2c: E2 0E 00 0B 11 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 AC [21:48:07]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [21:48:07]wFMCommunicate OK [21:48:07]SAM_PROTO_GetShiftState done [21:48:07]FM_GetShiftState done [21:48:07]opened in 1718929509 [21:48:07]opened+sec_in_day 1719015909 [21:48:07]quantity*price = 200063 [21:48:07]sum+1 = 200064 [21:48: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 СНО: Общий режим Чек 168 21.06.2024 21:48 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104245 ФПД: 228583879616528 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T214809&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104245&fm=228583879616528&tin=02508201610067®Number=0000000000092785&sum=200000 [21:48:08]StoreToDocumentArchive [21:48:08]shift 355 fd 104245 [21:48:08]save to /storage/0355/doc_00104245 [21:48:08]save last doc name /storage/0355/doc_00104245 to /storage/kkm_last_doc_name [21:48:08]save OK [21:48:08]Clear old archive folders... [21:48:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:48:08]tlvbuf is 0063F460 [21:48:08]SAM_PROTO_ClearQueue [21:48:08]wFMCommunicate request_size=4 [21:48:08]MH_SAM_APDU [21:48:08]CAPDU: 80 09 00 00 [21:48:08]Write to MH i2c: E2 08 00 18 11 80 09 00 00 00 00 00 00 9B [21:48:08]Write i2c OK [21:48:08]MH_I2C_Read... [21:48:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:48:08]Read from MH i2c: E2 [21:48:08]MH_I2C_Read... [21:48:08]Read from MH i2c: E2 03 00 [21:48:08]MH_I2C_Read... [21:48:08]Read from MH i2c: E2 03 00 18 11 00 90 00 9D [21:48:08]RAPDU: 90 00 [21:48:08]wFMCommunicate OK [21:48:08]SAM_PROTO_ClearQueue done [21:48:08]KKMCreateOFDPacket [21:48:08]OFDProtocolAddRootSTLVToBuf [21:48:08]FM_MakeSignedData [21:48:08]FM_MakeSignedData [21:48:08]SAM_PROTO_SignData [21:48:08]wFMCommunicate request_size=4 [21:48:08]MH_SAM_APDU [21:48:08]CAPDU: 80 0D 01 02 [21:48:08]Write to MH i2c: E2 08 00 19 11 80 0D 01 02 00 00 00 00 A3 [21:48:08]Write i2c OK [21:48:08]MH_I2C_Read... [21:48:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:48:08]Read from MH i2c: E2 [21:48:08]MH_I2C_Read... [21:48:08]Read from MH i2c: E2 03 00 [21:48:08]MH_I2C_Read... [21:48:08]Read from MH i2c: E2 03 00 19 11 00 90 00 9E [21:48:08]RAPDU: 90 00 [21:48:08]wFMCommunicate OK [21:48:08]wFMCommunicate request_size=255 [21:48:08]MH_SAM_APDU [21:48: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 A8 00 00 00 F4 03 04 00 19 F5 75 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 35 97 01 00 35 04 06 00 CF [21:48:08]Write to MH i2c: E2 02 01 1A 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 A8 00 00 00 F4 03 04 00 19 F5 75 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 35 97 01 00 35 04 06 00 CF 00 00 E3 [21:48:08]Write i2c OK [21:48:08]MH_I2C_Read... [21:48:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:48:08]Read from MH i2c: E2 [21:48:08]MH_I2C_Read... [21:48:08]Read from MH i2c: E2 03 00 [21:48:08]MH_I2C_Read... [21:48:08]Read from MH i2c: E2 03 00 1A 11 00 90 00 9F [21:48:08]RAPDU: 90 00 [21:48:08]wFMCommunicate OK [21:48:08]wFMCommunicate request_size=10 [21:48:08]MH_SAM_APDU [21:48:08]CAPDU: 80 0D 02 02 05 E5 54 F2 28 10 [21:48:08]Write to MH i2c: E2 0D 00 1B 11 80 0D 02 02 05 00 E5 54 F2 28 10 00 00 13 [21:48:08]Write i2c OK [21:48:08]MH_I2C_Read... [21:48:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:48:09]Read from MH i2c: E2 [21:48:09]MH_I2C_Read... [21:48:09]Read from MH i2c: E2 03 00 [21:48:09]MH_I2C_Read... [21:48:09]Read from MH i2c: E2 03 00 1B 11 00 90 00 A0 [21:48:09]RAPDU: 90 00 [21:48:09]wFMCommunicate OK [21:48:09]wFMCommunicate request_size=4 [21:48:09]MH_SAM_APDU [21:48:09]CAPDU: 80 0D 03 02 [21:48:09]Write to MH i2c: E2 08 00 1C 11 80 0D 03 02 00 00 00 00 A8 [21:48:09]Write i2c OK [21:48:09]MH_I2C_Read... [21:48:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:48:09]Read from MH i2c: E2 [21:48:09]MH_I2C_Read... [21:48:09]Read from MH i2c: E2 0B 00 [21:48:09]MH_I2C_Read... [21:48:09]Read from MH i2c: E2 0B 00 1C 11 00 54 26 3D 97 54 DB EF 85 90 00 9A [21:48:09]RAPDU: 54 26 3D 97 54 DB EF 85 90 00 [21:48:09]wFMCommunicate OK [21:48:09]SAM_PROTO_SignData done [21:48:09]FM_MakeSignedData done [21:48:09]CreateOFDProtocolMessage [21:48:09]wFMCommunicate request_size=4 [21:48:09]MH_SAM_APDU [21:48:09]CAPDU: 80 11 00 00 [21:48:09]Write to MH i2c: E2 08 00 1D 11 80 11 00 00 00 00 00 00 A8 [21:48:09]Write i2c OK [21:48:09]MH_I2C_Read... [21:48:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:48:09]Read from MH i2c: E2 [21:48:09]MH_I2C_Read... [21:48:09]Read from MH i2c: E2 17 00 [21:48:09]MH_I2C_Read... [21:48:09]Read from MH i2c: E2 17 00 1D 11 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:48: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:48:09]wFMCommunicate OK [21:48:09]CreateOFDProtocolMessage done [21:48:09]OFDSenderStorePacket 104245 [21:48:09]StoreOFDPacket docnum=104245 [21:48: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 13 E5 07 01 4C 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 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 A8 00 00 00 F4 03 04 00 19 F5 75 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 35 97 01 00 35 04 06 00 CF E5 54 F2 28 10 54 26 3D 97 54 DB EF 85 [21:48:09]CheckFolder [21:48:09]dirname=/storage/ofd_packets [21:48:09]CheckFolder done [21:48:09]ProducePacketName [21:48:09]name=ofd_packets/00104245 [21:48:09]NVStorageSaveData ofd_packets/00104245 [21:48:09]File name is /storage/ofd_packets/00104245 [21:48:09]Write 301 bytes [21:48:09]NVStorageSaveData done [21:48:09]OFDSenderStorePacket done [21:48:09]KKMCreateOFDPacket done [21:48:09]NVStorageSaveData kkm_last_timestamp [21:48:09]File name is /storage/kkm_last_timestamp [21:48:09]Write 4 bytes [21:48:09]NVStorageSaveData done [21:48:09]ExternCall_PrintAddStr [21:48:09]wPrintStart [21:48:09]Write to MH i2c: 01 00 00 1E 11 2F [21:48:09]Write i2c OK [21:48:09]MH_I2C_Read... [21:48:09]Read from MH i2c: 01 [21:48:09]MH_I2C_Read... [21:48:09]Read from MH i2c: 01 07 00 [21:48:09]MH_I2C_Read... [21:48:09]Read from MH i2c: 01 07 00 1E 11 00 00 00 00 00 FF 0F 44 [21:48:09]RasterBufferAndPrint [21:48:09]line Счет N : (1)673730 [21:48:09]line ИНН: 02508201610067 [21:48:09]line Контрольно-Кассовый Чек [21:48:09]line ПРОДАЖА [21:48:09]line ТРК (МРК, ГНК) : 42 [21:48:09]line Товар: 2710124130 [21:48:09]line Аи-92-К-5 [21:48:09]line 30.130 * 66.40 [21:48:09]line = 2000.63 [21:48:09]line НДС 12% НСП 1% [21:48:09]line > о реализуемом товаре [21:48:09]line ОКРУГЛЕНИЕ: -0.63 [21:48:09]line ИТОГО: 2000.00 [21:48:09]line Внесено: 2000.00 [21:48:09]line СДАЧА: 0.00 [21:48:09]line НСП 1% : 17.70 [21:48:09]line НДС 12% : 212.46 [21:48:09]line Наличными: 2000.00 [21:48:09]line Безнал.: 0.00 [21:48:09]line Место: АЗС № 120 "Партнер Нефть" [21:48:09]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [21:48:09]line СНО: Общий режим [21:48:09]line Чек 168 21.06.2024 21:48 [21:48:09]line Смена: 355 ФФД: 1.0 [21:48:09]line ЗНМ: 0300000164 [21:48:09]line РНМ: 0000000000092785 [21:48:09]line Версия ККМ: 001 [21:48:09]line ФМ: 0000000000875093 [21:48:09]line ФД: 104245 [21:48:09]line ФПД: 228583879616528 [21:48:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T214809&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104245&fm=228583879616528&tin=02508201610067®Number=0000000000092785&sum=200000 [21:48:09]OFD Sender: Processing packet 104245 [packets to send 17, broken 16] [21:48:09]ProducePacketName [21:48:09]name=ofd_packets/00104245 [21:48:09]OFD Sender: To server: pG, [21:48:09]CommunicateWithHost lk.salyk.kg:30040 [21:48:09]ConnectInit lk.salyk.kg [21:48:09]written 0, free lines is 4095 [21:48:09]Connected sock=11 [21:48: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 13 E5 07 01 4C 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 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 A8 00 00 00 F4 03 04 00 19 F5 75 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 35 97 01 00 35 04 06 00 CF E5 54 F2 28 10 54 26 3D 97 54 DB EF 85 [21:48: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 5F DB 47 00 5B 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 35 97 01 00 F4 03 04 00 9A 9B 75 66 B6 04 01 00 00 79 AC EC 56 2A 06 C9 53 [21:48:09]CommunicateWithHost err = 0 [21:48:09]CheckOFDResponse [21:48:09]1017 (14) - 77093643461234 [21:48:09]1041 (16) - 0000000000875093 [21:48:09]1040 (4) - 104245 [21:48:09]1012 (4) - 21.06.2024 15:26 [21:48:09]1206 (1) - 0 [21:48:09]OFD Sender: Remove packet 104245 [21:48:09]ProducePacketName [21:48:09]name=ofd_packets/00104245 [21:48:09]NVStorageDeleteData [21:48:09]Write to MH i2c: 01 00 00 49 11 5A [21:48:09]Write i2c OK [21:48:09]MH_I2C_Read... [21:48:09]Read from MH i2c: 01 [21:48:09]MH_I2C_Read... [21:48:09]Read from MH i2c: 01 07 00 [21:48:09]MH_I2C_Read... [21:48:09]Read from MH i2c: 01 07 00 49 11 00 00 00 00 00 F0 0C 5D [21:48:09]RasterBufferAndPrint [21:48:09]line [21:48:09]line [21:48:09]line [21:48:09]line [21:48:09]line [21:48:09]written 0, free lines is 3318 [21:48:09]MH_Cut [21:48:09]Write to MH i2c: D1 01 00 50 11 01 33 [21:48:09]Write i2c OK [21:48:09]MH_I2C_Read... [21:48:09]Read from MH i2c: D1 [21:48:09]MH_I2C_Read... [21:48:09]Read from MH i2c: D1 01 00 [21:48:09]MH_I2C_Read... [21:48:09]Read from MH i2c: D1 01 00 50 11 00 32 [21:48:09]Write to MH i2c: 01 00 00 51 11 62 [21:48:09]Write i2c OK [21:48:09]MH_I2C_Read... [21:48:10]OFD Sender: No OFD packet to send [21:48:10]*** Cut start [21:48:10]*** Partial cut [21:48:10]*** CUTSNS_PIN = 1 [21:48:10]*** CUTSNS_PIN = 0 [21:48:10]*** Brake cut motor [21:48:11]Read from MH i2c: 01 [21:48:11]MH_I2C_Read... [21:48:11]*** Stop cut motor [21:48:11]*** Cut end [21:48:11]Read from MH i2c: 01 07 00 [21:48:11]MH_I2C_Read... [21:48:11]Read from MH i2c: 01 07 00 51 11 00 00 00 00 00 FF 0F 77 [21:48:11]process_action close_receipt done [21:48:11]requested_data is exist [21:48:11]produce_requested_data [21:48:11]requested_item fm.sn is exist - process it [21:48:11]wFMCommunicate request_size=4 [21:48:11]MH_SAM_APDU [21:48:11]CAPDU: 80 11 00 00 [21:48:11]Write to MH i2c: E2 08 00 52 11 80 11 00 00 00 00 00 00 DD [21:48:11]Write i2c OK [21:48:11]MH_I2C_Read... [21:48:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:48:11]Read from MH i2c: E2 [21:48:11]MH_I2C_Read... [21:48:11]Read from MH i2c: E2 17 00 [21:48:11]MH_I2C_Read... [21:48:11]Read from MH i2c: E2 17 00 52 11 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:48:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [21:48:11]wFMCommunicate OK [21:48:11]requested_item fd.num is exist - process it [21:48:11]SAM_PROTO_GetFieldsCounters [21:48:11]wFMCommunicate request_size=4 [21:48:11]MH_SAM_APDU [21:48:11]CAPDU: 80 13 00 00 [21:48:11]Write to MH i2c: E2 08 00 53 11 80 13 00 00 00 00 00 00 E0 [21:48:11]Write i2c OK [21:48:11]MH_I2C_Read... [21:48:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:48:11]Read from MH i2c: E2 [21:48:11]MH_I2C_Read... [21:48:11]Read from MH i2c: E2 62 00 [21:48:11]MH_I2C_Read... [21:48:11]Read from MH i2c: E2 62 00 53 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 35 97 01 00 0E 04 04 00 63 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 30 [21:48: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 35 97 01 00 0E 04 04 00 63 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 [21:48:11]wFMCommunicate OK [21:48:11]SAM_PROTO_GetFieldsCounters done [21:48:11]requested_item shift.num is exist - process it [21:48:11]requested_item shift.opened is exist - process it [21:48:11]req_shift_opened [21:48:11]FM_GetShiftState [21:48:11]SAM_PROTO_GetShiftState [21:48:11]wFMCommunicate request_size=4 [21:48:11]MH_SAM_APDU [21:48:11]CAPDU: 80 13 01 00 [21:48:11]Write to MH i2c: E2 08 00 54 11 80 13 01 00 00 00 00 00 E2 [21:48:11]Write i2c OK [21:48:11]MH_I2C_Read... [21:48:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:48:11]Read from MH i2c: E2 [21:48:11]MH_I2C_Read... [21:48:11]Read from MH i2c: E2 0E 00 [21:48:11]MH_I2C_Read... [21:48:11]Read from MH i2c: E2 0E 00 54 11 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 F5 [21:48:11]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [21:48:11]wFMCommunicate OK [21:48:11]SAM_PROTO_GetShiftState done [21:48:11]FM_GetShiftState done [21:48:11]req_shift_opened done [21:48:11]requested_item shift.open_date is exist - process it [21:48:11]req_shift_open_date [21:48:11]req_shift_open_date done [21:48:11]produce_requested_data done [21:48:11]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104245,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [21:48:11]process_action_free close_receipt [21:48:11]json_value_free [21:48:11]json_value_free done [21:48:11]process_json_proto returns [21:48:11]Send response to host [21:48:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104245,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [21:48:11]free response buf [21:48:11]execute_script done [21:48:11]execute_script returns [21:48:11]free content buf [21:48:11]Sock 7.Close socket [21:48:11]Sock 7.Thread stoped [21:48:14]accept exits with 9 [21:48:14]New connection [21:48:14]New thread 3067473252 created [21:48:14]Thread 3067616612 joined [21:48:14]Waiting for new connection... [21:48:14] Sock 9.Parse request [21:48:14]Sock 9.Check first char [21:48:14]Sock 9.First char is OK [21:48:14]request: POST /json_proto HTTP/1.0 [21:48:14]Method: POST [21:48:14]URL: /json_proto [21:48:14]Method is POST - this is cgi request [21:48:14]url: /json_proto [21:48:14]query_string will be loaded in cgi processing [21:48:14]execute_cgi json_proto POST (null) [21:48:14]execute_cgi path=json_proto method=POST [21:48:14]POST find Content-Length [21:48:14]Host: 172.17.38.133:8080 [21:48:14]Content-Length: 1164 [21:48:14]Content-Type: application/json [21:48:14] [21:48:14]POST finish read [21:48:14]Found Content-Length = 1164 [21:48:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 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)673728\u000A21.06.2024 21:25\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 151.280 x 72.90\u000A\u0418\u0422\u041E\u0413: 11028.31\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30147393\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:48:14]execute_script... [21:48:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 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)673728\u000A21.06.2024 21:25\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 151.280 x 72.90\u000A\u0418\u0422\u041E\u0413: 11028.31\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30147393\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:48:14]POST & json_proto [21:48:14]process_json_proto [21:48:14]json parsed OK: [21:48:14]protocol is kg_v1.0 [21:48:14]action value=print_text [21:48:14]process_action print_text [21:48:14]cmd_print_text [21:48:14]ExternCall_PrintAddStr [21:48:14]wPrintStart [21:48:14]Write to MH i2c: 01 00 00 55 11 66 [21:48:14]Write i2c OK [21:48:14]MH_I2C_Read... [21:48:14]Read from MH i2c: 01 [21:48:14]MH_I2C_Read... [21:48:14]Read from MH i2c: 01 07 00 [21:48:14]MH_I2C_Read... [21:48:14]Read from MH i2c: 01 07 00 55 11 00 00 00 00 00 FF 0F 7B [21:48:14]RasterBufferAndPrint [21:48:14]line *****ТОВАРНЫЙ ЧЕК***** [21:48:14]line АЗС 120 [21:48:14]line Партнер нефть [21:48:14]line 02508201610067 [21:48:14]line Кассир : Асанбаев Н. [21:48:14]line Счет N : (1)673728 [21:48:14]line 21.06.2024 21:25 [21:48:14]line ПРОДАЖА [21:48:14]line ТРК (МРК, ГНК): 11 [21:48:14]line Вид ГСМ : 2710194210 [21:48:14]line ДТ(л)-К-5 [21:48:14]line 151.280 x 72.90 [21:48:14]line ИТОГ: 11028.31 [21:48:14]line Тип оплаты: Талоны: ТК ГПНА Online [21:48:14]line 30147393 [21:48:14]line ______________________ [21:48:14]line (подпись) [21:48:14]written 0, free lines is 4095 [21:48:14]Write to MH i2c: 01 00 00 69 11 7A [21:48:14]Write i2c OK [21:48:14]MH_I2C_Read... [21:48:14]Read from MH i2c: 01 [21:48:14]MH_I2C_Read... [21:48:14]Read from MH i2c: 01 07 00 [21:48:14]MH_I2C_Read... [21:48:14]Read from MH i2c: 01 07 00 69 11 00 00 00 00 00 0F 0E 9E [21:48:14]RasterBufferAndPrint [21:48:14]line [21:48:14]line [21:48:14]line [21:48:14]line [21:48:14]line [21:48:14]written 0, free lines is 3601 [21:48:14]MH_Cut [21:48:14]Write to MH i2c: D1 01 00 70 11 01 53 [21:48:14]Write i2c OK [21:48:14]MH_I2C_Read... [21:48:14]Read from MH i2c: D1 [21:48:14]MH_I2C_Read... [21:48:14]Read from MH i2c: D1 01 00 [21:48:14]MH_I2C_Read... [21:48:14]Read from MH i2c: D1 01 00 70 11 00 52 [21:48:14]Write to MH i2c: 01 00 00 71 11 82 [21:48:14]Write i2c OK [21:48:14]MH_I2C_Read... [21:48:15]*** Cut start [21:48:15]*** Partial cut [21:48:15]*** CUTSNS_PIN = 1 [21:48:15]*** CUTSNS_PIN = 0 [21:48:15]OFD Sender: No OFD packet to send [21:48:15]*** Brake cut motor [21:48:15]Read from MH i2c: 01 [21:48:15]MH_I2C_Read... [21:48:15]*** Stop cut motor [21:48:15]*** Cut end [21:48:15]Read from MH i2c: 01 07 00 [21:48:15]MH_I2C_Read... [21:48:15]Read from MH i2c: 01 07 00 71 11 00 00 00 00 00 FF 0F 97 [21:48:15]process_action print_text done [21:48:15]requested_data is exist [21:48:15]produce_requested_data [21:48:15]requested_item fm.sn is exist - process it [21:48:15]wFMCommunicate request_size=4 [21:48:15]MH_SAM_APDU [21:48:15]CAPDU: 80 11 00 00 [21:48:15]Write to MH i2c: E2 08 00 72 11 80 11 00 00 00 00 00 00 FD [21:48:15]Write i2c OK [21:48:15]MH_I2C_Read... [21:48:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:48:15]Read from MH i2c: E2 [21:48:15]MH_I2C_Read... [21:48:15]Read from MH i2c: E2 17 00 [21:48:15]MH_I2C_Read... [21:48:15]Read from MH i2c: E2 17 00 72 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 50 [21:48:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [21:48:15]wFMCommunicate OK [21:48:15]requested_item fd.num is exist - process it [21:48:15]SAM_PROTO_GetFieldsCounters [21:48:15]wFMCommunicate request_size=4 [21:48:15]MH_SAM_APDU [21:48:15]CAPDU: 80 13 00 00 [21:48:15]Write to MH i2c: E2 08 00 73 11 80 13 00 00 00 00 00 00 00 [21:48:15]Write i2c OK [21:48:15]MH_I2C_Read... [21:48:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:48:16]Read from MH i2c: E2 [21:48:16]MH_I2C_Read... [21:48:16]Read from MH i2c: E2 62 00 [21:48:16]MH_I2C_Read... [21:48:16]Read from MH i2c: E2 62 00 73 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 35 97 01 00 0E 04 04 00 63 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 50 [21:48: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 35 97 01 00 0E 04 04 00 63 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 [21:48:16]wFMCommunicate OK [21:48:16]SAM_PROTO_GetFieldsCounters done [21:48:16]requested_item shift.num is exist - process it [21:48:16]requested_item shift.opened is exist - process it [21:48:16]req_shift_opened [21:48:16]FM_GetShiftState [21:48:16]SAM_PROTO_GetShiftState [21:48:16]wFMCommunicate request_size=4 [21:48:16]MH_SAM_APDU [21:48:16]CAPDU: 80 13 01 00 [21:48:16]Write to MH i2c: E2 08 00 74 11 80 13 01 00 00 00 00 00 02 [21:48:16]Write i2c OK [21:48:16]MH_I2C_Read... [21:48:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:48:16]Read from MH i2c: E2 [21:48:16]MH_I2C_Read... [21:48:16]Read from MH i2c: E2 0E 00 [21:48:16]MH_I2C_Read... [21:48:16]Read from MH i2c: E2 0E 00 74 11 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 15 [21:48:16]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [21:48:16]wFMCommunicate OK [21:48:16]SAM_PROTO_GetShiftState done [21:48:16]FM_GetShiftState done [21:48:16]req_shift_opened done [21:48:16]requested_item shift.open_date is exist - process it [21:48:16]req_shift_open_date [21:48:16]req_shift_open_date done [21:48:16]produce_requested_data done [21:48:16]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104245,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [21:48:16]process_action_free print_text [21:48:16]json_value_free [21:48:16]json_value_free done [21:48:16]process_json_proto returns [21:48:16]Send response to host [21:48:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104245,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [21:48:16]free response buf [21:48:16]execute_script done [21:48:16]execute_script returns [21:48:16]free content buf [21:48:16]Sock 9.Close socket [21:48:16]Sock 9.Thread stoped [21:48:20]OFD Sender: No OFD packet to send [21:48:25]OFD Sender: No OFD packet to send [21:48:30]OFD Sender: No OFD packet to send [21:48:35]OFD Sender: No OFD packet to send [21:48:40]OFD Sender: No OFD packet to send [21:48:45]OFD Sender: No OFD packet to send [21:48:50]OFD Sender: No OFD packet to send [21:48:55]OFD Sender: No OFD packet to send [21:49:00]OFD Sender: No OFD packet to send [21:49:05]OFD Sender: No OFD packet to send [21:49:10]OFD Sender: No OFD packet to send [21:49:15]OFD Sender: No OFD packet to send [21:49:20]OFD Sender: No OFD packet to send [21:49:25]OFD Sender: No OFD packet to send [21:49:30]OFD Sender: No OFD packet to send [21:49:35]OFD Sender: No OFD packet to send [21:49:40]OFD Sender: No OFD packet to send [21:49:45]OFD Sender: No OFD packet to send [21:49:50]OFD Sender: No OFD packet to send [21:49:55]OFD Sender: No OFD packet to send [21:50:00]OFD Sender: No OFD packet to send [21:50:05]OFD Sender: No OFD packet to send [21:50:10]OFD Sender: No OFD packet to send [21:50:15]OFD Sender: No OFD packet to send [21:50:20]OFD Sender: No OFD packet to send [21:50:25]OFD Sender: No OFD packet to send [21:50:30]OFD Sender: No OFD packet to send [21:50:35]OFD Sender: No OFD packet to send [21:50:40]OFD Sender: No OFD packet to send [21:50:45]OFD Sender: No OFD packet to send [21:50:50]OFD Sender: No OFD packet to send [21:50:55]OFD Sender: No OFD packet to send [21:51:00]OFD Sender: No OFD packet to send [21:51:05]OFD Sender: No OFD packet to send [21:51:10]OFD Sender: No OFD packet to send [21:51:15]OFD Sender: No OFD packet to send [21:51:20]OFD Sender: No OFD packet to send [21:51:25]OFD Sender: No OFD packet to send [21:51:30]OFD Sender: No OFD packet to send [21:51:35]OFD Sender: No OFD packet to send [21:51:40]OFD Sender: No OFD packet to send [21:51:45]OFD Sender: No OFD packet to send [21:51:50]OFD Sender: No OFD packet to send [21:51:55]OFD Sender: No OFD packet to send [21:52:00]OFD Sender: No OFD packet to send [21:52:05]OFD Sender: No OFD packet to send [21:52:10]OFD Sender: No OFD packet to send [21:52:15]OFD Sender: No OFD packet to send [21:52:20]OFD Sender: No OFD packet to send [21:52:25]OFD Sender: No OFD packet to send [21:52:30]OFD Sender: No OFD packet to send [21:52:35]OFD Sender: No OFD packet to send [21:52:40]OFD Sender: No OFD packet to send [21:52:45]OFD Sender: No OFD packet to send [21:52:50]OFD Sender: No OFD packet to send [21:52:55]OFD Sender: No OFD packet to send [21:53:00]OFD Sender: No OFD packet to send [21:53:05]OFD Sender: No OFD packet to send [21:53:10]OFD Sender: No OFD packet to send [21:53:15]OFD Sender: No OFD packet to send [21:53:20]OFD Sender: No OFD packet to send [21:53:25]OFD Sender: No OFD packet to send [21:53:30]OFD Sender: No OFD packet to send [21:53:35]OFD Sender: No OFD packet to send [21:53:40]OFD Sender: No OFD packet to send [21:53:45]OFD Sender: No OFD packet to send [21:53:50]OFD Sender: No OFD packet to send [21:53:55]OFD Sender: No OFD packet to send [21:54:00]OFD Sender: No OFD packet to send [21:54:05]OFD Sender: No OFD packet to send [21:54:10]OFD Sender: No OFD packet to send [21:54:15]OFD Sender: No OFD packet to send [21:54:20]OFD Sender: No OFD packet to send [21:54:25]OFD Sender: No OFD packet to send [21:54:30]OFD Sender: No OFD packet to send [21:54:35]OFD Sender: No OFD packet to send [21:54:40]OFD Sender: No OFD packet to send [21:54:45]OFD Sender: No OFD packet to send [21:54:50]OFD Sender: No OFD packet to send [21:54:55]OFD Sender: No OFD packet to send [21:55:00]OFD Sender: No OFD packet to send [21:55:05]OFD Sender: No OFD packet to send [21:55:10]OFD Sender: No OFD packet to send [21:55:15]OFD Sender: No OFD packet to send [21:55:20]OFD Sender: No OFD packet to send [21:55:25]OFD Sender: No OFD packet to send [21:55:30]OFD Sender: No OFD packet to send [21:55:35]OFD Sender: No OFD packet to send [21:55:40]OFD Sender: No OFD packet to send [21:55:41]accept exits with 10 [21:55:41]New connection [21:55:41]New thread 3067616612 created [21:55:41]Thread 3067473252 joined [21:55:41]Waiting for new connection... [21:55:41] Sock 10.Parse request [21:55:41]Sock 10.Check first char [21:55:41]Sock 10.First char is OK [21:55:41]request: POST /json_proto HTTP/1.0 [21:55:41]Method: POST [21:55:41]URL: /json_proto [21:55:41]Method is POST - this is cgi request [21:55:41]url: /json_proto [21:55:41]query_string will be loaded in cgi processing [21:55:41]execute_cgi json_proto POST (null) [21:55:41]execute_cgi path=json_proto method=POST [21:55:41]POST find Content-Length [21:55:41]Host: 172.17.38.133:8080 [21:55:41]Content-Length: 1195 [21:55:41]Content-Type: application/json [21:55:41] [21:55:41]POST finish read [21:55:41]Found Content-Length = 1195 [21:55: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 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)673731\u000A21.06.2024 21:32\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.650 x 73.90\u000A\u0418\u0422\u041E\u0413: 1526.04\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" ] } } [21:55:41]execute_script... [21:55: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 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)673731\u000A21.06.2024 21:32\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.650 x 73.90\u000A\u0418\u0422\u041E\u0413: 1526.04\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" ] } } [21:55:41]POST & json_proto [21:55:41]process_json_proto [21:55:41]json parsed OK: [21:55:41]protocol is kg_v1.0 [21:55:41]action value=print_text [21:55:41]process_action print_text [21:55:41]cmd_print_text [21:55:41]ExternCall_PrintAddStr [21:55:41]wPrintStart [21:55:41]Write to MH i2c: 01 00 00 75 11 86 [21:55:41]Write i2c OK [21:55:41]MH_I2C_Read... [21:55:41]Read from MH i2c: 01 [21:55:41]MH_I2C_Read... [21:55:41]Read from MH i2c: 01 07 00 [21:55:41]MH_I2C_Read... [21:55:41]Read from MH i2c: 01 07 00 75 11 00 00 00 00 00 FF 0F 9B [21:55:41]RasterBufferAndPrint [21:55:41]line *****ТОВАРНЫЙ ЧЕК***** [21:55:41]line АЗС 120 [21:55:41]line Партнер нефть [21:55:41]line 02508201610067 [21:55:41]line Кассир : Асанбаев Н. [21:55:41]line Счет N : (1)673731 [21:55:41]line 21.06.2024 21:32 [21:55:41]line ПРОДАЖА [21:55:41]line ТРК (МРК, ГНК): 41 [21:55:41]line Вид ГСМ : 2710124500 [21:55:41]line Аи-95-К-5 [21:55:41]line 20.650 x 73.90 [21:55:41]line ИТОГ: 1526.04 [21:55:41]line Тип оплаты: Талоны: Топливная Карта [21:55:41]line 32170 [21:55:41]line ______________________ [21:55:41]line (подпись) [21:55:41]written 0, free lines is 4095 [21:55:41]Write to MH i2c: 01 00 00 89 11 9A [21:55:41]Write i2c OK [21:55:41]MH_I2C_Read... [21:55:41]Read from MH i2c: 01 [21:55:41]MH_I2C_Read... [21:55:41]Read from MH i2c: 01 07 00 [21:55:41]MH_I2C_Read... [21:55:41]Read from MH i2c: 01 07 00 89 11 00 00 00 00 00 10 0E BF [21:55:41]RasterBufferAndPrint [21:55:41]line [21:55:41]line [21:55:41]line [21:55:41]line [21:55:41]line [21:55:41]written 0, free lines is 3601 [21:55:41]MH_Cut [21:55:41]Write to MH i2c: D1 01 00 90 11 01 73 [21:55:41]Write i2c OK [21:55:41]MH_I2C_Read... [21:55:41]Read from MH i2c: D1 [21:55:41]MH_I2C_Read... [21:55:41]Read from MH i2c: D1 01 00 [21:55:41]MH_I2C_Read... [21:55:41]Read from MH i2c: D1 01 00 90 11 00 72 [21:55:41]Write to MH i2c: 01 00 00 91 11 A2 [21:55:41]Write i2c OK [21:55:41]MH_I2C_Read... [21:55:42]*** Cut start [21:55:42]*** Partial cut [21:55:42]*** CUTSNS_PIN = 1 [21:55:42]*** CUTSNS_PIN = 0 [21:55:42]*** Brake cut motor [21:55:42]Read from MH i2c: 01 [21:55:42]MH_I2C_Read... [21:55:42]*** Stop cut motor [21:55:42]*** Cut end [21:55:42]Read from MH i2c: 01 07 00 [21:55:42]MH_I2C_Read... [21:55:42]Read from MH i2c: 01 07 00 91 11 00 00 00 00 00 FF 0F B7 [21:55:42]process_action print_text done [21:55:42]requested_data is exist [21:55:42]produce_requested_data [21:55:42]requested_item fm.sn is exist - process it [21:55:42]wFMCommunicate request_size=4 [21:55:42]MH_SAM_APDU [21:55:42]CAPDU: 80 11 00 00 [21:55:42]Write to MH i2c: E2 08 00 92 11 80 11 00 00 00 00 00 00 1D [21:55:42]Write i2c OK [21:55:42]MH_I2C_Read... [21:55:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:55:42]Read from MH i2c: E2 [21:55:42]MH_I2C_Read... [21:55:42]Read from MH i2c: E2 17 00 [21:55:42]MH_I2C_Read... [21:55:42]Read from MH i2c: E2 17 00 92 11 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:55:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [21:55:42]wFMCommunicate OK [21:55:42]requested_item fd.num is exist - process it [21:55:42]SAM_PROTO_GetFieldsCounters [21:55:42]wFMCommunicate request_size=4 [21:55:42]MH_SAM_APDU [21:55:42]CAPDU: 80 13 00 00 [21:55:42]Write to MH i2c: E2 08 00 93 11 80 13 00 00 00 00 00 00 20 [21:55:42]Write i2c OK [21:55:42]MH_I2C_Read... [21:55:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:55:43]Read from MH i2c: E2 [21:55:43]MH_I2C_Read... [21:55:43]Read from MH i2c: E2 62 00 [21:55:43]MH_I2C_Read... [21:55:43]Read from MH i2c: E2 62 00 93 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 35 97 01 00 0E 04 04 00 63 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 70 [21:55: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 35 97 01 00 0E 04 04 00 63 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 [21:55:43]wFMCommunicate OK [21:55:43]SAM_PROTO_GetFieldsCounters done [21:55:43]requested_item shift.num is exist - process it [21:55:43]requested_item shift.opened is exist - process it [21:55:43]req_shift_opened [21:55:43]FM_GetShiftState [21:55:43]SAM_PROTO_GetShiftState [21:55:43]wFMCommunicate request_size=4 [21:55:43]MH_SAM_APDU [21:55:43]CAPDU: 80 13 01 00 [21:55:43]Write to MH i2c: E2 08 00 94 11 80 13 01 00 00 00 00 00 22 [21:55:43]Write i2c OK [21:55:43]MH_I2C_Read... [21:55:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:55:43]Read from MH i2c: E2 [21:55:43]MH_I2C_Read... [21:55:43]Read from MH i2c: E2 0E 00 [21:55:43]MH_I2C_Read... [21:55:43]Read from MH i2c: E2 0E 00 94 11 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 35 [21:55:43]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [21:55:43]wFMCommunicate OK [21:55:43]SAM_PROTO_GetShiftState done [21:55:43]FM_GetShiftState done [21:55:43]req_shift_opened done [21:55:43]requested_item shift.open_date is exist - process it [21:55:43]req_shift_open_date [21:55:43]req_shift_open_date done [21:55:43]produce_requested_data done [21:55:43]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104245,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [21:55:43]process_action_free print_text [21:55:43]json_value_free [21:55:43]json_value_free done [21:55:43]process_json_proto returns [21:55:43]Send response to host [21:55:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104245,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [21:55:43]free response buf [21:55:43]execute_script done [21:55:43]execute_script returns [21:55:43]free content buf [21:55:43]Sock 10.Close socket [21:55:43]Sock 10.Thread stoped [21:55:45]OFD Sender: No OFD packet to send [21:55:50]OFD Sender: No OFD packet to send [21:55:55]OFD Sender: No OFD packet to send [21:56:00]OFD Sender: No OFD packet to send [21:56:05]OFD Sender: No OFD packet to send [21:56:10]OFD Sender: No OFD packet to send [21:56:15]OFD Sender: No OFD packet to send [21:56:20]OFD Sender: No OFD packet to send [21:56:25]OFD Sender: No OFD packet to send [21:56:30]OFD Sender: No OFD packet to send [21:56:35]OFD Sender: No OFD packet to send [21:56:40]OFD Sender: No OFD packet to send [21:56:45]OFD Sender: No OFD packet to send [21:56:50]OFD Sender: No OFD packet to send [21:56:55]OFD Sender: No OFD packet to send [21:57:00]OFD Sender: No OFD packet to send [21:57:05]OFD Sender: No OFD packet to send [21:57:10]OFD Sender: No OFD packet to send [21:57:15]OFD Sender: No OFD packet to send [21:57:20]OFD Sender: No OFD packet to send [21:57:25]OFD Sender: No OFD packet to send [21:57:30]OFD Sender: No OFD packet to send [21:57:35]OFD Sender: No OFD packet to send [21:57:40]OFD Sender: No OFD packet to send [21:57:45]OFD Sender: No OFD packet to send [21:57:50]OFD Sender: No OFD packet to send [21:57:55]OFD Sender: No OFD packet to send [21:58:00]OFD Sender: No OFD packet to send [21:58:05]OFD Sender: No OFD packet to send [21:58:10]OFD Sender: No OFD packet to send [21:58:15]OFD Sender: No OFD packet to send [21:58:20]OFD Sender: No OFD packet to send [21:58:25]OFD Sender: No OFD packet to send [21:58:30]OFD Sender: No OFD packet to send [21:58:35]OFD Sender: No OFD packet to send [21:58:40]OFD Sender: No OFD packet to send [21:58:45]OFD Sender: No OFD packet to send [21:58:50]OFD Sender: No OFD packet to send [21:58:55]OFD Sender: No OFD packet to send [21:59:00]OFD Sender: No OFD packet to send [21:59:05]OFD Sender: No OFD packet to send [21:59:10]OFD Sender: No OFD packet to send [21:59:15]OFD Sender: No OFD packet to send [21:59:20]OFD Sender: No OFD packet to send [21:59:25]OFD Sender: No OFD packet to send [21:59:30]OFD Sender: No OFD packet to send [21:59:35]OFD Sender: No OFD packet to send [21:59:40]OFD Sender: No OFD packet to send [21:59:40]accept exits with 7 [21:59:40]New connection [21:59:40]New thread 3067473252 created [21:59:40]Thread 3067616612 joined [21:59:40]Waiting for new connection... [21:59:40] Sock 7.Parse request [21:59:40]Sock 7.Check first char [21:59:40]Sock 7.First char is OK [21:59:40]request: POST /json_proto HTTP/1.0 [21:59:40]Method: POST [21:59:40]URL: /json_proto [21:59:40]Method is POST - this is cgi request [21:59:40]url: /json_proto [21:59:40]query_string will be loaded in cgi processing [21:59:40]execute_cgi json_proto POST (null) [21:59:40]execute_cgi path=json_proto method=POST [21:59:40]POST find Content-Length [21:59:40]Host: 172.17.38.133:8080 [21:59:40]Content-Length: 682 [21:59:40]Content-Type: application/json [21:59:40] [21:59:40]POST finish read [21:59:40]Found Content-Length = 682 [21:59:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673732", "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" : 29.060, "sum" : 2147.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2481.00, "total" : 2147.00, "payments": [ { "type": 0, "sum" : 2147.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:59:40]execute_script... [21:59:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673732", "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" : 29.060, "sum" : 2147.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2481.00, "total" : 2147.00, "payments": [ { "type": 0, "sum" : 2147.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:59:40]POST & json_proto [21:59:40]process_json_proto [21:59:40]json parsed OK: [21:59:40]protocol is kg_v1.0 [21:59:40]action value=close_receipt [21:59:40]process_action close_receipt [21:59:40]cmd_close_receipt [21:59:40]MH_GetDate [21:59:40]Write to MH i2c: F0 00 00 95 11 95 [21:59:40]Write i2c OK [21:59:40]MH_I2C_Read... [21:59:40]Read from MH i2c: F0 [21:59:40]MH_I2C_Read... [21:59:40]Read from MH i2c: F0 09 00 [21:59:40]MH_I2C_Read... [21:59:40]Read from MH i2c: F0 09 00 95 11 00 CE F7 75 66 BD 8F 7C 64 6A [21:59:40]GetLastDocTimeStamp 1719006489 [21:59:40]current date 1719007182 [21:59:40]FM_GetShiftState [21:59:40]SAM_PROTO_GetShiftState [21:59:40]wFMCommunicate request_size=4 [21:59:40]MH_SAM_APDU [21:59:40]CAPDU: 80 13 01 00 [21:59:40]Write to MH i2c: E2 08 00 96 11 80 13 01 00 00 00 00 00 24 [21:59:40]Write i2c OK [21:59:40]MH_I2C_Read... [21:59:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:59:41]Read from MH i2c: E2 [21:59:41]MH_I2C_Read... [21:59:41]Read from MH i2c: E2 0E 00 [21:59:41]MH_I2C_Read... [21:59:41]Read from MH i2c: E2 0E 00 96 11 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 37 [21:59:41]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [21:59:41]wFMCommunicate OK [21:59:41]SAM_PROTO_GetShiftState done [21:59:41]FM_GetShiftState done [21:59:41]opened in 1718929509 [21:59:41]opened+sec_in_day 1719015909 [21:59:41]quantity*price = 214753 [21:59:41]sum+1 = 214754 [21:59:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 2147.00 Внесено: 2481.00 СДАЧА: 334.00 НСП 1% : 19.00 НДС 12% : 228.06 Наличными: 2147.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 169 21.06.2024 21:59 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104246 ФПД: 216117487869874 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T215942&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104246&fm=216117487869874&tin=02508201610067®Number=0000000000092785&sum=214700 [21:59:42]StoreToDocumentArchive [21:59:42]shift 355 fd 104246 [21:59:42]save to /storage/0355/doc_00104246 [21:59:42]save last doc name /storage/0355/doc_00104246 to /storage/kkm_last_doc_name [21:59:42]save OK [21:59:42]Clear old archive folders... [21:59:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:59:42]tlvbuf is 006AEB10 [21:59:42]SAM_PROTO_ClearQueue [21:59:42]wFMCommunicate request_size=4 [21:59:42]MH_SAM_APDU [21:59:42]CAPDU: 80 09 00 00 [21:59:42]Write to MH i2c: E2 08 00 A3 11 80 09 00 00 00 00 00 00 26 [21:59:42]Write i2c OK [21:59:42]MH_I2C_Read... [21:59:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:59:42]Read from MH i2c: E2 [21:59:42]MH_I2C_Read... [21:59:42]Read from MH i2c: E2 03 00 [21:59:42]MH_I2C_Read... [21:59:42]Read from MH i2c: E2 03 00 A3 11 00 90 00 28 [21:59:42]RAPDU: 90 00 [21:59:42]wFMCommunicate OK [21:59:42]SAM_PROTO_ClearQueue done [21:59:42]KKMCreateOFDPacket [21:59:42]OFDProtocolAddRootSTLVToBuf [21:59:42]FM_MakeSignedData [21:59:42]FM_MakeSignedData [21:59:42]SAM_PROTO_SignData [21:59:42]wFMCommunicate request_size=4 [21:59:42]MH_SAM_APDU [21:59:42]CAPDU: 80 0D 01 02 [21:59:42]Write to MH i2c: E2 08 00 A4 11 80 0D 01 02 00 00 00 00 2E [21:59:42]Write i2c OK [21:59:42]MH_I2C_Read... [21:59:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:59:42]Read from MH i2c: E2 [21:59:42]MH_I2C_Read... [21:59:42]Read from MH i2c: E2 03 00 [21:59:42]MH_I2C_Read... [21:59:42]Read from MH i2c: E2 03 00 A4 11 00 90 00 29 [21:59:42]RAPDU: 90 00 [21:59:42]wFMCommunicate OK [21:59:42]wFMCommunicate request_size=255 [21:59:42]MH_SAM_APDU [21:59: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 84 71 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 E1 46 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 46 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 59 00 00 00 00 07 04 06 00 AC 46 03 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 CE F7 75 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 36 97 01 00 35 04 06 00 C4 [21:59:42]Write to MH i2c: E2 02 01 A5 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 84 71 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 E1 46 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 46 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 59 00 00 00 00 07 04 06 00 AC 46 03 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 CE F7 75 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 36 97 01 00 35 04 06 00 C4 00 00 66 [21:59:42]Write i2c OK [21:59:42]MH_I2C_Read... [21:59:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:59:42]Read from MH i2c: E2 [21:59:42]MH_I2C_Read... [21:59:42]Read from MH i2c: E2 03 00 [21:59:42]MH_I2C_Read... [21:59:42]Read from MH i2c: E2 03 00 A5 11 00 90 00 2A [21:59:42]RAPDU: 90 00 [21:59:42]wFMCommunicate OK [21:59:42]wFMCommunicate request_size=10 [21:59:42]MH_SAM_APDU [21:59:42]CAPDU: 80 0D 02 02 05 8E C6 18 1F B2 [21:59:42]Write to MH i2c: E2 0D 00 A6 11 80 0D 02 02 05 00 8E C6 18 1F B2 00 00 78 [21:59:42]Write i2c OK [21:59:42]MH_I2C_Read... [21:59:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:59:42]Read from MH i2c: E2 [21:59:42]MH_I2C_Read... [21:59:42]Read from MH i2c: E2 03 00 [21:59:42]MH_I2C_Read... [21:59:42]Read from MH i2c: E2 03 00 A6 11 00 90 00 2B [21:59:42]RAPDU: 90 00 [21:59:42]wFMCommunicate OK [21:59:42]wFMCommunicate request_size=4 [21:59:42]MH_SAM_APDU [21:59:42]CAPDU: 80 0D 03 02 [21:59:42]Write to MH i2c: E2 08 00 A7 11 80 0D 03 02 00 00 00 00 33 [21:59:42]Write i2c OK [21:59:42]MH_I2C_Read... [21:59:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:59:42]Read from MH i2c: E2 [21:59:42]MH_I2C_Read... [21:59:42]Read from MH i2c: E2 0B 00 [21:59:42]MH_I2C_Read... [21:59:42]Read from MH i2c: E2 0B 00 A7 11 00 65 69 C6 5F 34 AF 22 C0 90 00 EC [21:59:42]RAPDU: 65 69 C6 5F 34 AF 22 C0 90 00 [21:59:42]wFMCommunicate OK [21:59:42]SAM_PROTO_SignData done [21:59:42]FM_MakeSignedData done [21:59:42]CreateOFDProtocolMessage [21:59:42]wFMCommunicate request_size=4 [21:59:42]MH_SAM_APDU [21:59:42]CAPDU: 80 11 00 00 [21:59:42]Write to MH i2c: E2 08 00 A8 11 80 11 00 00 00 00 00 00 33 [21:59:42]Write i2c OK [21:59:42]MH_I2C_Read... [21:59:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:59:42]Read from MH i2c: E2 [21:59:42]MH_I2C_Read... [21:59:42]Read from MH i2c: E2 17 00 [21:59:42]MH_I2C_Read... [21:59:42]Read from MH i2c: E2 17 00 A8 11 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:59:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [21:59:42]wFMCommunicate OK [21:59:42]CreateOFDProtocolMessage done [21:59:42]OFDSenderStorePacket 104246 [21:59:42]StoreOFDPacket docnum=104246 [21:59: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 47 CC 07 01 C7 04 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 84 71 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 E1 46 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 46 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 59 00 00 00 00 07 04 06 00 AC 46 03 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 CE F7 75 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 36 97 01 00 35 04 06 00 C4 8E C6 18 1F B2 65 69 C6 5F 34 AF 22 C0 [21:59:42]CheckFolder [21:59:42]dirname=/storage/ofd_packets [21:59:42]CheckFolder done [21:59:42]ProducePacketName [21:59:42]name=ofd_packets/00104246 [21:59:42]NVStorageSaveData ofd_packets/00104246 [21:59:42]File name is /storage/ofd_packets/00104246 [21:59:42]Write 301 bytes [21:59:42]NVStorageSaveData done [21:59:42]OFDSenderStorePacket done [21:59:42]KKMCreateOFDPacket done [21:59:42]NVStorageSaveData kkm_last_timestamp [21:59:42]File name is /storage/kkm_last_timestamp [21:59:42]Write 4 bytes [21:59:42]NVStorageSaveData done [21:59:42]ExternCall_PrintAddStr [21:59:42]wPrintStart [21:59:42]Write to MH i2c: 01 00 00 A9 11 BA [21:59:42]Write i2c OK [21:59:42]MH_I2C_Read... [21:59:42]Read from MH i2c: 01 [21:59:42]MH_I2C_Read... [21:59:42]Read from MH i2c: 01 07 00 [21:59:42]MH_I2C_Read... [21:59:42]Read from MH i2c: 01 07 00 A9 11 00 00 00 00 00 FF 0F CF [21:59:42]RasterBufferAndPrint [21:59:42]line Счет N : (1)673732 [21:59:42]line ИНН: 02508201610067 [21:59:42]line Контрольно-Кассовый Чек [21:59:42]line ПРОДАЖА [21:59:42]line ТРК (МРК, ГНК) : 41 [21:59:42]line Товар: 2710124500 [21:59:42]line Аи-95-К-5 [21:59:42]line 29.060 * 73.90 [21:59:42]line = 2147.53 [21:59:42]line НДС 12% НСП 1% [21:59:42]line > о реализуемом товаре [21:59:42]line ОКРУГЛЕНИЕ: -0.53 [21:59:42]line ИТОГО: 2147.00 [21:59:42]line Внесено: 2481.00 [21:59:42]line СДАЧА: 334.00 [21:59:42]line НСП 1% : 19.00 [21:59:42]line НДС 12% : 228.06 [21:59:42]line Наличными: 2147.00 [21:59:42]line Безнал.: 0.00 [21:59:42]line Место: АЗС № 120 "Партнер Нефть" [21:59:42]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [21:59:42]line СНО: Общий режим [21:59:42]line Чек 169 21.06.2024 21:59 [21:59:42]line Смена: 355 ФФД: 1.0 [21:59:42]line ЗНМ: 0300000164 [21:59:42]line РНМ: 0000000000092785 [21:59:42]line Версия ККМ: 001 [21:59:42]line ФМ: 0000000000875093 [21:59:42]line ФД: 104246 [21:59:42]line ФПД: 216117487869874 [21:59:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T215942&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104246&fm=216117487869874&tin=02508201610067®Number=0000000000092785&sum=214700 [21:59:43]OFD Sender: Processing packet 104246 [packets to send 17, broken 16] [21:59:43]ProducePacketName [21:59:43]name=ofd_packets/00104246 [21:59:43]OFD Sender: To server: pG, [21:59:43]CommunicateWithHost lk.salyk.kg:30040 [21:59:43]ConnectInit lk.salyk.kg [21:59:43]written 0, free lines is 4095 [21:59:43]Connected sock=10 [21:59:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 47 CC 07 01 C7 04 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 84 71 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 E1 46 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 46 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 59 00 00 00 00 07 04 06 00 AC 46 03 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 CE F7 75 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 36 97 01 00 35 04 06 00 C4 8E C6 18 1F B2 65 69 C6 5F 34 AF 22 C0 [21:59: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 65 DE 47 00 C0 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 36 97 01 00 F4 03 04 00 4F 9E 75 66 B6 04 01 00 00 ED 18 8D 16 64 F7 D5 CC [21:59:43]CommunicateWithHost err = 0 [21:59:43]CheckOFDResponse [21:59:43]1017 (14) - 77093643461234 [21:59:43]1041 (16) - 0000000000875093 [21:59:43]1040 (4) - 104246 [21:59:43]1012 (4) - 21.06.2024 15:37 [21:59:43]1206 (1) - 0 [21:59:43]OFD Sender: Remove packet 104246 [21:59:43]ProducePacketName [21:59:43]name=ofd_packets/00104246 [21:59:43]NVStorageDeleteData [21:59:43]Write to MH i2c: 01 00 00 D4 11 E5 [21:59:43]Write i2c OK [21:59:43]MH_I2C_Read... [21:59:43]Read from MH i2c: 01 [21:59:43]MH_I2C_Read... [21:59:43]Read from MH i2c: 01 07 00 [21:59:43]MH_I2C_Read... [21:59:43]Read from MH i2c: 01 07 00 D4 11 00 00 00 00 00 F6 0C EE [21:59:43]RasterBufferAndPrint [21:59:43]line [21:59:43]line [21:59:43]line [21:59:43]line [21:59:43]line [21:59:43]written 0, free lines is 3324 [21:59:43]MH_Cut [21:59:43]Write to MH i2c: D1 01 00 DB 11 01 BE [21:59:43]Write i2c OK [21:59:43]MH_I2C_Read... [21:59:43]Read from MH i2c: D1 [21:59:43]MH_I2C_Read... [21:59:43]Read from MH i2c: D1 01 00 [21:59:43]MH_I2C_Read... [21:59:43]Read from MH i2c: D1 01 00 DB 11 00 BD [21:59:43]Write to MH i2c: 01 00 00 DC 11 ED [21:59:43]Write i2c OK [21:59:43]MH_I2C_Read... [21:59:43]OFD Sender: No OFD packet to send [21:59:44]*** Cut start [21:59:44]*** Partial cut [21:59:44]*** CUTSNS_PIN = 1 [21:59:44]*** CUTSNS_PIN = 0 [21:59:44]*** Brake cut motor [21:59:44]Read from MH i2c: 01 [21:59:44]MH_I2C_Read... [21:59:44]*** Stop cut motor [21:59:44]*** Cut end [21:59:44]Read from MH i2c: 01 07 00 [21:59:44]MH_I2C_Read... [21:59:44]Read from MH i2c: 01 07 00 DC 11 00 00 00 00 00 FF 0F 02 [21:59:44]process_action close_receipt done [21:59:44]requested_data is exist [21:59:44]produce_requested_data [21:59:44]requested_item fm.sn is exist - process it [21:59:44]wFMCommunicate request_size=4 [21:59:44]MH_SAM_APDU [21:59:44]CAPDU: 80 11 00 00 [21:59:44]Write to MH i2c: E2 08 00 DD 11 80 11 00 00 00 00 00 00 68 [21:59:44]Write i2c OK [21:59:44]MH_I2C_Read... [21:59:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:59:44]Read from MH i2c: E2 [21:59:44]MH_I2C_Read... [21:59:44]Read from MH i2c: E2 17 00 [21:59:44]MH_I2C_Read... [21:59:44]Read from MH i2c: E2 17 00 DD 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 BB [21:59: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:59:44]wFMCommunicate OK [21:59:44]requested_item fd.num is exist - process it [21:59:44]SAM_PROTO_GetFieldsCounters [21:59:44]wFMCommunicate request_size=4 [21:59:44]MH_SAM_APDU [21:59:44]CAPDU: 80 13 00 00 [21:59:44]Write to MH i2c: E2 08 00 DE 11 80 13 00 00 00 00 00 00 6B [21:59:44]Write i2c OK [21:59:44]MH_I2C_Read... [21:59:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:59:45]Read from MH i2c: E2 [21:59:45]MH_I2C_Read... [21:59:45]Read from MH i2c: E2 62 00 [21:59:45]MH_I2C_Read... [21:59:45]Read from MH i2c: E2 62 00 DE 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 36 97 01 00 0E 04 04 00 63 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 BF [21:59: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 36 97 01 00 0E 04 04 00 63 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 [21:59:45]wFMCommunicate OK [21:59:45]SAM_PROTO_GetFieldsCounters done [21:59:45]requested_item shift.num is exist - process it [21:59:45]requested_item shift.opened is exist - process it [21:59:45]req_shift_opened [21:59:45]FM_GetShiftState [21:59:45]SAM_PROTO_GetShiftState [21:59:45]wFMCommunicate request_size=4 [21:59:45]MH_SAM_APDU [21:59:45]CAPDU: 80 13 01 00 [21:59:45]Write to MH i2c: E2 08 00 DF 11 80 13 01 00 00 00 00 00 6D [21:59:45]Write i2c OK [21:59:45]MH_I2C_Read... [21:59:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:59:45]Read from MH i2c: E2 [21:59:45]MH_I2C_Read... [21:59:45]Read from MH i2c: E2 0E 00 [21:59:45]MH_I2C_Read... [21:59:45]Read from MH i2c: E2 0E 00 DF 11 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 80 [21:59:45]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [21:59:45]wFMCommunicate OK [21:59:45]SAM_PROTO_GetShiftState done [21:59:45]FM_GetShiftState done [21:59:45]req_shift_opened done [21:59:45]requested_item shift.open_date is exist - process it [21:59:45]req_shift_open_date [21:59:45]req_shift_open_date done [21:59:45]produce_requested_data done [21:59:45]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104246,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [21:59:45]process_action_free close_receipt [21:59:45]json_value_free [21:59:45]json_value_free done [21:59:45]process_json_proto returns [21:59:45]Send response to host [21:59:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104246,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [21:59:45]free response buf [21:59:45]execute_script done [21:59:45]execute_script returns [21:59:45]free content buf [21:59:45]Sock 7.Close socket [21:59:45]Sock 7.Thread stoped [21:59:48]OFD Sender: No OFD packet to send [21:59:53]OFD Sender: No OFD packet to send [21:59:58]OFD Sender: No OFD packet to send [22:00:03]OFD Sender: No OFD packet to send [22:00:08]OFD Sender: No OFD packet to send [22:00:13]OFD Sender: No OFD packet to send [22:00:18]OFD Sender: No OFD packet to send [22:00:23]OFD Sender: No OFD packet to send [22:00:28]OFD Sender: No OFD packet to send [22:00:33]OFD Sender: No OFD packet to send [22:00:38]OFD Sender: No OFD packet to send [22:00:43]OFD Sender: No OFD packet to send [22:00:48]OFD Sender: No OFD packet to send [22:00:53]OFD Sender: No OFD packet to send [22:00:58]OFD Sender: No OFD packet to send [22:01:03]OFD Sender: No OFD packet to send [22:01:08]OFD Sender: No OFD packet to send [22:01:13]OFD Sender: No OFD packet to send [22:01:18]OFD Sender: No OFD packet to send [22:01:23]OFD Sender: No OFD packet to send [22:01:28]OFD Sender: No OFD packet to send [22:01:33]OFD Sender: No OFD packet to send [22:01:38]OFD Sender: No OFD packet to send [22:01:43]OFD Sender: No OFD packet to send [22:01:48]OFD Sender: No OFD packet to send [22:01:53]OFD Sender: No OFD packet to send [22:01:59]OFD Sender: No OFD packet to send [22:02:04]OFD Sender: No OFD packet to send [22:02:09]OFD Sender: No OFD packet to send [22:02:14]OFD Sender: No OFD packet to send [22:02:19]OFD Sender: No OFD packet to send [22:02:24]OFD Sender: No OFD packet to send [22:02:29]OFD Sender: No OFD packet to send [22:02:34]OFD Sender: No OFD packet to send [22:02:39]OFD Sender: No OFD packet to send [22:02:44]OFD Sender: No OFD packet to send [22:02:49]OFD Sender: No OFD packet to send [22:02:54]OFD Sender: No OFD packet to send [22:02:59]OFD Sender: No OFD packet to send [22:03:04]OFD Sender: No OFD packet to send [22:03:09]OFD Sender: No OFD packet to send [22:03:14]OFD Sender: No OFD packet to send [22:03:19]OFD Sender: No OFD packet to send [22:03:24]OFD Sender: No OFD packet to send [22:03:29]OFD Sender: No OFD packet to send [22:03:34]OFD Sender: No OFD packet to send [22:03:39]OFD Sender: No OFD packet to send [22:03:44]OFD Sender: No OFD packet to send [22:03:49]OFD Sender: No OFD packet to send [22:03:54]OFD Sender: No OFD packet to send [22:03:59]OFD Sender: No OFD packet to send [22:04:04]OFD Sender: No OFD packet to send [22:04:09]OFD Sender: No OFD packet to send [22:04:14]OFD Sender: No OFD packet to send [22:04:19]OFD Sender: No OFD packet to send [22:04:20]accept exits with 9 [22:04:20]New connection [22:04:20]New thread 3067616612 created [22:04:20]Thread 3067473252 joined [22:04:20]Waiting for new connection... [22:04:20] Sock 9.Parse request [22:04:20]Sock 9.Check first char [22:04:20]Sock 9.First char is OK [22:04:20]request: POST /json_proto HTTP/1.0 [22:04:20]Method: POST [22:04:20]URL: /json_proto [22:04:20]Method is POST - this is cgi request [22:04:20]url: /json_proto [22:04:20]query_string will be loaded in cgi processing [22:04:20]execute_cgi json_proto POST (null) [22:04:20]execute_cgi path=json_proto method=POST [22:04:20]POST find Content-Length [22:04:20]Host: 172.17.38.133:8080 [22:04:20]Content-Length: 1195 [22:04:20]Content-Type: application/json [22:04:20] [22:04:20]POST finish read [22:04:20]Found Content-Length = 1195 [22:04: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 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)673733\u000A21.06.2024 21:41\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: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A1\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:04:20]execute_script... [22:04: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 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)673733\u000A21.06.2024 21:41\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: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A1\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:04:20]POST & json_proto [22:04:20]process_json_proto [22:04:20]json parsed OK: [22:04:20]protocol is kg_v1.0 [22:04:20]action value=print_text [22:04:20]process_action print_text [22:04:20]cmd_print_text [22:04:20]ExternCall_PrintAddStr [22:04:20]wPrintStart [22:04:20]Write to MH i2c: 01 00 00 E0 11 F1 [22:04:20]Write i2c OK [22:04:20]MH_I2C_Read... [22:04:20]Read from MH i2c: 01 [22:04:20]MH_I2C_Read... [22:04:20]Read from MH i2c: 01 07 00 [22:04:20]MH_I2C_Read... [22:04:20]Read from MH i2c: 01 07 00 E0 11 00 00 00 00 00 FF 0F 06 [22:04:20]RasterBufferAndPrint [22:04:20]line *****ТОВАРНЫЙ ЧЕК***** [22:04:20]line АЗС 120 [22:04:20]line Партнер нефть [22:04:20]line 02508201610067 [22:04:20]line Кассир : Асанбаев Н. [22:04:20]line Счет N : (1)673733 [22:04:20]line 21.06.2024 21:41 [22:04:20]line ПРОДАЖА [22:04:20]line ТРК (МРК, ГНК): 21 [22:04:20]line Вид ГСМ : 2710194210 [22:04:20]line ДТ(л)-К-5 [22:04:20]line 10.000 x 72.90 [22:04:20]line ИТОГ: 729.00 [22:04:20]line Тип оплаты: Талоны: Топливная Карта [22:04:20]line 1 [22:04:20]line ______________________ [22:04:20]line (подпись) [22:04:20]written 0, free lines is 4095 [22:04:20]Write to MH i2c: 01 00 00 F4 11 05 [22:04:20]Write i2c OK [22:04:20]MH_I2C_Read... [22:04:20]Read from MH i2c: 01 [22:04:20]MH_I2C_Read... [22:04:20]Read from MH i2c: 01 07 00 [22:04:20]MH_I2C_Read... [22:04:20]Read from MH i2c: 01 07 00 F4 11 00 00 00 00 00 0C 0E 26 [22:04:20]RasterBufferAndPrint [22:04:20]line [22:04:20]line [22:04:20]line [22:04:20]line [22:04:20]line [22:04:20]written 0, free lines is 3598 [22:04:20]MH_Cut [22:04:20]Write to MH i2c: D1 01 00 FB 11 01 DE [22:04:20]Write i2c OK [22:04:20]MH_I2C_Read... [22:04:20]Read from MH i2c: D1 [22:04:20]MH_I2C_Read... [22:04:20]Read from MH i2c: D1 01 00 [22:04:20]MH_I2C_Read... [22:04:20]Read from MH i2c: D1 01 00 FB 11 00 DD [22:04:20]Write to MH i2c: 01 00 00 FC 11 0D [22:04:20]Write i2c OK [22:04:20]MH_I2C_Read... [22:04:21]*** Cut start [22:04:21]*** Partial cut [22:04:21]*** CUTSNS_PIN = 1 [22:04:21]*** CUTSNS_PIN = 0 [22:04:21]*** Brake cut motor [22:04:21]Read from MH i2c: 01 [22:04:21]MH_I2C_Read... [22:04:21]Read from MH i2c: 01 07 00 [22:04:22]MH_I2C_Read... [22:04:22]*** Stop cut motor [22:04:22]*** Cut end [22:04:22]Read from MH i2c: 01 07 00 FC 11 00 00 00 00 00 FF 0F 22 [22:04:22]process_action print_text done [22:04:22]requested_data is exist [22:04:22]produce_requested_data [22:04:22]requested_item fm.sn is exist - process it [22:04:22]wFMCommunicate request_size=4 [22:04:22]MH_SAM_APDU [22:04:22]CAPDU: 80 11 00 00 [22:04:22]Write to MH i2c: E2 08 00 FD 11 80 11 00 00 00 00 00 00 88 [22:04:22]Write i2c OK [22:04:22]MH_I2C_Read... [22:04:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:04:22]Read from MH i2c: E2 [22:04:22]MH_I2C_Read... [22:04:22]Read from MH i2c: E2 17 00 [22:04:22]MH_I2C_Read... [22:04:22]Read from MH i2c: E2 17 00 FD 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 DB [22:04:22]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:22]wFMCommunicate OK [22:04:22]requested_item fd.num is exist - process it [22:04:22]SAM_PROTO_GetFieldsCounters [22:04:22]wFMCommunicate request_size=4 [22:04:22]MH_SAM_APDU [22:04:22]CAPDU: 80 13 00 00 [22:04:22]Write to MH i2c: E2 08 00 FE 11 80 13 00 00 00 00 00 00 8B [22:04:22]Write i2c OK [22:04:22]MH_I2C_Read... [22:04:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:04:22]Read from MH i2c: E2 [22:04:22]MH_I2C_Read... [22:04:22]Read from MH i2c: E2 62 00 [22:04:22]MH_I2C_Read... [22:04:22]Read from MH i2c: E2 62 00 FE 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 36 97 01 00 0E 04 04 00 63 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 DF [22:04: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 36 97 01 00 0E 04 04 00 63 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 [22:04:22]wFMCommunicate OK [22:04:22]SAM_PROTO_GetFieldsCounters done [22:04:22]requested_item shift.num is exist - process it [22:04:22]requested_item shift.opened is exist - process it [22:04:22]req_shift_opened [22:04:22]FM_GetShiftState [22:04:22]SAM_PROTO_GetShiftState [22:04:22]wFMCommunicate request_size=4 [22:04:22]MH_SAM_APDU [22:04:22]CAPDU: 80 13 01 00 [22:04:22]Write to MH i2c: E2 08 00 FF 11 80 13 01 00 00 00 00 00 8D [22:04:22]Write i2c OK [22:04:22]MH_I2C_Read... [22:04:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:04:22]Read from MH i2c: E2 [22:04:22]MH_I2C_Read... [22:04:22]Read from MH i2c: E2 0E 00 [22:04:22]MH_I2C_Read... [22:04:22]Read from MH i2c: E2 0E 00 FF 11 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 A0 [22:04:22]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [22:04:22]wFMCommunicate OK [22:04:22]SAM_PROTO_GetShiftState done [22:04:22]FM_GetShiftState done [22:04:22]req_shift_opened done [22:04:22]requested_item shift.open_date is exist - process it [22:04:22]req_shift_open_date [22:04:22]req_shift_open_date done [22:04:22]produce_requested_data done [22:04:22]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104246,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [22:04:22]process_action_free print_text [22:04:22]json_value_free [22:04:22]json_value_free done [22:04:22]process_json_proto returns [22:04:22]Send response to host [22:04:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104246,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [22:04:22]free response buf [22:04:22]execute_script done [22:04:22]execute_script returns [22:04:22]free content buf [22:04:22]Sock 9.Close socket [22:04:22]Sock 9.Thread stoped [22:04:24]OFD Sender: No OFD packet to send [22:04:29]OFD Sender: No OFD packet to send [22:04:34]OFD Sender: No OFD packet to send [22:04:39]OFD Sender: No OFD packet to send [22:04:44]OFD Sender: No OFD packet to send [22:04:49]OFD Sender: No OFD packet to send [22:04:54]OFD Sender: No OFD packet to send [22:04:59]OFD Sender: No OFD packet to send [22:05:04]OFD Sender: No OFD packet to send [22:05:09]OFD Sender: No OFD packet to send [22:05:14]OFD Sender: No OFD packet to send [22:05:14]accept exits with 7 [22:05:14]New connection [22:05:14]New thread 3067473252 created [22:05:14]Thread 3067616612 joined [22:05:14]Waiting for new connection... [22:05:14] Sock 7.Parse request [22:05:14]Sock 7.Check first char [22:05:14]Sock 7.First char is OK [22:05:14]request: POST /json_proto HTTP/1.0 [22:05:14]Method: POST [22:05:14]URL: /json_proto [22:05:14]Method is POST - this is cgi request [22:05:14]url: /json_proto [22:05:14]query_string will be loaded in cgi processing [22:05:14]execute_cgi json_proto POST (null) [22:05:14]execute_cgi path=json_proto method=POST [22:05:14]POST find Content-Length [22:05:14]Host: 172.17.38.133:8080 [22:05:14]Content-Length: 1198 [22:05:14]Content-Type: application/json [22:05:14] [22:05:14]POST finish read [22:05:14]Found Content-Length = 1198 [22:05:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 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)673734\u000A21.06.2024 21:42\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.710 x 72.90\u000A\u0418\u0422\u041E\u0413: 489.16\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\u000A01088\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:05:14]execute_script... [22:05:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 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)673734\u000A21.06.2024 21:42\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.710 x 72.90\u000A\u0418\u0422\u041E\u0413: 489.16\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\u000A01088\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:05:14]POST & json_proto [22:05:14]process_json_proto [22:05:14]json parsed OK: [22:05:14]protocol is kg_v1.0 [22:05:14]action value=print_text [22:05:14]process_action print_text [22:05:14]cmd_print_text [22:05:14]ExternCall_PrintAddStr [22:05:14]wPrintStart [22:05:14]Write to MH i2c: 01 00 00 00 12 12 [22:05:14]Write i2c OK [22:05:14]MH_I2C_Read... [22:05:14]Read from MH i2c: 01 [22:05:14]MH_I2C_Read... [22:05:14]Read from MH i2c: 01 07 00 [22:05:14]MH_I2C_Read... [22:05:14]Read from MH i2c: 01 07 00 00 12 00 00 00 00 00 FF 0F 27 [22:05:14]RasterBufferAndPrint [22:05:14]line *****ТОВАРНЫЙ ЧЕК***** [22:05:14]line АЗС 120 [22:05:14]line Партнер нефть [22:05:14]line 02508201610067 [22:05:14]line Кассир : Асанбаев Н. [22:05:14]line Счет N : (1)673734 [22:05:14]line 21.06.2024 21:42 [22:05:14]line ПРОДАЖА [22:05:14]line ТРК (МРК, ГНК): 21 [22:05:14]line Вид ГСМ : 2710194210 [22:05:14]line ДТ(л)-К-5 [22:05:14]line 6.710 x 72.90 [22:05:14]line ИТОГ: 489.16 [22:05:14]line Тип оплаты: Талоны: Топливная Карта [22:05:14]line 01088 [22:05:14]line ______________________ [22:05:14]line (подпись) [22:05:14]written 0, free lines is 4095 [22:05:15]Write to MH i2c: 01 00 00 14 12 26 [22:05:15]Write i2c OK [22:05:15]MH_I2C_Read... [22:05:15]Read from MH i2c: 01 [22:05:15]MH_I2C_Read... [22:05:15]Read from MH i2c: 01 07 00 [22:05:15]MH_I2C_Read... [22:05:15]Read from MH i2c: 01 07 00 14 12 00 00 00 00 00 0E 0E 49 [22:05:15]RasterBufferAndPrint [22:05:15]line [22:05:15]line [22:05:15]line [22:05:15]line [22:05:15]line [22:05:15]written 0, free lines is 3600 [22:05:15]MH_Cut [22:05:15]Write to MH i2c: D1 01 00 1B 12 01 FF [22:05:15]Write i2c OK [22:05:15]MH_I2C_Read... [22:05:15]Read from MH i2c: D1 [22:05:15]MH_I2C_Read... [22:05:15]Read from MH i2c: D1 01 00 [22:05:15]MH_I2C_Read... [22:05:15]Read from MH i2c: D1 01 00 1B 12 00 FE [22:05:15]Write to MH i2c: 01 00 00 1C 12 2E [22:05:15]Write i2c OK [22:05:15]MH_I2C_Read... [22:05:15]*** Cut start [22:05:15]*** Partial cut [22:05:15]*** CUTSNS_PIN = 1 [22:05:15]*** CUTSNS_PIN = 0 [22:05:15]*** Brake cut motor [22:05:16]Read from MH i2c: 01 [22:05:16]MH_I2C_Read... [22:05:16]*** Stop cut motor [22:05:16]*** Cut end [22:05:16]Read from MH i2c: 01 07 00 [22:05:16]MH_I2C_Read... [22:05:16]Read from MH i2c: 01 07 00 1C 12 00 00 00 00 00 FF 0F 43 [22:05:16]process_action print_text done [22:05:16]requested_data is exist [22:05:16]produce_requested_data [22:05:16]requested_item fm.sn is exist - process it [22:05:16]wFMCommunicate request_size=4 [22:05:16]MH_SAM_APDU [22:05:16]CAPDU: 80 11 00 00 [22:05:16]Write to MH i2c: E2 08 00 1D 12 80 11 00 00 00 00 00 00 A9 [22:05:16]Write i2c OK [22:05:16]MH_I2C_Read... [22:05:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:05:16]Read from MH i2c: E2 [22:05:16]MH_I2C_Read... [22:05:16]Read from MH i2c: E2 17 00 [22:05:16]MH_I2C_Read... [22:05:16]Read from MH i2c: E2 17 00 1D 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 FC [22:05: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:05:16]wFMCommunicate OK [22:05:16]requested_item fd.num is exist - process it [22:05:16]SAM_PROTO_GetFieldsCounters [22:05:16]wFMCommunicate request_size=4 [22:05:16]MH_SAM_APDU [22:05:16]CAPDU: 80 13 00 00 [22:05:16]Write to MH i2c: E2 08 00 1E 12 80 13 00 00 00 00 00 00 AC [22:05:16]Write i2c OK [22:05:16]MH_I2C_Read... [22:05:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:05:16]Read from MH i2c: E2 [22:05:16]MH_I2C_Read... [22:05:16]Read from MH i2c: E2 62 00 [22:05:16]MH_I2C_Read... [22:05:16]Read from MH i2c: E2 62 00 1E 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 63 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 00 [22:05:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 63 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 [22:05:16]wFMCommunicate OK [22:05:16]SAM_PROTO_GetFieldsCounters done [22:05:16]requested_item shift.num is exist - process it [22:05:16]requested_item shift.opened is exist - process it [22:05:16]req_shift_opened [22:05:16]FM_GetShiftState [22:05:16]SAM_PROTO_GetShiftState [22:05:16]wFMCommunicate request_size=4 [22:05:16]MH_SAM_APDU [22:05:16]CAPDU: 80 13 01 00 [22:05:16]Write to MH i2c: E2 08 00 1F 12 80 13 01 00 00 00 00 00 AE [22:05:16]Write i2c OK [22:05:16]MH_I2C_Read... [22:05:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:05:16]Read from MH i2c: E2 [22:05:16]MH_I2C_Read... [22:05:16]Read from MH i2c: E2 0E 00 [22:05:16]MH_I2C_Read... [22:05:16]Read from MH i2c: E2 0E 00 1F 12 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 C1 [22:05:16]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [22:05:16]wFMCommunicate OK [22:05:16]SAM_PROTO_GetShiftState done [22:05:16]FM_GetShiftState done [22:05:16]req_shift_opened done [22:05:16]requested_item shift.open_date is exist - process it [22:05:16]req_shift_open_date [22:05:16]req_shift_open_date done [22:05:16]produce_requested_data done [22:05:16]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104246,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [22:05:16]process_action_free print_text [22:05:16]json_value_free [22:05:16]json_value_free done [22:05:16]process_json_proto returns [22:05:16]Send response to host [22:05:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104246,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [22:05:16]free response buf [22:05:16]execute_script done [22:05:16]execute_script returns [22:05:16]free content buf [22:05:16]Sock 7.Close socket [22:05:16]Sock 7.Thread stoped [22:05:19]OFD Sender: No OFD packet to send [22:05:24]OFD Sender: No OFD packet to send [22:05:29]OFD Sender: No OFD packet to send [22:05:34]OFD Sender: No OFD packet to send [22:05:39]OFD Sender: No OFD packet to send [22:05:44]OFD Sender: No OFD packet to send [22:05:49]OFD Sender: No OFD packet to send [22:05:54]OFD Sender: No OFD packet to send [22:05:59]OFD Sender: No OFD packet to send [22:06:04]OFD Sender: No OFD packet to send [22:06:09]OFD Sender: No OFD packet to send [22:06:14]OFD Sender: No OFD packet to send [22:06:19]OFD Sender: No OFD packet to send [22:06:24]OFD Sender: No OFD packet to send [22:06:29]OFD Sender: No OFD packet to send [22:06:34]OFD Sender: No OFD packet to send [22:06:39]OFD Sender: No OFD packet to send [22:06:44]OFD Sender: No OFD packet to send [22:06:49]OFD Sender: No OFD packet to send [22:06:54]OFD Sender: No OFD packet to send [22:06:59]OFD Sender: No OFD packet to send [22:07:04]OFD Sender: No OFD packet to send [22:07:09]OFD Sender: No OFD packet to send [22:07:14]OFD Sender: No OFD packet to send [22:07:19]OFD Sender: No OFD packet to send [22:07:24]OFD Sender: No OFD packet to send [22:07:29]OFD Sender: No OFD packet to send [22:07:34]OFD Sender: No OFD packet to send [22:07:39]OFD Sender: No OFD packet to send [22:07:44]OFD Sender: No OFD packet to send [22:07:49]OFD Sender: No OFD packet to send [22:07:54]OFD Sender: No OFD packet to send [22:07:59]OFD Sender: No OFD packet to send [22:08:04]OFD Sender: No OFD packet to send [22:08:09]OFD Sender: No OFD packet to send [22:08:14]OFD Sender: No OFD packet to send [22:08:19]OFD Sender: No OFD packet to send [22:08:24]OFD Sender: No OFD packet to send [22:08:29]OFD Sender: No OFD packet to send [22:08:34]OFD Sender: No OFD packet to send [22:08:39]OFD Sender: No OFD packet to send [22:08:44]OFD Sender: No OFD packet to send [22:08:49]OFD Sender: No OFD packet to send [22:08:54]OFD Sender: No OFD packet to send [22:08:59]OFD Sender: No OFD packet to send [22:09:04]OFD Sender: No OFD packet to send [22:09:09]OFD Sender: No OFD packet to send [22:09:14]OFD Sender: No OFD packet to send [22:09:19]OFD Sender: No OFD packet to send [22:09:24]OFD Sender: No OFD packet to send [22:09:29]OFD Sender: No OFD packet to send [22:09:34]OFD Sender: No OFD packet to send [22:09:39]OFD Sender: No OFD packet to send [22:09:44]OFD Sender: No OFD packet to send [22:09:49]OFD Sender: No OFD packet to send [22:09:54]OFD Sender: No OFD packet to send [22:09:59]OFD Sender: No OFD packet to send [22:10:04]OFD Sender: No OFD packet to send [22:10:09]OFD Sender: No OFD packet to send [22:10:14]OFD Sender: No OFD packet to send [22:10:19]OFD Sender: No OFD packet to send [22:10:24]OFD Sender: No OFD packet to send [22:10:29]OFD Sender: No OFD packet to send [22:10:34]OFD Sender: No OFD packet to send [22:10:39]OFD Sender: No OFD packet to send [22:10:44]OFD Sender: No OFD packet to send [22:10:49]OFD Sender: No OFD packet to send [22:10:54]OFD Sender: No OFD packet to send [22:10:59]OFD Sender: No OFD packet to send [22:11:04]OFD Sender: No OFD packet to send [22:11:09]OFD Sender: No OFD packet to send [22:11:14]OFD Sender: No OFD packet to send [22:11:19]OFD Sender: No OFD packet to send [22:11:24]OFD Sender: No OFD packet to send [22:11:29]OFD Sender: No OFD packet to send [22:11:34]OFD Sender: No OFD packet to send [22:11:39]OFD Sender: No OFD packet to send [22:11:44]OFD Sender: No OFD packet to send [22:11:49]OFD Sender: No OFD packet to send [22:11:54]OFD Sender: No OFD packet to send [22:11:59]OFD Sender: No OFD packet to send [22:12:04]OFD Sender: No OFD packet to send [22:12:09]OFD Sender: No OFD packet to send [22:12:14]OFD Sender: No OFD packet to send [22:12:19]OFD Sender: No OFD packet to send [22:12:24]OFD Sender: No OFD packet to send [22:12:29]OFD Sender: No OFD packet to send [22:12:34]OFD Sender: No OFD packet to send [22:12:39]OFD Sender: No OFD packet to send [22:12:44]OFD Sender: No OFD packet to send [22:12:49]OFD Sender: No OFD packet to send [22:12:54]OFD Sender: No OFD packet to send [22:12:59]OFD Sender: No OFD packet to send [22:13:04]OFD Sender: No OFD packet to send [22:13:09]OFD Sender: No OFD packet to send [22:13:14]OFD Sender: No OFD packet to send [22:13:19]OFD Sender: No OFD packet to send [22:13:24]OFD Sender: No OFD packet to send [22:13:29]OFD Sender: No OFD packet to send [22:13:34]OFD Sender: No OFD packet to send [22:13:39]OFD Sender: No OFD packet to send [22:13:44]OFD Sender: No OFD packet to send [22:13:49]OFD Sender: No OFD packet to send [22:13:54]OFD Sender: No OFD packet to send [22:13:59]OFD Sender: No OFD packet to send [22:14:04]OFD Sender: No OFD packet to send [22:14:09]OFD Sender: No OFD packet to send [22:14:14]OFD Sender: No OFD packet to send [22:14:19]OFD Sender: No OFD packet to send [22:14:24]OFD Sender: No OFD packet to send [22:14:29]OFD Sender: No OFD packet to send [22:14:34]OFD Sender: No OFD packet to send [22:14:39]OFD Sender: No OFD packet to send [22:14:44]OFD Sender: No OFD packet to send [22:14:49]OFD Sender: No OFD packet to send [22:14:54]OFD Sender: No OFD packet to send [22:14:59]OFD Sender: No OFD packet to send [22:15:04]OFD Sender: No OFD packet to send [22:15:09]OFD Sender: No OFD packet to send [22:15:14]OFD Sender: No OFD packet to send [22:15:19]OFD Sender: No OFD packet to send [22:15:24]OFD Sender: No OFD packet to send [22:15:29]OFD Sender: No OFD packet to send [22:15:34]OFD Sender: No OFD packet to send [22:15:39]OFD Sender: No OFD packet to send [22:15:44]OFD Sender: No OFD packet to send [22:15:49]OFD Sender: No OFD packet to send [22:15:54]OFD Sender: No OFD packet to send [22:15:59]OFD Sender: No OFD packet to send [22:16:04]OFD Sender: No OFD packet to send [22:16:09]OFD Sender: No OFD packet to send [22:16:14]OFD Sender: No OFD packet to send [22:16:19]OFD Sender: No OFD packet to send [22:16:24]OFD Sender: No OFD packet to send [22:16:29]OFD Sender: No OFD packet to send [22:16:34]OFD Sender: No OFD packet to send [22:16:39]OFD Sender: No OFD packet to send [22:16:44]OFD Sender: No OFD packet to send [22:16:49]OFD Sender: No OFD packet to send [22:16:54]OFD Sender: No OFD packet to send [22:16:59]OFD Sender: No OFD packet to send [22:17:04]OFD Sender: No OFD packet to send [22:17:09]OFD Sender: No OFD packet to send [22:17:14]OFD Sender: No OFD packet to send [22:17:19]OFD Sender: No OFD packet to send [22:17:24]OFD Sender: No OFD packet to send [22:17:25]accept exits with 9 [22:17:25]New connection [22:17:25]New thread 3067616612 created [22:17:25]Thread 3067473252 joined [22:17:25]Waiting for new connection... [22:17:25] Sock 9.Parse request [22:17:25]Sock 9.Check first char [22:17:25]Sock 9.First char is OK [22:17:25]request: POST /json_proto HTTP/1.0 [22:17:25]Method: POST [22:17:25]URL: /json_proto [22:17:25]Method is POST - this is cgi request [22:17:25]url: /json_proto [22:17:25]query_string will be loaded in cgi processing [22:17:25]execute_cgi json_proto POST (null) [22:17:25]execute_cgi path=json_proto method=POST [22:17:25]POST find Content-Length [22:17:25]Host: 172.17.38.133:8080 [22:17:25]Content-Length: 803 [22:17:25]Content-Type: application/json [22:17:25] [22:17:25]POST finish read [22:17:25]Found Content-Length = 803 [22:17:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673735", "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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.17 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:17:25]execute_script... [22:17: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)673735", "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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.17 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:17:25]POST & json_proto [22:17:25]process_json_proto [22:17:25]json parsed OK: [22:17:25]protocol is kg_v1.0 [22:17:25]action value=close_receipt [22:17:25]process_action close_receipt [22:17:25]cmd_close_receipt [22:17:25]MH_GetDate [22:17:25]Write to MH i2c: F0 00 00 20 12 21 [22:17:25]Write i2c OK [22:17:25]MH_I2C_Read... [22:17:25]Read from MH i2c: F0 [22:17:25]MH_I2C_Read... [22:17:25]Read from MH i2c: F0 09 00 [22:17:25]MH_I2C_Read... [22:17:25]Read from MH i2c: F0 09 00 20 12 00 F7 FB 75 66 BD 8F 7C 64 23 [22:17:25]GetLastDocTimeStamp 1719007182 [22:17:25]current date 1719008247 [22:17:25]FM_GetShiftState [22:17:25]SAM_PROTO_GetShiftState [22:17:25]wFMCommunicate request_size=4 [22:17:25]MH_SAM_APDU [22:17:25]CAPDU: 80 13 01 00 [22:17:25]Write to MH i2c: E2 08 00 21 12 80 13 01 00 00 00 00 00 B0 [22:17:25]Write i2c OK [22:17:25]MH_I2C_Read... [22:17:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:17:25]Read from MH i2c: E2 [22:17:25]MH_I2C_Read... [22:17:25]Read from MH i2c: E2 0E 00 [22:17:25]MH_I2C_Read... [22:17:25]Read from MH i2c: E2 0E 00 21 12 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 C3 [22:17:25]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [22:17:25]wFMCommunicate OK [22:17:25]SAM_PROTO_GetShiftState done [22:17:25]FM_GetShiftState done [22:17:25]opened in 1718929509 [22:17:25]opened+sec_in_day 1719015909 [22:17:25]quantity*price = 150017 [22:17:25]sum+1 = 150018 [22:17:25]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 СНО: Общий режим Чек 170 21.06.2024 22:17 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875093 ФД: 104247 ФПД: 70038169259709 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T221727&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104247&fm=70038169259709&tin=02508201610067®Number=0000000000092785&sum=150017 [22:17:26]StoreToDocumentArchive [22:17:26]shift 355 fd 104247 [22:17:26]save to /storage/0355/doc_00104247 [22:17:26]save last doc name /storage/0355/doc_00104247 to /storage/kkm_last_doc_name [22:17:26]save OK [22:17:26]Clear old archive folders... [22:17:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:17:26]tlvbuf is 006AF790 [22:17:26]SAM_PROTO_ClearQueue [22:17:26]wFMCommunicate request_size=4 [22:17:26]MH_SAM_APDU [22:17:26]CAPDU: 80 09 00 00 [22:17:26]Write to MH i2c: E2 08 00 2E 12 80 09 00 00 00 00 00 00 B2 [22:17:26]Write i2c OK [22:17:26]MH_I2C_Read... [22:17:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:17:27]Read from MH i2c: E2 [22:17:27]MH_I2C_Read... [22:17:27]Read from MH i2c: E2 03 00 [22:17:27]MH_I2C_Read... [22:17:27]Read from MH i2c: E2 03 00 2E 12 00 90 00 B4 [22:17:27]RAPDU: 90 00 [22:17:27]wFMCommunicate OK [22:17:27]SAM_PROTO_ClearQueue done [22:17:27]KKMCreateOFDPacket [22:17:27]OFDProtocolAddRootSTLVToBuf [22:17:27]FM_MakeSignedData [22:17:27]FM_MakeSignedData [22:17:27]SAM_PROTO_SignData [22:17:27]wFMCommunicate request_size=4 [22:17:27]MH_SAM_APDU [22:17:27]CAPDU: 80 0D 01 02 [22:17:27]Write to MH i2c: E2 08 00 2F 12 80 0D 01 02 00 00 00 00 BA [22:17:27]Write i2c OK [22:17:27]MH_I2C_Read... [22:17:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:17:27]Read from MH i2c: E2 [22:17:27]MH_I2C_Read... [22:17:27]Read from MH i2c: E2 03 00 [22:17:27]MH_I2C_Read... [22:17:27]Read from MH i2c: E2 03 00 2F 12 00 90 00 B5 [22:17:27]RAPDU: 90 00 [22:17:27]wFMCommunicate OK [22:17:27]wFMCommunicate request_size=255 [22:17:27]MH_SAM_APDU [22:17: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 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 AA 00 00 00 F4 03 04 00 F7 FB 75 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 37 97 01 00 35 04 06 00 3F [22:17:27]Write to MH i2c: E2 02 01 30 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 AA 00 00 00 F4 03 04 00 F7 FB 75 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 37 97 01 00 35 04 06 00 3F 00 00 E1 [22:17:27]Write i2c OK [22:17:27]MH_I2C_Read... [22:17:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:17:27]Read from MH i2c: E2 [22:17:27]MH_I2C_Read... [22:17:27]Read from MH i2c: E2 03 00 [22:17:27]MH_I2C_Read... [22:17:27]Read from MH i2c: E2 03 00 30 12 00 90 00 B6 [22:17:27]RAPDU: 90 00 [22:17:27]wFMCommunicate OK [22:17:27]wFMCommunicate request_size=10 [22:17:27]MH_SAM_APDU [22:17:27]CAPDU: 80 0D 02 02 05 B3 08 33 0E BD [22:17:27]Write to MH i2c: E2 0D 00 31 12 80 0D 02 02 05 00 B3 08 33 0E BD 00 00 80 [22:17:27]Write i2c OK [22:17:27]MH_I2C_Read... [22:17:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:17:27]Read from MH i2c: E2 [22:17:27]MH_I2C_Read... [22:17:27]Read from MH i2c: E2 03 00 [22:17:27]MH_I2C_Read... [22:17:27]Read from MH i2c: E2 03 00 31 12 00 90 00 B7 [22:17:27]RAPDU: 90 00 [22:17:27]wFMCommunicate OK [22:17:27]wFMCommunicate request_size=4 [22:17:27]MH_SAM_APDU [22:17:27]CAPDU: 80 0D 03 02 [22:17:27]Write to MH i2c: E2 08 00 32 12 80 0D 03 02 00 00 00 00 BF [22:17:27]Write i2c OK [22:17:27]MH_I2C_Read... [22:17:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:17:27]Read from MH i2c: E2 [22:17:27]MH_I2C_Read... [22:17:27]Read from MH i2c: E2 0B 00 [22:17:27]MH_I2C_Read... [22:17:27]Read from MH i2c: E2 0B 00 32 12 00 FC EF 9C 2A 92 E0 6E 6A 90 00 BB [22:17:27]RAPDU: FC EF 9C 2A 92 E0 6E 6A 90 00 [22:17:27]wFMCommunicate OK [22:17:27]SAM_PROTO_SignData done [22:17:27]FM_MakeSignedData done [22:17:27]CreateOFDProtocolMessage [22:17:27]wFMCommunicate request_size=4 [22:17:27]MH_SAM_APDU [22:17:27]CAPDU: 80 11 00 00 [22:17:27]Write to MH i2c: E2 08 00 33 12 80 11 00 00 00 00 00 00 BF [22:17:27]Write i2c OK [22:17:27]MH_I2C_Read... [22:17:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:17:27]Read from MH i2c: E2 [22:17:27]MH_I2C_Read... [22:17:27]Read from MH i2c: E2 17 00 [22:17:27]MH_I2C_Read... [22:17:27]Read from MH i2c: E2 17 00 33 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 12 [22:17: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:17:27]wFMCommunicate OK [22:17:27]CreateOFDProtocolMessage done [22:17:27]OFDSenderStorePacket 104247 [22:17:27]StoreOFDPacket docnum=104247 [22:17: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 2E C9 07 01 B6 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 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 AA 00 00 00 F4 03 04 00 F7 FB 75 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 37 97 01 00 35 04 06 00 3F B3 08 33 0E BD FC EF 9C 2A 92 E0 6E 6A [22:17:27]CheckFolder [22:17:27]dirname=/storage/ofd_packets [22:17:27]CheckFolder done [22:17:27]ProducePacketName [22:17:27]name=ofd_packets/00104247 [22:17:27]NVStorageSaveData ofd_packets/00104247 [22:17:27]File name is /storage/ofd_packets/00104247 [22:17:27]Write 301 bytes [22:17:27]NVStorageSaveData done [22:17:27]OFDSenderStorePacket done [22:17:27]KKMCreateOFDPacket done [22:17:27]NVStorageSaveData kkm_last_timestamp [22:17:27]File name is /storage/kkm_last_timestamp [22:17:27]Write 4 bytes [22:17:27]NVStorageSaveData done [22:17:27]ExternCall_PrintAddStr [22:17:27]wPrintStart [22:17:27]Write to MH i2c: 01 00 00 34 12 46 [22:17:27]Write i2c OK [22:17:27]MH_I2C_Read... [22:17:27]Read from MH i2c: 01 [22:17:27]MH_I2C_Read... [22:17:27]Read from MH i2c: 01 07 00 [22:17:27]MH_I2C_Read... [22:17:27]Read from MH i2c: 01 07 00 34 12 00 00 00 00 00 FF 0F 5B [22:17:27]RasterBufferAndPrint [22:17:27]line Счет N : (1)673735 [22:17:27]line ИНН: 02508201610067 [22:17:27]line Контрольно-Кассовый Чек [22:17:27]line ПРОДАЖА [22:17:27]line ТРК (МРК, ГНК) : 41 [22:17:27]line Товар: 2710124500 [22:17:27]line Аи-95-К-5 [22:17:27]line 20.300 * 73.90 [22:17:27]line = 1500.17 [22:17:27]line НДС 12% НСП 1% [22:17:27]line > о реализуемом товаре [22:17:27]line ИТОГО: 1500.17 [22:17:27]line НСП 1% : 13.28 [22:17:27]line НДС 12% : 159.31 [22:17:27]line Наличными: 0.00 [22:17:27]line Безнал.: 1500.17 [22:17:27]line Место: АЗС № 120 "Партнер Нефть" [22:17:27]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [22:17:27]line СНО: Общий режим [22:17:27]line Чек 170 21.06.2024 22:17 [22:17:27]line Смена: 355 ФФД: 1.0 [22:17:27]line ЗНМ: 0300000164 [22:17:27]line РНМ: 0000000000092785 [22:17:27]line Версия ККМ: 001 [22:17:27]line Платежная система: O! деньги [22:17:27]line ФМ: 0000000000875093 [22:17:27]line ФД: 104247 [22:17:27]line ФПД: 70038169259709 [22:17:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T221727&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104247&fm=70038169259709&tin=02508201610067®Number=0000000000092785&sum=150017 [22:17:27]written 0, free lines is 4095 [22:17:27]OFD Sender: Processing packet 104247 [packets to send 17, broken 16] [22:17:27]ProducePacketName [22:17:27]name=ofd_packets/00104247 [22:17:27]OFD Sender: To server: pG, [22:17:27]CommunicateWithHost lk.salyk.kg:30040 [22:17:27]ConnectInit lk.salyk.kg [22:17:27]Connected sock=10 [22:17: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 2E C9 07 01 B6 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 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 AA 00 00 00 F4 03 04 00 F7 FB 75 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 37 97 01 00 35 04 06 00 3F B3 08 33 0E BD FC EF 9C 2A 92 E0 6E 6A [22:17: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 30 DB 47 00 F0 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 37 97 01 00 F4 03 04 00 78 A2 75 66 B6 04 01 00 00 E9 C6 32 A5 8F 3E C4 90 [22:17:28]CommunicateWithHost err = 0 [22:17:28]CheckOFDResponse [22:17:28]1017 (14) - 77093643461234 [22:17:28]1041 (16) - 0000000000875093 [22:17:28]1040 (4) - 104247 [22:17:28]1012 (4) - 21.06.2024 15:55 [22:17:28]1206 (1) - 0 [22:17:28]OFD Sender: Remove packet 104247 [22:17:28]ProducePacketName [22:17:28]name=ofd_packets/00104247 [22:17:28]NVStorageDeleteData [22:17:28]Write to MH i2c: 01 00 00 5E 12 70 [22:17:28]Write i2c OK [22:17:28]MH_I2C_Read... [22:17:28]Read from MH i2c: 01 [22:17:28]MH_I2C_Read... [22:17:28]Read from MH i2c: 01 07 00 [22:17:28]MH_I2C_Read... [22:17:28]Read from MH i2c: 01 07 00 5E 12 00 00 00 00 00 F2 0C 75 [22:17:28]RasterBufferAndPrint [22:17:28]line [22:17:28]line [22:17:28]line [22:17:28]line [22:17:28]line [22:17:28]written 0, free lines is 3320 [22:17:28]MH_Cut [22:17:28]Write to MH i2c: D1 01 00 65 12 01 49 [22:17:28]Write i2c OK [22:17:28]MH_I2C_Read... [22:17:28]Read from MH i2c: D1 [22:17:28]MH_I2C_Read... [22:17:28]Read from MH i2c: D1 01 00 [22:17:28]MH_I2C_Read... [22:17:28]Read from MH i2c: D1 01 00 65 12 00 48 [22:17:28]Write to MH i2c: 01 00 00 66 12 78 [22:17:28]Write i2c OK [22:17:28]MH_I2C_Read... [22:17:28]OFD Sender: No OFD packet to send [22:17:29]*** Cut start [22:17:29]*** Partial cut [22:17:29]*** CUTSNS_PIN = 1 [22:17:29]*** CUTSNS_PIN = 0 [22:17:29]*** Brake cut motor [22:17:29]Read from MH i2c: 01 [22:17:29]*** Stop cut motor [22:17:29]*** Cut end [22:17:29]MH_I2C_Read... [22:17:29]Read from MH i2c: 01 07 00 [22:17:29]MH_I2C_Read... [22:17:29]Read from MH i2c: 01 07 00 66 12 00 00 00 00 00 FF 0F 8D [22:17:29]process_action close_receipt done [22:17:29]requested_data is exist [22:17:29]produce_requested_data [22:17:29]requested_item fm.sn is exist - process it [22:17:29]wFMCommunicate request_size=4 [22:17:29]MH_SAM_APDU [22:17:29]CAPDU: 80 11 00 00 [22:17:29]Write to MH i2c: E2 08 00 67 12 80 11 00 00 00 00 00 00 F3 [22:17:29]Write i2c OK [22:17:29]MH_I2C_Read... [22:17:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:17:29]Read from MH i2c: E2 [22:17:29]MH_I2C_Read... [22:17:29]Read from MH i2c: E2 17 00 [22:17:29]MH_I2C_Read... [22:17:29]Read from MH i2c: E2 17 00 67 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 46 [22:17:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [22:17:29]wFMCommunicate OK [22:17:29]requested_item fd.num is exist - process it [22:17:29]SAM_PROTO_GetFieldsCounters [22:17:29]wFMCommunicate request_size=4 [22:17:29]MH_SAM_APDU [22:17:29]CAPDU: 80 13 00 00 [22:17:29]Write to MH i2c: E2 08 00 68 12 80 13 00 00 00 00 00 00 F6 [22:17:29]Write i2c OK [22:17:29]MH_I2C_Read... [22:17:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:17:29]Read from MH i2c: E2 [22:17:29]MH_I2C_Read... [22:17:29]Read from MH i2c: E2 62 00 [22:17:29]MH_I2C_Read... [22:17:29]Read from MH i2c: E2 62 00 68 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 37 97 01 00 0E 04 04 00 63 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 4E [22:17: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 37 97 01 00 0E 04 04 00 63 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 [22:17:29]wFMCommunicate OK [22:17:29]SAM_PROTO_GetFieldsCounters done [22:17:29]requested_item shift.num is exist - process it [22:17:29]requested_item shift.opened is exist - process it [22:17:29]req_shift_opened [22:17:29]FM_GetShiftState [22:17:29]SAM_PROTO_GetShiftState [22:17:29]wFMCommunicate request_size=4 [22:17:29]MH_SAM_APDU [22:17:29]CAPDU: 80 13 01 00 [22:17:29]Write to MH i2c: E2 08 00 69 12 80 13 01 00 00 00 00 00 F8 [22:17:29]Write i2c OK [22:17:29]MH_I2C_Read... [22:17:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:17:29]Read from MH i2c: E2 [22:17:29]MH_I2C_Read... [22:17:29]Read from MH i2c: E2 0E 00 [22:17:29]MH_I2C_Read... [22:17:29]Read from MH i2c: E2 0E 00 69 12 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 0B [22:17:29]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [22:17:29]wFMCommunicate OK [22:17:29]SAM_PROTO_GetShiftState done [22:17:29]FM_GetShiftState done [22:17:29]req_shift_opened done [22:17:29]requested_item shift.open_date is exist - process it [22:17:29]req_shift_open_date [22:17:29]req_shift_open_date done [22:17:29]produce_requested_data done [22:17:29]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104247,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [22:17:29]process_action_free close_receipt [22:17:29]json_value_free [22:17:29]json_value_free done [22:17:29]process_json_proto returns [22:17:29]Send response to host [22:17:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104247,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [22:17:29]free response buf [22:17:29]execute_script done [22:17:29]execute_script returns [22:17:29]free content buf [22:17:29]Sock 9.Close socket [22:17:29]Sock 9.Thread stoped [22:17:33]OFD Sender: No OFD packet to send [22:17:38]OFD Sender: No OFD packet to send [22:17:43]OFD Sender: No OFD packet to send [22:17:48]OFD Sender: No OFD packet to send [22:17:53]OFD Sender: No OFD packet to send [22:17:58]OFD Sender: No OFD packet to send [22:18:03]OFD Sender: No OFD packet to send [22:18:08]OFD Sender: No OFD packet to send [22:18:13]OFD Sender: No OFD packet to send [22:18:18]OFD Sender: No OFD packet to send [22:18:23]OFD Sender: No OFD packet to send [22:18:28]OFD Sender: No OFD packet to send [22:18:33]OFD Sender: No OFD packet to send [22:18:38]OFD Sender: No OFD packet to send [22:18:43]OFD Sender: No OFD packet to send [22:18:48]OFD Sender: No OFD packet to send [22:18:53]OFD Sender: No OFD packet to send [22:18:58]OFD Sender: No OFD packet to send [22:19:03]OFD Sender: No OFD packet to send [22:19:08]OFD Sender: No OFD packet to send [22:19:13]OFD Sender: No OFD packet to send [22:19:18]OFD Sender: No OFD packet to send [22:19:23]OFD Sender: No OFD packet to send [22:19:28]OFD Sender: No OFD packet to send [22:19:33]OFD Sender: No OFD packet to send [22:19:38]OFD Sender: No OFD packet to send [22:19:43]OFD Sender: No OFD packet to send [22:19:48]OFD Sender: No OFD packet to send [22:19:53]OFD Sender: No OFD packet to send [22:19:58]OFD Sender: No OFD packet to send [22:20:03]OFD Sender: No OFD packet to send [22:20:08]OFD Sender: No OFD packet to send [22:20:13]OFD Sender: No OFD packet to send [22:20:18]OFD Sender: No OFD packet to send [22:20:23]OFD Sender: No OFD packet to send [22:20:28]OFD Sender: No OFD packet to send [22:20:33]OFD Sender: No OFD packet to send [22:20:38]OFD Sender: No OFD packet to send [22:20:43]OFD Sender: No OFD packet to send [22:20:48]OFD Sender: No OFD packet to send [22:20:53]OFD Sender: No OFD packet to send [22:20:58]OFD Sender: No OFD packet to send [22:21:03]OFD Sender: No OFD packet to send [22:21:08]OFD Sender: No OFD packet to send [22:21:13]OFD Sender: No OFD packet to send [22:21:18]OFD Sender: No OFD packet to send [22:21:23]OFD Sender: No OFD packet to send [22:21:28]OFD Sender: No OFD packet to send [22:21:33]OFD Sender: No OFD packet to send [22:21:38]OFD Sender: No OFD packet to send [22:21:43]OFD Sender: No OFD packet to send [22:21:48]OFD Sender: No OFD packet to send [22:21:53]OFD Sender: No OFD packet to send [22:21:58]OFD Sender: No OFD packet to send [22:22:03]OFD Sender: No OFD packet to send [22:22:08]OFD Sender: No OFD packet to send [22:22:13]OFD Sender: No OFD packet to send [22:22:18]OFD Sender: No OFD packet to send [22:22:23]OFD Sender: No OFD packet to send [22:22:28]OFD Sender: No OFD packet to send [22:22:33]OFD Sender: No OFD packet to send [22:22:38]OFD Sender: No OFD packet to send [22:22:43]OFD Sender: No OFD packet to send [22:22:48]OFD Sender: No OFD packet to send [22:22:53]OFD Sender: No OFD packet to send [22:22:58]OFD Sender: No OFD packet to send [22:23:03]OFD Sender: No OFD packet to send [22:23:08]OFD Sender: No OFD packet to send [22:23:14]OFD Sender: No OFD packet to send [22:23:19]OFD Sender: No OFD packet to send [22:23:24]OFD Sender: No OFD packet to send [22:23:29]OFD Sender: No OFD packet to send [22:23:34]OFD Sender: No OFD packet to send [22:23:35]accept exits with 7 [22:23:35]New connection [22:23:35]New thread 3067473252 created [22:23:35]Thread 3067616612 joined [22:23:35]Waiting for new connection... [22:23:35] Sock 7.Parse request [22:23:35]Sock 7.Check first char [22:23:35]Sock 7.First char is OK [22:23:35]request: POST /json_proto HTTP/1.0 [22:23:35]Method: POST [22:23:35]URL: /json_proto [22:23:35]Method is POST - this is cgi request [22:23:35]url: /json_proto [22:23:35]query_string will be loaded in cgi processing [22:23:35]execute_cgi json_proto POST (null) [22:23:35]execute_cgi path=json_proto method=POST [22:23:35]POST find Content-Length [22:23:35]Host: 172.17.38.133:8080 [22:23:35]Content-Length: 677 [22:23:35]Content-Type: application/json [22:23:35] [22:23:35]POST finish read [22:23:35]Found Content-Length = 677 [22:23:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673736", "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" ] } } [22:23:35]execute_script... [22:23: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)673736", "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" ] } } [22:23:35]POST & json_proto [22:23:35]process_json_proto [22:23:35]json parsed OK: [22:23:35]protocol is kg_v1.0 [22:23:35]action value=close_receipt [22:23:35]process_action close_receipt [22:23:35]cmd_close_receipt [22:23:35]MH_GetDate [22:23:35]Write to MH i2c: F0 00 00 6A 12 6B [22:23:35]Write i2c OK [22:23:35]MH_I2C_Read... [22:23:35]Read from MH i2c: F0 [22:23:35]MH_I2C_Read... [22:23:35]Read from MH i2c: F0 09 00 [22:23:35]MH_I2C_Read... [22:23:35]Read from MH i2c: F0 09 00 6A 12 00 69 FD 75 66 BD 8F 7C 64 E1 [22:23:35]GetLastDocTimeStamp 1719008247 [22:23:35]current date 1719008617 [22:23:35]FM_GetShiftState [22:23:35]SAM_PROTO_GetShiftState [22:23:35]wFMCommunicate request_size=4 [22:23:35]MH_SAM_APDU [22:23:35]CAPDU: 80 13 01 00 [22:23:35]Write to MH i2c: E2 08 00 6B 12 80 13 01 00 00 00 00 00 FA [22:23:35]Write i2c OK [22:23:35]MH_I2C_Read... [22:23:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:23:35]Read from MH i2c: E2 [22:23:35]MH_I2C_Read... [22:23:35]Read from MH i2c: E2 0E 00 [22:23:35]MH_I2C_Read... [22:23:35]Read from MH i2c: E2 0E 00 6B 12 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 0D [22:23:35]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [22:23:35]wFMCommunicate OK [22:23:35]SAM_PROTO_GetShiftState done [22:23:35]FM_GetShiftState done [22:23:35]opened in 1718929509 [22:23:35]opened+sec_in_day 1719015909 [22:23:35]quantity*price = 60025 [22:23:35]sum+1 = 60027 [22:23: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 СНО: Общий режим Чек 171 21.06.2024 22:23 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104248 ФПД: 208819107243194 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T222337&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104248&fm=208819107243194&tin=02508201610067®Number=0000000000092785&sum=60000 [22:23:36]StoreToDocumentArchive [22:23:36]shift 355 fd 104248 [22:23:36]save to /storage/0355/doc_00104248 [22:23:36]save last doc name /storage/0355/doc_00104248 to /storage/kkm_last_doc_name [22:23:36]save OK [22:23:36]Clear old archive folders... [22:23:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:23:36]tlvbuf is 0067BE40 [22:23:36]SAM_PROTO_ClearQueue [22:23:36]wFMCommunicate request_size=4 [22:23:36]MH_SAM_APDU [22:23:36]CAPDU: 80 09 00 00 [22:23:36]Write to MH i2c: E2 08 00 78 12 80 09 00 00 00 00 00 00 FC [22:23:36]Write i2c OK [22:23:36]MH_I2C_Read... [22:23:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:23:36]Read from MH i2c: E2 [22:23:36]MH_I2C_Read... [22:23:36]Read from MH i2c: E2 03 00 [22:23:36]MH_I2C_Read... [22:23:36]Read from MH i2c: E2 03 00 78 12 00 90 00 FE [22:23:36]RAPDU: 90 00 [22:23:36]wFMCommunicate OK [22:23:36]SAM_PROTO_ClearQueue done [22:23:36]KKMCreateOFDPacket [22:23:36]OFDProtocolAddRootSTLVToBuf [22:23:36]FM_MakeSignedData [22:23:36]FM_MakeSignedData [22:23:36]SAM_PROTO_SignData [22:23:36]wFMCommunicate request_size=4 [22:23:36]MH_SAM_APDU [22:23:36]CAPDU: 80 0D 01 02 [22:23:36]Write to MH i2c: E2 08 00 79 12 80 0D 01 02 00 00 00 00 04 [22:23:36]Write i2c OK [22:23:36]MH_I2C_Read... [22:23:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:23:36]Read from MH i2c: E2 [22:23:36]MH_I2C_Read... [22:23:36]Read from MH i2c: E2 03 00 [22:23:36]MH_I2C_Read... [22:23:36]Read from MH i2c: E2 03 00 79 12 00 90 00 FF [22:23:36]RAPDU: 90 00 [22:23:36]wFMCommunicate OK [22:23:36]wFMCommunicate request_size=255 [22:23:36]MH_SAM_APDU [22:23: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 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 AB 00 00 00 F4 03 04 00 69 FD 75 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 38 97 01 00 35 04 06 00 BD [22:23:36]Write to MH i2c: E2 02 01 7A 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 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 AB 00 00 00 F4 03 04 00 69 FD 75 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 38 97 01 00 35 04 06 00 BD 00 00 78 [22:23:36]Write i2c OK [22:23:36]MH_I2C_Read... [22:23:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:23:37]Read from MH i2c: E2 [22:23:37]MH_I2C_Read... [22:23:37]Read from MH i2c: E2 03 00 [22:23:37]MH_I2C_Read... [22:23:37]Read from MH i2c: E2 03 00 7A 12 00 90 00 00 [22:23:37]RAPDU: 90 00 [22:23:37]wFMCommunicate OK [22:23:37]wFMCommunicate request_size=10 [22:23:37]MH_SAM_APDU [22:23:37]CAPDU: 80 0D 02 02 05 EB 7C B5 A4 BA [22:23:37]Write to MH i2c: E2 0D 00 7B 12 80 0D 02 02 05 00 EB 7C B5 A4 BA 00 00 8B [22:23:37]Write i2c OK [22:23:37]MH_I2C_Read... [22:23:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:23:37]Read from MH i2c: E2 [22:23:37]MH_I2C_Read... [22:23:37]Read from MH i2c: E2 03 00 [22:23:37]MH_I2C_Read... [22:23:37]Read from MH i2c: E2 03 00 7B 12 00 90 00 01 [22:23:37]RAPDU: 90 00 [22:23:37]wFMCommunicate OK [22:23:37]wFMCommunicate request_size=4 [22:23:37]MH_SAM_APDU [22:23:37]CAPDU: 80 0D 03 02 [22:23:37]Write to MH i2c: E2 08 00 7C 12 80 0D 03 02 00 00 00 00 09 [22:23:37]Write i2c OK [22:23:37]MH_I2C_Read... [22:23:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:23:37]Read from MH i2c: E2 [22:23:37]MH_I2C_Read... [22:23:37]Read from MH i2c: E2 0B 00 [22:23:37]MH_I2C_Read... [22:23:37]Read from MH i2c: E2 0B 00 7C 12 00 E9 20 62 ED 09 A8 97 EA 90 00 94 [22:23:37]RAPDU: E9 20 62 ED 09 A8 97 EA 90 00 [22:23:37]wFMCommunicate OK [22:23:37]SAM_PROTO_SignData done [22:23:37]FM_MakeSignedData done [22:23:37]CreateOFDProtocolMessage [22:23:37]wFMCommunicate request_size=4 [22:23:37]MH_SAM_APDU [22:23:37]CAPDU: 80 11 00 00 [22:23:37]Write to MH i2c: E2 08 00 7D 12 80 11 00 00 00 00 00 00 09 [22:23:37]Write i2c OK [22:23:37]MH_I2C_Read... [22:23:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:23:37]Read from MH i2c: E2 [22:23:37]MH_I2C_Read... [22:23:37]Read from MH i2c: E2 17 00 [22:23:37]MH_I2C_Read... [22:23:37]Read from MH i2c: E2 17 00 7D 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 5C [22:23:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [22:23:37]wFMCommunicate OK [22:23:37]CreateOFDProtocolMessage done [22:23:37]OFDSenderStorePacket 104248 [22:23:37]StoreOFDPacket docnum=104248 [22:23: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 1E 9F 07 01 F6 B9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 AB 00 00 00 F4 03 04 00 69 FD 75 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 38 97 01 00 35 04 06 00 BD EB 7C B5 A4 BA E9 20 62 ED 09 A8 97 EA [22:23:37]CheckFolder [22:23:37]dirname=/storage/ofd_packets [22:23:37]CheckFolder done [22:23:37]ProducePacketName [22:23:37]name=ofd_packets/00104248 [22:23:37]NVStorageSaveData ofd_packets/00104248 [22:23:37]File name is /storage/ofd_packets/00104248 [22:23:37]Write 301 bytes [22:23:37]NVStorageSaveData done [22:23:37]OFDSenderStorePacket done [22:23:37]KKMCreateOFDPacket done [22:23:37]NVStorageSaveData kkm_last_timestamp [22:23:37]File name is /storage/kkm_last_timestamp [22:23:37]Write 4 bytes [22:23:37]NVStorageSaveData done [22:23:37]ExternCall_PrintAddStr [22:23:37]wPrintStart [22:23:37]Write to MH i2c: 01 00 00 7E 12 90 [22:23:37]Write i2c OK [22:23:37]MH_I2C_Read... [22:23:37]Read from MH i2c: 01 [22:23:37]MH_I2C_Read... [22:23:37]Read from MH i2c: 01 07 00 [22:23:37]MH_I2C_Read... [22:23:37]Read from MH i2c: 01 07 00 7E 12 00 00 00 00 00 FF 0F A5 [22:23:37]RasterBufferAndPrint [22:23:37]line Счет N : (1)673736 [22:23:37]line ИНН: 02508201610067 [22:23:37]line Контрольно-Кассовый Чек [22:23:37]line ПРОДАЖА [22:23:37]line ТРК (МРК, ГНК) : 32 [22:23:37]line Товар: 2710124130 [22:23:37]line Аи-92-К-5 [22:23:37]line 9.040 * 66.40 [22:23:37]line = 600.26 [22:23:37]line НДС 12% НСП 1% [22:23:37]line > о реализуемом товаре [22:23:37]line ОКРУГЛЕНИЕ: -0.26 [22:23:37]line ИТОГО: 600.00 [22:23:37]line Внесено: 600.00 [22:23:37]line СДАЧА: 0.00 [22:23:37]line НСП 1% : 5.31 [22:23:37]line НДС 12% : 63.74 [22:23:37]line Наличными: 600.00 [22:23:37]line Безнал.: 0.00 [22:23:37]line Место: АЗС № 120 "Партнер Нефть" [22:23:37]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [22:23:37]line СНО: Общий режим [22:23:37]line Чек 171 21.06.2024 22:23 [22:23:37]line Смена: 355 ФФД: 1.0 [22:23:37]line ЗНМ: 0300000164 [22:23:37]line РНМ: 0000000000092785 [22:23:37]line Версия ККМ: 001 [22:23:37]line ФМ: 0000000000875093 [22:23:37]line ФД: 104248 [22:23:37]line ФПД: 208819107243194 [22:23:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T222337&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104248&fm=208819107243194&tin=02508201610067®Number=0000000000092785&sum=60000 [22:23:37]OFD Sender: Processing packet 104248 [packets to send 17, broken 16] [22:23:37]ProducePacketName [22:23:37]name=ofd_packets/00104248 [22:23:37]OFD Sender: To server: pG, [22:23:37]CommunicateWithHost lk.salyk.kg:30040 [22:23:37]ConnectInit lk.salyk.kg [22:23:37]written 0, free lines is 4095 [22:23:37]Connected sock=10 [22:23: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 1E 9F 07 01 F6 B9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 AB 00 00 00 F4 03 04 00 69 FD 75 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 38 97 01 00 35 04 06 00 BD EB 7C B5 A4 BA E9 20 62 ED 09 A8 97 EA [22:23: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 51 94 47 00 51 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 38 97 01 00 F4 03 04 00 EA A3 75 66 B6 04 01 00 00 E4 0D B6 59 2A C2 57 AE [22:23:37]CommunicateWithHost err = 0 [22:23:37]CheckOFDResponse [22:23:37]1017 (14) - 77093643461234 [22:23:37]1041 (16) - 0000000000875093 [22:23:37]1040 (4) - 104248 [22:23:37]1012 (4) - 21.06.2024 16:01 [22:23:37]1206 (1) - 0 [22:23:37]OFD Sender: Remove packet 104248 [22:23:37]ProducePacketName [22:23:37]name=ofd_packets/00104248 [22:23:37]NVStorageDeleteData [22:23:38]Write to MH i2c: 01 00 00 A9 12 BB [22:23:38]Write i2c OK [22:23:38]MH_I2C_Read... [22:23:38]Read from MH i2c: 01 [22:23:38]MH_I2C_Read... [22:23:38]Read from MH i2c: 01 07 00 [22:23:38]MH_I2C_Read... [22:23:38]Read from MH i2c: 01 07 00 A9 12 00 00 00 00 00 D4 0C A2 [22:23:38]RasterBufferAndPrint [22:23:38]line [22:23:38]line [22:23:38]line [22:23:38]line [22:23:38]line [22:23:38]written 0, free lines is 3292 [22:23:38]MH_Cut [22:23:38]Write to MH i2c: D1 01 00 B0 12 01 94 [22:23:38]Write i2c OK [22:23:38]MH_I2C_Read... [22:23:38]Read from MH i2c: D1 [22:23:38]MH_I2C_Read... [22:23:38]Read from MH i2c: D1 01 00 [22:23:38]MH_I2C_Read... [22:23:38]Read from MH i2c: D1 01 00 B0 12 00 93 [22:23:38]Write to MH i2c: 01 00 00 B1 12 C3 [22:23:38]Write i2c OK [22:23:38]MH_I2C_Read... [22:23:38]OFD Sender: No OFD packet to send [22:23:38]*** Cut start [22:23:38]*** Partial cut [22:23:38]*** CUTSNS_PIN = 1 [22:23:38]*** CUTSNS_PIN = 0 [22:23:39]*** Brake cut motor [22:23:39]Read from MH i2c: 01 [22:23:39]MH_I2C_Read... [22:23:39]*** Stop cut motor [22:23:39]*** Cut end [22:23:39]Read from MH i2c: 01 07 00 [22:23:39]MH_I2C_Read... [22:23:39]Read from MH i2c: 01 07 00 B1 12 00 00 00 00 00 FF 0F D8 [22:23:39]process_action close_receipt done [22:23:39]requested_data is exist [22:23:39]produce_requested_data [22:23:39]requested_item fm.sn is exist - process it [22:23:39]wFMCommunicate request_size=4 [22:23:39]MH_SAM_APDU [22:23:39]CAPDU: 80 11 00 00 [22:23:39]Write to MH i2c: E2 08 00 B2 12 80 11 00 00 00 00 00 00 3E [22:23:39]Write i2c OK [22:23:39]MH_I2C_Read... [22:23:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:23:39]Read from MH i2c: E2 [22:23:39]MH_I2C_Read... [22:23:39]Read from MH i2c: E2 17 00 [22:23:39]MH_I2C_Read... [22:23:39]Read from MH i2c: E2 17 00 B2 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 91 [22:23:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [22:23:39]wFMCommunicate OK [22:23:39]requested_item fd.num is exist - process it [22:23:39]SAM_PROTO_GetFieldsCounters [22:23:39]wFMCommunicate request_size=4 [22:23:39]MH_SAM_APDU [22:23:39]CAPDU: 80 13 00 00 [22:23:39]Write to MH i2c: E2 08 00 B3 12 80 13 00 00 00 00 00 00 41 [22:23:39]Write i2c OK [22:23:39]MH_I2C_Read... [22:23:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:23:39]Read from MH i2c: E2 [22:23:39]MH_I2C_Read... [22:23:39]Read from MH i2c: E2 62 00 [22:23:39]MH_I2C_Read... [22:23:39]Read from MH i2c: E2 62 00 B3 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 38 97 01 00 0E 04 04 00 63 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 9D [22:23: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 38 97 01 00 0E 04 04 00 63 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 [22:23:39]wFMCommunicate OK [22:23:39]SAM_PROTO_GetFieldsCounters done [22:23:39]requested_item shift.num is exist - process it [22:23:39]requested_item shift.opened is exist - process it [22:23:39]req_shift_opened [22:23:39]FM_GetShiftState [22:23:39]SAM_PROTO_GetShiftState [22:23:39]wFMCommunicate request_size=4 [22:23:39]MH_SAM_APDU [22:23:39]CAPDU: 80 13 01 00 [22:23:39]Write to MH i2c: E2 08 00 B4 12 80 13 01 00 00 00 00 00 43 [22:23:39]Write i2c OK [22:23:39]MH_I2C_Read... [22:23:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:23:39]Read from MH i2c: E2 [22:23:39]MH_I2C_Read... [22:23:39]Read from MH i2c: E2 0E 00 [22:23:39]MH_I2C_Read... [22:23:39]Read from MH i2c: E2 0E 00 B4 12 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 56 [22:23:39]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [22:23:39]wFMCommunicate OK [22:23:39]SAM_PROTO_GetShiftState done [22:23:39]FM_GetShiftState done [22:23:39]req_shift_opened done [22:23:39]requested_item shift.open_date is exist - process it [22:23:39]req_shift_open_date [22:23:39]req_shift_open_date done [22:23:39]produce_requested_data done [22:23:39]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104248,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [22:23:39]process_action_free close_receipt [22:23:39]json_value_free [22:23:39]json_value_free done [22:23:39]process_json_proto returns [22:23:39]Send response to host [22:23:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104248,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [22:23:39]free response buf [22:23:39]execute_script done [22:23:39]execute_script returns [22:23:39]free content buf [22:23:39]Sock 7.Close socket [22:23:39]Sock 7.Thread stoped [22:23:43]OFD Sender: No OFD packet to send [22:23:48]OFD Sender: No OFD packet to send [22:23:51]accept exits with 9 [22:23:51]New connection [22:23:51]New thread 3067616612 created [22:23:51]Thread 3067473252 joined [22:23:51]Waiting for new connection... [22:23:51] Sock 9.Parse request [22:23:51]Sock 9.Check first char [22:23:51]Sock 9.First char is OK [22:23:51]request: POST /json_proto HTTP/1.0 [22:23:51]Method: POST [22:23:51]URL: /json_proto [22:23:51]Method is POST - this is cgi request [22:23:51]url: /json_proto [22:23:51]query_string will be loaded in cgi processing [22:23:51]execute_cgi json_proto POST (null) [22:23:51]execute_cgi path=json_proto method=POST [22:23:51]POST find Content-Length [22:23:51]Host: 172.17.38.133:8080 [22:23:51]Content-Length: 677 [22:23:51]Content-Type: application/json [22:23:51] [22:23:51]POST finish read [22:23:51]Found Content-Length = 677 [22:23:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673737", "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.640, "sum" : 640.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 640.00, "total" : 640.00, "payments": [ { "type": 0, "sum" : 640.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:23:51]execute_script... [22:23: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)673737", "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.640, "sum" : 640.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 640.00, "total" : 640.00, "payments": [ { "type": 0, "sum" : 640.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:23:51]POST & json_proto [22:23:51]process_json_proto [22:23:51]json parsed OK: [22:23:51]protocol is kg_v1.0 [22:23:51]action value=close_receipt [22:23:51]process_action close_receipt [22:23:51]cmd_close_receipt [22:23:51]MH_GetDate [22:23:51]Write to MH i2c: F0 00 00 B5 12 B6 [22:23:51]Write i2c OK [22:23:51]MH_I2C_Read... [22:23:51]Read from MH i2c: F0 [22:23:51]MH_I2C_Read... [22:23:51]Read from MH i2c: F0 09 00 [22:23:51]MH_I2C_Read... [22:23:51]Read from MH i2c: F0 09 00 B5 12 00 79 FD 75 66 BD 8F 7C 64 3C [22:23:51]GetLastDocTimeStamp 1719008617 [22:23:51]current date 1719008633 [22:23:51]FM_GetShiftState [22:23:51]SAM_PROTO_GetShiftState [22:23:51]wFMCommunicate request_size=4 [22:23:51]MH_SAM_APDU [22:23:51]CAPDU: 80 13 01 00 [22:23:51]Write to MH i2c: E2 08 00 B6 12 80 13 01 00 00 00 00 00 45 [22:23:51]Write i2c OK [22:23:51]MH_I2C_Read... [22:23:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:23:51]Read from MH i2c: E2 [22:23:51]MH_I2C_Read... [22:23:51]Read from MH i2c: E2 0E 00 [22:23:51]MH_I2C_Read... [22:23:51]Read from MH i2c: E2 0E 00 B6 12 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 58 [22:23:51]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [22:23:51]wFMCommunicate OK [22:23:51]SAM_PROTO_GetShiftState done [22:23:51]FM_GetShiftState done [22:23:51]opened in 1718929509 [22:23:51]opened+sec_in_day 1719015909 [22:23:51]quantity*price = 64009 [22:23:51]sum+1 = 64011 [22:23:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 640.00 Внесено: 640.00 СДАЧА: 0.00 НСП 1% : 5.66 НДС 12% : 67.97 Наличными: 640.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 172 21.06.2024 22:23 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104249 ФПД: 227235791549451 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T222353&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104249&fm=227235791549451&tin=02508201610067®Number=0000000000092785&sum=64000 [22:23:52]StoreToDocumentArchive [22:23:52]shift 355 fd 104249 [22:23:52]save to /storage/0355/doc_00104249 [22:23:52]save last doc name /storage/0355/doc_00104249 to /storage/kkm_last_doc_name [22:23:52]save OK [22:23:52]Clear old archive folders... [22:23:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:23:52]tlvbuf is 00684880 [22:23:52]SAM_PROTO_ClearQueue [22:23:52]wFMCommunicate request_size=4 [22:23:52]MH_SAM_APDU [22:23:52]CAPDU: 80 09 00 00 [22:23:52]Write to MH i2c: E2 08 00 C3 12 80 09 00 00 00 00 00 00 47 [22:23:52]Write i2c OK [22:23:52]MH_I2C_Read... [22:23:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:23:52]Read from MH i2c: E2 [22:23:52]MH_I2C_Read... [22:23:52]Read from MH i2c: E2 03 00 [22:23:52]MH_I2C_Read... [22:23:52]Read from MH i2c: E2 03 00 C3 12 00 90 00 49 [22:23:52]RAPDU: 90 00 [22:23:52]wFMCommunicate OK [22:23:52]SAM_PROTO_ClearQueue done [22:23:52]KKMCreateOFDPacket [22:23:52]OFDProtocolAddRootSTLVToBuf [22:23:52]FM_MakeSignedData [22:23:52]FM_MakeSignedData [22:23:52]SAM_PROTO_SignData [22:23:52]wFMCommunicate request_size=4 [22:23:52]MH_SAM_APDU [22:23:52]CAPDU: 80 0D 01 02 [22:23:52]Write to MH i2c: E2 08 00 C4 12 80 0D 01 02 00 00 00 00 4F [22:23:52]Write i2c OK [22:23:52]MH_I2C_Read... [22:23:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:23:52]Read from MH i2c: E2 [22:23:52]MH_I2C_Read... [22:23:52]Read from MH i2c: E2 03 00 [22:23:52]MH_I2C_Read... [22:23:52]Read from MH i2c: E2 03 00 C4 12 00 90 00 4A [22:23:52]RAPDU: 90 00 [22:23:52]wFMCommunicate OK [22:23:52]wFMCommunicate request_size=255 [22:23:52]MH_SAM_APDU [22:23: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 A8 25 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 0A FA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 FA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8D 1A 00 00 00 00 07 04 06 00 00 FA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 79 FD 75 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 39 97 01 00 35 04 06 00 CE [22:23:52]Write to MH i2c: E2 02 01 C5 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 A8 25 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 0A FA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 FA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8D 1A 00 00 00 00 07 04 06 00 00 FA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 79 FD 75 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 39 97 01 00 35 04 06 00 CE 00 00 0C [22:23:52]Write i2c OK [22:23:52]MH_I2C_Read... [22:23:52]Read from MH i2c: E2 [22:23:52]MH_I2C_Read... [22:23:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:23:52]Read from MH i2c: E2 03 00 [22:23:52]MH_I2C_Read... [22:23:52]Read from MH i2c: E2 03 00 C5 12 00 90 00 4B [22:23:52]RAPDU: 90 00 [22:23:52]wFMCommunicate OK [22:23:52]wFMCommunicate request_size=10 [22:23:52]MH_SAM_APDU [22:23:52]CAPDU: 80 0D 02 02 05 AB 74 A2 B4 0B [22:23:52]Write to MH i2c: E2 0D 00 C6 12 80 0D 02 02 05 00 AB 74 A2 B4 0B 00 00 DC [22:23:52]Write i2c OK [22:23:52]MH_I2C_Read... [22:23:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:23:52]Read from MH i2c: E2 [22:23:52]MH_I2C_Read... [22:23:52]Read from MH i2c: E2 03 00 [22:23:52]MH_I2C_Read... [22:23:52]Read from MH i2c: E2 03 00 C6 12 00 90 00 4C [22:23:52]RAPDU: 90 00 [22:23:52]wFMCommunicate OK [22:23:52]wFMCommunicate request_size=4 [22:23:52]MH_SAM_APDU [22:23:52]CAPDU: 80 0D 03 02 [22:23:52]Write to MH i2c: E2 08 00 C7 12 80 0D 03 02 00 00 00 00 54 [22:23:52]Write i2c OK [22:23:52]MH_I2C_Read... [22:23:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:23:52]Read from MH i2c: E2 [22:23:52]MH_I2C_Read... [22:23:52]Read from MH i2c: E2 0B 00 [22:23:52]MH_I2C_Read... [22:23:52]Read from MH i2c: E2 0B 00 C7 12 00 67 86 3D DD F6 8A 97 DC 90 00 4F [22:23:52]RAPDU: 67 86 3D DD F6 8A 97 DC 90 00 [22:23:52]wFMCommunicate OK [22:23:52]SAM_PROTO_SignData done [22:23:52]FM_MakeSignedData done [22:23:52]CreateOFDProtocolMessage [22:23:52]wFMCommunicate request_size=4 [22:23:52]MH_SAM_APDU [22:23:52]CAPDU: 80 11 00 00 [22:23:52]Write to MH i2c: E2 08 00 C8 12 80 11 00 00 00 00 00 00 54 [22:23:52]Write i2c OK [22:23:52]MH_I2C_Read... [22:23:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:23:52]Read from MH i2c: E2 [22:23:52]MH_I2C_Read... [22:23:52]Read from MH i2c: E2 17 00 [22:23:52]MH_I2C_Read... [22:23:52]Read from MH i2c: E2 17 00 C8 12 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:23: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:23:52]wFMCommunicate OK [22:23:52]CreateOFDProtocolMessage done [22:23:52]OFDSenderStorePacket 104249 [22:23:52]StoreOFDPacket docnum=104249 [22:23: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 1E 4E 07 01 9A 7B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 25 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 0A FA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 FA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8D 1A 00 00 00 00 07 04 06 00 00 FA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 79 FD 75 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 39 97 01 00 35 04 06 00 CE AB 74 A2 B4 0B 67 86 3D DD F6 8A 97 DC [22:23:52]CheckFolder [22:23:52]dirname=/storage/ofd_packets [22:23:52]CheckFolder done [22:23:52]ProducePacketName [22:23:52]name=ofd_packets/00104249 [22:23:52]NVStorageSaveData ofd_packets/00104249 [22:23:52]File name is /storage/ofd_packets/00104249 [22:23:52]Write 301 bytes [22:23:52]NVStorageSaveData done [22:23:52]OFDSenderStorePacket done [22:23:52]KKMCreateOFDPacket done [22:23:52]NVStorageSaveData kkm_last_timestamp [22:23:52]File name is /storage/kkm_last_timestamp [22:23:52]Write 4 bytes [22:23:52]NVStorageSaveData done [22:23:52]ExternCall_PrintAddStr [22:23:52]wPrintStart [22:23:52]Write to MH i2c: 01 00 00 C9 12 DB [22:23:52]Write i2c OK [22:23:52]MH_I2C_Read... [22:23:52]Read from MH i2c: 01 [22:23:52]MH_I2C_Read... [22:23:52]Read from MH i2c: 01 07 00 [22:23:52]MH_I2C_Read... [22:23:52]Read from MH i2c: 01 07 00 C9 12 00 00 00 00 00 FF 0F F0 [22:23:52]RasterBufferAndPrint [22:23:52]line Счет N : (1)673737 [22:23:52]line ИНН: 02508201610067 [22:23:52]line Контрольно-Кассовый Чек [22:23:52]line ПРОДАЖА [22:23:52]line ТРК (МРК, ГНК) : 42 [22:23:52]line Товар: 2710124130 [22:23:52]line Аи-92-К-5 [22:23:52]line 9.640 * 66.40 [22:23:52]line = 640.10 [22:23:52]line НДС 12% НСП 1% [22:23:52]line > о реализуемом товаре [22:23:52]line ОКРУГЛЕНИЕ: -0.10 [22:23:52]line ИТОГО: 640.00 [22:23:52]line Внесено: 640.00 [22:23:52]line СДАЧА: 0.00 [22:23:52]line НСП 1% : 5.66 [22:23:52]line НДС 12% : 67.97 [22:23:52]line Наличными: 640.00 [22:23:52]line Безнал.: 0.00 [22:23:52]line Место: АЗС № 120 "Партнер Нефть" [22:23:52]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [22:23:52]line СНО: Общий режим [22:23:52]line Чек 172 21.06.2024 22:23 [22:23:52]line Смена: 355 ФФД: 1.0 [22:23:52]line ЗНМ: 0300000164 [22:23:52]line РНМ: 0000000000092785 [22:23:52]line Версия ККМ: 001 [22:23:53]line ФМ: 0000000000875093 [22:23:53]line ФД: 104249 [22:23:53]line ФПД: 227235791549451 [22:23:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T222353&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104249&fm=227235791549451&tin=02508201610067®Number=0000000000092785&sum=64000 [22:23:53]OFD Sender: Processing packet 104249 [packets to send 17, broken 16] [22:23:53]ProducePacketName [22:23:53]name=ofd_packets/00104249 [22:23:53]OFD Sender: To server: pG, [22:23:53]CommunicateWithHost lk.salyk.kg:30040 [22:23:53]ConnectInit lk.salyk.kg [22:23:53]written 0, free lines is 4095 [22:23:53]Connected sock=10 [22:23: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 1E 4E 07 01 9A 7B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 25 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 0A FA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 FA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8D 1A 00 00 00 00 07 04 06 00 00 FA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 79 FD 75 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 39 97 01 00 35 04 06 00 CE AB 74 A2 B4 0B 67 86 3D DD F6 8A 97 DC [22:23: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 E9 64 47 00 81 6D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 39 97 01 00 F4 03 04 00 FA A3 75 66 B6 04 01 00 00 DC 77 98 CF 14 86 BF 2B [22:23:53]CommunicateWithHost err = 0 [22:23:53]CheckOFDResponse [22:23:53]1017 (14) - 77093643461234 [22:23:53]1041 (16) - 0000000000875093 [22:23:53]1040 (4) - 104249 [22:23:53]1012 (4) - 21.06.2024 16:02 [22:23:53]1206 (1) - 0 [22:23:53]OFD Sender: Remove packet 104249 [22:23:53]ProducePacketName [22:23:53]name=ofd_packets/00104249 [22:23:53]NVStorageDeleteData [22:23:53]Write to MH i2c: 01 00 00 F4 12 06 [22:23:53]Write i2c OK [22:23:53]MH_I2C_Read... [22:23:53]Read from MH i2c: 01 [22:23:53]MH_I2C_Read... [22:23:53]Read from MH i2c: 01 07 00 [22:23:53]MH_I2C_Read... [22:23:53]Read from MH i2c: 01 07 00 F4 12 00 00 00 00 00 EA 0C 03 [22:23:53]RasterBufferAndPrint [22:23:53]line [22:23:53]line [22:23:53]line [22:23:53]line [22:23:53]line [22:23:53]written 0, free lines is 3312 [22:23:53]MH_Cut [22:23:53]Write to MH i2c: D1 01 00 FB 12 01 DF [22:23:53]Write i2c OK [22:23:53]MH_I2C_Read... [22:23:53]Read from MH i2c: D1 [22:23:53]MH_I2C_Read... [22:23:53]Read from MH i2c: D1 01 00 [22:23:53]MH_I2C_Read... [22:23:53]Read from MH i2c: D1 01 00 FB 12 00 DE [22:23:53]Write to MH i2c: 01 00 00 FC 12 0E [22:23:53]Write i2c OK [22:23:53]MH_I2C_Read... [22:23:54]OFD Sender: No OFD packet to send [22:23:54]*** Cut start [22:23:54]*** Partial cut [22:23:54]*** CUTSNS_PIN = 1 [22:23:54]*** CUTSNS_PIN = 0 [22:23:54]*** Brake cut motor [22:23:55]Read from MH i2c: 01 [22:23:55]MH_I2C_Read... [22:23:55]*** Stop cut motor [22:23:55]*** Cut end [22:23:55]Read from MH i2c: 01 07 00 [22:23:55]MH_I2C_Read... [22:23:55]Read from MH i2c: 01 07 00 FC 12 00 00 00 00 00 FF 0F 23 [22:23:55]process_action close_receipt done [22:23:55]requested_data is exist [22:23:55]produce_requested_data [22:23:55]requested_item fm.sn is exist - process it [22:23:55]wFMCommunicate request_size=4 [22:23:55]MH_SAM_APDU [22:23:55]CAPDU: 80 11 00 00 [22:23:55]Write to MH i2c: E2 08 00 FD 12 80 11 00 00 00 00 00 00 89 [22:23:55]Write i2c OK [22:23:55]MH_I2C_Read... [22:23:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:23:55]Read from MH i2c: E2 [22:23:55]MH_I2C_Read... [22:23:55]Read from MH i2c: E2 17 00 [22:23:55]MH_I2C_Read... [22:23:55]Read from MH i2c: E2 17 00 FD 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 DC [22:23: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:23:55]wFMCommunicate OK [22:23:55]requested_item fd.num is exist - process it [22:23:55]SAM_PROTO_GetFieldsCounters [22:23:55]wFMCommunicate request_size=4 [22:23:55]MH_SAM_APDU [22:23:55]CAPDU: 80 13 00 00 [22:23:55]Write to MH i2c: E2 08 00 FE 12 80 13 00 00 00 00 00 00 8C [22:23:55]Write i2c OK [22:23:55]MH_I2C_Read... [22:23:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:23:55]Read from MH i2c: E2 [22:23:55]MH_I2C_Read... [22:23:55]Read from MH i2c: E2 62 00 [22:23:55]MH_I2C_Read... [22:23:55]Read from MH i2c: E2 62 00 FE 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 39 97 01 00 0E 04 04 00 63 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 EC [22:23: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 39 97 01 00 0E 04 04 00 63 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 [22:23:55]wFMCommunicate OK [22:23:55]SAM_PROTO_GetFieldsCounters done [22:23:55]requested_item shift.num is exist - process it [22:23:55]requested_item shift.opened is exist - process it [22:23:55]req_shift_opened [22:23:55]FM_GetShiftState [22:23:55]SAM_PROTO_GetShiftState [22:23:55]wFMCommunicate request_size=4 [22:23:55]MH_SAM_APDU [22:23:55]CAPDU: 80 13 01 00 [22:23:55]Write to MH i2c: E2 08 00 FF 12 80 13 01 00 00 00 00 00 8E [22:23:55]Write i2c OK [22:23:55]MH_I2C_Read... [22:23:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:23:55]Read from MH i2c: E2 [22:23:55]MH_I2C_Read... [22:23:55]Read from MH i2c: E2 0E 00 [22:23:55]MH_I2C_Read... [22:23:55]Read from MH i2c: E2 0E 00 FF 12 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 A1 [22:23:55]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [22:23:55]wFMCommunicate OK [22:23:55]SAM_PROTO_GetShiftState done [22:23:55]FM_GetShiftState done [22:23:55]req_shift_opened done [22:23:55]requested_item shift.open_date is exist - process it [22:23:55]req_shift_open_date [22:23:55]req_shift_open_date done [22:23:55]produce_requested_data done [22:23:55]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104249,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [22:23:55]process_action_free close_receipt [22:23:55]json_value_free [22:23:55]json_value_free done [22:23:55]process_json_proto returns [22:23:55]Send response to host [22:23:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104249,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [22:23:55]free response buf [22:23:55]execute_script done [22:23:55]execute_script returns [22:23:55]free content buf [22:23:55]Sock 9.Close socket [22:23:55]Sock 9.Thread stoped [22:23:59]OFD Sender: No OFD packet to send [22:24:04]OFD Sender: No OFD packet to send [22:24:09]OFD Sender: No OFD packet to send [22:24:14]OFD Sender: No OFD packet to send [22:24:19]OFD Sender: No OFD packet to send [22:24:24]OFD Sender: No OFD packet to send [22:24:29]OFD Sender: No OFD packet to send [22:24:34]OFD Sender: No OFD packet to send [22:24:39]OFD Sender: No OFD packet to send [22:24:44]OFD Sender: No OFD packet to send [22:24:49]OFD Sender: No OFD packet to send [22:24:54]OFD Sender: No OFD packet to send [22:24:59]OFD Sender: No OFD packet to send [22:25:04]OFD Sender: No OFD packet to send [22:25:09]OFD Sender: No OFD packet to send [22:25:14]OFD Sender: No OFD packet to send [22:25:19]OFD Sender: No OFD packet to send [22:25:24]OFD Sender: No OFD packet to send [22:25:29]OFD Sender: No OFD packet to send [22:25:34]OFD Sender: No OFD packet to send [22:25:39]OFD Sender: No OFD packet to send [22:25:44]OFD Sender: No OFD packet to send [22:25:49]OFD Sender: No OFD packet to send [22:25:54]OFD Sender: No OFD packet to send [22:25:59]OFD Sender: No OFD packet to send [22:26:04]OFD Sender: No OFD packet to send [22:26:09]OFD Sender: No OFD packet to send [22:26:14]OFD Sender: No OFD packet to send [22:26:19]OFD Sender: No OFD packet to send [22:26:24]OFD Sender: No OFD packet to send [22:26:29]OFD Sender: No OFD packet to send [22:26:34]OFD Sender: No OFD packet to send [22:26:39]OFD Sender: No OFD packet to send [22:26:44]OFD Sender: No OFD packet to send [22:26:49]OFD Sender: No OFD packet to send [22:26:54]OFD Sender: No OFD packet to send [22:26:59]OFD Sender: No OFD packet to send [22:27:04]OFD Sender: No OFD packet to send [22:27:09]OFD Sender: No OFD packet to send [22:27:14]OFD Sender: No OFD packet to send [22:27:19]OFD Sender: No OFD packet to send [22:27:24]OFD Sender: No OFD packet to send [22:27:29]OFD Sender: No OFD packet to send [22:27:34]OFD Sender: No OFD packet to send [22:27:39]OFD Sender: No OFD packet to send [22:27:44]OFD Sender: No OFD packet to send [22:27:49]OFD Sender: No OFD packet to send [22:27:54]OFD Sender: No OFD packet to send [22:27:59]OFD Sender: No OFD packet to send [22:28:04]OFD Sender: No OFD packet to send [22:28:09]OFD Sender: No OFD packet to send [22:28:14]OFD Sender: No OFD packet to send [22:28:19]OFD Sender: No OFD packet to send [22:28:24]OFD Sender: No OFD packet to send [22:28:29]OFD Sender: No OFD packet to send [22:28:34]OFD Sender: No OFD packet to send [22:28:39]OFD Sender: No OFD packet to send [22:28:44]OFD Sender: No OFD packet to send [22:28:49]OFD Sender: No OFD packet to send [22:28:54]OFD Sender: No OFD packet to send [22:28:59]OFD Sender: No OFD packet to send [22:29:04]OFD Sender: No OFD packet to send [22:29:09]OFD Sender: No OFD packet to send [22:29:14]OFD Sender: No OFD packet to send [22:29:17]accept exits with 7 [22:29:17]New connection [22:29:17]New thread 3067473252 created [22:29:17]Thread 3067616612 joined [22:29:17]Waiting for new connection... [22:29:17] Sock 7.Parse request [22:29:17]Sock 7.Check first char [22:29:17]Sock 7.First char is OK [22:29:17]request: POST /json_proto HTTP/1.0 [22:29:17]Method: POST [22:29:17]URL: /json_proto [22:29:17]Method is POST - this is cgi request [22:29:17]url: /json_proto [22:29:17]query_string will be loaded in cgi processing [22:29:17]execute_cgi json_proto POST (null) [22:29:17]execute_cgi path=json_proto method=POST [22:29:17]POST find Content-Length [22:29:17]Host: 172.17.38.133:8080 [22:29:17]Content-Length: 817 [22:29:17]Content-Type: application/json [22:29:17] [22:29:17]POST finish read [22:29:17]Found Content-Length = 817 [22:29:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673738", "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 }]} ], "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.52 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:29:17]execute_script... [22:29: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)673738", "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 }]} ], "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.52 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:29:17]POST & json_proto [22:29:17]process_json_proto [22:29:17]json parsed OK: [22:29:17]protocol is kg_v1.0 [22:29:17]action value=close_receipt [22:29:17]process_action close_receipt [22:29:17]cmd_close_receipt [22:29:17]MH_GetDate [22:29:17]Write to MH i2c: F0 00 00 00 13 02 [22:29:17]Write i2c OK [22:29:17]MH_I2C_Read... [22:29:17]Read from MH i2c: F0 [22:29:17]MH_I2C_Read... [22:29:17]Read from MH i2c: F0 09 00 [22:29:17]MH_I2C_Read... [22:29:17]Read from MH i2c: F0 09 00 00 13 00 BF FE 75 66 BD 8F 7C 64 CF [22:29:17]GetLastDocTimeStamp 1719008633 [22:29:17]current date 1719008959 [22:29:17]FM_GetShiftState [22:29:17]SAM_PROTO_GetShiftState [22:29:17]wFMCommunicate request_size=4 [22:29:17]MH_SAM_APDU [22:29:17]CAPDU: 80 13 01 00 [22:29:17]Write to MH i2c: E2 08 00 01 13 80 13 01 00 00 00 00 00 91 [22:29:17]Write i2c OK [22:29:17]MH_I2C_Read... [22:29:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:29:17]Read from MH i2c: E2 [22:29:17]MH_I2C_Read... [22:29:17]Read from MH i2c: E2 0E 00 [22:29:17]MH_I2C_Read... [22:29:17]Read from MH i2c: E2 0E 00 01 13 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 A4 [22:29:17]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [22:29:17]wFMCommunicate OK [22:29:17]SAM_PROTO_GetShiftState done [22:29:17]FM_GetShiftState done [22:29:17]opened in 1718929509 [22:29:17]opened+sec_in_day 1719015909 [22:29:17]quantity*price = 70052 [22:29:17]sum+1 = 70053 [22:29:17]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.52 НСП 1% : 6.20 НДС 12% : 74.39 Наличными: 0.00 Безнал.: 700.52 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 173 21.06.2024 22:29 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875093 ФД: 104250 ФПД: 270650947454564 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T222919&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104250&fm=270650947454564&tin=02508201610067®Number=0000000000092785&sum=70052 [22:29:18]StoreToDocumentArchive [22:29:18]shift 355 fd 104250 [22:29:18]save to /storage/0355/doc_00104250 [22:29:18]save last doc name /storage/0355/doc_00104250 to /storage/kkm_last_doc_name [22:29:18]save OK [22:29:18]Clear old archive folders... [22:29:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:29:19]tlvbuf is B6F7C790 [22:29:19]SAM_PROTO_ClearQueue [22:29:19]wFMCommunicate request_size=4 [22:29:19]MH_SAM_APDU [22:29:19]CAPDU: 80 09 00 00 [22:29:19]Write to MH i2c: E2 08 00 0E 13 80 09 00 00 00 00 00 00 93 [22:29:19]Write i2c OK [22:29:19]MH_I2C_Read... [22:29:19]Read from MH i2c: E2 [22:29:19]MH_I2C_Read... [22:29:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:29:19]Read from MH i2c: E2 03 00 [22:29:19]MH_I2C_Read... [22:29:19]Read from MH i2c: E2 03 00 0E 13 00 90 00 95 [22:29:19]RAPDU: 90 00 [22:29:19]wFMCommunicate OK [22:29:19]SAM_PROTO_ClearQueue done [22:29:19]KKMCreateOFDPacket [22:29:19]OFDProtocolAddRootSTLVToBuf [22:29:19]FM_MakeSignedData [22:29:19]FM_MakeSignedData [22:29:19]SAM_PROTO_SignData [22:29:19]wFMCommunicate request_size=4 [22:29:19]MH_SAM_APDU [22:29:19]CAPDU: 80 0D 01 02 [22:29:19]Write to MH i2c: E2 08 00 0F 13 80 0D 01 02 00 00 00 00 9B [22:29:19]Write i2c OK [22:29:19]MH_I2C_Read... [22:29:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:29:19]Read from MH i2c: E2 [22:29:19]MH_I2C_Read... [22:29:19]Read from MH i2c: E2 03 00 [22:29:19]MH_I2C_Read... [22:29:19]Read from MH i2c: E2 03 00 0F 13 00 90 00 96 [22:29:19]RAPDU: 90 00 [22:29:19]wFMCommunicate OK [22:29:19]wFMCommunicate request_size=255 [22:29:19]MH_SAM_APDU [22:29: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 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 A4 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 00 00 00 00 00 00 39 04 06 00 A4 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 BF FE 75 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 3A 97 01 00 35 04 06 00 F6 [22:29:19]Write to MH i2c: E2 02 01 10 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 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 A4 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 00 00 00 00 00 00 39 04 06 00 A4 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 BF FE 75 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 3A 97 01 00 35 04 06 00 F6 00 00 40 [22:29:19]Write i2c OK [22:29:19]MH_I2C_Read... [22:29:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:29:19]Read from MH i2c: E2 [22:29:19]MH_I2C_Read... [22:29:19]Read from MH i2c: E2 03 00 [22:29:19]MH_I2C_Read... [22:29:19]Read from MH i2c: E2 03 00 10 13 00 90 00 97 [22:29:19]RAPDU: 90 00 [22:29:19]wFMCommunicate OK [22:29:19]wFMCommunicate request_size=10 [22:29:19]MH_SAM_APDU [22:29:19]CAPDU: 80 0D 02 02 05 27 D5 94 C6 64 [22:29:19]Write to MH i2c: E2 0D 00 11 13 80 0D 02 02 05 00 27 D5 94 C6 64 00 00 62 [22:29:19]Write i2c OK [22:29:19]MH_I2C_Read... [22:29:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:29:19]Read from MH i2c: E2 [22:29:19]MH_I2C_Read... [22:29:19]Read from MH i2c: E2 03 00 [22:29:19]MH_I2C_Read... [22:29:19]Read from MH i2c: E2 03 00 11 13 00 90 00 98 [22:29:19]RAPDU: 90 00 [22:29:19]wFMCommunicate OK [22:29:19]wFMCommunicate request_size=4 [22:29:19]MH_SAM_APDU [22:29:19]CAPDU: 80 0D 03 02 [22:29:19]Write to MH i2c: E2 08 00 12 13 80 0D 03 02 00 00 00 00 A0 [22:29:19]Write i2c OK [22:29:19]MH_I2C_Read... [22:29:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:29:19]Read from MH i2c: E2 [22:29:19]MH_I2C_Read... [22:29:19]Read from MH i2c: E2 0B 00 [22:29:19]MH_I2C_Read... [22:29:19]Read from MH i2c: E2 0B 00 12 13 00 AE FA 1E A6 11 C0 E6 A0 90 00 64 [22:29:19]RAPDU: AE FA 1E A6 11 C0 E6 A0 90 00 [22:29:19]wFMCommunicate OK [22:29:19]SAM_PROTO_SignData done [22:29:19]FM_MakeSignedData done [22:29:19]CreateOFDProtocolMessage [22:29:19]wFMCommunicate request_size=4 [22:29:19]MH_SAM_APDU [22:29:19]CAPDU: 80 11 00 00 [22:29:19]Write to MH i2c: E2 08 00 13 13 80 11 00 00 00 00 00 00 A0 [22:29:19]Write i2c OK [22:29:19]MH_I2C_Read... [22:29:19]OFD Sender: No OFD packet to send [22:29:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:29:19]Read from MH i2c: E2 [22:29:19]MH_I2C_Read... [22:29:19]Read from MH i2c: E2 17 00 [22:29:19]MH_I2C_Read... [22:29:19]Read from MH i2c: E2 17 00 13 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 F3 [22:29:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [22:29:19]wFMCommunicate OK [22:29:19]CreateOFDProtocolMessage done [22:29:19]OFDSenderStorePacket 104250 [22:29:19]StoreOFDPacket docnum=104250 [22:29: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 EA 46 07 01 41 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 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 A4 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 00 00 00 00 00 00 39 04 06 00 A4 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 BF FE 75 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 3A 97 01 00 35 04 06 00 F6 27 D5 94 C6 64 AE FA 1E A6 11 C0 E6 A0 [22:29:19]CheckFolder [22:29:19]dirname=/storage/ofd_packets [22:29:19]CheckFolder done [22:29:19]ProducePacketName [22:29:19]name=ofd_packets/00104250 [22:29:19]NVStorageSaveData ofd_packets/00104250 [22:29:19]File name is /storage/ofd_packets/00104250 [22:29:19]Write 301 bytes [22:29:19]NVStorageSaveData done [22:29:19]OFDSenderStorePacket done [22:29:19]KKMCreateOFDPacket done [22:29:19]NVStorageSaveData kkm_last_timestamp [22:29:19]File name is /storage/kkm_last_timestamp [22:29:19]Write 4 bytes [22:29:19]NVStorageSaveData done [22:29:19]ExternCall_PrintAddStr [22:29:19]wPrintStart [22:29:19]Write to MH i2c: 01 00 00 14 13 27 [22:29:19]Write i2c OK [22:29:19]MH_I2C_Read... [22:29:19]Read from MH i2c: 01 [22:29:19]MH_I2C_Read... [22:29:19]Read from MH i2c: 01 07 00 [22:29:19]MH_I2C_Read... [22:29:19]Read from MH i2c: 01 07 00 14 13 00 00 00 00 00 FF 0F 3C [22:29:19]RasterBufferAndPrint [22:29:19]line Счет N : (1)673738 [22:29:19]line ИНН: 02508201610067 [22:29:19]line Контрольно-Кассовый Чек [22:29:19]line ПРОДАЖА [22:29:19]line ТРК (МРК, ГНК) : 42 [22:29:19]line Товар: 2710124130 [22:29:19]line Аи-92-К-5 [22:29:19]line 10.550 * 66.40 [22:29:19]line = 700.52 [22:29:19]line НДС 12% НСП 1% [22:29:19]line > о реализуемом товаре [22:29:19]line ИТОГО: 700.52 [22:29:19]line НСП 1% : 6.20 [22:29:19]line НДС 12% : 74.39 [22:29:19]line Наличными: 0.00 [22:29:19]line Безнал.: 700.52 [22:29:19]line Место: АЗС № 120 "Партнер Нефть" [22:29:19]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [22:29:19]line СНО: Общий режим [22:29:19]line Чек 173 21.06.2024 22:29 [22:29:19]line Смена: 355 ФФД: 1.0 [22:29:19]line ЗНМ: 0300000164 [22:29:19]line РНМ: 0000000000092785 [22:29:19]line Версия ККМ: 001 [22:29:19]line Платежная система: Бакай Банк [22:29:19]line ФМ: 0000000000875093 [22:29:19]line ФД: 104250 [22:29:19]line ФПД: 270650947454564 [22:29:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T222919&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104250&fm=270650947454564&tin=02508201610067®Number=0000000000092785&sum=70052 [22:29:19]OFD Sender: Processing packet 104250 [packets to send 17, broken 16] [22:29:19]ProducePacketName [22:29:19]name=ofd_packets/00104250 [22:29:19]OFD Sender: To server: pG, [22:29:19]CommunicateWithHost lk.salyk.kg:30040 [22:29:19]ConnectInit lk.salyk.kg [22:29:19]written 0, free lines is 4095 [22:29:19]Connected sock=10 [22:29: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 EA 46 07 01 41 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 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 A4 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 00 00 00 00 00 00 39 04 06 00 A4 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 BF FE 75 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 3A 97 01 00 35 04 06 00 F6 27 D5 94 C6 64 AE FA 1E A6 11 C0 E6 A0 [22:29:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 83 7A 47 00 18 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 3A 97 01 00 F4 03 04 00 40 A5 75 66 B6 04 01 00 00 42 AD 82 90 4C E6 18 7C [22:29:20]CommunicateWithHost err = 0 [22:29:20]CheckOFDResponse [22:29:20]1017 (14) - 77093643461234 [22:29:20]1041 (16) - 0000000000875093 [22:29:20]1040 (4) - 104250 [22:29:20]1012 (4) - 21.06.2024 16:07 [22:29:20]1206 (1) - 0 [22:29:20]OFD Sender: Remove packet 104250 [22:29:20]ProducePacketName [22:29:20]name=ofd_packets/00104250 [22:29:20]NVStorageDeleteData [22:29:20]Write to MH i2c: 01 00 00 3E 13 51 [22:29:20]Write i2c OK [22:29:20]MH_I2C_Read... [22:29:20]Read from MH i2c: 01 [22:29:20]MH_I2C_Read... [22:29:20]Read from MH i2c: 01 07 00 [22:29:20]MH_I2C_Read... [22:29:20]Read from MH i2c: 01 07 00 3E 13 00 00 00 00 00 EC 0C 50 [22:29:20]RasterBufferAndPrint [22:29:20]line [22:29:20]line [22:29:20]line [22:29:20]line [22:29:20]line [22:29:20]written 0, free lines is 3315 [22:29:20]MH_Cut [22:29:20]Write to MH i2c: D1 01 00 45 13 01 2A [22:29:20]Write i2c OK [22:29:20]MH_I2C_Read... [22:29:20]Read from MH i2c: D1 [22:29:20]MH_I2C_Read... [22:29:20]Read from MH i2c: D1 01 00 [22:29:20]MH_I2C_Read... [22:29:20]Read from MH i2c: D1 01 00 45 13 00 29 [22:29:20]Write to MH i2c: 01 00 00 46 13 59 [22:29:20]Write i2c OK [22:29:20]MH_I2C_Read... [22:29:20]OFD Sender: No OFD packet to send [22:29:21]*** Cut start [22:29:21]*** Partial cut [22:29:21]*** CUTSNS_PIN = 1 [22:29:21]*** CUTSNS_PIN = 0 [22:29:21]*** Brake cut motor [22:29:21]Read from MH i2c: 01 [22:29:21]MH_I2C_Read... [22:29:21]*** Stop cut motor [22:29:21]*** Cut end [22:29:21]Read from MH i2c: 01 07 00 [22:29:21]MH_I2C_Read... [22:29:21]Read from MH i2c: 01 07 00 46 13 00 00 00 00 00 FF 0F 6E [22:29:21]process_action close_receipt done [22:29:21]requested_data is exist [22:29:21]produce_requested_data [22:29:21]requested_item fm.sn is exist - process it [22:29:21]wFMCommunicate request_size=4 [22:29:21]MH_SAM_APDU [22:29:21]CAPDU: 80 11 00 00 [22:29:21]Write to MH i2c: E2 08 00 47 13 80 11 00 00 00 00 00 00 D4 [22:29:21]Write i2c OK [22:29:21]MH_I2C_Read... [22:29:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:29:21]Read from MH i2c: E2 [22:29:21]MH_I2C_Read... [22:29:21]Read from MH i2c: E2 17 00 [22:29:21]MH_I2C_Read... [22:29:21]Read from MH i2c: E2 17 00 47 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 27 [22:29:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [22:29:21]wFMCommunicate OK [22:29:21]requested_item fd.num is exist - process it [22:29:21]SAM_PROTO_GetFieldsCounters [22:29:21]wFMCommunicate request_size=4 [22:29:21]MH_SAM_APDU [22:29:21]CAPDU: 80 13 00 00 [22:29:21]Write to MH i2c: E2 08 00 48 13 80 13 00 00 00 00 00 00 D7 [22:29:21]Write i2c OK [22:29:21]MH_I2C_Read... [22:29:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:29:21]Read from MH i2c: E2 [22:29:21]MH_I2C_Read... [22:29:21]Read from MH i2c: E2 62 00 [22:29:21]MH_I2C_Read... [22:29:21]Read from MH i2c: E2 62 00 48 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 3A 97 01 00 0E 04 04 00 63 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 3B [22:29: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 3A 97 01 00 0E 04 04 00 63 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 [22:29:21]wFMCommunicate OK [22:29:21]SAM_PROTO_GetFieldsCounters done [22:29:21]requested_item shift.num is exist - process it [22:29:21]requested_item shift.opened is exist - process it [22:29:21]req_shift_opened [22:29:21]FM_GetShiftState [22:29:21]SAM_PROTO_GetShiftState [22:29:21]wFMCommunicate request_size=4 [22:29:21]MH_SAM_APDU [22:29:21]CAPDU: 80 13 01 00 [22:29:21]Write to MH i2c: E2 08 00 49 13 80 13 01 00 00 00 00 00 D9 [22:29:21]Write i2c OK [22:29:21]MH_I2C_Read... [22:29:21]Read from MH i2c: E2 [22:29:21]MH_I2C_Read... [22:29:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:29:21]Read from MH i2c: E2 0E 00 [22:29:21]MH_I2C_Read... [22:29:21]Read from MH i2c: E2 0E 00 49 13 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 EC [22:29:21]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [22:29:21]wFMCommunicate OK [22:29:21]SAM_PROTO_GetShiftState done [22:29:21]FM_GetShiftState done [22:29:21]req_shift_opened done [22:29:21]requested_item shift.open_date is exist - process it [22:29:21]req_shift_open_date [22:29:21]req_shift_open_date done [22:29:21]produce_requested_data done [22:29:21]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104250,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [22:29:21]process_action_free close_receipt [22:29:21]json_value_free [22:29:21]json_value_free done [22:29:21]process_json_proto returns [22:29:21]Send response to host [22:29:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104250,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [22:29:21]free response buf [22:29:21]execute_script done [22:29:21]execute_script returns [22:29:21]free content buf [22:29:21]Sock 7.Close socket [22:29:21]Sock 7.Thread stoped [22:29:25]OFD Sender: No OFD packet to send [22:29:30]OFD Sender: No OFD packet to send [22:29:35]OFD Sender: No OFD packet to send [22:29:40]OFD Sender: No OFD packet to send [22:29:45]OFD Sender: No OFD packet to send [22:29:50]OFD Sender: No OFD packet to send [22:29:55]OFD Sender: No OFD packet to send [22:30:00]OFD Sender: No OFD packet to send [22:30:05]OFD Sender: No OFD packet to send [22:30:10]OFD Sender: No OFD packet to send [22:30:15]OFD Sender: No OFD packet to send [22:30:20]OFD Sender: No OFD packet to send [22:30:25]OFD Sender: No OFD packet to send [22:30:30]OFD Sender: No OFD packet to send [22:30:35]OFD Sender: No OFD packet to send [22:30:40]OFD Sender: No OFD packet to send [22:30:45]OFD Sender: No OFD packet to send [22:30:50]OFD Sender: No OFD packet to send [22:30:55]OFD Sender: No OFD packet to send [22:31:00]OFD Sender: No OFD packet to send [22:31:05]OFD Sender: No OFD packet to send [22:31:10]OFD Sender: No OFD packet to send [22:31:15]OFD Sender: No OFD packet to send [22:31:20]OFD Sender: No OFD packet to send [22:31:25]OFD Sender: No OFD packet to send [22:31:30]OFD Sender: No OFD packet to send [22:31:35]OFD Sender: No OFD packet to send [22:31:40]OFD Sender: No OFD packet to send [22:31:45]OFD Sender: No OFD packet to send [22:31:50]OFD Sender: No OFD packet to send [22:31:55]OFD Sender: No OFD packet to send [22:32:00]OFD Sender: No OFD packet to send [22:32:05]accept exits with 9 [22:32:05]New connection [22:32:05]New thread 3067616612 created [22:32:05]Thread 3067473252 joined [22:32:05]Waiting for new connection... [22:32:05] Sock 9.Parse request [22:32:05]Sock 9.Check first char [22:32:05]Sock 9.First char is OK [22:32:05]request: POST /json_proto HTTP/1.0 [22:32:05]Method: POST [22:32:05]URL: /json_proto [22:32:05]Method is POST - this is cgi request [22:32:05]url: /json_proto [22:32:05]query_string will be loaded in cgi processing [22:32:05]execute_cgi json_proto POST (null) [22:32:05]execute_cgi path=json_proto method=POST [22:32:05]POST find Content-Length [22:32:05]Host: 172.17.38.133:8080 [22:32:05]Content-Length: 800 [22:32:05]Content-Type: application/json [22:32:05] [22:32:05]POST finish read [22:32:05]Found Content-Length = 800 [22:32:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673739", "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 }]} ], "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" : 300.13 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:32:05]execute_script... [22:32: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)673739", "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 }]} ], "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" : 300.13 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:32:05]POST & json_proto [22:32:05]process_json_proto [22:32:05]json parsed OK: [22:32:05]protocol is kg_v1.0 [22:32:05]action value=close_receipt [22:32:05]process_action close_receipt [22:32:05]cmd_close_receipt [22:32:05]MH_GetDate [22:32:05]Write to MH i2c: F0 00 00 4A 13 4C [22:32:05]Write i2c OK [22:32:05]MH_I2C_Read... [22:32:05]Read from MH i2c: F0 [22:32:05]MH_I2C_Read... [22:32:05]Read from MH i2c: F0 09 00 [22:32:05]MH_I2C_Read... [22:32:05]Read from MH i2c: F0 09 00 4A 13 00 67 FF 75 66 BD 8F 7C 64 C2 [22:32:05]GetLastDocTimeStamp 1719008959 [22:32:05]current date 1719009127 [22:32:05]FM_GetShiftState [22:32:05]SAM_PROTO_GetShiftState [22:32:05]wFMCommunicate request_size=4 [22:32:05]MH_SAM_APDU [22:32:05]CAPDU: 80 13 01 00 [22:32:05]Write to MH i2c: E2 08 00 4B 13 80 13 01 00 00 00 00 00 DB [22:32:05]Write i2c OK [22:32:05]MH_I2C_Read... [22:32:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:32:05]Read from MH i2c: E2 [22:32:05]MH_I2C_Read... [22:32:05]Read from MH i2c: E2 0E 00 [22:32:05]MH_I2C_Read... [22:32:05]Read from MH i2c: E2 0E 00 4B 13 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 EE [22:32:05]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [22:32:05]wFMCommunicate OK [22:32:05]SAM_PROTO_GetShiftState done [22:32:05]FM_GetShiftState done [22:32:05]opened in 1718929509 [22:32:05]opened+sec_in_day 1719015909 [22:32:05]quantity*price = 30012 [22:32:05]sum+1 = 30014 [22:32:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.13 НСП 1% : 2.66 НДС 12% : 31.87 Наличными: 0.00 Безнал.: 300.13 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 174 21.06.2024 22:32 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875093 ФД: 104251 ФПД: 58738726537112 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T223207&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104251&fm=58738726537112&tin=02508201610067®Number=0000000000092785&sum=30013 [22:32:06]StoreToDocumentArchive [22:32:06]shift 355 fd 104251 [22:32:06]save to /storage/0355/doc_00104251 [22:32:06]save last doc name /storage/0355/doc_00104251 to /storage/kkm_last_doc_name [22:32:06]save OK [22:32:06]Clear old archive folders... [22:32:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:32:06]tlvbuf is 006AF750 [22:32:06]SAM_PROTO_ClearQueue [22:32:06]wFMCommunicate request_size=4 [22:32:06]MH_SAM_APDU [22:32:06]CAPDU: 80 09 00 00 [22:32:06]Write to MH i2c: E2 08 00 58 13 80 09 00 00 00 00 00 00 DD [22:32:06]Write i2c OK [22:32:06]MH_I2C_Read... [22:32:06]Read from MH i2c: E2 [22:32:06]MH_I2C_Read... [22:32:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:32:06]Read from MH i2c: E2 03 00 [22:32:06]MH_I2C_Read... [22:32:06]Read from MH i2c: E2 03 00 58 13 00 90 00 DF [22:32:06]RAPDU: 90 00 [22:32:06]wFMCommunicate OK [22:32:06]SAM_PROTO_ClearQueue done [22:32:06]KKMCreateOFDPacket [22:32:06]OFDProtocolAddRootSTLVToBuf [22:32:06]FM_MakeSignedData [22:32:06]FM_MakeSignedData [22:32:06]SAM_PROTO_SignData [22:32:06]wFMCommunicate request_size=4 [22:32:06]MH_SAM_APDU [22:32:06]CAPDU: 80 0D 01 02 [22:32:06]Write to MH i2c: E2 08 00 59 13 80 0D 01 02 00 00 00 00 E5 [22:32:06]Write i2c OK [22:32:06]MH_I2C_Read... [22:32:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:32:06]Read from MH i2c: E2 [22:32:06]MH_I2C_Read... [22:32:06]Read from MH i2c: E2 03 00 [22:32:06]MH_I2C_Read... [22:32:06]Read from MH i2c: E2 03 00 59 13 00 90 00 E0 [22:32:06]RAPDU: 90 00 [22:32:06]wFMCommunicate OK [22:32:06]wFMCommunicate request_size=255 [22:32:06]MH_SAM_APDU [22:32: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 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 3D 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 00 00 00 00 00 00 39 04 06 00 3D 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 67 FF 75 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 3B 97 01 00 35 04 06 00 35 [22:32:06]Write to MH i2c: E2 02 01 5A 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 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 3D 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 00 00 00 00 00 00 39 04 06 00 3D 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 67 FF 75 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 3B 97 01 00 35 04 06 00 35 00 00 B2 [22:32:06]Write i2c OK [22:32:06]MH_I2C_Read... [22:32:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:32:06]Read from MH i2c: E2 [22:32:06]MH_I2C_Read... [22:32:06]Read from MH i2c: E2 03 00 [22:32:06]MH_I2C_Read... [22:32:06]Read from MH i2c: E2 03 00 5A 13 00 90 00 E1 [22:32:06]RAPDU: 90 00 [22:32:06]wFMCommunicate OK [22:32:06]wFMCommunicate request_size=10 [22:32:06]MH_SAM_APDU [22:32:06]CAPDU: 80 0D 02 02 05 6C 2C EE 07 98 [22:32:06]Write to MH i2c: E2 0D 00 5B 13 80 0D 02 02 05 00 6C 2C EE 07 98 00 00 17 [22:32:06]Write i2c OK [22:32:06]MH_I2C_Read... [22:32:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:32:06]Read from MH i2c: E2 [22:32:06]MH_I2C_Read... [22:32:06]Read from MH i2c: E2 03 00 [22:32:06]MH_I2C_Read... [22:32:06]Read from MH i2c: E2 03 00 5B 13 00 90 00 E2 [22:32:06]RAPDU: 90 00 [22:32:06]wFMCommunicate OK [22:32:06]wFMCommunicate request_size=4 [22:32:06]MH_SAM_APDU [22:32:06]CAPDU: 80 0D 03 02 [22:32:06]Write to MH i2c: E2 08 00 5C 13 80 0D 03 02 00 00 00 00 EA [22:32:06]Write i2c OK [22:32:06]MH_I2C_Read... [22:32:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:32:07]Read from MH i2c: E2 [22:32:07]MH_I2C_Read... [22:32:07]Read from MH i2c: E2 0B 00 [22:32:07]MH_I2C_Read... [22:32:07]Read from MH i2c: E2 0B 00 5C 13 00 46 D0 1C 88 F4 EE 44 40 90 00 0B [22:32:07]RAPDU: 46 D0 1C 88 F4 EE 44 40 90 00 [22:32:07]wFMCommunicate OK [22:32:07]SAM_PROTO_SignData done [22:32:07]FM_MakeSignedData done [22:32:07]CreateOFDProtocolMessage [22:32:07]wFMCommunicate request_size=4 [22:32:07]MH_SAM_APDU [22:32:07]CAPDU: 80 11 00 00 [22:32:07]Write to MH i2c: E2 08 00 5D 13 80 11 00 00 00 00 00 00 EA [22:32:07]Write i2c OK [22:32:07]MH_I2C_Read... [22:32:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:32:07]Read from MH i2c: E2 [22:32:07]MH_I2C_Read... [22:32:07]Read from MH i2c: E2 17 00 [22:32:07]MH_I2C_Read... [22:32:07]Read from MH i2c: E2 17 00 5D 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 3D [22:32: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:32:07]wFMCommunicate OK [22:32:07]CreateOFDProtocolMessage done [22:32:07]OFDSenderStorePacket 104251 [22:32:07]StoreOFDPacket docnum=104251 [22:32: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 94 C2 07 01 11 D1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 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 3D 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 00 00 00 00 00 00 39 04 06 00 3D 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 67 FF 75 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 3B 97 01 00 35 04 06 00 35 6C 2C EE 07 98 46 D0 1C 88 F4 EE 44 40 [22:32:07]CheckFolder [22:32:07]dirname=/storage/ofd_packets [22:32:07]CheckFolder done [22:32:07]ProducePacketName [22:32:07]name=ofd_packets/00104251 [22:32:07]NVStorageSaveData ofd_packets/00104251 [22:32:07]File name is /storage/ofd_packets/00104251 [22:32:07]Write 301 bytes [22:32:07]NVStorageSaveData done [22:32:07]OFDSenderStorePacket done [22:32:07]KKMCreateOFDPacket done [22:32:07]NVStorageSaveData kkm_last_timestamp [22:32:07]File name is /storage/kkm_last_timestamp [22:32:07]Write 4 bytes [22:32:07]NVStorageSaveData done [22:32:07]ExternCall_PrintAddStr [22:32:07]wPrintStart [22:32:07]Write to MH i2c: 01 00 00 5E 13 71 [22:32:07]Write i2c OK [22:32:07]MH_I2C_Read... [22:32:07]Read from MH i2c: 01 [22:32:07]MH_I2C_Read... [22:32:07]Read from MH i2c: 01 07 00 [22:32:07]MH_I2C_Read... [22:32:07]Read from MH i2c: 01 07 00 5E 13 00 00 00 00 00 FF 0F 86 [22:32:07]RasterBufferAndPrint [22:32:07]line Счет N : (1)673739 [22:32:07]line ИНН: 02508201610067 [22:32:07]line Контрольно-Кассовый Чек [22:32:07]line ПРОДАЖА [22:32:07]line ТРК (МРК, ГНК) : 32 [22:32:07]line Товар: 2710124130 [22:32:07]line Аи-92-К-5 [22:32:07]line 4.520 * 66.40 [22:32:07]line = 300.13 [22:32:07]line НДС 12% НСП 1% [22:32:07]line > о реализуемом товаре [22:32:07]line ИТОГО: 300.13 [22:32:07]line НСП 1% : 2.66 [22:32:07]line НДС 12% : 31.87 [22:32:07]line Наличными: 0.00 [22:32:07]line Безнал.: 300.13 [22:32:07]line Место: АЗС № 120 "Партнер Нефть" [22:32:07]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [22:32:07]line СНО: Общий режим [22:32:07]line Чек 174 21.06.2024 22:32 [22:32:07]line Смена: 355 ФФД: 1.0 [22:32:07]line ЗНМ: 0300000164 [22:32:07]line РНМ: 0000000000092785 [22:32:07]line Версия ККМ: 001 [22:32:07]line Платежная система: O! деньги [22:32:07]line ФМ: 0000000000875093 [22:32:07]line ФД: 104251 [22:32:07]line ФПД: 58738726537112 [22:32:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T223207&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104251&fm=58738726537112&tin=02508201610067®Number=0000000000092785&sum=30013 [22:32:07]OFD Sender: Processing packet 104251 [packets to send 17, broken 16] [22:32:07]ProducePacketName [22:32:07]name=ofd_packets/00104251 [22:32:07]OFD Sender: To server: pG, [22:32:07]CommunicateWithHost lk.salyk.kg:30040 [22:32:07]ConnectInit lk.salyk.kg [22:32:07]written 0, free lines is 4095 [22:32:07]Connected sock=10 [22:32: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 94 C2 07 01 11 D1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 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 3D 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 00 00 00 00 00 00 39 04 06 00 3D 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 67 FF 75 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 3B 97 01 00 35 04 06 00 35 6C 2C EE 07 98 46 D0 1C 88 F4 EE 44 40 [22:32:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 A3 55 47 00 16 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 3B 97 01 00 F4 03 04 00 E8 A5 75 66 B6 04 01 00 00 F1 EF A0 6E 75 99 B9 8A [22:32:07]CommunicateWithHost err = 0 [22:32:07]CheckOFDResponse [22:32:07]1017 (14) - 77093643461234 [22:32:07]1041 (16) - 0000000000875093 [22:32:07]1040 (4) - 104251 [22:32:07]1012 (4) - 21.06.2024 16:10 [22:32:07]1206 (1) - 0 [22:32:07]OFD Sender: Remove packet 104251 [22:32:07]ProducePacketName [22:32:07]name=ofd_packets/00104251 [22:32:07]NVStorageDeleteData [22:32:07]Write to MH i2c: 01 00 00 88 13 9B [22:32:07]Write i2c OK [22:32:07]MH_I2C_Read... [22:32:07]Read from MH i2c: 01 [22:32:07]MH_I2C_Read... [22:32:07]Read from MH i2c: 01 07 00 [22:32:07]MH_I2C_Read... [22:32:07]Read from MH i2c: 01 07 00 88 13 00 00 00 00 00 E4 0C 92 [22:32:07]RasterBufferAndPrint [22:32:07]line [22:32:07]line [22:32:07]line [22:32:07]line [22:32:07]line [22:32:07]written 0, free lines is 3307 [22:32:07]MH_Cut [22:32:07]Write to MH i2c: D1 01 00 8F 13 01 74 [22:32:07]Write i2c OK [22:32:07]MH_I2C_Read... [22:32:07]Read from MH i2c: D1 [22:32:07]MH_I2C_Read... [22:32:07]Read from MH i2c: D1 01 00 [22:32:07]MH_I2C_Read... [22:32:07]Read from MH i2c: D1 01 00 8F 13 00 73 [22:32:07]Write to MH i2c: 01 00 00 90 13 A3 [22:32:07]Write i2c OK [22:32:07]MH_I2C_Read... [22:32:08]OFD Sender: No OFD packet to send [22:32:08]*** Cut start [22:32:08]*** Partial cut [22:32:08]*** CUTSNS_PIN = 1 [22:32:08]*** CUTSNS_PIN = 0 [22:32:08]*** Brake cut motor [22:32:09]Read from MH i2c: 01 [22:32:09]MH_I2C_Read... [22:32:09]*** Stop cut motor [22:32:09]*** Cut end [22:32:09]Read from MH i2c: 01 07 00 [22:32:09]MH_I2C_Read... [22:32:09]Read from MH i2c: 01 07 00 90 13 00 00 00 00 00 FF 0F B8 [22:32:09]process_action close_receipt done [22:32:09]requested_data is exist [22:32:09]produce_requested_data [22:32:09]requested_item fm.sn is exist - process it [22:32:09]wFMCommunicate request_size=4 [22:32:09]MH_SAM_APDU [22:32:09]CAPDU: 80 11 00 00 [22:32:09]Write to MH i2c: E2 08 00 91 13 80 11 00 00 00 00 00 00 1E [22:32:09]Write i2c OK [22:32:09]MH_I2C_Read... [22:32:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:32:09]Read from MH i2c: E2 [22:32:09]MH_I2C_Read... [22:32:09]Read from MH i2c: E2 17 00 [22:32:09]MH_I2C_Read... [22:32:09]Read from MH i2c: E2 17 00 91 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 71 [22:32:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [22:32:09]wFMCommunicate OK [22:32:09]requested_item fd.num is exist - process it [22:32:09]SAM_PROTO_GetFieldsCounters [22:32:09]wFMCommunicate request_size=4 [22:32:09]MH_SAM_APDU [22:32:09]CAPDU: 80 13 00 00 [22:32:09]Write to MH i2c: E2 08 00 92 13 80 13 00 00 00 00 00 00 21 [22:32:09]Write i2c OK [22:32:09]MH_I2C_Read... [22:32:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:32:09]Read from MH i2c: E2 [22:32:09]MH_I2C_Read... [22:32:09]Read from MH i2c: E2 62 00 [22:32:09]MH_I2C_Read... [22:32:09]Read from MH i2c: E2 62 00 92 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 3B 97 01 00 0E 04 04 00 63 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 89 [22:32: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 3B 97 01 00 0E 04 04 00 63 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 [22:32:09]wFMCommunicate OK [22:32:09]SAM_PROTO_GetFieldsCounters done [22:32:09]requested_item shift.num is exist - process it [22:32:09]requested_item shift.opened is exist - process it [22:32:09]req_shift_opened [22:32:09]FM_GetShiftState [22:32:09]SAM_PROTO_GetShiftState [22:32:09]wFMCommunicate request_size=4 [22:32:09]MH_SAM_APDU [22:32:09]CAPDU: 80 13 01 00 [22:32:09]Write to MH i2c: E2 08 00 93 13 80 13 01 00 00 00 00 00 23 [22:32:09]Write i2c OK [22:32:09]MH_I2C_Read... [22:32:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:32:09]Read from MH i2c: E2 [22:32:09]MH_I2C_Read... [22:32:09]Read from MH i2c: E2 0E 00 [22:32:09]MH_I2C_Read... [22:32:09]Read from MH i2c: E2 0E 00 93 13 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 36 [22:32:09]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [22:32:09]wFMCommunicate OK [22:32:09]SAM_PROTO_GetShiftState done [22:32:09]FM_GetShiftState done [22:32:09]req_shift_opened done [22:32:09]requested_item shift.open_date is exist - process it [22:32:09]req_shift_open_date [22:32:09]req_shift_open_date done [22:32:09]produce_requested_data done [22:32:09]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104251,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [22:32:09]process_action_free close_receipt [22:32:09]json_value_free [22:32:09]json_value_free done [22:32:09]process_json_proto returns [22:32:09]Send response to host [22:32:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104251,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [22:32:09]free response buf [22:32:09]execute_script done [22:32:09]execute_script returns [22:32:09]free content buf [22:32:09]Sock 9.Close socket [22:32:09]Sock 9.Thread stoped [22:32:13]OFD Sender: No OFD packet to send [22:32:18]OFD Sender: No OFD packet to send [22:32:23]OFD Sender: No OFD packet to send [22:32:28]OFD Sender: No OFD packet to send [22:32:33]OFD Sender: No OFD packet to send [22:32:38]OFD Sender: No OFD packet to send [22:32:43]OFD Sender: No OFD packet to send [22:32:48]OFD Sender: No OFD packet to send [22:32:53]OFD Sender: No OFD packet to send [22:32:58]OFD Sender: No OFD packet to send [22:33:03]OFD Sender: No OFD packet to send [22:33:08]OFD Sender: No OFD packet to send [22:33:13]OFD Sender: No OFD packet to send [22:33:18]OFD Sender: No OFD packet to send [22:33:23]OFD Sender: No OFD packet to send [22:33:28]OFD Sender: No OFD packet to send [22:33:33]OFD Sender: No OFD packet to send [22:33:38]OFD Sender: No OFD packet to send [22:33:43]OFD Sender: No OFD packet to send [22:33:48]OFD Sender: No OFD packet to send [22:33:53]OFD Sender: No OFD packet to send [22:33:58]OFD Sender: No OFD packet to send [22:34:03]OFD Sender: No OFD packet to send [22:34:08]OFD Sender: No OFD packet to send [22:34:13]OFD Sender: No OFD packet to send [22:34:18]OFD Sender: No OFD packet to send [22:34:23]OFD Sender: No OFD packet to send [22:34:28]OFD Sender: No OFD packet to send [22:34:33]OFD Sender: No OFD packet to send [22:34:38]OFD Sender: No OFD packet to send [22:34:43]OFD Sender: No OFD packet to send [22:34:48]OFD Sender: No OFD packet to send [22:34:53]OFD Sender: No OFD packet to send [22:34:58]OFD Sender: No OFD packet to send [22:35:03]OFD Sender: No OFD packet to send [22:35:08]OFD Sender: No OFD packet to send [22:35:13]OFD Sender: No OFD packet to send [22:35:18]OFD Sender: No OFD packet to send [22:35:23]OFD Sender: No OFD packet to send [22:35:28]OFD Sender: No OFD packet to send [22:35:33]OFD Sender: No OFD packet to send [22:35:38]OFD Sender: No OFD packet to send [22:35:43]OFD Sender: No OFD packet to send [22:35:48]OFD Sender: No OFD packet to send [22:35:53]OFD Sender: No OFD packet to send [22:35:58]OFD Sender: No OFD packet to send [22:36:03]OFD Sender: No OFD packet to send [22:36:08]OFD Sender: No OFD packet to send [22:36:13]OFD Sender: No OFD packet to send [22:36:18]OFD Sender: No OFD packet to send [22:36:23]OFD Sender: No OFD packet to send [22:36:25]accept exits with 7 [22:36:25]New connection [22:36:25]New thread 3067473252 created [22:36:25]Thread 3067616612 joined [22:36:25]Waiting for new connection... [22:36:25] Sock 7.Parse request [22:36:25]Sock 7.Check first char [22:36:25]Sock 7.First char is OK [22:36:25]request: POST /json_proto HTTP/1.0 [22:36:25]Method: POST [22:36:25]URL: /json_proto [22:36:25]Method is POST - this is cgi request [22:36:25]url: /json_proto [22:36:25]query_string will be loaded in cgi processing [22:36:25]execute_cgi json_proto POST (null) [22:36:25]execute_cgi path=json_proto method=POST [22:36:25]POST find Content-Length [22:36:25]Host: 172.17.38.133:8080 [22:36:25]Content-Length: 1162 [22:36:25]Content-Type: application/json [22:36:25] [22:36:25]POST finish read [22:36:25]Found Content-Length = 1162 [22:36: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 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)673740\u000A21.06.2024 22:13\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.580 x 72.90\u000A\u0418\u0422\u041E\u0413: 1500.28\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30147393\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:36:25]execute_script... [22:36: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 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)673740\u000A21.06.2024 22:13\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.580 x 72.90\u000A\u0418\u0422\u041E\u0413: 1500.28\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30147393\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:36:25]POST & json_proto [22:36:25]process_json_proto [22:36:25]json parsed OK: [22:36:25]protocol is kg_v1.0 [22:36:25]action value=print_text [22:36:25]process_action print_text [22:36:25]cmd_print_text [22:36:25]ExternCall_PrintAddStr [22:36:25]wPrintStart [22:36:25]Write to MH i2c: 01 00 00 94 13 A7 [22:36:25]Write i2c OK [22:36:25]MH_I2C_Read... [22:36:25]Read from MH i2c: 01 [22:36:25]MH_I2C_Read... [22:36:25]Read from MH i2c: 01 07 00 [22:36:25]MH_I2C_Read... [22:36:25]Read from MH i2c: 01 07 00 94 13 00 00 00 00 00 FF 0F BC [22:36:25]RasterBufferAndPrint [22:36:25]line *****ТОВАРНЫЙ ЧЕК***** [22:36:25]line АЗС 120 [22:36:25]line Партнер нефть [22:36:25]line 02508201610067 [22:36:25]line Кассир : Асанбаев Н. [22:36:25]line Счет N : (1)673740 [22:36:25]line 21.06.2024 22:13 [22:36:25]line ПРОДАЖА [22:36:25]line ТРК (МРК, ГНК): 21 [22:36:25]line Вид ГСМ : 2710194210 [22:36:25]line ДТ(л)-К-5 [22:36:25]line 20.580 x 72.90 [22:36:25]line ИТОГ: 1500.28 [22:36:25]line Тип оплаты: Талоны: ТК ГПНА Online [22:36:25]line 30147393 [22:36:25]line ______________________ [22:36:25]line (подпись) [22:36:25]written 0, free lines is 4095 [22:36:25]Write to MH i2c: 01 00 00 A8 13 BB [22:36:25]Write i2c OK [22:36:25]MH_I2C_Read... [22:36:25]Read from MH i2c: 01 [22:36:25]MH_I2C_Read... [22:36:25]Read from MH i2c: 01 07 00 [22:36:25]MH_I2C_Read... [22:36:25]Read from MH i2c: 01 07 00 A8 13 00 00 00 00 00 0F 0E DF [22:36:25]RasterBufferAndPrint [22:36:25]line [22:36:25]line [22:36:25]line [22:36:25]line [22:36:25]line [22:36:25]written 0, free lines is 3601 [22:36:25]MH_Cut [22:36:25]Write to MH i2c: D1 01 00 AF 13 01 94 [22:36:25]Write i2c OK [22:36:25]MH_I2C_Read... [22:36:25]Read from MH i2c: D1 [22:36:25]MH_I2C_Read... [22:36:25]Read from MH i2c: D1 01 00 [22:36:25]MH_I2C_Read... [22:36:25]Read from MH i2c: D1 01 00 AF 13 00 93 [22:36:25]Write to MH i2c: 01 00 00 B0 13 C3 [22:36:25]Write i2c OK [22:36:25]MH_I2C_Read... [22:36:26]*** Cut start [22:36:26]*** Partial cut [22:36:26]*** CUTSNS_PIN = 1 [22:36:26]*** CUTSNS_PIN = 0 [22:36:26]*** Brake cut motor [22:36:26]Read from MH i2c: 01 [22:36:26]MH_I2C_Read... [22:36:26]*** Stop cut motor [22:36:26]*** Cut end [22:36:26]Read from MH i2c: 01 07 00 [22:36:26]MH_I2C_Read... [22:36:26]Read from MH i2c: 01 07 00 B0 13 00 00 00 00 00 FF 0F D8 [22:36:26]process_action print_text done [22:36:26]requested_data is exist [22:36:26]produce_requested_data [22:36:26]requested_item fm.sn is exist - process it [22:36:26]wFMCommunicate request_size=4 [22:36:26]MH_SAM_APDU [22:36:26]CAPDU: 80 11 00 00 [22:36:26]Write to MH i2c: E2 08 00 B1 13 80 11 00 00 00 00 00 00 3E [22:36:26]Write i2c OK [22:36:26]MH_I2C_Read... [22:36:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:36:26]Read from MH i2c: E2 [22:36:26]MH_I2C_Read... [22:36:26]Read from MH i2c: E2 17 00 [22:36:26]MH_I2C_Read... [22:36:26]Read from MH i2c: E2 17 00 B1 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 91 [22:36: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:36:26]wFMCommunicate OK [22:36:26]requested_item fd.num is exist - process it [22:36:26]SAM_PROTO_GetFieldsCounters [22:36:26]wFMCommunicate request_size=4 [22:36:26]MH_SAM_APDU [22:36:26]CAPDU: 80 13 00 00 [22:36:26]Write to MH i2c: E2 08 00 B2 13 80 13 00 00 00 00 00 00 41 [22:36:26]Write i2c OK [22:36:26]MH_I2C_Read... [22:36:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:36:26]Read from MH i2c: E2 [22:36:26]MH_I2C_Read... [22:36:26]Read from MH i2c: E2 62 00 [22:36:26]MH_I2C_Read... [22:36:26]Read from MH i2c: E2 62 00 B2 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 3B 97 01 00 0E 04 04 00 63 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 A9 [22:36: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 3B 97 01 00 0E 04 04 00 63 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 [22:36:26]wFMCommunicate OK [22:36:26]SAM_PROTO_GetFieldsCounters done [22:36:26]requested_item shift.num is exist - process it [22:36:26]requested_item shift.opened is exist - process it [22:36:26]req_shift_opened [22:36:26]FM_GetShiftState [22:36:26]SAM_PROTO_GetShiftState [22:36:26]wFMCommunicate request_size=4 [22:36:26]MH_SAM_APDU [22:36:26]CAPDU: 80 13 01 00 [22:36:26]Write to MH i2c: E2 08 00 B3 13 80 13 01 00 00 00 00 00 43 [22:36:26]Write i2c OK [22:36:26]MH_I2C_Read... [22:36:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:36:26]Read from MH i2c: E2 [22:36:26]MH_I2C_Read... [22:36:26]Read from MH i2c: E2 0E 00 [22:36:26]MH_I2C_Read... [22:36:26]Read from MH i2c: E2 0E 00 B3 13 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 56 [22:36:26]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [22:36:26]wFMCommunicate OK [22:36:26]SAM_PROTO_GetShiftState done [22:36:26]FM_GetShiftState done [22:36:26]req_shift_opened done [22:36:26]requested_item shift.open_date is exist - process it [22:36:26]req_shift_open_date [22:36:26]req_shift_open_date done [22:36:26]produce_requested_data done [22:36:26]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104251,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [22:36:26]process_action_free print_text [22:36:26]json_value_free [22:36:26]json_value_free done [22:36:26]process_json_proto returns [22:36:26]Send response to host [22:36:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104251,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [22:36:26]free response buf [22:36:26]execute_script done [22:36:26]execute_script returns [22:36:26]free content buf [22:36:26]Sock 7.Close socket [22:36:26]Sock 7.Thread stoped [22:36:28]OFD Sender: No OFD packet to send [22:36:33]OFD Sender: No OFD packet to send [22:36:38]OFD Sender: No OFD packet to send [22:36:43]OFD Sender: No OFD packet to send [22:36:48]OFD Sender: No OFD packet to send [22:36:53]OFD Sender: No OFD packet to send [22:36:58]OFD Sender: No OFD packet to send [22:37:03]OFD Sender: No OFD packet to send [22:37:08]OFD Sender: No OFD packet to send [22:37:13]OFD Sender: No OFD packet to send [22:37:18]OFD Sender: No OFD packet to send [22:37:23]OFD Sender: No OFD packet to send [22:37:28]OFD Sender: No OFD packet to send [22:37:33]OFD Sender: No OFD packet to send [22:37:38]OFD Sender: No OFD packet to send [22:37:43]OFD Sender: No OFD packet to send [22:37:48]OFD Sender: No OFD packet to send [22:37:53]OFD Sender: No OFD packet to send [22:37:58]OFD Sender: No OFD packet to send [22:38:03]OFD Sender: No OFD packet to send [22:38:08]OFD Sender: No OFD packet to send [22:38:13]OFD Sender: No OFD packet to send [22:38:18]OFD Sender: No OFD packet to send [22:38:23]OFD Sender: No OFD packet to send [22:38:28]OFD Sender: No OFD packet to send [22:38:31]accept exits with 9 [22:38:31]New connection [22:38:31]New thread 3067616612 created [22:38:31]Thread 3067473252 joined [22:38:31]Waiting for new connection... [22:38:31] Sock 9.Parse request [22:38:31]Sock 9.Check first char [22:38:31]Sock 9.First char is OK [22:38:31]request: POST /json_proto HTTP/1.0 [22:38:31]Method: POST [22:38:31]URL: /json_proto [22:38:31]Method is POST - this is cgi request [22:38:31]url: /json_proto [22:38:31]query_string will be loaded in cgi processing [22:38:31]execute_cgi json_proto POST (null) [22:38:31]execute_cgi path=json_proto method=POST [22:38:31]POST find Content-Length [22:38:31]Host: 172.17.38.133:8080 [22:38:31]Content-Length: 744 [22:38:31]Content-Type: application/json [22:38:31] [22:38:31]POST finish read [22:38:31]Found Content-Length = 744 [22:38:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 104232, "base_FM": "0000000000875093", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673715", "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" : 178.440, "sum" : 13186.72, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 13186.00, "total" : 13186.00, "payments": [ { "type": 0, "sum" : 13186.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:38:31]execute_script... [22:38:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 104232, "base_FM": "0000000000875093", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673715", "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" : 178.440, "sum" : 13186.72, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 13186.00, "total" : 13186.00, "payments": [ { "type": 0, "sum" : 13186.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:38:31]POST & json_proto [22:38:31]process_json_proto [22:38:31]json parsed OK: [22:38:31]protocol is kg_v1.0 [22:38:31]action value=close_receipt [22:38:31]process_action close_receipt [22:38:31]cmd_close_receipt [22:38:31]MH_GetDate [22:38:31]Write to MH i2c: F0 00 00 B4 13 B6 [22:38:31]Write i2c OK [22:38:31]MH_I2C_Read... [22:38:31]Read from MH i2c: F0 [22:38:31]MH_I2C_Read... [22:38:31]Read from MH i2c: F0 09 00 [22:38:31]MH_I2C_Read... [22:38:31]Read from MH i2c: F0 09 00 B4 13 00 E9 00 76 66 BD 8F 7C 64 B0 [22:38:31]GetLastDocTimeStamp 1719009127 [22:38:31]current date 1719009513 [22:38:31]FM_GetShiftState [22:38:31]SAM_PROTO_GetShiftState [22:38:31]wFMCommunicate request_size=4 [22:38:31]MH_SAM_APDU [22:38:31]CAPDU: 80 13 01 00 [22:38:31]Write to MH i2c: E2 08 00 B5 13 80 13 01 00 00 00 00 00 45 [22:38:31]Write i2c OK [22:38:31]MH_I2C_Read... [22:38:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:38:31]Read from MH i2c: E2 [22:38:31]MH_I2C_Read... [22:38:31]Read from MH i2c: E2 0E 00 [22:38:31]MH_I2C_Read... [22:38:31]Read from MH i2c: E2 0E 00 B5 13 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 58 [22:38:31]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [22:38:31]wFMCommunicate OK [22:38:31]SAM_PROTO_GetShiftState done [22:38:31]FM_GetShiftState done [22:38:31]opened in 1718929509 [22:38:31]opened+sec_in_day 1719015909 [22:38:31]quantity*price = 1318671 [22:38:31]sum+1 = 1318673 [22:38:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.72 ИТОГО: 13186.00 НСП 1% : 116.70 НДС 12% : 1400.36 Наличными: 13186.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 175 21.06.2024 22:38 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФД осн.: 104232 ФМ осн.: 0000000000875093 ФМ: 0000000000875093 ФД: 104252 ФПД: 94590326448121 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T223833&type=2&operation_type=1&fn_number=0000000000875093&fd_number=104252&fm=94590326448121&tin=02508201610067®Number=0000000000092785&sum=1318600 [22:38:32]StoreToDocumentArchive [22:38:32]shift 355 fd 104252 [22:38:32]save to /storage/0355/doc_00104252 [22:38:32]save last doc name /storage/0355/doc_00104252 to /storage/kkm_last_doc_name [22:38:32]save OK [22:38:32]Clear old archive folders... [22:38:32]ProcessDocumentItem done err = 0, tmpTLVsize=279 [22:38:32]tlvbuf is 00641CA0 [22:38:32]SAM_PROTO_ClearQueue [22:38:32]wFMCommunicate request_size=4 [22:38:32]MH_SAM_APDU [22:38:32]CAPDU: 80 09 00 00 [22:38:32]Write to MH i2c: E2 08 00 C4 13 80 09 00 00 00 00 00 00 49 [22:38:32]Write i2c OK [22:38:32]MH_I2C_Read... [22:38:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:38:32]Read from MH i2c: E2 [22:38:32]MH_I2C_Read... [22:38:32]Read from MH i2c: E2 03 00 [22:38:32]MH_I2C_Read... [22:38:32]Read from MH i2c: E2 03 00 C4 13 00 90 00 4B [22:38:32]RAPDU: 90 00 [22:38:32]wFMCommunicate OK [22:38:32]SAM_PROTO_ClearQueue done [22:38:32]KKMCreateOFDPacket [22:38:32]OFDProtocolAddRootSTLVToBuf [22:38:32]FM_MakeSignedData [22:38:32]FM_MakeSignedData [22:38:32]SAM_PROTO_SignData [22:38:32]wFMCommunicate request_size=4 [22:38:32]MH_SAM_APDU [22:38:32]CAPDU: 80 0D 01 02 [22:38:32]Write to MH i2c: E2 08 00 C5 13 80 0D 01 02 00 00 00 00 51 [22:38:32]Write i2c OK [22:38:32]MH_I2C_Read... [22:38:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:38:32]Read from MH i2c: E2 [22:38:32]MH_I2C_Read... [22:38:32]Read from MH i2c: E2 03 00 [22:38:32]MH_I2C_Read... [22:38:32]Read from MH i2c: E2 03 00 C5 13 00 90 00 4C [22:38:32]RAPDU: 90 00 [22:38:32]wFMCommunicate OK [22:38:32]wFMCommunicate request_size=255 [22:38:32]MH_SAM_APDU [22:38:32]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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 08 B9 02 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 10 1F 14 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 1E 14 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 2D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 04 23 02 00 00 00 07 04 06 00 C8 1E 14 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 E9 00 76 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 27 04 04 00 28 97 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 [22:38:32]Write to MH i2c: E2 02 01 C6 13 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 08 B9 02 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 10 1F 14 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 1E 14 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 2D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 04 23 02 00 00 00 07 04 06 00 C8 1E 14 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 E9 00 76 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 27 04 04 00 28 97 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 3F [22:38:32]Write i2c OK [22:38:32]MH_I2C_Read... [22:38:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:38:32]Read from MH i2c: E2 [22:38:32]MH_I2C_Read... [22:38:32]Read from MH i2c: E2 03 00 [22:38:32]MH_I2C_Read... [22:38:32]Read from MH i2c: E2 03 00 C6 13 00 90 00 4D [22:38:32]RAPDU: 90 00 [22:38:32]wFMCommunicate OK [22:38:32]wFMCommunicate request_size=38 [22:38:32]MH_SAM_APDU [22:38:32]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 3C 97 01 00 35 04 06 00 56 07 86 CE 9F F9 [22:38:32]Write to MH i2c: E2 29 00 C7 13 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 3C 97 01 00 35 04 06 00 56 07 86 CE 9F F9 00 00 FA [22:38:32]Write i2c OK [22:38:32]MH_I2C_Read... [22:38:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:38:33]Read from MH i2c: E2 [22:38:33]MH_I2C_Read... [22:38:33]Read from MH i2c: E2 03 00 [22:38:33]MH_I2C_Read... [22:38:33]Read from MH i2c: E2 03 00 C7 13 00 90 00 4E [22:38:33]RAPDU: 90 00 [22:38:33]wFMCommunicate OK [22:38:33]wFMCommunicate request_size=4 [22:38:33]MH_SAM_APDU [22:38:33]CAPDU: 80 0D 03 02 [22:38:33]Write to MH i2c: E2 08 00 C8 13 80 0D 03 02 00 00 00 00 56 [22:38:33]Write i2c OK [22:38:33]MH_I2C_Read... [22:38:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:38:33]Read from MH i2c: E2 [22:38:33]MH_I2C_Read... [22:38:33]Read from MH i2c: E2 0B 00 [22:38:33]MH_I2C_Read... [22:38:33]Read from MH i2c: E2 0B 00 C8 13 00 A3 AA 3C AE 3A BA EC AB 90 00 19 [22:38:33]RAPDU: A3 AA 3C AE 3A BA EC AB 90 00 [22:38:33]wFMCommunicate OK [22:38:33]SAM_PROTO_SignData done [22:38:33]FM_MakeSignedData done [22:38:33]CreateOFDProtocolMessage [22:38:33]wFMCommunicate request_size=4 [22:38:33]MH_SAM_APDU [22:38:33]CAPDU: 80 11 00 00 [22:38:33]Write to MH i2c: E2 08 00 C9 13 80 11 00 00 00 00 00 00 56 [22:38:33]Write i2c OK [22:38:33]MH_I2C_Read... [22:38:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:38:33]Read from MH i2c: E2 [22:38:33]MH_I2C_Read... [22:38:33]Read from MH i2c: E2 17 00 [22:38:33]MH_I2C_Read... [22:38:33]Read from MH i2c: E2 17 00 C9 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 A9 [22:38:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [22:38:33]wFMCommunicate OK [22:38:33]CreateOFDProtocolMessage done [22:38:33]OFDSenderStorePacket 104252 [22:38:33]StoreOFDPacket docnum=104252 [22:38: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 2B 01 00 00 92 02 23 01 CE 79 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 08 B9 02 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 10 1F 14 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 1E 14 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 2D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 04 23 02 00 00 00 07 04 06 00 C8 1E 14 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 E9 00 76 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 27 04 04 00 28 97 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 3C 97 01 00 35 04 06 00 56 07 86 CE 9F F9 A3 AA 3C AE 3A BA EC AB [22:38:33]CheckFolder [22:38:33]dirname=/storage/ofd_packets [22:38:33]CheckFolder done [22:38:33]ProducePacketName [22:38:33]name=ofd_packets/00104252 [22:38:33]NVStorageSaveData ofd_packets/00104252 [22:38:33]File name is /storage/ofd_packets/00104252 [22:38:33]Write 329 bytes [22:38:33]NVStorageSaveData done [22:38:33]OFDSenderStorePacket done [22:38:33]KKMCreateOFDPacket done [22:38:33]NVStorageSaveData kkm_last_timestamp [22:38:33]File name is /storage/kkm_last_timestamp [22:38:33]Write 4 bytes [22:38:33]NVStorageSaveData done [22:38:33]ExternCall_PrintAddStr [22:38:33]wPrintStart [22:38:33]Write to MH i2c: 01 00 00 CA 13 DD [22:38:33]Write i2c OK [22:38:33]MH_I2C_Read... [22:38:33]Read from MH i2c: 01 [22:38:33]MH_I2C_Read... [22:38:33]Read from MH i2c: 01 07 00 [22:38:33]MH_I2C_Read... [22:38:33]Read from MH i2c: 01 07 00 CA 13 00 00 00 00 00 FF 0F F2 [22:38:33]RasterBufferAndPrint [22:38:33]line Счет N : (1)673715 [22:38:33]line ИНН: 02508201610067 [22:38:33]line Контрольно-Кассовый Чек [22:38:33]line ВОЗВРАТ ПРОДАЖИ [22:38:33]line ТРК (МРК, ГНК) : 41 [22:38:33]line Товар: 2710124500 [22:38:33]line Аи-95-К-5 [22:38:33]line 178.440 * 73.90 [22:38:33]line = 13186.72 [22:38:33]line НДС 12% НСП 1% [22:38:33]line > о реализуемом товаре [22:38:33]line ОКРУГЛЕНИЕ: -0.72 [22:38:33]line ИТОГО: 13186.00 [22:38:33]line НСП 1% : 116.70 [22:38:33]line НДС 12% : 1400.36 [22:38:33]line Наличными: 13186.00 [22:38:33]line Безнал.: 0.00 [22:38:33]line Место: АЗС № 120 "Партнер Нефть" [22:38:33]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [22:38:33]line СНО: Общий режим [22:38:33]line Чек 175 21.06.2024 22:38 [22:38:33]line Смена: 355 ФФД: 1.0 [22:38:33]line ЗНМ: 0300000164 [22:38:33]line РНМ: 0000000000092785 [22:38:33]line Версия ККМ: 001 [22:38:33]line ФД осн.: 104232 [22:38:33]line ФМ осн.: 0000000000875093 [22:38:33]line ФМ: 0000000000875093 [22:38:33]line ФД: 104252 [22:38:33]line ФПД: 94590326448121 [22:38:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T223833&type=2&operation_type=1&fn_number=0000000000875093&fd_number=104252&fm=94590326448121&tin=02508201610067®Number=0000000000092785&sum=1318600 [22:38:33]OFD Sender: Processing packet 104252 [packets to send 17, broken 16] [22:38:33]ProducePacketName [22:38:33]name=ofd_packets/00104252 [22:38:33]OFD Sender: To server: pG, [22:38:33]CommunicateWithHost lk.salyk.kg:30040 [22:38:33]ConnectInit lk.salyk.kg [22:38:33]written 0, free lines is 4095 [22:38:33]Connected sock=10 [22:38: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 2B 01 00 00 92 02 23 01 CE 79 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 08 B9 02 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 10 1F 14 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 1E 14 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 2D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 04 23 02 00 00 00 07 04 06 00 C8 1E 14 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 E9 00 76 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 27 04 04 00 28 97 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 3C 97 01 00 35 04 06 00 56 07 86 CE 9F F9 A3 AA 3C AE 3A BA EC AB [22:38: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 82 44 47 00 88 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 3C 97 01 00 F4 03 04 00 6A A7 75 66 B6 04 01 00 00 19 F7 74 19 A7 61 D4 4C [22:38:33]CommunicateWithHost err = 0 [22:38:33]CheckOFDResponse [22:38:33]1017 (14) - 77093643461234 [22:38:33]1041 (16) - 0000000000875093 [22:38:33]1040 (4) - 104252 [22:38:33]1012 (4) - 21.06.2024 16:16 [22:38:33]1206 (1) - 0 [22:38:33]OFD Sender: Remove packet 104252 [22:38:33]ProducePacketName [22:38:33]name=ofd_packets/00104252 [22:38:33]NVStorageDeleteData [22:38:33]Write to MH i2c: 01 00 00 F5 13 08 [22:38:33]Write i2c OK [22:38:33]MH_I2C_Read... [22:38:33]Read from MH i2c: 01 [22:38:33]MH_I2C_Read... [22:38:33]Read from MH i2c: 01 07 00 [22:38:33]MH_I2C_Read... [22:38:33]Read from MH i2c: 01 07 00 F5 13 00 00 00 00 00 F9 0C 14 [22:38:33]RasterBufferAndPrint [22:38:33]line [22:38:33]line [22:38:33]line [22:38:33]line [22:38:33]line [22:38:33]written 0, free lines is 3327 [22:38:33]MH_Cut [22:38:33]Write to MH i2c: D1 01 00 FC 13 01 E1 [22:38:33]Write i2c OK [22:38:33]MH_I2C_Read... [22:38:33]Read from MH i2c: D1 [22:38:33]MH_I2C_Read... [22:38:33]Read from MH i2c: D1 01 00 [22:38:33]MH_I2C_Read... [22:38:33]Read from MH i2c: D1 01 00 FC 13 00 E0 [22:38:33]Write to MH i2c: 01 00 00 FD 13 10 [22:38:33]Write i2c OK [22:38:33]MH_I2C_Read... [22:38:34]OFD Sender: No OFD packet to send [22:38:34]*** Cut start [22:38:34]*** Partial cut [22:38:34]*** CUTSNS_PIN = 1 [22:38:34]*** CUTSNS_PIN = 0 [22:38:34]*** Brake cut motor [22:38:35]Read from MH i2c: 01 [22:38:35]MH_I2C_Read... [22:38:35]*** Stop cut motor [22:38:35]*** Cut end [22:38:35]Read from MH i2c: 01 07 00 [22:38:35]MH_I2C_Read... [22:38:35]Read from MH i2c: 01 07 00 FD 13 00 00 00 00 00 FF 0F 25 [22:38:35]process_action close_receipt done [22:38:35]requested_data is exist [22:38:35]produce_requested_data [22:38:35]requested_item fm.sn is exist - process it [22:38:35]wFMCommunicate request_size=4 [22:38:35]MH_SAM_APDU [22:38:35]CAPDU: 80 11 00 00 [22:38:35]Write to MH i2c: E2 08 00 FE 13 80 11 00 00 00 00 00 00 8B [22:38:35]Write i2c OK [22:38:35]MH_I2C_Read... [22:38:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:38:35]Read from MH i2c: E2 [22:38:35]MH_I2C_Read... [22:38:35]Read from MH i2c: E2 17 00 [22:38:35]MH_I2C_Read... [22:38:35]Read from MH i2c: E2 17 00 FE 13 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:38:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [22:38:35]wFMCommunicate OK [22:38:35]requested_item fd.num is exist - process it [22:38:35]SAM_PROTO_GetFieldsCounters [22:38:35]wFMCommunicate request_size=4 [22:38:35]MH_SAM_APDU [22:38:35]CAPDU: 80 13 00 00 [22:38:35]Write to MH i2c: E2 08 00 FF 13 80 13 00 00 00 00 00 00 8E [22:38:35]Write i2c OK [22:38:35]MH_I2C_Read... [22:38:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:38:35]Read from MH i2c: E2 [22:38:35]MH_I2C_Read... [22:38:35]Read from MH i2c: E2 62 00 [22:38:35]MH_I2C_Read... [22:38:35]Read from MH i2c: E2 62 00 FF 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 3C 97 01 00 0E 04 04 00 63 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 FA [22:38: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 3C 97 01 00 0E 04 04 00 63 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 [22:38:35]wFMCommunicate OK [22:38:35]SAM_PROTO_GetFieldsCounters done [22:38:35]requested_item shift.num is exist - process it [22:38:35]requested_item shift.opened is exist - process it [22:38:35]req_shift_opened [22:38:35]FM_GetShiftState [22:38:35]SAM_PROTO_GetShiftState [22:38:35]wFMCommunicate request_size=4 [22:38:35]MH_SAM_APDU [22:38:35]CAPDU: 80 13 01 00 [22:38:35]Write to MH i2c: E2 08 00 00 14 80 13 01 00 00 00 00 00 91 [22:38:35]Write i2c OK [22:38:35]MH_I2C_Read... [22:38:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:38:35]Read from MH i2c: E2 [22:38:35]MH_I2C_Read... [22:38:35]Read from MH i2c: E2 0E 00 [22:38:35]MH_I2C_Read... [22:38:35]Read from MH i2c: E2 0E 00 00 14 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 A4 [22:38:35]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [22:38:35]wFMCommunicate OK [22:38:35]SAM_PROTO_GetShiftState done [22:38:35]FM_GetShiftState done [22:38:35]req_shift_opened done [22:38:35]requested_item shift.open_date is exist - process it [22:38:35]req_shift_open_date [22:38:35]req_shift_open_date done [22:38:35]produce_requested_data done [22:38:35]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104252,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [22:38:35]process_action_free close_receipt [22:38:35]json_value_free [22:38:35]json_value_free done [22:38:35]process_json_proto returns [22:38:35]Send response to host [22:38:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104252,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [22:38:35]free response buf [22:38:35]execute_script done [22:38:35]execute_script returns [22:38:35]free content buf [22:38:35]Sock 9.Close socket [22:38:35]Sock 9.Thread stoped [22:38:39]OFD Sender: No OFD packet to send [22:38:44]OFD Sender: No OFD packet to send [22:38:49]OFD Sender: No OFD packet to send [22:38:54]OFD Sender: No OFD packet to send [22:38:59]OFD Sender: No OFD packet to send [22:39:04]OFD Sender: No OFD packet to send [22:39:09]OFD Sender: No OFD packet to send [22:39:14]OFD Sender: No OFD packet to send [22:39:19]OFD Sender: No OFD packet to send [22:39:24]OFD Sender: No OFD packet to send [22:39:29]OFD Sender: No OFD packet to send [22:39:34]OFD Sender: No OFD packet to send [22:39:39]OFD Sender: No OFD packet to send [22:39:44]OFD Sender: No OFD packet to send [22:39:49]OFD Sender: No OFD packet to send [22:39:54]OFD Sender: No OFD packet to send [22:39:59]OFD Sender: No OFD packet to send [22:40:04]OFD Sender: No OFD packet to send [22:40:09]OFD Sender: No OFD packet to send [22:40:14]OFD Sender: No OFD packet to send [22:40:19]OFD Sender: No OFD packet to send [22:40:24]OFD Sender: No OFD packet to send [22:40:29]OFD Sender: No OFD packet to send [22:40:34]OFD Sender: No OFD packet to send [22:40:39]OFD Sender: No OFD packet to send [22:40:44]OFD Sender: No OFD packet to send [22:40:49]OFD Sender: No OFD packet to send [22:40:54]OFD Sender: No OFD packet to send [22:40:59]OFD Sender: No OFD packet to send [22:41:04]OFD Sender: No OFD packet to send [22:41:09]OFD Sender: No OFD packet to send [22:41:14]OFD Sender: No OFD packet to send [22:41:19]OFD Sender: No OFD packet to send [22:41:24]OFD Sender: No OFD packet to send [22:41:29]OFD Sender: No OFD packet to send [22:41:34]OFD Sender: No OFD packet to send [22:41:39]OFD Sender: No OFD packet to send [22:41:44]OFD Sender: No OFD packet to send [22:41:49]OFD Sender: No OFD packet to send [22:41:54]OFD Sender: No OFD packet to send [22:41:59]OFD Sender: No OFD packet to send [22:42:04]OFD Sender: No OFD packet to send [22:42:09]OFD Sender: No OFD packet to send [22:42:14]OFD Sender: No OFD packet to send [22:42:19]OFD Sender: No OFD packet to send [22:42:24]OFD Sender: No OFD packet to send [22:42:29]OFD Sender: No OFD packet to send [22:42:34]OFD Sender: No OFD packet to send [22:42:39]OFD Sender: No OFD packet to send [22:42:44]OFD Sender: No OFD packet to send [22:42:49]OFD Sender: No OFD packet to send [22:42:54]OFD Sender: No OFD packet to send [22:42:59]OFD Sender: No OFD packet to send [22:43:04]OFD Sender: No OFD packet to send [22:43:09]OFD Sender: No OFD packet to send [22:43:14]OFD Sender: No OFD packet to send [22:43:19]OFD Sender: No OFD packet to send [22:43:24]OFD Sender: No OFD packet to send [22:43:29]OFD Sender: No OFD packet to send [22:43:34]OFD Sender: No OFD packet to send [22:43:39]OFD Sender: No OFD packet to send [22:43:44]OFD Sender: No OFD packet to send [22:43:49]OFD Sender: No OFD packet to send [22:43:54]OFD Sender: No OFD packet to send [22:43:58]accept exits with 7 [22:43:58]New connection [22:43:58]New thread 3067473252 created [22:43:58]Thread 3067616612 joined [22:43:58]Waiting for new connection... [22:43:58] Sock 7.Parse request [22:43:58]Sock 7.Check first char [22:43:58]Sock 7.First char is OK [22:43:58]request: POST /json_proto HTTP/1.0 [22:43:58]Method: POST [22:43:58]URL: /json_proto [22:43:58]Method is POST - this is cgi request [22:43:58]url: /json_proto [22:43:58]query_string will be loaded in cgi processing [22:43:58]execute_cgi json_proto POST (null) [22:43:58]execute_cgi path=json_proto method=POST [22:43:58]POST find Content-Length [22:43:58]Host: 172.17.38.133:8080 [22:43:58]Content-Length: 1160 [22:43:58]Content-Type: application/json [22:43:58] [22:43:58]POST finish read [22:43:58]Found Content-Length = 1160 [22:43: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 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)673741\u000A21.06.2024 22:21\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 6.040 x 72.90\u000A\u0418\u0422\u041E\u0413: 440.32\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30147393\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:43:58]execute_script... [22:43: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 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)673741\u000A21.06.2024 22:21\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 6.040 x 72.90\u000A\u0418\u0422\u041E\u0413: 440.32\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30147393\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:43:58]POST & json_proto [22:43:58]process_json_proto [22:43:58]json parsed OK: [22:43:58]protocol is kg_v1.0 [22:43:58]action value=print_text [22:43:58]process_action print_text [22:43:58]cmd_print_text [22:43:58]ExternCall_PrintAddStr [22:43:58]wPrintStart [22:43:58]Write to MH i2c: 01 00 00 01 14 15 [22:43:58]Write i2c OK [22:43:58]MH_I2C_Read... [22:43:58]Read from MH i2c: 01 [22:43:58]MH_I2C_Read... [22:43:58]Read from MH i2c: 01 07 00 [22:43:58]MH_I2C_Read... [22:43:58]Read from MH i2c: 01 07 00 01 14 00 00 00 00 00 FF 0F 2A [22:43:58]RasterBufferAndPrint [22:43:58]line *****ТОВАРНЫЙ ЧЕК***** [22:43:58]line АЗС 120 [22:43:58]line Партнер нефть [22:43:58]line 02508201610067 [22:43:58]line Кассир : Асанбаев Н. [22:43:58]line Счет N : (1)673741 [22:43:58]line 21.06.2024 22:21 [22:43:58]line ПРОДАЖА [22:43:58]line ТРК (МРК, ГНК): 11 [22:43:58]line Вид ГСМ : 2710194210 [22:43:58]line ДТ(л)-К-5 [22:43:58]line 6.040 x 72.90 [22:43:58]line ИТОГ: 440.32 [22:43:58]line Тип оплаты: Талоны: ТК ГПНА Online [22:43:58]line 30147393 [22:43:58]line ______________________ [22:43:58]line (подпись) [22:43:58]written 0, free lines is 4095 [22:43:59]Write to MH i2c: 01 00 00 15 14 29 [22:43:59]Write i2c OK [22:43:59]MH_I2C_Read... [22:43:59]Read from MH i2c: 01 [22:43:59]MH_I2C_Read... [22:43:59]Read from MH i2c: 01 07 00 [22:43:59]MH_I2C_Read... [22:43:59]Read from MH i2c: 01 07 00 15 14 00 00 00 00 00 0D 0E 4B [22:43:59]RasterBufferAndPrint [22:43:59]line [22:43:59]line [22:43:59]line [22:43:59]line [22:43:59]line [22:43:59]written 0, free lines is 3599 [22:43:59]MH_Cut [22:43:59]Write to MH i2c: D1 01 00 1C 14 01 02 [22:43:59]Write i2c OK [22:43:59]MH_I2C_Read... [22:43:59]Read from MH i2c: D1 [22:43:59]MH_I2C_Read... [22:43:59]Read from MH i2c: D1 01 00 [22:43:59]MH_I2C_Read... [22:43:59]Read from MH i2c: D1 01 00 1C 14 00 01 [22:43:59]Write to MH i2c: 01 00 00 1D 14 31 [22:43:59]Write i2c OK [22:43:59]MH_I2C_Read... [22:43:59]OFD Sender: No OFD packet to send [22:43:59]*** Cut start [22:43:59]*** Partial cut [22:43:59]*** CUTSNS_PIN = 1 [22:43:59]*** CUTSNS_PIN = 0 [22:43:59]*** Brake cut motor [22:44:00]Read from MH i2c: 01 [22:44:00]MH_I2C_Read... [22:44:00]Read from MH i2c: 01 07 00 [22:44:00]MH_I2C_Read... [22:44:00]*** Stop cut motor [22:44:00]*** Cut end [22:44:00]Read from MH i2c: 01 07 00 1D 14 00 00 00 00 00 FF 0F 46 [22:44:00]process_action print_text done [22:44:00]requested_data is exist [22:44:00]produce_requested_data [22:44:00]requested_item fm.sn is exist - process it [22:44:00]wFMCommunicate request_size=4 [22:44:00]MH_SAM_APDU [22:44:00]CAPDU: 80 11 00 00 [22:44:00]Write to MH i2c: E2 08 00 1E 14 80 11 00 00 00 00 00 00 AC [22:44:00]Write i2c OK [22:44:00]MH_I2C_Read... [22:44:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:44:00]Read from MH i2c: E2 [22:44:00]MH_I2C_Read... [22:44:00]Read from MH i2c: E2 17 00 [22:44:00]MH_I2C_Read... [22:44:00]Read from MH i2c: E2 17 00 1E 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 FF [22:44:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [22:44:00]wFMCommunicate OK [22:44:00]requested_item fd.num is exist - process it [22:44:00]SAM_PROTO_GetFieldsCounters [22:44:00]wFMCommunicate request_size=4 [22:44:00]MH_SAM_APDU [22:44:00]CAPDU: 80 13 00 00 [22:44:00]Write to MH i2c: E2 08 00 1F 14 80 13 00 00 00 00 00 00 AF [22:44:00]Write i2c OK [22:44:00]MH_I2C_Read... [22:44:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:44:00]Read from MH i2c: E2 [22:44:00]MH_I2C_Read... [22:44:00]Read from MH i2c: E2 62 00 [22:44:00]MH_I2C_Read... [22:44:00]Read from MH i2c: E2 62 00 1F 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 3C 97 01 00 0E 04 04 00 63 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 1B [22:44: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 3C 97 01 00 0E 04 04 00 63 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 [22:44:00]wFMCommunicate OK [22:44:00]SAM_PROTO_GetFieldsCounters done [22:44:00]requested_item shift.num is exist - process it [22:44:00]requested_item shift.opened is exist - process it [22:44:00]req_shift_opened [22:44:00]FM_GetShiftState [22:44:00]SAM_PROTO_GetShiftState [22:44:00]wFMCommunicate request_size=4 [22:44:00]MH_SAM_APDU [22:44:00]CAPDU: 80 13 01 00 [22:44:00]Write to MH i2c: E2 08 00 20 14 80 13 01 00 00 00 00 00 B1 [22:44:00]Write i2c OK [22:44:00]MH_I2C_Read... [22:44:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:44:00]Read from MH i2c: E2 [22:44:00]MH_I2C_Read... [22:44:00]Read from MH i2c: E2 0E 00 [22:44:00]MH_I2C_Read... [22:44:00]Read from MH i2c: E2 0E 00 20 14 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 C4 [22:44:00]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [22:44:00]wFMCommunicate OK [22:44:00]SAM_PROTO_GetShiftState done [22:44:00]FM_GetShiftState done [22:44:00]req_shift_opened done [22:44:00]requested_item shift.open_date is exist - process it [22:44:00]req_shift_open_date [22:44:00]req_shift_open_date done [22:44:00]produce_requested_data done [22:44:00]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104252,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [22:44:00]process_action_free print_text [22:44:00]json_value_free [22:44:00]json_value_free done [22:44:00]process_json_proto returns [22:44:00]Send response to host [22:44:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104252,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [22:44:00]free response buf [22:44:00]execute_script done [22:44:00]execute_script returns [22:44:00]free content buf [22:44:00]Sock 7.Close socket [22:44:00]Sock 7.Thread stoped [22:44:04]OFD Sender: No OFD packet to send [22:44:09]OFD Sender: No OFD packet to send [22:44:14]OFD Sender: No OFD packet to send [22:44:19]OFD Sender: No OFD packet to send [22:44:24]OFD Sender: No OFD packet to send [22:44:29]OFD Sender: No OFD packet to send [22:44:34]OFD Sender: No OFD packet to send [22:44:39]OFD Sender: No OFD packet to send [22:44:44]OFD Sender: No OFD packet to send [22:44:49]OFD Sender: No OFD packet to send [22:44:54]OFD Sender: No OFD packet to send [22:44:59]OFD Sender: No OFD packet to send [22:45:04]OFD Sender: No OFD packet to send [22:45:09]OFD Sender: No OFD packet to send [22:45:14]OFD Sender: No OFD packet to send [22:45:19]OFD Sender: No OFD packet to send [22:45:24]OFD Sender: No OFD packet to send [22:45:29]OFD Sender: No OFD packet to send [22:45:34]OFD Sender: No OFD packet to send [22:45:39]OFD Sender: No OFD packet to send [22:45:44]OFD Sender: No OFD packet to send [22:45:49]OFD Sender: No OFD packet to send [22:45:53]accept exits with 9 [22:45:53]New connection [22:45:53]New thread 3067616612 created [22:45:53]Thread 3067473252 joined [22:45:53]Waiting for new connection... [22:45:53] Sock 9.Parse request [22:45:53]Sock 9.Check first char [22:45:53]Sock 9.First char is OK [22:45:53]request: POST /json_proto HTTP/1.0 [22:45:53]Method: POST [22:45:53]URL: /json_proto [22:45:53]Method is POST - this is cgi request [22:45:53]url: /json_proto [22:45:53]query_string will be loaded in cgi processing [22:45:53]execute_cgi json_proto POST (null) [22:45:53]execute_cgi path=json_proto method=POST [22:45:53]POST find Content-Length [22:45:53]Host: 172.17.38.133:8080 [22:45:53]Content-Length: 682 [22:45:53]Content-Type: application/json [22:45:53] [22:45:53]POST finish read [22:45:53]Found Content-Length = 682 [22:45:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673742", "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" ] } } [22:45:53]execute_script... [22:45:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673742", "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" ] } } [22:45:53]POST & json_proto [22:45:53]process_json_proto [22:45:53]json parsed OK: [22:45:53]protocol is kg_v1.0 [22:45:53]action value=close_receipt [22:45:53]process_action close_receipt [22:45:53]cmd_close_receipt [22:45:53]MH_GetDate [22:45:53]Write to MH i2c: F0 00 00 21 14 24 [22:45:53]Write i2c OK [22:45:53]MH_I2C_Read... [22:45:53]Read from MH i2c: F0 [22:45:53]MH_I2C_Read... [22:45:53]Read from MH i2c: F0 09 00 [22:45:53]MH_I2C_Read... [22:45:53]Read from MH i2c: F0 09 00 21 14 00 A2 02 76 66 BD 8F 7C 64 D9 [22:45:53]GetLastDocTimeStamp 1719009513 [22:45:53]current date 1719009954 [22:45:53]FM_GetShiftState [22:45:53]SAM_PROTO_GetShiftState [22:45:53]wFMCommunicate request_size=4 [22:45:53]MH_SAM_APDU [22:45:53]CAPDU: 80 13 01 00 [22:45:53]Write to MH i2c: E2 08 00 22 14 80 13 01 00 00 00 00 00 B3 [22:45:53]Write i2c OK [22:45:53]MH_I2C_Read... [22:45:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:45:53]Read from MH i2c: E2 [22:45:53]MH_I2C_Read... [22:45:53]Read from MH i2c: E2 0E 00 [22:45:53]MH_I2C_Read... [22:45:53]Read from MH i2c: E2 0E 00 22 14 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 C6 [22:45:53]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [22:45:53]wFMCommunicate OK [22:45:53]SAM_PROTO_GetShiftState done [22:45:53]FM_GetShiftState done [22:45:53]opened in 1718929509 [22:45:53]opened+sec_in_day 1719015909 [22:45:53]quantity*price = 100060 [22:45:53]sum+1 = 100062 [22:45:53]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 СНО: Общий режим Чек 176 21.06.2024 22:45 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104253 ФПД: 115381098272955 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T224554&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104253&fm=115381098272955&tin=02508201610067®Number=0000000000092785&sum=100000 [22:45:54]StoreToDocumentArchive [22:45:54]shift 355 fd 104253 [22:45:54]save to /storage/0355/doc_00104253 [22:45:54]save last doc name /storage/0355/doc_00104253 to /storage/kkm_last_doc_name [22:45:54]save OK [22:45:54]Clear old archive folders... [22:45:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:45:54]tlvbuf is 006CAE50 [22:45:54]SAM_PROTO_ClearQueue [22:45:54]wFMCommunicate request_size=4 [22:45:54]MH_SAM_APDU [22:45:54]CAPDU: 80 09 00 00 [22:45:54]Write to MH i2c: E2 08 00 2F 14 80 09 00 00 00 00 00 00 B5 [22:45:54]Write i2c OK [22:45:54]MH_I2C_Read... [22:45:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:45:54]Read from MH i2c: E2 [22:45:54]MH_I2C_Read... [22:45:54]Read from MH i2c: E2 03 00 [22:45:54]MH_I2C_Read... [22:45:54]Read from MH i2c: E2 03 00 2F 14 00 90 00 B7 [22:45:54]RAPDU: 90 00 [22:45:54]wFMCommunicate OK [22:45:54]SAM_PROTO_ClearQueue done [22:45:54]KKMCreateOFDPacket [22:45:54]OFDProtocolAddRootSTLVToBuf [22:45:54]FM_MakeSignedData [22:45:54]FM_MakeSignedData [22:45:54]SAM_PROTO_SignData [22:45:54]wFMCommunicate request_size=4 [22:45:54]MH_SAM_APDU [22:45:54]CAPDU: 80 0D 01 02 [22:45:54]Write to MH i2c: E2 08 00 30 14 80 0D 01 02 00 00 00 00 BD [22:45:54]Write i2c OK [22:45:54]MH_I2C_Read... [22:45:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:45:54]Read from MH i2c: E2 [22:45:54]MH_I2C_Read... [22:45:54]Read from MH i2c: E2 03 00 [22:45:54]MH_I2C_Read... [22:45:54]Read from MH i2c: E2 03 00 30 14 00 90 00 B8 [22:45:54]RAPDU: 90 00 [22:45:54]wFMCommunicate OK [22:45:54]wFMCommunicate request_size=255 [22:45:54]MH_SAM_APDU [22:45:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 B0 00 00 00 F4 03 04 00 A2 02 76 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 3D 97 01 00 35 04 06 00 68 [22:45:54]Write to MH i2c: E2 02 01 31 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 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 B0 00 00 00 F4 03 04 00 A2 02 76 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 3D 97 01 00 35 04 06 00 68 00 00 89 [22:45:54]Write i2c OK [22:45:54]MH_I2C_Read... [22:45:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:45:54]Read from MH i2c: E2 [22:45:54]MH_I2C_Read... [22:45:54]Read from MH i2c: E2 03 00 [22:45:54]MH_I2C_Read... [22:45:54]Read from MH i2c: E2 03 00 31 14 00 90 00 B9 [22:45:54]RAPDU: 90 00 [22:45:54]wFMCommunicate OK [22:45:54]wFMCommunicate request_size=10 [22:45:54]MH_SAM_APDU [22:45:54]CAPDU: 80 0D 02 02 05 F0 41 60 58 BB [22:45:54]Write to MH i2c: E2 0D 00 32 14 80 0D 02 02 05 00 F0 41 60 58 BB 00 00 6E [22:45:54]Write i2c OK [22:45:54]MH_I2C_Read... [22:45:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:45:54]Read from MH i2c: E2 [22:45:54]MH_I2C_Read... [22:45:54]Read from MH i2c: E2 03 00 [22:45:54]MH_I2C_Read... [22:45:54]Read from MH i2c: E2 03 00 32 14 00 90 00 BA [22:45:54]RAPDU: 90 00 [22:45:54]wFMCommunicate OK [22:45:54]wFMCommunicate request_size=4 [22:45:54]MH_SAM_APDU [22:45:54]CAPDU: 80 0D 03 02 [22:45:54]Write to MH i2c: E2 08 00 33 14 80 0D 03 02 00 00 00 00 C2 [22:45:54]Write i2c OK [22:45:54]MH_I2C_Read... [22:45:54]OFD Sender: No OFD packet to send [22:45:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:45:54]Read from MH i2c: E2 [22:45:54]MH_I2C_Read... [22:45:54]Read from MH i2c: E2 0B 00 [22:45:54]MH_I2C_Read... [22:45:54]Read from MH i2c: E2 0B 00 33 14 00 91 42 07 C8 17 10 48 D9 90 00 AD [22:45:54]RAPDU: 91 42 07 C8 17 10 48 D9 90 00 [22:45:54]wFMCommunicate OK [22:45:54]SAM_PROTO_SignData done [22:45:54]FM_MakeSignedData done [22:45:54]CreateOFDProtocolMessage [22:45:54]wFMCommunicate request_size=4 [22:45:54]MH_SAM_APDU [22:45:54]CAPDU: 80 11 00 00 [22:45:54]Write to MH i2c: E2 08 00 34 14 80 11 00 00 00 00 00 00 C2 [22:45:54]Write i2c OK [22:45:54]MH_I2C_Read... [22:45:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:45:54]Read from MH i2c: E2 [22:45:54]MH_I2C_Read... [22:45:54]Read from MH i2c: E2 17 00 [22:45:54]MH_I2C_Read... [22:45:54]Read from MH i2c: E2 17 00 34 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 15 [22:45:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [22:45:54]wFMCommunicate OK [22:45:54]CreateOFDProtocolMessage done [22:45:54]OFDSenderStorePacket 104253 [22:45:54]StoreOFDPacket docnum=104253 [22:45: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 85 2F 07 01 54 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 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 B0 00 00 00 F4 03 04 00 A2 02 76 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 3D 97 01 00 35 04 06 00 68 F0 41 60 58 BB 91 42 07 C8 17 10 48 D9 [22:45:54]CheckFolder [22:45:54]dirname=/storage/ofd_packets [22:45:54]CheckFolder done [22:45:54]ProducePacketName [22:45:54]name=ofd_packets/00104253 [22:45:54]NVStorageSaveData ofd_packets/00104253 [22:45:54]File name is /storage/ofd_packets/00104253 [22:45:54]Write 301 bytes [22:45:54]NVStorageSaveData done [22:45:54]OFDSenderStorePacket done [22:45:54]KKMCreateOFDPacket done [22:45:54]NVStorageSaveData kkm_last_timestamp [22:45:54]File name is /storage/kkm_last_timestamp [22:45:54]Write 4 bytes [22:45:54]NVStorageSaveData done [22:45:54]ExternCall_PrintAddStr [22:45:54]wPrintStart [22:45:54]Write to MH i2c: 01 00 00 35 14 49 [22:45:54]Write i2c OK [22:45:54]MH_I2C_Read... [22:45:54]Read from MH i2c: 01 [22:45:54]MH_I2C_Read... [22:45:54]Read from MH i2c: 01 07 00 [22:45:54]MH_I2C_Read... [22:45:54]Read from MH i2c: 01 07 00 35 14 00 00 00 00 00 FF 0F 5E [22:45:54]RasterBufferAndPrint [22:45:54]line Счет N : (1)673742 [22:45:54]line ИНН: 02508201610067 [22:45:54]line Контрольно-Кассовый Чек [22:45:54]line ПРОДАЖА [22:45:54]line ТРК (МРК, ГНК) : 31 [22:45:54]line Товар: 2710124500 [22:45:54]line Аи-95-К-5 [22:45:54]line 13.540 * 73.90 [22:45:54]line = 1000.61 [22:45:54]line НДС 12% НСП 1% [22:45:54]line > о реализуемом товаре [22:45:54]line ОКРУГЛЕНИЕ: -0.61 [22:45:54]line ИТОГО: 1000.00 [22:45:54]line Внесено: 1000.00 [22:45:54]line СДАЧА: 0.00 [22:45:54]line НСП 1% : 8.85 [22:45:54]line НДС 12% : 106.26 [22:45:54]line Наличными: 1000.00 [22:45:54]line Безнал.: 0.00 [22:45:54]line Место: АЗС № 120 "Партнер Нефть" [22:45:54]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [22:45:54]line СНО: Общий режим [22:45:54]line Чек 176 21.06.2024 22:45 [22:45:54]line Смена: 355 ФФД: 1.0 [22:45:54]line ЗНМ: 0300000164 [22:45:54]line РНМ: 0000000000092785 [22:45:54]line Версия ККМ: 001 [22:45:54]line ФМ: 0000000000875093 [22:45:54]line ФД: 104253 [22:45:54]line ФПД: 115381098272955 [22:45:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T224554&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104253&fm=115381098272955&tin=02508201610067®Number=0000000000092785&sum=100000 [22:45:55]OFD Sender: Processing packet 104253 [packets to send 17, broken 16] [22:45:55]ProducePacketName [22:45:55]name=ofd_packets/00104253 [22:45:55]OFD Sender: To server: pG, [22:45:55]CommunicateWithHost lk.salyk.kg:30040 [22:45:55]ConnectInit lk.salyk.kg [22:45:55]written 0, free lines is 4095 [22:45:55]Connected sock=10 [22:45:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 85 2F 07 01 54 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 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 B0 00 00 00 F4 03 04 00 A2 02 76 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 3D 97 01 00 35 04 06 00 68 F0 41 60 58 BB 91 42 07 C8 17 10 48 D9 [22:45: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 E4 B1 47 00 D8 A1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 3D 97 01 00 F4 03 04 00 24 A9 75 66 B6 04 01 00 00 14 9C E7 98 DC 80 01 07 [22:45:55]CommunicateWithHost err = 0 [22:45:55]CheckOFDResponse [22:45:55]1017 (14) - 77093643461234 [22:45:55]1041 (16) - 0000000000875093 [22:45:55]1040 (4) - 104253 [22:45:55]1012 (4) - 21.06.2024 16:24 [22:45:55]1206 (1) - 0 [22:45:55]OFD Sender: Remove packet 104253 [22:45:55]ProducePacketName [22:45:55]name=ofd_packets/00104253 [22:45:55]NVStorageDeleteData [22:45:55]Write to MH i2c: 01 00 00 60 14 74 [22:45:55]Write i2c OK [22:45:55]MH_I2C_Read... [22:45:55]Read from MH i2c: 01 [22:45:55]MH_I2C_Read... [22:45:55]Read from MH i2c: 01 07 00 [22:45:55]MH_I2C_Read... [22:45:55]Read from MH i2c: 01 07 00 60 14 00 00 00 00 00 D9 0C 60 [22:45:55]RasterBufferAndPrint [22:45:55]line [22:45:55]line [22:45:55]line [22:45:55]line [22:45:55]line [22:45:55]written 0, free lines is 3297 [22:45:55]MH_Cut [22:45:55]Write to MH i2c: D1 01 00 67 14 01 4D [22:45:55]Write i2c OK [22:45:55]MH_I2C_Read... [22:45:55]Read from MH i2c: D1 [22:45:55]MH_I2C_Read... [22:45:55]Read from MH i2c: D1 01 00 [22:45:55]MH_I2C_Read... [22:45:55]Read from MH i2c: D1 01 00 67 14 00 4C [22:45:55]Write to MH i2c: 01 00 00 68 14 7C [22:45:55]Write i2c OK [22:45:55]MH_I2C_Read... [22:45:56]OFD Sender: No OFD packet to send [22:45:56]*** Cut start [22:45:56]*** Partial cut [22:45:56]*** CUTSNS_PIN = 1 [22:45:56]*** CUTSNS_PIN = 0 [22:45:56]*** Brake cut motor [22:45:56]Read from MH i2c: 01 [22:45:56]MH_I2C_Read... [22:45:56]*** Stop cut motor [22:45:56]*** Cut end [22:45:56]Read from MH i2c: 01 07 00 [22:45:56]MH_I2C_Read... [22:45:56]Read from MH i2c: 01 07 00 68 14 00 00 00 00 00 FF 0F 91 [22:45:56]process_action close_receipt done [22:45:56]requested_data is exist [22:45:56]produce_requested_data [22:45:56]requested_item fm.sn is exist - process it [22:45:56]wFMCommunicate request_size=4 [22:45:56]MH_SAM_APDU [22:45:56]CAPDU: 80 11 00 00 [22:45:56]Write to MH i2c: E2 08 00 69 14 80 11 00 00 00 00 00 00 F7 [22:45:56]Write i2c OK [22:45:56]MH_I2C_Read... [22:45:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:45:57]Read from MH i2c: E2 [22:45:57]MH_I2C_Read... [22:45:57]Read from MH i2c: E2 17 00 [22:45:57]MH_I2C_Read... [22:45:57]Read from MH i2c: E2 17 00 69 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 4A [22:45: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:45:57]wFMCommunicate OK [22:45:57]requested_item fd.num is exist - process it [22:45:57]SAM_PROTO_GetFieldsCounters [22:45:57]wFMCommunicate request_size=4 [22:45:57]MH_SAM_APDU [22:45:57]CAPDU: 80 13 00 00 [22:45:57]Write to MH i2c: E2 08 00 6A 14 80 13 00 00 00 00 00 00 FA [22:45:57]Write i2c OK [22:45:57]MH_I2C_Read... [22:45:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:45:57]Read from MH i2c: E2 [22:45:57]MH_I2C_Read... [22:45:57]Read from MH i2c: E2 62 00 [22:45:57]MH_I2C_Read... [22:45:57]Read from MH i2c: E2 62 00 6A 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 3D 97 01 00 0E 04 04 00 63 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 6A [22:45: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 3D 97 01 00 0E 04 04 00 63 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 [22:45:57]wFMCommunicate OK [22:45:57]SAM_PROTO_GetFieldsCounters done [22:45:57]requested_item shift.num is exist - process it [22:45:57]requested_item shift.opened is exist - process it [22:45:57]req_shift_opened [22:45:57]FM_GetShiftState [22:45:57]SAM_PROTO_GetShiftState [22:45:57]wFMCommunicate request_size=4 [22:45:57]MH_SAM_APDU [22:45:57]CAPDU: 80 13 01 00 [22:45:57]Write to MH i2c: E2 08 00 6B 14 80 13 01 00 00 00 00 00 FC [22:45:57]Write i2c OK [22:45:57]MH_I2C_Read... [22:45:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:45:57]Read from MH i2c: E2 [22:45:57]MH_I2C_Read... [22:45:57]Read from MH i2c: E2 0E 00 [22:45:57]MH_I2C_Read... [22:45:57]Read from MH i2c: E2 0E 00 6B 14 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 0F [22:45:57]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [22:45:57]wFMCommunicate OK [22:45:57]SAM_PROTO_GetShiftState done [22:45:57]FM_GetShiftState done [22:45:57]req_shift_opened done [22:45:57]requested_item shift.open_date is exist - process it [22:45:57]req_shift_open_date [22:45:57]req_shift_open_date done [22:45:57]produce_requested_data done [22:45:57]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104253,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [22:45:57]process_action_free close_receipt [22:45:57]json_value_free [22:45:57]json_value_free done [22:45:57]process_json_proto returns [22:45:57]Send response to host [22:45:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104253,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [22:45:57]free response buf [22:45:57]execute_script done [22:45:57]execute_script returns [22:45:57]free content buf [22:45:57]Sock 9.Close socket [22:45:57]Sock 9.Thread stoped [22:46:01]OFD Sender: No OFD packet to send [22:46:06]OFD Sender: No OFD packet to send [22:46:11]OFD Sender: No OFD packet to send [22:46:16]OFD Sender: No OFD packet to send [22:46:21]OFD Sender: No OFD packet to send [22:46:26]OFD Sender: No OFD packet to send [22:46:31]OFD Sender: No OFD packet to send [22:46:36]OFD Sender: No OFD packet to send [22:46:41]OFD Sender: No OFD packet to send [22:46:46]OFD Sender: No OFD packet to send [22:46:51]OFD Sender: No OFD packet to send [22:46:56]OFD Sender: No OFD packet to send [22:47:01]OFD Sender: No OFD packet to send [22:47:01]accept exits with 7 [22:47:01]New connection [22:47:01]New thread 3067473252 created [22:47:01]Thread 3067616612 joined [22:47:01]Waiting for new connection... [22:47:01] Sock 7.Parse request [22:47:01]Sock 7.Check first char [22:47:01]Sock 7.First char is OK [22:47:01]request: POST /json_proto HTTP/1.0 [22:47:01]Method: POST [22:47:01]URL: /json_proto [22:47:01]Method is POST - this is cgi request [22:47:01]url: /json_proto [22:47:01]query_string will be loaded in cgi processing [22:47:01]execute_cgi json_proto POST (null) [22:47:01]execute_cgi path=json_proto method=POST [22:47:01]POST find Content-Length [22:47:01]Host: 172.17.38.133:8080 [22:47:01]Content-Length: 816 [22:47:01]Content-Type: application/json [22:47:01] [22:47:01]POST finish read [22:47:01]Found Content-Length = 816 [22:47:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673743", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 300.13 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:47:01]execute_script... [22:47:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673743", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 300.13 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:47:01]POST & json_proto [22:47:01]process_json_proto [22:47:01]json parsed OK: [22:47:01]protocol is kg_v1.0 [22:47:01]action value=close_receipt [22:47:01]process_action close_receipt [22:47:01]cmd_close_receipt [22:47:01]MH_GetDate [22:47:01]Write to MH i2c: F0 00 00 6C 14 6F [22:47:01]Write i2c OK [22:47:01]MH_I2C_Read... [22:47:01]Read from MH i2c: F0 [22:47:01]MH_I2C_Read... [22:47:01]Read from MH i2c: F0 09 00 [22:47:01]MH_I2C_Read... [22:47:01]Read from MH i2c: F0 09 00 6C 14 00 E6 02 76 66 BD 8F 7C 64 68 [22:47:01]GetLastDocTimeStamp 1719009954 [22:47:01]current date 1719010022 [22:47:01]FM_GetShiftState [22:47:01]SAM_PROTO_GetShiftState [22:47:01]wFMCommunicate request_size=4 [22:47:01]MH_SAM_APDU [22:47:01]CAPDU: 80 13 01 00 [22:47:01]Write to MH i2c: E2 08 00 6D 14 80 13 01 00 00 00 00 00 FE [22:47:01]Write i2c OK [22:47:01]MH_I2C_Read... [22:47:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:47:01]Read from MH i2c: E2 [22:47:01]MH_I2C_Read... [22:47:01]Read from MH i2c: E2 0E 00 [22:47:01]MH_I2C_Read... [22:47:01]Read from MH i2c: E2 0E 00 6D 14 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 11 [22:47:01]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [22:47:01]wFMCommunicate OK [22:47:01]SAM_PROTO_GetShiftState done [22:47:01]FM_GetShiftState done [22:47:01]opened in 1718929509 [22:47:01]opened+sec_in_day 1719015909 [22:47:01]quantity*price = 30012 [22:47:01]sum+1 = 30014 [22:47:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.13 НСП 1% : 2.66 НДС 12% : 31.87 Наличными: 0.00 Безнал.: 300.13 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 177 21.06.2024 22:47 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875093 ФД: 104254 ФПД: 109502692969288 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T224702&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104254&fm=109502692969288&tin=02508201610067®Number=0000000000092785&sum=30013 [22:47:02]StoreToDocumentArchive [22:47:02]shift 355 fd 104254 [22:47:02]save to /storage/0355/doc_00104254 [22:47:02]save last doc name /storage/0355/doc_00104254 to /storage/kkm_last_doc_name [22:47:02]save OK [22:47:02]Clear old archive folders... [22:47:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:47:02]tlvbuf is 0069D300 [22:47:02]SAM_PROTO_ClearQueue [22:47:02]wFMCommunicate request_size=4 [22:47:02]MH_SAM_APDU [22:47:02]CAPDU: 80 09 00 00 [22:47:02]Write to MH i2c: E2 08 00 7A 14 80 09 00 00 00 00 00 00 00 [22:47:02]Write i2c OK [22:47:02]MH_I2C_Read... [22:47:02]Read from MH i2c: E2 [22:47:02]MH_I2C_Read... [22:47:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:47:02]Read from MH i2c: E2 03 00 [22:47:02]MH_I2C_Read... [22:47:02]Read from MH i2c: E2 03 00 7A 14 00 90 00 02 [22:47:02]RAPDU: 90 00 [22:47:02]wFMCommunicate OK [22:47:02]SAM_PROTO_ClearQueue done [22:47:02]KKMCreateOFDPacket [22:47:02]OFDProtocolAddRootSTLVToBuf [22:47:02]FM_MakeSignedData [22:47:02]FM_MakeSignedData [22:47:02]SAM_PROTO_SignData [22:47:02]wFMCommunicate request_size=4 [22:47:02]MH_SAM_APDU [22:47:02]CAPDU: 80 0D 01 02 [22:47:02]Write to MH i2c: E2 08 00 7B 14 80 0D 01 02 00 00 00 00 08 [22:47:02]Write i2c OK [22:47:02]MH_I2C_Read... [22:47:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:47:02]Read from MH i2c: E2 [22:47:02]MH_I2C_Read... [22:47:02]Read from MH i2c: E2 03 00 [22:47:02]MH_I2C_Read... [22:47:02]Read from MH i2c: E2 03 00 7B 14 00 90 00 03 [22:47:02]RAPDU: 90 00 [22:47:02]wFMCommunicate OK [22:47:02]wFMCommunicate request_size=255 [22:47:02]MH_SAM_APDU [22:47: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 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 3D 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 00 00 00 00 00 00 39 04 06 00 3D 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 E6 02 76 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 3E 97 01 00 35 04 06 00 63 [22:47:02]Write to MH i2c: E2 02 01 7C 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 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 3D 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 00 00 00 00 00 00 39 04 06 00 3D 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 E6 02 76 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 3E 97 01 00 35 04 06 00 63 00 00 8C [22:47:02]Write i2c OK [22:47:02]MH_I2C_Read... [22:47:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:47:02]Read from MH i2c: E2 [22:47:02]MH_I2C_Read... [22:47:02]Read from MH i2c: E2 03 00 [22:47:02]MH_I2C_Read... [22:47:02]Read from MH i2c: E2 03 00 7C 14 00 90 00 04 [22:47:02]RAPDU: 90 00 [22:47:02]wFMCommunicate OK [22:47:02]wFMCommunicate request_size=10 [22:47:02]MH_SAM_APDU [22:47:02]CAPDU: 80 0D 02 02 05 97 95 1D CB 48 [22:47:02]Write to MH i2c: E2 0D 00 7D 14 80 0D 02 02 05 00 97 95 1D CB 48 00 00 71 [22:47:02]Write i2c OK [22:47:02]MH_I2C_Read... [22:47:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:47:02]Read from MH i2c: E2 [22:47:02]MH_I2C_Read... [22:47:02]Read from MH i2c: E2 03 00 [22:47:02]MH_I2C_Read... [22:47:02]Read from MH i2c: E2 03 00 7D 14 00 90 00 05 [22:47:02]RAPDU: 90 00 [22:47:02]wFMCommunicate OK [22:47:02]wFMCommunicate request_size=4 [22:47:02]MH_SAM_APDU [22:47:02]CAPDU: 80 0D 03 02 [22:47:02]Write to MH i2c: E2 08 00 7E 14 80 0D 03 02 00 00 00 00 0D [22:47:02]Write i2c OK [22:47:02]MH_I2C_Read... [22:47:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:47:02]Read from MH i2c: E2 [22:47:02]MH_I2C_Read... [22:47:02]Read from MH i2c: E2 0B 00 [22:47:02]MH_I2C_Read... [22:47:02]Read from MH i2c: E2 0B 00 7E 14 00 76 B2 09 E7 82 72 5E E7 90 00 5F [22:47:02]RAPDU: 76 B2 09 E7 82 72 5E E7 90 00 [22:47:02]wFMCommunicate OK [22:47:02]SAM_PROTO_SignData done [22:47:02]FM_MakeSignedData done [22:47:02]CreateOFDProtocolMessage [22:47:02]wFMCommunicate request_size=4 [22:47:02]MH_SAM_APDU [22:47:02]CAPDU: 80 11 00 00 [22:47:02]Write to MH i2c: E2 08 00 7F 14 80 11 00 00 00 00 00 00 0D [22:47:02]Write i2c OK [22:47:02]MH_I2C_Read... [22:47:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:47:02]Read from MH i2c: E2 [22:47:02]MH_I2C_Read... [22:47:02]Read from MH i2c: E2 17 00 [22:47:02]MH_I2C_Read... [22:47:02]Read from MH i2c: E2 17 00 7F 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 60 [22:47:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [22:47:02]wFMCommunicate OK [22:47:02]CreateOFDProtocolMessage done [22:47:02]OFDSenderStorePacket 104254 [22:47:02]StoreOFDPacket docnum=104254 [22:47: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 F9 63 07 01 01 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 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 3D 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 00 00 00 00 00 00 39 04 06 00 3D 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 E6 02 76 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 3E 97 01 00 35 04 06 00 63 97 95 1D CB 48 76 B2 09 E7 82 72 5E E7 [22:47:02]CheckFolder [22:47:02]dirname=/storage/ofd_packets [22:47:02]CheckFolder done [22:47:02]ProducePacketName [22:47:02]name=ofd_packets/00104254 [22:47:02]NVStorageSaveData ofd_packets/00104254 [22:47:02]File name is /storage/ofd_packets/00104254 [22:47:02]Write 301 bytes [22:47:02]NVStorageSaveData done [22:47:02]OFDSenderStorePacket done [22:47:02]KKMCreateOFDPacket done [22:47:02]NVStorageSaveData kkm_last_timestamp [22:47:02]File name is /storage/kkm_last_timestamp [22:47:02]Write 4 bytes [22:47:02]NVStorageSaveData done [22:47:02]ExternCall_PrintAddStr [22:47:02]wPrintStart [22:47:02]Write to MH i2c: 01 00 00 80 14 94 [22:47:02]Write i2c OK [22:47:02]MH_I2C_Read... [22:47:02]Read from MH i2c: 01 [22:47:02]MH_I2C_Read... [22:47:02]Read from MH i2c: 01 07 00 [22:47:02]MH_I2C_Read... [22:47:02]Read from MH i2c: 01 07 00 80 14 00 00 00 00 00 FF 0F A9 [22:47:02]RasterBufferAndPrint [22:47:02]line Счет N : (1)673743 [22:47:02]line ИНН: 02508201610067 [22:47:02]line Контрольно-Кассовый Чек [22:47:02]line ПРОДАЖА [22:47:02]line ТРК (МРК, ГНК) : 42 [22:47:02]line Товар: 2710124130 [22:47:02]line Аи-92-К-5 [22:47:02]line 4.520 * 66.40 [22:47:02]line = 300.13 [22:47:02]line НДС 12% НСП 1% [22:47:02]line > о реализуемом товаре [22:47:02]line ИТОГО: 300.13 [22:47:02]line НСП 1% : 2.66 [22:47:02]line НДС 12% : 31.87 [22:47:02]line Наличными: 0.00 [22:47:02]line Безнал.: 300.13 [22:47:02]line Место: АЗС № 120 "Партнер Нефть" [22:47:02]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [22:47:02]line СНО: Общий режим [22:47:02]line Чек 177 21.06.2024 22:47 [22:47:02]line Смена: 355 ФФД: 1.0 [22:47:02]line ЗНМ: 0300000164 [22:47:02]line РНМ: 0000000000092785 [22:47:02]line Версия ККМ: 001 [22:47:02]line Платежная система: Бакай Банк [22:47:02]line ФМ: 0000000000875093 [22:47:02]line ФД: 104254 [22:47:02]line ФПД: 109502692969288 [22:47:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T224702&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104254&fm=109502692969288&tin=02508201610067®Number=0000000000092785&sum=30013 [22:47:03]OFD Sender: Processing packet 104254 [packets to send 17, broken 16] [22:47:03]ProducePacketName [22:47:03]name=ofd_packets/00104254 [22:47:03]OFD Sender: To server: pG, [22:47:03]CommunicateWithHost lk.salyk.kg:30040 [22:47:03]ConnectInit lk.salyk.kg [22:47:03]written 0, free lines is 4095 [22:47:03]Connected sock=10 [22:47:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 F9 63 07 01 01 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 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 3D 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 00 00 00 00 00 00 39 04 06 00 3D 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 E6 02 76 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 3E 97 01 00 35 04 06 00 63 97 95 1D CB 48 76 B2 09 E7 82 72 5E E7 [22:47: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 57 86 47 00 DC 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 3E 97 01 00 F4 03 04 00 68 A9 75 66 B6 04 01 00 00 F2 9D 6F 3E 80 1B F9 5F [22:47:03]CommunicateWithHost err = 0 [22:47:03]CheckOFDResponse [22:47:03]1017 (14) - 77093643461234 [22:47:03]1041 (16) - 0000000000875093 [22:47:03]1040 (4) - 104254 [22:47:03]1012 (4) - 21.06.2024 16:25 [22:47:03]1206 (1) - 0 [22:47:03]OFD Sender: Remove packet 104254 [22:47:03]ProducePacketName [22:47:03]name=ofd_packets/00104254 [22:47:03]NVStorageDeleteData [22:47:03]Write to MH i2c: 01 00 00 AA 14 BE [22:47:03]Write i2c OK [22:47:03]MH_I2C_Read... [22:47:03]Read from MH i2c: 01 [22:47:03]MH_I2C_Read... [22:47:03]Read from MH i2c: 01 07 00 [22:47:03]MH_I2C_Read... [22:47:03]Read from MH i2c: 01 07 00 AA 14 00 00 00 00 00 F9 0C CA [22:47:03]RasterBufferAndPrint [22:47:03]line [22:47:03]line [22:47:03]line [22:47:03]line [22:47:03]line [22:47:03]written 0, free lines is 3327 [22:47:03]MH_Cut [22:47:03]Write to MH i2c: D1 01 00 B1 14 01 97 [22:47:03]Write i2c OK [22:47:03]MH_I2C_Read... [22:47:03]Read from MH i2c: D1 [22:47:03]MH_I2C_Read... [22:47:03]Read from MH i2c: D1 01 00 [22:47:03]MH_I2C_Read... [22:47:03]Read from MH i2c: D1 01 00 B1 14 00 96 [22:47:03]Write to MH i2c: 01 00 00 B2 14 C6 [22:47:03]Write i2c OK [22:47:03]MH_I2C_Read... [22:47:04]OFD Sender: No OFD packet to send [22:47:04]*** Cut start [22:47:04]*** Partial cut [22:47:04]*** CUTSNS_PIN = 1 [22:47:04]*** CUTSNS_PIN = 0 [22:47:04]*** Brake cut motor [22:47:04]Read from MH i2c: 01 [22:47:04]MH_I2C_Read... [22:47:04]*** Stop cut motor [22:47:04]*** Cut end [22:47:04]Read from MH i2c: 01 07 00 [22:47:04]MH_I2C_Read... [22:47:04]Read from MH i2c: 01 07 00 B2 14 00 00 00 00 00 FF 0F DB [22:47:04]process_action close_receipt done [22:47:04]requested_data is exist [22:47:04]produce_requested_data [22:47:04]requested_item fm.sn is exist - process it [22:47:04]wFMCommunicate request_size=4 [22:47:04]MH_SAM_APDU [22:47:04]CAPDU: 80 11 00 00 [22:47:04]Write to MH i2c: E2 08 00 B3 14 80 11 00 00 00 00 00 00 41 [22:47:04]Write i2c OK [22:47:04]MH_I2C_Read... [22:47:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:47:05]Read from MH i2c: E2 [22:47:05]MH_I2C_Read... [22:47:05]Read from MH i2c: E2 17 00 [22:47:05]MH_I2C_Read... [22:47:05]Read from MH i2c: E2 17 00 B3 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 94 [22:47: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:47:05]wFMCommunicate OK [22:47:05]requested_item fd.num is exist - process it [22:47:05]SAM_PROTO_GetFieldsCounters [22:47:05]wFMCommunicate request_size=4 [22:47:05]MH_SAM_APDU [22:47:05]CAPDU: 80 13 00 00 [22:47:05]Write to MH i2c: E2 08 00 B4 14 80 13 00 00 00 00 00 00 44 [22:47:05]Write i2c OK [22:47:05]MH_I2C_Read... [22:47:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:47:05]Read from MH i2c: E2 [22:47:05]MH_I2C_Read... [22:47:05]Read from MH i2c: E2 62 00 [22:47:05]MH_I2C_Read... [22:47:05]Read from MH i2c: E2 62 00 B4 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 63 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 B8 [22:47:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 63 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 [22:47:05]wFMCommunicate OK [22:47:05]SAM_PROTO_GetFieldsCounters done [22:47:05]requested_item shift.num is exist - process it [22:47:05]requested_item shift.opened is exist - process it [22:47:05]req_shift_opened [22:47:05]FM_GetShiftState [22:47:05]SAM_PROTO_GetShiftState [22:47:05]wFMCommunicate request_size=4 [22:47:05]MH_SAM_APDU [22:47:05]CAPDU: 80 13 01 00 [22:47:05]Write to MH i2c: E2 08 00 B5 14 80 13 01 00 00 00 00 00 46 [22:47:05]Write i2c OK [22:47:05]MH_I2C_Read... [22:47:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:47:05]Read from MH i2c: E2 [22:47:05]MH_I2C_Read... [22:47:05]Read from MH i2c: E2 0E 00 [22:47:05]MH_I2C_Read... [22:47:05]Read from MH i2c: E2 0E 00 B5 14 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 59 [22:47:05]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [22:47:05]wFMCommunicate OK [22:47:05]SAM_PROTO_GetShiftState done [22:47:05]FM_GetShiftState done [22:47:05]req_shift_opened done [22:47:05]requested_item shift.open_date is exist - process it [22:47:05]req_shift_open_date [22:47:05]req_shift_open_date done [22:47:05]produce_requested_data done [22:47:05]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104254,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [22:47:05]process_action_free close_receipt [22:47:05]json_value_free [22:47:05]json_value_free done [22:47:05]process_json_proto returns [22:47:05]Send response to host [22:47:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104254,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [22:47:05]free response buf [22:47:05]execute_script done [22:47:05]execute_script returns [22:47:05]free content buf [22:47:05]Sock 7.Close socket [22:47:05]Sock 7.Thread stoped [22:47:09]OFD Sender: No OFD packet to send [22:47:12]accept exits with 9 [22:47:12]New connection [22:47:12]New thread 3067616612 created [22:47:12]Thread 3067473252 joined [22:47:12]Waiting for new connection... [22:47:12] Sock 9.Parse request [22:47:12]Sock 9.Check first char [22:47:12]Sock 9.First char is OK [22:47:12]request: POST /json_proto HTTP/1.0 [22:47:12]Method: POST [22:47:12]URL: /json_proto [22:47:12]Method is POST - this is cgi request [22:47:12]url: /json_proto [22:47:12]query_string will be loaded in cgi processing [22:47:12]execute_cgi json_proto POST (null) [22:47:12]execute_cgi path=json_proto method=POST [22:47:12]POST find Content-Length [22:47:12]Host: 172.17.38.133:8080 [22:47:12]Content-Length: 677 [22:47:12]Content-Type: application/json [22:47:12] [22:47:12]POST finish read [22:47:12]Found Content-Length = 677 [22:47:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673744", "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" ] } } [22:47:12]execute_script... [22:47: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)673744", "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" ] } } [22:47:12]POST & json_proto [22:47:12]process_json_proto [22:47:12]json parsed OK: [22:47:12]protocol is kg_v1.0 [22:47:12]action value=close_receipt [22:47:12]process_action close_receipt [22:47:12]cmd_close_receipt [22:47:12]MH_GetDate [22:47:12]Write to MH i2c: F0 00 00 B6 14 B9 [22:47:12]Write i2c OK [22:47:12]MH_I2C_Read... [22:47:12]Read from MH i2c: F0 [22:47:12]MH_I2C_Read... [22:47:12]Read from MH i2c: F0 09 00 [22:47:12]MH_I2C_Read... [22:47:12]Read from MH i2c: F0 09 00 B6 14 00 F1 02 76 66 BD 8F 7C 64 BD [22:47:12]GetLastDocTimeStamp 1719010022 [22:47:12]current date 1719010033 [22:47:12]FM_GetShiftState [22:47:12]SAM_PROTO_GetShiftState [22:47:12]wFMCommunicate request_size=4 [22:47:12]MH_SAM_APDU [22:47:12]CAPDU: 80 13 01 00 [22:47:12]Write to MH i2c: E2 08 00 B7 14 80 13 01 00 00 00 00 00 48 [22:47:12]Write i2c OK [22:47:12]MH_I2C_Read... [22:47:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:47:12]Read from MH i2c: E2 [22:47:12]MH_I2C_Read... [22:47:12]Read from MH i2c: E2 0E 00 [22:47:12]MH_I2C_Read... [22:47:12]Read from MH i2c: E2 0E 00 B7 14 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 5B [22:47:12]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [22:47:12]wFMCommunicate OK [22:47:12]SAM_PROTO_GetShiftState done [22:47:12]FM_GetShiftState done [22:47:12]opened in 1718929509 [22:47:12]opened+sec_in_day 1719015909 [22:47:12]quantity*price = 50065 [22:47:12]sum+1 = 50067 [22:47:12]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 21.06.2024 22:47 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104255 ФПД: 185549494645849 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T224713&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104255&fm=185549494645849&tin=02508201610067®Number=0000000000092785&sum=50000 [22:47:13]StoreToDocumentArchive [22:47:13]shift 355 fd 104255 [22:47:13]save to /storage/0355/doc_00104255 [22:47:13]save last doc name /storage/0355/doc_00104255 to /storage/kkm_last_doc_name [22:47:13]save OK [22:47:13]Clear old archive folders... [22:47:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:47:13]tlvbuf is 0063F870 [22:47:13]SAM_PROTO_ClearQueue [22:47:13]wFMCommunicate request_size=4 [22:47:13]MH_SAM_APDU [22:47:13]CAPDU: 80 09 00 00 [22:47:13]Write to MH i2c: E2 08 00 C4 14 80 09 00 00 00 00 00 00 4A [22:47:13]Write i2c OK [22:47:13]MH_I2C_Read... [22:47:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:47:13]Read from MH i2c: E2 [22:47:13]MH_I2C_Read... [22:47:13]Read from MH i2c: E2 03 00 [22:47:13]MH_I2C_Read... [22:47:13]Read from MH i2c: E2 03 00 C4 14 00 90 00 4C [22:47:13]RAPDU: 90 00 [22:47:13]wFMCommunicate OK [22:47:13]SAM_PROTO_ClearQueue done [22:47:13]KKMCreateOFDPacket [22:47:13]OFDProtocolAddRootSTLVToBuf [22:47:13]FM_MakeSignedData [22:47:13]FM_MakeSignedData [22:47:13]SAM_PROTO_SignData [22:47:13]wFMCommunicate request_size=4 [22:47:13]MH_SAM_APDU [22:47:13]CAPDU: 80 0D 01 02 [22:47:13]Write to MH i2c: E2 08 00 C5 14 80 0D 01 02 00 00 00 00 52 [22:47:13]Write i2c OK [22:47:13]MH_I2C_Read... [22:47:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:47:13]Read from MH i2c: E2 [22:47:13]MH_I2C_Read... [22:47:13]Read from MH i2c: E2 03 00 [22:47:13]MH_I2C_Read... [22:47:13]Read from MH i2c: E2 03 00 C5 14 00 90 00 4D [22:47:13]RAPDU: 90 00 [22:47:13]wFMCommunicate OK [22:47:13]wFMCommunicate request_size=255 [22:47:13]MH_SAM_APDU [22:47: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 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 F1 02 76 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 3F 97 01 00 35 04 06 00 A8 [22:47:13]Write to MH i2c: E2 02 01 C6 14 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 F1 02 76 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 3F 97 01 00 35 04 06 00 A8 00 00 70 [22:47:13]Write i2c OK [22:47:13]MH_I2C_Read... [22:47:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:47:13]Read from MH i2c: E2 [22:47:13]MH_I2C_Read... [22:47:13]Read from MH i2c: E2 03 00 [22:47:13]MH_I2C_Read... [22:47:13]Read from MH i2c: E2 03 00 C6 14 00 90 00 4E [22:47:13]RAPDU: 90 00 [22:47:13]wFMCommunicate OK [22:47:13]wFMCommunicate request_size=10 [22:47:13]MH_SAM_APDU [22:47:13]CAPDU: 80 0D 02 02 05 C1 9B B7 74 59 [22:47:13]Write to MH i2c: E2 0D 00 C7 14 80 0D 02 02 05 00 C1 9B B7 74 59 00 00 3F [22:47:13]Write i2c OK [22:47:13]MH_I2C_Read... [22:47:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:47:13]Read from MH i2c: E2 [22:47:13]MH_I2C_Read... [22:47:13]Read from MH i2c: E2 03 00 [22:47:13]MH_I2C_Read... [22:47:13]Read from MH i2c: E2 03 00 C7 14 00 90 00 4F [22:47:13]RAPDU: 90 00 [22:47:13]wFMCommunicate OK [22:47:13]wFMCommunicate request_size=4 [22:47:13]MH_SAM_APDU [22:47:13]CAPDU: 80 0D 03 02 [22:47:13]Write to MH i2c: E2 08 00 C8 14 80 0D 03 02 00 00 00 00 57 [22:47:13]Write i2c OK [22:47:13]MH_I2C_Read... [22:47:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:47:13]Read from MH i2c: E2 [22:47:13]MH_I2C_Read... [22:47:13]Read from MH i2c: E2 0B 00 [22:47:13]MH_I2C_Read... [22:47:13]Read from MH i2c: E2 0B 00 C8 14 00 12 E4 23 FC 25 2B 57 9E 90 00 B2 [22:47:13]RAPDU: 12 E4 23 FC 25 2B 57 9E 90 00 [22:47:13]wFMCommunicate OK [22:47:13]SAM_PROTO_SignData done [22:47:13]FM_MakeSignedData done [22:47:13]CreateOFDProtocolMessage [22:47:13]wFMCommunicate request_size=4 [22:47:13]MH_SAM_APDU [22:47:13]CAPDU: 80 11 00 00 [22:47:13]Write to MH i2c: E2 08 00 C9 14 80 11 00 00 00 00 00 00 57 [22:47:13]Write i2c OK [22:47:13]MH_I2C_Read... [22:47:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:47:13]Read from MH i2c: E2 [22:47:13]MH_I2C_Read... [22:47:13]Read from MH i2c: E2 17 00 [22:47:13]MH_I2C_Read... [22:47:13]Read from MH i2c: E2 17 00 C9 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 AA [22:47:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [22:47:13]wFMCommunicate OK [22:47:13]CreateOFDProtocolMessage done [22:47:13]OFDSenderStorePacket 104255 [22:47:13]StoreOFDPacket docnum=104255 [22:47: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 C3 95 07 01 3D 05 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 F1 02 76 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 3F 97 01 00 35 04 06 00 A8 C1 9B B7 74 59 12 E4 23 FC 25 2B 57 9E [22:47:13]CheckFolder [22:47:13]dirname=/storage/ofd_packets [22:47:13]CheckFolder done [22:47:13]ProducePacketName [22:47:13]name=ofd_packets/00104255 [22:47:13]NVStorageSaveData ofd_packets/00104255 [22:47:13]File name is /storage/ofd_packets/00104255 [22:47:13]Write 301 bytes [22:47:13]NVStorageSaveData done [22:47:13]OFDSenderStorePacket done [22:47:13]KKMCreateOFDPacket done [22:47:13]NVStorageSaveData kkm_last_timestamp [22:47:13]File name is /storage/kkm_last_timestamp [22:47:13]Write 4 bytes [22:47:13]NVStorageSaveData done [22:47:13]ExternCall_PrintAddStr [22:47:13]wPrintStart [22:47:13]Write to MH i2c: 01 00 00 CA 14 DE [22:47:13]Write i2c OK [22:47:13]MH_I2C_Read... [22:47:13]Read from MH i2c: 01 [22:47:13]MH_I2C_Read... [22:47:13]Read from MH i2c: 01 07 00 [22:47:13]MH_I2C_Read... [22:47:13]Read from MH i2c: 01 07 00 CA 14 00 00 00 00 00 FF 0F F3 [22:47:13]RasterBufferAndPrint [22:47:13]line Счет N : (1)673744 [22:47:13]line ИНН: 02508201610067 [22:47:13]line Контрольно-Кассовый Чек [22:47:13]line ПРОДАЖА [22:47:13]line ТРК (МРК, ГНК) : 32 [22:47:13]line Товар: 2710124130 [22:47:13]line Аи-92-К-5 [22:47:13]line 7.540 * 66.40 [22:47:13]line = 500.66 [22:47:13]line НДС 12% НСП 1% [22:47:13]line > о реализуемом товаре [22:47:13]line ОКРУГЛЕНИЕ: -0.66 [22:47:13]line ИТОГО: 500.00 [22:47:13]line Внесено: 500.00 [22:47:13]line СДАЧА: 0.00 [22:47:13]line НСП 1% : 4.43 [22:47:13]line НДС 12% : 53.17 [22:47:13]line Наличными: 500.00 [22:47:13]line Безнал.: 0.00 [22:47:13]line Место: АЗС № 120 "Партнер Нефть" [22:47:13]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [22:47:13]line СНО: Общий режим [22:47:13]line Чек 178 21.06.2024 22:47 [22:47:13]line Смена: 355 ФФД: 1.0 [22:47:13]line ЗНМ: 0300000164 [22:47:13]line РНМ: 0000000000092785 [22:47:13]line Версия ККМ: 001 [22:47:13]line ФМ: 0000000000875093 [22:47:13]line ФД: 104255 [22:47:13]line ФПД: 185549494645849 [22:47:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T224713&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104255&fm=185549494645849&tin=02508201610067®Number=0000000000092785&sum=50000 [22:47:13]written 0, free lines is 4095 [22:47:13]OFD Sender: Processing packet 104255 [packets to send 17, broken 16] [22:47:13]ProducePacketName [22:47:13]name=ofd_packets/00104255 [22:47:13]OFD Sender: To server: pG, [22:47:13]CommunicateWithHost lk.salyk.kg:30040 [22:47:13]ConnectInit lk.salyk.kg [22:47:13]Connected sock=10 [22:47: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 C3 95 07 01 3D 05 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 F1 02 76 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 3F 97 01 00 35 04 06 00 A8 C1 9B B7 74 59 12 E4 23 FC 25 2B 57 9E [22:47: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 1C AE 47 00 6E 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 3F 97 01 00 F4 03 04 00 72 A9 75 66 B6 04 01 00 00 56 8C 5B 40 21 2A 22 1F [22:47:14]CommunicateWithHost err = 0 [22:47:14]CheckOFDResponse [22:47:14]1017 (14) - 77093643461234 [22:47:14]1041 (16) - 0000000000875093 [22:47:14]1040 (4) - 104255 [22:47:14]1012 (4) - 21.06.2024 16:25 [22:47:14]1206 (1) - 0 [22:47:14]OFD Sender: Remove packet 104255 [22:47:14]ProducePacketName [22:47:14]name=ofd_packets/00104255 [22:47:14]NVStorageDeleteData [22:47:14]Write to MH i2c: 01 00 00 F5 14 09 [22:47:14]Write i2c OK [22:47:14]MH_I2C_Read... [22:47:14]Read from MH i2c: 01 [22:47:14]MH_I2C_Read... [22:47:14]Read from MH i2c: 01 07 00 [22:47:14]MH_I2C_Read... [22:47:14]Read from MH i2c: 01 07 00 F5 14 00 00 00 00 00 EA 0C 06 [22:47:14]RasterBufferAndPrint [22:47:14]line [22:47:14]line [22:47:14]line [22:47:14]line [22:47:14]line [22:47:14]written 0, free lines is 3315 [22:47:14]MH_Cut [22:47:14]Write to MH i2c: D1 01 00 FC 14 01 E2 [22:47:14]Write i2c OK [22:47:14]MH_I2C_Read... [22:47:14]Read from MH i2c: D1 [22:47:14]MH_I2C_Read... [22:47:14]Read from MH i2c: D1 01 00 [22:47:14]MH_I2C_Read... [22:47:14]Read from MH i2c: D1 01 00 FC 14 00 E1 [22:47:14]Write to MH i2c: 01 00 00 FD 14 11 [22:47:14]Write i2c OK [22:47:14]MH_I2C_Read... [22:47:14]OFD Sender: No OFD packet to send [22:47:14]*** Cut start [22:47:14]*** Partial cut [22:47:14]*** CUTSNS_PIN = 1 [22:47:15]*** CUTSNS_PIN = 0 [22:47:15]*** Brake cut motor [22:47:15]Read from MH i2c: 01 [22:47:15]MH_I2C_Read... [22:47:15]*** Stop cut motor [22:47:15]*** Cut end [22:47:15]Read from MH i2c: 01 07 00 [22:47:15]MH_I2C_Read... [22:47:15]Read from MH i2c: 01 07 00 FD 14 00 00 00 00 00 FF 0F 26 [22:47:15]process_action close_receipt done [22:47:15]requested_data is exist [22:47:15]produce_requested_data [22:47:15]requested_item fm.sn is exist - process it [22:47:15]wFMCommunicate request_size=4 [22:47:15]MH_SAM_APDU [22:47:15]CAPDU: 80 11 00 00 [22:47:15]Write to MH i2c: E2 08 00 FE 14 80 11 00 00 00 00 00 00 8C [22:47:15]Write i2c OK [22:47:15]MH_I2C_Read... [22:47:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:47:15]Read from MH i2c: E2 [22:47:15]MH_I2C_Read... [22:47:15]Read from MH i2c: E2 17 00 [22:47:15]MH_I2C_Read... [22:47:15]Read from MH i2c: E2 17 00 FE 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 DF [22:47: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:47:15]wFMCommunicate OK [22:47:15]requested_item fd.num is exist - process it [22:47:15]SAM_PROTO_GetFieldsCounters [22:47:15]wFMCommunicate request_size=4 [22:47:15]MH_SAM_APDU [22:47:15]CAPDU: 80 13 00 00 [22:47:15]Write to MH i2c: E2 08 00 FF 14 80 13 00 00 00 00 00 00 8F [22:47:15]Write i2c OK [22:47:15]MH_I2C_Read... [22:47:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:47:15]Read from MH i2c: E2 [22:47:15]MH_I2C_Read... [22:47:15]Read from MH i2c: E2 62 00 [22:47:15]MH_I2C_Read... [22:47:15]Read from MH i2c: E2 62 00 FF 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 3F 97 01 00 0E 04 04 00 63 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 07 [22:47: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 3F 97 01 00 0E 04 04 00 63 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 [22:47:15]wFMCommunicate OK [22:47:15]SAM_PROTO_GetFieldsCounters done [22:47:15]requested_item shift.num is exist - process it [22:47:15]requested_item shift.opened is exist - process it [22:47:15]req_shift_opened [22:47:15]FM_GetShiftState [22:47:15]SAM_PROTO_GetShiftState [22:47:15]wFMCommunicate request_size=4 [22:47:15]MH_SAM_APDU [22:47:15]CAPDU: 80 13 01 00 [22:47:15]Write to MH i2c: E2 08 00 00 15 80 13 01 00 00 00 00 00 92 [22:47:15]Write i2c OK [22:47:15]MH_I2C_Read... [22:47:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:47:15]Read from MH i2c: E2 [22:47:15]MH_I2C_Read... [22:47:15]Read from MH i2c: E2 0E 00 [22:47:15]MH_I2C_Read... [22:47:15]Read from MH i2c: E2 0E 00 00 15 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 A5 [22:47:15]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [22:47:15]wFMCommunicate OK [22:47:15]SAM_PROTO_GetShiftState done [22:47:15]FM_GetShiftState done [22:47:15]req_shift_opened done [22:47:15]requested_item shift.open_date is exist - process it [22:47:15]req_shift_open_date [22:47:15]req_shift_open_date done [22:47:15]produce_requested_data done [22:47:15]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104255,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [22:47:15]process_action_free close_receipt [22:47:15]json_value_free [22:47:15]json_value_free done [22:47:15]process_json_proto returns [22:47:15]Send response to host [22:47:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104255,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [22:47:15]free response buf [22:47:15]execute_script done [22:47:15]execute_script returns [22:47:15]free content buf [22:47:15]Sock 9.Close socket [22:47:15]Sock 9.Thread stoped [22:47:19]OFD Sender: No OFD packet to send [22:47:24]OFD Sender: No OFD packet to send [22:47:29]OFD Sender: No OFD packet to send [22:47:34]OFD Sender: No OFD packet to send [22:47:39]OFD Sender: No OFD packet to send [22:47:44]OFD Sender: No OFD packet to send [22:47:49]OFD Sender: No OFD packet to send [22:47:54]OFD Sender: No OFD packet to send [22:47:59]OFD Sender: No OFD packet to send [22:48:04]OFD Sender: No OFD packet to send [22:48:09]OFD Sender: No OFD packet to send [22:48:14]OFD Sender: No OFD packet to send [22:48:19]OFD Sender: No OFD packet to send [22:48:24]OFD Sender: No OFD packet to send [22:48:29]OFD Sender: No OFD packet to send [22:48:34]OFD Sender: No OFD packet to send [22:48:39]OFD Sender: No OFD packet to send [22:48:44]OFD Sender: No OFD packet to send [22:48:49]OFD Sender: No OFD packet to send [22:48:54]OFD Sender: No OFD packet to send [22:48:59]OFD Sender: No OFD packet to send [22:49:04]OFD Sender: No OFD packet to send [22:49:09]OFD Sender: No OFD packet to send [22:49:14]OFD Sender: No OFD packet to send [22:49:19]OFD Sender: No OFD packet to send [22:49:24]OFD Sender: No OFD packet to send [22:49:29]OFD Sender: No OFD packet to send [22:49:34]OFD Sender: No OFD packet to send [22:49:39]OFD Sender: No OFD packet to send [22:49:44]OFD Sender: No OFD packet to send [22:49:49]OFD Sender: No OFD packet to send [22:49:54]OFD Sender: No OFD packet to send [22:49:59]OFD Sender: No OFD packet to send [22:50:04]OFD Sender: No OFD packet to send [22:50:09]OFD Sender: No OFD packet to send [22:50:14]OFD Sender: No OFD packet to send [22:50:19]OFD Sender: No OFD packet to send [22:50:24]OFD Sender: No OFD packet to send [22:50:29]OFD Sender: No OFD packet to send [22:50:34]OFD Sender: No OFD packet to send [22:50:39]OFD Sender: No OFD packet to send [22:50:44]OFD Sender: No OFD packet to send [22:50:49]OFD Sender: No OFD packet to send [22:50:54]OFD Sender: No OFD packet to send [22:50:59]OFD Sender: No OFD packet to send [22:51:04]OFD Sender: No OFD packet to send [22:51:09]OFD Sender: No OFD packet to send [22:51:14]OFD Sender: No OFD packet to send [22:51:19]OFD Sender: No OFD packet to send [22:51:24]OFD Sender: No OFD packet to send [22:51:29]OFD Sender: No OFD packet to send [22:51:34]OFD Sender: No OFD packet to send [22:51:39]OFD Sender: No OFD packet to send [22:51:44]OFD Sender: No OFD packet to send [22:51:49]OFD Sender: No OFD packet to send [22:51:54]OFD Sender: No OFD packet to send [22:51:59]OFD Sender: No OFD packet to send [22:52:04]OFD Sender: No OFD packet to send [22:52:09]OFD Sender: No OFD packet to send [22:52:14]OFD Sender: No OFD packet to send [22:52:19]OFD Sender: No OFD packet to send [22:52:24]OFD Sender: No OFD packet to send [22:52:29]OFD Sender: No OFD packet to send [22:52:34]OFD Sender: No OFD packet to send [22:52:39]OFD Sender: No OFD packet to send [22:52:44]OFD Sender: No OFD packet to send [22:52:49]OFD Sender: No OFD packet to send [22:52:54]OFD Sender: No OFD packet to send [22:52:59]OFD Sender: No OFD packet to send [22:53:04]OFD Sender: No OFD packet to send [22:53:09]OFD Sender: No OFD packet to send [22:53:11]accept exits with 7 [22:53:11]New connection [22:53:11]New thread 3067473252 created [22:53:11]Thread 3067616612 joined [22:53:11]Waiting for new connection... [22:53:11] Sock 7.Parse request [22:53:11]Sock 7.Check first char [22:53:11]Sock 7.First char is OK [22:53:11]request: POST /json_proto HTTP/1.0 [22:53:11]Method: POST [22:53:11]URL: /json_proto [22:53:11]Method is POST - this is cgi request [22:53:11]url: /json_proto [22:53:11]query_string will be loaded in cgi processing [22:53:11]execute_cgi json_proto POST (null) [22:53:11]execute_cgi path=json_proto method=POST [22:53:11]POST find Content-Length [22:53:11]Host: 172.17.38.133:8080 [22:53:11]Content-Length: 677 [22:53:11]Content-Type: application/json [22:53:11] [22:53:11]POST finish read [22:53:11]Found Content-Length = 677 [22:53:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673745", "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" ] } } [22:53:11]execute_script... [22:53:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673745", "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" ] } } [22:53:11]POST & json_proto [22:53:11]process_json_proto [22:53:11]json parsed OK: [22:53:11]protocol is kg_v1.0 [22:53:11]action value=close_receipt [22:53:11]process_action close_receipt [22:53:11]cmd_close_receipt [22:53:11]MH_GetDate [22:53:11]Write to MH i2c: F0 00 00 01 15 05 [22:53:11]Write i2c OK [22:53:11]MH_I2C_Read... [22:53:11]Read from MH i2c: F0 [22:53:11]MH_I2C_Read... [22:53:11]Read from MH i2c: F0 09 00 [22:53:11]MH_I2C_Read... [22:53:11]Read from MH i2c: F0 09 00 01 15 00 59 04 76 66 BD 8F 7C 64 73 [22:53:11]GetLastDocTimeStamp 1719010033 [22:53:11]current date 1719010393 [22:53:11]FM_GetShiftState [22:53:11]SAM_PROTO_GetShiftState [22:53:11]wFMCommunicate request_size=4 [22:53:11]MH_SAM_APDU [22:53:11]CAPDU: 80 13 01 00 [22:53:11]Write to MH i2c: E2 08 00 02 15 80 13 01 00 00 00 00 00 94 [22:53:11]Write i2c OK [22:53:11]MH_I2C_Read... [22:53:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:53:11]Read from MH i2c: E2 [22:53:11]MH_I2C_Read... [22:53:11]Read from MH i2c: E2 0E 00 [22:53:11]MH_I2C_Read... [22:53:11]Read from MH i2c: E2 0E 00 02 15 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 A7 [22:53:11]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [22:53:11]wFMCommunicate OK [22:53:11]SAM_PROTO_GetShiftState done [22:53:11]FM_GetShiftState done [22:53:11]opened in 1718929509 [22:53:11]opened+sec_in_day 1719015909 [22:53:11]quantity*price = 50065 [22:53:11]sum+1 = 50067 [22:53: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 СНО: Общий режим Чек 179 21.06.2024 22:53 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104256 ФПД: 106890101996797 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T225313&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104256&fm=106890101996797&tin=02508201610067®Number=0000000000092785&sum=50000 [22:53:12]StoreToDocumentArchive [22:53:12]shift 355 fd 104256 [22:53:12]save to /storage/0355/doc_00104256 [22:53:12]save last doc name /storage/0355/doc_00104256 to /storage/kkm_last_doc_name [22:53:12]save OK [22:53:12]Clear old archive folders... [22:53:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:53:12]tlvbuf is B6FFA4F0 [22:53:12]SAM_PROTO_ClearQueue [22:53:12]wFMCommunicate request_size=4 [22:53:12]MH_SAM_APDU [22:53:12]CAPDU: 80 09 00 00 [22:53:12]Write to MH i2c: E2 08 00 0F 15 80 09 00 00 00 00 00 00 96 [22:53:12]Write i2c OK [22:53:12]MH_I2C_Read... [22:53:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:53:12]Read from MH i2c: E2 [22:53:12]MH_I2C_Read... [22:53:12]Read from MH i2c: E2 03 00 [22:53:12]MH_I2C_Read... [22:53:12]Read from MH i2c: E2 03 00 0F 15 00 90 00 98 [22:53:12]RAPDU: 90 00 [22:53:12]wFMCommunicate OK [22:53:12]SAM_PROTO_ClearQueue done [22:53:12]KKMCreateOFDPacket [22:53:12]OFDProtocolAddRootSTLVToBuf [22:53:12]FM_MakeSignedData [22:53:12]FM_MakeSignedData [22:53:12]SAM_PROTO_SignData [22:53:12]wFMCommunicate request_size=4 [22:53:12]MH_SAM_APDU [22:53:12]CAPDU: 80 0D 01 02 [22:53:12]Write to MH i2c: E2 08 00 10 15 80 0D 01 02 00 00 00 00 9E [22:53:12]Write i2c OK [22:53:12]MH_I2C_Read... [22:53:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:53:12]Read from MH i2c: E2 [22:53:12]MH_I2C_Read... [22:53:12]Read from MH i2c: E2 03 00 [22:53:12]MH_I2C_Read... [22:53:12]Read from MH i2c: E2 03 00 10 15 00 90 00 99 [22:53:12]RAPDU: 90 00 [22:53:12]wFMCommunicate OK [22:53:12]wFMCommunicate request_size=255 [22:53:12]MH_SAM_APDU [22:53:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 B3 00 00 00 F4 03 04 00 59 04 76 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 40 97 01 00 35 04 06 00 61 [22:53:12]Write to MH i2c: E2 02 01 11 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 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 B3 00 00 00 F4 03 04 00 59 04 76 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 40 97 01 00 35 04 06 00 61 00 00 E1 [22:53:12]Write i2c OK [22:53:12]MH_I2C_Read... [22:53:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:53:13]Read from MH i2c: E2 [22:53:13]MH_I2C_Read... [22:53:13]Read from MH i2c: E2 03 00 [22:53:13]MH_I2C_Read... [22:53:13]Read from MH i2c: E2 03 00 11 15 00 90 00 9A [22:53:13]RAPDU: 90 00 [22:53:13]wFMCommunicate OK [22:53:13]wFMCommunicate request_size=10 [22:53:13]MH_SAM_APDU [22:53:13]CAPDU: 80 0D 02 02 05 37 4A 8F 3C FD [22:53:13]Write to MH i2c: E2 0D 00 12 15 80 0D 02 02 05 00 37 4A 8F 3C FD 00 00 F4 [22:53:13]Write i2c OK [22:53:13]MH_I2C_Read... [22:53:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:53:13]Read from MH i2c: E2 [22:53:13]MH_I2C_Read... [22:53:13]Read from MH i2c: E2 03 00 [22:53:13]MH_I2C_Read... [22:53:13]Read from MH i2c: E2 03 00 12 15 00 90 00 9B [22:53:13]RAPDU: 90 00 [22:53:13]wFMCommunicate OK [22:53:13]wFMCommunicate request_size=4 [22:53:13]MH_SAM_APDU [22:53:13]CAPDU: 80 0D 03 02 [22:53:13]Write to MH i2c: E2 08 00 13 15 80 0D 03 02 00 00 00 00 A3 [22:53:13]Write i2c OK [22:53:13]MH_I2C_Read... [22:53:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:53:13]Read from MH i2c: E2 [22:53:13]MH_I2C_Read... [22:53:13]Read from MH i2c: E2 0B 00 [22:53:13]MH_I2C_Read... [22:53:13]Read from MH i2c: E2 0B 00 13 15 00 18 6A 2F D7 FA FB CC FA 90 00 E7 [22:53:13]RAPDU: 18 6A 2F D7 FA FB CC FA 90 00 [22:53:13]wFMCommunicate OK [22:53:13]SAM_PROTO_SignData done [22:53:13]FM_MakeSignedData done [22:53:13]CreateOFDProtocolMessage [22:53:13]wFMCommunicate request_size=4 [22:53:13]MH_SAM_APDU [22:53:13]CAPDU: 80 11 00 00 [22:53:13]Write to MH i2c: E2 08 00 14 15 80 11 00 00 00 00 00 00 A3 [22:53:13]Write i2c OK [22:53:13]MH_I2C_Read... [22:53:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:53:13]Read from MH i2c: E2 [22:53:13]MH_I2C_Read... [22:53:13]Read from MH i2c: E2 17 00 [22:53:13]MH_I2C_Read... [22:53:13]Read from MH i2c: E2 17 00 14 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 F6 [22:53:13]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:13]wFMCommunicate OK [22:53:13]CreateOFDProtocolMessage done [22:53:13]OFDSenderStorePacket 104256 [22:53:13]StoreOFDPacket docnum=104256 [22:53: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 E3 D9 07 01 FE CB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 B3 00 00 00 F4 03 04 00 59 04 76 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 40 97 01 00 35 04 06 00 61 37 4A 8F 3C FD 18 6A 2F D7 FA FB CC FA [22:53:13]CheckFolder [22:53:13]dirname=/storage/ofd_packets [22:53:13]CheckFolder done [22:53:13]ProducePacketName [22:53:13]name=ofd_packets/00104256 [22:53:13]NVStorageSaveData ofd_packets/00104256 [22:53:13]File name is /storage/ofd_packets/00104256 [22:53:13]Write 301 bytes [22:53:13]NVStorageSaveData done [22:53:13]OFDSenderStorePacket done [22:53:13]KKMCreateOFDPacket done [22:53:13]NVStorageSaveData kkm_last_timestamp [22:53:13]File name is /storage/kkm_last_timestamp [22:53:13]Write 4 bytes [22:53:13]NVStorageSaveData done [22:53:13]ExternCall_PrintAddStr [22:53:13]wPrintStart [22:53:13]Write to MH i2c: 01 00 00 15 15 2A [22:53:13]Write i2c OK [22:53:13]MH_I2C_Read... [22:53:13]Read from MH i2c: 01 [22:53:13]MH_I2C_Read... [22:53:13]Read from MH i2c: 01 07 00 [22:53:13]MH_I2C_Read... [22:53:13]Read from MH i2c: 01 07 00 15 15 00 00 00 00 00 FF 0F 3F [22:53:13]RasterBufferAndPrint [22:53:13]line Счет N : (1)673745 [22:53:13]line ИНН: 02508201610067 [22:53:13]line Контрольно-Кассовый Чек [22:53:13]line ПРОДАЖА [22:53:13]line ТРК (МРК, ГНК) : 32 [22:53:13]line Товар: 2710124130 [22:53:13]line Аи-92-К-5 [22:53:13]line 7.540 * 66.40 [22:53:13]line = 500.66 [22:53:13]line НДС 12% НСП 1% [22:53:13]line > о реализуемом товаре [22:53:13]line ОКРУГЛЕНИЕ: -0.66 [22:53:13]line ИТОГО: 500.00 [22:53:13]line Внесено: 500.00 [22:53:13]line СДАЧА: 0.00 [22:53:13]line НСП 1% : 4.43 [22:53:13]line НДС 12% : 53.17 [22:53:13]line Наличными: 500.00 [22:53:13]line Безнал.: 0.00 [22:53:13]line Место: АЗС № 120 "Партнер Нефть" [22:53:13]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [22:53:13]line СНО: Общий режим [22:53:13]line Чек 179 21.06.2024 22:53 [22:53:13]line Смена: 355 ФФД: 1.0 [22:53:13]line ЗНМ: 0300000164 [22:53:13]line РНМ: 0000000000092785 [22:53:13]line Версия ККМ: 001 [22:53:13]line ФМ: 0000000000875093 [22:53:13]line ФД: 104256 [22:53:13]line ФПД: 106890101996797 [22:53:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T225313&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104256&fm=106890101996797&tin=02508201610067®Number=0000000000092785&sum=50000 [22:53:13]OFD Sender: Processing packet 104256 [packets to send 17, broken 16] [22:53:13]ProducePacketName [22:53:13]name=ofd_packets/00104256 [22:53:13]OFD Sender: To server: pG, [22:53:13]CommunicateWithHost lk.salyk.kg:30040 [22:53:13]ConnectInit lk.salyk.kg [22:53:13]written 0, free lines is 4095 [22:53:13]Connected sock=10 [22:53:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 E3 D9 07 01 FE CB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 B3 00 00 00 F4 03 04 00 59 04 76 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 40 97 01 00 35 04 06 00 61 37 4A 8F 3C FD 18 6A 2F D7 FA FB CC FA [22:53: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 9C 84 47 00 BA 29 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 40 97 01 00 F4 03 04 00 DA AA 75 66 B6 04 01 00 00 39 C2 97 36 40 C4 86 6A [22:53:13]CommunicateWithHost err = 0 [22:53:13]CheckOFDResponse [22:53:13]1017 (14) - 77093643461234 [22:53:13]1041 (16) - 0000000000875093 [22:53:13]1040 (4) - 104256 [22:53:13]1012 (4) - 21.06.2024 16:31 [22:53:13]1206 (1) - 0 [22:53:13]OFD Sender: Remove packet 104256 [22:53:13]ProducePacketName [22:53:13]name=ofd_packets/00104256 [22:53:13]NVStorageDeleteData [22:53:14]Write to MH i2c: 01 00 00 40 15 55 [22:53:14]Write i2c OK [22:53:14]MH_I2C_Read... [22:53:14]Read from MH i2c: 01 [22:53:14]MH_I2C_Read... [22:53:14]Read from MH i2c: 01 07 00 [22:53:14]MH_I2C_Read... [22:53:14]Read from MH i2c: 01 07 00 40 15 00 00 00 00 00 EB 0C 53 [22:53:14]RasterBufferAndPrint [22:53:14]line [22:53:14]line [22:53:14]line [22:53:14]line [22:53:14]line [22:53:14]written 0, free lines is 3313 [22:53:14]MH_Cut [22:53:14]Write to MH i2c: D1 01 00 47 15 01 2E [22:53:14]Write i2c OK [22:53:14]MH_I2C_Read... [22:53:14]Read from MH i2c: D1 [22:53:14]MH_I2C_Read... [22:53:14]Read from MH i2c: D1 01 00 [22:53:14]MH_I2C_Read... [22:53:14]Read from MH i2c: D1 01 00 47 15 00 2D [22:53:14]Write to MH i2c: 01 00 00 48 15 5D [22:53:14]Write i2c OK [22:53:14]MH_I2C_Read... [22:53:14]OFD Sender: No OFD packet to send [22:53:14]*** Cut start [22:53:14]*** Partial cut [22:53:14]*** CUTSNS_PIN = 1 [22:53:14]*** CUTSNS_PIN = 0 [22:53:14]*** Brake cut motor [22:53:15]Read from MH i2c: 01 [22:53:15]MH_I2C_Read... [22:53:15]*** Stop cut motor [22:53:15]*** Cut end [22:53:15]Read from MH i2c: 01 07 00 [22:53:15]MH_I2C_Read... [22:53:15]Read from MH i2c: 01 07 00 48 15 00 00 00 00 00 FF 0F 72 [22:53:15]process_action close_receipt done [22:53:15]requested_data is exist [22:53:15]produce_requested_data [22:53:15]requested_item fm.sn is exist - process it [22:53:15]wFMCommunicate request_size=4 [22:53:15]MH_SAM_APDU [22:53:15]CAPDU: 80 11 00 00 [22:53:15]Write to MH i2c: E2 08 00 49 15 80 11 00 00 00 00 00 00 D8 [22:53:15]Write i2c OK [22:53:15]MH_I2C_Read... [22:53:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:53:15]Read from MH i2c: E2 [22:53:15]MH_I2C_Read... [22:53:15]Read from MH i2c: E2 17 00 [22:53:15]MH_I2C_Read... [22:53:15]Read from MH i2c: E2 17 00 49 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 2B [22:53: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:53:15]wFMCommunicate OK [22:53:15]requested_item fd.num is exist - process it [22:53:15]SAM_PROTO_GetFieldsCounters [22:53:15]wFMCommunicate request_size=4 [22:53:15]MH_SAM_APDU [22:53:15]CAPDU: 80 13 00 00 [22:53:15]Write to MH i2c: E2 08 00 4A 15 80 13 00 00 00 00 00 00 DB [22:53:15]Write i2c OK [22:53:15]MH_I2C_Read... [22:53:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:53:15]Read from MH i2c: E2 [22:53:15]MH_I2C_Read... [22:53:15]Read from MH i2c: E2 62 00 [22:53:15]MH_I2C_Read... [22:53:15]Read from MH i2c: E2 62 00 4A 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 40 97 01 00 0E 04 04 00 63 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 57 [22:53:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 63 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 [22:53:15]wFMCommunicate OK [22:53:15]SAM_PROTO_GetFieldsCounters done [22:53:15]requested_item shift.num is exist - process it [22:53:15]requested_item shift.opened is exist - process it [22:53:15]req_shift_opened [22:53:15]FM_GetShiftState [22:53:15]SAM_PROTO_GetShiftState [22:53:15]wFMCommunicate request_size=4 [22:53:15]MH_SAM_APDU [22:53:15]CAPDU: 80 13 01 00 [22:53:15]Write to MH i2c: E2 08 00 4B 15 80 13 01 00 00 00 00 00 DD [22:53:15]Write i2c OK [22:53:15]MH_I2C_Read... [22:53:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:53:15]Read from MH i2c: E2 [22:53:15]MH_I2C_Read... [22:53:15]Read from MH i2c: E2 0E 00 [22:53:15]MH_I2C_Read... [22:53:15]Read from MH i2c: E2 0E 00 4B 15 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 F0 [22:53:15]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [22:53:15]wFMCommunicate OK [22:53:15]SAM_PROTO_GetShiftState done [22:53:15]FM_GetShiftState done [22:53:15]req_shift_opened done [22:53:15]requested_item shift.open_date is exist - process it [22:53:15]req_shift_open_date [22:53:15]req_shift_open_date done [22:53:15]produce_requested_data done [22:53:15]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104256,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [22:53:15]process_action_free close_receipt [22:53:15]json_value_free [22:53:15]json_value_free done [22:53:15]process_json_proto returns [22:53:15]Send response to host [22:53:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104256,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [22:53:15]free response buf [22:53:15]execute_script done [22:53:15]execute_script returns [22:53:15]free content buf [22:53:15]Sock 7.Close socket [22:53:15]Sock 7.Thread stoped [22:53:19]OFD Sender: No OFD packet to send [22:53:24]OFD Sender: No OFD packet to send [22:53:29]OFD Sender: No OFD packet to send [22:53:34]OFD Sender: No OFD packet to send [22:53:39]OFD Sender: No OFD packet to send [22:53:44]OFD Sender: No OFD packet to send [22:53:49]OFD Sender: No OFD packet to send [22:53:54]OFD Sender: No OFD packet to send [22:53:59]OFD Sender: No OFD packet to send [22:54:04]OFD Sender: No OFD packet to send [22:54:09]OFD Sender: No OFD packet to send [22:54:14]OFD Sender: No OFD packet to send [22:54:19]OFD Sender: No OFD packet to send [22:54:24]OFD Sender: No OFD packet to send [22:54:29]OFD Sender: No OFD packet to send [22:54:34]OFD Sender: No OFD packet to send [22:54:39]OFD Sender: No OFD packet to send [22:54:44]OFD Sender: No OFD packet to send [22:54:49]OFD Sender: No OFD packet to send [22:54:54]OFD Sender: No OFD packet to send [22:54:59]OFD Sender: No OFD packet to send [22:55:04]OFD Sender: No OFD packet to send [22:55:09]OFD Sender: No OFD packet to send [22:55:14]OFD Sender: No OFD packet to send [22:55:19]OFD Sender: No OFD packet to send [22:55:24]OFD Sender: No OFD packet to send [22:55:29]OFD Sender: No OFD packet to send [22:55:34]OFD Sender: No OFD packet to send [22:55:39]OFD Sender: No OFD packet to send [22:55:44]OFD Sender: No OFD packet to send [22:55:49]OFD Sender: No OFD packet to send [22:55:54]OFD Sender: No OFD packet to send [22:55:59]OFD Sender: No OFD packet to send [22:56:04]OFD Sender: No OFD packet to send [22:56:09]OFD Sender: No OFD packet to send [22:56:14]OFD Sender: No OFD packet to send [22:56:19]OFD Sender: No OFD packet to send [22:56:24]accept exits with 9 [22:56:24]New connection [22:56:24]New thread 3067616612 created [22:56:24]Thread 3067473252 joined [22:56:24]Waiting for new connection... [22:56:24] Sock 9.Parse request [22:56:24]Sock 9.Check first char [22:56:24]Sock 9.First char is OK [22:56:24]request: POST /json_proto HTTP/1.0 [22:56:24]Method: POST [22:56:24]URL: /json_proto [22:56:24]Method is POST - this is cgi request [22:56:24]url: /json_proto [22:56:24]query_string will be loaded in cgi processing [22:56:24]execute_cgi json_proto POST (null) [22:56:24]execute_cgi path=json_proto method=POST [22:56:24]POST find Content-Length [22:56:24]Host: 172.17.38.133:8080 [22:56:24]Content-Length: 682 [22:56:24]Content-Type: application/json [22:56:24] [22:56:24]POST finish read [22:56:24]Found Content-Length = 682 [22:56:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673746", "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 }]} ], "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:56:24]execute_script... [22:56: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)673746", "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 }]} ], "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:56:24]POST & json_proto [22:56:24]process_json_proto [22:56:24]json parsed OK: [22:56:24]protocol is kg_v1.0 [22:56:24]action value=close_receipt [22:56:24]process_action close_receipt [22:56:24]cmd_close_receipt [22:56:24]MH_GetDate [22:56:24]Write to MH i2c: F0 00 00 4C 15 50 [22:56:24]Write i2c OK [22:56:24]MH_I2C_Read... [22:56:24]Read from MH i2c: F0 [22:56:24]MH_I2C_Read... [22:56:24]Read from MH i2c: F0 09 00 [22:56:24]MH_I2C_Read... [22:56:24]Read from MH i2c: F0 09 00 4C 15 00 1A 05 76 66 BD 8F 7C 64 80 [22:56:24]GetLastDocTimeStamp 1719010393 [22:56:24]current date 1719010586 [22:56:24]FM_GetShiftState [22:56:24]SAM_PROTO_GetShiftState [22:56:24]wFMCommunicate request_size=4 [22:56:24]MH_SAM_APDU [22:56:24]CAPDU: 80 13 01 00 [22:56:24]Write to MH i2c: E2 08 00 4D 15 80 13 01 00 00 00 00 00 DF [22:56:24]Write i2c OK [22:56:24]MH_I2C_Read... [22:56:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:56:24]Read from MH i2c: E2 [22:56:24]MH_I2C_Read... [22:56:24]Read from MH i2c: E2 0E 00 [22:56:24]MH_I2C_Read... [22:56:24]Read from MH i2c: E2 0E 00 4D 15 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 F2 [22:56:24]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [22:56:24]wFMCommunicate OK [22:56:24]SAM_PROTO_GetShiftState done [22:56:24]FM_GetShiftState done [22:56:24]opened in 1718929509 [22:56:24]opened+sec_in_day 1719015909 [22:56:24]quantity*price = 100060 [22:56:24]sum+1 = 100062 [22:56:24]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 СНО: Общий режим Чек 180 21.06.2024 22:56 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104257 ФПД: 152370503811716 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T225626&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104257&fm=152370503811716&tin=02508201610067®Number=0000000000092785&sum=100000 [22:56:25]StoreToDocumentArchive [22:56:25]shift 355 fd 104257 [22:56:25]save to /storage/0355/doc_00104257 [22:56:25]save last doc name /storage/0355/doc_00104257 to /storage/kkm_last_doc_name [22:56:25]save OK [22:56:25]Clear old archive folders... [22:56:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:56:25]tlvbuf is 006BAC40 [22:56:25]SAM_PROTO_ClearQueue [22:56:25]wFMCommunicate request_size=4 [22:56:25]MH_SAM_APDU [22:56:25]CAPDU: 80 09 00 00 [22:56:25]Write to MH i2c: E2 08 00 5A 15 80 09 00 00 00 00 00 00 E1 [22:56:25]Write i2c OK [22:56:25]MH_I2C_Read... [22:56:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:56:25]Read from MH i2c: E2 [22:56:25]MH_I2C_Read... [22:56:25]Read from MH i2c: E2 03 00 [22:56:25]MH_I2C_Read... [22:56:25]Read from MH i2c: E2 03 00 5A 15 00 90 00 E3 [22:56:25]RAPDU: 90 00 [22:56:25]wFMCommunicate OK [22:56:25]SAM_PROTO_ClearQueue done [22:56:25]KKMCreateOFDPacket [22:56:25]OFDProtocolAddRootSTLVToBuf [22:56:25]FM_MakeSignedData [22:56:25]FM_MakeSignedData [22:56:25]SAM_PROTO_SignData [22:56:25]wFMCommunicate request_size=4 [22:56:25]MH_SAM_APDU [22:56:25]CAPDU: 80 0D 01 02 [22:56:25]Write to MH i2c: E2 08 00 5B 15 80 0D 01 02 00 00 00 00 E9 [22:56:25]Write i2c OK [22:56:25]MH_I2C_Read... [22:56:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:56:25]Read from MH i2c: E2 [22:56:25]MH_I2C_Read... [22:56:25]Read from MH i2c: E2 03 00 [22:56:25]MH_I2C_Read... [22:56:25]Read from MH i2c: E2 03 00 5B 15 00 90 00 E4 [22:56:25]RAPDU: 90 00 [22:56:25]wFMCommunicate OK [22:56:25]wFMCommunicate request_size=255 [22:56:25]MH_SAM_APDU [22:56: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 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 B4 00 00 00 F4 03 04 00 1A 05 76 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 41 97 01 00 35 04 06 00 8A [22:56:25]Write to MH i2c: E2 02 01 5C 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 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 B4 00 00 00 F4 03 04 00 1A 05 76 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 41 97 01 00 35 04 06 00 8A 00 00 5A [22:56:25]Write i2c OK [22:56:25]MH_I2C_Read... [22:56:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:56:26]Read from MH i2c: E2 [22:56:26]MH_I2C_Read... [22:56:26]Read from MH i2c: E2 03 00 [22:56:26]MH_I2C_Read... [22:56:26]Read from MH i2c: E2 03 00 5C 15 00 90 00 E5 [22:56:26]RAPDU: 90 00 [22:56:26]wFMCommunicate OK [22:56:26]wFMCommunicate request_size=10 [22:56:26]MH_SAM_APDU [22:56:26]CAPDU: 80 0D 02 02 05 94 85 C1 02 84 [22:56:26]Write to MH i2c: E2 0D 00 5D 15 80 0D 02 02 05 00 94 85 C1 02 84 00 00 56 [22:56:26]Write i2c OK [22:56:26]MH_I2C_Read... [22:56:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:56:26]Read from MH i2c: E2 [22:56:26]MH_I2C_Read... [22:56:26]Read from MH i2c: E2 03 00 [22:56:26]MH_I2C_Read... [22:56:26]Read from MH i2c: E2 03 00 5D 15 00 90 00 E6 [22:56:26]RAPDU: 90 00 [22:56:26]wFMCommunicate OK [22:56:26]wFMCommunicate request_size=4 [22:56:26]MH_SAM_APDU [22:56:26]CAPDU: 80 0D 03 02 [22:56:26]Write to MH i2c: E2 08 00 5E 15 80 0D 03 02 00 00 00 00 EE [22:56:26]Write i2c OK [22:56:26]MH_I2C_Read... [22:56:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:56:26]Read from MH i2c: E2 [22:56:26]MH_I2C_Read... [22:56:26]Read from MH i2c: E2 0B 00 [22:56:26]MH_I2C_Read... [22:56:26]Read from MH i2c: E2 0B 00 5E 15 00 0D FE A9 38 BC 3E 25 47 90 00 41 [22:56:26]RAPDU: 0D FE A9 38 BC 3E 25 47 90 00 [22:56:26]wFMCommunicate OK [22:56:26]SAM_PROTO_SignData done [22:56:26]FM_MakeSignedData done [22:56:26]CreateOFDProtocolMessage [22:56:26]wFMCommunicate request_size=4 [22:56:26]MH_SAM_APDU [22:56:26]CAPDU: 80 11 00 00 [22:56:26]Write to MH i2c: E2 08 00 5F 15 80 11 00 00 00 00 00 00 EE [22:56:26]Write i2c OK [22:56:26]MH_I2C_Read... [22:56:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:56:26]Read from MH i2c: E2 [22:56:26]MH_I2C_Read... [22:56:26]Read from MH i2c: E2 17 00 [22:56:26]MH_I2C_Read... [22:56:26]Read from MH i2c: E2 17 00 5F 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 41 [22:56: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:56:26]wFMCommunicate OK [22:56:26]CreateOFDProtocolMessage done [22:56:26]OFDSenderStorePacket 104257 [22:56:26]StoreOFDPacket docnum=104257 [22:56: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 58 91 07 01 19 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 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 B4 00 00 00 F4 03 04 00 1A 05 76 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 41 97 01 00 35 04 06 00 8A 94 85 C1 02 84 0D FE A9 38 BC 3E 25 47 [22:56:26]CheckFolder [22:56:26]dirname=/storage/ofd_packets [22:56:26]CheckFolder done [22:56:26]ProducePacketName [22:56:26]name=ofd_packets/00104257 [22:56:26]NVStorageSaveData ofd_packets/00104257 [22:56:26]File name is /storage/ofd_packets/00104257 [22:56:26]Write 301 bytes [22:56:26]NVStorageSaveData done [22:56:26]OFDSenderStorePacket done [22:56:26]KKMCreateOFDPacket done [22:56:26]NVStorageSaveData kkm_last_timestamp [22:56:26]File name is /storage/kkm_last_timestamp [22:56:26]Write 4 bytes [22:56:26]NVStorageSaveData done [22:56:26]ExternCall_PrintAddStr [22:56:26]wPrintStart [22:56:26]Write to MH i2c: 01 00 00 60 15 75 [22:56:26]Write i2c OK [22:56:26]MH_I2C_Read... [22:56:26]Read from MH i2c: 01 [22:56:26]MH_I2C_Read... [22:56:26]Read from MH i2c: 01 07 00 [22:56:26]MH_I2C_Read... [22:56:26]Read from MH i2c: 01 07 00 60 15 00 00 00 00 00 FF 0F 8A [22:56:26]RasterBufferAndPrint [22:56:26]line Счет N : (1)673746 [22:56:26]line ИНН: 02508201610067 [22:56:26]line Контрольно-Кассовый Чек [22:56:26]line ПРОДАЖА [22:56:26]line ТРК (МРК, ГНК) : 41 [22:56:26]line Товар: 2710124500 [22:56:26]line Аи-95-К-5 [22:56:26]line 13.540 * 73.90 [22:56:26]line = 1000.61 [22:56:26]line НДС 12% НСП 1% [22:56:26]line > о реализуемом товаре [22:56:26]line ОКРУГЛЕНИЕ: -0.61 [22:56:26]line ИТОГО: 1000.00 [22:56:26]line Внесено: 1000.00 [22:56:26]line СДАЧА: 0.00 [22:56:26]line НСП 1% : 8.85 [22:56:26]line НДС 12% : 106.26 [22:56:26]line Наличными: 1000.00 [22:56:26]line Безнал.: 0.00 [22:56:26]line Место: АЗС № 120 "Партнер Нефть" [22:56:26]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [22:56:26]line СНО: Общий режим [22:56:26]line Чек 180 21.06.2024 22:56 [22:56:26]line Смена: 355 ФФД: 1.0 [22:56:26]line ЗНМ: 0300000164 [22:56:26]line РНМ: 0000000000092785 [22:56:26]line Версия ККМ: 001 [22:56:26]line ФМ: 0000000000875093 [22:56:26]line ФД: 104257 [22:56:26]line ФПД: 152370503811716 [22:56:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T225626&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104257&fm=152370503811716&tin=02508201610067®Number=0000000000092785&sum=100000 [22:56:26]OFD Sender: Processing packet 104257 [packets to send 17, broken 16] [22:56:26]ProducePacketName [22:56:26]name=ofd_packets/00104257 [22:56:26]OFD Sender: To server: pG, [22:56:26]CommunicateWithHost lk.salyk.kg:30040 [22:56:26]ConnectInit lk.salyk.kg [22:56:26]written 0, free lines is 4095 [22:56:26]Connected sock=10 [22:56: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 58 91 07 01 19 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 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 B4 00 00 00 F4 03 04 00 1A 05 76 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 41 97 01 00 35 04 06 00 8A 94 85 C1 02 84 0D FE A9 38 BC 3E 25 47 [22:56: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 4A BF 47 00 91 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 41 97 01 00 F4 03 04 00 9B AB 75 66 B6 04 01 00 00 B5 24 40 43 1F F6 0A 88 [22:56:26]CommunicateWithHost err = 0 [22:56:26]CheckOFDResponse [22:56:26]1017 (14) - 77093643461234 [22:56:26]1041 (16) - 0000000000875093 [22:56:26]1040 (4) - 104257 [22:56:26]1012 (4) - 21.06.2024 16:34 [22:56:26]1206 (1) - 0 [22:56:26]OFD Sender: Remove packet 104257 [22:56:26]ProducePacketName [22:56:26]name=ofd_packets/00104257 [22:56:26]NVStorageDeleteData [22:56:26]Write to MH i2c: 01 00 00 8B 15 A0 [22:56:26]Write i2c OK [22:56:26]MH_I2C_Read... [22:56:26]Read from MH i2c: 01 [22:56:26]MH_I2C_Read... [22:56:26]Read from MH i2c: 01 07 00 [22:56:26]MH_I2C_Read... [22:56:26]Read from MH i2c: 01 07 00 8B 15 00 00 00 00 00 D9 0C 8C [22:56:26]RasterBufferAndPrint [22:56:26]line [22:56:26]line [22:56:26]line [22:56:26]line [22:56:26]line [22:56:26]written 0, free lines is 3296 [22:56:26]MH_Cut [22:56:26]Write to MH i2c: D1 01 00 92 15 01 79 [22:56:26]Write i2c OK [22:56:26]MH_I2C_Read... [22:56:26]Read from MH i2c: D1 [22:56:26]MH_I2C_Read... [22:56:26]Read from MH i2c: D1 01 00 [22:56:26]MH_I2C_Read... [22:56:26]Read from MH i2c: D1 01 00 92 15 00 78 [22:56:26]Write to MH i2c: 01 00 00 93 15 A8 [22:56:26]Write i2c OK [22:56:26]MH_I2C_Read... [22:56:27]OFD Sender: No OFD packet to send [22:56:27]*** Cut start [22:56:27]*** Partial cut [22:56:27]*** CUTSNS_PIN = 1 [22:56:27]*** CUTSNS_PIN = 0 [22:56:27]*** Brake cut motor [22:56:28]Read from MH i2c: 01 [22:56:28]MH_I2C_Read... [22:56:28]*** Stop cut motor [22:56:28]*** Cut end [22:56:28]Read from MH i2c: 01 07 00 [22:56:28]MH_I2C_Read... [22:56:28]Read from MH i2c: 01 07 00 93 15 00 00 00 00 00 FF 0F BD [22:56:28]process_action close_receipt done [22:56:28]requested_data is exist [22:56:28]produce_requested_data [22:56:28]requested_item fm.sn is exist - process it [22:56:28]wFMCommunicate request_size=4 [22:56:28]MH_SAM_APDU [22:56:28]CAPDU: 80 11 00 00 [22:56:28]Write to MH i2c: E2 08 00 94 15 80 11 00 00 00 00 00 00 23 [22:56:28]Write i2c OK [22:56:28]MH_I2C_Read... [22:56:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:56:28]Read from MH i2c: E2 [22:56:28]MH_I2C_Read... [22:56:28]Read from MH i2c: E2 17 00 [22:56:28]MH_I2C_Read... [22:56:28]Read from MH i2c: E2 17 00 94 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 76 [22:56: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:56:28]wFMCommunicate OK [22:56:28]requested_item fd.num is exist - process it [22:56:28]SAM_PROTO_GetFieldsCounters [22:56:28]wFMCommunicate request_size=4 [22:56:28]MH_SAM_APDU [22:56:28]CAPDU: 80 13 00 00 [22:56:28]Write to MH i2c: E2 08 00 95 15 80 13 00 00 00 00 00 00 26 [22:56:28]Write i2c OK [22:56:28]MH_I2C_Read... [22:56:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:56:28]Read from MH i2c: E2 [22:56:28]MH_I2C_Read... [22:56:28]Read from MH i2c: E2 62 00 [22:56:28]MH_I2C_Read... [22:56:28]Read from MH i2c: E2 62 00 95 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 41 97 01 00 0E 04 04 00 63 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 A6 [22:56: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 97 01 00 0E 04 04 00 63 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 [22:56:28]wFMCommunicate OK [22:56:28]SAM_PROTO_GetFieldsCounters done [22:56:28]requested_item shift.num is exist - process it [22:56:28]requested_item shift.opened is exist - process it [22:56:28]req_shift_opened [22:56:28]FM_GetShiftState [22:56:28]SAM_PROTO_GetShiftState [22:56:28]wFMCommunicate request_size=4 [22:56:28]MH_SAM_APDU [22:56:28]CAPDU: 80 13 01 00 [22:56:28]Write to MH i2c: E2 08 00 96 15 80 13 01 00 00 00 00 00 28 [22:56:28]Write i2c OK [22:56:28]MH_I2C_Read... [22:56:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:56:28]Read from MH i2c: E2 [22:56:28]MH_I2C_Read... [22:56:28]Read from MH i2c: E2 0E 00 [22:56:28]MH_I2C_Read... [22:56:28]Read from MH i2c: E2 0E 00 96 15 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 3B [22:56:28]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [22:56:28]wFMCommunicate OK [22:56:28]SAM_PROTO_GetShiftState done [22:56:28]FM_GetShiftState done [22:56:28]req_shift_opened done [22:56:28]requested_item shift.open_date is exist - process it [22:56:28]req_shift_open_date [22:56:28]req_shift_open_date done [22:56:28]produce_requested_data done [22:56:28]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104257,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [22:56:28]process_action_free close_receipt [22:56:28]json_value_free [22:56:28]json_value_free done [22:56:28]process_json_proto returns [22:56:28]Send response to host [22:56:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104257,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [22:56:28]free response buf [22:56:28]execute_script done [22:56:28]execute_script returns [22:56:28]free content buf [22:56:28]Sock 9.Close socket [22:56:28]Sock 9.Thread stoped [22:56:32]OFD Sender: No OFD packet to send [22:56:37]OFD Sender: No OFD packet to send [22:56:42]OFD Sender: No OFD packet to send [22:56:46]recv_with_timeout no data received [22:56:47]OFD Sender: No OFD packet to send [22:56:52]OFD Sender: No OFD packet to send [22:56:57]OFD Sender: No OFD packet to send [22:57:02]OFD Sender: No OFD packet to send [22:57:07]OFD Sender: No OFD packet to send [22:57:12]OFD Sender: No OFD packet to send [22:57:17]OFD Sender: No OFD packet to send [22:57:22]OFD Sender: No OFD packet to send [22:57:27]OFD Sender: No OFD packet to send [22:57:32]OFD Sender: No OFD packet to send [22:57:37]OFD Sender: No OFD packet to send [22:57:42]OFD Sender: No OFD packet to send [22:57:47]OFD Sender: No OFD packet to send [22:57:52]OFD Sender: No OFD packet to send [22:57:57]OFD Sender: No OFD packet to send [22:58:02]OFD Sender: No OFD packet to send [22:58:07]OFD Sender: No OFD packet to send [22:58:12]OFD Sender: No OFD packet to send [22:58:17]OFD Sender: No OFD packet to send [22:58:22]OFD Sender: No OFD packet to send [22:58:27]OFD Sender: No OFD packet to send [22:58:32]OFD Sender: No OFD packet to send [22:58:37]OFD Sender: No OFD packet to send [22:58:42]OFD Sender: No OFD packet to send [22:58:47]OFD Sender: No OFD packet to send [22:58:52]OFD Sender: No OFD packet to send [22:58:57]OFD Sender: No OFD packet to send [22:59:02]OFD Sender: No OFD packet to send [22:59:07]OFD Sender: No OFD packet to send [22:59:12]OFD Sender: No OFD packet to send [22:59:17]OFD Sender: No OFD packet to send [22:59:22]OFD Sender: No OFD packet to send [22:59:27]OFD Sender: No OFD packet to send [22:59:32]OFD Sender: No OFD packet to send [22:59:37]OFD Sender: No OFD packet to send [22:59:42]OFD Sender: No OFD packet to send [22:59:47]OFD Sender: No OFD packet to send [22:59:52]OFD Sender: No OFD packet to send [22:59:57]OFD Sender: No OFD packet to send [23:00:02]OFD Sender: No OFD packet to send [23:00:07]OFD Sender: No OFD packet to send [23:00:12]OFD Sender: No OFD packet to send [23:00:17]OFD Sender: No OFD packet to send [23:00:22]OFD Sender: No OFD packet to send [23:00:27]OFD Sender: No OFD packet to send [23:00:32]OFD Sender: No OFD packet to send [23:00:37]OFD Sender: No OFD packet to send [23:00:42]OFD Sender: No OFD packet to send [23:00:47]OFD Sender: No OFD packet to send [23:00:52]OFD Sender: No OFD packet to send [23:00:57]OFD Sender: No OFD packet to send [23:01:02]OFD Sender: No OFD packet to send [23:01:07]OFD Sender: No OFD packet to send [23:01:12]OFD Sender: No OFD packet to send [23:01:17]OFD Sender: No OFD packet to send [23:01:22]OFD Sender: No OFD packet to send [23:01:27]OFD Sender: No OFD packet to send [23:01:32]OFD Sender: No OFD packet to send [23:01:37]OFD Sender: No OFD packet to send [23:01:42]OFD Sender: No OFD packet to send [23:01:47]OFD Sender: No OFD packet to send [23:01:52]OFD Sender: No OFD packet to send [23:01:57]OFD Sender: No OFD packet to send [23:02:02]accept exits with 7 [23:02:02]New connection [23:02:02]New thread 3067473252 created [23:02:02]Thread 3067616612 joined [23:02:02]Waiting for new connection... [23:02:02] Sock 7.Parse request [23:02:02]Sock 7.Check first char [23:02:02]Sock 7.First char is OK [23:02:02]request: POST /json_proto HTTP/1.0 [23:02:02]Method: POST [23:02:02]URL: /json_proto [23:02:02]Method is POST - this is cgi request [23:02:02]url: /json_proto [23:02:02]query_string will be loaded in cgi processing [23:02:02]execute_cgi json_proto POST (null) [23:02:02]execute_cgi path=json_proto method=POST [23:02:02]POST find Content-Length [23:02:02]Host: 172.17.38.133:8080 [23:02:02]Content-Length: 803 [23:02:02]Content-Type: application/json [23:02:02] [23:02:02]POST finish read [23:02:02]Found Content-Length = 803 [23:02:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673747", "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 }]} ], "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" : 1328.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:02:02]execute_script... [23:02: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)673747", "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 }]} ], "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" : 1328.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:02:02]POST & json_proto [23:02:02]process_json_proto [23:02:02]json parsed OK: [23:02:02]protocol is kg_v1.0 [23:02:02]action value=close_receipt [23:02:02]process_action close_receipt [23:02:02]cmd_close_receipt [23:02:02]MH_GetDate [23:02:02]Write to MH i2c: F0 00 00 97 15 9B [23:02:02]Write i2c OK [23:02:02]MH_I2C_Read... [23:02:02]Read from MH i2c: F0 [23:02:02]MH_I2C_Read... [23:02:02]Read from MH i2c: F0 09 00 [23:02:02]MH_I2C_Read... [23:02:02]Read from MH i2c: F0 09 00 97 15 00 6C 06 76 66 BD 8F 7C 64 1E [23:02:02]GetLastDocTimeStamp 1719010586 [23:02:02]current date 1719010924 [23:02:02]FM_GetShiftState [23:02:02]SAM_PROTO_GetShiftState [23:02:02]wFMCommunicate request_size=4 [23:02:02]MH_SAM_APDU [23:02:02]CAPDU: 80 13 01 00 [23:02:02]Write to MH i2c: E2 08 00 98 15 80 13 01 00 00 00 00 00 2A [23:02:02]Write i2c OK [23:02:02]MH_I2C_Read... [23:02:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:02:02]Read from MH i2c: E2 [23:02:02]MH_I2C_Read... [23:02:02]Read from MH i2c: E2 0E 00 [23:02:02]MH_I2C_Read... [23:02:02]Read from MH i2c: E2 0E 00 98 15 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 3D [23:02:02]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [23:02:02]wFMCommunicate OK [23:02:02]SAM_PROTO_GetShiftState done [23:02:02]FM_GetShiftState done [23:02:02]opened in 1718929509 [23:02:02]opened+sec_in_day 1719015909 [23:02:02]quantity*price = 132800 [23:02:02]sum+1 = 132801 [23:02:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1328.00 НСП 1% : 11.75 НДС 12% : 141.03 Наличными: 0.00 Безнал.: 1328.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 181 21.06.2024 23:02 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875093 ФД: 104258 ФПД: 66508838320338 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T230204&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104258&fm=66508838320338&tin=02508201610067®Number=0000000000092785&sum=132800 [23:02:03]StoreToDocumentArchive [23:02:03]shift 355 fd 104258 [23:02:03]save to /storage/0355/doc_00104258 [23:02:03]save last doc name /storage/0355/doc_00104258 to /storage/kkm_last_doc_name [23:02:03]save OK [23:02:03]Clear old archive folders... [23:02:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:02:03]tlvbuf is 006AF800 [23:02:03]SAM_PROTO_ClearQueue [23:02:03]wFMCommunicate request_size=4 [23:02:03]MH_SAM_APDU [23:02:03]CAPDU: 80 09 00 00 [23:02:03]Write to MH i2c: E2 08 00 A5 15 80 09 00 00 00 00 00 00 2C [23:02:03]Write i2c OK [23:02:03]MH_I2C_Read... [23:02:03]Read from MH i2c: E2 [23:02:03]MH_I2C_Read... [23:02:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:02:03]Read from MH i2c: E2 03 00 [23:02:03]MH_I2C_Read... [23:02:03]Read from MH i2c: E2 03 00 A5 15 00 90 00 2E [23:02:03]RAPDU: 90 00 [23:02:03]wFMCommunicate OK [23:02:03]SAM_PROTO_ClearQueue done [23:02:03]KKMCreateOFDPacket [23:02:03]OFDProtocolAddRootSTLVToBuf [23:02:03]FM_MakeSignedData [23:02:03]FM_MakeSignedData [23:02:03]SAM_PROTO_SignData [23:02:03]wFMCommunicate request_size=4 [23:02:03]MH_SAM_APDU [23:02:03]CAPDU: 80 0D 01 02 [23:02:03]Write to MH i2c: E2 08 00 A6 15 80 0D 01 02 00 00 00 00 34 [23:02:03]Write i2c OK [23:02:03]MH_I2C_Read... [23:02:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:02:03]Read from MH i2c: E2 [23:02:03]MH_I2C_Read... [23:02:03]Read from MH i2c: E2 03 00 [23:02:03]MH_I2C_Read... [23:02:03]Read from MH i2c: E2 03 00 A6 15 00 90 00 2F [23:02:03]RAPDU: 90 00 [23:02:03]wFMCommunicate OK [23:02:03]wFMCommunicate request_size=255 [23:02:03]MH_SAM_APDU [23:02: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 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 00 00 00 00 00 00 39 04 06 00 C0 06 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 6C 06 76 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 42 97 01 00 35 04 06 00 3C [23:02:03]Write to MH i2c: E2 02 01 A7 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 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 00 00 00 00 00 00 39 04 06 00 C0 06 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 6C 06 76 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 42 97 01 00 35 04 06 00 3C 00 00 79 [23:02:03]Write i2c OK [23:02:03]MH_I2C_Read... [23:02:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:02:04]Read from MH i2c: E2 [23:02:04]MH_I2C_Read... [23:02:04]Read from MH i2c: E2 03 00 [23:02:04]MH_I2C_Read... [23:02:04]Read from MH i2c: E2 03 00 A7 15 00 90 00 30 [23:02:04]RAPDU: 90 00 [23:02:04]wFMCommunicate OK [23:02:04]wFMCommunicate request_size=10 [23:02:04]MH_SAM_APDU [23:02:04]CAPDU: 80 0D 02 02 05 7D 4B AE B8 D2 [23:02:04]Write to MH i2c: E2 0D 00 A8 15 80 0D 02 02 05 00 7D 4B AE B8 D2 00 00 41 [23:02:04]Write i2c OK [23:02:04]MH_I2C_Read... [23:02:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:02:04]Read from MH i2c: E2 [23:02:04]MH_I2C_Read... [23:02:04]Read from MH i2c: E2 03 00 [23:02:04]MH_I2C_Read... [23:02:04]Read from MH i2c: E2 03 00 A8 15 00 90 00 31 [23:02:04]RAPDU: 90 00 [23:02:04]wFMCommunicate OK [23:02:04]wFMCommunicate request_size=4 [23:02:04]MH_SAM_APDU [23:02:04]CAPDU: 80 0D 03 02 [23:02:04]Write to MH i2c: E2 08 00 A9 15 80 0D 03 02 00 00 00 00 39 [23:02:04]Write i2c OK [23:02:04]MH_I2C_Read... [23:02:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:02:04]Read from MH i2c: E2 [23:02:04]MH_I2C_Read... [23:02:04]Read from MH i2c: E2 0B 00 [23:02:04]MH_I2C_Read... [23:02:04]Read from MH i2c: E2 0B 00 A9 15 00 AA 76 62 B1 D0 D3 22 D6 90 00 08 [23:02:04]RAPDU: AA 76 62 B1 D0 D3 22 D6 90 00 [23:02:04]wFMCommunicate OK [23:02:04]SAM_PROTO_SignData done [23:02:04]FM_MakeSignedData done [23:02:04]CreateOFDProtocolMessage [23:02:04]wFMCommunicate request_size=4 [23:02:04]MH_SAM_APDU [23:02:04]CAPDU: 80 11 00 00 [23:02:04]Write to MH i2c: E2 08 00 AA 15 80 11 00 00 00 00 00 00 39 [23:02:04]Write i2c OK [23:02:04]MH_I2C_Read... [23:02:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:02:04]Read from MH i2c: E2 [23:02:04]MH_I2C_Read... [23:02:04]Read from MH i2c: E2 17 00 [23:02:04]MH_I2C_Read... [23:02:04]Read from MH i2c: E2 17 00 AA 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 8C [23:02:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [23:02:04]wFMCommunicate OK [23:02:04]CreateOFDProtocolMessage done [23:02:04]OFDSenderStorePacket 104258 [23:02:04]StoreOFDPacket docnum=104258 [23:02: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 26 58 07 01 79 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 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 00 00 00 00 00 00 39 04 06 00 C0 06 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 6C 06 76 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 42 97 01 00 35 04 06 00 3C 7D 4B AE B8 D2 AA 76 62 B1 D0 D3 22 D6 [23:02:04]CheckFolder [23:02:04]dirname=/storage/ofd_packets [23:02:04]CheckFolder done [23:02:04]ProducePacketName [23:02:04]name=ofd_packets/00104258 [23:02:04]NVStorageSaveData ofd_packets/00104258 [23:02:04]File name is /storage/ofd_packets/00104258 [23:02:04]Write 301 bytes [23:02:04]NVStorageSaveData done [23:02:04]OFDSenderStorePacket done [23:02:04]KKMCreateOFDPacket done [23:02:04]NVStorageSaveData kkm_last_timestamp [23:02:04]File name is /storage/kkm_last_timestamp [23:02:04]Write 4 bytes [23:02:04]NVStorageSaveData done [23:02:04]ExternCall_PrintAddStr [23:02:04]wPrintStart [23:02:04]Write to MH i2c: 01 00 00 AB 15 C0 [23:02:04]Write i2c OK [23:02:04]MH_I2C_Read... [23:02:04]Read from MH i2c: 01 [23:02:04]MH_I2C_Read... [23:02:04]Read from MH i2c: 01 07 00 [23:02:04]MH_I2C_Read... [23:02:04]Read from MH i2c: 01 07 00 AB 15 00 00 00 00 00 FF 0F D5 [23:02:04]RasterBufferAndPrint [23:02:04]line Счет N : (1)673747 [23:02:04]line ИНН: 02508201610067 [23:02:04]line Контрольно-Кассовый Чек [23:02:04]line ПРОДАЖА [23:02:04]line ТРК (МРК, ГНК) : 32 [23:02:04]line Товар: 2710124130 [23:02:04]line Аи-92-К-5 [23:02:04]line 20.000 * 66.40 [23:02:04]line = 1328.00 [23:02:04]line НДС 12% НСП 1% [23:02:04]line > о реализуемом товаре [23:02:04]line ИТОГО: 1328.00 [23:02:04]line НСП 1% : 11.75 [23:02:04]line НДС 12% : 141.03 [23:02:04]line Наличными: 0.00 [23:02:04]line Безнал.: 1328.00 [23:02:04]line Место: АЗС № 120 "Партнер Нефть" [23:02:04]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [23:02:04]line СНО: Общий режим [23:02:04]line Чек 181 21.06.2024 23:02 [23:02:04]line Смена: 355 ФФД: 1.0 [23:02:04]line ЗНМ: 0300000164 [23:02:04]line РНМ: 0000000000092785 [23:02:04]line Версия ККМ: 001 [23:02:04]line Платежная система: O! деньги [23:02:04]line ФМ: 0000000000875093 [23:02:04]line ФД: 104258 [23:02:04]line ФПД: 66508838320338 [23:02:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T230204&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104258&fm=66508838320338&tin=02508201610067®Number=0000000000092785&sum=132800 [23:02:04]OFD Sender: Processing packet 104258 [packets to send 17, broken 16] [23:02:04]ProducePacketName [23:02:04]name=ofd_packets/00104258 [23:02:04]OFD Sender: To server: pG, [23:02:04]CommunicateWithHost lk.salyk.kg:30040 [23:02:04]ConnectInit lk.salyk.kg [23:02:04]written 0, free lines is 4095 [23:02:04]Connected sock=10 [23:02: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 26 58 07 01 79 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 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 00 00 00 00 00 00 39 04 06 00 C0 06 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 6C 06 76 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 42 97 01 00 35 04 06 00 3C 7D 4B AE B8 D2 AA 76 62 B1 D0 D3 22 D6 [23:02: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 C5 CC 47 00 E0 36 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 42 97 01 00 F4 03 04 00 ED AC 75 66 B6 04 01 00 00 A1 25 20 38 4A 88 91 8E [23:02:04]CommunicateWithHost err = 0 [23:02:04]CheckOFDResponse [23:02:04]1017 (14) - 77093643461234 [23:02:04]1041 (16) - 0000000000875093 [23:02:04]1040 (4) - 104258 [23:02:04]1012 (4) - 21.06.2024 16:40 [23:02:04]1206 (1) - 0 [23:02:04]OFD Sender: Remove packet 104258 [23:02:04]ProducePacketName [23:02:04]name=ofd_packets/00104258 [23:02:04]NVStorageDeleteData [23:02:04]Write to MH i2c: 01 00 00 D5 15 EA [23:02:04]Write i2c OK [23:02:04]MH_I2C_Read... [23:02:04]Read from MH i2c: 01 [23:02:04]MH_I2C_Read... [23:02:04]Read from MH i2c: 01 07 00 [23:02:04]MH_I2C_Read... [23:02:04]Read from MH i2c: 01 07 00 D5 15 00 00 00 00 00 F6 0C F3 [23:02:04]RasterBufferAndPrint [23:02:04]line [23:02:04]line [23:02:04]line [23:02:04]line [23:02:04]line [23:02:04]written 0, free lines is 3324 [23:02:04]MH_Cut [23:02:04]Write to MH i2c: D1 01 00 DC 15 01 C3 [23:02:04]Write i2c OK [23:02:04]MH_I2C_Read... [23:02:04]Read from MH i2c: D1 [23:02:04]MH_I2C_Read... [23:02:04]Read from MH i2c: D1 01 00 [23:02:04]MH_I2C_Read... [23:02:04]Read from MH i2c: D1 01 00 DC 15 00 C2 [23:02:04]Write to MH i2c: 01 00 00 DD 15 F2 [23:02:04]Write i2c OK [23:02:04]MH_I2C_Read... [23:02:05]OFD Sender: No OFD packet to send [23:02:05]*** Cut start [23:02:05]*** Partial cut [23:02:05]*** CUTSNS_PIN = 1 [23:02:05]*** CUTSNS_PIN = 0 [23:02:05]*** Brake cut motor [23:02:06]Read from MH i2c: 01 [23:02:06]MH_I2C_Read... [23:02:06]*** Stop cut motor [23:02:06]*** Cut end [23:02:06]Read from MH i2c: 01 07 00 [23:02:06]MH_I2C_Read... [23:02:06]Read from MH i2c: 01 07 00 DD 15 00 00 00 00 00 FF 0F 07 [23:02:06]process_action close_receipt done [23:02:06]requested_data is exist [23:02:06]produce_requested_data [23:02:06]requested_item fm.sn is exist - process it [23:02:06]wFMCommunicate request_size=4 [23:02:06]MH_SAM_APDU [23:02:06]CAPDU: 80 11 00 00 [23:02:06]Write to MH i2c: E2 08 00 DE 15 80 11 00 00 00 00 00 00 6D [23:02:06]Write i2c OK [23:02:06]MH_I2C_Read... [23:02:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:02:06]Read from MH i2c: E2 [23:02:06]MH_I2C_Read... [23:02:06]Read from MH i2c: E2 17 00 [23:02:06]MH_I2C_Read... [23:02:06]Read from MH i2c: E2 17 00 DE 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 C0 [23:02:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [23:02:06]wFMCommunicate OK [23:02:06]requested_item fd.num is exist - process it [23:02:06]SAM_PROTO_GetFieldsCounters [23:02:06]wFMCommunicate request_size=4 [23:02:06]MH_SAM_APDU [23:02:06]CAPDU: 80 13 00 00 [23:02:06]Write to MH i2c: E2 08 00 DF 15 80 13 00 00 00 00 00 00 70 [23:02:06]Write i2c OK [23:02:06]MH_I2C_Read... [23:02:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:02:06]Read from MH i2c: E2 [23:02:06]MH_I2C_Read... [23:02:06]Read from MH i2c: E2 62 00 [23:02:06]MH_I2C_Read... [23:02:06]Read from MH i2c: E2 62 00 DF 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 42 97 01 00 0E 04 04 00 63 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 F4 [23:02:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 63 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 [23:02:06]wFMCommunicate OK [23:02:06]SAM_PROTO_GetFieldsCounters done [23:02:06]requested_item shift.num is exist - process it [23:02:06]requested_item shift.opened is exist - process it [23:02:06]req_shift_opened [23:02:06]FM_GetShiftState [23:02:06]SAM_PROTO_GetShiftState [23:02:06]wFMCommunicate request_size=4 [23:02:06]MH_SAM_APDU [23:02:06]CAPDU: 80 13 01 00 [23:02:06]Write to MH i2c: E2 08 00 E0 15 80 13 01 00 00 00 00 00 72 [23:02:06]Write i2c OK [23:02:06]MH_I2C_Read... [23:02:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:02:06]Read from MH i2c: E2 [23:02:06]MH_I2C_Read... [23:02:06]Read from MH i2c: E2 0E 00 [23:02:06]MH_I2C_Read... [23:02:06]Read from MH i2c: E2 0E 00 E0 15 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 85 [23:02:06]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [23:02:06]wFMCommunicate OK [23:02:06]SAM_PROTO_GetShiftState done [23:02:06]FM_GetShiftState done [23:02:06]req_shift_opened done [23:02:06]requested_item shift.open_date is exist - process it [23:02:06]req_shift_open_date [23:02:06]req_shift_open_date done [23:02:06]produce_requested_data done [23:02:06]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104258,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [23:02:06]process_action_free close_receipt [23:02:06]json_value_free [23:02:06]json_value_free done [23:02:06]process_json_proto returns [23:02:06]Send response to host [23:02:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104258,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [23:02:06]free response buf [23:02:06]execute_script done [23:02:06]execute_script returns [23:02:06]free content buf [23:02:06]Sock 7.Close socket [23:02:06]Sock 7.Thread stoped [23:02:10]OFD Sender: No OFD packet to send [23:02:15]OFD Sender: No OFD packet to send [23:02:20]OFD Sender: No OFD packet to send [23:02:25]OFD Sender: No OFD packet to send [23:02:30]OFD Sender: No OFD packet to send [23:02:35]OFD Sender: No OFD packet to send [23:02:40]OFD Sender: No OFD packet to send [23:02:45]OFD Sender: No OFD packet to send [23:02:50]OFD Sender: No OFD packet to send [23:02:55]OFD Sender: No OFD packet to send [23:03:00]OFD Sender: No OFD packet to send [23:03:05]OFD Sender: No OFD packet to send [23:03:10]OFD Sender: No OFD packet to send [23:03:15]OFD Sender: No OFD packet to send [23:03:20]OFD Sender: No OFD packet to send [23:03:25]OFD Sender: No OFD packet to send [23:03:30]OFD Sender: No OFD packet to send [23:03:35]OFD Sender: No OFD packet to send [23:03:40]OFD Sender: No OFD packet to send [23:03:45]OFD Sender: No OFD packet to send [23:03:50]OFD Sender: No OFD packet to send [23:03:55]OFD Sender: No OFD packet to send [23:04:00]OFD Sender: No OFD packet to send [23:04:05]OFD Sender: No OFD packet to send [23:04:10]OFD Sender: No OFD packet to send [23:04:15]OFD Sender: No OFD packet to send [23:04:20]OFD Sender: No OFD packet to send [23:04:25]OFD Sender: No OFD packet to send [23:04:30]OFD Sender: No OFD packet to send [23:04:35]OFD Sender: No OFD packet to send [23:04:40]OFD Sender: No OFD packet to send [23:04:45]OFD Sender: No OFD packet to send [23:04:50]OFD Sender: No OFD packet to send [23:04:55]OFD Sender: No OFD packet to send [23:05:00]OFD Sender: No OFD packet to send [23:05:05]OFD Sender: No OFD packet to send [23:05:10]OFD Sender: No OFD packet to send [23:05:15]OFD Sender: No OFD packet to send [23:05:20]OFD Sender: No OFD packet to send [23:05:25]OFD Sender: No OFD packet to send [23:05:30]OFD Sender: No OFD packet to send [23:05:35]OFD Sender: No OFD packet to send [23:05:40]OFD Sender: No OFD packet to send [23:05:45]OFD Sender: No OFD packet to send [23:05:50]OFD Sender: No OFD packet to send [23:05:55]OFD Sender: No OFD packet to send [23:06:00]OFD Sender: No OFD packet to send [23:06:05]OFD Sender: No OFD packet to send [23:06:10]OFD Sender: No OFD packet to send [23:06:15]OFD Sender: No OFD packet to send [23:06:20]OFD Sender: No OFD packet to send [23:06:25]OFD Sender: No OFD packet to send [23:06:30]OFD Sender: No OFD packet to send [23:06:35]OFD Sender: No OFD packet to send [23:06:40]OFD Sender: No OFD packet to send [23:06:45]OFD Sender: No OFD packet to send [23:06:50]OFD Sender: No OFD packet to send [23:06:55]OFD Sender: No OFD packet to send [23:07:00]OFD Sender: No OFD packet to send [23:07:05]OFD Sender: No OFD packet to send [23:07:10]OFD Sender: No OFD packet to send [23:07:15]OFD Sender: No OFD packet to send [23:07:20]OFD Sender: No OFD packet to send [23:07:25]OFD Sender: No OFD packet to send [23:07:30]OFD Sender: No OFD packet to send [23:07:35]OFD Sender: No OFD packet to send [23:07:40]OFD Sender: No OFD packet to send [23:07:45]OFD Sender: No OFD packet to send [23:07:50]OFD Sender: No OFD packet to send [23:07:55]OFD Sender: No OFD packet to send [23:08:00]OFD Sender: No OFD packet to send [23:08:05]OFD Sender: No OFD packet to send [23:08:10]OFD Sender: No OFD packet to send [23:08:15]OFD Sender: No OFD packet to send [23:08:20]OFD Sender: No OFD packet to send [23:08:25]OFD Sender: No OFD packet to send [23:08:30]OFD Sender: No OFD packet to send [23:08:35]OFD Sender: No OFD packet to send [23:08:40]OFD Sender: No OFD packet to send [23:08:45]OFD Sender: No OFD packet to send [23:08:50]OFD Sender: No OFD packet to send [23:08:55]OFD Sender: No OFD packet to send [23:09:00]OFD Sender: No OFD packet to send [23:09:05]OFD Sender: No OFD packet to send [23:09:10]OFD Sender: No OFD packet to send [23:09:15]OFD Sender: No OFD packet to send [23:09:20]OFD Sender: No OFD packet to send [23:09:25]OFD Sender: No OFD packet to send [23:09:30]OFD Sender: No OFD packet to send [23:09:35]OFD Sender: No OFD packet to send [23:09:40]OFD Sender: No OFD packet to send [23:09:45]OFD Sender: No OFD packet to send [23:09:50]OFD Sender: No OFD packet to send [23:09:55]OFD Sender: No OFD packet to send [23:10:00]OFD Sender: No OFD packet to send [23:10:05]OFD Sender: No OFD packet to send [23:10:10]OFD Sender: No OFD packet to send [23:10:15]OFD Sender: No OFD packet to send [23:10:20]OFD Sender: No OFD packet to send [23:10:25]OFD Sender: No OFD packet to send [23:10:30]OFD Sender: No OFD packet to send [23:10:35]OFD Sender: No OFD packet to send [23:10:40]OFD Sender: No OFD packet to send [23:10:45]OFD Sender: No OFD packet to send [23:10:50]OFD Sender: No OFD packet to send [23:10:55]OFD Sender: No OFD packet to send [23:11:00]OFD Sender: No OFD packet to send [23:11:05]OFD Sender: No OFD packet to send [23:11:10]OFD Sender: No OFD packet to send [23:11:15]OFD Sender: No OFD packet to send [23:11:20]OFD Sender: No OFD packet to send [23:11:25]OFD Sender: No OFD packet to send [23:11:30]OFD Sender: No OFD packet to send [23:11:35]OFD Sender: No OFD packet to send [23:11:40]OFD Sender: No OFD packet to send [23:11:45]OFD Sender: No OFD packet to send [23:11:50]OFD Sender: No OFD packet to send [23:11:55]OFD Sender: No OFD packet to send [23:12:00]OFD Sender: No OFD packet to send [23:12:05]OFD Sender: No OFD packet to send [23:12:10]OFD Sender: No OFD packet to send [23:12:15]OFD Sender: No OFD packet to send [23:12:20]OFD Sender: No OFD packet to send [23:12:25]OFD Sender: No OFD packet to send [23:12:30]OFD Sender: No OFD packet to send [23:12:35]OFD Sender: No OFD packet to send [23:12:40]OFD Sender: No OFD packet to send [23:12:41]accept exits with 9 [23:12:41]New connection [23:12:41]New thread 3067616612 created [23:12:41]Thread 3067473252 joined [23:12:41]Waiting for new connection... [23:12:41] Sock 9.Parse request [23:12:41]Sock 9.Check first char [23:12:41]Sock 9.First char is OK [23:12:41]request: POST /json_proto HTTP/1.0 [23:12:41]Method: POST [23:12:41]URL: /json_proto [23:12:41]Method is POST - this is cgi request [23:12:41]url: /json_proto [23:12:41]query_string will be loaded in cgi processing [23:12:41]execute_cgi json_proto POST (null) [23:12:41]execute_cgi path=json_proto method=POST [23:12:41]POST find Content-Length [23:12:41]Host: 172.17.38.133:8080 [23:12:41]Content-Length: 682 [23:12:41]Content-Type: application/json [23:12:41] [23:12:41]POST finish read [23:12:41]Found Content-Length = 682 [23:12:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673748", "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" ] } } [23:12:41]execute_script... [23:12: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)673748", "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" ] } } [23:12:41]POST & json_proto [23:12:41]process_json_proto [23:12:41]json parsed OK: [23:12:41]protocol is kg_v1.0 [23:12:41]action value=close_receipt [23:12:41]process_action close_receipt [23:12:41]cmd_close_receipt [23:12:41]MH_GetDate [23:12:41]Write to MH i2c: F0 00 00 E1 15 E5 [23:12:41]Write i2c OK [23:12:41]MH_I2C_Read... [23:12:41]Read from MH i2c: F0 [23:12:41]MH_I2C_Read... [23:12:41]Read from MH i2c: F0 09 00 [23:12:41]MH_I2C_Read... [23:12:41]Read from MH i2c: F0 09 00 E1 15 00 EB 08 76 66 BD 8F 7C 64 E9 [23:12:41]GetLastDocTimeStamp 1719010924 [23:12:41]current date 1719011563 [23:12:41]FM_GetShiftState [23:12:41]SAM_PROTO_GetShiftState [23:12:41]wFMCommunicate request_size=4 [23:12:41]MH_SAM_APDU [23:12:41]CAPDU: 80 13 01 00 [23:12:41]Write to MH i2c: E2 08 00 E2 15 80 13 01 00 00 00 00 00 74 [23:12:41]Write i2c OK [23:12:41]MH_I2C_Read... [23:12:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:12:42]Read from MH i2c: E2 [23:12:42]MH_I2C_Read... [23:12:42]Read from MH i2c: E2 0E 00 [23:12:42]MH_I2C_Read... [23:12:42]Read from MH i2c: E2 0E 00 E2 15 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 87 [23:12:42]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [23:12:42]wFMCommunicate OK [23:12:42]SAM_PROTO_GetShiftState done [23:12:42]FM_GetShiftState done [23:12:42]opened in 1718929509 [23:12:42]opened+sec_in_day 1719015909 [23:12:42]quantity*price = 100060 [23:12:42]sum+1 = 100062 [23:12:42]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 СНО: Общий режим Чек 182 21.06.2024 23:12 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104259 ФПД: 42042554824333 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T231243&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104259&fm=42042554824333&tin=02508201610067®Number=0000000000092785&sum=100000 [23:12:43]StoreToDocumentArchive [23:12:43]shift 355 fd 104259 [23:12:43]save to /storage/0355/doc_00104259 [23:12:43]save last doc name /storage/0355/doc_00104259 to /storage/kkm_last_doc_name [23:12:43]save OK [23:12:43]Clear old archive folders... [23:12:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:12:43]tlvbuf is 0069C9E0 [23:12:43]SAM_PROTO_ClearQueue [23:12:43]wFMCommunicate request_size=4 [23:12:43]MH_SAM_APDU [23:12:43]CAPDU: 80 09 00 00 [23:12:43]Write to MH i2c: E2 08 00 EF 15 80 09 00 00 00 00 00 00 76 [23:12:43]Write i2c OK [23:12:43]MH_I2C_Read... [23:12:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:12:43]Read from MH i2c: E2 [23:12:43]MH_I2C_Read... [23:12:43]Read from MH i2c: E2 03 00 [23:12:43]MH_I2C_Read... [23:12:43]Read from MH i2c: E2 03 00 EF 15 00 90 00 78 [23:12:43]RAPDU: 90 00 [23:12:43]wFMCommunicate OK [23:12:43]SAM_PROTO_ClearQueue done [23:12:43]KKMCreateOFDPacket [23:12:43]OFDProtocolAddRootSTLVToBuf [23:12:43]FM_MakeSignedData [23:12:43]FM_MakeSignedData [23:12:43]SAM_PROTO_SignData [23:12:43]wFMCommunicate request_size=4 [23:12:43]MH_SAM_APDU [23:12:43]CAPDU: 80 0D 01 02 [23:12:43]Write to MH i2c: E2 08 00 F0 15 80 0D 01 02 00 00 00 00 7E [23:12:43]Write i2c OK [23:12:43]MH_I2C_Read... [23:12:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:12:43]Read from MH i2c: E2 [23:12:43]MH_I2C_Read... [23:12:43]Read from MH i2c: E2 03 00 [23:12:43]MH_I2C_Read... [23:12:43]Read from MH i2c: E2 03 00 F0 15 00 90 00 79 [23:12:43]RAPDU: 90 00 [23:12:43]wFMCommunicate OK [23:12:43]wFMCommunicate request_size=255 [23:12:43]MH_SAM_APDU [23:12:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 B6 00 00 00 F4 03 04 00 EB 08 76 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 43 97 01 00 35 04 06 00 26 [23:12:43]Write to MH i2c: E2 02 01 F1 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 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 B6 00 00 00 F4 03 04 00 EB 08 76 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 43 97 01 00 35 04 06 00 26 00 00 63 [23:12:43]Write i2c OK [23:12:43]MH_I2C_Read... [23:12:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:12:43]Read from MH i2c: E2 [23:12:43]MH_I2C_Read... [23:12:43]Read from MH i2c: E2 03 00 [23:12:43]MH_I2C_Read... [23:12:43]Read from MH i2c: E2 03 00 F1 15 00 90 00 7A [23:12:43]RAPDU: 90 00 [23:12:43]wFMCommunicate OK [23:12:43]wFMCommunicate request_size=10 [23:12:43]MH_SAM_APDU [23:12:43]CAPDU: 80 0D 02 02 05 3C CB 8B B6 8D [23:12:43]Write to MH i2c: E2 0D 00 F2 15 80 0D 02 02 05 00 3C CB 8B B6 8D 00 00 60 [23:12:43]Write i2c OK [23:12:43]MH_I2C_Read... [23:12:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:12:43]Read from MH i2c: E2 [23:12:43]MH_I2C_Read... [23:12:43]Read from MH i2c: E2 03 00 [23:12:43]MH_I2C_Read... [23:12:43]Read from MH i2c: E2 03 00 F2 15 00 90 00 7B [23:12:43]RAPDU: 90 00 [23:12:43]wFMCommunicate OK [23:12:43]wFMCommunicate request_size=4 [23:12:43]MH_SAM_APDU [23:12:43]CAPDU: 80 0D 03 02 [23:12:43]Write to MH i2c: E2 08 00 F3 15 80 0D 03 02 00 00 00 00 83 [23:12:43]Write i2c OK [23:12:43]MH_I2C_Read... [23:12:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:12:43]Read from MH i2c: E2 [23:12:43]MH_I2C_Read... [23:12:43]Read from MH i2c: E2 0B 00 [23:12:43]MH_I2C_Read... [23:12:43]Read from MH i2c: E2 0B 00 F3 15 00 6A 80 55 52 F5 E0 AA 81 90 00 15 [23:12:43]RAPDU: 6A 80 55 52 F5 E0 AA 81 90 00 [23:12:43]wFMCommunicate OK [23:12:43]SAM_PROTO_SignData done [23:12:43]FM_MakeSignedData done [23:12:43]CreateOFDProtocolMessage [23:12:43]wFMCommunicate request_size=4 [23:12:43]MH_SAM_APDU [23:12:43]CAPDU: 80 11 00 00 [23:12:43]Write to MH i2c: E2 08 00 F4 15 80 11 00 00 00 00 00 00 83 [23:12:43]Write i2c OK [23:12:43]MH_I2C_Read... [23:12:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:12:43]Read from MH i2c: E2 [23:12:43]MH_I2C_Read... [23:12:43]Read from MH i2c: E2 17 00 [23:12:43]MH_I2C_Read... [23:12:43]Read from MH i2c: E2 17 00 F4 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 D6 [23:12:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [23:12:43]wFMCommunicate OK [23:12:43]CreateOFDProtocolMessage done [23:12:43]OFDSenderStorePacket 104259 [23:12:43]StoreOFDPacket docnum=104259 [23:12: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 F8 5D 07 01 03 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 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 B6 00 00 00 F4 03 04 00 EB 08 76 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 43 97 01 00 35 04 06 00 26 3C CB 8B B6 8D 6A 80 55 52 F5 E0 AA 81 [23:12:43]CheckFolder [23:12:43]dirname=/storage/ofd_packets [23:12:43]CheckFolder done [23:12:43]ProducePacketName [23:12:43]name=ofd_packets/00104259 [23:12:43]NVStorageSaveData ofd_packets/00104259 [23:12:43]File name is /storage/ofd_packets/00104259 [23:12:43]Write 301 bytes [23:12:43]NVStorageSaveData done [23:12:43]OFDSenderStorePacket done [23:12:43]KKMCreateOFDPacket done [23:12:43]NVStorageSaveData kkm_last_timestamp [23:12:43]File name is /storage/kkm_last_timestamp [23:12:43]Write 4 bytes [23:12:43]NVStorageSaveData done [23:12:43]ExternCall_PrintAddStr [23:12:43]wPrintStart [23:12:43]Write to MH i2c: 01 00 00 F5 15 0A [23:12:43]Write i2c OK [23:12:43]MH_I2C_Read... [23:12:43]Read from MH i2c: 01 [23:12:43]MH_I2C_Read... [23:12:43]Read from MH i2c: 01 07 00 [23:12:43]MH_I2C_Read... [23:12:43]Read from MH i2c: 01 07 00 F5 15 00 00 00 00 00 FF 0F 1F [23:12:43]RasterBufferAndPrint [23:12:43]line Счет N : (1)673748 [23:12:43]line ИНН: 02508201610067 [23:12:43]line Контрольно-Кассовый Чек [23:12:43]line ПРОДАЖА [23:12:43]line ТРК (МРК, ГНК) : 31 [23:12:43]line Товар: 2710124500 [23:12:43]line Аи-95-К-5 [23:12:43]line 13.540 * 73.90 [23:12:43]line = 1000.61 [23:12:43]line НДС 12% НСП 1% [23:12:43]line > о реализуемом товаре [23:12:43]line ОКРУГЛЕНИЕ: -0.61 [23:12:43]line ИТОГО: 1000.00 [23:12:43]line Внесено: 1000.00 [23:12:43]line СДАЧА: 0.00 [23:12:43]line НСП 1% : 8.85 [23:12:43]line НДС 12% : 106.26 [23:12:43]line Наличными: 1000.00 [23:12:43]line Безнал.: 0.00 [23:12:43]line Место: АЗС № 120 "Партнер Нефть" [23:12:43]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [23:12:43]line СНО: Общий режим [23:12:43]line Чек 182 21.06.2024 23:12 [23:12:43]line Смена: 355 ФФД: 1.0 [23:12:43]line ЗНМ: 0300000164 [23:12:43]line РНМ: 0000000000092785 [23:12:43]line Версия ККМ: 001 [23:12:43]line ФМ: 0000000000875093 [23:12:43]line ФД: 104259 [23:12:43]line ФПД: 42042554824333 [23:12:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T231243&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104259&fm=42042554824333&tin=02508201610067®Number=0000000000092785&sum=100000 [23:12:44]OFD Sender: Processing packet 104259 [packets to send 17, broken 16] [23:12:44]ProducePacketName [23:12:44]name=ofd_packets/00104259 [23:12:44]OFD Sender: To server: pG, [23:12:44]CommunicateWithHost lk.salyk.kg:30040 [23:12:44]ConnectInit lk.salyk.kg [23:12:44]written 0, free lines is 4095 [23:12:44]Connected sock=7 [23:12: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 F8 5D 07 01 03 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 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 B6 00 00 00 F4 03 04 00 EB 08 76 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 43 97 01 00 35 04 06 00 26 3C CB 8B B6 8D 6A 80 55 52 F5 E0 AA 81 [23:12: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 1B C9 47 00 26 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 43 97 01 00 F4 03 04 00 6C AF 75 66 B6 04 01 00 00 96 E2 97 92 F4 97 61 18 [23:12:44]CommunicateWithHost err = 0 [23:12:44]CheckOFDResponse [23:12:44]1017 (14) - 77093643461234 [23:12:44]1041 (16) - 0000000000875093 [23:12:44]1040 (4) - 104259 [23:12:44]1012 (4) - 21.06.2024 16:50 [23:12:44]1206 (1) - 0 [23:12:44]OFD Sender: Remove packet 104259 [23:12:44]ProducePacketName [23:12:44]name=ofd_packets/00104259 [23:12:44]NVStorageDeleteData [23:12:44]Write to MH i2c: 01 00 00 20 16 36 [23:12:44]Write i2c OK [23:12:44]MH_I2C_Read... [23:12:44]Read from MH i2c: 01 [23:12:44]MH_I2C_Read... [23:12:44]Read from MH i2c: 01 07 00 [23:12:44]MH_I2C_Read... [23:12:44]Read from MH i2c: 01 07 00 20 16 00 00 00 00 00 E4 0C 2D [23:12:44]RasterBufferAndPrint [23:12:44]line [23:12:44]line [23:12:44]line [23:12:44]line [23:12:44]line [23:12:44]written 0, free lines is 3306 [23:12:44]MH_Cut [23:12:44]Write to MH i2c: D1 01 00 27 16 01 0F [23:12:44]Write i2c OK [23:12:44]MH_I2C_Read... [23:12:44]Read from MH i2c: D1 [23:12:44]MH_I2C_Read... [23:12:44]Read from MH i2c: D1 01 00 [23:12:44]MH_I2C_Read... [23:12:44]Read from MH i2c: D1 01 00 27 16 00 0E [23:12:44]Write to MH i2c: 01 00 00 28 16 3E [23:12:44]Write i2c OK [23:12:44]MH_I2C_Read... [23:12:44]OFD Sender: No OFD packet to send [23:12:45]*** Cut start [23:12:45]*** Partial cut [23:12:45]*** CUTSNS_PIN = 1 [23:12:45]*** CUTSNS_PIN = 0 [23:12:45]*** Brake cut motor [23:12:45]Read from MH i2c: 01 [23:12:45]MH_I2C_Read... [23:12:45]*** Stop cut motor [23:12:45]*** Cut end [23:12:45]Read from MH i2c: 01 07 00 [23:12:45]MH_I2C_Read... [23:12:45]Read from MH i2c: 01 07 00 28 16 00 00 00 00 00 FF 0F 53 [23:12:45]process_action close_receipt done [23:12:45]requested_data is exist [23:12:45]produce_requested_data [23:12:45]requested_item fm.sn is exist - process it [23:12:45]wFMCommunicate request_size=4 [23:12:45]MH_SAM_APDU [23:12:45]CAPDU: 80 11 00 00 [23:12:45]Write to MH i2c: E2 08 00 29 16 80 11 00 00 00 00 00 00 B9 [23:12:45]Write i2c OK [23:12:45]MH_I2C_Read... [23:12:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:12:45]Read from MH i2c: E2 [23:12:45]MH_I2C_Read... [23:12:45]Read from MH i2c: E2 17 00 [23:12:45]MH_I2C_Read... [23:12:45]Read from MH i2c: E2 17 00 29 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 0C [23:12:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [23:12:45]wFMCommunicate OK [23:12:45]requested_item fd.num is exist - process it [23:12:45]SAM_PROTO_GetFieldsCounters [23:12:45]wFMCommunicate request_size=4 [23:12:45]MH_SAM_APDU [23:12:45]CAPDU: 80 13 00 00 [23:12:45]Write to MH i2c: E2 08 00 2A 16 80 13 00 00 00 00 00 00 BC [23:12:45]Write i2c OK [23:12:45]MH_I2C_Read... [23:12:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:12:45]Read from MH i2c: E2 [23:12:45]MH_I2C_Read... [23:12:45]Read from MH i2c: E2 62 00 [23:12:45]MH_I2C_Read... [23:12:45]Read from MH i2c: E2 62 00 2A 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 43 97 01 00 0E 04 04 00 63 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 44 [23:12: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 43 97 01 00 0E 04 04 00 63 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 [23:12:46]wFMCommunicate OK [23:12:46]SAM_PROTO_GetFieldsCounters done [23:12:46]requested_item shift.num is exist - process it [23:12:46]requested_item shift.opened is exist - process it [23:12:46]req_shift_opened [23:12:46]FM_GetShiftState [23:12:46]SAM_PROTO_GetShiftState [23:12:46]wFMCommunicate request_size=4 [23:12:46]MH_SAM_APDU [23:12:46]CAPDU: 80 13 01 00 [23:12:46]Write to MH i2c: E2 08 00 2B 16 80 13 01 00 00 00 00 00 BE [23:12:46]Write i2c OK [23:12:46]MH_I2C_Read... [23:12:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:12:46]Read from MH i2c: E2 [23:12:46]MH_I2C_Read... [23:12:46]Read from MH i2c: E2 0E 00 [23:12:46]MH_I2C_Read... [23:12:46]Read from MH i2c: E2 0E 00 2B 16 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 D1 [23:12:46]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [23:12:46]wFMCommunicate OK [23:12:46]SAM_PROTO_GetShiftState done [23:12:46]FM_GetShiftState done [23:12:46]req_shift_opened done [23:12:46]requested_item shift.open_date is exist - process it [23:12:46]req_shift_open_date [23:12:46]req_shift_open_date done [23:12:46]produce_requested_data done [23:12:46]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104259,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [23:12:46]process_action_free close_receipt [23:12:46]json_value_free [23:12:46]json_value_free done [23:12:46]process_json_proto returns [23:12:46]Send response to host [23:12:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104259,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [23:12:46]free response buf [23:12:46]execute_script done [23:12:46]execute_script returns [23:12:46]free content buf [23:12:46]Sock 9.Close socket [23:12:46]Sock 9.Thread stoped [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:50]OFD Sender: No OFD packet to send [23:14:55]OFD Sender: No OFD packet to send [23:15:00]OFD Sender: No OFD packet to send [23:15:05]OFD Sender: No OFD packet to send [23:15:10]OFD Sender: No OFD packet to send [23:15:15]OFD Sender: No OFD packet to send [23:15:20]OFD Sender: No OFD packet to send [23:15:25]OFD Sender: No OFD packet to send [23:15:30]OFD Sender: No OFD packet to send [23:15:35]OFD Sender: No OFD packet to send [23:15:40]OFD Sender: No OFD packet to send [23:15:45]OFD Sender: No OFD packet to send [23:15:50]OFD Sender: No OFD packet to send [23:15:55]OFD Sender: No OFD packet to send [23:16:00]OFD Sender: No OFD packet to send [23:16:05]OFD Sender: No OFD packet to send [23:16:10]OFD Sender: No OFD packet to send [23:16:15]OFD Sender: No OFD packet to send [23:16:20]OFD Sender: No OFD packet to send [23:16:25]OFD Sender: No OFD packet to send [23:16:30]OFD Sender: No OFD packet to send [23:16:35]OFD Sender: No OFD packet to send [23:16:40]OFD Sender: No OFD packet to send [23:16:45]OFD Sender: No OFD packet to send [23:16:50]OFD Sender: No OFD packet to send [23:16:55]OFD Sender: No OFD packet to send [23:17:00]OFD Sender: No OFD packet to send [23:17:05]OFD Sender: No OFD packet to send [23:17:10]OFD Sender: No OFD packet to send [23:17:15]OFD Sender: No OFD packet to send [23:17:20]OFD Sender: No OFD packet to send [23:17:25]OFD Sender: No OFD packet to send [23:17:30]OFD Sender: No OFD packet to send [23:17:35]OFD Sender: No OFD packet to send [23:17:40]OFD Sender: No OFD packet to send [23:17:45]OFD Sender: No OFD packet to send [23:17:50]OFD Sender: No OFD packet to send [23:17:55]OFD Sender: No OFD packet to send [23:18:00]OFD Sender: No OFD packet to send [23:18:05]OFD Sender: No OFD packet to send [23:18:10]OFD Sender: No OFD packet to send [23:18:15]OFD Sender: No OFD packet to send [23:18:20]OFD Sender: No OFD packet to send [23:18:25]OFD Sender: No OFD packet to send [23:18:30]OFD Sender: No OFD packet to send [23:18:35]OFD Sender: No OFD packet to send [23:18:40]OFD Sender: No OFD packet to send [23:18:45]OFD Sender: No OFD packet to send [23:18:50]OFD Sender: No OFD packet to send [23:18:55]OFD Sender: No OFD packet to send [23:19:00]OFD Sender: No OFD packet to send [23:19:05]OFD Sender: No OFD packet to send [23:19:10]OFD Sender: No OFD packet to send [23:19:15]OFD Sender: No OFD packet to send [23:19:20]OFD Sender: No OFD packet to send [23:19:25]OFD Sender: No OFD packet to send [23:19:30]OFD Sender: No OFD packet to send [23:19:35]OFD Sender: No OFD packet to send [23:19:40]OFD Sender: No OFD packet to send [23:19:45]OFD Sender: No OFD packet to send [23:19:50]OFD Sender: No OFD packet to send [23:19:52]int [23:19:52]Write to MH i2c: 01 00 00 2C 16 42 [23:19:52]*** FLAG_PRN_PAP1 set [23:19:52]Write i2c OK [23:19:52]MH_I2C_Read... [23:19:52]Read from MH i2c: 01 [23:19:52]MH_I2C_Read... [23:19:52]Read from MH i2c: 01 07 00 [23:19:52]MH_I2C_Read... [23:19:52]Read from MH i2c: 01 07 00 2C 16 00 01 00 00 00 FF 0F 58 [23:19:52]state=0 [23:19:52]No paper [23:19:52]int [23:19:52]Write to MH i2c: 01 00 00 2D 16 43 [23:19:52]*** FLAG_PRN_PAP2 set [23:19:52]Write i2c OK [23:19:52]MH_I2C_Read... [23:19:52]Read from MH i2c: 01 [23:19:52]MH_I2C_Read... [23:19:52]Read from MH i2c: 01 07 00 [23:19:52]MH_I2C_Read... [23:19:52]Read from MH i2c: 01 07 00 2D 16 00 03 00 00 00 FF 0F 5B [23:19:52]state=0 [23:19:52]No paper [23:19:52]Cover opened [23:19:55]OFD Sender: No OFD packet to send [23:19:57]Write to MH i2c: 01 00 00 2E 16 44 [23:19:57]Write i2c OK [23:19:57]MH_I2C_Read... [23:19:57]Read from MH i2c: 01 [23:19:57]MH_I2C_Read... [23:19:57]Read from MH i2c: 01 07 00 [23:19:57]MH_I2C_Read... [23:19:57]Read from MH i2c: 01 07 00 2E 16 00 03 00 00 00 FF 0F 5C [23:19:57]state=3 [23:19:57]No paper [23:19:57]Cover opened [23:20:00]OFD Sender: No OFD packet to send [23:20:02]Write to MH i2c: 01 00 00 2F 16 45 [23:20:02]Write i2c OK [23:20:02]MH_I2C_Read... [23:20:02]Read from MH i2c: 01 [23:20:02]MH_I2C_Read... [23:20:02]Read from MH i2c: 01 07 00 [23:20:02]MH_I2C_Read... [23:20:02]Read from MH i2c: 01 07 00 2F 16 00 03 00 00 00 FF 0F 5D [23:20:02]state=3 [23:20:02]No paper [23:20:02]Cover opened [23:20:05]OFD Sender: No OFD packet to send [23:20:07]Write to MH i2c: 01 00 00 30 16 46 [23:20:07]Write i2c OK [23:20:07]MH_I2C_Read... [23:20:07]Read from MH i2c: 01 [23:20:07]MH_I2C_Read... [23:20:07]Read from MH i2c: 01 07 00 [23:20:07]MH_I2C_Read... [23:20:07]Read from MH i2c: 01 07 00 30 16 00 03 00 00 00 FF 0F 5E [23:20:07]state=3 [23:20:07]No paper [23:20:07]Cover opened [23:20:10]OFD Sender: No OFD packet to send [23:20:12]Write to MH i2c: 01 00 00 31 16 47 [23:20:12]Write i2c OK [23:20:12]MH_I2C_Read... [23:20:12]Read from MH i2c: 01 [23:20:12]MH_I2C_Read... [23:20:12]Read from MH i2c: 01 07 00 [23:20:12]MH_I2C_Read... [23:20:12]Read from MH i2c: 01 07 00 31 16 00 03 00 00 00 FF 0F 5F [23:20:12]state=3 [23:20:12]No paper [23:20:12]Cover opened [23:20:14]int [23:20:14]Write to MH i2c: 01 00 00 32 16 48 [23:20:14]*** FLAG_PRN_PAP1 reset [23:20:14]Write i2c OK [23:20:14]MH_I2C_Read... [23:20:14]Read from MH i2c: 01 [23:20:14]MH_I2C_Read... [23:20:14]Read from MH i2c: 01 07 00 [23:20:14]MH_I2C_Read... [23:20:14]*** FLAG_PRN_PAP2 reset [23:20:14]Read from MH i2c: 01 07 00 32 16 00 00 00 00 00 FF 0F 5D [23:20:14]state=3 [23:20:14]Cover closed [23:20:15]OFD Sender: No OFD packet to send [23:20:15]int [23:20:15]Write to MH i2c: 01 00 00 33 16 49 [23:20:15]*** FLAG_PRN_KEY set [23:20:15]Write i2c OK [23:20:15]MH_I2C_Read... [23:20:15]Read from MH i2c: 01 [23:20:15]MH_I2C_Read... [23:20:15]Read from MH i2c: 01 07 00 [23:20:15]MH_I2C_Read... [23:20:15]Read from MH i2c: 01 07 00 33 16 00 08 00 00 00 FF 0F 66 [23:20:15]state=0 [23:20:15]Key pressed [23:20:15]Feed [23:20:15]Write to MH i2c: D8 00 00 34 16 21 [23:20:15]Write i2c OK [23:20:15]MH_I2C_Read... [23:20:15]Read from MH i2c: D8 [23:20:15]MH_I2C_Read... [23:20:15]Read from MH i2c: D8 01 00 [23:20:15]MH_I2C_Read... [23:20:15]Read from MH i2c: D8 01 00 34 16 00 22 [23:20:15]int [23:20:15]Write to MH i2c: 01 00 00 35 16 4B [23:20:15]Write i2c OK [23:20:15]MH_I2C_Read... [23:20:15]Read from MH i2c: 01 [23:20:15]MH_I2C_Read... [23:20:15]Read from MH i2c: 01 07 00 [23:20:15]MH_I2C_Read... [23:20:15]Read from MH i2c: 01 07 00 35 16 00 48 00 00 00 3C 00 D6 [23:20:15]state=2 [23:20:15]Key pressed [23:20:16]int [23:20:16]Write to MH i2c: 01 00 00 36 16 4C [23:20:16]*** FLAG_PRN_KEY reset [23:20:16]Write i2c OK [23:20:16]MH_I2C_Read... [23:20:16]Read from MH i2c: 01 [23:20:16]MH_I2C_Read... [23:20:16]Read from MH i2c: 01 07 00 [23:20:16]MH_I2C_Read... [23:20:16]Read from MH i2c: 01 07 00 36 16 00 00 00 00 00 F6 0F 58 [23:20:16]state=2 [23:20:16]Stop feed [23:20:20]OFD Sender: No OFD packet to send [23:20:25]OFD Sender: No OFD packet to send [23:20:30]OFD Sender: No OFD packet to send [23:20:35]OFD Sender: No OFD packet to send [23:20:40]OFD Sender: No OFD packet to send [23:20:45]OFD Sender: No OFD packet to send [23:20:50]OFD Sender: No OFD packet to send [23:20:55]OFD Sender: No OFD packet to send [23:21:00]OFD Sender: No OFD packet to send [23:21:05]OFD Sender: No OFD packet to send [23:21:10]OFD Sender: No OFD packet to send [23:21:15]OFD Sender: No OFD packet to send [23:21:20]OFD Sender: No OFD packet to send [23:21:25]OFD Sender: No OFD packet to send [23:21:30]OFD Sender: No OFD packet to send [23:21:35]OFD Sender: No OFD packet to send [23:21:40]OFD Sender: No OFD packet to send [23:21:45]OFD Sender: No OFD packet to send [23:21:50]OFD Sender: No OFD packet to send [23:21:55]OFD Sender: No OFD packet to send [23:22:00]OFD Sender: No OFD packet to send [23:22:05]OFD Sender: No OFD packet to send [23:22:10]OFD Sender: No OFD packet to send [23:22:15]OFD Sender: No OFD packet to send [23:22:20]OFD Sender: No OFD packet to send [23:22:25]OFD Sender: No OFD packet to send [23:22:30]OFD Sender: No OFD packet to send [23:22:35]OFD Sender: No OFD packet to send [23:22:40]OFD Sender: No OFD packet to send [23:22:45]OFD Sender: No OFD packet to send [23:22:50]OFD Sender: No OFD packet to send [23:22:55]OFD Sender: No OFD packet to send [23:23:00]OFD Sender: No OFD packet to send [23:23:05]OFD Sender: No OFD packet to send [23:23:10]OFD Sender: No OFD packet to send [23:23:15]OFD Sender: No OFD packet to send [23:23:20]OFD Sender: No OFD packet to send [23:23:25]OFD Sender: No OFD packet to send [23:23:30]OFD Sender: No OFD packet to send [23:23:35]OFD Sender: No OFD packet to send [23:23:40]OFD Sender: No OFD packet to send [23:23:50]OFD Sender: No OFD packet to send [23:23:55]OFD Sender: No OFD packet to send [23:24:00]OFD Sender: No OFD packet to send [23:24:05]OFD Sender: No OFD packet to send [23:24:10]OFD Sender: No OFD packet to send [23:24:15]OFD Sender: No OFD packet to send [23:24:20]OFD Sender: No OFD packet to send [23:24:25]OFD Sender: No OFD packet to send [23:24:30]OFD Sender: No OFD packet to send [23:24:35]OFD Sender: No OFD packet to send [23:24:40]OFD Sender: No OFD packet to send [23:24:45]OFD Sender: No OFD packet to send [23:24:50]OFD Sender: No OFD packet to send [23:24:55]OFD Sender: No OFD packet to send [23:25:00]OFD Sender: No OFD packet to send [23:25:05]OFD Sender: No OFD packet to send [23:25:10]OFD Sender: No OFD packet to send [23:25:15]OFD Sender: No OFD packet to send [23:25:20]OFD Sender: No OFD packet to send [23:25:25]OFD Sender: No OFD packet to send [23:25:30]OFD Sender: No OFD packet to send [23:25:35]OFD Sender: No OFD packet to send [23:25:40]OFD Sender: No OFD packet to send [23:25:45]OFD Sender: No OFD packet to send [23:25:50]OFD Sender: No OFD packet to send [23:25:55]OFD Sender: No OFD packet to send [23:26:00]OFD Sender: No OFD packet to send [23:26:00]ConnectInit Can't connect to host [23:26:05]OFD Sender: No OFD packet to send [23:26:10]OFD Sender: No OFD packet to send [23:26:15]OFD Sender: No OFD packet to send [23:26:20]OFD Sender: No OFD packet to send [23:26:25]OFD Sender: No OFD packet to send [23:26:30]OFD Sender: No OFD packet to send [23:26:35]OFD Sender: No OFD packet to send [23:26:40]OFD Sender: No OFD packet to send [23:26:45]OFD Sender: No OFD packet to send [23:26:50]OFD Sender: No OFD packet to send [23:26:55]OFD Sender: No OFD packet to send [23:27:00]OFD Sender: No OFD packet to send [23:27:05]OFD Sender: No OFD packet to send [23:27:10]OFD Sender: No OFD packet to send [23:27:15]OFD Sender: No OFD packet to send [23:27:20]OFD Sender: No OFD packet to send [23:27:25]OFD Sender: No OFD packet to send [23:27:30]OFD Sender: No OFD packet to send [23:27:35]OFD Sender: No OFD packet to send [23:27:40]OFD Sender: No OFD packet to send [23:27:45]OFD Sender: No OFD packet to send [23:27:50]OFD Sender: No OFD packet to send [23:27:55]OFD Sender: No OFD packet to send [23:28:00]OFD Sender: No OFD packet to send [23:28:05]OFD Sender: No OFD packet to send [23:28:10]OFD Sender: No OFD packet to send [23:28:15]OFD Sender: No OFD packet to send [23:28:20]OFD Sender: No OFD packet to send [23:28:25]OFD Sender: No OFD packet to send [23:28:26]accept exits with 10 [23:28:26]New connection [23:28:26]New thread 3067473252 created [23:28:26]Thread 3067616612 joined [23:28:26]Waiting for new connection... [23:28:26] Sock 10.Parse request [23:28:26]Sock 10.Check first char [23:28:26]Sock 10.First char is OK [23:28:26]request: POST /json_proto HTTP/1.0 [23:28:26]Method: POST [23:28:26]URL: /json_proto [23:28:26]Method is POST - this is cgi request [23:28:26]url: /json_proto [23:28:26]query_string will be loaded in cgi processing [23:28:26]execute_cgi json_proto POST (null) [23:28:26]execute_cgi path=json_proto method=POST [23:28:26]POST find Content-Length [23:28:26]Host: 172.17.38.133:8080 [23:28:26]Content-Length: 1162 [23:28:26]Content-Type: application/json [23:28:26] [23:28:26]POST finish read [23:28:26]Found Content-Length = 1162 [23:28: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 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)673749\u000A21.06.2024 23:05\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 22.100 x 72.90\u000A\u0418\u0422\u041E\u0413: 1611.09\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30147393\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:28:26]execute_script... [23:28: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 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)673749\u000A21.06.2024 23:05\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 22.100 x 72.90\u000A\u0418\u0422\u041E\u0413: 1611.09\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30147393\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:28:26]POST & json_proto [23:28:26]process_json_proto [23:28:26]json parsed OK: [23:28:26]protocol is kg_v1.0 [23:28:26]action value=print_text [23:28:26]process_action print_text [23:28:26]cmd_print_text [23:28:26]ExternCall_PrintAddStr [23:28:26]wPrintStart [23:28:26]Write to MH i2c: 01 00 00 37 16 4D [23:28:26]Write i2c OK [23:28:26]MH_I2C_Read... [23:28:26]Read from MH i2c: 01 [23:28:26]MH_I2C_Read... [23:28:26]Read from MH i2c: 01 07 00 [23:28:26]MH_I2C_Read... [23:28:26]Read from MH i2c: 01 07 00 37 16 00 00 00 00 00 FF 0F 62 [23:28:26]RasterBufferAndPrint [23:28:26]line *****ТОВАРНЫЙ ЧЕК***** [23:28:26]line АЗС 120 [23:28:26]line Партнер нефть [23:28:26]line 02508201610067 [23:28:26]line Кассир : Асанбаев Н. [23:28:26]line Счет N : (1)673749 [23:28:26]line 21.06.2024 23:05 [23:28:26]line ПРОДАЖА [23:28:26]line ТРК (МРК, ГНК): 11 [23:28:26]line Вид ГСМ : 2710194210 [23:28:26]line ДТ(л)-К-5 [23:28:26]line 22.100 x 72.90 [23:28:26]line ИТОГ: 1611.09 [23:28:26]line Тип оплаты: Талоны: ТК ГПНА Online [23:28:26]line 30147393 [23:28:26]line ______________________ [23:28:26]line (подпись) [23:28:26]written 0, free lines is 4095 [23:28:26]Write to MH i2c: 01 00 00 4B 16 61 [23:28:26]Write i2c OK [23:28:26]MH_I2C_Read... [23:28:26]Read from MH i2c: 01 [23:28:26]MH_I2C_Read... [23:28:26]Read from MH i2c: 01 07 00 [23:28:26]MH_I2C_Read... [23:28:26]Read from MH i2c: 01 07 00 4B 16 00 00 00 00 00 11 0E 87 [23:28:26]RasterBufferAndPrint [23:28:26]line [23:28:26]line [23:28:26]line [23:28:26]line [23:28:26]line [23:28:26]written 0, free lines is 3603 [23:28:26]MH_Cut [23:28:26]Write to MH i2c: D1 01 00 52 16 01 3A [23:28:26]Write i2c OK [23:28:26]MH_I2C_Read... [23:28:26]Read from MH i2c: D1 [23:28:26]MH_I2C_Read... [23:28:26]Read from MH i2c: D1 01 00 [23:28:26]MH_I2C_Read... [23:28:26]Read from MH i2c: D1 01 00 52 16 00 39 [23:28:26]Write to MH i2c: 01 00 00 53 16 69 [23:28:26]Write i2c OK [23:28:26]MH_I2C_Read... [23:28:26]*** Cut start [23:28:26]*** Partial cut [23:28:26]*** CUTSNS_PIN = 1 [23:28:27]*** CUTSNS_PIN = 0 [23:28:27]*** Brake cut motor [23:28:27]Read from MH i2c: 01 [23:28:27]MH_I2C_Read... [23:28:27]*** Stop cut motor [23:28:27]*** Cut end [23:28:27]Read from MH i2c: 01 07 00 [23:28:27]MH_I2C_Read... [23:28:27]Read from MH i2c: 01 07 00 53 16 00 00 00 00 00 FF 0F 7E [23:28:27]process_action print_text done [23:28:27]requested_data is exist [23:28:27]produce_requested_data [23:28:27]requested_item fm.sn is exist - process it [23:28:27]wFMCommunicate request_size=4 [23:28:27]MH_SAM_APDU [23:28:27]CAPDU: 80 11 00 00 [23:28:27]Write to MH i2c: E2 08 00 54 16 80 11 00 00 00 00 00 00 E4 [23:28:27]Write i2c OK [23:28:27]MH_I2C_Read... [23:28:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:28:27]Read from MH i2c: E2 [23:28:27]MH_I2C_Read... [23:28:27]Read from MH i2c: E2 17 00 [23:28:27]MH_I2C_Read... [23:28:27]Read from MH i2c: E2 17 00 54 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 37 [23:28: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:28:27]wFMCommunicate OK [23:28:27]requested_item fd.num is exist - process it [23:28:27]SAM_PROTO_GetFieldsCounters [23:28:27]wFMCommunicate request_size=4 [23:28:27]MH_SAM_APDU [23:28:27]CAPDU: 80 13 00 00 [23:28:27]Write to MH i2c: E2 08 00 55 16 80 13 00 00 00 00 00 00 E7 [23:28:27]Write i2c OK [23:28:27]MH_I2C_Read... [23:28:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:28:27]Read from MH i2c: E2 [23:28:27]MH_I2C_Read... [23:28:27]Read from MH i2c: E2 62 00 [23:28:27]MH_I2C_Read... [23:28:27]Read from MH i2c: E2 62 00 55 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 43 97 01 00 0E 04 04 00 63 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 6F [23:28: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 43 97 01 00 0E 04 04 00 63 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 [23:28:27]wFMCommunicate OK [23:28:27]SAM_PROTO_GetFieldsCounters done [23:28:27]requested_item shift.num is exist - process it [23:28:27]requested_item shift.opened is exist - process it [23:28:27]req_shift_opened [23:28:27]FM_GetShiftState [23:28:27]SAM_PROTO_GetShiftState [23:28:27]wFMCommunicate request_size=4 [23:28:27]MH_SAM_APDU [23:28:27]CAPDU: 80 13 01 00 [23:28:27]Write to MH i2c: E2 08 00 56 16 80 13 01 00 00 00 00 00 E9 [23:28:27]Write i2c OK [23:28:27]MH_I2C_Read... [23:28:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:28:27]Read from MH i2c: E2 [23:28:27]MH_I2C_Read... [23:28:27]Read from MH i2c: E2 0E 00 [23:28:27]MH_I2C_Read... [23:28:27]Read from MH i2c: E2 0E 00 56 16 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 FC [23:28:27]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [23:28:27]wFMCommunicate OK [23:28:27]SAM_PROTO_GetShiftState done [23:28:27]FM_GetShiftState done [23:28:27]req_shift_opened done [23:28:27]requested_item shift.open_date is exist - process it [23:28:27]req_shift_open_date [23:28:27]req_shift_open_date done [23:28:27]produce_requested_data done [23:28:27]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104259,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [23:28:27]process_action_free print_text [23:28:27]json_value_free [23:28:27]json_value_free done [23:28:27]process_json_proto returns [23:28:27]Send response to host [23:28:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104259,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [23:28:27]free response buf [23:28:27]execute_script done [23:28:27]execute_script returns [23:28:27]free content buf [23:28:27]Sock 10.Close socket [23:28:27]Sock 10.Thread stoped [23:28:30]OFD Sender: No OFD packet to send [23:28:35]OFD Sender: No OFD packet to send [23:28:40]OFD Sender: No OFD packet to send [23:28:45]OFD Sender: No OFD packet to send [23:28:50]OFD Sender: No OFD packet to send [23:28:55]OFD Sender: No OFD packet to send [23:29:00]OFD Sender: No OFD packet to send [23:29:05]OFD Sender: No OFD packet to send [23:29:10]OFD Sender: No OFD packet to send [23:29:15]OFD Sender: No OFD packet to send [23:29:20]OFD Sender: No OFD packet to send [23:29:25]OFD Sender: No OFD packet to send [23:29:30]OFD Sender: No OFD packet to send [23:29:35]OFD Sender: No OFD packet to send [23:29:40]OFD Sender: No OFD packet to send [23:29:45]OFD Sender: No OFD packet to send [23:29:50]OFD Sender: No OFD packet to send [23:29:55]OFD Sender: No OFD packet to send [23:30:00]OFD Sender: No OFD packet to send [23:30:05]OFD Sender: No OFD packet to send [23:30:10]OFD Sender: No OFD packet to send [23:30:15]OFD Sender: No OFD packet to send [23:30:20]OFD Sender: No OFD packet to send [23:30:25]OFD Sender: No OFD packet to send [23:30:30]OFD Sender: No OFD packet to send [23:30:35]OFD Sender: No OFD packet to send [23:30:40]OFD Sender: No OFD packet to send [23:30:45]OFD Sender: No OFD packet to send [23:30:50]OFD Sender: No OFD packet to send [23:30:55]OFD Sender: No OFD packet to send [23:31:00]OFD Sender: No OFD packet to send [23:31:05]OFD Sender: No OFD packet to send [23:31:10]OFD Sender: No OFD packet to send [23:31:15]OFD Sender: No OFD packet to send [23:31:20]OFD Sender: No OFD packet to send [23:31:25]OFD Sender: No OFD packet to send [23:31:30]OFD Sender: No OFD packet to send [23:31:35]OFD Sender: No OFD packet to send [23:31:40]OFD Sender: No OFD packet to send [23:31:45]OFD Sender: No OFD packet to send [23:31:50]OFD Sender: No OFD packet to send [23:31:55]OFD Sender: No OFD packet to send [23:32:00]OFD Sender: No OFD packet to send [23:32:05]OFD Sender: No OFD packet to send [23:32:10]OFD Sender: No OFD packet to send [23:32:15]OFD Sender: No OFD packet to send [23:32:20]OFD Sender: No OFD packet to send [23:32:25]OFD Sender: No OFD packet to send [23:32:30]OFD Sender: No OFD packet to send [23:32:35]OFD Sender: No OFD packet to send [23:32:40]OFD Sender: No OFD packet to send [23:32:45]OFD Sender: No OFD packet to send [23:32:50]OFD Sender: No OFD packet to send [23:32:55]OFD Sender: No OFD packet to send [23:33:00]OFD Sender: No OFD packet to send [23:33:05]accept exits with 7 [23:33:05]New connection [23:33:05]New thread 3067616612 created [23:33:05]Thread 3067473252 joined [23:33:05]Waiting for new connection... [23:33:05] Sock 7.Parse request [23:33:05]Sock 7.Check first char [23:33:05]Sock 7.First char is OK [23:33:05]request: POST /json_proto HTTP/1.0 [23:33:05]Method: POST [23:33:05]URL: /json_proto [23:33:05]Method is POST - this is cgi request [23:33:05]url: /json_proto [23:33:05]query_string will be loaded in cgi processing [23:33:05]execute_cgi json_proto POST (null) [23:33:05]execute_cgi path=json_proto method=POST [23:33:05]POST find Content-Length [23:33:05]Host: 172.17.38.133:8080 [23:33:05]Content-Length: 808 [23:33:05]Content-Type: application/json [23:33:05] [23:33:05]POST finish read [23:33:05]Found Content-Length = 808 [23:33:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673750", "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" : 87.650, "sum" : 6389.69, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 6389.69 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:33:05]execute_script... [23: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)673750", "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" : 87.650, "sum" : 6389.69, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 6389.69 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:33:05]POST & json_proto [23:33:05]process_json_proto [23:33:05]json parsed OK: [23:33:05]protocol is kg_v1.0 [23:33:05]action value=close_receipt [23:33:05]process_action close_receipt [23:33:05]cmd_close_receipt [23:33:05]MH_GetDate [23:33:05]Write to MH i2c: F0 00 00 57 16 5C [23:33:05]Write i2c OK [23:33:05]MH_I2C_Read... [23:33:05]Read from MH i2c: F0 [23:33:05]MH_I2C_Read... [23:33:05]Read from MH i2c: F0 09 00 [23:33:05]MH_I2C_Read... [23:33:05]Read from MH i2c: F0 09 00 57 16 00 B3 0D 76 66 BD 8F 7C 64 2D [23:33:05]GetLastDocTimeStamp 1719011563 [23:33:05]current date 1719012787 [23:33:05]FM_GetShiftState [23:33:05]SAM_PROTO_GetShiftState [23:33:05]wFMCommunicate request_size=4 [23:33:05]MH_SAM_APDU [23:33:05]CAPDU: 80 13 01 00 [23:33:05]Write to MH i2c: E2 08 00 58 16 80 13 01 00 00 00 00 00 EB [23:33:05]Write i2c OK [23:33:05]MH_I2C_Read... [23:33:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:33:05]Read from MH i2c: E2 [23:33:05]MH_I2C_Read... [23:33:05]Read from MH i2c: E2 0E 00 [23:33:05]MH_I2C_Read... [23:33:05]Read from MH i2c: E2 0E 00 58 16 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 FE [23:33:05]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [23:33:05]wFMCommunicate OK [23:33:05]SAM_PROTO_GetShiftState done [23:33:05]FM_GetShiftState done [23:33:05]opened in 1718929509 [23:33:05]opened+sec_in_day 1719015909 [23:33:05]quantity*price = 638968 [23:33:05]sum+1 = 638970 [23:33:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 6389.69 НСП 1% : 56.55 НДС 12% : 678.55 Наличными: 0.00 Безнал.: 6389.69 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 183 21.06.2024 23:33 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875093 ФД: 104260 ФПД: 58835274030139 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T233307&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104260&fm=58835274030139&tin=02508201610067®Number=0000000000092785&sum=638969 [23:33:06]StoreToDocumentArchive [23:33:06]shift 355 fd 104260 [23:33:06]save to /storage/0355/doc_00104260 [23:33:06]save last doc name /storage/0355/doc_00104260 to /storage/kkm_last_doc_name [23:33:06]save OK [23:33:06]Clear old archive folders... [23:33:06]ProcessDocumentItem done err = 0, tmpTLVsize=252 [23:33:06]tlvbuf is 006950C0 [23:33:06]SAM_PROTO_ClearQueue [23:33:06]wFMCommunicate request_size=4 [23:33:06]MH_SAM_APDU [23:33:06]CAPDU: 80 09 00 00 [23:33:06]Write to MH i2c: E2 08 00 65 16 80 09 00 00 00 00 00 00 ED [23:33:06]Write i2c OK [23:33:06]MH_I2C_Read... [23:33:06]Read from MH i2c: E2 [23:33:06]MH_I2C_Read... [23:33:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:33:06]Read from MH i2c: E2 03 00 [23:33:06]MH_I2C_Read... [23:33:06]Read from MH i2c: E2 03 00 65 16 00 90 00 EF [23:33:06]RAPDU: 90 00 [23:33:06]wFMCommunicate OK [23:33:06]SAM_PROTO_ClearQueue done [23:33:06]KKMCreateOFDPacket [23:33:06]OFDProtocolAddRootSTLVToBuf [23:33:06]FM_MakeSignedData [23:33:06]FM_MakeSignedData [23:33:06]SAM_PROTO_SignData [23:33:06]wFMCommunicate request_size=4 [23:33:06]MH_SAM_APDU [23:33:06]CAPDU: 80 0D 01 02 [23:33:06]Write to MH i2c: E2 08 00 66 16 80 0D 01 02 00 00 00 00 F5 [23:33:06]Write i2c OK [23:33:06]MH_I2C_Read... [23:33:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:33:06]Read from MH i2c: E2 [23:33:06]MH_I2C_Read... [23:33:06]Read from MH i2c: E2 03 00 [23:33:06]MH_I2C_Read... [23:33:06]Read from MH i2c: E2 03 00 66 16 00 90 00 F0 [23:33:06]RAPDU: 90 00 [23:33:06]wFMCommunicate OK [23:33:06]wFMCommunicate request_size=255 [23:33:06]MH_SAM_APDU [23:33: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 62 56 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 F9 BF 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F9 BF 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 17 16 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 09 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F9 BF 09 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 B3 0D 76 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 44 97 01 00 35 04 06 00 [23:33:06]Write to MH i2c: E2 02 01 67 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 62 56 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 F9 BF 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F9 BF 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 17 16 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 09 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F9 BF 09 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 B3 0D 76 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 44 97 01 00 35 04 06 00 00 00 AB [23:33:07]Write i2c OK [23:33:07]MH_I2C_Read... [23:33:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:33:07]Read from MH i2c: E2 [23:33:07]MH_I2C_Read... [23:33:07]Read from MH i2c: E2 03 00 [23:33:07]MH_I2C_Read... [23:33:07]Read from MH i2c: E2 03 00 67 16 00 90 00 F1 [23:33:07]RAPDU: 90 00 [23:33:07]wFMCommunicate OK [23:33:07]wFMCommunicate request_size=11 [23:33:07]MH_SAM_APDU [23:33:07]CAPDU: 80 0D 02 02 06 35 82 A7 9B DC 3B [23:33:07]Write to MH i2c: E2 0E 00 68 16 80 0D 02 02 06 00 35 82 A7 9B DC 3B 00 00 14 [23:33:07]Write i2c OK [23:33:07]MH_I2C_Read... [23:33:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:33:07]Read from MH i2c: E2 [23:33:07]MH_I2C_Read... [23:33:07]Read from MH i2c: E2 03 00 [23:33:07]MH_I2C_Read... [23:33:07]Read from MH i2c: E2 03 00 68 16 00 90 00 F2 [23:33:07]RAPDU: 90 00 [23:33:07]wFMCommunicate OK [23:33:07]wFMCommunicate request_size=4 [23:33:07]MH_SAM_APDU [23:33:07]CAPDU: 80 0D 03 02 [23:33:07]Write to MH i2c: E2 08 00 69 16 80 0D 03 02 00 00 00 00 FA [23:33:07]Write i2c OK [23:33:07]MH_I2C_Read... [23:33:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:33:07]Read from MH i2c: E2 [23:33:07]MH_I2C_Read... [23:33:07]Read from MH i2c: E2 0B 00 [23:33:07]MH_I2C_Read... [23:33:07]Read from MH i2c: E2 0B 00 69 16 00 7A 15 42 75 67 CC AF FD 90 00 20 [23:33:07]RAPDU: 7A 15 42 75 67 CC AF FD 90 00 [23:33:07]wFMCommunicate OK [23:33:07]SAM_PROTO_SignData done [23:33:07]FM_MakeSignedData done [23:33:07]CreateOFDProtocolMessage [23:33:07]wFMCommunicate request_size=4 [23:33:07]MH_SAM_APDU [23:33:07]CAPDU: 80 11 00 00 [23:33:07]Write to MH i2c: E2 08 00 6A 16 80 11 00 00 00 00 00 00 FA [23:33:07]Write i2c OK [23:33:07]MH_I2C_Read... [23:33:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:33:07]Read from MH i2c: E2 [23:33:07]MH_I2C_Read... [23:33:07]Read from MH i2c: E2 17 00 [23:33:07]MH_I2C_Read... [23:33:07]Read from MH i2c: E2 17 00 6A 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 4D [23: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 [23:33:07]wFMCommunicate OK [23:33:07]CreateOFDProtocolMessage done [23:33:07]OFDSenderStorePacket 104260 [23:33:07]StoreOFDPacket docnum=104260 [23: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 C6 16 08 01 63 0F 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 62 56 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 F9 BF 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F9 BF 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 17 16 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 09 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F9 BF 09 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 B3 0D 76 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 44 97 01 00 35 04 06 00 35 82 A7 9B DC 3B 7A 15 42 75 67 CC AF FD [23:33:07]CheckFolder [23:33:07]dirname=/storage/ofd_packets [23:33:07]CheckFolder done [23:33:07]ProducePacketName [23:33:07]name=ofd_packets/00104260 [23:33:07]NVStorageSaveData ofd_packets/00104260 [23:33:07]File name is /storage/ofd_packets/00104260 [23:33:07]Write 302 bytes [23:33:07]NVStorageSaveData done [23:33:07]OFDSenderStorePacket done [23:33:07]KKMCreateOFDPacket done [23:33:07]NVStorageSaveData kkm_last_timestamp [23:33:07]File name is /storage/kkm_last_timestamp [23:33:07]Write 4 bytes [23:33:07]NVStorageSaveData done [23:33:07]ExternCall_PrintAddStr [23:33:07]wPrintStart [23:33:07]Write to MH i2c: 01 00 00 6B 16 81 [23:33:07]Write i2c OK [23:33:07]MH_I2C_Read... [23:33:07]Read from MH i2c: 01 [23:33:07]MH_I2C_Read... [23:33:07]Read from MH i2c: 01 07 00 [23:33:07]MH_I2C_Read... [23:33:07]Read from MH i2c: 01 07 00 6B 16 00 00 00 00 00 FF 0F 96 [23:33:07]RasterBufferAndPrint [23:33:07]line Счет N : (1)673750 [23:33:07]line ИНН: 02508201610067 [23:33:07]line Контрольно-Кассовый Чек [23:33:07]line ПРОДАЖА [23:33:07]line ТРК (МРК, ГНК) : 11 [23:33:07]line Товар: 2710194210 [23:33:07]line ДТ(л)-К-5 [23:33:07]line 87.650 * 72.90 [23:33:07]line = 6389.69 [23:33:07]line НДС 12% НСП 1% [23:33:07]line > о реализуемом товаре [23:33:07]line ИТОГО: 6389.69 [23:33:07]line НСП 1% : 56.55 [23:33:07]line НДС 12% : 678.55 [23:33:07]line Наличными: 0.00 [23:33:07]line Безнал.: 6389.69 [23:33:07]line Место: АЗС № 120 "Партнер Нефть" [23:33:07]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [23:33:07]line СНО: Общий режим [23:33:07]line Чек 183 21.06.2024 23:33 [23:33:07]line Смена: 355 ФФД: 1.0 [23:33:07]line ЗНМ: 0300000164 [23:33:07]line РНМ: 0000000000092785 [23:33:07]line Версия ККМ: 001 [23:33:07]line Платежная система: O! деньги [23:33:07]line ФМ: 0000000000875093 [23:33:07]line ФД: 104260 [23:33:07]line ФПД: 58835274030139 [23:33:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T233307&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104260&fm=58835274030139&tin=02508201610067®Number=0000000000092785&sum=638969 [23:33:07]written 0, free lines is 4095 [23:33:07]OFD Sender: Processing packet 104260 [packets to send 17, broken 16] [23:33:07]ProducePacketName [23:33:07]name=ofd_packets/00104260 [23:33:07]OFD Sender: To server: pG, [23:33:07]CommunicateWithHost lk.salyk.kg:30040 [23:33:07]ConnectInit lk.salyk.kg [23:33:07]Connected sock=10 [23:33: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 C6 16 08 01 63 0F 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 62 56 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 F9 BF 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F9 BF 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 17 16 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 09 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F9 BF 09 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 B3 0D 76 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 44 97 01 00 35 04 06 00 35 82 A7 9B DC 3B 7A 15 42 75 67 CC AF FD [23: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 34 FB 47 00 52 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 44 97 01 00 F4 03 04 00 34 B4 75 66 B6 04 01 00 00 65 13 C4 F5 AF 54 F9 6D [23:33:08]CommunicateWithHost err = 0 [23:33:08]CheckOFDResponse [23:33:08]1017 (14) - 77093643461234 [23:33:08]1041 (16) - 0000000000875093 [23:33:08]1040 (4) - 104260 [23:33:08]1012 (4) - 21.06.2024 17:11 [23:33:08]1206 (1) - 0 [23:33:08]OFD Sender: Remove packet 104260 [23:33:08]ProducePacketName [23:33:08]name=ofd_packets/00104260 [23:33:08]NVStorageDeleteData [23:33:08]Write to MH i2c: 01 00 00 95 16 AB [23:33:08]Write i2c OK [23:33:08]MH_I2C_Read... [23:33:08]Read from MH i2c: 01 [23:33:08]MH_I2C_Read... [23:33:08]Read from MH i2c: 01 07 00 [23:33:08]MH_I2C_Read... [23:33:08]Read from MH i2c: 01 07 00 95 16 00 00 00 00 00 F5 0C B3 [23:33:08]RasterBufferAndPrint [23:33:08]line [23:33:08]line [23:33:08]line [23:33:08]line [23:33:08]line [23:33:08]written 0, free lines is 3324 [23:33:08]MH_Cut [23:33:08]Write to MH i2c: D1 01 00 9C 16 01 84 [23:33:08]Write i2c OK [23:33:08]MH_I2C_Read... [23:33:08]Read from MH i2c: D1 [23:33:08]MH_I2C_Read... [23:33:08]Read from MH i2c: D1 01 00 [23:33:08]MH_I2C_Read... [23:33:08]Read from MH i2c: D1 01 00 9C 16 00 83 [23:33:08]Write to MH i2c: 01 00 00 9D 16 B3 [23:33:08]Write i2c OK [23:33:08]MH_I2C_Read... [23:33:08]OFD Sender: No OFD packet to send [23:33:08]*** Cut start [23:33:08]*** Partial cut [23:33:08]*** CUTSNS_PIN = 1 [23:33:08]*** CUTSNS_PIN = 0 [23:33:09]*** Brake cut motor [23:33:09]Read from MH i2c: 01 [23:33:09]MH_I2C_Read... [23:33:09]*** Stop cut motor [23:33:09]*** Cut end [23:33:09]Read from MH i2c: 01 07 00 [23:33:09]MH_I2C_Read... [23:33:09]Read from MH i2c: 01 07 00 9D 16 00 00 00 00 00 FF 0F C8 [23:33:09]process_action close_receipt done [23:33:09]requested_data is exist [23:33:09]produce_requested_data [23:33:09]requested_item fm.sn is exist - process it [23:33:09]wFMCommunicate request_size=4 [23:33:09]MH_SAM_APDU [23:33:09]CAPDU: 80 11 00 00 [23:33:09]Write to MH i2c: E2 08 00 9E 16 80 11 00 00 00 00 00 00 2E [23:33:09]Write i2c OK [23:33:09]MH_I2C_Read... [23:33:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:33:09]Read from MH i2c: E2 [23:33:09]MH_I2C_Read... [23:33:09]Read from MH i2c: E2 17 00 [23:33:09]MH_I2C_Read... [23:33:09]Read from MH i2c: E2 17 00 9E 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 81 [23: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 [23:33:09]wFMCommunicate OK [23:33:09]requested_item fd.num is exist - process it [23:33:09]SAM_PROTO_GetFieldsCounters [23:33:09]wFMCommunicate request_size=4 [23:33:09]MH_SAM_APDU [23:33:09]CAPDU: 80 13 00 00 [23:33:09]Write to MH i2c: E2 08 00 9F 16 80 13 00 00 00 00 00 00 31 [23:33:09]Write i2c OK [23:33:09]MH_I2C_Read... [23:33:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:33:09]Read from MH i2c: E2 [23:33:09]MH_I2C_Read... [23:33:09]Read from MH i2c: E2 62 00 [23:33:09]MH_I2C_Read... [23:33:09]Read from MH i2c: E2 62 00 9F 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 44 97 01 00 0E 04 04 00 63 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 BD [23: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 44 97 01 00 0E 04 04 00 63 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 [23:33:09]wFMCommunicate OK [23:33:09]SAM_PROTO_GetFieldsCounters done [23:33:09]requested_item shift.num is exist - process it [23:33:09]requested_item shift.opened is exist - process it [23:33:09]req_shift_opened [23:33:09]FM_GetShiftState [23:33:09]SAM_PROTO_GetShiftState [23:33:09]wFMCommunicate request_size=4 [23:33:09]MH_SAM_APDU [23:33:09]CAPDU: 80 13 01 00 [23:33:09]Write to MH i2c: E2 08 00 A0 16 80 13 01 00 00 00 00 00 33 [23:33:09]Write i2c OK [23:33:09]MH_I2C_Read... [23:33:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:33:09]Read from MH i2c: E2 [23:33:09]MH_I2C_Read... [23:33:09]Read from MH i2c: E2 0E 00 [23:33:09]MH_I2C_Read... [23:33:09]Read from MH i2c: E2 0E 00 A0 16 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 46 [23:33:09]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [23:33:09]wFMCommunicate OK [23:33:09]SAM_PROTO_GetShiftState done [23:33:09]FM_GetShiftState done [23:33:09]req_shift_opened done [23:33:09]requested_item shift.open_date is exist - process it [23:33:09]req_shift_open_date [23:33:09]req_shift_open_date done [23:33:09]produce_requested_data done [23:33:09]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104260,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [23:33:09]process_action_free close_receipt [23:33:09]json_value_free [23:33:09]json_value_free done [23:33:09]process_json_proto returns [23:33:09]Send response to host [23:33:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104260,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [23:33:09]free response buf [23:33:09]execute_script done [23:33:09]execute_script returns [23:33:09]free content buf [23:33:09]Sock 7.Close socket [23:33:09]Sock 7.Thread stoped [23:33:13]OFD Sender: No OFD packet to send [23:33:18]OFD Sender: No OFD packet to send [23:33:23]OFD Sender: No OFD packet to send [23:33:28]OFD Sender: No OFD packet to send [23:33:33]OFD Sender: No OFD packet to send [23:33:38]OFD Sender: No OFD packet to send [23:33:43]OFD Sender: No OFD packet to send [23:33:48]OFD Sender: No OFD packet to send [23:33:53]OFD Sender: No OFD packet to send [23:33:58]OFD Sender: No OFD packet to send [23:34:03]OFD Sender: No OFD packet to send [23:34:08]OFD Sender: No OFD packet to send [23:34:13]OFD Sender: No OFD packet to send [23:34:18]OFD Sender: No OFD packet to send [23:34:23]OFD Sender: No OFD packet to send [23:34:28]OFD Sender: No OFD packet to send [23:34:33]OFD Sender: No OFD packet to send [23:34:38]OFD Sender: No OFD packet to send [23:34:43]OFD Sender: No OFD packet to send [23:34:48]OFD Sender: No OFD packet to send [23:34:53]OFD Sender: No OFD packet to send [23:34:58]OFD Sender: No OFD packet to send [23:35:03]OFD Sender: No OFD packet to send [23:35:08]OFD Sender: No OFD packet to send [23:35:13]OFD Sender: No OFD packet to send [23:35:18]OFD Sender: No OFD packet to send [23:35:23]OFD Sender: No OFD packet to send [23:35:28]OFD Sender: No OFD packet to send [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:07]accept exits with 9 [23:39:07]New connection [23:39:07]New thread 3067473252 created [23:39:07]Thread 3067616612 joined [23:39:07]Waiting for new connection... [23:39:07] Sock 9.Parse request [23:39:07]Sock 9.Check first char [23:39:07]Sock 9.First char is OK [23:39:07]request: POST /json_proto HTTP/1.0 [23:39:07]Method: POST [23:39:07]URL: /json_proto [23:39:07]Method is POST - this is cgi request [23:39:07]url: /json_proto [23:39:07]query_string will be loaded in cgi processing [23:39:07]execute_cgi json_proto POST (null) [23:39:07]execute_cgi path=json_proto method=POST [23:39:07]POST find Content-Length [23:39:07]Host: 172.17.38.133:8080 [23:39:07]Content-Length: 1189 [23:39:07]Content-Type: application/json [23:39:07] [23:39:07]POST finish read [23:39:07]Found Content-Length = 1189 [23:39: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 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)673751\u000A21.06.2024 23:16\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\u000A3750947\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:39:07]execute_script... [23:39: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 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)673751\u000A21.06.2024 23:16\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\u000A3750947\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:39:07]POST & json_proto [23:39:07]process_json_proto [23:39:07]json parsed OK: [23:39:07]protocol is kg_v1.0 [23:39:07]action value=print_text [23:39:07]process_action print_text [23:39:07]cmd_print_text [23:39:07]ExternCall_PrintAddStr [23:39:07]wPrintStart [23:39:07]Write to MH i2c: 01 00 00 A1 16 B7 [23:39:07]Write i2c OK [23:39:07]MH_I2C_Read... [23:39:07]Read from MH i2c: 01 [23:39:07]MH_I2C_Read... [23:39:07]Read from MH i2c: 01 07 00 [23:39:07]MH_I2C_Read... [23:39:07]Read from MH i2c: 01 07 00 A1 16 00 00 00 00 00 FF 0F CC [23:39:07]RasterBufferAndPrint [23:39:07]line *****ТОВАРНЫЙ ЧЕК***** [23:39:07]line АЗС 120 [23:39:07]line Партнер нефть [23:39:07]line 02508201610067 [23:39:07]line Кассир : Асанбаев Н. [23:39:07]line Счет N : (1)673751 [23:39:07]line 21.06.2024 23:16 [23:39:07]line ПРОДАЖА [23:39:07]line ТРК (МРК, ГНК): 21 [23:39:07]line Вид ГСМ : 2710194210 [23:39:07]line ДТ(л)-К-5 [23:39:07]line 10.000 x 72.90 [23:39:07]line ИТОГ: 729.00 [23:39:07]line Тип оплаты: Талоны: Партнер нефть [23:39:07]line 3750947 [23:39:07]line ______________________ [23:39:07]line (подпись) [23:39:07]written 0, free lines is 4095 [23:39:07]Write to MH i2c: 01 00 00 B5 16 CB [23:39:07]Write i2c OK [23:39:07]MH_I2C_Read... [23:39:07]Read from MH i2c: 01 [23:39:07]MH_I2C_Read... [23:39:07]Read from MH i2c: 01 07 00 [23:39:07]MH_I2C_Read... [23:39:07]Read from MH i2c: 01 07 00 B5 16 00 00 00 00 00 10 0E F0 [23:39:07]RasterBufferAndPrint [23:39:07]line [23:39:07]line [23:39:07]line [23:39:07]line [23:39:07]line [23:39:07]written 0, free lines is 3601 [23:39:07]MH_Cut [23:39:07]Write to MH i2c: D1 01 00 BC 16 01 A4 [23:39:07]Write i2c OK [23:39:07]MH_I2C_Read... [23:39:07]Read from MH i2c: D1 [23:39:07]MH_I2C_Read... [23:39:07]Read from MH i2c: D1 01 00 [23:39:07]MH_I2C_Read... [23:39:07]Read from MH i2c: D1 01 00 BC 16 00 A3 [23:39:07]Write to MH i2c: 01 00 00 BD 16 D3 [23:39:07]Write i2c OK [23:39:07]MH_I2C_Read... [23:39:08]*** Cut start [23:39:08]*** Partial cut [23:39:08]*** CUTSNS_PIN = 1 [23:39:08]*** CUTSNS_PIN = 0 [23:39:08]*** Brake cut motor [23:39:08]Read from MH i2c: 01 [23:39:08]MH_I2C_Read... [23:39:08]*** Stop cut motor [23:39:08]*** Cut end [23:39:08]Read from MH i2c: 01 07 00 [23:39:08]MH_I2C_Read... [23:39:08]Read from MH i2c: 01 07 00 BD 16 00 00 00 00 00 FF 0F E8 [23:39:08]process_action print_text done [23:39:08]requested_data is exist [23:39:08]produce_requested_data [23:39:08]requested_item fm.sn is exist - process it [23:39:08]wFMCommunicate request_size=4 [23:39:08]MH_SAM_APDU [23:39:08]CAPDU: 80 11 00 00 [23:39:08]Write to MH i2c: E2 08 00 BE 16 80 11 00 00 00 00 00 00 4E [23:39:08]Write i2c OK [23:39:08]MH_I2C_Read... [23:39:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:39:08]Read from MH i2c: E2 [23:39:08]MH_I2C_Read... [23:39:08]Read from MH i2c: E2 17 00 [23:39:08]MH_I2C_Read... [23:39:08]Read from MH i2c: E2 17 00 BE 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 A1 [23:39:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [23:39:08]wFMCommunicate OK [23:39:08]requested_item fd.num is exist - process it [23:39:08]SAM_PROTO_GetFieldsCounters [23:39:08]wFMCommunicate request_size=4 [23:39:08]MH_SAM_APDU [23:39:08]CAPDU: 80 13 00 00 [23:39:08]Write to MH i2c: E2 08 00 BF 16 80 13 00 00 00 00 00 00 51 [23:39:08]Write i2c OK [23:39:08]MH_I2C_Read... [23:39:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:39:08]Read from MH i2c: E2 [23:39:08]MH_I2C_Read... [23:39:08]Read from MH i2c: E2 62 00 [23:39:08]MH_I2C_Read... [23:39:08]Read from MH i2c: E2 62 00 BF 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 44 97 01 00 0E 04 04 00 63 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 DD [23:39: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 44 97 01 00 0E 04 04 00 63 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 [23:39:08]wFMCommunicate OK [23:39:08]SAM_PROTO_GetFieldsCounters done [23:39:08]requested_item shift.num is exist - process it [23:39:08]requested_item shift.opened is exist - process it [23:39:08]req_shift_opened [23:39:08]FM_GetShiftState [23:39:08]SAM_PROTO_GetShiftState [23:39:08]wFMCommunicate request_size=4 [23:39:08]MH_SAM_APDU [23:39:08]CAPDU: 80 13 01 00 [23:39:08]Write to MH i2c: E2 08 00 C0 16 80 13 01 00 00 00 00 00 53 [23:39:08]Write i2c OK [23:39:08]MH_I2C_Read... [23:39:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:39:08]Read from MH i2c: E2 [23:39:08]MH_I2C_Read... [23:39:08]Read from MH i2c: E2 0E 00 [23:39:08]MH_I2C_Read... [23:39:08]Read from MH i2c: E2 0E 00 C0 16 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 66 [23:39:08]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [23:39:08]wFMCommunicate OK [23:39:08]SAM_PROTO_GetShiftState done [23:39:08]FM_GetShiftState done [23:39:08]req_shift_opened done [23:39:08]requested_item shift.open_date is exist - process it [23:39:08]req_shift_open_date [23:39:08]req_shift_open_date done [23:39:08]produce_requested_data done [23:39:08]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104260,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [23:39:08]process_action_free print_text [23:39:08]json_value_free [23:39:08]json_value_free done [23:39:08]process_json_proto returns [23:39:08]Send response to host [23:39:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104260,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [23:39:08]free response buf [23:39:08]execute_script done [23:39:08]execute_script returns [23:39:08]free content buf [23:39:08]Sock 9.Close socket [23:39:08]Sock 9.Thread stoped [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:59]OFD Sender: No OFD packet to send [23:40:04]OFD Sender: No OFD packet to send [23:40:09]OFD Sender: No OFD packet to send [23:40:14]OFD Sender: No OFD packet to send [23:40:19]OFD Sender: No OFD packet to send [23:40:24]OFD Sender: No OFD packet to send [23:40:29]OFD Sender: No OFD packet to send [23:40:34]OFD Sender: No OFD packet to send [23:40:39]OFD Sender: No OFD packet to send [23:40:44]OFD Sender: No OFD packet to send [23:40:49]OFD Sender: No OFD packet to send [23:40:49]accept exits with 7 [23:40:49]New connection [23:40:49]New thread 3067616612 created [23:40:49]Thread 3067473252 joined [23:40:49]Waiting for new connection... [23:40:49] Sock 7.Parse request [23:40:49]Sock 7.Check first char [23:40:49]Sock 7.First char is OK [23:40:49]request: POST /json_proto HTTP/1.0 [23:40:49]Method: POST [23:40:49]URL: /json_proto [23:40:49]Method is POST - this is cgi request [23:40:49]url: /json_proto [23:40:49]query_string will be loaded in cgi processing [23:40:49]execute_cgi json_proto POST (null) [23:40:49]execute_cgi path=json_proto method=POST [23:40:49]POST find Content-Length [23:40:49]Host: 172.17.38.133:8080 [23:40:49]Content-Length: 682 [23:40:49]Content-Type: application/json [23:40:49] [23:40:49]POST finish read [23:40:49]Found Content-Length = 682 [23:40:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673752", "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" : 3.720, "sum" : 271.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 271.00, "total" : 271.00, "payments": [ { "type": 0, "sum" : 271.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:40:49]execute_script... [23:40: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)673752", "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" : 3.720, "sum" : 271.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 271.00, "total" : 271.00, "payments": [ { "type": 0, "sum" : 271.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:40:49]POST & json_proto [23:40:49]process_json_proto [23:40:49]json parsed OK: [23:40:49]protocol is kg_v1.0 [23:40:49]action value=close_receipt [23:40:49]process_action close_receipt [23:40:49]cmd_close_receipt [23:40:49]MH_GetDate [23:40:49]Write to MH i2c: F0 00 00 C1 16 C6 [23:40:49]Write i2c OK [23:40:49]MH_I2C_Read... [23:40:49]Read from MH i2c: F0 [23:40:49]MH_I2C_Read... [23:40:49]Read from MH i2c: F0 09 00 [23:40:49]MH_I2C_Read... [23:40:49]Read from MH i2c: F0 09 00 C1 16 00 83 0F 76 66 BD 8F 7C 64 69 [23:40:49]GetLastDocTimeStamp 1719012787 [23:40:49]current date 1719013251 [23:40:49]FM_GetShiftState [23:40:49]SAM_PROTO_GetShiftState [23:40:49]wFMCommunicate request_size=4 [23:40:49]MH_SAM_APDU [23:40:49]CAPDU: 80 13 01 00 [23:40:49]Write to MH i2c: E2 08 00 C2 16 80 13 01 00 00 00 00 00 55 [23:40:49]Write i2c OK [23:40:49]MH_I2C_Read... [23:40:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:40:49]Read from MH i2c: E2 [23:40:49]MH_I2C_Read... [23:40:49]Read from MH i2c: E2 0E 00 [23:40:49]MH_I2C_Read... [23:40:49]Read from MH i2c: E2 0E 00 C2 16 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 68 [23:40:49]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [23:40:49]wFMCommunicate OK [23:40:49]SAM_PROTO_GetShiftState done [23:40:49]FM_GetShiftState done [23:40:49]opened in 1718929509 [23:40:49]opened+sec_in_day 1719015909 [23:40:49]quantity*price = 27118 [23:40:49]sum+1 = 27120 [23:40:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 271.00 Внесено: 271.00 СДАЧА: 0.00 НСП 1% : 2.40 НДС 12% : 28.80 Наличными: 271.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 184 21.06.2024 23:40 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104261 ФПД: 85874756244614 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T234051&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104261&fm=85874756244614&tin=02508201610067®Number=0000000000092785&sum=27100 [23:40:50]StoreToDocumentArchive [23:40:50]shift 355 fd 104261 [23:40:50]save to /storage/0355/doc_00104261 [23:40:50]save last doc name /storage/0355/doc_00104261 to /storage/kkm_last_doc_name [23:40:50]save OK [23:40:50]Clear old archive folders... [23:40:50]ProcessDocumentItem done err = 0, tmpTLVsize=252 [23:40:50]tlvbuf is 006AEB80 [23:40:50]SAM_PROTO_ClearQueue [23:40:50]wFMCommunicate request_size=4 [23:40:50]MH_SAM_APDU [23:40:50]CAPDU: 80 09 00 00 [23:40:50]Write to MH i2c: E2 08 00 CF 16 80 09 00 00 00 00 00 00 57 [23:40:50]Write i2c OK [23:40:50]MH_I2C_Read... [23:40:50]Read from MH i2c: E2 [23:40:50]MH_I2C_Read... [23:40:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:40:51]Read from MH i2c: E2 03 00 [23:40:51]MH_I2C_Read... [23:40:51]Read from MH i2c: E2 03 00 CF 16 00 90 00 59 [23:40:51]RAPDU: 90 00 [23:40:51]wFMCommunicate OK [23:40:51]SAM_PROTO_ClearQueue done [23:40:51]KKMCreateOFDPacket [23:40:51]OFDProtocolAddRootSTLVToBuf [23:40:51]FM_MakeSignedData [23:40:51]FM_MakeSignedData [23:40:51]SAM_PROTO_SignData [23:40:51]wFMCommunicate request_size=4 [23:40:51]MH_SAM_APDU [23:40:51]CAPDU: 80 0D 01 02 [23:40:51]Write to MH i2c: E2 08 00 D0 16 80 0D 01 02 00 00 00 00 5F [23:40:51]Write i2c OK [23:40:51]MH_I2C_Read... [23:40:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:40:51]Read from MH i2c: E2 [23:40:51]MH_I2C_Read... [23:40:51]Read from MH i2c: E2 03 00 [23:40:51]MH_I2C_Read... [23:40:51]Read from MH i2c: E2 03 00 D0 16 00 90 00 5A [23:40:51]RAPDU: 90 00 [23:40:51]wFMCommunicate OK [23:40:51]wFMCommunicate request_size=255 [23:40:51]MH_SAM_APDU [23:40: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 88 0E 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 EF 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 0B 00 00 00 00 07 04 06 00 DC 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 83 0F 76 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 45 97 01 00 35 04 06 00 [23:40:51]Write to MH i2c: E2 02 01 D1 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 88 0E 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 EF 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 0B 00 00 00 00 07 04 06 00 DC 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 83 0F 76 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 45 97 01 00 35 04 06 00 00 00 5A [23:40:51]Write i2c OK [23:40:51]MH_I2C_Read... [23:40:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:40:51]Read from MH i2c: E2 [23:40:51]MH_I2C_Read... [23:40:51]Read from MH i2c: E2 03 00 [23:40:51]MH_I2C_Read... [23:40:51]Read from MH i2c: E2 03 00 D1 16 00 90 00 5B [23:40:51]RAPDU: 90 00 [23:40:51]wFMCommunicate OK [23:40:51]wFMCommunicate request_size=11 [23:40:51]MH_SAM_APDU [23:40:51]CAPDU: 80 0D 02 02 06 4E 1A 46 57 54 86 [23:40:51]Write to MH i2c: E2 0E 00 D2 16 80 0D 02 02 06 00 4E 1A 46 57 54 86 00 00 4D [23:40:51]Write i2c OK [23:40:51]MH_I2C_Read... [23:40:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:40:51]Read from MH i2c: E2 [23:40:51]MH_I2C_Read... [23:40:51]Read from MH i2c: E2 03 00 [23:40:51]MH_I2C_Read... [23:40:51]Read from MH i2c: E2 03 00 D2 16 00 90 00 5C [23:40:51]RAPDU: 90 00 [23:40:51]wFMCommunicate OK [23:40:51]wFMCommunicate request_size=4 [23:40:51]MH_SAM_APDU [23:40:51]CAPDU: 80 0D 03 02 [23:40:51]Write to MH i2c: E2 08 00 D3 16 80 0D 03 02 00 00 00 00 64 [23:40:51]Write i2c OK [23:40:51]MH_I2C_Read... [23:40:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:40:51]Read from MH i2c: E2 [23:40:51]MH_I2C_Read... [23:40:51]Read from MH i2c: E2 0B 00 [23:40:51]MH_I2C_Read... [23:40:51]Read from MH i2c: E2 0B 00 D3 16 00 15 3D 0D 70 EE 2D 1C D2 90 00 3D [23:40:51]RAPDU: 15 3D 0D 70 EE 2D 1C D2 90 00 [23:40:51]wFMCommunicate OK [23:40:51]SAM_PROTO_SignData done [23:40:51]FM_MakeSignedData done [23:40:51]CreateOFDProtocolMessage [23:40:51]wFMCommunicate request_size=4 [23:40:51]MH_SAM_APDU [23:40:51]CAPDU: 80 11 00 00 [23:40:51]Write to MH i2c: E2 08 00 D4 16 80 11 00 00 00 00 00 00 64 [23:40:51]Write i2c OK [23:40:51]MH_I2C_Read... [23:40:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:40:51]Read from MH i2c: E2 [23:40:51]MH_I2C_Read... [23:40:51]Read from MH i2c: E2 17 00 [23:40:51]MH_I2C_Read... [23:40:51]Read from MH i2c: E2 17 00 D4 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 B7 [23:40:51]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:51]wFMCommunicate OK [23:40:51]CreateOFDProtocolMessage done [23:40:51]OFDSenderStorePacket 104261 [23:40:51]StoreOFDPacket docnum=104261 [23:40: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 10 01 00 00 B7 CE 08 01 38 DF 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 88 0E 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 EF 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 0B 00 00 00 00 07 04 06 00 DC 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 83 0F 76 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 45 97 01 00 35 04 06 00 4E 1A 46 57 54 86 15 3D 0D 70 EE 2D 1C D2 [23:40:51]CheckFolder [23:40:51]dirname=/storage/ofd_packets [23:40:51]CheckFolder done [23:40:51]ProducePacketName [23:40:51]name=ofd_packets/00104261 [23:40:51]NVStorageSaveData ofd_packets/00104261 [23:40:51]File name is /storage/ofd_packets/00104261 [23:40:51]Write 302 bytes [23:40:51]NVStorageSaveData done [23:40:51]OFDSenderStorePacket done [23:40:51]KKMCreateOFDPacket done [23:40:51]NVStorageSaveData kkm_last_timestamp [23:40:51]File name is /storage/kkm_last_timestamp [23:40:51]Write 4 bytes [23:40:51]NVStorageSaveData done [23:40:51]ExternCall_PrintAddStr [23:40:51]wPrintStart [23:40:51]Write to MH i2c: 01 00 00 D5 16 EB [23:40:51]Write i2c OK [23:40:51]MH_I2C_Read... [23:40:51]Read from MH i2c: 01 [23:40:51]MH_I2C_Read... [23:40:51]Read from MH i2c: 01 07 00 [23:40:51]MH_I2C_Read... [23:40:51]Read from MH i2c: 01 07 00 D5 16 00 00 00 00 00 FF 0F 00 [23:40:51]RasterBufferAndPrint [23:40:51]line Счет N : (1)673752 [23:40:51]line ИНН: 02508201610067 [23:40:51]line Контрольно-Кассовый Чек [23:40:51]line ПРОДАЖА [23:40:51]line ТРК (МРК, ГНК) : 11 [23:40:51]line Товар: 2710194210 [23:40:51]line ДТ(л)-К-5 [23:40:51]line 3.720 * 72.90 [23:40:51]line = 271.19 [23:40:51]line НДС 12% НСП 1% [23:40:51]line > о реализуемом товаре [23:40:51]line ОКРУГЛЕНИЕ: -0.19 [23:40:51]line ИТОГО: 271.00 [23:40:51]line Внесено: 271.00 [23:40:51]line СДАЧА: 0.00 [23:40:51]line НСП 1% : 2.40 [23:40:51]line НДС 12% : 28.80 [23:40:51]line Наличными: 271.00 [23:40:51]line Безнал.: 0.00 [23:40:51]line Место: АЗС № 120 "Партнер Нефть" [23:40:51]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [23:40:51]line СНО: Общий режим [23:40:51]line Чек 184 21.06.2024 23:40 [23:40:51]line Смена: 355 ФФД: 1.0 [23:40:51]line ЗНМ: 0300000164 [23:40:51]line РНМ: 0000000000092785 [23:40:51]line Версия ККМ: 001 [23:40:51]line ФМ: 0000000000875093 [23:40:51]line ФД: 104261 [23:40:51]line ФПД: 85874756244614 [23:40:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T234051&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104261&fm=85874756244614&tin=02508201610067®Number=0000000000092785&sum=27100 [23:40:51]OFD Sender: Processing packet 104261 [packets to send 17, broken 16] [23:40:51]ProducePacketName [23:40:51]name=ofd_packets/00104261 [23:40:51]OFD Sender: To server: pG, [23:40:51]CommunicateWithHost lk.salyk.kg:30040 [23:40:51]ConnectInit lk.salyk.kg [23:40:51]written 0, free lines is 4095 [23:40:51]Connected sock=9 [23:40: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 B7 CE 08 01 38 DF 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 88 0E 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 EF 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 0B 00 00 00 00 07 04 06 00 DC 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 83 0F 76 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 45 97 01 00 35 04 06 00 4E 1A 46 57 54 86 15 3D 0D 70 EE 2D 1C D2 [23:40: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 AB 43 47 00 E7 77 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 45 97 01 00 F4 03 04 00 04 B6 75 66 B6 04 01 00 00 A2 92 EC 2D A8 FC 15 92 [23:40:52]CommunicateWithHost err = 0 [23:40:52]CheckOFDResponse [23:40:52]1017 (14) - 77093643461234 [23:40:52]1041 (16) - 0000000000875093 [23:40:52]1040 (4) - 104261 [23:40:52]1012 (4) - 21.06.2024 17:19 [23:40:52]1206 (1) - 0 [23:40:52]OFD Sender: Remove packet 104261 [23:40:52]ProducePacketName [23:40:52]name=ofd_packets/00104261 [23:40:52]NVStorageDeleteData [23:40:52]Write to MH i2c: 01 00 00 00 17 17 [23:40:52]Write i2c OK [23:40:52]MH_I2C_Read... [23:40:52]Read from MH i2c: 01 [23:40:52]MH_I2C_Read... [23:40:52]Read from MH i2c: 01 07 00 [23:40:52]MH_I2C_Read... [23:40:52]Read from MH i2c: 01 07 00 00 17 00 00 00 00 00 CE 0C F8 [23:40:52]RasterBufferAndPrint [23:40:52]line [23:40:52]line [23:40:52]line [23:40:52]line [23:40:52]line [23:40:52]written 0, free lines is 3285 [23:40:52]MH_Cut [23:40:52]Write to MH i2c: D1 01 00 07 17 01 F0 [23:40:52]Write i2c OK [23:40:52]MH_I2C_Read... [23:40:52]Read from MH i2c: D1 [23:40:52]MH_I2C_Read... [23:40:52]Read from MH i2c: D1 01 00 [23:40:52]MH_I2C_Read... [23:40:52]Read from MH i2c: D1 01 00 07 17 00 EF [23:40:52]Write to MH i2c: 01 00 00 08 17 1F [23:40:52]Write i2c OK [23:40:52]MH_I2C_Read... [23:40:52]OFD Sender: No OFD packet to send [23:40:52]*** Cut start [23:40:52]*** Partial cut [23:40:52]*** CUTSNS_PIN = 1 [23:40:53]*** CUTSNS_PIN = 0 [23:40:53]*** Brake cut motor [23:40:53]Read from MH i2c: 01 [23:40:53]MH_I2C_Read... [23:40:53]*** Stop cut motor [23:40:53]*** Cut end [23:40:53]Read from MH i2c: 01 07 00 [23:40:53]MH_I2C_Read... [23:40:53]Read from MH i2c: 01 07 00 08 17 00 00 00 00 00 FF 0F 34 [23:40:53]process_action close_receipt done [23:40:53]requested_data is exist [23:40:53]produce_requested_data [23:40:53]requested_item fm.sn is exist - process it [23:40:53]wFMCommunicate request_size=4 [23:40:53]MH_SAM_APDU [23:40:53]CAPDU: 80 11 00 00 [23:40:53]Write to MH i2c: E2 08 00 09 17 80 11 00 00 00 00 00 00 9A [23:40:53]Write i2c OK [23:40:53]MH_I2C_Read... [23:40:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:40:53]Read from MH i2c: E2 [23:40:53]MH_I2C_Read... [23:40:53]Read from MH i2c: E2 17 00 [23:40:53]MH_I2C_Read... [23:40:53]Read from MH i2c: E2 17 00 09 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 ED [23:40:53]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:53]wFMCommunicate OK [23:40:53]requested_item fd.num is exist - process it [23:40:53]SAM_PROTO_GetFieldsCounters [23:40:53]wFMCommunicate request_size=4 [23:40:53]MH_SAM_APDU [23:40:53]CAPDU: 80 13 00 00 [23:40:53]Write to MH i2c: E2 08 00 0A 17 80 13 00 00 00 00 00 00 9D [23:40:53]Write i2c OK [23:40:53]MH_I2C_Read... [23:40:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:40:53]Read from MH i2c: E2 [23:40:53]MH_I2C_Read... [23:40:53]Read from MH i2c: E2 62 00 [23:40:53]MH_I2C_Read... [23:40:53]Read from MH i2c: E2 62 00 0A 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 45 97 01 00 0E 04 04 00 63 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 2D [23:40: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 45 97 01 00 0E 04 04 00 63 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 [23:40:53]wFMCommunicate OK [23:40:53]SAM_PROTO_GetFieldsCounters done [23:40:53]requested_item shift.num is exist - process it [23:40:53]requested_item shift.opened is exist - process it [23:40:53]req_shift_opened [23:40:53]FM_GetShiftState [23:40:53]SAM_PROTO_GetShiftState [23:40:53]wFMCommunicate request_size=4 [23:40:53]MH_SAM_APDU [23:40:53]CAPDU: 80 13 01 00 [23:40:53]Write to MH i2c: E2 08 00 0B 17 80 13 01 00 00 00 00 00 9F [23:40:53]Write i2c OK [23:40:53]MH_I2C_Read... [23:40:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:40:53]Read from MH i2c: E2 [23:40:53]MH_I2C_Read... [23:40:53]Read from MH i2c: E2 0E 00 [23:40:53]MH_I2C_Read... [23:40:53]Read from MH i2c: E2 0E 00 0B 17 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 B2 [23:40:53]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [23:40:53]wFMCommunicate OK [23:40:53]SAM_PROTO_GetShiftState done [23:40:53]FM_GetShiftState done [23:40:53]req_shift_opened done [23:40:53]requested_item shift.open_date is exist - process it [23:40:53]req_shift_open_date [23:40:53]req_shift_open_date done [23:40:53]produce_requested_data done [23:40:53]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104261,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [23:40:53]process_action_free close_receipt [23:40:53]json_value_free [23:40:53]json_value_free done [23:40:53]process_json_proto returns [23:40:53]Send response to host [23:40:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104261,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [23:40:53]free response buf [23:40:53]execute_script done [23:40:53]execute_script returns [23:40:53]free content buf [23:40:53]Sock 7.Close socket [23:40:53]Sock 7.Thread stoped [23:40:55]accept exits with 10 [23:40:55]New connection [23:40:55]New thread 3067473252 created [23:40:55]Thread 3067616612 joined [23:40:55]Waiting for new connection... [23:40:55] Sock 10.Parse request [23:40:55]Sock 10.Check first char [23:40:55]Sock 10.First char is OK [23:40:55]request: POST /json_proto HTTP/1.0 [23:40:55]Method: POST [23:40:55]URL: /json_proto [23:40:55]Method is POST - this is cgi request [23:40:55]url: /json_proto [23:40:55]query_string will be loaded in cgi processing [23:40:55]execute_cgi json_proto POST (null) [23:40:55]execute_cgi path=json_proto method=POST [23:40:55]POST find Content-Length [23:40:55]Host: 172.17.38.133:8080 [23:40:55]Content-Length: 739 [23:40:55]Content-Type: application/json [23:40:55] [23:40:55]POST finish read [23:40:55]Found Content-Length = 739 [23:40:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 104261, "base_FM": "0000000000875093", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673752", "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" : 3.720, "sum" : 271.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 271.00, "total" : 271.00, "payments": [ { "type": 0, "sum" : 271.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:40:55]execute_script... [23:40:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 104261, "base_FM": "0000000000875093", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673752", "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" : 3.720, "sum" : 271.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 271.00, "total" : 271.00, "payments": [ { "type": 0, "sum" : 271.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:40:55]POST & json_proto [23:40:55]process_json_proto [23:40:55]json parsed OK: [23:40:55]protocol is kg_v1.0 [23:40:55]action value=close_receipt [23:40:55]process_action close_receipt [23:40:55]cmd_close_receipt [23:40:55]MH_GetDate [23:40:55]Write to MH i2c: F0 00 00 0C 17 12 [23:40:55]Write i2c OK [23:40:55]MH_I2C_Read... [23:40:55]Read from MH i2c: F0 [23:40:55]MH_I2C_Read... [23:40:55]Read from MH i2c: F0 09 00 [23:40:55]MH_I2C_Read... [23:40:55]Read from MH i2c: F0 09 00 0C 17 00 89 0F 76 66 BD 8F 7C 64 BB [23:40:55]GetLastDocTimeStamp 1719013251 [23:40:55]current date 1719013257 [23:40:55]FM_GetShiftState [23:40:55]SAM_PROTO_GetShiftState [23:40:55]wFMCommunicate request_size=4 [23:40:55]MH_SAM_APDU [23:40:55]CAPDU: 80 13 01 00 [23:40:55]Write to MH i2c: E2 08 00 0D 17 80 13 01 00 00 00 00 00 A1 [23:40:55]Write i2c OK [23:40:55]MH_I2C_Read... [23:40:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:40:55]Read from MH i2c: E2 [23:40:55]MH_I2C_Read... [23:40:55]Read from MH i2c: E2 0E 00 [23:40:55]MH_I2C_Read... [23:40:55]Read from MH i2c: E2 0E 00 0D 17 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 B4 [23:40:55]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [23:40:55]wFMCommunicate OK [23:40:55]SAM_PROTO_GetShiftState done [23:40:55]FM_GetShiftState done [23:40:55]opened in 1718929509 [23:40:55]opened+sec_in_day 1719015909 [23:40:55]quantity*price = 27118 [23:40:55]sum+1 = 27120 [23:40:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 271.00 НСП 1% : 2.40 НДС 12% : 28.80 Наличными: 271.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 185 21.06.2024 23:40 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФД осн.: 104261 ФМ осн.: 0000000000875093 ФМ: 0000000000875093 ФД: 104262 ФПД: 87404909832196 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T234057&type=2&operation_type=1&fn_number=0000000000875093&fd_number=104262&fm=87404909832196&tin=02508201610067®Number=0000000000092785&sum=27100 [23:40:57]StoreToDocumentArchive [23:40:57]shift 355 fd 104262 [23:40:57]save to /storage/0355/doc_00104262 [23:40:57]save last doc name /storage/0355/doc_00104262 to /storage/kkm_last_doc_name [23:40:57]save OK [23:40:57]Clear old archive folders... [23:40:57]ProcessDocumentItem done err = 0, tmpTLVsize=280 [23:40:57]tlvbuf is 006ECC20 [23:40:57]SAM_PROTO_ClearQueue [23:40:57]wFMCommunicate request_size=4 [23:40:57]MH_SAM_APDU [23:40:57]CAPDU: 80 09 00 00 [23:40:57]Write to MH i2c: E2 08 00 1C 17 80 09 00 00 00 00 00 00 A5 [23:40:57]Write i2c OK [23:40:57]MH_I2C_Read... [23:40:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:40:57]Read from MH i2c: E2 [23:40:57]MH_I2C_Read... [23:40:57]Read from MH i2c: E2 03 00 [23:40:57]MH_I2C_Read... [23:40:57]Read from MH i2c: E2 03 00 1C 17 00 90 00 A7 [23:40:57]RAPDU: 90 00 [23:40:57]wFMCommunicate OK [23:40:57]SAM_PROTO_ClearQueue done [23:40:57]KKMCreateOFDPacket [23:40:57]OFDProtocolAddRootSTLVToBuf [23:40:57]FM_MakeSignedData [23:40:57]FM_MakeSignedData [23:40:57]SAM_PROTO_SignData [23:40:57]wFMCommunicate request_size=4 [23:40:57]MH_SAM_APDU [23:40:57]CAPDU: 80 0D 01 02 [23:40:57]Write to MH i2c: E2 08 00 1D 17 80 0D 01 02 00 00 00 00 AD [23:40:57]Write i2c OK [23:40:57]MH_I2C_Read... [23:40:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:40:57]Read from MH i2c: E2 [23:40:57]MH_I2C_Read... [23:40:57]Read from MH i2c: E2 03 00 [23:40:57]MH_I2C_Read... [23:40:57]Read from MH i2c: E2 03 00 1D 17 00 90 00 A8 [23:40:57]RAPDU: 90 00 [23:40:57]wFMCommunicate OK [23:40:57]wFMCommunicate request_size=255 [23:40:57]MH_SAM_APDU [23:40:57]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 88 0E 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 EF 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 0B 00 00 00 00 07 04 06 00 DC 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 89 0F 76 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 27 04 04 00 45 97 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 [23:40:57]Write to MH i2c: E2 02 01 1E 17 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 88 0E 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 EF 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 0B 00 00 00 00 07 04 06 00 DC 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 89 0F 76 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 27 04 04 00 45 97 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 E1 [23:40:57]Write i2c OK [23:40:57]MH_I2C_Read... [23:40:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:40:57]Read from MH i2c: E2 [23:40:57]MH_I2C_Read... [23:40:57]Read from MH i2c: E2 03 00 [23:40:57]MH_I2C_Read... [23:40:57]Read from MH i2c: E2 03 00 1E 17 00 90 00 A9 [23:40:57]RAPDU: 90 00 [23:40:57]wFMCommunicate OK [23:40:57]wFMCommunicate request_size=39 [23:40:57]MH_SAM_APDU [23:40:57]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 46 97 01 00 35 04 06 00 4F 7E 8A 9A 28 04 [23:40:57]Write to MH i2c: E2 2A 00 1F 17 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 46 97 01 00 35 04 06 00 4F 7E 8A 9A 28 04 00 00 66 [23:40:57]Write i2c OK [23:40:57]MH_I2C_Read... [23:40:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:40:57]Read from MH i2c: E2 [23:40:57]MH_I2C_Read... [23:40:57]Read from MH i2c: E2 03 00 [23:40:57]MH_I2C_Read... [23:40:57]Read from MH i2c: E2 03 00 1F 17 00 90 00 AA [23:40:57]RAPDU: 90 00 [23:40:57]wFMCommunicate OK [23:40:57]wFMCommunicate request_size=4 [23:40:57]MH_SAM_APDU [23:40:57]CAPDU: 80 0D 03 02 [23:40:57]Write to MH i2c: E2 08 00 20 17 80 0D 03 02 00 00 00 00 B2 [23:40:57]Write i2c OK [23:40:57]MH_I2C_Read... [23:40:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:40:57]Read from MH i2c: E2 [23:40:57]MH_I2C_Read... [23:40:57]Read from MH i2c: E2 0B 00 [23:40:57]MH_I2C_Read... [23:40:57]Read from MH i2c: E2 0B 00 20 17 00 83 41 9E BC 30 04 2F C2 90 00 F6 [23:40:57]RAPDU: 83 41 9E BC 30 04 2F C2 90 00 [23:40:57]wFMCommunicate OK [23:40:57]SAM_PROTO_SignData done [23:40:57]FM_MakeSignedData done [23:40:57]CreateOFDProtocolMessage [23:40:57]wFMCommunicate request_size=4 [23:40:57]MH_SAM_APDU [23:40:57]CAPDU: 80 11 00 00 [23:40:57]Write to MH i2c: E2 08 00 21 17 80 11 00 00 00 00 00 00 B2 [23:40:57]Write i2c OK [23:40:57]MH_I2C_Read... [23:40:57]OFD Sender: No OFD packet to send [23:40:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:40:57]Read from MH i2c: E2 [23:40:57]MH_I2C_Read... [23:40:57]Read from MH i2c: E2 17 00 [23:40:57]MH_I2C_Read... [23:40:57]Read from MH i2c: E2 17 00 21 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 05 [23:40:57]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:57]wFMCommunicate OK [23:40:57]CreateOFDProtocolMessage done [23:40:57]OFDSenderStorePacket 104262 [23:40:57]StoreOFDPacket docnum=104262 [23:40: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 2C 01 00 00 A1 F0 24 01 E5 2E 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 88 0E 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 EF 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 0B 00 00 00 00 07 04 06 00 DC 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 89 0F 76 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 27 04 04 00 45 97 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 46 97 01 00 35 04 06 00 4F 7E 8A 9A 28 04 83 41 9E BC 30 04 2F C2 [23:40:57]CheckFolder [23:40:57]dirname=/storage/ofd_packets [23:40:57]CheckFolder done [23:40:57]ProducePacketName [23:40:57]name=ofd_packets/00104262 [23:40:57]NVStorageSaveData ofd_packets/00104262 [23:40:57]File name is /storage/ofd_packets/00104262 [23:40:57]Write 330 bytes [23:40:57]NVStorageSaveData done [23:40:57]OFDSenderStorePacket done [23:40:57]KKMCreateOFDPacket done [23:40:57]NVStorageSaveData kkm_last_timestamp [23:40:57]File name is /storage/kkm_last_timestamp [23:40:57]Write 4 bytes [23:40:57]NVStorageSaveData done [23:40:57]ExternCall_PrintAddStr [23:40:57]wPrintStart [23:40:57]Write to MH i2c: 01 00 00 22 17 39 [23:40:57]Write i2c OK [23:40:57]MH_I2C_Read... [23:40:57]Read from MH i2c: 01 [23:40:57]MH_I2C_Read... [23:40:57]Read from MH i2c: 01 07 00 [23:40:57]MH_I2C_Read... [23:40:57]Read from MH i2c: 01 07 00 22 17 00 00 00 00 00 FF 0F 4E [23:40:57]RasterBufferAndPrint [23:40:57]line Счет N : (1)673752 [23:40:57]line ИНН: 02508201610067 [23:40:57]line Контрольно-Кассовый Чек [23:40:57]line ВОЗВРАТ ПРОДАЖИ [23:40:57]line ТРК (МРК, ГНК) : 11 [23:40:57]line Товар: 2710194210 [23:40:57]line ДТ(л)-К-5 [23:40:57]line 3.720 * 72.90 [23:40:57]line = 271.19 [23:40:57]line НДС 12% НСП 1% [23:40:57]line > о реализуемом товаре [23:40:57]line ОКРУГЛЕНИЕ: -0.19 [23:40:57]line ИТОГО: 271.00 [23:40:57]line НСП 1% : 2.40 [23:40:57]line НДС 12% : 28.80 [23:40:57]line Наличными: 271.00 [23:40:57]line Безнал.: 0.00 [23:40:57]line Место: АЗС № 120 "Партнер Нефть" [23:40:57]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [23:40:57]line СНО: Общий режим [23:40:57]line Чек 185 21.06.2024 23:40 [23:40:57]line Смена: 355 ФФД: 1.0 [23:40:57]line ЗНМ: 0300000164 [23:40:57]line РНМ: 0000000000092785 [23:40:57]line Версия ККМ: 001 [23:40:57]line ФД осн.: 104261 [23:40:57]line ФМ осн.: 0000000000875093 [23:40:57]line ФМ: 0000000000875093 [23:40:57]line ФД: 104262 [23:40:57]line ФПД: 87404909832196 [23:40:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T234057&type=2&operation_type=1&fn_number=0000000000875093&fd_number=104262&fm=87404909832196&tin=02508201610067®Number=0000000000092785&sum=27100 [23:40:57]written 0, free lines is 4095 [23:40:57]OFD Sender: Processing packet 104262 [packets to send 17, broken 16] [23:40:57]ProducePacketName [23:40:57]name=ofd_packets/00104262 [23:40:57]OFD Sender: To server: pG, [23:40:57]CommunicateWithHost lk.salyk.kg:30040 [23:40:57]ConnectInit lk.salyk.kg [23:40:57]Connected sock=9 [23:40: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 2C 01 00 00 A1 F0 24 01 E5 2E 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 88 0E 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 EF 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 0B 00 00 00 00 07 04 06 00 DC 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 89 0F 76 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 27 04 04 00 45 97 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 46 97 01 00 35 04 06 00 4F 7E 8A 9A 28 04 83 41 9E BC 30 04 2F C2 [23:40: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 C8 E3 47 00 96 EA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 46 97 01 00 F4 03 04 00 0A B6 75 66 B6 04 01 00 00 81 66 4A 3B F3 EB EB 8E [23:40:58]CommunicateWithHost err = 0 [23:40:58]CheckOFDResponse [23:40:58]1017 (14) - 77093643461234 [23:40:58]1041 (16) - 0000000000875093 [23:40:58]1040 (4) - 104262 [23:40:58]1012 (4) - 21.06.2024 17:19 [23:40:58]1206 (1) - 0 [23:40:58]OFD Sender: Remove packet 104262 [23:40:58]ProducePacketName [23:40:58]name=ofd_packets/00104262 [23:40:58]NVStorageDeleteData [23:40:58]Write to MH i2c: 01 00 00 4D 17 64 [23:40:58]Write i2c OK [23:40:58]MH_I2C_Read... [23:40:58]Read from MH i2c: 01 [23:40:58]MH_I2C_Read... [23:40:58]Read from MH i2c: 01 07 00 [23:40:58]MH_I2C_Read... [23:40:58]Read from MH i2c: 01 07 00 4D 17 00 00 00 00 00 EF 0C 66 [23:40:58]RasterBufferAndPrint [23:40:58]line [23:40:58]line [23:40:58]line [23:40:58]line [23:40:58]line [23:40:58]written 0, free lines is 3325 [23:40:58]MH_Cut [23:40:58]Write to MH i2c: D1 01 00 54 17 01 3D [23:40:58]Write i2c OK [23:40:58]MH_I2C_Read... [23:40:58]Read from MH i2c: D1 [23:40:58]MH_I2C_Read... [23:40:58]Read from MH i2c: D1 01 00 [23:40:58]MH_I2C_Read... [23:40:58]Read from MH i2c: D1 01 00 54 17 00 3C [23:40:58]Write to MH i2c: 01 00 00 55 17 6C [23:40:58]Write i2c OK [23:40:58]MH_I2C_Read... [23:40:58]OFD Sender: No OFD packet to send [23:40:59]*** Cut start [23:40:59]*** Partial cut [23:40:59]*** CUTSNS_PIN = 1 [23:40:59]*** CUTSNS_PIN = 0 [23:40:59]*** Brake cut motor [23:40:59]Read from MH i2c: 01 [23:40:59]MH_I2C_Read... [23:40:59]*** Stop cut motor [23:40:59]*** Cut end [23:40:59]Read from MH i2c: 01 07 00 [23:40:59]MH_I2C_Read... [23:40:59]Read from MH i2c: 01 07 00 55 17 00 00 00 00 00 FF 0F 81 [23:40:59]process_action close_receipt done [23:40:59]requested_data is exist [23:40:59]produce_requested_data [23:40:59]requested_item fm.sn is exist - process it [23:40:59]wFMCommunicate request_size=4 [23:40:59]MH_SAM_APDU [23:40:59]CAPDU: 80 11 00 00 [23:40:59]Write to MH i2c: E2 08 00 56 17 80 11 00 00 00 00 00 00 E7 [23:40:59]Write i2c OK [23:40:59]MH_I2C_Read... [23:40:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:40:59]Read from MH i2c: E2 [23:40:59]MH_I2C_Read... [23:40:59]Read from MH i2c: E2 17 00 [23:40:59]MH_I2C_Read... [23:40:59]Read from MH i2c: E2 17 00 56 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 3A [23:40:59]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:59]wFMCommunicate OK [23:40:59]requested_item fd.num is exist - process it [23:40:59]SAM_PROTO_GetFieldsCounters [23:40:59]wFMCommunicate request_size=4 [23:40:59]MH_SAM_APDU [23:40:59]CAPDU: 80 13 00 00 [23:40:59]Write to MH i2c: E2 08 00 57 17 80 13 00 00 00 00 00 00 EA [23:40:59]Write i2c OK [23:40:59]MH_I2C_Read... [23:40:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:40:59]Read from MH i2c: E2 [23:40:59]MH_I2C_Read... [23:40:59]Read from MH i2c: E2 62 00 [23:40:59]MH_I2C_Read... [23:40:59]Read from MH i2c: E2 62 00 57 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 46 97 01 00 0E 04 04 00 63 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 7E [23:40: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 46 97 01 00 0E 04 04 00 63 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 [23:40:59]wFMCommunicate OK [23:40:59]SAM_PROTO_GetFieldsCounters done [23:40:59]requested_item shift.num is exist - process it [23:40:59]requested_item shift.opened is exist - process it [23:40:59]req_shift_opened [23:40:59]FM_GetShiftState [23:40:59]SAM_PROTO_GetShiftState [23:40:59]wFMCommunicate request_size=4 [23:40:59]MH_SAM_APDU [23:40:59]CAPDU: 80 13 01 00 [23:40:59]Write to MH i2c: E2 08 00 58 17 80 13 01 00 00 00 00 00 EC [23:40:59]Write i2c OK [23:40:59]MH_I2C_Read... [23:40:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:40:59]Read from MH i2c: E2 [23:40:59]MH_I2C_Read... [23:40:59]Read from MH i2c: E2 0E 00 [23:40:59]MH_I2C_Read... [23:40:59]Read from MH i2c: E2 0E 00 58 17 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 FF [23:40:59]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [23:40:59]wFMCommunicate OK [23:40:59]SAM_PROTO_GetShiftState done [23:40:59]FM_GetShiftState done [23:40:59]req_shift_opened done [23:40:59]requested_item shift.open_date is exist - process it [23:40:59]req_shift_open_date [23:40:59]req_shift_open_date done [23:40:59]produce_requested_data done [23:40:59]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104262,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [23:40:59]process_action_free close_receipt [23:40:59]json_value_free [23:40:59]json_value_free done [23:40:59]process_json_proto returns [23:40:59]Send response to host [23:40:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104262,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [23:40:59]free response buf [23:40:59]execute_script done [23:40:59]execute_script returns [23:40:59]free content buf [23:40:59]Sock 10.Close socket [23:40:59]Sock 10.Thread stoped [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:51]accept exits with 7 [23:41:51]New connection [23:41:51]New thread 3067616612 created [23:41:51]Thread 3067473252 joined [23:41:51]Waiting for new connection... [23:41:51] Sock 7.Parse request [23:41:51]Sock 7.Check first char [23:41:51]Sock 7.First char is OK [23:41:51]request: POST /json_proto HTTP/1.0 [23:41:51]Method: POST [23:41:51]URL: /json_proto [23:41:51]Method is POST - this is cgi request [23:41:51]url: /json_proto [23:41:51]query_string will be loaded in cgi processing [23:41:51]execute_cgi json_proto POST (null) [23:41:51]execute_cgi path=json_proto method=POST [23:41:51]POST find Content-Length [23:41:51]Host: 172.17.38.133:8080 [23:41:51]Content-Length: 682 [23:41:51]Content-Type: application/json [23:41:51] [23:41:51]POST finish read [23:41:51]Found Content-Length = 682 [23:41:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673753", "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.720, "sum" : 271.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 271.00, "total" : 271.00, "payments": [ { "type": 0, "sum" : 271.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:41:51]execute_script... [23: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)673753", "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.720, "sum" : 271.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 271.00, "total" : 271.00, "payments": [ { "type": 0, "sum" : 271.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:41:51]POST & json_proto [23:41:51]process_json_proto [23:41:51]json parsed OK: [23:41:51]protocol is kg_v1.0 [23:41:51]action value=close_receipt [23:41:51]process_action close_receipt [23:41:51]cmd_close_receipt [23:41:51]MH_GetDate [23:41:51]Write to MH i2c: F0 00 00 59 17 5F [23:41:51]Write i2c OK [23:41:51]MH_I2C_Read... [23:41:51]Read from MH i2c: F0 [23:41:51]MH_I2C_Read... [23:41:51]Read from MH i2c: F0 09 00 [23:41:51]MH_I2C_Read... [23:41:51]Read from MH i2c: F0 09 00 59 17 00 C1 0F 76 66 BD 8F 7C 64 40 [23:41:51]GetLastDocTimeStamp 1719013257 [23:41:51]current date 1719013313 [23:41:51]FM_GetShiftState [23:41:51]SAM_PROTO_GetShiftState [23:41:51]wFMCommunicate request_size=4 [23:41:51]MH_SAM_APDU [23:41:51]CAPDU: 80 13 01 00 [23:41:51]Write to MH i2c: E2 08 00 5A 17 80 13 01 00 00 00 00 00 EE [23:41:51]Write i2c OK [23:41:51]MH_I2C_Read... [23:41:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:41:51]Read from MH i2c: E2 [23:41:51]MH_I2C_Read... [23:41:51]Read from MH i2c: E2 0E 00 [23:41:51]MH_I2C_Read... [23:41:51]Read from MH i2c: E2 0E 00 5A 17 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 01 [23:41:51]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [23:41:51]wFMCommunicate OK [23:41:51]SAM_PROTO_GetShiftState done [23:41:51]FM_GetShiftState done [23:41:51]opened in 1718929509 [23:41:51]opened+sec_in_day 1719015909 [23:41:51]quantity*price = 27118 [23:41:51]sum+1 = 27120 [23:41:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 271.00 Внесено: 271.00 СДАЧА: 0.00 НСП 1% : 2.40 НДС 12% : 28.80 Наличными: 271.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 186 21.06.2024 23:41 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104263 ФПД: 77430153388451 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T234153&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104263&fm=77430153388451&tin=02508201610067®Number=0000000000092785&sum=27100 [23:41:52]StoreToDocumentArchive [23:41:52]shift 355 fd 104263 [23:41:52]save to /storage/0355/doc_00104263 [23:41:52]save last doc name /storage/0355/doc_00104263 to /storage/kkm_last_doc_name [23:41:52]save OK [23:41:52]Clear old archive folders... [23:41:52]ProcessDocumentItem done err = 0, tmpTLVsize=252 [23:41:52]tlvbuf is B6F4AB80 [23:41:52]SAM_PROTO_ClearQueue [23:41:52]wFMCommunicate request_size=4 [23:41:52]MH_SAM_APDU [23:41:52]CAPDU: 80 09 00 00 [23:41:52]Write to MH i2c: E2 08 00 67 17 80 09 00 00 00 00 00 00 F0 [23:41:52]Write i2c OK [23:41:52]MH_I2C_Read... [23:41:52]Read from MH i2c: E2 [23:41:52]MH_I2C_Read... [23:41:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:41:52]Read from MH i2c: E2 03 00 [23:41:52]MH_I2C_Read... [23:41:52]Read from MH i2c: E2 03 00 67 17 00 90 00 F2 [23:41:52]RAPDU: 90 00 [23:41:52]wFMCommunicate OK [23:41:52]SAM_PROTO_ClearQueue done [23:41:52]KKMCreateOFDPacket [23:41:52]OFDProtocolAddRootSTLVToBuf [23:41:52]FM_MakeSignedData [23:41:52]FM_MakeSignedData [23:41:52]SAM_PROTO_SignData [23:41:52]wFMCommunicate request_size=4 [23:41:52]MH_SAM_APDU [23:41:52]CAPDU: 80 0D 01 02 [23:41:52]Write to MH i2c: E2 08 00 68 17 80 0D 01 02 00 00 00 00 F8 [23:41:52]Write i2c OK [23:41:52]MH_I2C_Read... [23:41:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:41:52]Read from MH i2c: E2 [23:41:52]MH_I2C_Read... [23:41:52]Read from MH i2c: E2 03 00 [23:41:52]MH_I2C_Read... [23:41:52]Read from MH i2c: E2 03 00 68 17 00 90 00 F3 [23:41:52]RAPDU: 90 00 [23:41:52]wFMCommunicate OK [23:41:52]wFMCommunicate request_size=255 [23:41:52]MH_SAM_APDU [23:41:52]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 88 0E 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 EF 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 0B 00 00 00 00 07 04 06 00 DC 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 C1 0F 76 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 47 97 01 00 35 04 06 00 [23:41:52]Write to MH i2c: E2 02 01 69 17 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 88 0E 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 EF 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 0B 00 00 00 00 07 04 06 00 DC 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 C1 0F 76 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 47 97 01 00 35 04 06 00 00 00 35 [23:41:52]Write i2c OK [23:41:52]MH_I2C_Read... [23:41:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:41:52]Read from MH i2c: E2 [23:41:52]MH_I2C_Read... [23:41:52]Read from MH i2c: E2 03 00 [23:41:52]MH_I2C_Read... [23:41:52]Read from MH i2c: E2 03 00 69 17 00 90 00 F4 [23:41:52]RAPDU: 90 00 [23:41:52]wFMCommunicate OK [23:41:52]wFMCommunicate request_size=11 [23:41:52]MH_SAM_APDU [23:41:52]CAPDU: 80 0D 02 02 06 46 6C 1C C9 A1 A3 [23:41:52]Write to MH i2c: E2 0E 00 6A 17 80 0D 02 02 06 00 46 6C 1C C9 A1 A3 00 00 E2 [23:41:52]Write i2c OK [23:41:52]MH_I2C_Read... [23:41:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:41:52]Read from MH i2c: E2 [23:41:52]MH_I2C_Read... [23:41:52]Read from MH i2c: E2 03 00 [23:41:52]MH_I2C_Read... [23:41:52]Read from MH i2c: E2 03 00 6A 17 00 90 00 F5 [23:41:52]RAPDU: 90 00 [23:41:52]wFMCommunicate OK [23:41:52]wFMCommunicate request_size=4 [23:41:52]MH_SAM_APDU [23:41:52]CAPDU: 80 0D 03 02 [23:41:52]Write to MH i2c: E2 08 00 6B 17 80 0D 03 02 00 00 00 00 FD [23:41:52]Write i2c OK [23:41:52]MH_I2C_Read... [23:41:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:41:52]Read from MH i2c: E2 [23:41:52]MH_I2C_Read... [23:41:52]Read from MH i2c: E2 0B 00 [23:41:52]MH_I2C_Read... [23:41:52]Read from MH i2c: E2 0B 00 6B 17 00 5F DD F0 E2 53 01 E1 12 90 00 53 [23:41:52]RAPDU: 5F DD F0 E2 53 01 E1 12 90 00 [23:41:52]wFMCommunicate OK [23:41:52]SAM_PROTO_SignData done [23:41:52]FM_MakeSignedData done [23:41:52]CreateOFDProtocolMessage [23:41:52]wFMCommunicate request_size=4 [23:41:52]MH_SAM_APDU [23:41:52]CAPDU: 80 11 00 00 [23:41:52]Write to MH i2c: E2 08 00 6C 17 80 11 00 00 00 00 00 00 FD [23:41:52]Write i2c OK [23:41:52]MH_I2C_Read... [23:41:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:41:52]Read from MH i2c: E2 [23:41:52]MH_I2C_Read... [23:41:52]Read from MH i2c: E2 17 00 [23:41:52]MH_I2C_Read... [23:41:52]Read from MH i2c: E2 17 00 6C 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 50 [23: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 [23:41:52]wFMCommunicate OK [23:41:52]CreateOFDProtocolMessage done [23:41:52]OFDSenderStorePacket 104263 [23:41:52]StoreOFDPacket docnum=104263 [23: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 10 01 00 00 CF 7A 08 01 81 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 88 0E 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 EF 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 0B 00 00 00 00 07 04 06 00 DC 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 C1 0F 76 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 47 97 01 00 35 04 06 00 46 6C 1C C9 A1 A3 5F DD F0 E2 53 01 E1 12 [23:41:52]CheckFolder [23:41:52]dirname=/storage/ofd_packets [23:41:52]CheckFolder done [23:41:52]ProducePacketName [23:41:52]name=ofd_packets/00104263 [23:41:52]NVStorageSaveData ofd_packets/00104263 [23:41:52]File name is /storage/ofd_packets/00104263 [23:41:52]Write 302 bytes [23:41:52]NVStorageSaveData done [23:41:52]OFDSenderStorePacket done [23:41:52]KKMCreateOFDPacket done [23:41:52]NVStorageSaveData kkm_last_timestamp [23:41:52]File name is /storage/kkm_last_timestamp [23:41:52]Write 4 bytes [23:41:52]NVStorageSaveData done [23:41:52]ExternCall_PrintAddStr [23:41:52]wPrintStart [23:41:52]Write to MH i2c: 01 00 00 6D 17 84 [23:41:52]Write i2c OK [23:41:52]MH_I2C_Read... [23:41:52]Read from MH i2c: 01 [23:41:52]MH_I2C_Read... [23:41:52]Read from MH i2c: 01 07 00 [23:41:52]MH_I2C_Read... [23:41:52]Read from MH i2c: 01 07 00 6D 17 00 00 00 00 00 FF 0F 99 [23:41:52]RasterBufferAndPrint [23:41:52]line Счет N : (1)673753 [23:41:52]line ИНН: 02508201610067 [23:41:52]line Контрольно-Кассовый Чек [23:41:52]line ПРОДАЖА [23:41:52]line ТРК (МРК, ГНК) : 21 [23:41:52]line Товар: 2710194210 [23:41:52]line ДТ(л)-К-5 [23:41:52]line 3.720 * 72.90 [23:41:52]line = 271.19 [23:41:52]line НДС 12% НСП 1% [23:41:52]line > о реализуемом товаре [23:41:52]line ОКРУГЛЕНИЕ: -0.19 [23:41:52]line ИТОГО: 271.00 [23:41:52]line Внесено: 271.00 [23:41:52]line СДАЧА: 0.00 [23:41:52]line НСП 1% : 2.40 [23:41:52]line НДС 12% : 28.80 [23:41:52]line Наличными: 271.00 [23:41:52]line Безнал.: 0.00 [23:41:52]line Место: АЗС № 120 "Партнер Нефть" [23:41:52]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [23:41:52]line СНО: Общий режим [23:41:52]line Чек 186 21.06.2024 23:41 [23:41:52]line Смена: 355 ФФД: 1.0 [23:41:52]line ЗНМ: 0300000164 [23:41:52]line РНМ: 0000000000092785 [23:41:52]line Версия ККМ: 001 [23:41:52]line ФМ: 0000000000875093 [23:41:52]line ФД: 104263 [23:41:52]line ФПД: 77430153388451 [23:41:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T234153&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104263&fm=77430153388451&tin=02508201610067®Number=0000000000092785&sum=27100 [23:41:53]OFD Sender: Processing packet 104263 [packets to send 17, broken 16] [23:41:53]ProducePacketName [23:41:53]name=ofd_packets/00104263 [23:41:53]OFD Sender: To server: pG, [23:41:53]CommunicateWithHost lk.salyk.kg:30040 [23:41:53]ConnectInit lk.salyk.kg [23:41:53]written 0, free lines is 4095 [23:41:53]Connected sock=10 [23: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 10 01 00 00 CF 7A 08 01 81 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 88 0E 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 EF 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 0B 00 00 00 00 07 04 06 00 DC 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 C1 0F 76 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 47 97 01 00 35 04 06 00 46 6C 1C C9 A1 A3 5F DD F0 E2 53 01 E1 12 [23: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 0E CD 47 00 34 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 47 97 01 00 F4 03 04 00 42 B6 75 66 B6 04 01 00 00 43 90 C4 6A A5 C8 81 5E [23:41:53]CommunicateWithHost err = 0 [23:41:53]CheckOFDResponse [23:41:53]1017 (14) - 77093643461234 [23:41:53]1041 (16) - 0000000000875093 [23:41:53]1040 (4) - 104263 [23:41:53]1012 (4) - 21.06.2024 17:20 [23:41:53]1206 (1) - 0 [23:41:53]OFD Sender: Remove packet 104263 [23:41:53]ProducePacketName [23:41:53]name=ofd_packets/00104263 [23:41:53]NVStorageDeleteData [23:41:53]Write to MH i2c: 01 00 00 98 17 AF [23:41:53]Write i2c OK [23:41:53]MH_I2C_Read... [23:41:53]Read from MH i2c: 01 [23:41:53]MH_I2C_Read... [23:41:53]Read from MH i2c: 01 07 00 [23:41:53]MH_I2C_Read... [23:41:53]Read from MH i2c: 01 07 00 98 17 00 00 00 00 00 D0 0C 92 [23:41:53]RasterBufferAndPrint [23:41:53]line [23:41:53]line [23:41:53]line [23:41:53]line [23:41:53]line [23:41:53]written 0, free lines is 3287 [23:41:53]MH_Cut [23:41:53]Write to MH i2c: D1 01 00 9F 17 01 88 [23:41:53]Write i2c OK [23:41:53]MH_I2C_Read... [23:41:53]Read from MH i2c: D1 [23:41:53]MH_I2C_Read... [23:41:53]Read from MH i2c: D1 01 00 [23:41:53]MH_I2C_Read... [23:41:53]Read from MH i2c: D1 01 00 9F 17 00 87 [23:41:53]Write to MH i2c: 01 00 00 A0 17 B7 [23:41:53]Write i2c OK [23:41:53]MH_I2C_Read... [23:41:54]OFD Sender: No OFD packet to send [23:41:54]*** Cut start [23:41:54]*** Partial cut [23:41:54]*** CUTSNS_PIN = 1 [23:41:54]*** CUTSNS_PIN = 0 [23:41:54]*** Brake cut motor [23:41:55]Read from MH i2c: 01 [23:41:55]MH_I2C_Read... [23:41:55]*** Stop cut motor [23:41:55]*** Cut end [23:41:55]Read from MH i2c: 01 07 00 [23:41:55]MH_I2C_Read... [23:41:55]Read from MH i2c: 01 07 00 A0 17 00 00 00 00 00 FF 0F CC [23:41:55]process_action close_receipt done [23:41:55]requested_data is exist [23:41:55]produce_requested_data [23:41:55]requested_item fm.sn is exist - process it [23:41:55]wFMCommunicate request_size=4 [23:41:55]MH_SAM_APDU [23:41:55]CAPDU: 80 11 00 00 [23:41:55]Write to MH i2c: E2 08 00 A1 17 80 11 00 00 00 00 00 00 32 [23:41:55]Write i2c OK [23:41:55]MH_I2C_Read... [23:41:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:41:55]Read from MH i2c: E2 [23:41:55]MH_I2C_Read... [23:41:55]Read from MH i2c: E2 17 00 [23:41:55]MH_I2C_Read... [23:41:55]Read from MH i2c: E2 17 00 A1 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 85 [23: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 [23:41:55]wFMCommunicate OK [23:41:55]requested_item fd.num is exist - process it [23:41:55]SAM_PROTO_GetFieldsCounters [23:41:55]wFMCommunicate request_size=4 [23:41:55]MH_SAM_APDU [23:41:55]CAPDU: 80 13 00 00 [23:41:55]Write to MH i2c: E2 08 00 A2 17 80 13 00 00 00 00 00 00 35 [23:41:55]Write i2c OK [23:41:55]MH_I2C_Read... [23:41:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:41:55]Read from MH i2c: E2 [23:41:55]MH_I2C_Read... [23:41:55]Read from MH i2c: E2 62 00 [23:41:55]MH_I2C_Read... [23:41:55]Read from MH i2c: E2 62 00 A2 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 47 97 01 00 0E 04 04 00 63 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 CD [23: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 47 97 01 00 0E 04 04 00 63 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 [23:41:55]wFMCommunicate OK [23:41:55]SAM_PROTO_GetFieldsCounters done [23:41:55]requested_item shift.num is exist - process it [23:41:55]requested_item shift.opened is exist - process it [23:41:55]req_shift_opened [23:41:55]FM_GetShiftState [23:41:55]SAM_PROTO_GetShiftState [23:41:55]wFMCommunicate request_size=4 [23:41:55]MH_SAM_APDU [23:41:55]CAPDU: 80 13 01 00 [23:41:55]Write to MH i2c: E2 08 00 A3 17 80 13 01 00 00 00 00 00 37 [23:41:55]Write i2c OK [23:41:55]MH_I2C_Read... [23:41:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:41:55]Read from MH i2c: E2 [23:41:55]MH_I2C_Read... [23:41:55]Read from MH i2c: E2 0E 00 [23:41:55]MH_I2C_Read... [23:41:55]Read from MH i2c: E2 0E 00 A3 17 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 4A [23:41:55]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [23:41:55]wFMCommunicate OK [23:41:55]SAM_PROTO_GetShiftState done [23:41:55]FM_GetShiftState done [23:41:55]req_shift_opened done [23:41:55]requested_item shift.open_date is exist - process it [23:41:55]req_shift_open_date [23:41:55]req_shift_open_date done [23:41:55]produce_requested_data done [23:41:55]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104263,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [23:41:55]process_action_free close_receipt [23:41:55]json_value_free [23:41:55]json_value_free done [23:41:55]process_json_proto returns [23:41:55]Send response to host [23:41:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104263,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [23:41:55]free response buf [23:41:55]execute_script done [23:41:55]execute_script returns [23:41:55]free content buf [23:41:55]Sock 7.Close socket [23:41:55]Sock 7.Thread stoped [23:41:59]OFD Sender: No OFD packet to send [23:42:04]OFD Sender: No OFD packet to send [23:42:09]OFD Sender: No OFD packet to send [23:42:14]OFD Sender: No OFD packet to send [23:42:19]OFD Sender: No OFD packet to send [23:42:24]OFD Sender: No OFD packet to send [23:42:29]OFD Sender: No OFD packet to send [23:42:34]OFD Sender: No OFD packet to send [23:42:39]OFD Sender: No OFD packet to send [23:42:44]OFD Sender: No OFD packet to send [23:42:49]OFD Sender: No OFD packet to send [23:42:54]OFD Sender: No OFD packet to send [23:42:59]OFD Sender: No OFD packet to send [23:43:04]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]accept exits with 9 [23:47:24]New connection [23:47:24]New thread 3067473252 created [23:47:24]Thread 3067616612 joined [23:47:24]Waiting for new connection... [23:47:24] Sock 9.Parse request [23:47:24]Sock 9.Check first char [23:47:24]Sock 9.First char is OK [23:47:24]request: POST /json_proto HTTP/1.0 [23:47:24]Method: POST [23:47:24]URL: /json_proto [23:47:24]Method is POST - this is cgi request [23:47:24]url: /json_proto [23:47:24]query_string will be loaded in cgi processing [23:47:24]execute_cgi json_proto POST (null) [23:47:24]execute_cgi path=json_proto method=POST [23:47:24]POST find Content-Length [23:47:24]Host: 172.17.38.133:8080 [23:47:24]Content-Length: 803 [23:47:24]Content-Type: application/json [23:47:24] [23:47:24]POST finish read [23:47:24]Found Content-Length = 803 [23:47:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673754", "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: 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" ] } } [23:47:24]execute_script... [23:47:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673754", "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: 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" ] } } [23:47:24]POST & json_proto [23:47:24]process_json_proto [23:47:24]json parsed OK: [23:47:24]protocol is kg_v1.0 [23:47:24]action value=close_receipt [23:47:24]process_action close_receipt [23:47:24]cmd_close_receipt [23:47:24]MH_GetDate [23:47:24]Write to MH i2c: F0 00 00 A4 17 AA [23:47:24]Write i2c OK [23:47:24]MH_I2C_Read... [23:47:24]Read from MH i2c: F0 [23:47:24]MH_I2C_Read... [23:47:24]Read from MH i2c: F0 09 00 [23:47:24]MH_I2C_Read... [23:47:24]Read from MH i2c: F0 09 00 A4 17 00 0E 11 76 66 BD 8F 7C 64 DA [23:47:24]GetLastDocTimeStamp 1719013313 [23:47:24]current date 1719013646 [23:47:24]FM_GetShiftState [23:47:24]SAM_PROTO_GetShiftState [23:47:24]wFMCommunicate request_size=4 [23:47:24]MH_SAM_APDU [23:47:24]CAPDU: 80 13 01 00 [23:47:24]Write to MH i2c: E2 08 00 A5 17 80 13 01 00 00 00 00 00 39 [23:47:24]Write i2c OK [23:47:24]MH_I2C_Read... [23:47:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:47:24]Read from MH i2c: E2 [23:47:24]MH_I2C_Read... [23:47:24]Read from MH i2c: E2 0E 00 [23:47:24]MH_I2C_Read... [23:47:24]Read from MH i2c: E2 0E 00 A5 17 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 4C [23:47:24]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [23:47:24]wFMCommunicate OK [23:47:24]SAM_PROTO_GetShiftState done [23:47:24]FM_GetShiftState done [23:47:24]opened in 1718929509 [23:47:24]opened+sec_in_day 1719015909 [23:47:24]quantity*price = 100064 [23:47:24]sum+1 = 100066 [23:47:24]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 СНО: Общий режим Чек 187 21.06.2024 23:47 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875093 ФД: 104264 ФПД: 34879008997917 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T234726&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104264&fm=34879008997917&tin=02508201610067®Number=0000000000092785&sum=100065 [23:47:25]StoreToDocumentArchive [23:47:25]shift 355 fd 104264 [23:47:25]save to /storage/0355/doc_00104264 [23:47:25]save last doc name /storage/0355/doc_00104264 to /storage/kkm_last_doc_name [23:47:25]save OK [23:47:25]Clear old archive folders... [23:47:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:47:25]tlvbuf is 006389D0 [23:47:25]SAM_PROTO_ClearQueue [23:47:25]wFMCommunicate request_size=4 [23:47:25]MH_SAM_APDU [23:47:25]CAPDU: 80 09 00 00 [23:47:25]Write to MH i2c: E2 08 00 B2 17 80 09 00 00 00 00 00 00 3B [23:47:25]Write i2c OK [23:47:25]MH_I2C_Read... [23:47:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:47:25]Read from MH i2c: E2 [23:47:25]MH_I2C_Read... [23:47:25]Read from MH i2c: E2 03 00 [23:47:25]MH_I2C_Read... [23:47:25]Read from MH i2c: E2 03 00 B2 17 00 90 00 3D [23:47:25]RAPDU: 90 00 [23:47:25]wFMCommunicate OK [23:47:25]SAM_PROTO_ClearQueue done [23:47:25]KKMCreateOFDPacket [23:47:25]OFDProtocolAddRootSTLVToBuf [23:47:25]FM_MakeSignedData [23:47:25]FM_MakeSignedData [23:47:25]SAM_PROTO_SignData [23:47:25]wFMCommunicate request_size=4 [23:47:25]MH_SAM_APDU [23:47:25]CAPDU: 80 0D 01 02 [23:47:25]Write to MH i2c: E2 08 00 B3 17 80 0D 01 02 00 00 00 00 43 [23:47:25]Write i2c OK [23:47:25]MH_I2C_Read... [23:47:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:47:25]Read from MH i2c: E2 [23:47:25]MH_I2C_Read... [23:47:25]Read from MH i2c: E2 03 00 [23:47:25]MH_I2C_Read... [23:47:25]Read from MH i2c: E2 03 00 B3 17 00 90 00 3E [23:47:25]RAPDU: 90 00 [23:47:25]wFMCommunicate OK [23:47:25]wFMCommunicate request_size=255 [23:47:25]MH_SAM_APDU [23:47:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 BB 00 00 00 F4 03 04 00 0E 11 76 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 48 97 01 00 35 04 06 00 1F [23:47:25]Write to MH i2c: E2 02 01 B4 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 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 BB 00 00 00 F4 03 04 00 0E 11 76 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 48 97 01 00 35 04 06 00 1F 00 00 E8 [23:47:25]Write i2c OK [23:47:25]MH_I2C_Read... [23:47:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:47:25]Read from MH i2c: E2 [23:47:25]MH_I2C_Read... [23:47:25]Read from MH i2c: E2 03 00 [23:47:25]MH_I2C_Read... [23:47:25]Read from MH i2c: E2 03 00 B4 17 00 90 00 3F [23:47:25]RAPDU: 90 00 [23:47:25]wFMCommunicate OK [23:47:25]wFMCommunicate request_size=10 [23:47:25]MH_SAM_APDU [23:47:25]CAPDU: 80 0D 02 02 05 B8 E6 F1 02 1D [23:47:25]Write to MH i2c: E2 0D 00 B5 17 80 0D 02 02 05 00 B8 E6 F1 02 1D 00 00 FE [23:47:25]Write i2c OK [23:47:25]MH_I2C_Read... [23:47:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:47:25]Read from MH i2c: E2 [23:47:25]MH_I2C_Read... [23:47:25]Read from MH i2c: E2 03 00 [23:47:25]MH_I2C_Read... [23:47:25]Read from MH i2c: E2 03 00 B5 17 00 90 00 40 [23:47:25]RAPDU: 90 00 [23:47:25]wFMCommunicate OK [23:47:25]wFMCommunicate request_size=4 [23:47:25]MH_SAM_APDU [23:47:25]CAPDU: 80 0D 03 02 [23:47:25]Write to MH i2c: E2 08 00 B6 17 80 0D 03 02 00 00 00 00 48 [23:47:25]Write i2c OK [23:47:25]MH_I2C_Read... [23:47:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:47:25]Read from MH i2c: E2 [23:47:25]MH_I2C_Read... [23:47:25]Read from MH i2c: E2 0B 00 [23:47:25]MH_I2C_Read... [23:47:25]Read from MH i2c: E2 0B 00 B6 17 00 FD 95 A2 71 FA 40 67 5A 90 00 E9 [23:47:25]RAPDU: FD 95 A2 71 FA 40 67 5A 90 00 [23:47:25]wFMCommunicate OK [23:47:25]SAM_PROTO_SignData done [23:47:25]FM_MakeSignedData done [23:47:25]CreateOFDProtocolMessage [23:47:25]wFMCommunicate request_size=4 [23:47:25]MH_SAM_APDU [23:47:25]CAPDU: 80 11 00 00 [23:47:25]Write to MH i2c: E2 08 00 B7 17 80 11 00 00 00 00 00 00 48 [23:47:25]Write i2c OK [23:47:25]MH_I2C_Read... [23:47:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:47:26]Read from MH i2c: E2 [23:47:26]MH_I2C_Read... [23:47:26]Read from MH i2c: E2 17 00 [23:47:26]MH_I2C_Read... [23:47:26]Read from MH i2c: E2 17 00 B7 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 9B [23:47:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [23:47:26]wFMCommunicate OK [23:47:26]CreateOFDProtocolMessage done [23:47:26]OFDSenderStorePacket 104264 [23:47:26]StoreOFDPacket docnum=104264 [23:47: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 BF 07 01 64 30 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 BB 00 00 00 F4 03 04 00 0E 11 76 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 48 97 01 00 35 04 06 00 1F B8 E6 F1 02 1D FD 95 A2 71 FA 40 67 5A [23:47:26]CheckFolder [23:47:26]dirname=/storage/ofd_packets [23:47:26]CheckFolder done [23:47:26]ProducePacketName [23:47:26]name=ofd_packets/00104264 [23:47:26]NVStorageSaveData ofd_packets/00104264 [23:47:26]File name is /storage/ofd_packets/00104264 [23:47:26]Write 301 bytes [23:47:26]NVStorageSaveData done [23:47:26]OFDSenderStorePacket done [23:47:26]KKMCreateOFDPacket done [23:47:26]NVStorageSaveData kkm_last_timestamp [23:47:26]File name is /storage/kkm_last_timestamp [23:47:26]Write 4 bytes [23:47:26]NVStorageSaveData done [23:47:26]ExternCall_PrintAddStr [23:47:26]wPrintStart [23:47:26]Write to MH i2c: 01 00 00 B8 17 CF [23:47:26]Write i2c OK [23:47:26]MH_I2C_Read... [23:47:26]Read from MH i2c: 01 [23:47:26]MH_I2C_Read... [23:47:26]Read from MH i2c: 01 07 00 [23:47:26]MH_I2C_Read... [23:47:26]Read from MH i2c: 01 07 00 B8 17 00 00 00 00 00 FF 0F E4 [23:47:26]RasterBufferAndPrint [23:47:26]line Счет N : (1)673754 [23:47:26]line ИНН: 02508201610067 [23:47:26]line Контрольно-Кассовый Чек [23:47:26]line ПРОДАЖА [23:47:26]line ТРК (МРК, ГНК) : 42 [23:47:26]line Товар: 2710124130 [23:47:26]line Аи-92-К-5 [23:47:26]line 15.070 * 66.40 [23:47:26]line = 1000.65 [23:47:26]line НДС 12% НСП 1% [23:47:26]line > о реализуемом товаре [23:47:26]line ИТОГО: 1000.65 [23:47:26]line НСП 1% : 8.85 [23:47:26]line НДС 12% : 106.26 [23:47:26]line Наличными: 0.00 [23:47:26]line Безнал.: 1000.65 [23:47:26]line Место: АЗС № 120 "Партнер Нефть" [23:47:26]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [23:47:26]line СНО: Общий режим [23:47:26]line Чек 187 21.06.2024 23:47 [23:47:26]line Смена: 355 ФФД: 1.0 [23:47:26]line ЗНМ: 0300000164 [23:47:26]line РНМ: 0000000000092785 [23:47:26]line Версия ККМ: 001 [23:47:26]line Платежная система: O! деньги [23:47:26]line ФМ: 0000000000875093 [23:47:26]line ФД: 104264 [23:47:26]line ФПД: 34879008997917 [23:47:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T234726&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104264&fm=34879008997917&tin=02508201610067®Number=0000000000092785&sum=100065 [23:47:26]written 0, free lines is 4095 [23:47:26]OFD Sender: Processing packet 104264 [packets to send 17, broken 16] [23:47:26]ProducePacketName [23:47:26]name=ofd_packets/00104264 [23:47:26]OFD Sender: To server: pG, [23:47:26]CommunicateWithHost lk.salyk.kg:30040 [23:47:26]ConnectInit lk.salyk.kg [23:47:26]Connected sock=10 [23:47:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 B9 BF 07 01 64 30 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 BB 00 00 00 F4 03 04 00 0E 11 76 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 48 97 01 00 35 04 06 00 1F B8 E6 F1 02 1D FD 95 A2 71 FA 40 67 5A [23:47: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 9D 7F 47 00 C0 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 48 97 01 00 F4 03 04 00 8F B7 75 66 B6 04 01 00 00 F5 74 63 57 C0 F4 FE 2A [23:47:26]CommunicateWithHost err = 0 [23:47:26]CheckOFDResponse [23:47:26]1017 (14) - 77093643461234 [23:47:26]1041 (16) - 0000000000875093 [23:47:26]1040 (4) - 104264 [23:47:26]1012 (4) - 21.06.2024 17:25 [23:47:26]1206 (1) - 0 [23:47:26]OFD Sender: Remove packet 104264 [23:47:26]ProducePacketName [23:47:26]name=ofd_packets/00104264 [23:47:26]NVStorageDeleteData [23:47:26]Write to MH i2c: 01 00 00 E2 17 F9 [23:47:26]Write i2c OK [23:47:26]MH_I2C_Read... [23:47:26]Read from MH i2c: 01 [23:47:26]MH_I2C_Read... [23:47:26]Read from MH i2c: 01 07 00 [23:47:26]MH_I2C_Read... [23:47:26]Read from MH i2c: 01 07 00 E2 17 00 00 00 00 00 E6 0C F2 [23:47:26]RasterBufferAndPrint [23:47:26]line [23:47:26]line [23:47:26]line [23:47:26]line [23:47:26]line [23:47:26]written 0, free lines is 3309 [23:47:26]MH_Cut [23:47:26]Write to MH i2c: D1 01 00 E9 17 01 D2 [23:47:26]Write i2c OK [23:47:26]MH_I2C_Read... [23:47:26]Read from MH i2c: D1 [23:47:26]MH_I2C_Read... [23:47:26]Read from MH i2c: D1 01 00 [23:47:26]MH_I2C_Read... [23:47:26]Read from MH i2c: D1 01 00 E9 17 00 D1 [23:47:26]Write to MH i2c: 01 00 00 EA 17 01 [23:47:26]Write i2c OK [23:47:26]MH_I2C_Read... [23:47:27]OFD Sender: No OFD packet to send [23:47:27]*** Cut start [23:47:27]*** Partial cut [23:47:27]*** CUTSNS_PIN = 1 [23:47:27]*** CUTSNS_PIN = 0 [23:47:27]*** Brake cut motor [23:47:28]Read from MH i2c: 01 [23:47:28]MH_I2C_Read... [23:47:28]*** Stop cut motor [23:47:28]*** Cut end [23:47:28]Read from MH i2c: 01 07 00 [23:47:28]MH_I2C_Read... [23:47:28]Read from MH i2c: 01 07 00 EA 17 00 00 00 00 00 FF 0F 16 [23:47:28]process_action close_receipt done [23:47:28]requested_data is exist [23:47:28]produce_requested_data [23:47:28]requested_item fm.sn is exist - process it [23:47:28]wFMCommunicate request_size=4 [23:47:28]MH_SAM_APDU [23:47:28]CAPDU: 80 11 00 00 [23:47:28]Write to MH i2c: E2 08 00 EB 17 80 11 00 00 00 00 00 00 7C [23:47:28]Write i2c OK [23:47:28]MH_I2C_Read... [23:47:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:47:28]Read from MH i2c: E2 [23:47:28]MH_I2C_Read... [23:47:28]Read from MH i2c: E2 17 00 [23:47:28]MH_I2C_Read... [23:47:28]Read from MH i2c: E2 17 00 EB 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 CF [23:47:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [23:47:28]wFMCommunicate OK [23:47:28]requested_item fd.num is exist - process it [23:47:28]SAM_PROTO_GetFieldsCounters [23:47:28]wFMCommunicate request_size=4 [23:47:28]MH_SAM_APDU [23:47:28]CAPDU: 80 13 00 00 [23:47:28]Write to MH i2c: E2 08 00 EC 17 80 13 00 00 00 00 00 00 7F [23:47:28]Write i2c OK [23:47:28]MH_I2C_Read... [23:47:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:47:28]Read from MH i2c: E2 [23:47:28]MH_I2C_Read... [23:47:28]Read from MH i2c: E2 62 00 [23:47:28]MH_I2C_Read... [23:47:28]Read from MH i2c: E2 62 00 EC 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 48 97 01 00 0E 04 04 00 63 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 1B [23:47:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 63 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 [23:47:28]wFMCommunicate OK [23:47:28]SAM_PROTO_GetFieldsCounters done [23:47:28]requested_item shift.num is exist - process it [23:47:28]requested_item shift.opened is exist - process it [23:47:28]req_shift_opened [23:47:28]FM_GetShiftState [23:47:28]SAM_PROTO_GetShiftState [23:47:28]wFMCommunicate request_size=4 [23:47:28]MH_SAM_APDU [23:47:28]CAPDU: 80 13 01 00 [23:47:28]Write to MH i2c: E2 08 00 ED 17 80 13 01 00 00 00 00 00 81 [23:47:28]Write i2c OK [23:47:28]MH_I2C_Read... [23:47:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:47:28]Read from MH i2c: E2 [23:47:28]MH_I2C_Read... [23:47:28]Read from MH i2c: E2 0E 00 [23:47:28]MH_I2C_Read... [23:47:28]Read from MH i2c: E2 0E 00 ED 17 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 94 [23:47:28]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [23:47:28]wFMCommunicate OK [23:47:28]SAM_PROTO_GetShiftState done [23:47:28]FM_GetShiftState done [23:47:28]req_shift_opened done [23:47:28]requested_item shift.open_date is exist - process it [23:47:28]req_shift_open_date [23:47:28]req_shift_open_date done [23:47:28]produce_requested_data done [23:47:28]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104264,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [23:47:28]process_action_free close_receipt [23:47:28]json_value_free [23:47:28]json_value_free done [23:47:28]process_json_proto returns [23:47:28]Send response to host [23:47:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104264,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [23:47:28]free response buf [23:47:28]execute_script done [23:47:28]execute_script returns [23:47:28]free content buf [23:47:28]Sock 9.Close socket [23:47:28]Sock 9.Thread stoped [23:47:32]OFD Sender: No OFD packet to send [23:47:37]OFD Sender: No OFD packet to send [23:47:42]OFD Sender: No OFD packet to send [23:47:47]OFD Sender: No OFD packet to send [23:47:52]OFD Sender: No OFD packet to send [23:47:57]OFD Sender: No OFD packet to send [23:48:02]OFD Sender: No OFD packet to send [23:48:07]OFD Sender: No OFD packet to send [23:48:12]OFD Sender: No OFD packet to send [23:48:17]OFD Sender: No OFD packet to send [23:48:22]OFD Sender: No OFD packet to send [23:48:27]OFD Sender: No OFD packet to send [23:48:32]OFD Sender: No OFD packet to send [23:48:37]OFD Sender: No OFD packet to send [23:48:42]OFD Sender: No OFD packet to send [23:48:47]OFD Sender: No OFD packet to send [23:48:52]OFD Sender: No OFD packet to send [23:48:57]OFD Sender: No OFD packet to send [23:49:02]OFD Sender: No OFD packet to send [23:49:07]OFD Sender: No OFD packet to send [23:49:12]OFD Sender: No OFD packet to send [23:49:17]OFD Sender: No OFD packet to send [23:49:22]OFD Sender: No OFD packet to send [23:49:27]OFD Sender: No OFD packet to send [23:49:32]OFD Sender: No OFD packet to send [23:49:37]OFD Sender: No OFD packet to send [23:49:42]OFD Sender: No OFD packet to send [23:49:47]OFD Sender: No OFD packet to send [23:49:52]OFD Sender: No OFD packet to send [23:49:57]OFD Sender: No OFD packet to send [23:50:02]OFD Sender: No OFD packet to send [23:50:07]OFD Sender: No OFD packet to send [23:50:12]OFD Sender: No OFD packet to send [23:50:17]OFD Sender: No OFD packet to send [23:50:22]OFD Sender: No OFD packet to send [23:50:27]OFD Sender: No OFD packet to send [23:50:32]OFD Sender: No OFD packet to send [23:50:37]OFD Sender: No OFD packet to send [23:50:42]OFD Sender: No OFD packet to send [23:50:47]OFD Sender: No OFD packet to send [23:50:52]OFD Sender: No OFD packet to send [23:50:57]OFD Sender: No OFD packet to send [23:51:02]OFD Sender: No OFD packet to send [23:51:07]OFD Sender: No OFD packet to send [23:51:12]OFD Sender: No OFD packet to send [23:51:17]OFD Sender: No OFD packet to send [23:51:22]OFD Sender: No OFD packet to send [23:51:27]OFD Sender: No OFD packet to send [23:51:32]OFD Sender: No OFD packet to send [23:51:37]OFD Sender: No OFD packet to send [23:51:42]OFD Sender: No OFD packet to send [23:51:47]OFD Sender: No OFD packet to send [23:51:52]OFD Sender: No OFD packet to send [23:51:57]OFD Sender: No OFD packet to send [23:52:02]OFD Sender: No OFD packet to send [23:52:07]OFD Sender: No OFD packet to send [23:52:12]OFD Sender: No OFD packet to send [23:52:17]OFD Sender: No OFD packet to send [23:52:22]OFD Sender: No OFD packet to send [23:52:27]OFD Sender: No OFD packet to send [23:52:32]OFD Sender: No OFD packet to send [23:52:37]OFD Sender: No OFD packet to send [23:52:42]OFD Sender: No OFD packet to send [23:52:47]OFD Sender: No OFD packet to send [23:52:52]OFD Sender: No OFD packet to send [23:52:57]OFD Sender: No OFD packet to send [23:53:02]OFD Sender: No OFD packet to send [23:53:07]OFD Sender: No OFD packet to send [23:53:12]OFD Sender: No OFD packet to send [23:53:17]OFD Sender: No OFD packet to send [23:53:22]OFD Sender: No OFD packet to send [23:53:27]OFD Sender: No OFD packet to send [23:53:32]OFD Sender: No OFD packet to send [23:53:37]OFD Sender: No OFD packet to send [23:53:42]OFD Sender: No OFD packet to send [23:53:47]OFD Sender: No OFD packet to send [23:53:52]OFD Sender: No OFD packet to send [23:53:57]OFD Sender: No OFD packet to send [23:54:02]OFD Sender: No OFD packet to send [23:54:07]OFD Sender: No OFD packet to send [23:54:12]OFD Sender: No OFD packet to send [23:54:17]OFD Sender: No OFD packet to send [23:54:22]OFD Sender: No OFD packet to send [23:54:27]OFD Sender: No OFD packet to send [23:54:32]OFD Sender: No OFD packet to send [23:54:37]OFD Sender: No OFD packet to send [23:54:42]OFD Sender: No OFD packet to send [23:54:47]OFD Sender: No OFD packet to send [23:54:52]OFD Sender: No OFD packet to send [23:54:57]OFD Sender: No OFD packet to send [23:55:02]OFD Sender: No OFD packet to send [23:55:07]OFD Sender: No OFD packet to send [23:55:12]OFD Sender: No OFD packet to send [23:55:17]OFD Sender: No OFD packet to send [23:55:22]OFD Sender: No OFD packet to send [23:55:27]OFD Sender: No OFD packet to send [23:55:32]OFD Sender: No OFD packet to send [23:55:37]OFD Sender: No OFD packet to send [23:55:42]OFD Sender: No OFD packet to send [23:55:47]OFD Sender: No OFD packet to send [23:55:52]OFD Sender: No OFD packet to send [23:55:57]OFD Sender: No OFD packet to send [23:56:02]OFD Sender: No OFD packet to send [23:56:07]OFD Sender: No OFD packet to send [23:56:12]OFD Sender: No OFD packet to send [23:56:17]OFD Sender: No OFD packet to send [23:56:22]OFD Sender: No OFD packet to send [23:56:27]OFD Sender: No OFD packet to send [23:56:32]OFD Sender: No OFD packet to send [23:56:37]OFD Sender: No OFD packet to send [23:56:42]OFD Sender: No OFD packet to send [23:56:47]OFD Sender: No OFD packet to send [23:56:52]OFD Sender: No OFD packet to send [23:56:57]OFD Sender: No OFD packet to send [23:57:02]OFD Sender: No OFD packet to send [23:57:07]OFD Sender: No OFD packet to send [23:57:12]OFD Sender: No OFD packet to send [23:57:17]OFD Sender: No OFD packet to send [23:57:22]OFD Sender: No OFD packet to send [23:57:27]OFD Sender: No OFD packet to send [23:57:32]OFD Sender: No OFD packet to send [23:57:37]OFD Sender: No OFD packet to send [23:57:42]OFD Sender: No OFD packet to send [23:57:47]OFD Sender: No OFD packet to send [23:57:52]OFD Sender: No OFD packet to send [23:57:57]OFD Sender: No OFD packet to send [23:58:02]OFD Sender: No OFD packet to send [23:58:07]OFD Sender: No OFD packet to send [23:58:12]OFD Sender: No OFD packet to send [23:58:17]OFD Sender: No OFD packet to send [23:58:22]OFD Sender: No OFD packet to send [23:58:27]OFD Sender: No OFD packet to send [23:58:32]OFD Sender: No OFD packet to send [23:58:37]OFD Sender: No OFD packet to send [23:58:42]OFD Sender: No OFD packet to send [23:58:47]OFD Sender: No OFD packet to send [23:58:52]OFD Sender: No OFD packet to send [23:58:57]OFD Sender: No OFD packet to send [23:59:02]OFD Sender: No OFD packet to send [23:59:07]OFD Sender: No OFD packet to send [23:59:12]OFD Sender: No OFD packet to send [23:59:17]OFD Sender: No OFD packet to send [23:59:22]OFD Sender: No OFD packet to send [23:59: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:15]accept exits with 7 [00:02:15]New connection [00:02:15]New thread 3067616612 created [00:02:15]Thread 3067473252 joined [00:02:15]Waiting for new connection... [00:02:15] Sock 7.Parse request [00:02:15]Sock 7.Check first char [00:02:15]Sock 7.First char is OK [00:02:15]request: POST /json_proto HTTP/1.0 [00:02:15]Method: POST [00:02:15]URL: /json_proto [00:02:15]Method is POST - this is cgi request [00:02:15]url: /json_proto [00:02:15]query_string will be loaded in cgi processing [00:02:15]execute_cgi json_proto POST (null) [00:02:15]execute_cgi path=json_proto method=POST [00:02:15]POST find Content-Length [00:02:15]Host: 172.17.38.133:8080 [00:02:15]Content-Length: 808 [00:02:15]Content-Type: application/json [00:02:15] [00:02:15]POST finish read [00:02:15]Found Content-Length = 808 [00:02:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673755", "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" : 90.640, "sum" : 6607.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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 6607.66 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:02:15]execute_script... [00: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)673755", "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" : 90.640, "sum" : 6607.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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 6607.66 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:02:15]POST & json_proto [00:02:15]process_json_proto [00:02:15]json parsed OK: [00:02:15]protocol is kg_v1.0 [00:02:15]action value=close_receipt [00:02:15]process_action close_receipt [00:02:15]cmd_close_receipt [00:02:15]MH_GetDate [00:02:15]Write to MH i2c: F0 00 00 EE 17 F4 [00:02:15]Write i2c OK [00:02:15]MH_I2C_Read... [00:02:15]Read from MH i2c: F0 [00:02:15]MH_I2C_Read... [00:02:15]Read from MH i2c: F0 09 00 [00:02:15]MH_I2C_Read... [00:02:15]Read from MH i2c: F0 09 00 EE 17 00 89 14 76 66 BD 8F 7C 64 A2 [00:02:15]GetLastDocTimeStamp 1719013646 [00:02:15]current date 1719014537 [00:02:15]FM_GetShiftState [00:02:15]SAM_PROTO_GetShiftState [00:02:15]wFMCommunicate request_size=4 [00:02:15]MH_SAM_APDU [00:02:15]CAPDU: 80 13 01 00 [00:02:15]Write to MH i2c: E2 08 00 EF 17 80 13 01 00 00 00 00 00 83 [00:02:15]Write i2c OK [00:02:15]MH_I2C_Read... [00:02:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:02:15]Read from MH i2c: E2 [00:02:15]MH_I2C_Read... [00:02:15]Read from MH i2c: E2 0E 00 [00:02:15]MH_I2C_Read... [00:02:15]Read from MH i2c: E2 0E 00 EF 17 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 96 [00:02:15]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [00:02:15]wFMCommunicate OK [00:02:15]SAM_PROTO_GetShiftState done [00:02:15]FM_GetShiftState done [00:02:15]opened in 1718929509 [00:02:15]opened+sec_in_day 1719015909 [00:02:15]quantity*price = 660765 [00:02:15]sum+1 = 660767 [00:02:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 6607.66 НСП 1% : 58.47 НДС 12% : 701.70 Наличными: 0.00 Безнал.: 6607.66 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 188 22.06.2024 00:02 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875093 ФД: 104265 ФПД: 11483303812592 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T000217&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104265&fm=11483303812592&tin=02508201610067®Number=0000000000092785&sum=660766 [00:02:16]StoreToDocumentArchive [00:02:16]shift 355 fd 104265 [00:02:16]save to /storage/0355/doc_00104265 [00:02:16]save last doc name /storage/0355/doc_00104265 to /storage/kkm_last_doc_name [00:02:16]save OK [00:02:16]Clear old archive folders... [00:02:16]ProcessDocumentItem done err = 0, tmpTLVsize=252 [00:02:16]tlvbuf is 0069CCB0 [00:02:16]SAM_PROTO_ClearQueue [00:02:16]wFMCommunicate request_size=4 [00:02:16]MH_SAM_APDU [00:02:16]CAPDU: 80 09 00 00 [00:02:16]Write to MH i2c: E2 08 00 FC 17 80 09 00 00 00 00 00 00 85 [00:02:16]Write i2c OK [00:02:16]MH_I2C_Read... [00:02:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:02:16]Read from MH i2c: E2 [00:02:16]MH_I2C_Read... [00:02:16]Read from MH i2c: E2 03 00 [00:02:16]MH_I2C_Read... [00:02:16]Read from MH i2c: E2 03 00 FC 17 00 90 00 87 [00:02:16]RAPDU: 90 00 [00:02:16]wFMCommunicate OK [00:02:16]SAM_PROTO_ClearQueue done [00:02:16]KKMCreateOFDPacket [00:02:16]OFDProtocolAddRootSTLVToBuf [00:02:16]FM_MakeSignedData [00:02:16]FM_MakeSignedData [00:02:16]SAM_PROTO_SignData [00:02:16]wFMCommunicate request_size=4 [00:02:16]MH_SAM_APDU [00:02:16]CAPDU: 80 0D 01 02 [00:02:16]Write to MH i2c: E2 08 00 FD 17 80 0D 01 02 00 00 00 00 8D [00:02:16]Write i2c OK [00:02:16]MH_I2C_Read... [00:02:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:02:16]Read from MH i2c: E2 [00:02:16]MH_I2C_Read... [00:02:16]Read from MH i2c: E2 03 00 [00:02:16]MH_I2C_Read... [00:02:16]Read from MH i2c: E2 03 00 FD 17 00 90 00 88 [00:02:16]RAPDU: 90 00 [00:02:16]wFMCommunicate OK [00:02:16]wFMCommunicate request_size=255 [00:02:16]MH_SAM_APDU [00:02:16]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 62 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 1E 15 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1E 15 0A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 16 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1A 12 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1E 15 0A 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 89 14 76 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 49 97 01 00 35 04 06 00 [00:02:16]Write to MH i2c: E2 02 01 FE 17 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 62 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 1E 15 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1E 15 0A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 16 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1A 12 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1E 15 0A 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 89 14 76 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 49 97 01 00 35 04 06 00 00 00 2C [00:02:16]Write i2c OK [00:02:16]MH_I2C_Read... [00:02:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:02:16]Read from MH i2c: E2 [00:02:16]MH_I2C_Read... [00:02:16]Read from MH i2c: E2 03 00 [00:02:16]MH_I2C_Read... [00:02:16]Read from MH i2c: E2 03 00 FE 17 00 90 00 89 [00:02:16]RAPDU: 90 00 [00:02:16]wFMCommunicate OK [00:02:16]wFMCommunicate request_size=11 [00:02:16]MH_SAM_APDU [00:02:16]CAPDU: 80 0D 02 02 06 0A 71 AA 3E 9D F0 [00:02:16]Write to MH i2c: E2 0E 00 FF 17 80 0D 02 02 06 00 0A 71 AA 3E 9D F0 00 00 8C [00:02:16]Write i2c OK [00:02:16]MH_I2C_Read... [00:02:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:02:16]Read from MH i2c: E2 [00:02:16]MH_I2C_Read... [00:02:16]Read from MH i2c: E2 03 00 [00:02:16]MH_I2C_Read... [00:02:16]Read from MH i2c: E2 03 00 FF 17 00 90 00 8A [00:02:16]RAPDU: 90 00 [00:02:16]wFMCommunicate OK [00:02:16]wFMCommunicate request_size=4 [00:02:16]MH_SAM_APDU [00:02:16]CAPDU: 80 0D 03 02 [00:02:16]Write to MH i2c: E2 08 00 00 18 80 0D 03 02 00 00 00 00 93 [00:02:16]Write i2c OK [00:02:16]MH_I2C_Read... [00:02:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:02:16]Read from MH i2c: E2 [00:02:16]MH_I2C_Read... [00:02:16]Read from MH i2c: E2 0B 00 [00:02:16]MH_I2C_Read... [00:02:16]Read from MH i2c: E2 0B 00 00 18 00 A9 7E FC D4 6C 08 54 C0 90 00 13 [00:02:16]RAPDU: A9 7E FC D4 6C 08 54 C0 90 00 [00:02:16]wFMCommunicate OK [00:02:16]SAM_PROTO_SignData done [00:02:16]FM_MakeSignedData done [00:02:16]CreateOFDProtocolMessage [00:02:16]wFMCommunicate request_size=4 [00:02:16]MH_SAM_APDU [00:02:16]CAPDU: 80 11 00 00 [00:02:16]Write to MH i2c: E2 08 00 01 18 80 11 00 00 00 00 00 00 93 [00:02:16]Write i2c OK [00:02:16]MH_I2C_Read... [00:02:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:02:16]Read from MH i2c: E2 [00:02:16]MH_I2C_Read... [00:02:16]Read from MH i2c: E2 17 00 [00:02:16]MH_I2C_Read... [00:02:16]Read from MH i2c: E2 17 00 01 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 E6 [00:02:16]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:16]wFMCommunicate OK [00:02:16]CreateOFDProtocolMessage done [00:02:16]OFDSenderStorePacket 104265 [00:02:16]StoreOFDPacket docnum=104265 [00:02: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 3D B7 08 01 C3 3A 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 62 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 1E 15 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1E 15 0A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 16 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1A 12 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1E 15 0A 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 89 14 76 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 49 97 01 00 35 04 06 00 0A 71 AA 3E 9D F0 A9 7E FC D4 6C 08 54 C0 [00:02:16]CheckFolder [00:02:16]dirname=/storage/ofd_packets [00:02:16]CheckFolder done [00:02:16]ProducePacketName [00:02:16]name=ofd_packets/00104265 [00:02:16]NVStorageSaveData ofd_packets/00104265 [00:02:16]File name is /storage/ofd_packets/00104265 [00:02:16]Write 302 bytes [00:02:16]NVStorageSaveData done [00:02:16]OFDSenderStorePacket done [00:02:16]KKMCreateOFDPacket done [00:02:16]NVStorageSaveData kkm_last_timestamp [00:02:16]File name is /storage/kkm_last_timestamp [00:02:16]Write 4 bytes [00:02:16]NVStorageSaveData done [00:02:16]ExternCall_PrintAddStr [00:02:16]wPrintStart [00:02:16]Write to MH i2c: 01 00 00 02 18 1A [00:02:16]Write i2c OK [00:02:16]MH_I2C_Read... [00:02:16]Read from MH i2c: 01 [00:02:16]MH_I2C_Read... [00:02:16]Read from MH i2c: 01 07 00 [00:02:16]MH_I2C_Read... [00:02:16]Read from MH i2c: 01 07 00 02 18 00 00 00 00 00 FF 0F 2F [00:02:16]RasterBufferAndPrint [00:02:16]line Счет N : (1)673755 [00:02:16]line ИНН: 02508201610067 [00:02:16]line Контрольно-Кассовый Чек [00:02:16]line ПРОДАЖА [00:02:16]line ТРК (МРК, ГНК) : 11 [00:02:16]line Товар: 2710194210 [00:02:16]line ДТ(л)-К-5 [00:02:16]line 90.640 * 72.90 [00:02:16]line = 6607.66 [00:02:16]line НДС 12% НСП 1% [00:02:16]line > о реализуемом товаре [00:02:16]line ИТОГО: 6607.66 [00:02:16]line НСП 1% : 58.47 [00:02:16]line НДС 12% : 701.70 [00:02:16]line Наличными: 0.00 [00:02:16]line Безнал.: 6607.66 [00:02:16]line Место: АЗС № 120 "Партнер Нефть" [00:02:16]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [00:02:16]line СНО: Общий режим [00:02:16]line Чек 188 22.06.2024 00:02 [00:02:16]line Смена: 355 ФФД: 1.0 [00:02:16]line ЗНМ: 0300000164 [00:02:16]line РНМ: 0000000000092785 [00:02:16]line Версия ККМ: 001 [00:02:16]line Платежная система: O! деньги [00:02:16]line ФМ: 0000000000875093 [00:02:16]line ФД: 104265 [00:02:16]line ФПД: 11483303812592 [00:02:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T000217&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104265&fm=11483303812592&tin=02508201610067®Number=0000000000092785&sum=660766 [00:02:16]written 0, free lines is 4095 [00:02:17]OFD Sender: Processing packet 104265 [packets to send 17, broken 16] [00:02:17]ProducePacketName [00:02:17]name=ofd_packets/00104265 [00:02:17]OFD Sender: To server: pG, [00:02:17]CommunicateWithHost lk.salyk.kg:30040 [00:02:17]ConnectInit lk.salyk.kg [00:02:17]Connected sock=10 [00: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 10 01 00 00 3D B7 08 01 C3 3A 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 62 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 1E 15 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1E 15 0A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 16 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1A 12 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1E 15 0A 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 89 14 76 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 49 97 01 00 35 04 06 00 0A 71 AA 3E 9D F0 A9 7E FC D4 6C 08 54 C0 [00:02:17]Write to MH i2c: 01 00 00 2C 18 44 [00:02:17]Write i2c OK [00:02:17]MH_I2C_Read... [00:02:17]Read from MH i2c: 01 [00:02:17]MH_I2C_Read... [00:02:17]Read from MH i2c: 01 07 00 [00:02:17]MH_I2C_Read... [00:02:17]Read from MH i2c: 01 07 00 2C 18 00 00 00 00 00 ED 0C 44 [00:02:17]RasterBufferAndPrint [00:02:17]line [00:02:17]line [00:02:17]line [00:02:17]line [00:02:17]line [00:02:17]written 0, free lines is 3315 [00: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 12 27 47 00 1F 63 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 49 97 01 00 F4 03 04 00 0A BB 75 66 B6 04 01 00 00 B1 DF 82 5B 93 B2 F5 4C [00:02:17]CommunicateWithHost err = 0 [00:02:17]CheckOFDResponse [00:02:17]1017 (14) - 77093643461234 [00:02:17]1041 (16) - 0000000000875093 [00:02:17]1040 (4) - 104265 [00:02:17]1012 (4) - 21.06.2024 17:40 [00:02:17]1206 (1) - 0 [00:02:17]OFD Sender: Remove packet 104265 [00:02:17]ProducePacketName [00:02:17]name=ofd_packets/00104265 [00:02:17]NVStorageDeleteData [00:02:17]MH_Cut [00:02:17]Write to MH i2c: D1 01 00 33 18 01 1D [00:02:17]Write i2c OK [00:02:17]MH_I2C_Read... [00:02:17]Read from MH i2c: D1 [00:02:17]MH_I2C_Read... [00:02:17]Read from MH i2c: D1 01 00 [00:02:17]MH_I2C_Read... [00:02:17]Read from MH i2c: D1 01 00 33 18 00 1C [00:02:17]Write to MH i2c: 01 00 00 34 18 4C [00:02:17]Write i2c OK [00:02:17]MH_I2C_Read... [00:02:17]OFD Sender: No OFD packet to send [00:02:18]*** Cut start [00:02:18]*** Partial cut [00:02:18]*** CUTSNS_PIN = 1 [00:02:18]*** CUTSNS_PIN = 0 [00:02:18]*** Brake cut motor [00:02:18]Read from MH i2c: 01 [00:02:18]MH_I2C_Read... [00:02:18]*** Stop cut motor [00:02:18]*** Cut end [00:02:18]Read from MH i2c: 01 07 00 [00:02:18]MH_I2C_Read... [00:02:18]Read from MH i2c: 01 07 00 34 18 00 00 00 00 00 FF 0F 61 [00:02:18]process_action close_receipt done [00:02:18]requested_data is exist [00:02:18]produce_requested_data [00:02:18]requested_item fm.sn is exist - process it [00:02:18]wFMCommunicate request_size=4 [00:02:18]MH_SAM_APDU [00:02:18]CAPDU: 80 11 00 00 [00:02:18]Write to MH i2c: E2 08 00 35 18 80 11 00 00 00 00 00 00 C7 [00:02:18]Write i2c OK [00:02:18]MH_I2C_Read... [00:02:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:02:18]Read from MH i2c: E2 [00:02:18]MH_I2C_Read... [00:02:18]Read from MH i2c: E2 17 00 [00:02:18]MH_I2C_Read... [00:02:18]Read from MH i2c: E2 17 00 35 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 1A [00:02:18]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:18]wFMCommunicate OK [00:02:18]requested_item fd.num is exist - process it [00:02:18]SAM_PROTO_GetFieldsCounters [00:02:18]wFMCommunicate request_size=4 [00:02:18]MH_SAM_APDU [00:02:18]CAPDU: 80 13 00 00 [00:02:18]Write to MH i2c: E2 08 00 36 18 80 13 00 00 00 00 00 00 CA [00:02:18]Write i2c OK [00:02:18]MH_I2C_Read... [00:02:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:02:18]Read from MH i2c: E2 [00:02:18]MH_I2C_Read... [00:02:18]Read from MH i2c: E2 62 00 [00:02:18]MH_I2C_Read... [00:02:18]Read from MH i2c: E2 62 00 36 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 49 97 01 00 0E 04 04 00 63 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 6A [00:02: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 49 97 01 00 0E 04 04 00 63 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 [00:02:18]wFMCommunicate OK [00:02:18]SAM_PROTO_GetFieldsCounters done [00:02:18]requested_item shift.num is exist - process it [00:02:18]requested_item shift.opened is exist - process it [00:02:18]req_shift_opened [00:02:18]FM_GetShiftState [00:02:18]SAM_PROTO_GetShiftState [00:02:18]wFMCommunicate request_size=4 [00:02:18]MH_SAM_APDU [00:02:18]CAPDU: 80 13 01 00 [00:02:18]Write to MH i2c: E2 08 00 37 18 80 13 01 00 00 00 00 00 CC [00:02:18]Write i2c OK [00:02:18]MH_I2C_Read... [00:02:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:02:19]Read from MH i2c: E2 [00:02:19]MH_I2C_Read... [00:02:19]Read from MH i2c: E2 0E 00 [00:02:19]MH_I2C_Read... [00:02:19]Read from MH i2c: E2 0E 00 37 18 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 DF [00:02:19]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [00:02:19]wFMCommunicate OK [00:02:19]SAM_PROTO_GetShiftState done [00:02:19]FM_GetShiftState done [00:02:19]req_shift_opened done [00:02:19]requested_item shift.open_date is exist - process it [00:02:19]req_shift_open_date [00:02:19]req_shift_open_date done [00:02:19]produce_requested_data done [00:02:19]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104265,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [00:02:19]process_action_free close_receipt [00:02:19]json_value_free [00:02:19]json_value_free done [00:02:19]process_json_proto returns [00:02:19]Send response to host [00:02:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104265,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [00:02:19]free response buf [00:02:19]execute_script done [00:02:19]execute_script returns [00:02:19]free content buf [00:02:19]Sock 7.Close socket [00:02:19]Sock 7.Thread stoped [00:02:22]OFD Sender: No OFD packet to send [00:02:27]OFD Sender: No OFD packet to send [00:02:32]OFD Sender: No OFD packet to send [00:02:37]OFD Sender: No OFD packet to send [00:02:42]OFD Sender: No OFD packet to send [00:02:47]OFD Sender: No OFD packet to send [00:02:52]OFD Sender: No OFD packet to send [00:02:57]OFD Sender: No OFD packet to send [00:03:02]OFD Sender: No OFD packet to send [00:03:07]OFD Sender: No OFD packet to send [00:03:12]OFD Sender: No OFD packet to send [00:03:17]OFD Sender: No OFD packet to send [00:03:22]OFD Sender: No OFD packet to send [00:03:28]OFD Sender: No OFD packet to send [00:03:33]OFD Sender: No OFD packet to send [00:03:38]OFD Sender: No OFD packet to send [00:03:43]OFD Sender: No OFD packet to send [00:03:48]OFD Sender: No OFD packet to send [00:03:53]OFD Sender: No OFD packet to send [00:03:58]OFD Sender: No OFD packet to send [00:04:03]OFD Sender: No OFD packet to send [00:04:08]OFD Sender: No OFD packet to send [00:04:13]OFD Sender: No OFD packet to send [00:04:18]OFD Sender: No OFD packet to send [00:04:23]OFD Sender: No OFD packet to send [00:04:28]OFD Sender: No OFD packet to send [00:04:33]OFD Sender: No OFD packet to send [00:04:38]OFD Sender: No OFD packet to send [00:04:43]OFD Sender: No OFD packet to send [00:04:48]OFD Sender: No OFD packet to send [00:04:53]OFD Sender: No OFD packet to send [00:04:58]OFD Sender: No OFD packet to send [00:05:03]OFD Sender: No OFD packet to send [00:05:08]OFD Sender: No OFD packet to send [00:05:13]OFD Sender: No OFD packet to send [00:05:18]OFD Sender: No OFD packet to send [00:05:23]OFD Sender: No OFD packet to send [00:05:27]accept exits with 9 [00:05:27]New connection [00:05:27]New thread 3067473252 created [00:05:27]Thread 3067616612 joined [00:05:27]Waiting for new connection... [00:05:27] Sock 9.Parse request [00:05:27]Sock 9.Check first char [00:05:27]Sock 9.First char is OK [00:05:27]request: POST /json_proto HTTP/1.0 [00:05:27]Method: POST [00:05:27]URL: /json_proto [00:05:27]Method is POST - this is cgi request [00:05:27]url: /json_proto [00:05:27]query_string will be loaded in cgi processing [00:05:27]execute_cgi json_proto POST (null) [00:05:27]execute_cgi path=json_proto method=POST [00:05:27]POST find Content-Length [00:05:27]Host: 172.17.38.133:8080 [00:05:27]Content-Length: 215 [00:05:27]Content-Type: application/json [00:05:27] [00:05:27]POST finish read [00:05:27]Found Content-Length = 215 [00:05:27]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:05:27]execute_script... [00:05:27]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:05:27]POST & json_proto [00:05:27]process_json_proto [00:05:27]json parsed OK: [00:05:27]protocol is kg_v1.0 [00:05:27]action value=get_value [00:05:27]process_action get_value [00:05:27]cmd_get_value [00:05:27]process_action get_value done [00:05:27]requested_data is exist [00:05:27]produce_requested_data [00:05:27]requested_item kkm.sn is exist - process it [00:05:27]requested_item kkm.ver is exist - process it [00:05:27]requested_item fm.sn is exist - process it [00:05:27]wFMCommunicate request_size=4 [00:05:27]MH_SAM_APDU [00:05:27]CAPDU: 80 11 00 00 [00:05:27]Write to MH i2c: E2 08 00 38 18 80 11 00 00 00 00 00 00 CA [00:05:27]Write i2c OK [00:05:27]MH_I2C_Read... [00:05:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:05:27]Read from MH i2c: E2 [00:05:27]MH_I2C_Read... [00:05:27]Read from MH i2c: E2 17 00 [00:05:27]MH_I2C_Read... [00:05:27]Read from MH i2c: E2 17 00 38 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 1D [00:05: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:05:27]wFMCommunicate OK [00:05:27]requested_item fd.num is exist - process it [00:05:27]SAM_PROTO_GetFieldsCounters [00:05:27]wFMCommunicate request_size=4 [00:05:27]MH_SAM_APDU [00:05:27]CAPDU: 80 13 00 00 [00:05:27]Write to MH i2c: E2 08 00 39 18 80 13 00 00 00 00 00 00 CD [00:05:27]Write i2c OK [00:05:27]MH_I2C_Read... [00:05:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:05:27]Read from MH i2c: E2 [00:05:27]MH_I2C_Read... [00:05:27]Read from MH i2c: E2 62 00 [00:05:27]MH_I2C_Read... [00:05:27]Read from MH i2c: E2 62 00 39 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 49 97 01 00 0E 04 04 00 63 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 6D [00:05: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 49 97 01 00 0E 04 04 00 63 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 [00:05:27]wFMCommunicate OK [00:05:27]SAM_PROTO_GetFieldsCounters done [00:05:27]requested_item shift.num is exist - process it [00:05:27]requested_item shift.opened is exist - process it [00:05:27]req_shift_opened [00:05:27]FM_GetShiftState [00:05:27]SAM_PROTO_GetShiftState [00:05:27]wFMCommunicate request_size=4 [00:05:27]MH_SAM_APDU [00:05:27]CAPDU: 80 13 01 00 [00:05:27]Write to MH i2c: E2 08 00 3A 18 80 13 01 00 00 00 00 00 CF [00:05:27]Write i2c OK [00:05:27]MH_I2C_Read... [00:05:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:05:27]Read from MH i2c: E2 [00:05:27]MH_I2C_Read... [00:05:27]Read from MH i2c: E2 0E 00 [00:05:27]MH_I2C_Read... [00:05:27]Read from MH i2c: E2 0E 00 3A 18 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 E2 [00:05:27]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [00:05:27]wFMCommunicate OK [00:05:27]SAM_PROTO_GetShiftState done [00:05:27]FM_GetShiftState done [00:05:27]req_shift_opened done [00:05:27]requested_item shift.open_date is exist - process it [00:05:27]req_shift_open_date [00:05:27]req_shift_open_date done [00:05:27]produce_requested_data done [00:05:27]produce_requested_data return {"kkm.sn":"0300000164","kkm.ver":"001","fm.sn":"0000000000875093","fd.num":104265,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [00:05:27]process_action_free get_value [00:05:27]json_value_free [00:05:27]json_value_free done [00:05:27]process_json_proto returns [00:05:27]Send response to host [00:05:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000164","kkm.ver":"001","fm.sn":"0000000000875093","fd.num":104265,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [00:05:27]free response buf [00:05:27]execute_script done [00:05:27]execute_script returns [00:05:27]free content buf [00:05:27]Sock 9.Close socket [00:05:27]Sock 9.Thread stoped [00:05:27]accept exits with 7 [00:05:27]New connection [00:05:27]New thread 3067616612 created [00:05:27]Thread 3067473252 joined [00:05:27]Waiting for new connection... [00:05:27] Sock 7.Parse request [00:05:27]Sock 7.Check first char [00:05:27]Sock 7.First char is OK [00:05:27]request: POST /json_proto HTTP/1.0 [00:05:27]Method: POST [00:05:27]URL: /json_proto [00:05:27]Method is POST - this is cgi request [00:05:27]url: /json_proto [00:05:27]query_string will be loaded in cgi processing [00:05:27]execute_cgi json_proto POST (null) [00:05:27]execute_cgi path=json_proto method=POST [00:05:27]POST find Content-Length [00:05:27]Host: 172.17.38.133:8080 [00:05:27]Content-Length: 331 [00:05:27]Content-Type: application/json [00:05:27] [00:05:27]POST finish read [00:05:27]Found Content-Length = 331 [00:05:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:05:27]execute_script... [00:05:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:05:27]POST & json_proto [00:05:27]process_json_proto [00:05:27]json parsed OK: [00:05:27]protocol is kg_v1.0 [00:05:27]action value=get_value [00:05:27]process_action get_value [00:05:27]cmd_get_value [00:05:27]process_action get_value done [00:05:27]requested_data is exist [00:05:27]produce_requested_data [00:05:27]requested_item fm.sale.total is exist - process it [00:05:27]SAM_PROTO_GetFMData [00:05:27]wFMCommunicate request_size=4 [00:05:27]MH_SAM_APDU [00:05:27]CAPDU: 80 13 03 00 [00:05:27]Write to MH i2c: E2 08 00 3B 18 80 13 03 00 00 00 00 00 D2 [00:05:27]Write i2c OK [00:05:27]MH_I2C_Read... [00:05:28]OFD Sender: No OFD packet to send [00:05:28]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:05:28]Read from MH i2c: E2 [00:05:28]MH_I2C_Read... [00:05:28]Read from MH i2c: E2 FD 00 [00:05:28]MH_I2C_Read... [00:05:28]Read from MH i2c: E2 FD 00 3B 18 00 C5 04 85 04 C1 04 6E 04 04 00 83 94 01 00 69 04 A3 00 6F 04 04 00 24 90 01 00 B1 04 05 00 AB 58 32 41 04 70 04 05 00 8C 5B 27 5C 03 72 04 04 00 1F FD 0A E5 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 A6 BC AE 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 57 C3 A3 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 5F 04 00 00 B1 04 04 00 F4 C4 3D 18 70 04 04 00 F4 C4 3D 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 75 10 93 02 EF 03 09 90 00 95 [00:05:28]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 83 94 01 00 69 04 A3 00 6F 04 04 00 24 90 01 00 B1 04 05 00 AB 58 32 41 04 70 04 05 00 8C 5B 27 5C 03 72 04 04 00 1F FD 0A E5 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 A6 BC AE 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 57 C3 A3 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 5F 04 00 00 B1 04 04 00 F4 C4 3D 18 70 04 04 00 F4 C4 3D 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 75 10 93 02 EF 03 09 90 00 [00:05:28]wFMCommunicate OK [00:05:28]wFMCommunicate request_size=4 [00:05:28]MH_SAM_APDU [00:05:28]CAPDU: 80 17 00 00 [00:05:28]Write to MH i2c: E2 08 00 3C 18 80 17 00 00 00 00 00 00 D4 [00:05:28]Write i2c OK [00:05:28]MH_I2C_Read... [00:05:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:05:28]Read from MH i2c: E2 [00:05:28]MH_I2C_Read... [00:05:28]Read from MH i2c: E2 FD 00 [00:05:28]MH_I2C_Read... [00:05:28]Read from MH i2c: E2 FD 00 3C 18 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B8 EB 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 63 [00:05:28]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B8 EB 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:05:28]wFMCommunicate OK [00:05:28]wFMCommunicate request_size=4 [00:05:28]MH_SAM_APDU [00:05:28]CAPDU: 80 17 00 00 [00:05:28]Write to MH i2c: E2 08 00 3D 18 80 17 00 00 00 00 00 00 D5 [00:05:28]Write i2c OK [00:05:28]MH_I2C_Read... [00:05:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:05:28]Read from MH i2c: E2 [00:05:28]MH_I2C_Read... [00:05:28]Read from MH i2c: E2 FD 00 [00:05:28]MH_I2C_Read... [00:05:28]Read from MH i2c: E2 FD 00 3D 18 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 E7 [00:05:28]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:05:28]wFMCommunicate OK [00:05:28]wFMCommunicate request_size=4 [00:05:28]MH_SAM_APDU [00:05:28]CAPDU: 80 17 00 00 [00:05:28]Write to MH i2c: E2 08 00 3E 18 80 17 00 00 00 00 00 00 D6 [00:05:28]Write i2c OK [00:05:28]MH_I2C_Read... [00:05:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:05:28]Read from MH i2c: E2 [00:05:28]MH_I2C_Read... [00:05:28]Read from MH i2c: E2 FD 00 [00:05:28]MH_I2C_Read... [00:05:28]Read from MH i2c: E2 FD 00 3E 18 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 62 [00:05:28]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:05:28]wFMCommunicate OK [00:05:28]wFMCommunicate request_size=4 [00:05:28]MH_SAM_APDU [00:05:28]CAPDU: 80 17 00 00 [00:05:28]Write to MH i2c: E2 08 00 3F 18 80 17 00 00 00 00 00 00 D7 [00:05:28]Write i2c OK [00:05:28]MH_I2C_Read... [00:05:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:05:29]Read from MH i2c: E2 [00:05:29]MH_I2C_Read... [00:05:29]Read from MH i2c: E2 E2 00 [00:05:29]MH_I2C_Read... [00:05:29]Read from MH i2c: E2 E2 00 3F 18 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 B5 [00:05:29]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:05:29]wFMCommunicate OK [00:05:29]SAM_PROTO_GetFMData done [00:05:29]requested_item fm.sale_refund.total is exist - process it [00:05:29]requested_item fm.buy.total is exist - process it [00:05:29]requested_item shift.sale.total is exist - process it [00:05:29]SAM_PROTO_GetShiftData [00:05:29]wFMCommunicate request_size=4 [00:05:29]MH_SAM_APDU [00:05:29]CAPDU: 80 13 02 00 [00:05:29]Write to MH i2c: E2 08 00 40 18 80 13 02 00 00 00 00 00 D6 [00:05:29]Write i2c OK [00:05:29]MH_I2C_Read... [00:05:29]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:05:29]Read from MH i2c: E2 [00:05:29]MH_I2C_Read... [00:05:29]Read from MH i2c: E2 FD 00 [00:05:29]MH_I2C_Read... [00:05:29]Read from MH i2c: E2 FD 00 40 18 00 BC 04 AA 04 B8 04 6E 04 04 00 BC 00 00 00 69 04 9E 00 6F 04 04 00 B6 00 00 00 B1 04 04 00 DE 96 C9 01 70 04 04 00 EC 94 0A 01 72 04 03 00 F2 01 BF 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 62 9A 30 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 C2 0C 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 06 00 00 00 B1 04 03 00 60 93 1B 70 04 03 00 60 93 1B 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 CD ED 02 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 B3 [00:05:29]RAPDU: BC 04 AA 04 B8 04 6E 04 04 00 BC 00 00 00 69 04 9E 00 6F 04 04 00 B6 00 00 00 B1 04 04 00 DE 96 C9 01 70 04 04 00 EC 94 0A 01 72 04 03 00 F2 01 BF 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 62 9A 30 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 C2 0C 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 06 00 00 00 B1 04 03 00 60 93 1B 70 04 03 00 60 93 1B 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 CD ED 02 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 [00:05:29]wFMCommunicate OK [00:05:29]wFMCommunicate request_size=4 [00:05:29]MH_SAM_APDU [00:05:29]CAPDU: 80 17 00 00 [00:05:29]Write to MH i2c: E2 08 00 41 18 80 17 00 00 00 00 00 00 D9 [00:05:29]Write i2c OK [00:05:29]MH_I2C_Read... [00:05:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:05:29]Read from MH i2c: E2 [00:05:29]MH_I2C_Read... [00:05:29]Read from MH i2c: E2 FD 00 [00:05:29]MH_I2C_Read... [00:05:29]Read from MH i2c: E2 FD 00 41 18 00 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7B 3E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 3C [00:05:29]RAPDU: 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7B 3E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:05:29]wFMCommunicate OK [00:05:29]wFMCommunicate request_size=4 [00:05:29]MH_SAM_APDU [00:05:29]CAPDU: 80 17 00 00 [00:05:29]Write to MH i2c: E2 08 00 42 18 80 17 00 00 00 00 00 00 DA [00:05:29]Write i2c OK [00:05:29]MH_I2C_Read... [00:05:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:05:30]Read from MH i2c: E2 [00:05:30]MH_I2C_Read... [00:05:30]Read from MH i2c: E2 FD 00 [00:05:30]MH_I2C_Read... [00:05:30]Read from MH i2c: E2 FD 00 42 18 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 03 [00:05:30]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:05:30]wFMCommunicate OK [00:05:30]wFMCommunicate request_size=4 [00:05:30]MH_SAM_APDU [00:05:30]CAPDU: 80 17 00 00 [00:05:30]Write to MH i2c: E2 08 00 43 18 80 17 00 00 00 00 00 00 DB [00:05:30]Write i2c OK [00:05:30]MH_I2C_Read... [00:05:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:05:30]Read from MH i2c: E2 [00:05:30]MH_I2C_Read... [00:05:30]Read from MH i2c: E2 FD 00 [00:05:30]MH_I2C_Read... [00:05:30]Read from MH i2c: E2 FD 00 43 18 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 5C [00:05:30]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:05:30]wFMCommunicate OK [00:05:30]wFMCommunicate request_size=4 [00:05:30]MH_SAM_APDU [00:05:30]CAPDU: 80 17 00 00 [00:05:30]Write to MH i2c: E2 08 00 44 18 80 17 00 00 00 00 00 00 DC [00:05:30]Write i2c OK [00:05:30]MH_I2C_Read... [00:05:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 214! [00:05:30]Read from MH i2c: E2 [00:05:30]MH_I2C_Read... [00:05:30]Read from MH i2c: E2 D9 00 [00:05:30]MH_I2C_Read... [00:05:30]Read from MH i2c: E2 D9 00 44 18 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 BB [00:05:30]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:05:30]wFMCommunicate OK [00:05:30]SAM_PROTO_GetShiftData done [00:05:30]requested_item shift.sale.total_cash is exist - process it [00:05:30]requested_item shift.sale_refund.total is exist - process it [00:05:30]requested_item shift.sale_refund.total_cash is exist - process it [00:05:30]requested_item shift.buy.total is exist - process it [00:05:30]requested_item shift.buy.total_cash is exist - process it [00:05:30]produce_requested_data done [00:05:30]produce_requested_data return {"fm.sale.total":182736877.23,"fm.sale_refund.total":4067013.00,"fm.buy.total":0.00,"shift.sale.total":299885.74,"shift.sale.total_cash":174707.00,"shift.sale_refund.total":18072.00,"shift.sale_refund.total_cash":18072.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:05:30]process_action_free get_value [00:05:30]json_value_free [00:05:30]json_value_free done [00:05:30]process_json_proto returns [00:05:30]Send response to host [00:05:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":182736877.23,"fm.sale_refund.total":4067013.00,"fm.buy.total":0.00,"shift.sale.total":299885.74,"shift.sale.total_cash":174707.00,"shift.sale_refund.total":18072.00,"shift.sale_refund.total_cash":18072.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:05:30]free response buf [00:05:30]execute_script done [00:05:30]execute_script returns [00:05:30]free content buf [00:05:30]Sock 7.Close socket [00:05:30]Sock 7.Thread stoped [00:05:30]accept exits with 9 [00:05:30]New connection [00:05:30]New thread 3067473252 created [00:05:30]Thread 3067616612 joined [00:05:30]Waiting for new connection... [00:05:30] Sock 9.Parse request [00:05:30]Sock 9.Check first char [00:05:30]Sock 9.First char is OK [00:05:30]request: POST /json_proto HTTP/1.0 [00:05:30]Method: POST [00:05:30]URL: /json_proto [00:05:30]Method is POST - this is cgi request [00:05:30]url: /json_proto [00:05:30]query_string will be loaded in cgi processing [00:05:30]execute_cgi json_proto POST (null) [00:05:30]execute_cgi path=json_proto method=POST [00:05:30]POST find Content-Length [00:05:30]Host: 172.17.38.133:8080 [00:05:30]Content-Length: 331 [00:05:30]Content-Type: application/json [00:05:30] [00:05:30]POST finish read [00:05:30]Found Content-Length = 331 [00:05:30]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:05:30]execute_script... [00:05:30]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:05:30]POST & json_proto [00:05:30]process_json_proto [00:05:30]json parsed OK: [00:05:30]protocol is kg_v1.0 [00:05:30]action value=get_value [00:05:30]process_action get_value [00:05:30]cmd_get_value [00:05:30]process_action get_value done [00:05:30]requested_data is exist [00:05:30]produce_requested_data [00:05:30]requested_item fm.sale.total is exist - process it [00:05:30]SAM_PROTO_GetFMData [00:05:30]wFMCommunicate request_size=4 [00:05:30]MH_SAM_APDU [00:05:30]CAPDU: 80 13 03 00 [00:05:30]Write to MH i2c: E2 08 00 45 18 80 13 03 00 00 00 00 00 DC [00:05:30]Write i2c OK [00:05:30]MH_I2C_Read... [00:05:31]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:05:31]Read from MH i2c: E2 [00:05:31]MH_I2C_Read... [00:05:31]Read from MH i2c: E2 FD 00 [00:05:31]MH_I2C_Read... [00:05:31]Read from MH i2c: E2 FD 00 45 18 00 C5 04 85 04 C1 04 6E 04 04 00 83 94 01 00 69 04 A3 00 6F 04 04 00 24 90 01 00 B1 04 05 00 AB 58 32 41 04 70 04 05 00 8C 5B 27 5C 03 72 04 04 00 1F FD 0A E5 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 A6 BC AE 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 57 C3 A3 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 5F 04 00 00 B1 04 04 00 F4 C4 3D 18 70 04 04 00 F4 C4 3D 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 75 10 93 02 EF 03 09 90 00 9F [00:05:31]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 83 94 01 00 69 04 A3 00 6F 04 04 00 24 90 01 00 B1 04 05 00 AB 58 32 41 04 70 04 05 00 8C 5B 27 5C 03 72 04 04 00 1F FD 0A E5 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 A6 BC AE 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 57 C3 A3 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 5F 04 00 00 B1 04 04 00 F4 C4 3D 18 70 04 04 00 F4 C4 3D 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 75 10 93 02 EF 03 09 90 00 [00:05:31]wFMCommunicate OK [00:05:31]wFMCommunicate request_size=4 [00:05:31]MH_SAM_APDU [00:05:31]CAPDU: 80 17 00 00 [00:05:31]Write to MH i2c: E2 08 00 46 18 80 17 00 00 00 00 00 00 DE [00:05:31]Write i2c OK [00:05:31]MH_I2C_Read... [00:05:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:05:31]Read from MH i2c: E2 [00:05:31]MH_I2C_Read... [00:05:31]Read from MH i2c: E2 FD 00 [00:05:31]MH_I2C_Read... [00:05:31]Read from MH i2c: E2 FD 00 46 18 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B8 EB 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 6D [00:05:31]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B8 EB 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:05:31]wFMCommunicate OK [00:05:31]wFMCommunicate request_size=4 [00:05:31]MH_SAM_APDU [00:05:31]CAPDU: 80 17 00 00 [00:05:31]Write to MH i2c: E2 08 00 47 18 80 17 00 00 00 00 00 00 DF [00:05:31]Write i2c OK [00:05:31]MH_I2C_Read... [00:05:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:05:32]Read from MH i2c: E2 [00:05:32]MH_I2C_Read... [00:05:32]Read from MH i2c: E2 FD 00 [00:05:32]MH_I2C_Read... [00:05:32]Read from MH i2c: E2 FD 00 47 18 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 F1 [00:05:32]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:05:32]wFMCommunicate OK [00:05:32]wFMCommunicate request_size=4 [00:05:32]MH_SAM_APDU [00:05:32]CAPDU: 80 17 00 00 [00:05:32]Write to MH i2c: E2 08 00 48 18 80 17 00 00 00 00 00 00 E0 [00:05:32]Write i2c OK [00:05:32]MH_I2C_Read... [00:05:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:05:32]Read from MH i2c: E2 [00:05:32]MH_I2C_Read... [00:05:32]Read from MH i2c: E2 FD 00 [00:05:32]MH_I2C_Read... [00:05:32]Read from MH i2c: E2 FD 00 48 18 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 6C [00:05:32]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:05:32]wFMCommunicate OK [00:05:32]wFMCommunicate request_size=4 [00:05:32]MH_SAM_APDU [00:05:32]CAPDU: 80 17 00 00 [00:05:32]Write to MH i2c: E2 08 00 49 18 80 17 00 00 00 00 00 00 E1 [00:05:32]Write i2c OK [00:05:32]MH_I2C_Read... [00:05:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:05:32]Read from MH i2c: E2 [00:05:32]MH_I2C_Read... [00:05:32]Read from MH i2c: E2 E2 00 [00:05:32]MH_I2C_Read... [00:05:32]Read from MH i2c: E2 E2 00 49 18 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 BF [00:05:32]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:05:32]wFMCommunicate OK [00:05:32]SAM_PROTO_GetFMData done [00:05:32]requested_item fm.sale_refund.total is exist - process it [00:05:32]requested_item fm.buy.total is exist - process it [00:05:32]requested_item shift.sale.total is exist - process it [00:05:32]SAM_PROTO_GetShiftData [00:05:32]wFMCommunicate request_size=4 [00:05:32]MH_SAM_APDU [00:05:32]CAPDU: 80 13 02 00 [00:05:32]Write to MH i2c: E2 08 00 4A 18 80 13 02 00 00 00 00 00 E0 [00:05:32]Write i2c OK [00:05:32]MH_I2C_Read... [00:05:33]OFD Sender: No OFD packet to send [00:05:33]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:05:33]Read from MH i2c: E2 [00:05:33]MH_I2C_Read... [00:05:33]Read from MH i2c: E2 FD 00 [00:05:33]MH_I2C_Read... [00:05:33]Read from MH i2c: E2 FD 00 4A 18 00 BC 04 AA 04 B8 04 6E 04 04 00 BC 00 00 00 69 04 9E 00 6F 04 04 00 B6 00 00 00 B1 04 04 00 DE 96 C9 01 70 04 04 00 EC 94 0A 01 72 04 03 00 F2 01 BF 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 62 9A 30 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 C2 0C 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 06 00 00 00 B1 04 03 00 60 93 1B 70 04 03 00 60 93 1B 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 CD ED 02 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 BD [00:05:33]RAPDU: BC 04 AA 04 B8 04 6E 04 04 00 BC 00 00 00 69 04 9E 00 6F 04 04 00 B6 00 00 00 B1 04 04 00 DE 96 C9 01 70 04 04 00 EC 94 0A 01 72 04 03 00 F2 01 BF 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 62 9A 30 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 C2 0C 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 06 00 00 00 B1 04 03 00 60 93 1B 70 04 03 00 60 93 1B 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 CD ED 02 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 [00:05:33]wFMCommunicate OK [00:05:33]wFMCommunicate request_size=4 [00:05:33]MH_SAM_APDU [00:05:33]CAPDU: 80 17 00 00 [00:05:33]Write to MH i2c: E2 08 00 4B 18 80 17 00 00 00 00 00 00 E3 [00:05:33]Write i2c OK [00:05:33]MH_I2C_Read... [00:05:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:05:33]Read from MH i2c: E2 [00:05:33]MH_I2C_Read... [00:05:33]Read from MH i2c: E2 FD 00 [00:05:33]MH_I2C_Read... [00:05:33]Read from MH i2c: E2 FD 00 4B 18 00 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7B 3E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 46 [00:05:33]RAPDU: 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7B 3E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:05:33]wFMCommunicate OK [00:05:33]wFMCommunicate request_size=4 [00:05:33]MH_SAM_APDU [00:05:33]CAPDU: 80 17 00 00 [00:05:33]Write to MH i2c: E2 08 00 4C 18 80 17 00 00 00 00 00 00 E4 [00:05:33]Write i2c OK [00:05:33]MH_I2C_Read... [00:05:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:05:34]Read from MH i2c: E2 [00:05:34]MH_I2C_Read... [00:05:34]Read from MH i2c: E2 FD 00 [00:05:34]MH_I2C_Read... [00:05:34]Read from MH i2c: E2 FD 00 4C 18 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 0D [00:05:34]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:05:34]wFMCommunicate OK [00:05:34]wFMCommunicate request_size=4 [00:05:34]MH_SAM_APDU [00:05:34]CAPDU: 80 17 00 00 [00:05:34]Write to MH i2c: E2 08 00 4D 18 80 17 00 00 00 00 00 00 E5 [00:05:34]Write i2c OK [00:05:34]MH_I2C_Read... [00:05:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:05:34]Read from MH i2c: E2 [00:05:34]MH_I2C_Read... [00:05:34]Read from MH i2c: E2 FD 00 [00:05:34]MH_I2C_Read... [00:05:34]Read from MH i2c: E2 FD 00 4D 18 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 66 [00:05:34]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:05:34]wFMCommunicate OK [00:05:34]wFMCommunicate request_size=4 [00:05:34]MH_SAM_APDU [00:05:34]CAPDU: 80 17 00 00 [00:05:34]Write to MH i2c: E2 08 00 4E 18 80 17 00 00 00 00 00 00 E6 [00:05:34]Write i2c OK [00:05:34]MH_I2C_Read... [00:05:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 214! [00:05:34]Read from MH i2c: E2 [00:05:34]MH_I2C_Read... [00:05:34]Read from MH i2c: E2 D9 00 [00:05:34]MH_I2C_Read... [00:05:35]Read from MH i2c: E2 D9 00 4E 18 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 C5 [00:05:35]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:05:35]wFMCommunicate OK [00:05:35]SAM_PROTO_GetShiftData done [00:05:35]requested_item shift.sale.total_cash is exist - process it [00:05:35]requested_item shift.sale_refund.total is exist - process it [00:05:35]requested_item shift.sale_refund.total_cash is exist - process it [00:05:35]requested_item shift.buy.total is exist - process it [00:05:35]requested_item shift.buy.total_cash is exist - process it [00:05:35]produce_requested_data done [00:05:35]produce_requested_data return {"fm.sale.total":182736877.23,"fm.sale_refund.total":4067013.00,"fm.buy.total":0.00,"shift.sale.total":299885.74,"shift.sale.total_cash":174707.00,"shift.sale_refund.total":18072.00,"shift.sale_refund.total_cash":18072.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:05:35]process_action_free get_value [00:05:35]json_value_free [00:05:35]json_value_free done [00:05:35]process_json_proto returns [00:05:35]Send response to host [00:05:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":182736877.23,"fm.sale_refund.total":4067013.00,"fm.buy.total":0.00,"shift.sale.total":299885.74,"shift.sale.total_cash":174707.00,"shift.sale_refund.total":18072.00,"shift.sale_refund.total_cash":18072.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:05:35]free response buf [00:05:35]execute_script done [00:05:35]execute_script returns [00:05:35]free content buf [00:05:35]Sock 9.Close socket [00:05:35]Sock 9.Thread stoped [00:05:35]accept exits with 7 [00:05:35]New connection [00:05:35]New thread 3067616612 created [00:05:35]Thread 3067473252 joined [00:05:35]Waiting for new connection... [00:05:35] Sock 7.Parse request [00:05:35]Sock 7.Check first char [00:05:35]Sock 7.First char is OK [00:05:35]request: POST /json_proto HTTP/1.0 [00:05:35]Method: POST [00:05:35]URL: /json_proto [00:05:35]Method is POST - this is cgi request [00:05:35]url: /json_proto [00:05:35]query_string will be loaded in cgi processing [00:05:35]execute_cgi json_proto POST (null) [00:05:35]execute_cgi path=json_proto method=POST [00:05:35]POST find Content-Length [00:05:35]Host: 172.17.38.133:8080 [00:05:35]Content-Length: 257 [00:05:35]Content-Type: application/json [00:05:35] [00:05:35]POST finish read [00:05:35]Found Content-Length = 257 [00:05:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:05:35]execute_script... [00:05:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:05:35]POST & json_proto [00:05:35]process_json_proto [00:05:35]json parsed OK: [00:05:35]protocol is kg_v1.0 [00:05:35]action value=x_report [00:05:35]process_action x_report [00:05:35]cmd_x_report [00:05:35]MH_GetDate [00:05:35]Write to MH i2c: F0 00 00 4F 18 56 [00:05:35]Write i2c OK [00:05:35]MH_I2C_Read... [00:05:35]Read from MH i2c: F0 [00:05:35]MH_I2C_Read... [00:05:35]Read from MH i2c: F0 09 00 [00:05:35]MH_I2C_Read... [00:05:35]Read from MH i2c: F0 09 00 4F 18 00 51 15 76 66 BD 8F 7C 64 CD [00:05:35]GetLastDocTimeStamp 1719014537 [00:05:35]current date 1719014737 [00:05:35]FM_GetShiftState [00:05:35]SAM_PROTO_GetShiftState [00:05:35]wFMCommunicate request_size=4 [00:05:35]MH_SAM_APDU [00:05:35]CAPDU: 80 13 01 00 [00:05:35]Write to MH i2c: E2 08 00 50 18 80 13 01 00 00 00 00 00 E5 [00:05:35]Write i2c OK [00:05:35]MH_I2C_Read... [00:05:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:05:35]Read from MH i2c: E2 [00:05:35]MH_I2C_Read... [00:05:35]Read from MH i2c: E2 0E 00 [00:05:35]MH_I2C_Read... [00:05:35]Read from MH i2c: E2 0E 00 50 18 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 F8 [00:05:35]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [00:05:35]wFMCommunicate OK [00:05:35]SAM_PROTO_GetShiftState done [00:05:35]FM_GetShiftState done [00:05:35]KKMCreateXReportDocument [00:05:35]Load OK [00:05:35]Malloc new data [00:05:35]MH_GetDate [00:05:35]Write to MH i2c: F0 00 00 51 18 58 [00:05:35]Write i2c OK [00:05:35]MH_I2C_Read... [00:05:35]Read from MH i2c: F0 [00:05:35]MH_I2C_Read... [00:05:35]Read from MH i2c: F0 09 00 [00:05:35]MH_I2C_Read... [00:05:35]Read from MH i2c: F0 09 00 51 18 00 51 15 76 66 BD 8F 7C 64 CF [00:05:35]Malloc new data [00:05:35]Malloc new data [00:05:35]wFMCommunicate request_size=4 [00:05:35]MH_SAM_APDU [00:05:35]CAPDU: 80 11 00 00 [00:05:35]Write to MH i2c: E2 08 00 52 18 80 11 00 00 00 00 00 00 E4 [00:05:35]Write i2c OK [00:05:35]MH_I2C_Read... [00:05:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:05:35]Read from MH i2c: E2 [00:05:35]MH_I2C_Read... [00:05:35]Read from MH i2c: E2 17 00 [00:05:35]MH_I2C_Read... [00:05:35]Read from MH i2c: E2 17 00 52 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 37 [00:05:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [00:05:35]wFMCommunicate OK [00:05:35]SAM_PROTO_GetFieldsCounters [00:05:35]wFMCommunicate request_size=4 [00:05:35]MH_SAM_APDU [00:05:35]CAPDU: 80 13 00 00 [00:05:35]Write to MH i2c: E2 08 00 53 18 80 13 00 00 00 00 00 00 E7 [00:05:35]Write i2c OK [00:05:35]MH_I2C_Read... [00:05:35]Read from MH i2c: E2 [00:05:35]MH_I2C_Read... [00:05:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:05:35]Read from MH i2c: E2 62 00 [00:05:35]MH_I2C_Read... [00:05:35]Read from MH i2c: E2 62 00 53 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 49 97 01 00 0E 04 04 00 63 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 87 [00:05: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 97 01 00 0E 04 04 00 63 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 [00:05:35]wFMCommunicate OK [00:05:35]SAM_PROTO_GetFieldsCounters done [00:05:35]Malloc new data [00:05:35]Malloc new data [00:05:35]Malloc new data [00:05:35]KKMCreateXReportDocument OK [00:05:35]KKMSetXReportData OK [00:05:35]KKMPrepareXReportFMData [00:05:35]SAM_PROTO_GetShiftData [00:05:35]wFMCommunicate request_size=4 [00:05:35]MH_SAM_APDU [00:05:35]CAPDU: 80 13 02 00 [00:05:35]Write to MH i2c: E2 08 00 54 18 80 13 02 00 00 00 00 00 EA [00:05:35]Write i2c OK [00:05:35]MH_I2C_Read... [00:05:36]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:05:36]Read from MH i2c: E2 [00:05:36]MH_I2C_Read... [00:05:36]Read from MH i2c: E2 FD 00 [00:05:36]MH_I2C_Read... [00:05:36]Read from MH i2c: E2 FD 00 54 18 00 BC 04 AA 04 B8 04 6E 04 04 00 BC 00 00 00 69 04 9E 00 6F 04 04 00 B6 00 00 00 B1 04 04 00 DE 96 C9 01 70 04 04 00 EC 94 0A 01 72 04 03 00 F2 01 BF 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 62 9A 30 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 C2 0C 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 06 00 00 00 B1 04 03 00 60 93 1B 70 04 03 00 60 93 1B 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 CD ED 02 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 C7 [00:05:36]RAPDU: BC 04 AA 04 B8 04 6E 04 04 00 BC 00 00 00 69 04 9E 00 6F 04 04 00 B6 00 00 00 B1 04 04 00 DE 96 C9 01 70 04 04 00 EC 94 0A 01 72 04 03 00 F2 01 BF 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 62 9A 30 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 C2 0C 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 06 00 00 00 B1 04 03 00 60 93 1B 70 04 03 00 60 93 1B 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 CD ED 02 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 [00:05:36]wFMCommunicate OK [00:05:36]wFMCommunicate request_size=4 [00:05:36]MH_SAM_APDU [00:05:36]CAPDU: 80 17 00 00 [00:05:36]Write to MH i2c: E2 08 00 55 18 80 17 00 00 00 00 00 00 ED [00:05:36]Write i2c OK [00:05:36]MH_I2C_Read... [00:05:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:05:36]Read from MH i2c: E2 [00:05:36]MH_I2C_Read... [00:05:36]Read from MH i2c: E2 FD 00 [00:05:36]MH_I2C_Read... [00:05:36]Read from MH i2c: E2 FD 00 55 18 00 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7B 3E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 50 [00:05:36]RAPDU: 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7B 3E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:05:36]wFMCommunicate OK [00:05:36]wFMCommunicate request_size=4 [00:05:36]MH_SAM_APDU [00:05:36]CAPDU: 80 17 00 00 [00:05:36]Write to MH i2c: E2 08 00 56 18 80 17 00 00 00 00 00 00 EE [00:05:36]Write i2c OK [00:05:36]MH_I2C_Read... [00:05:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:05:36]Read from MH i2c: E2 [00:05:36]MH_I2C_Read... [00:05:36]Read from MH i2c: E2 FD 00 [00:05:36]MH_I2C_Read... [00:05:36]Read from MH i2c: E2 FD 00 56 18 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 17 [00:05: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:05:37]wFMCommunicate OK [00:05:37]wFMCommunicate request_size=4 [00:05:37]MH_SAM_APDU [00:05:37]CAPDU: 80 17 00 00 [00:05:37]Write to MH i2c: E2 08 00 57 18 80 17 00 00 00 00 00 00 EF [00:05:37]Write i2c OK [00:05:37]MH_I2C_Read... [00:05:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:05:37]Read from MH i2c: E2 [00:05:37]MH_I2C_Read... [00:05:37]Read from MH i2c: E2 FD 00 [00:05:37]MH_I2C_Read... [00:05:37]Read from MH i2c: E2 FD 00 57 18 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 70 [00:05:37]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:05:37]wFMCommunicate OK [00:05:37]wFMCommunicate request_size=4 [00:05:37]MH_SAM_APDU [00:05:37]CAPDU: 80 17 00 00 [00:05:37]Write to MH i2c: E2 08 00 58 18 80 17 00 00 00 00 00 00 F0 [00:05:37]Write i2c OK [00:05:37]MH_I2C_Read... [00:05:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 214! [00:05:37]Read from MH i2c: E2 [00:05:37]MH_I2C_Read... [00:05:37]Read from MH i2c: E2 D9 00 [00:05:37]MH_I2C_Read... [00:05:37]Read from MH i2c: E2 D9 00 58 18 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 CF [00:05: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 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:05:37]wFMCommunicate OK [00:05:37]SAM_PROTO_GetShiftData done [00:05:37]1194 (1208) - счетчики итогов смены [00:05:37] 1134 (4) - 188 - количество чеков со всеми признаками расчетов [00:05:37] 1129 (158) - счетчики операций «приход» [00:05:37] 1135 (4) - 182 - количество чеков по признаку расчетов [00:05:37] 1201 (4) - 299885.74 - общая итоговая сумма в чеках [00:05:37] 1136 (4) - 174707.00 - итоговая сумма в чеках наличными [00:05:37] 1138 (3) - 125178.74 - итоговая сумма в чеках безналичными [00:05:37] 1024 (123) - суммы налогов [00:05:37] 1006 (9) - суммы НДС [00:05:37] 1010 (1) - 0% - код ставки НДС [00:05:37] 1011 (0) - 0.00 - сумма НДС по ставке [00:05:37] 1006 (12) - суммы НДС [00:05:37] 1010 (1) - 12% - код ставки НДС [00:05:37] 1011 (3) - 31852.50 - сумма НДС по ставке [00:05:37] 1007 (9) - суммы НСП [00:05:37] 1014 (1) - 0% - код ставки НСП [00:05:37] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:37] 1007 (12) - суммы НСП [00:05:37] 1014 (1) - 1% - код ставки НСП [00:05:37] 1015 (3) - 2654.10 - сумма НСП по ставке [00:05:37] 1007 (9) - суммы НСП [00:05:37] 1014 (1) - 2% - код ставки НСП [00:05:37] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:37] 1007 (9) - суммы НСП [00:05:37] 1014 (1) - 3% - код ставки НСП [00:05:37] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:37] 1007 (9) - суммы НСП [00:05:37] 1014 (1) - 5% - код ставки НСП [00:05:37] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:37] 1007 (9) - суммы НСП [00:05:37] 1014 (1) - 0,50% - код ставки НСП [00:05:38] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:38] 1007 (9) - суммы НСП [00:05:38] 1014 (1) - 1,50% - код ставки НСП [00:05:38] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:38] 1130 (152) - счетчики операций «возврат прихода» [00:05:38] 1135 (4) - 6 - количество чеков по признаку расчетов [00:05:38] 1201 (3) - 18072.00 - общая итоговая сумма в чеках [00:05:38] 1136 (3) - 18072.00 - итоговая сумма в чеках наличными [00:05:38] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:05:38] 1024 (122) - суммы налогов [00:05:38] 1006 (9) - суммы НДС [00:05:38] 1010 (1) - 0% - код ставки НДС [00:05:38] 1011 (0) - 0.00 - сумма НДС по ставке [00:05:38] 1006 (12) - суммы НДС [00:05:38] 1010 (1) - 12% - код ставки НДС [00:05:38] 1011 (3) - 1919.49 - сумма НДС по ставке [00:05:38] 1007 (9) - суммы НСП [00:05:38] 1014 (1) - 0% - код ставки НСП [00:05:38] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:38] 1007 (11) - суммы НСП [00:05:38] 1014 (1) - 1% - код ставки НСП [00:05:38] 1015 (2) - 159.95 - сумма НСП по ставке [00:05:38] 1007 (9) - суммы НСП [00:05:38] 1014 (1) - 2% - код ставки НСП [00:05:38] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:38] 1007 (9) - суммы НСП [00:05:38] 1014 (1) - 3% - код ставки НСП [00:05:38] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:38] 1007 (9) - суммы НСП [00:05:38] 1014 (1) - 5% - код ставки НСП [00:05:38] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:38] 1007 (9) - суммы НСП [00:05:38] 1014 (1) - 0,50% - код ставки НСП [00:05:38] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:38] 1007 (9) - суммы НСП [00:05:38] 1014 (1) - 1,50% - код ставки НСП [00:05:38] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:38] 1131 (141) - счетчики операций «расход» [00:05:38] 1135 (4) - 0 - количество чеков по признаку расчетов [00:05:38] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:05:38] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:05:38] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:05:38] 1024 (117) - суммы налогов [00:05:38] 1006 (9) - суммы НДС [00:05:38] 1010 (1) - 0% - код ставки НДС [00:05:38] 1011 (0) - 0.00 - сумма НДС по ставке [00:05:38] 1006 (9) - суммы НДС [00:05:38] 1010 (1) - 12% - код ставки НДС [00:05:38] 1011 (0) - 0.00 - сумма НДС по ставке [00:05:38] 1007 (9) - суммы НСП [00:05:38] 1014 (1) - 0% - код ставки НСП [00:05:38] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:38] 1007 (9) - суммы НСП [00:05:38] 1014 (1) - 1% - код ставки НСП [00:05:38] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:38] 1007 (9) - суммы НСП [00:05:38] 1014 (1) - 2% - код ставки НСП [00:05:38] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:38] 1007 (9) - суммы НСП [00:05:38] 1014 (1) - 3% - код ставки НСП [00:05:38] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:38] 1007 (9) - суммы НСП [00:05:38] 1014 (1) - 5% - код ставки НСП [00:05:38] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:38] 1007 (9) - суммы НСП [00:05:38] 1014 (1) - 0,50% - код ставки НСП [00:05:38] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:38] 1007 (9) - суммы НСП [00:05:38] 1014 (1) - 1,50% - код ставки НСП [00:05:38] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:38] 1132 (141) - счетчики операций «возврат расхода» [00:05:38] 1135 (4) - 0 - количество чеков по признаку расчетов [00:05:38] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:05:38] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:05:38] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:05:38] 1024 (117) - суммы налогов [00:05:38] 1006 (9) - суммы НДС [00:05:38] 1010 (1) - 0% - код ставки НДС [00:05:38] 1011 (0) - 0.00 - сумма НДС по ставке [00:05:38] 1006 (9) - суммы НДС [00:05:38] 1010 (1) - 12% - код ставки НДС [00:05:38] 1011 (0) - 0.00 - сумма НДС по ставке [00:05:38] 1007 (9) - суммы НСП [00:05:38] 1014 (1) - 0% - код ставки НСП [00:05:38] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:38] 1007 (9) - суммы НСП [00:05:38] 1014 (1) - 1% - код ставки НСП [00:05:38] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:38] 1007 (9) - суммы НСП [00:05:38] 1014 (1) - 2% - код ставки НСП [00:05:38] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:38] 1007 (9) - суммы НСП [00:05:38] 1014 (1) - 3% - код ставки НСП [00:05:38] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:38] 1007 (9) - суммы НСП [00:05:38] 1014 (1) - 5% - код ставки НСП [00:05:38] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:38] 1007 (9) - суммы НСП [00:05:38] 1014 (1) - 0,50% - код ставки НСП [00:05:38] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:38] 1007 (9) - суммы НСП [00:05:38] 1014 (1) - 1,50% - код ставки НСП [00:05:38] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:38] 1133 (588) - - счетчики коррекции - не используются [00:05:38]SetTLVBufToDocument [00:05:38]Processing tag 1194 (04AA) [00:05:38]Load OK [00:05:38]SetTLVBufToDocument [00:05:38]Processing tag 1134 (046E) [00:05:38]Malloc new data [00:05:38]Processing tag 1129 (0469) [00:05:38]Load OK [00:05:38]SetTLVBufToDocument [00:05:38]Processing tag 1135 (046F) [00:05:38]Malloc new data [00:05:38]Processing tag 1201 (04B1) [00:05:38]Malloc new data [00:05:38]Processing tag 1136 (0470) [00:05:38]Malloc new data [00:05:38]Processing tag 1138 (0472) [00:05:38]Malloc new data [00:05:38]Processing tag 1024 (0400) [00:05:38]Load OK [00:05:38]SetTLVBufToDocument [00:05:38]Processing tag 1006 (03EE) [00:05:38]Load OK [00:05:38]SetTLVBufToDocument [00:05:38]Processing tag 1010 (03F2) [00:05:38]Malloc new data [00:05:38]Processing tag 1011 (03F3) [00:05:38]Malloc new data [00:05:38]SetTLVBufToDocument err=0 [00:05:38]Processing tag 1006 (03EE) [00:05:38]Load OK [00:05:38]SetTLVBufToDocument [00:05:38]Processing tag 1010 (03F2) [00:05:38]Malloc new data [00:05:38]Processing tag 1011 (03F3) [00:05:38]Malloc new data [00:05:38]SetTLVBufToDocument err=0 [00:05:38]Processing tag 1007 (03EF) [00:05:38]Load OK [00:05:38]SetTLVBufToDocument [00:05:38]Processing tag 1014 (03F6) [00:05:38]Malloc new data [00:05:38]Processing tag 1015 (03F7) [00:05:38]Malloc new data [00:05:38]SetTLVBufToDocument err=0 [00:05:38]Processing tag 1007 (03EF) [00:05:38]Load OK [00:05:38]SetTLVBufToDocument [00:05:38]Processing tag 1014 (03F6) [00:05:38]Malloc new data [00:05:38]OFD Sender: No OFD packet to send [00:05:38]Processing tag 1015 (03F7) [00:05:38]Malloc new data [00:05:38]SetTLVBufToDocument err=0 [00:05:38]Processing tag 1007 (03EF) [00:05:38]Load OK [00:05:38]SetTLVBufToDocument [00:05:38]Processing tag 1014 (03F6) [00:05:38]Malloc new data [00:05:38]Processing tag 1015 (03F7) [00:05:38]Malloc new data [00:05:38]SetTLVBufToDocument err=0 [00:05:38]Processing tag 1007 (03EF) [00:05:38]Load OK [00:05:38]SetTLVBufToDocument [00:05:38]Processing tag 1014 (03F6) [00:05:38]Malloc new data [00:05:38]Processing tag 1015 (03F7) [00:05:38]Malloc new data [00:05:38]SetTLVBufToDocument err=0 [00:05:38]Processing tag 1007 (03EF) [00:05:38]Load OK [00:05:38]SetTLVBufToDocument [00:05:38]Processing tag 1014 (03F6) [00:05:38]Malloc new data [00:05:38]Processing tag 1015 (03F7) [00:05:38]Malloc new data [00:05:38]SetTLVBufToDocument err=0 [00:05:38]Processing tag 1007 (03EF) [00:05:38]Load OK [00:05:38]SetTLVBufToDocument [00:05:38]Processing tag 1014 (03F6) [00:05:38]Malloc new data [00:05:38]Processing tag 1015 (03F7) [00:05:38]Malloc new data [00:05:38]SetTLVBufToDocument err=0 [00:05:38]Processing tag 1007 (03EF) [00:05:38]Load OK [00:05:38]SetTLVBufToDocument [00:05:38]Processing tag 1014 (03F6) [00:05:38]Malloc new data [00:05:38]Processing tag 1015 (03F7) [00:05:38]Malloc new data [00:05:38]SetTLVBufToDocument err=0 [00:05:38]SetTLVBufToDocument err=0 [00:05:38]SetTLVBufToDocument err=0 [00:05:38]Processing tag 1130 (046A) [00:05:38]Load OK [00:05:38]SetTLVBufToDocument [00:05:38]Processing tag 1135 (046F) [00:05:38]Malloc new data [00:05:38]Processing tag 1201 (04B1) [00:05:38]Malloc new data [00:05:38]Processing tag 1136 (0470) [00:05:38]Malloc new data [00:05:38]Processing tag 1138 (0472) [00:05:38]Malloc new data [00:05:38]Processing tag 1024 (0400) [00:05:38]Load OK [00:05:38]SetTLVBufToDocument [00:05:38]Processing tag 1006 (03EE) [00:05:38]Load OK [00:05:38]SetTLVBufToDocument [00:05:38]Processing tag 1010 (03F2) [00:05:38]Malloc new data [00:05:38]Processing tag 1011 (03F3) [00:05:38]Malloc new data [00:05:38]SetTLVBufToDocument err=0 [00:05:38]Processing tag 1006 (03EE) [00:05:38]Load OK [00:05:38]SetTLVBufToDocument [00:05:38]Processing tag 1010 (03F2) [00:05:38]Malloc new data [00:05:38]Processing tag 1011 (03F3) [00:05:38]Malloc new data [00:05:38]SetTLVBufToDocument err=0 [00:05:38]Processing tag 1007 (03EF) [00:05:38]Load OK [00:05:38]SetTLVBufToDocument [00:05:38]Processing tag 1014 (03F6) [00:05:38]Malloc new data [00:05:38]Processing tag 1015 (03F7) [00:05:38]Malloc new data [00:05:38]SetTLVBufToDocument err=0 [00:05:38]Processing tag 1007 (03EF) [00:05:38]Load OK [00:05:38]SetTLVBufToDocument [00:05:38]Processing tag 1014 (03F6) [00:05:38]Malloc new data [00:05:38]Processing tag 1015 (03F7) [00:05:38]Malloc new data [00:05:38]SetTLVBufToDocument err=0 [00:05:38]Processing tag 1007 (03EF) [00:05:38]Load OK [00:05:38]SetTLVBufToDocument [00:05:38]Processing tag 1014 (03F6) [00:05:38]Malloc new data [00:05:38]Processing tag 1015 (03F7) [00:05:38]Malloc new data [00:05:38]SetTLVBufToDocument err=0 [00:05:38]Processing tag 1007 (03EF) [00:05:38]Load OK [00:05:38]SetTLVBufToDocument [00:05:38]Processing tag 1014 (03F6) [00:05:38]Malloc new data [00:05:38]Processing tag 1015 (03F7) [00:05:38]Malloc new data [00:05:38]SetTLVBufToDocument err=0 [00:05:38]Processing tag 1007 (03EF) [00:05:38]Load OK [00:05:38]SetTLVBufToDocument [00:05:38]Processing tag 1014 (03F6) [00:05:38]Malloc new data [00:05:38]Processing tag 1015 (03F7) [00:05:38]Malloc new data [00:05:38]SetTLVBufToDocument err=0 [00:05:38]Processing tag 1007 (03EF) [00:05:38]Load OK [00:05:38]SetTLVBufToDocument [00:05:38]Processing tag 1014 (03F6) [00:05:38]Malloc new data [00:05:38]Processing tag 1015 (03F7) [00:05:38]Malloc new data [00:05:38]SetTLVBufToDocument err=0 [00:05:38]Processing tag 1007 (03EF) [00:05:38]Load OK [00:05:38]SetTLVBufToDocument [00:05:38]Processing tag 1014 (03F6) [00:05:38]Malloc new data [00:05:38]Processing tag 1015 (03F7) [00:05:38]Malloc new data [00:05:38]SetTLVBufToDocument err=0 [00:05:38]SetTLVBufToDocument err=0 [00:05:38]SetTLVBufToDocument err=0 [00:05:38]Processing tag 1131 (046B) [00:05:38]Load OK [00:05:38]SetTLVBufToDocument [00:05:38]Processing tag 1135 (046F) [00:05:38]Malloc new data [00:05:38]Processing tag 1201 (04B1) [00:05:38]Malloc new data [00:05:38]Processing tag 1136 (0470) [00:05:38]Malloc new data [00:05:38]Processing tag 1138 (0472) [00:05:38]Malloc new data [00:05:38]Processing tag 1024 (0400) [00:05:38]Load OK [00:05:38]SetTLVBufToDocument [00:05:38]Processing tag 1006 (03EE) [00:05:38]Load OK [00:05:38]SetTLVBufToDocument [00:05:38]Processing tag 1010 (03F2) [00:05:38]Malloc new data [00:05:38]Processing tag 1011 (03F3) [00:05:38]Malloc new data [00:05:38]SetTLVBufToDocument err=0 [00:05:38]Processing tag 1006 (03EE) [00:05:38]Load OK [00:05:38]SetTLVBufToDocument [00:05:38]Processing tag 1010 (03F2) [00:05:38]Malloc new data [00:05:38]Processing tag 1011 (03F3) [00:05:38]Malloc new data [00:05:38]SetTLVBufToDocument err=0 [00:05:38]Processing tag 1007 (03EF) [00:05:38]Load OK [00:05:38]SetTLVBufToDocument [00:05:38]Processing tag 1014 (03F6) [00:05:38]Malloc new data [00:05:38]Processing tag 1015 (03F7) [00:05:38]Malloc new data [00:05:38]SetTLVBufToDocument err=0 [00:05:38]Processing tag 1007 (03EF) [00:05:38]Load OK [00:05:38]SetTLVBufToDocument [00:05:38]Processing tag 1014 (03F6) [00:05:38]Malloc new data [00:05:38]Processing tag 1015 (03F7) [00:05:38]Malloc new data [00:05:38]SetTLVBufToDocument err=0 [00:05:38]Processing tag 1007 (03EF) [00:05:38]Load OK [00:05:38]SetTLVBufToDocument [00:05:38]Processing tag 1014 (03F6) [00:05:38]Malloc new data [00:05:38]Processing tag 1015 (03F7) [00:05:38]Malloc new data [00:05:38]SetTLVBufToDocument err=0 [00:05:38]Processing tag 1007 (03EF) [00:05:38]Load OK [00:05:38]SetTLVBufToDocument [00:05:38]Processing tag 1014 (03F6) [00:05:38]Malloc new data [00:05:38]Processing tag 1015 (03F7) [00:05:38]Malloc new data [00:05:38]SetTLVBufToDocument err=0 [00:05:38]Processing tag 1007 (03EF) [00:05:38]Load OK [00:05:38]SetTLVBufToDocument [00:05:38]Processing tag 1014 (03F6) [00:05:38]Malloc new data [00:05:38]Processing tag 1015 (03F7) [00:05:38]Malloc new data [00:05:38]SetTLVBufToDocument err=0 [00:05:38]Processing tag 1007 (03EF) [00:05:38]Load OK [00:05:38]SetTLVBufToDocument [00:05:38]Processing tag 1014 (03F6) [00:05:38]Malloc new data [00:05:38]Processing tag 1015 (03F7) [00:05:38]Malloc new data [00:05:38]SetTLVBufToDocument err=0 [00:05:38]Processing tag 1007 (03EF) [00:05:38]Load OK [00:05:38]SetTLVBufToDocument [00:05:38]Processing tag 1014 (03F6) [00:05:38]Malloc new data [00:05:38]Processing tag 1015 (03F7) [00:05:38]Malloc new data [00:05:38]SetTLVBufToDocument err=0 [00:05:38]SetTLVBufToDocument err=0 [00:05:38]SetTLVBufToDocument err=0 [00:05:39]Processing tag 1132 (046C) [00:05:39]Load OK [00:05:39]SetTLVBufToDocument [00:05:39]Processing tag 1135 (046F) [00:05:39]Malloc new data [00:05:39]Processing tag 1201 (04B1) [00:05:39]Malloc new data [00:05:39]Processing tag 1136 (0470) [00:05:39]Malloc new data [00:05:39]Processing tag 1138 (0472) [00:05:39]Malloc new data [00:05:39]Processing tag 1024 (0400) [00:05:39]Load OK [00:05:39]SetTLVBufToDocument [00:05:39]Processing tag 1006 (03EE) [00:05:39]Load OK [00:05:39]SetTLVBufToDocument [00:05:39]Processing tag 1010 (03F2) [00:05:39]Malloc new data [00:05:39]Processing tag 1011 (03F3) [00:05:39]Malloc new data [00:05:39]SetTLVBufToDocument err=0 [00:05:39]Processing tag 1006 (03EE) [00:05:39]Load OK [00:05:39]SetTLVBufToDocument [00:05:39]Processing tag 1010 (03F2) [00:05:39]Malloc new data [00:05:39]Processing tag 1011 (03F3) [00:05:39]Malloc new data [00:05:39]SetTLVBufToDocument err=0 [00:05:39]Processing tag 1007 (03EF) [00:05:39]Load OK [00:05:39]SetTLVBufToDocument [00:05:39]Processing tag 1014 (03F6) [00:05:39]Malloc new data [00:05:39]Processing tag 1015 (03F7) [00:05:39]Malloc new data [00:05:39]SetTLVBufToDocument err=0 [00:05:39]Processing tag 1007 (03EF) [00:05:39]Load OK [00:05:39]SetTLVBufToDocument [00:05:39]Processing tag 1014 (03F6) [00:05:39]Malloc new data [00:05:39]Processing tag 1015 (03F7) [00:05:39]Malloc new data [00:05:39]SetTLVBufToDocument err=0 [00:05:39]Processing tag 1007 (03EF) [00:05:39]Load OK [00:05:39]SetTLVBufToDocument [00:05:39]Processing tag 1014 (03F6) [00:05:39]Malloc new data [00:05:39]Processing tag 1015 (03F7) [00:05:39]Malloc new data [00:05:39]SetTLVBufToDocument err=0 [00:05:39]Processing tag 1007 (03EF) [00:05:39]Load OK [00:05:39]SetTLVBufToDocument [00:05:39]Processing tag 1014 (03F6) [00:05:39]Malloc new data [00:05:39]Processing tag 1015 (03F7) [00:05:39]Malloc new data [00:05:39]SetTLVBufToDocument err=0 [00:05:39]Processing tag 1007 (03EF) [00:05:39]Load OK [00:05:39]SetTLVBufToDocument [00:05:39]Processing tag 1014 (03F6) [00:05:39]Malloc new data [00:05:39]Processing tag 1015 (03F7) [00:05:39]Malloc new data [00:05:39]SetTLVBufToDocument err=0 [00:05:39]Processing tag 1007 (03EF) [00:05:39]Load OK [00:05:39]SetTLVBufToDocument [00:05:39]Processing tag 1014 (03F6) [00:05:39]Malloc new data [00:05:39]Processing tag 1015 (03F7) [00:05:39]Malloc new data [00:05:39]SetTLVBufToDocument err=0 [00:05:39]Processing tag 1007 (03EF) [00:05:39]Load OK [00:05:39]SetTLVBufToDocument [00:05:39]Processing tag 1014 (03F6) [00:05:39]Malloc new data [00:05:39]Processing tag 1015 (03F7) [00:05:39]Malloc new data [00:05:39]SetTLVBufToDocument err=0 [00:05:39]SetTLVBufToDocument err=0 [00:05:39]SetTLVBufToDocument err=0 [00:05:39]Processing tag 1133 (046D) [00:05:39]Malloc new data [00:05:39]SetTLVBufToDocument err=0 [00:05:39]SetTLVBufToDocument err=0 [00:05:39]Malloc new data [00:05:39]SAM_PROTO_GetFMData [00:05:39]wFMCommunicate request_size=4 [00:05:39]MH_SAM_APDU [00:05:39]CAPDU: 80 13 03 00 [00:05:39]Write to MH i2c: E2 08 00 59 18 80 13 03 00 00 00 00 00 F0 [00:05:39]Write i2c OK [00:05:39]MH_I2C_Read... [00:05:39]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:05:39]Read from MH i2c: E2 [00:05:39]MH_I2C_Read... [00:05:39]Read from MH i2c: E2 FD 00 [00:05:39]MH_I2C_Read... [00:05:39]Read from MH i2c: E2 FD 00 59 18 00 C5 04 85 04 C1 04 6E 04 04 00 83 94 01 00 69 04 A3 00 6F 04 04 00 24 90 01 00 B1 04 05 00 AB 58 32 41 04 70 04 05 00 8C 5B 27 5C 03 72 04 04 00 1F FD 0A E5 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 A6 BC AE 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 57 C3 A3 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 5F 04 00 00 B1 04 04 00 F4 C4 3D 18 70 04 04 00 F4 C4 3D 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 75 10 93 02 EF 03 09 90 00 B3 [00:05:39]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 83 94 01 00 69 04 A3 00 6F 04 04 00 24 90 01 00 B1 04 05 00 AB 58 32 41 04 70 04 05 00 8C 5B 27 5C 03 72 04 04 00 1F FD 0A E5 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 A6 BC AE 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 57 C3 A3 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 5F 04 00 00 B1 04 04 00 F4 C4 3D 18 70 04 04 00 F4 C4 3D 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 75 10 93 02 EF 03 09 90 00 [00:05:39]wFMCommunicate OK [00:05:39]wFMCommunicate request_size=4 [00:05:39]MH_SAM_APDU [00:05:39]CAPDU: 80 17 00 00 [00:05:39]Write to MH i2c: E2 08 00 5A 18 80 17 00 00 00 00 00 00 F2 [00:05:39]Write i2c OK [00:05:39]MH_I2C_Read... [00:05:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:05:40]Read from MH i2c: E2 [00:05:40]MH_I2C_Read... [00:05:40]Read from MH i2c: E2 FD 00 [00:05:40]MH_I2C_Read... [00:05:40]Read from MH i2c: E2 FD 00 5A 18 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B8 EB 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 81 [00:05:40]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B8 EB 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:05:40]wFMCommunicate OK [00:05:40]wFMCommunicate request_size=4 [00:05:40]MH_SAM_APDU [00:05:40]CAPDU: 80 17 00 00 [00:05:40]Write to MH i2c: E2 08 00 5B 18 80 17 00 00 00 00 00 00 F3 [00:05:40]Write i2c OK [00:05:40]MH_I2C_Read... [00:05:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:05:40]Read from MH i2c: E2 [00:05:40]MH_I2C_Read... [00:05:40]Read from MH i2c: E2 FD 00 [00:05:40]MH_I2C_Read... [00:05:40]Read from MH i2c: E2 FD 00 5B 18 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 05 [00:05:40]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:05:40]wFMCommunicate OK [00:05:40]wFMCommunicate request_size=4 [00:05:40]MH_SAM_APDU [00:05:40]CAPDU: 80 17 00 00 [00:05:40]Write to MH i2c: E2 08 00 5C 18 80 17 00 00 00 00 00 00 F4 [00:05:40]Write i2c OK [00:05:40]MH_I2C_Read... [00:05:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:05:41]Read from MH i2c: E2 [00:05:41]MH_I2C_Read... [00:05:41]Read from MH i2c: E2 FD 00 [00:05:41]MH_I2C_Read... [00:05:41]Read from MH i2c: E2 FD 00 5C 18 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 80 [00:05:41]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:05:41]wFMCommunicate OK [00:05:41]wFMCommunicate request_size=4 [00:05:41]MH_SAM_APDU [00:05:41]CAPDU: 80 17 00 00 [00:05:41]Write to MH i2c: E2 08 00 5D 18 80 17 00 00 00 00 00 00 F5 [00:05:41]Write i2c OK [00:05:41]MH_I2C_Read... [00:05:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:05:41]Read from MH i2c: E2 [00:05:41]MH_I2C_Read... [00:05:41]Read from MH i2c: E2 E2 00 [00:05:41]MH_I2C_Read... [00:05:41]Read from MH i2c: E2 E2 00 5D 18 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 D3 [00:05:41]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:05:41]wFMCommunicate OK [00:05:41]SAM_PROTO_GetFMData done [00:05:41]FM_GetFMData:85 04 C1 04 6E 04 04 00 83 94 01 00 69 04 A3 00 6F 04 04 00 24 90 01 00 B1 04 05 00 AB 58 32 41 04 70 04 05 00 8C 5B 27 5C 03 72 04 04 00 1F FD 0A E5 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 A6 BC AE 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 57 C3 A3 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 5F 04 00 00 B1 04 04 00 F4 C4 3D 18 70 04 04 00 F4 C4 3D 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 75 10 93 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 B8 EB 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:05:42]oper:6F 04 04 00 24 90 01 00 B1 04 05 00 AB 58 32 41 04 70 04 05 00 8C 5B 27 5C 03 72 04 04 00 1F FD 0A E5 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 A6 BC AE 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 57 C3 A3 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:05:42]total:AB 58 32 41 04 [00:05:42]Malloc new data [00:05:42]oper:6F 04 04 00 5F 04 00 00 B1 04 04 00 F4 C4 3D 18 70 04 04 00 F4 C4 3D 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 75 10 93 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 B8 EB 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:05:42]total:F4 C4 3D 18 [00:05:42]Malloc new data [00:05:42]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:05:42]total: [00:05:42]Malloc new data [00:05:42]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:05:42]total: [00:05:42]Malloc new data [00:05:42]KKMPrepareXReportFMData err=0 [00:05:42]Х отчет ИНН: 02508201610067 Кассир: Асанбаев Н. 22.06.2024 00:05 Смена: 266 РНМ: 0000000000092785 ЗНМ: 0300000164 СНО: Общий режим Всего чеков: 188 ИТОГИ ПРИХОД Чеков: 182 Общий итог: 299885.74 Итого наличными: 174707.00 Итого безнал.: 125178.74 НДС 0% : 0.00 НДС 12% : 31852.50 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 2654.10 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 6 Общий итог: 18072.00 Итого наличными: 18072.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 1919.49 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 159.95 ИТОГИ РАСХОД Чеков: 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 Нал. в кассе: 156635.00 НС Приход: 182736877.23 НС Возвр.Прихода: 4067013.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000875093 [00:05:42]StoreToDocumentArchive [00:05:42]MH_GetDate [00:05:42]Write to MH i2c: F0 00 00 5E 18 65 [00:05:42]Write i2c OK [00:05:42]MH_I2C_Read... [00:05:42]Read from MH i2c: F0 [00:05:42]MH_I2C_Read... [00:05:42]Read from MH i2c: F0 09 00 [00:05:42]MH_I2C_Read... [00:05:42]Read from MH i2c: F0 09 00 5E 18 00 58 15 76 66 BD 8F 7C 64 E3 [00:05:42]shift 266 fd 1719014744 [00:05:42]Create dir for shift 0266 [00:05:42]save to /storage/0266/doc_1719014744 [00:05:42]save last doc name /storage/0266/doc_1719014744 to /storage/kkm_last_doc_name [00:05:42]save OK [00:05:42]Clear old archive folders... [00:05:42]NVStorageSaveData kkm_last_timestamp [00:05:42]File name is /storage/kkm_last_timestamp [00:05:42]Write 4 bytes [00:05:42]NVStorageSaveData done [00:05:42]ExternCall_PrintAddStr [00:05:42]wPrintStart [00:05:42]Write to MH i2c: 01 00 00 5F 18 77 [00:05:42]Write i2c OK [00:05:42]MH_I2C_Read... [00:05:42]Read from MH i2c: 01 [00:05:42]MH_I2C_Read... [00:05:42]Read from MH i2c: 01 07 00 [00:05:42]MH_I2C_Read... [00:05:42]Read from MH i2c: 01 07 00 5F 18 00 00 00 00 00 FF 0F 8C [00:05:42]RasterBufferAndPrint [00:05:42]line Х отчет [00:05:42]line ИНН: 02508201610067 [00:05:42]line Кассир: Асанбаев Н. [00:05:42]line 22.06.2024 00:05 [00:05:42]line Смена: 266 [00:05:42]line РНМ: 0000000000092785 [00:05:42]line ЗНМ: 0300000164 [00:05:42]line СНО: Общий режим [00:05:42]line Всего чеков: 188 [00:05:42]line ИТОГИ ПРИХОД [00:05:42]line Чеков: 182 [00:05:42]line Общий итог: 299885.74 [00:05:42]line Итого наличными: 174707.00 [00:05:42]line Итого безнал.: 125178.74 [00:05:42]line НДС 0% : 0.00 [00:05:42]line НДС 12% : 31852.50 [00:05:42]line НСП 0% : 0.00 [00:05:42]line НСП 1,50% : 0.00 [00:05:42]line НСП 0,50% : 0.00 [00:05:42]line НСП 5% : 0.00 [00:05:42]line НСП 3% : 0.00 [00:05:42]line НСП 2% : 0.00 [00:05:42]line НСП 1% : 2654.10 [00:05:42]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:05:42]line Чеков: 6 [00:05:42]line Общий итог: 18072.00 [00:05:42]line Итого наличными: 18072.00 [00:05:42]line Итого безнал.: 0.00 [00:05:42]line НДС 0% : 0.00 [00:05:42]line НДС 12% : 1919.49 [00:05:42]line НСП 0% : 0.00 [00:05:42]line НСП 1,50% : 0.00 [00:05:42]line НСП 0,50% : 0.00 [00:05:42]line НСП 5% : 0.00 [00:05:42]line НСП 3% : 0.00 [00:05:42]line НСП 2% : 0.00 [00:05:42]line НСП 1% : 159.95 [00:05:42]line ИТОГИ РАСХОД [00:05:42]line Чеков: 0 [00:05:42]line Общий итог: 0.00 [00:05:42]line Итого наличными: 0.00 [00:05:42]line Итого безнал.: 0.00 [00:05:42]line НДС 0% : 0.00 [00:05:42]line НДС 12% : 0.00 [00:05:42]line НСП 0% : 0.00 [00:05:42]line НСП 1,50% : 0.00 [00:05:42]line НСП 0,50% : 0.00 [00:05:42]line НСП 5% : 0.00 [00:05:42]line НСП 3% : 0.00 [00:05:42]line НСП 2% : 0.00 [00:05:42]line НСП 1% : 0.00 [00:05:42]line ИТОГИ ВОЗВРАТ РАСХОДА [00:05:42]line Чеков: 0 [00:05:42]line Общий итог: 0.00 [00:05:42]line Итого наличными: 0.00 [00:05:42]line Итого безнал.: 0.00 [00:05:42]line НДС 0% : 0.00 [00:05:42]line НДС 12% : 0.00 [00:05:42]line НСП 0% : 0.00 [00:05:42]line НСП 1,50% : 0.00 [00:05:42]line НСП 0,50% : 0.00 [00:05:42]line НСП 5% : 0.00 [00:05:42]line НСП 3% : 0.00 [00:05:42]line НСП 2% : 0.00 [00:05:42]line НСП 1% : 0.00 [00:05:42]line Сумма внесений: 0.00 [00:05:42]line Сумма выплат: 0.00 [00:05:42]line Нал. в кассе: 156635.00 [00:05:42]line НС Приход: 182736877.23 [00:05:42]line НС Возвр.Прихода: 4067013.00 [00:05:42]line НС Расход: 0.00 [00:05:42]line НС Возвр.Расхода: 0.00 [00:05:42]line ФМ: 0000000000875093 [00:05:42]written 0, free lines is 4095 [00:05:43]OFD Sender: No OFD packet to send [00:05:43]Write to MH i2c: 01 00 00 AA 18 C2 [00:05:43]Write i2c OK [00:05:43]MH_I2C_Read... [00:05:43]Read from MH i2c: 01 [00:05:43]MH_I2C_Read... [00:05:43]Read from MH i2c: 01 07 00 [00:05:43]MH_I2C_Read... [00:05:43]Read from MH i2c: 01 07 00 AA 18 00 00 00 00 00 C5 0A 98 [00:05:43]RasterBufferAndPrint [00:05:43]line [00:05:43]line [00:05:43]line [00:05:43]line [00:05:43]line [00:05:43]written 0, free lines is 2792 [00:05:43]MH_Cut [00:05:43]Write to MH i2c: D1 01 00 B1 18 01 9B [00:05:43]Write i2c OK [00:05:43]MH_I2C_Read... [00:05:43]Read from MH i2c: D1 [00:05:43]MH_I2C_Read... [00:05:43]Read from MH i2c: D1 01 00 [00:05:43]MH_I2C_Read... [00:05:43]Read from MH i2c: D1 01 00 B1 18 00 9A [00:05:43]Write to MH i2c: 01 00 00 B2 18 CA [00:05:43]Write i2c OK [00:05:43]MH_I2C_Read... [00:05:44]*** Cut start [00:05:44]*** Partial cut [00:05:44]*** CUTSNS_PIN = 1 [00:05:44]*** CUTSNS_PIN = 0 [00:05:44]*** Brake cut motor [00:05:45]Read from MH i2c: 01 [00:05:45]MH_I2C_Read... [00:05:45]*** Stop cut motor [00:05:45]*** Cut end [00:05:45]Read from MH i2c: 01 07 00 [00:05:45]MH_I2C_Read... [00:05:45]Read from MH i2c: 01 07 00 B2 18 00 00 00 00 00 FF 0F DF [00:05:45]process_action x_report done [00:05:45]requested_data is exist [00:05:45]produce_requested_data [00:05:45]requested_item fd.num is exist - process it [00:05:45]SAM_PROTO_GetFieldsCounters [00:05:45]wFMCommunicate request_size=4 [00:05:45]MH_SAM_APDU [00:05:45]CAPDU: 80 13 00 00 [00:05:45]Write to MH i2c: E2 08 00 B3 18 80 13 00 00 00 00 00 00 47 [00:05:45]Write i2c OK [00:05:45]MH_I2C_Read... [00:05:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:05:45]Read from MH i2c: E2 [00:05:45]MH_I2C_Read... [00:05:45]Read from MH i2c: E2 62 00 [00:05:45]MH_I2C_Read... [00:05:45]Read from MH i2c: E2 62 00 B3 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 49 97 01 00 0E 04 04 00 63 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 E7 [00:05: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 49 97 01 00 0E 04 04 00 63 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 [00:05:45]wFMCommunicate OK [00:05:45]SAM_PROTO_GetFieldsCounters done [00:05:45]requested_item shift.num is exist - process it [00:05:45]requested_item shift.opened is exist - process it [00:05:45]req_shift_opened [00:05:45]FM_GetShiftState [00:05:45]SAM_PROTO_GetShiftState [00:05:45]wFMCommunicate request_size=4 [00:05:45]MH_SAM_APDU [00:05:45]CAPDU: 80 13 01 00 [00:05:45]Write to MH i2c: E2 08 00 B4 18 80 13 01 00 00 00 00 00 49 [00:05:45]Write i2c OK [00:05:45]MH_I2C_Read... [00:05:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:05:45]Read from MH i2c: E2 [00:05:45]MH_I2C_Read... [00:05:45]Read from MH i2c: E2 0E 00 [00:05:45]MH_I2C_Read... [00:05:45]Read from MH i2c: E2 0E 00 B4 18 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 5C [00:05:45]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [00:05:45]wFMCommunicate OK [00:05:45]SAM_PROTO_GetShiftState done [00:05:45]FM_GetShiftState done [00:05:45]req_shift_opened done [00:05:45]requested_item shift.open_date is exist - process it [00:05:45]req_shift_open_date [00:05:45]req_shift_open_date done [00:05:45]produce_requested_data done [00:05:45]produce_requested_data return {"fd.num":104265,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [00:05:45]process_action_free x_report [00:05:45]json_value_free [00:05:45]json_value_free done [00:05:45]process_json_proto returns [00:05:45]Send response to host [00:05:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":104265,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [00:05:45]free response buf [00:05:45]execute_script done [00:05:45]execute_script returns [00:05:45]free content buf [00:05:45]Sock 7.Close socket [00:05:45]Sock 7.Thread stoped [00:05:48]OFD Sender: No OFD packet to send [00:05:53]OFD Sender: No OFD packet to send [00:05:58]OFD Sender: No OFD packet to send [00:06:03]OFD Sender: No OFD packet to send [00:06:08]OFD Sender: No OFD packet to send [00:06:09]accept exits with 9 [00:06:09]New connection [00:06:09]New thread 3067473252 created [00:06:09]Thread 3067616612 joined [00:06:09]Waiting for new connection... [00:06:09] Sock 9.Parse request [00:06:09]Sock 9.Check first char [00:06:09]Sock 9.First char is OK [00:06:09]request: POST /json_proto HTTP/1.0 [00:06:09]Method: POST [00:06:09]URL: /json_proto [00:06:09]Method is POST - this is cgi request [00:06:09]url: /json_proto [00:06:09]query_string will be loaded in cgi processing [00:06:09]execute_cgi json_proto POST (null) [00:06:09]execute_cgi path=json_proto method=POST [00:06:09]POST find Content-Length [00:06:09]Host: 172.17.38.133:8080 [00:06:09]Content-Length: 215 [00:06:09]Content-Type: application/json [00:06:09] [00:06:09]POST finish read [00:06:09]Found Content-Length = 215 [00:06:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:06:09]execute_script... [00:06:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:06:09]POST & json_proto [00:06:09]process_json_proto [00:06:09]json parsed OK: [00:06:09]protocol is kg_v1.0 [00:06:09]action value=get_value [00:06:09]process_action get_value [00:06:09]cmd_get_value [00:06:09]process_action get_value done [00:06:09]requested_data is exist [00:06:09]produce_requested_data [00:06:09]requested_item kkm.sn is exist - process it [00:06:09]requested_item kkm.ver is exist - process it [00:06:09]requested_item fm.sn is exist - process it [00:06:09]wFMCommunicate request_size=4 [00:06:09]MH_SAM_APDU [00:06:09]CAPDU: 80 11 00 00 [00:06:09]Write to MH i2c: E2 08 00 B5 18 80 11 00 00 00 00 00 00 47 [00:06:09]Write i2c OK [00:06:09]MH_I2C_Read... [00:06:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:06:09]Read from MH i2c: E2 [00:06:09]MH_I2C_Read... [00:06:09]Read from MH i2c: E2 17 00 [00:06:09]MH_I2C_Read... [00:06:09]Read from MH i2c: E2 17 00 B5 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 9A [00:06:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [00:06:09]wFMCommunicate OK [00:06:09]requested_item fd.num is exist - process it [00:06:09]SAM_PROTO_GetFieldsCounters [00:06:09]wFMCommunicate request_size=4 [00:06:09]MH_SAM_APDU [00:06:09]CAPDU: 80 13 00 00 [00:06:09]Write to MH i2c: E2 08 00 B6 18 80 13 00 00 00 00 00 00 4A [00:06:09]Write i2c OK [00:06:09]MH_I2C_Read... [00:06:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:06:09]Read from MH i2c: E2 [00:06:09]MH_I2C_Read... [00:06:09]Read from MH i2c: E2 62 00 [00:06:09]MH_I2C_Read... [00:06:09]Read from MH i2c: E2 62 00 B6 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 49 97 01 00 0E 04 04 00 63 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 EA [00:06: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 49 97 01 00 0E 04 04 00 63 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 [00:06:09]wFMCommunicate OK [00:06:09]SAM_PROTO_GetFieldsCounters done [00:06:09]requested_item shift.num is exist - process it [00:06:09]requested_item shift.opened is exist - process it [00:06:09]req_shift_opened [00:06:09]FM_GetShiftState [00:06:09]SAM_PROTO_GetShiftState [00:06:09]wFMCommunicate request_size=4 [00:06:09]MH_SAM_APDU [00:06:09]CAPDU: 80 13 01 00 [00:06:09]Write to MH i2c: E2 08 00 B7 18 80 13 01 00 00 00 00 00 4C [00:06:09]Write i2c OK [00:06:09]MH_I2C_Read... [00:06:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:06:09]Read from MH i2c: E2 [00:06:09]MH_I2C_Read... [00:06:09]Read from MH i2c: E2 0E 00 [00:06:09]MH_I2C_Read... [00:06:09]Read from MH i2c: E2 0E 00 B7 18 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 5F [00:06:09]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [00:06:09]wFMCommunicate OK [00:06:09]SAM_PROTO_GetShiftState done [00:06:09]FM_GetShiftState done [00:06:09]req_shift_opened done [00:06:09]requested_item shift.open_date is exist - process it [00:06:09]req_shift_open_date [00:06:09]req_shift_open_date done [00:06:09]produce_requested_data done [00:06:09]produce_requested_data return {"kkm.sn":"0300000164","kkm.ver":"001","fm.sn":"0000000000875093","fd.num":104265,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [00:06:09]process_action_free get_value [00:06:09]json_value_free [00:06:09]json_value_free done [00:06:09]process_json_proto returns [00:06:09]Send response to host [00:06:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000164","kkm.ver":"001","fm.sn":"0000000000875093","fd.num":104265,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [00:06:09]free response buf [00:06:09]execute_script done [00:06:09]execute_script returns [00:06:09]free content buf [00:06:09]Sock 9.Close socket [00:06:09]Sock 9.Thread stoped [00:06:09]accept exits with 7 [00:06:09]New connection [00:06:09]New thread 3067616612 created [00:06:09]Thread 3067473252 joined [00:06:09]Waiting for new connection... [00:06:09] Sock 7.Parse request [00:06:09]Sock 7.Check first char [00:06:09]Sock 7.First char is OK [00:06:09]request: POST /json_proto HTTP/1.0 [00:06:09]Method: POST [00:06:09]URL: /json_proto [00:06:09]Method is POST - this is cgi request [00:06:09]url: /json_proto [00:06:09]query_string will be loaded in cgi processing [00:06:09]execute_cgi json_proto POST (null) [00:06:09]execute_cgi path=json_proto method=POST [00:06:09]POST find Content-Length [00:06:09]Host: 172.17.38.133:8080 [00:06:09]Content-Length: 331 [00:06:09]Content-Type: application/json [00:06:09] [00:06:09]POST finish read [00:06:09]Found Content-Length = 331 [00:06:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:06:09]execute_script... [00:06:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:06:09]POST & json_proto [00:06:09]process_json_proto [00:06:09]json parsed OK: [00:06:09]protocol is kg_v1.0 [00:06:09]action value=get_value [00:06:09]process_action get_value [00:06:09]cmd_get_value [00:06:09]process_action get_value done [00:06:09]requested_data is exist [00:06:09]produce_requested_data [00:06:09]requested_item fm.sale.total is exist - process it [00:06:09]SAM_PROTO_GetFMData [00:06:09]wFMCommunicate request_size=4 [00:06:09]MH_SAM_APDU [00:06:09]CAPDU: 80 13 03 00 [00:06:09]Write to MH i2c: E2 08 00 B8 18 80 13 03 00 00 00 00 00 4F [00:06:09]Write i2c OK [00:06:09]MH_I2C_Read... [00:06:09]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:06:09]Read from MH i2c: E2 [00:06:09]MH_I2C_Read... [00:06:09]Read from MH i2c: E2 FD 00 [00:06:09]MH_I2C_Read... [00:06:09]Read from MH i2c: E2 FD 00 B8 18 00 C5 04 85 04 C1 04 6E 04 04 00 83 94 01 00 69 04 A3 00 6F 04 04 00 24 90 01 00 B1 04 05 00 AB 58 32 41 04 70 04 05 00 8C 5B 27 5C 03 72 04 04 00 1F FD 0A E5 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 A6 BC AE 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 57 C3 A3 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 5F 04 00 00 B1 04 04 00 F4 C4 3D 18 70 04 04 00 F4 C4 3D 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 75 10 93 02 EF 03 09 90 00 12 [00:06:10]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 83 94 01 00 69 04 A3 00 6F 04 04 00 24 90 01 00 B1 04 05 00 AB 58 32 41 04 70 04 05 00 8C 5B 27 5C 03 72 04 04 00 1F FD 0A E5 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 A6 BC AE 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 57 C3 A3 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 5F 04 00 00 B1 04 04 00 F4 C4 3D 18 70 04 04 00 F4 C4 3D 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 75 10 93 02 EF 03 09 90 00 [00:06:10]wFMCommunicate OK [00:06:10]wFMCommunicate request_size=4 [00:06:10]MH_SAM_APDU [00:06:10]CAPDU: 80 17 00 00 [00:06:10]Write to MH i2c: E2 08 00 B9 18 80 17 00 00 00 00 00 00 51 [00:06:10]Write i2c OK [00:06:10]MH_I2C_Read... [00:06:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:10]Read from MH i2c: E2 [00:06:10]MH_I2C_Read... [00:06:10]Read from MH i2c: E2 FD 00 [00:06:10]MH_I2C_Read... [00:06:10]Read from MH i2c: E2 FD 00 B9 18 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B8 EB 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 E0 [00:06:10]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B8 EB 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:06:10]wFMCommunicate OK [00:06:10]wFMCommunicate request_size=4 [00:06:10]MH_SAM_APDU [00:06:10]CAPDU: 80 17 00 00 [00:06:10]Write to MH i2c: E2 08 00 BA 18 80 17 00 00 00 00 00 00 52 [00:06:10]Write i2c OK [00:06:10]MH_I2C_Read... [00:06:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:10]Read from MH i2c: E2 [00:06:10]MH_I2C_Read... [00:06:10]Read from MH i2c: E2 FD 00 [00:06:10]MH_I2C_Read... [00:06:10]Read from MH i2c: E2 FD 00 BA 18 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 64 [00:06:10]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [00:06:10]wFMCommunicate OK [00:06:10]wFMCommunicate request_size=4 [00:06:10]MH_SAM_APDU [00:06:10]CAPDU: 80 17 00 00 [00:06:10]Write to MH i2c: E2 08 00 BB 18 80 17 00 00 00 00 00 00 53 [00:06:10]Write i2c OK [00:06:10]MH_I2C_Read... [00:06:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:11]Read from MH i2c: E2 [00:06:11]MH_I2C_Read... [00:06:11]Read from MH i2c: E2 FD 00 [00:06:11]MH_I2C_Read... [00:06:11]Read from MH i2c: E2 FD 00 BB 18 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 DF [00:06:11]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [00:06:11]wFMCommunicate OK [00:06:11]wFMCommunicate request_size=4 [00:06:11]MH_SAM_APDU [00:06:11]CAPDU: 80 17 00 00 [00:06:11]Write to MH i2c: E2 08 00 BC 18 80 17 00 00 00 00 00 00 54 [00:06:11]Write i2c OK [00:06:11]MH_I2C_Read... [00:06:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:06:11]Read from MH i2c: E2 [00:06:11]MH_I2C_Read... [00:06:11]Read from MH i2c: E2 E2 00 [00:06:11]MH_I2C_Read... [00:06:11]Read from MH i2c: E2 E2 00 BC 18 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 32 [00:06:11]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:06:11]wFMCommunicate OK [00:06:11]SAM_PROTO_GetFMData done [00:06:11]requested_item fm.sale_refund.total is exist - process it [00:06:11]requested_item fm.buy.total is exist - process it [00:06:11]requested_item shift.sale.total is exist - process it [00:06:11]SAM_PROTO_GetShiftData [00:06:11]wFMCommunicate request_size=4 [00:06:11]MH_SAM_APDU [00:06:11]CAPDU: 80 13 02 00 [00:06:11]Write to MH i2c: E2 08 00 BD 18 80 13 02 00 00 00 00 00 53 [00:06:11]Write i2c OK [00:06:11]MH_I2C_Read... [00:06:12]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:06:12]Read from MH i2c: E2 [00:06:12]MH_I2C_Read... [00:06:12]Read from MH i2c: E2 FD 00 [00:06:12]MH_I2C_Read... [00:06:12]Read from MH i2c: E2 FD 00 BD 18 00 BC 04 AA 04 B8 04 6E 04 04 00 BC 00 00 00 69 04 9E 00 6F 04 04 00 B6 00 00 00 B1 04 04 00 DE 96 C9 01 70 04 04 00 EC 94 0A 01 72 04 03 00 F2 01 BF 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 62 9A 30 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 C2 0C 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 06 00 00 00 B1 04 03 00 60 93 1B 70 04 03 00 60 93 1B 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 CD ED 02 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 30 [00:06:12]RAPDU: BC 04 AA 04 B8 04 6E 04 04 00 BC 00 00 00 69 04 9E 00 6F 04 04 00 B6 00 00 00 B1 04 04 00 DE 96 C9 01 70 04 04 00 EC 94 0A 01 72 04 03 00 F2 01 BF 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 62 9A 30 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 C2 0C 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 06 00 00 00 B1 04 03 00 60 93 1B 70 04 03 00 60 93 1B 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 CD ED 02 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 [00:06:12]wFMCommunicate OK [00:06:12]wFMCommunicate request_size=4 [00:06:12]MH_SAM_APDU [00:06:12]CAPDU: 80 17 00 00 [00:06:12]Write to MH i2c: E2 08 00 BE 18 80 17 00 00 00 00 00 00 56 [00:06:12]Write i2c OK [00:06:12]MH_I2C_Read... [00:06:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:12]Read from MH i2c: E2 [00:06:12]MH_I2C_Read... [00:06:12]Read from MH i2c: E2 FD 00 [00:06:12]MH_I2C_Read... [00:06:12]Read from MH i2c: E2 FD 00 BE 18 00 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7B 3E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 B9 [00:06:12]RAPDU: 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7B 3E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:06:12]wFMCommunicate OK [00:06:12]wFMCommunicate request_size=4 [00:06:12]MH_SAM_APDU [00:06:12]CAPDU: 80 17 00 00 [00:06:12]Write to MH i2c: E2 08 00 BF 18 80 17 00 00 00 00 00 00 57 [00:06:12]Write i2c OK [00:06:12]MH_I2C_Read... [00:06:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:13]Read from MH i2c: E2 [00:06:13]MH_I2C_Read... [00:06:13]Read from MH i2c: E2 FD 00 [00:06:13]MH_I2C_Read... [00:06:13]Read from MH i2c: E2 FD 00 BF 18 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 80 [00:06:13]RAPDU: 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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:06:13]wFMCommunicate OK [00:06:13]wFMCommunicate request_size=4 [00:06:13]MH_SAM_APDU [00:06:13]CAPDU: 80 17 00 00 [00:06:13]Write to MH i2c: E2 08 00 C0 18 80 17 00 00 00 00 00 00 58 [00:06:13]Write i2c OK [00:06:13]MH_I2C_Read... [00:06:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:13]Read from MH i2c: E2 [00:06:13]MH_I2C_Read... [00:06:13]Read from MH i2c: E2 FD 00 [00:06:13]MH_I2C_Read... [00:06:13]Read from MH i2c: E2 FD 00 C0 18 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 D9 [00:06:13]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 OFD Sender: No OFD packet to send [00:06:13]EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:06:13]wFMCommunicate OK [00:06:13]wFMCommunicate request_size=4 [00:06:13]MH_SAM_APDU [00:06:13]CAPDU: 80 17 00 00 [00:06:13]Write to MH i2c: E2 08 00 C1 18 80 17 00 00 00 00 00 00 59 [00:06:13]Write i2c OK [00:06:13]MH_I2C_Read... [00:06:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 214! [00:06:14]Read from MH i2c: E2 [00:06:14]MH_I2C_Read... [00:06:14]Read from MH i2c: E2 D9 00 [00:06:14]MH_I2C_Read... [00:06:14]Read from MH i2c: E2 D9 00 C1 18 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 38 [00:06:14]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:06:14]wFMCommunicate OK [00:06:14]SAM_PROTO_GetShiftData done [00:06:14]requested_item shift.sale.total_cash is exist - process it [00:06:14]requested_item shift.sale_refund.total is exist - process it [00:06:14]requested_item shift.sale_refund.total_cash is exist - process it [00:06:14]requested_item shift.buy.total is exist - process it [00:06:14]requested_item shift.buy.total_cash is exist - process it [00:06:14]produce_requested_data done [00:06:14]produce_requested_data return {"fm.sale.total":182736877.23,"fm.sale_refund.total":4067013.00,"fm.buy.total":0.00,"shift.sale.total":299885.74,"shift.sale.total_cash":174707.00,"shift.sale_refund.total":18072.00,"shift.sale_refund.total_cash":18072.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:06:14]process_action_free get_value [00:06:14]json_value_free [00:06:14]json_value_free done [00:06:14]process_json_proto returns [00:06:14]Send response to host [00:06:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":182736877.23,"fm.sale_refund.total":4067013.00,"fm.buy.total":0.00,"shift.sale.total":299885.74,"shift.sale.total_cash":174707.00,"shift.sale_refund.total":18072.00,"shift.sale_refund.total_cash":18072.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:06:14]free response buf [00:06:14]execute_script done [00:06:14]execute_script returns [00:06:14]free content buf [00:06:14]Sock 7.Close socket [00:06:14]Sock 7.Thread stoped [00:06:14]accept exits with 9 [00:06:14]New connection [00:06:14]New thread 3067473252 created [00:06:14]Thread 3067616612 joined [00:06:14]Waiting for new connection... [00:06:14] Sock 9.Parse request [00:06:14]Sock 9.Check first char [00:06:14]Sock 9.First char is OK [00:06:14]request: POST /json_proto HTTP/1.0 [00:06:14]Method: POST [00:06:14]URL: /json_proto [00:06:14]Method is POST - this is cgi request [00:06:14]url: /json_proto [00:06:14]query_string will be loaded in cgi processing [00:06:14]execute_cgi json_proto POST (null) [00:06:14]execute_cgi path=json_proto method=POST [00:06:14]POST find Content-Length [00:06:14]Host: 172.17.38.133:8080 [00:06:14]Content-Length: 331 [00:06:14]Content-Type: application/json [00:06:14] [00:06:14]POST finish read [00:06:14]Found Content-Length = 331 [00:06:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:06:14]execute_script... [00:06:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:06:14]POST & json_proto [00:06:14]process_json_proto [00:06:14]json parsed OK: [00:06:14]protocol is kg_v1.0 [00:06:14]action value=get_value [00:06:14]process_action get_value [00:06:14]cmd_get_value [00:06:14]process_action get_value done [00:06:14]requested_data is exist [00:06:14]produce_requested_data [00:06:14]requested_item fm.sale.total is exist - process it [00:06:14]SAM_PROTO_GetFMData [00:06:14]wFMCommunicate request_size=4 [00:06:14]MH_SAM_APDU [00:06:14]CAPDU: 80 13 03 00 [00:06:14]Write to MH i2c: E2 08 00 C2 18 80 13 03 00 00 00 00 00 59 [00:06:14]Write i2c OK [00:06:14]MH_I2C_Read... [00:06:14]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:06:14]Read from MH i2c: E2 [00:06:14]MH_I2C_Read... [00:06:14]Read from MH i2c: E2 FD 00 [00:06:14]MH_I2C_Read... [00:06:14]Read from MH i2c: E2 FD 00 C2 18 00 C5 04 85 04 C1 04 6E 04 04 00 83 94 01 00 69 04 A3 00 6F 04 04 00 24 90 01 00 B1 04 05 00 AB 58 32 41 04 70 04 05 00 8C 5B 27 5C 03 72 04 04 00 1F FD 0A E5 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 A6 BC AE 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 57 C3 A3 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 5F 04 00 00 B1 04 04 00 F4 C4 3D 18 70 04 04 00 F4 C4 3D 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 75 10 93 02 EF 03 09 90 00 1C [00:06:15]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 83 94 01 00 69 04 A3 00 6F 04 04 00 24 90 01 00 B1 04 05 00 AB 58 32 41 04 70 04 05 00 8C 5B 27 5C 03 72 04 04 00 1F FD 0A E5 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 A6 BC AE 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 57 C3 A3 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 5F 04 00 00 B1 04 04 00 F4 C4 3D 18 70 04 04 00 F4 C4 3D 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 75 10 93 02 EF 03 09 90 00 [00:06:15]wFMCommunicate OK [00:06:15]wFMCommunicate request_size=4 [00:06:15]MH_SAM_APDU [00:06:15]CAPDU: 80 17 00 00 [00:06:15]Write to MH i2c: E2 08 00 C3 18 80 17 00 00 00 00 00 00 5B [00:06:15]Write i2c OK [00:06:15]MH_I2C_Read... [00:06:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:15]Read from MH i2c: E2 [00:06:15]MH_I2C_Read... [00:06:15]Read from MH i2c: E2 FD 00 [00:06:15]MH_I2C_Read... [00:06:15]Read from MH i2c: E2 FD 00 C3 18 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B8 EB 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 EA [00:06:15]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B8 EB 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:06:15]wFMCommunicate OK [00:06:15]wFMCommunicate request_size=4 [00:06:15]MH_SAM_APDU [00:06:15]CAPDU: 80 17 00 00 [00:06:15]Write to MH i2c: E2 08 00 C4 18 80 17 00 00 00 00 00 00 5C [00:06:15]Write i2c OK [00:06:15]MH_I2C_Read... [00:06:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:15]Read from MH i2c: E2 [00:06:15]MH_I2C_Read... [00:06:15]Read from MH i2c: E2 FD 00 [00:06:15]MH_I2C_Read... [00:06:15]Read from MH i2c: E2 FD 00 C4 18 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 6E [00:06:16]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [00:06:16]wFMCommunicate OK [00:06:16]wFMCommunicate request_size=4 [00:06:16]MH_SAM_APDU [00:06:16]CAPDU: 80 17 00 00 [00:06:16]Write to MH i2c: E2 08 00 C5 18 80 17 00 00 00 00 00 00 5D [00:06:16]Write i2c OK [00:06:16]MH_I2C_Read... [00:06:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:16]Read from MH i2c: E2 [00:06:16]MH_I2C_Read... [00:06:16]Read from MH i2c: E2 FD 00 [00:06:16]MH_I2C_Read... [00:06:16]Read from MH i2c: E2 FD 00 C5 18 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 E9 [00:06:16]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [00:06:16]wFMCommunicate OK [00:06:16]wFMCommunicate request_size=4 [00:06:16]MH_SAM_APDU [00:06:16]CAPDU: 80 17 00 00 [00:06:16]Write to MH i2c: E2 08 00 C6 18 80 17 00 00 00 00 00 00 5E [00:06:16]Write i2c OK [00:06:16]MH_I2C_Read... [00:06:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:06:16]Read from MH i2c: E2 [00:06:16]MH_I2C_Read... [00:06:16]Read from MH i2c: E2 E2 00 [00:06:16]MH_I2C_Read... [00:06:16]Read from MH i2c: E2 E2 00 C6 18 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 3C [00:06:17]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:06:17]wFMCommunicate OK [00:06:17]SAM_PROTO_GetFMData done [00:06:17]requested_item fm.sale_refund.total is exist - process it [00:06:17]requested_item fm.buy.total is exist - process it [00:06:17]requested_item shift.sale.total is exist - process it [00:06:17]SAM_PROTO_GetShiftData [00:06:17]wFMCommunicate request_size=4 [00:06:17]MH_SAM_APDU [00:06:17]CAPDU: 80 13 02 00 [00:06:17]Write to MH i2c: E2 08 00 C7 18 80 13 02 00 00 00 00 00 5D [00:06:17]Write i2c OK [00:06:17]MH_I2C_Read... [00:06:17]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:06:17]Read from MH i2c: E2 [00:06:17]MH_I2C_Read... [00:06:17]Read from MH i2c: E2 FD 00 [00:06:17]MH_I2C_Read... [00:06:17]Read from MH i2c: E2 FD 00 C7 18 00 BC 04 AA 04 B8 04 6E 04 04 00 BC 00 00 00 69 04 9E 00 6F 04 04 00 B6 00 00 00 B1 04 04 00 DE 96 C9 01 70 04 04 00 EC 94 0A 01 72 04 03 00 F2 01 BF 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 62 9A 30 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 C2 0C 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 06 00 00 00 B1 04 03 00 60 93 1B 70 04 03 00 60 93 1B 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 CD ED 02 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 3A [00:06:17]RAPDU: BC 04 AA 04 B8 04 6E 04 04 00 BC 00 00 00 69 04 9E 00 6F 04 04 00 B6 00 00 00 B1 04 04 00 DE 96 C9 01 70 04 04 00 EC 94 0A 01 72 04 03 00 F2 01 BF 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 62 9A 30 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 C2 0C 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 06 00 00 00 B1 04 03 00 60 93 1B 70 04 03 00 60 93 1B 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 CD ED 02 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 [00:06:17]wFMCommunicate OK [00:06:17]wFMCommunicate request_size=4 [00:06:17]MH_SAM_APDU [00:06:17]CAPDU: 80 17 00 00 [00:06:17]Write to MH i2c: E2 08 00 C8 18 80 17 00 00 00 00 00 00 60 [00:06:17]Write i2c OK [00:06:17]MH_I2C_Read... [00:06:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:18]Read from MH i2c: E2 [00:06:18]MH_I2C_Read... [00:06:18]Read from MH i2c: E2 FD 00 [00:06:18]MH_I2C_Read... [00:06:18]Read from MH i2c: E2 FD 00 C8 18 00 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7B 3E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 C3 [00:06:18]RAPDU: 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7B 3E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:06:18]wFMCommunicate OK [00:06:18]wFMCommunicate request_size=4 [00:06:18]MH_SAM_APDU [00:06:18]CAPDU: 80 17 00 00 [00:06:18]Write to MH i2c: E2 08 00 C9 18 80 17 00 00 00 00 00 00 61 [00:06:18]Write i2c OK [00:06:18]MH_I2C_Read... [00:06:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:18]Read from MH i2c: E2 [00:06:18]MH_I2C_Read... [00:06:18]Read from MH i2c: E2 FD 00 [00:06:18]MH_I2C_Read... [00:06:18]Read from MH i2c: E2 FD 00 C9 18 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 8A [00:06:18]RAPDU: 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 OFD Sender: No OFD packet to send [00:06:18]EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:06:19]wFMCommunicate OK [00:06:19]wFMCommunicate request_size=4 [00:06:19]MH_SAM_APDU [00:06:19]CAPDU: 80 17 00 00 [00:06:19]Write to MH i2c: E2 08 00 CA 18 80 17 00 00 00 00 00 00 62 [00:06:19]Write i2c OK [00:06:19]MH_I2C_Read... [00:06:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:19]Read from MH i2c: E2 [00:06:19]MH_I2C_Read... [00:06:19]Read from MH i2c: E2 FD 00 [00:06:19]MH_I2C_Read... [00:06:19]Read from MH i2c: E2 FD 00 CA 18 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 E3 [00:06:19]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:06:19]wFMCommunicate OK [00:06:19]wFMCommunicate request_size=4 [00:06:19]MH_SAM_APDU [00:06:19]CAPDU: 80 17 00 00 [00:06:19]Write to MH i2c: E2 08 00 CB 18 80 17 00 00 00 00 00 00 63 [00:06:19]Write i2c OK [00:06:19]MH_I2C_Read... [00:06:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 214! [00:06:19]Read from MH i2c: E2 [00:06:19]MH_I2C_Read... [00:06:19]Read from MH i2c: E2 D9 00 [00:06:19]MH_I2C_Read... [00:06:19]Read from MH i2c: E2 D9 00 CB 18 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 42 [00:06:19]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:06:20]wFMCommunicate OK [00:06:20]SAM_PROTO_GetShiftData done [00:06:20]requested_item shift.sale.total_cash is exist - process it [00:06:20]requested_item shift.sale_refund.total is exist - process it [00:06:20]requested_item shift.sale_refund.total_cash is exist - process it [00:06:20]requested_item shift.buy.total is exist - process it [00:06:20]requested_item shift.buy.total_cash is exist - process it [00:06:20]produce_requested_data done [00:06:20]produce_requested_data return {"fm.sale.total":182736877.23,"fm.sale_refund.total":4067013.00,"fm.buy.total":0.00,"shift.sale.total":299885.74,"shift.sale.total_cash":174707.00,"shift.sale_refund.total":18072.00,"shift.sale_refund.total_cash":18072.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:06:20]process_action_free get_value [00:06:20]json_value_free [00:06:20]json_value_free done [00:06:20]process_json_proto returns [00:06:20]Send response to host [00:06:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":182736877.23,"fm.sale_refund.total":4067013.00,"fm.buy.total":0.00,"shift.sale.total":299885.74,"shift.sale.total_cash":174707.00,"shift.sale_refund.total":18072.00,"shift.sale_refund.total_cash":18072.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:06:20]free response buf [00:06:20]execute_script done [00:06:20]execute_script returns [00:06:20]free content buf [00:06:20]Sock 9.Close socket [00:06:20]Sock 9.Thread stoped [00:06:20]accept exits with 7 [00:06:20]New connection [00:06:20]New thread 3067616612 created [00:06:20]Thread 3067473252 joined [00:06:20]Waiting for new connection... [00:06:20] Sock 7.Parse request [00:06:20]Sock 7.Check first char [00:06:20]Sock 7.First char is OK [00:06:20]request: POST /json_proto HTTP/1.0 [00:06:20]Method: POST [00:06:20]URL: /json_proto [00:06:20]Method is POST - this is cgi request [00:06:20]url: /json_proto [00:06:20]query_string will be loaded in cgi processing [00:06:20]execute_cgi json_proto POST (null) [00:06:20]execute_cgi path=json_proto method=POST [00:06:20]POST find Content-Length [00:06:20]Host: 172.17.38.133:8080 [00:06:20]Content-Length: 260 [00:06:20]Content-Type: application/json [00:06:20] [00:06:20]POST finish read [00:06:20]Found Content-Length = 260 [00:06:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:06:20]execute_script... [00:06:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:06:20]POST & json_proto [00:06:20]process_json_proto [00:06:20]json parsed OK: [00:06:20]protocol is kg_v1.0 [00:06:20]action value=close_shift [00:06:20]process_action close_shift [00:06:20]cmd_close_shift [00:06:20]MH_GetDate [00:06:20]Write to MH i2c: F0 00 00 CC 18 D3 [00:06:20]Write i2c OK [00:06:20]MH_I2C_Read... [00:06:20]Read from MH i2c: F0 [00:06:20]MH_I2C_Read... [00:06:20]Read from MH i2c: F0 09 00 [00:06:20]MH_I2C_Read... [00:06:20]Read from MH i2c: F0 09 00 CC 18 00 7E 15 76 66 BD 8F 7C 64 77 [00:06:20]GetLastDocTimeStamp 1719014737 [00:06:20]current date 1719014782 [00:06:20]FM_GetShiftState [00:06:20]SAM_PROTO_GetShiftState [00:06:20]wFMCommunicate request_size=4 [00:06:20]MH_SAM_APDU [00:06:20]CAPDU: 80 13 01 00 [00:06:20]Write to MH i2c: E2 08 00 CD 18 80 13 01 00 00 00 00 00 62 [00:06:20]Write i2c OK [00:06:20]MH_I2C_Read... [00:06:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:06:20]Read from MH i2c: E2 [00:06:20]MH_I2C_Read... [00:06:20]Read from MH i2c: E2 0E 00 [00:06:20]MH_I2C_Read... [00:06:20]Read from MH i2c: E2 0E 00 CD 18 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 75 [00:06:20]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [00:06:20]wFMCommunicate OK [00:06:20]SAM_PROTO_GetShiftState done [00:06:20]FM_GetShiftState done [00:06:20]KKMCreateCloseShiftDocument [00:06:20]Load OK [00:06:20]Malloc new data [00:06:20]MH_GetDate [00:06:20]Write to MH i2c: F0 00 00 CE 18 D5 [00:06:20]Write i2c OK [00:06:20]MH_I2C_Read... [00:06:20]Read from MH i2c: F0 [00:06:20]MH_I2C_Read... [00:06:20]Read from MH i2c: F0 09 00 [00:06:20]MH_I2C_Read... [00:06:20]Read from MH i2c: F0 09 00 CE 18 00 7E 15 76 66 BD 8F 7C 64 79 [00:06:20]Malloc new data [00:06:20]Malloc new data [00:06:20]Malloc new data [00:06:20]Malloc new data [00:06:20]KKMCreateCloseShiftDocument OK [00:06:20]KKMSetCloseShiftData OK [00:06:20]ProcessDocumentItem done err = 0, tmpTLVsize=71 [00:06:20]tlvbuf is 006FE640 [00:06:20]KKMLoadAndSignCloseShiftData [00:06:20]SAM_PROTO_ProcessDocument [00:06:20]wFMCommunicate request_size=9 [00:06:20]MH_SAM_APDU [00:06:20]CAPDU: 80 15 01 00 04 05 00 47 00 [00:06:20]Write to MH i2c: E2 0C 00 CF 18 80 15 01 00 04 00 05 00 47 00 00 00 BA [00:06:20]Write i2c OK [00:06:20]MH_I2C_Read... [00:06:20]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:06:20]Read from MH i2c: E2 [00:06:20]MH_I2C_Read... [00:06:20]Read from MH i2c: E2 03 00 [00:06:20]MH_I2C_Read... [00:06:20]Read from MH i2c: E2 03 00 CF 18 00 90 00 5B [00:06:20]RAPDU: 90 00 [00:06:20]wFMCommunicate OK [00:06:20]wFMCommunicate request_size=23 [00:06:20]MH_SAM_APDU [00:06:20]CAPDU: 80 15 02 00 12 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 [00:06:20]Write to MH i2c: E2 1A 00 D0 18 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 5D [00:06:20]Write i2c OK [00:06:20]MH_I2C_Read... [00:06:20]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:06:20]Read from MH i2c: E2 [00:06:20]MH_I2C_Read... [00:06:20]Read from MH i2c: E2 03 00 [00:06:20]MH_I2C_Read... [00:06:20]Read from MH i2c: E2 03 00 D0 18 00 90 00 5C [00:06:20]RAPDU: 90 00 [00:06:20]wFMCommunicate OK [00:06:20]wFMCommunicate request_size=30 [00:06:20]MH_SAM_APDU [00:06:20]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:06:20]Write to MH i2c: E2 21 00 D1 18 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 52 [00:06:20]Write i2c OK [00:06:20]MH_I2C_Read... [00:06:20]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:06:20]Read from MH i2c: E2 [00:06:20]MH_I2C_Read... [00:06:20]Read from MH i2c: E2 03 00 [00:06:20]MH_I2C_Read... [00:06:20]Read from MH i2c: E2 03 00 D1 18 00 90 00 5D [00:06:20]RAPDU: 90 00 [00:06:20]wFMCommunicate OK [00:06:20]wFMCommunicate request_size=13 [00:06:20]MH_SAM_APDU [00:06:20]CAPDU: 80 15 02 00 08 F4 03 04 00 7E 15 76 66 [00:06:20]Write to MH i2c: E2 10 00 D2 18 80 15 02 00 08 00 F4 03 04 00 7E 15 76 66 00 00 E4 [00:06:20]Write i2c OK [00:06:20]MH_I2C_Read... [00:06:20]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:06:20]Read from MH i2c: E2 [00:06:20]MH_I2C_Read... [00:06:20]Read from MH i2c: E2 03 00 [00:06:20]MH_I2C_Read... [00:06:20]Read from MH i2c: E2 03 00 D2 18 00 90 00 5E [00:06:20]RAPDU: 90 00 [00:06:20]wFMCommunicate OK [00:06:20]wFMCommunicate request_size=25 [00:06:20]MH_SAM_APDU [00:06:20]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:06:20]Write to MH i2c: E2 1C 00 D3 18 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 D3 [00:06:20]Write i2c OK [00:06:20]MH_I2C_Read... [00:06:20]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:06:20]Read from MH i2c: E2 [00:06:20]MH_I2C_Read... [00:06:20]Read from MH i2c: E2 03 00 [00:06:20]MH_I2C_Read... [00:06:20]Read from MH i2c: E2 03 00 D3 18 00 90 00 5F [00:06:20]RAPDU: 90 00 [00:06:20]wFMCommunicate OK [00:06:20]wFMCommunicate request_size=4 [00:06:20]MH_SAM_APDU [00:06:20]CAPDU: 80 15 03 00 [00:06:20]Write to MH i2c: E2 08 00 D4 18 80 15 03 00 00 00 00 00 6D [00:06:20]Write i2c OK [00:06:20]MH_I2C_Read... [00:06:21]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 250! [00:06:21]Read from MH i2c: E2 [00:06:21]MH_I2C_Read... [00:06:21]Read from MH i2c: E2 FD 00 [00:06:21]MH_I2C_Read... [00:06:21]Read from MH i2c: E2 FD 00 D4 18 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 4A 97 01 00 0E 04 04 00 63 01 00 00 5E 04 04 00 BC 00 00 00 57 04 04 00 BE 00 00 00 AA 04 B8 04 6E 04 04 00 BC 00 00 00 69 04 9E 00 6F 04 04 00 B6 00 00 00 B1 04 04 00 DE 96 C9 01 70 04 04 00 EC 94 0A 01 72 04 03 00 F2 01 BF 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 62 9A 30 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 C2 0C 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 06 00 00 00 B1 04 03 00 60 90 00 9C [00:06:21]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 4A 97 01 00 0E 04 04 00 63 01 00 00 5E 04 04 00 BC 00 00 00 57 04 04 00 BE 00 00 00 AA 04 B8 04 6E 04 04 00 BC 00 00 00 69 04 9E 00 6F 04 04 00 B6 00 00 00 B1 04 04 00 DE 96 C9 01 70 04 04 00 EC 94 0A 01 72 04 03 00 F2 01 BF 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 62 9A 30 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 C2 0C 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 06 00 00 00 B1 04 03 00 60 90 00 [00:06:21]wFMCommunicate OK [00:06:21]SAM_PROTO_ProcessDocument answer len = 1279 [00:06:21]SAM_PROTO_ProcessDocument remain to read = 1031 [00:06:21]wFMCommunicate request_size=4 [00:06:21]MH_SAM_APDU [00:06:21]CAPDU: 80 17 00 00 [00:06:21]Write to MH i2c: E2 08 00 D5 18 80 17 00 00 00 00 00 00 6D [00:06:21]Write i2c OK [00:06:21]MH_I2C_Read... [00:06:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:21]Read from MH i2c: E2 [00:06:21]MH_I2C_Read... [00:06:21]Read from MH i2c: E2 FD 00 [00:06:21]MH_I2C_Read... [00:06:21]Read from MH i2c: E2 FD 00 D5 18 00 93 1B 70 04 03 00 60 93 1B 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 CD ED 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 7B 3E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 77 [00:06:21]RAPDU: 93 1B 70 04 03 00 60 93 1B 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 CD ED 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 7B 3E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:06:22]wFMCommunicate OK [00:06:22]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:06:22]SAM_PROTO_ProcessDocument remain to read = 781 [00:06:22]wFMCommunicate request_size=4 [00:06:22]MH_SAM_APDU [00:06:22]CAPDU: 80 17 00 00 [00:06:22]Write to MH i2c: E2 08 00 D6 18 80 17 00 00 00 00 00 00 6E [00:06:22]Write i2c OK [00:06:22]MH_I2C_Read... [00:06:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:22]Read from MH i2c: E2 [00:06:22]MH_I2C_Read... [00:06:22]Read from MH i2c: E2 FD 00 [00:06:22]MH_I2C_Read... [00:06:22]Read from MH i2c: E2 FD 00 D6 18 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 D4 [00:06:22]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:06:22]wFMCommunicate OK [00:06:22]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:06:22]SAM_PROTO_ProcessDocument remain to read = 531 [00:06:22]wFMCommunicate request_size=4 [00:06:22]MH_SAM_APDU [00:06:22]CAPDU: 80 17 00 00 [00:06:22]Write to MH i2c: E2 08 00 D7 18 80 17 00 00 00 00 00 00 6F [00:06:22]Write i2c OK [00:06:22]MH_I2C_Read... [00:06:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:23]Read from MH i2c: E2 [00:06:23]MH_I2C_Read... [00:06:23]Read from MH i2c: E2 FD 00 [00:06:23]MH_I2C_Read... [00:06:23]Read from MH i2c: E2 FD 00 D7 18 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 10 [00:06:23]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:06:23]wFMCommunicate OK [00:06:23]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:06:23]SAM_PROTO_ProcessDocument remain to read = 281 [00:06:23]wFMCommunicate request_size=4 [00:06:23]MH_SAM_APDU [00:06:23]CAPDU: 80 17 00 00 [00:06:23]Write to MH i2c: E2 08 00 D8 18 80 17 00 00 00 00 00 00 70 [00:06:23]Write i2c OK [00:06:23]MH_I2C_Read... [00:06:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:23]Read from MH i2c: E2 [00:06:23]MH_I2C_Read... [00:06:23]Read from MH i2c: E2 FD 00 [00:06:23]MH_I2C_Read... [00:06:23]Read from MH i2c: E2 FD 00 D8 18 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 1C [00:06:23]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:06:23]wFMCommunicate OK [00:06:23]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:06:23]SAM_PROTO_ProcessDocument remain to read = 31 [00:06:23]wFMCommunicate request_size=4 [00:06:23]MH_SAM_APDU [00:06:23]CAPDU: 80 17 00 00 [00:06:23]Write to MH i2c: E2 08 00 D9 18 80 17 00 00 00 00 00 00 71 [00:06:24]OFD Sender: No OFD packet to send [00:06:24]Write i2c OK [00:06:24]MH_I2C_Read... [00:06:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 31! [00:06:24]Read from MH i2c: E2 [00:06:24]MH_I2C_Read... [00:06:24]Read from MH i2c: E2 22 00 [00:06:24]MH_I2C_Read... [00:06:24]Read from MH i2c: E2 22 00 D9 18 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 A6 BB 1B E6 12 DE 90 00 0D [00:06:24]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 A6 BB 1B E6 12 DE 90 00 [00:06:24]wFMCommunicate OK [00:06:24]SAM_PROTO_ProcessDocument received (without SW) 31 bytes [00:06:24]SAM_PROTO_ProcessDocument done [00:06:24]1209 (1) - 1.0 - номер версии ФФД [00:06:24]1041 (16) - 0000000000875093 - номер ФМ [00:06:24]1040 (4) - 104266 - номер ФД [00:06:24]1038 (4) - 355 - номер смены [00:06:24]1118 (4) - 188 - количество кассовых чеков за смену [00:06:24]1111 (4) - 190 - общее количество ФД за смену [00:06:24]1194 (1208) - счетчики итогов смены [00:06:24] 1134 (4) - 188 - количество чеков со всеми признаками расчетов [00:06:24] 1129 (158) - счетчики операций «приход» [00:06:24] 1135 (4) - 182 - количество чеков по признаку расчетов [00:06:24] 1201 (4) - 299885.74 - общая итоговая сумма в чеках [00:06:24] 1136 (4) - 174707.00 - итоговая сумма в чеках наличными [00:06:24] 1138 (3) - 125178.74 - итоговая сумма в чеках безналичными [00:06:24] 1024 (123) - суммы налогов [00:06:24] 1006 (9) - суммы НДС [00:06:24] 1010 (1) - 0% - код ставки НДС [00:06:24] 1011 (0) - 0.00 - сумма НДС по ставке [00:06:24] 1006 (12) - суммы НДС [00:06:24] 1010 (1) - 12% - код ставки НДС [00:06:24] 1011 (3) - 31852.50 - сумма НДС по ставке [00:06:24] 1007 (9) - суммы НСП [00:06:24] 1014 (1) - 0% - код ставки НСП [00:06:24] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:24] 1007 (12) - суммы НСП [00:06:24] 1014 (1) - 1% - код ставки НСП [00:06:24] 1015 (3) - 2654.10 - сумма НСП по ставке [00:06:24] 1007 (9) - суммы НСП [00:06:24] 1014 (1) - 2% - код ставки НСП [00:06:24] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:24] 1007 (9) - суммы НСП [00:06:24] 1014 (1) - 3% - код ставки НСП [00:06:24] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:24] 1007 (9) - суммы НСП [00:06:24] 1014 (1) - 5% - код ставки НСП [00:06:24] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:24] 1007 (9) - суммы НСП [00:06:24] 1014 (1) - 0,50% - код ставки НСП [00:06:24] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:24] 1007 (9) - суммы НСП [00:06:24] 1014 (1) - 1,50% - код ставки НСП [00:06:24] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:24] 1130 (152) - счетчики операций «возврат прихода» [00:06:24] 1135 (4) - 6 - количество чеков по признаку расчетов [00:06:24] 1201 (3) - 18072.00 - общая итоговая сумма в чеках [00:06:24] 1136 (3) - 18072.00 - итоговая сумма в чеках наличными [00:06:24] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:06:24] 1024 (122) - суммы налогов [00:06:24] 1006 (9) - суммы НДС [00:06:24] 1010 (1) - 0% - код ставки НДС [00:06:24] 1011 (0) - 0.00 - сумма НДС по ставке [00:06:24] 1006 (12) - суммы НДС [00:06:24] 1010 (1) - 12% - код ставки НДС [00:06:24] 1011 (3) - 1919.49 - сумма НДС по ставке [00:06:24] 1007 (9) - суммы НСП [00:06:24] 1014 (1) - 0% - код ставки НСП [00:06:24] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:24] 1007 (11) - суммы НСП [00:06:24] 1014 (1) - 1% - код ставки НСП [00:06:24] 1015 (2) - 159.95 - сумма НСП по ставке [00:06:24] 1007 (9) - суммы НСП [00:06:24] 1014 (1) - 2% - код ставки НСП [00:06:24] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:24] 1007 (9) - суммы НСП [00:06:24] 1014 (1) - 3% - код ставки НСП [00:06:24] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:24] 1007 (9) - суммы НСП [00:06:24] 1014 (1) - 5% - код ставки НСП [00:06:24] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:24] 1007 (9) - суммы НСП [00:06:24] 1014 (1) - 0,50% - код ставки НСП [00:06:24] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:24] 1007 (9) - суммы НСП [00:06:24] 1014 (1) - 1,50% - код ставки НСП [00:06:24] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:24] 1131 (141) - счетчики операций «расход» [00:06:24] 1135 (4) - 0 - количество чеков по признаку расчетов [00:06:24] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:06:24] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:06:24] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:06:24] 1024 (117) - суммы налогов [00:06:24] 1006 (9) - суммы НДС [00:06:24] 1010 (1) - 0% - код ставки НДС [00:06:24] 1011 (0) - 0.00 - сумма НДС по ставке [00:06:24] 1006 (9) - суммы НДС [00:06:24] 1010 (1) - 12% - код ставки НДС [00:06:24] 1011 (0) - 0.00 - сумма НДС по ставке [00:06:24] 1007 (9) - суммы НСП [00:06:24] 1014 (1) - 0% - код ставки НСП [00:06:24] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:24] 1007 (9) - суммы НСП [00:06:24] 1014 (1) - 1% - код ставки НСП [00:06:24] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:24] 1007 (9) - суммы НСП [00:06:24] 1014 (1) - 2% - код ставки НСП [00:06:24] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:24] 1007 (9) - суммы НСП [00:06:24] 1014 (1) - 3% - код ставки НСП [00:06:24] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:24] 1007 (9) - суммы НСП [00:06:24] 1014 (1) - 5% - код ставки НСП [00:06:24] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:24] 1007 (9) - суммы НСП [00:06:24] 1014 (1) - 0,50% - код ставки НСП [00:06:24] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:24] 1007 (9) - суммы НСП [00:06:24] 1014 (1) - 1,50% - код ставки НСП [00:06:24] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:24] 1132 (141) - счетчики операций «возврат расхода» [00:06:24] 1135 (4) - 0 - количество чеков по признаку расчетов [00:06:24] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:06:24] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:06:24] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:06:24] 1024 (117) - суммы налогов [00:06:24] 1006 (9) - суммы НДС [00:06:24] 1010 (1) - 0% - код ставки НДС [00:06:24] 1011 (0) - 0.00 - сумма НДС по ставке [00:06:24] 1006 (9) - суммы НДС [00:06:24] 1010 (1) - 12% - код ставки НДС [00:06:24] 1011 (0) - 0.00 - сумма НДС по ставке [00:06:24] 1007 (9) - суммы НСП [00:06:24] 1014 (1) - 0% - код ставки НСП [00:06:24] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:24] 1007 (9) - суммы НСП [00:06:24] 1014 (1) - 1% - код ставки НСП [00:06:24] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:24] 1007 (9) - суммы НСП [00:06:24] 1014 (1) - 2% - код ставки НСП [00:06:24] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:24] 1007 (9) - суммы НСП [00:06:24] 1014 (1) - 3% - код ставки НСП [00:06:24] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:24] 1007 (9) - суммы НСП [00:06:24] 1014 (1) - 5% - код ставки НСП [00:06:24] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:24] 1007 (9) - суммы НСП [00:06:24] 1014 (1) - 0,50% - код ставки НСП [00:06:24] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:24] 1007 (9) - суммы НСП [00:06:24] 1014 (1) - 1,50% - код ставки НСП [00:06:24] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:24] 1133 (588) - - счетчики коррекции - не используются [00:06:24]1077 (6) - 183322557158110 - ФПД [00:06:24]SetTLVBufToDocument [00:06:24]Processing tag 1209 (04B9) [00:06:24]Malloc new data [00:06:24]Processing tag 1041 (0411) [00:06:24]Processing tag 1040 (0410) [00:06:24]Malloc new data [00:06:24]Processing tag 1038 (040E) [00:06:24]Malloc new data [00:06:24]Processing tag 1118 (045E) [00:06:24]Malloc new data [00:06:24]Processing tag 1111 (0457) [00:06:24]Malloc new data [00:06:24]Processing tag 1194 (04AA) [00:06:24]Load OK [00:06:24]SetTLVBufToDocument [00:06:24]Processing tag 1134 (046E) [00:06:24]Malloc new data [00:06:24]Processing tag 1129 (0469) [00:06:24]Load OK [00:06:24]SetTLVBufToDocument [00:06:24]Processing tag 1135 (046F) [00:06:24]Malloc new data [00:06:24]Processing tag 1201 (04B1) [00:06:24]Malloc new data [00:06:24]Processing tag 1136 (0470) [00:06:24]Malloc new data [00:06:24]Processing tag 1138 (0472) [00:06:24]Malloc new data [00:06:24]Processing tag 1024 (0400) [00:06:24]Load OK [00:06:24]SetTLVBufToDocument [00:06:24]Processing tag 1006 (03EE) [00:06:24]Load OK [00:06:24]SetTLVBufToDocument [00:06:24]Processing tag 1010 (03F2) [00:06:24]Malloc new data [00:06:24]Processing tag 1011 (03F3) [00:06:24]Malloc new data [00:06:24]SetTLVBufToDocument err=0 [00:06:24]Processing tag 1006 (03EE) [00:06:24]Load OK [00:06:24]SetTLVBufToDocument [00:06:24]Processing tag 1010 (03F2) [00:06:24]Malloc new data [00:06:24]Processing tag 1011 (03F3) [00:06:24]Malloc new data [00:06:24]SetTLVBufToDocument err=0 [00:06:24]Processing tag 1007 (03EF) [00:06:24]Load OK [00:06:24]SetTLVBufToDocument [00:06:24]Processing tag 1014 (03F6) [00:06:24]Malloc new data [00:06:24]Processing tag 1015 (03F7) [00:06:24]Malloc new data [00:06:24]SetTLVBufToDocument err=0 [00:06:24]Processing tag 1007 (03EF) [00:06:24]Load OK [00:06:24]SetTLVBufToDocument [00:06:24]Processing tag 1014 (03F6) [00:06:24]Malloc new data [00:06:24]Processing tag 1015 (03F7) [00:06:24]Malloc new data [00:06:24]SetTLVBufToDocument err=0 [00:06:24]Processing tag 1007 (03EF) [00:06:24]Load OK [00:06:24]SetTLVBufToDocument [00:06:24]Processing tag 1014 (03F6) [00:06:24]Malloc new data [00:06:24]Processing tag 1015 (03F7) [00:06:24]Malloc new data [00:06:24]SetTLVBufToDocument err=0 [00:06:24]Processing tag 1007 (03EF) [00:06:24]Load OK [00:06:24]SetTLVBufToDocument [00:06:24]Processing tag 1014 (03F6) [00:06:24]Malloc new data [00:06:24]Processing tag 1015 (03F7) [00:06:24]Malloc new data [00:06:24]SetTLVBufToDocument err=0 [00:06:24]Processing tag 1007 (03EF) [00:06:24]Load OK [00:06:24]SetTLVBufToDocument [00:06:24]Processing tag 1014 (03F6) [00:06:24]Malloc new data [00:06:24]Processing tag 1015 (03F7) [00:06:24]Malloc new data [00:06:24]SetTLVBufToDocument err=0 [00:06:24]Processing tag 1007 (03EF) [00:06:24]Load OK [00:06:24]SetTLVBufToDocument [00:06:24]Processing tag 1014 (03F6) [00:06:24]Malloc new data [00:06:24]Processing tag 1015 (03F7) [00:06:24]Malloc new data [00:06:24]SetTLVBufToDocument err=0 [00:06:24]Processing tag 1007 (03EF) [00:06:24]Load OK [00:06:24]SetTLVBufToDocument [00:06:24]Processing tag 1014 (03F6) [00:06:24]Malloc new data [00:06:24]Processing tag 1015 (03F7) [00:06:24]Malloc new data [00:06:24]SetTLVBufToDocument err=0 [00:06:24]SetTLVBufToDocument err=0 [00:06:24]SetTLVBufToDocument err=0 [00:06:24]Processing tag 1130 (046A) [00:06:24]Load OK [00:06:24]SetTLVBufToDocument [00:06:24]Processing tag 1135 (046F) [00:06:24]Malloc new data [00:06:24]Processing tag 1201 (04B1) [00:06:24]Malloc new data [00:06:24]Processing tag 1136 (0470) [00:06:24]Malloc new data [00:06:24]Processing tag 1138 (0472) [00:06:24]Malloc new data [00:06:24]Processing tag 1024 (0400) [00:06:24]Load OK [00:06:24]SetTLVBufToDocument [00:06:24]Processing tag 1006 (03EE) [00:06:24]Load OK [00:06:24]SetTLVBufToDocument [00:06:24]Processing tag 1010 (03F2) [00:06:24]Malloc new data [00:06:24]Processing tag 1011 (03F3) [00:06:24]Malloc new data [00:06:24]SetTLVBufToDocument err=0 [00:06:24]Processing tag 1006 (03EE) [00:06:24]Load OK [00:06:24]SetTLVBufToDocument [00:06:24]Processing tag 1010 (03F2) [00:06:24]Malloc new data [00:06:24]Processing tag 1011 (03F3) [00:06:24]Malloc new data [00:06:24]SetTLVBufToDocument err=0 [00:06:24]Processing tag 1007 (03EF) [00:06:24]Load OK [00:06:24]SetTLVBufToDocument [00:06:24]Processing tag 1014 (03F6) [00:06:24]Malloc new data [00:06:24]Processing tag 1015 (03F7) [00:06:24]Malloc new data [00:06:24]SetTLVBufToDocument err=0 [00:06:24]Processing tag 1007 (03EF) [00:06:24]Load OK [00:06:24]SetTLVBufToDocument [00:06:24]Processing tag 1014 (03F6) [00:06:24]Malloc new data [00:06:24]Processing tag 1015 (03F7) [00:06:24]Malloc new data [00:06:24]SetTLVBufToDocument err=0 [00:06:24]Processing tag 1007 (03EF) [00:06:24]Load OK [00:06:24]SetTLVBufToDocument [00:06:24]Processing tag 1014 (03F6) [00:06:24]Malloc new data [00:06:24]Processing tag 1015 (03F7) [00:06:24]Malloc new data [00:06:24]SetTLVBufToDocument err=0 [00:06:24]Processing tag 1007 (03EF) [00:06:24]Load OK [00:06:24]SetTLVBufToDocument [00:06:24]Processing tag 1014 (03F6) [00:06:24]Malloc new data [00:06:24]Processing tag 1015 (03F7) [00:06:24]Malloc new data [00:06:24]SetTLVBufToDocument err=0 [00:06:24]Processing tag 1007 (03EF) [00:06:24]Load OK [00:06:24]SetTLVBufToDocument [00:06:24]Processing tag 1014 (03F6) [00:06:25]Malloc new data [00:06:25]Processing tag 1015 (03F7) [00:06:25]Malloc new data [00:06:25]SetTLVBufToDocument err=0 [00:06:25]Processing tag 1007 (03EF) [00:06:25]Load OK [00:06:25]SetTLVBufToDocument [00:06:25]Processing tag 1014 (03F6) [00:06:25]Malloc new data [00:06:25]Processing tag 1015 (03F7) [00:06:25]Malloc new data [00:06:25]SetTLVBufToDocument err=0 [00:06:25]Processing tag 1007 (03EF) [00:06:25]Load OK [00:06:25]SetTLVBufToDocument [00:06:25]Processing tag 1014 (03F6) [00:06:25]Malloc new data [00:06:25]Processing tag 1015 (03F7) [00:06:25]Malloc new data [00:06:25]SetTLVBufToDocument err=0 [00:06:25]SetTLVBufToDocument err=0 [00:06:25]SetTLVBufToDocument err=0 [00:06:25]Processing tag 1131 (046B) [00:06:25]Load OK [00:06:25]SetTLVBufToDocument [00:06:25]Processing tag 1135 (046F) [00:06:25]Malloc new data [00:06:25]Processing tag 1201 (04B1) [00:06:25]Malloc new data [00:06:25]Processing tag 1136 (0470) [00:06:25]Malloc new data [00:06:25]Processing tag 1138 (0472) [00:06:25]Malloc new data [00:06:25]Processing tag 1024 (0400) [00:06:25]Load OK [00:06:25]SetTLVBufToDocument [00:06:25]Processing tag 1006 (03EE) [00:06:25]Load OK [00:06:25]SetTLVBufToDocument [00:06:25]Processing tag 1010 (03F2) [00:06:25]Malloc new data [00:06:25]Processing tag 1011 (03F3) [00:06:25]Malloc new data [00:06:25]SetTLVBufToDocument err=0 [00:06:25]Processing tag 1006 (03EE) [00:06:25]Load OK [00:06:25]SetTLVBufToDocument [00:06:25]Processing tag 1010 (03F2) [00:06:25]Malloc new data [00:06:25]Processing tag 1011 (03F3) [00:06:25]Malloc new data [00:06:25]SetTLVBufToDocument err=0 [00:06:25]Processing tag 1007 (03EF) [00:06:25]Load OK [00:06:25]SetTLVBufToDocument [00:06:25]Processing tag 1014 (03F6) [00:06:25]Malloc new data [00:06:25]Processing tag 1015 (03F7) [00:06:25]Malloc new data [00:06:25]SetTLVBufToDocument err=0 [00:06:25]Processing tag 1007 (03EF) [00:06:25]Load OK [00:06:25]SetTLVBufToDocument [00:06:25]Processing tag 1014 (03F6) [00:06:25]Malloc new data [00:06:25]Processing tag 1015 (03F7) [00:06:25]Malloc new data [00:06:25]SetTLVBufToDocument err=0 [00:06:25]Processing tag 1007 (03EF) [00:06:25]Load OK [00:06:25]SetTLVBufToDocument [00:06:25]Processing tag 1014 (03F6) [00:06:25]Malloc new data [00:06:25]Processing tag 1015 (03F7) [00:06:25]Malloc new data [00:06:25]SetTLVBufToDocument err=0 [00:06:25]Processing tag 1007 (03EF) [00:06:25]Load OK [00:06:25]SetTLVBufToDocument [00:06:25]Processing tag 1014 (03F6) [00:06:25]Malloc new data [00:06:25]Processing tag 1015 (03F7) [00:06:25]Malloc new data [00:06:25]SetTLVBufToDocument err=0 [00:06:25]Processing tag 1007 (03EF) [00:06:25]Load OK [00:06:25]SetTLVBufToDocument [00:06:25]Processing tag 1014 (03F6) [00:06:25]Malloc new data [00:06:25]Processing tag 1015 (03F7) [00:06:25]Malloc new data [00:06:25]SetTLVBufToDocument err=0 [00:06:25]Processing tag 1007 (03EF) [00:06:25]Load OK [00:06:25]SetTLVBufToDocument [00:06:25]Processing tag 1014 (03F6) [00:06:25]Malloc new data [00:06:25]Processing tag 1015 (03F7) [00:06:25]Malloc new data [00:06:25]SetTLVBufToDocument err=0 [00:06:25]Processing tag 1007 (03EF) [00:06:25]Load OK [00:06:25]SetTLVBufToDocument [00:06:25]Processing tag 1014 (03F6) [00:06:25]Malloc new data [00:06:25]Processing tag 1015 (03F7) [00:06:25]Malloc new data [00:06:25]SetTLVBufToDocument err=0 [00:06:25]SetTLVBufToDocument err=0 [00:06:25]SetTLVBufToDocument err=0 [00:06:25]Processing tag 1132 (046C) [00:06:25]Load OK [00:06:25]SetTLVBufToDocument [00:06:25]Processing tag 1135 (046F) [00:06:25]Malloc new data [00:06:25]Processing tag 1201 (04B1) [00:06:25]Malloc new data [00:06:25]Processing tag 1136 (0470) [00:06:25]Malloc new data [00:06:25]Processing tag 1138 (0472) [00:06:25]Malloc new data [00:06:25]Processing tag 1024 (0400) [00:06:25]Load OK [00:06:25]SetTLVBufToDocument [00:06:25]Processing tag 1006 (03EE) [00:06:25]Load OK [00:06:25]SetTLVBufToDocument [00:06:25]Processing tag 1010 (03F2) [00:06:25]Malloc new data [00:06:25]Processing tag 1011 (03F3) [00:06:25]Malloc new data [00:06:25]SetTLVBufToDocument err=0 [00:06:25]Processing tag 1006 (03EE) [00:06:25]Load OK [00:06:25]SetTLVBufToDocument [00:06:25]Processing tag 1010 (03F2) [00:06:25]Malloc new data [00:06:25]Processing tag 1011 (03F3) [00:06:25]Malloc new data [00:06:25]SetTLVBufToDocument err=0 [00:06:25]Processing tag 1007 (03EF) [00:06:25]Load OK [00:06:25]SetTLVBufToDocument [00:06:25]Processing tag 1014 (03F6) [00:06:25]Malloc new data [00:06:25]Processing tag 1015 (03F7) [00:06:25]Malloc new data [00:06:25]SetTLVBufToDocument err=0 [00:06:25]Processing tag 1007 (03EF) [00:06:25]Load OK [00:06:25]SetTLVBufToDocument [00:06:25]Processing tag 1014 (03F6) [00:06:25]Malloc new data [00:06:25]Processing tag 1015 (03F7) [00:06:25]Malloc new data [00:06:25]SetTLVBufToDocument err=0 [00:06:25]Processing tag 1007 (03EF) [00:06:25]Load OK [00:06:25]SetTLVBufToDocument [00:06:25]Processing tag 1014 (03F6) [00:06:25]Malloc new data [00:06:25]Processing tag 1015 (03F7) [00:06:25]Malloc new data [00:06:25]SetTLVBufToDocument err=0 [00:06:25]Processing tag 1007 (03EF) [00:06:25]Load OK [00:06:25]SetTLVBufToDocument [00:06:25]Processing tag 1014 (03F6) [00:06:25]Malloc new data [00:06:25]Processing tag 1015 (03F7) [00:06:25]Malloc new data [00:06:25]SetTLVBufToDocument err=0 [00:06:25]Processing tag 1007 (03EF) [00:06:25]Load OK [00:06:25]SetTLVBufToDocument [00:06:25]Processing tag 1014 (03F6) [00:06:25]Malloc new data [00:06:25]Processing tag 1015 (03F7) [00:06:25]Malloc new data [00:06:25]SetTLVBufToDocument err=0 [00:06:25]Processing tag 1007 (03EF) [00:06:25]Load OK [00:06:25]SetTLVBufToDocument [00:06:25]Processing tag 1014 (03F6) [00:06:25]Malloc new data [00:06:25]Processing tag 1015 (03F7) [00:06:25]Malloc new data [00:06:25]SetTLVBufToDocument err=0 [00:06:25]Processing tag 1007 (03EF) [00:06:25]Load OK [00:06:25]SetTLVBufToDocument [00:06:25]Processing tag 1014 (03F6) [00:06:25]Malloc new data [00:06:25]Processing tag 1015 (03F7) [00:06:25]Malloc new data [00:06:25]SetTLVBufToDocument err=0 [00:06:25]SetTLVBufToDocument err=0 [00:06:25]SetTLVBufToDocument err=0 [00:06:25]Processing tag 1133 (046D) [00:06:25]Malloc new data [00:06:25]SetTLVBufToDocument err=0 [00:06:25]Processing tag 1077 (0435) [00:06:25]Malloc new data [00:06:25]SetTLVBufToDocument err=0 [00:06:25]Malloc new data [00:06:25]SAM_PROTO_GetFMData [00:06:25]wFMCommunicate request_size=4 [00:06:25]MH_SAM_APDU [00:06:25]CAPDU: 80 13 03 00 [00:06:25]Write to MH i2c: E2 08 00 DA 18 80 13 03 00 00 00 00 00 71 [00:06:25]Write i2c OK [00:06:25]MH_I2C_Read... [00:06:25]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:06:25]Read from MH i2c: E2 [00:06:25]MH_I2C_Read... [00:06:25]Read from MH i2c: E2 FD 00 [00:06:25]MH_I2C_Read... [00:06:25]Read from MH i2c: E2 FD 00 DA 18 00 C5 04 85 04 C1 04 6E 04 04 00 83 94 01 00 69 04 A3 00 6F 04 04 00 24 90 01 00 B1 04 05 00 AB 58 32 41 04 70 04 05 00 8C 5B 27 5C 03 72 04 04 00 1F FD 0A E5 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 A6 BC AE 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 57 C3 A3 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 5F 04 00 00 B1 04 04 00 F4 C4 3D 18 70 04 04 00 F4 C4 3D 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 75 10 93 02 EF 03 09 90 00 34 [00:06:25]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 83 94 01 00 69 04 A3 00 6F 04 04 00 24 90 01 00 B1 04 05 00 AB 58 32 41 04 70 04 05 00 8C 5B 27 5C 03 72 04 04 00 1F FD 0A E5 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 A6 BC AE 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 57 C3 A3 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 5F 04 00 00 B1 04 04 00 F4 C4 3D 18 70 04 04 00 F4 C4 3D 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 75 10 93 02 EF 03 09 90 00 [00:06:26]wFMCommunicate OK [00:06:26]wFMCommunicate request_size=4 [00:06:26]MH_SAM_APDU [00:06:26]CAPDU: 80 17 00 00 [00:06:26]Write to MH i2c: E2 08 00 DB 18 80 17 00 00 00 00 00 00 73 [00:06:26]Write i2c OK [00:06:26]MH_I2C_Read... [00:06:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:26]Read from MH i2c: E2 [00:06:26]MH_I2C_Read... [00:06:26]Read from MH i2c: E2 FD 00 [00:06:26]MH_I2C_Read... [00:06:26]Read from MH i2c: E2 FD 00 DB 18 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B8 EB 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 02 [00:06:26]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B8 EB 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:06:26]wFMCommunicate OK [00:06:26]wFMCommunicate request_size=4 [00:06:26]MH_SAM_APDU [00:06:26]CAPDU: 80 17 00 00 [00:06:26]Write to MH i2c: E2 08 00 DC 18 80 17 00 00 00 00 00 00 74 [00:06:26]Write i2c OK [00:06:26]MH_I2C_Read... [00:06:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:26]Read from MH i2c: E2 [00:06:26]MH_I2C_Read... [00:06:26]Read from MH i2c: E2 FD 00 [00:06:26]MH_I2C_Read... [00:06:26]Read from MH i2c: E2 FD 00 DC 18 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 86 [00:06:27]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [00:06:27]wFMCommunicate OK [00:06:27]wFMCommunicate request_size=4 [00:06:27]MH_SAM_APDU [00:06:27]CAPDU: 80 17 00 00 [00:06:27]Write to MH i2c: E2 08 00 DD 18 80 17 00 00 00 00 00 00 75 [00:06:27]Write i2c OK [00:06:27]MH_I2C_Read... [00:06:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:27]Read from MH i2c: E2 [00:06:27]MH_I2C_Read... [00:06:27]Read from MH i2c: E2 FD 00 [00:06:27]MH_I2C_Read... [00:06:27]Read from MH i2c: E2 FD 00 DD 18 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 01 [00:06:27]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [00:06:28]wFMCommunicate OK [00:06:28]wFMCommunicate request_size=4 [00:06:28]MH_SAM_APDU [00:06:28]CAPDU: 80 17 00 00 [00:06:28]Write to MH i2c: E2 08 00 DE 18 80 17 00 00 00 00 00 00 76 [00:06:28]Write i2c OK [00:06:28]MH_I2C_Read... [00:06:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:06:28]Read from MH i2c: E2 [00:06:28]MH_I2C_Read... [00:06:28]Read from MH i2c: E2 E2 00 [00:06:28]MH_I2C_Read... [00:06:28]Read from MH i2c: E2 E2 00 DE 18 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 54 [00:06:28]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:06:28]wFMCommunicate OK [00:06:28]SAM_PROTO_GetFMData done [00:06:28]Malloc new data [00:06:28]Malloc new data [00:06:28]Malloc new data [00:06:28]Malloc new data [00:06:28]KKMLoadAndSignCloseShiftData err=0 [00:06:28]Отчет о закрытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Асанбаев Н. 22.06.2024 00:06 Смена: 355 РНМ: 0000000000092785 ЗНМ: 0300000164 СНО: Общий режим Чеков за смену: 188 ФД за смену: 190 Всего чеков: 188 ИТОГИ ПРИХОД Чеков: 182 Общий итог: 299885.74 Итого наличными: 174707.00 Итого безнал.: 125178.74 НДС 0% : 0.00 НДС 12% : 31852.50 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 2654.10 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 6 Общий итог: 18072.00 Итого наличными: 18072.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 1919.49 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 159.95 ИТОГИ РАСХОД Чеков: 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 Нал. в кассе: 156635.00 НС Приход: 182736877.23 НС Возвр.Прихода: 4067013.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФД: 104266 ФМ: 0000000000875093 ФПД: 183322557158110 [00:06:28]StoreToDocumentArchive [00:06:28]shift 355 fd 104266 [00:06:28]save to /storage/0355/doc_00104266 [00:06:28]save last doc name /storage/0355/doc_00104266 to /storage/kkm_last_doc_name [00:06:28]save OK [00:06:28]Clear old archive folders... [00:06:28]Remove dir /storage/0266 [00:06:28]opendir ok [00:06:28]file . [00:06:28]file .. [00:06:28]file doc_1719014744 [00:06:28]remove file /storage/0266/doc_1719014744 [00:06:28]remove dir /storage/0266 [00:06:28]NVStorageSaveData kkm_registers [00:06:28]File name is /storage/kkm_registers [00:06:28]Write 24 bytes [00:06:28]NVStorageSaveData done [00:06:28]NVStorageSaveData kkm_registers [00:06:28]File name is /storage/kkm_registers [00:06:28]Write 24 bytes [00:06:28]NVStorageSaveData done [00:06:28]ProcessDocumentItem done err = 0, tmpTLVsize=1389 [00:06:28]tlvbuf is 0071A4E0 [00:06:28]SAM_PROTO_ClearQueue [00:06:28]wFMCommunicate request_size=4 [00:06:28]MH_SAM_APDU [00:06:28]CAPDU: 80 09 00 00 [00:06:28]Write to MH i2c: E2 08 00 DF 18 80 09 00 00 00 00 00 00 69 [00:06:28]Write i2c OK [00:06:28]MH_I2C_Read... [00:06:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:06:28]Read from MH i2c: E2 [00:06:28]MH_I2C_Read... [00:06:28]Read from MH i2c: E2 03 00 [00:06:28]MH_I2C_Read... [00:06:28]Read from MH i2c: E2 03 00 DF 18 00 90 00 6B [00:06:28]RAPDU: 90 00 [00:06:28]wFMCommunicate OK [00:06:28]SAM_PROTO_ClearQueue done [00:06:28]KKMCreateOFDPacket [00:06:28]OFDProtocolAddRootSTLVToBuf [00:06:28]FM_MakeSignedData [00:06:28]FM_MakeSignedData [00:06:28]SAM_PROTO_SignData [00:06:28]wFMCommunicate request_size=4 [00:06:28]MH_SAM_APDU [00:06:28]CAPDU: 80 0D 01 02 [00:06:28]Write to MH i2c: E2 08 00 E0 18 80 0D 01 02 00 00 00 00 71 [00:06:28]Write i2c OK [00:06:28]MH_I2C_Read... [00:06:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:06:28]Read from MH i2c: E2 [00:06:28]MH_I2C_Read... [00:06:28]Read from MH i2c: E2 03 00 [00:06:28]MH_I2C_Read... [00:06:28]Read from MH i2c: E2 03 00 E0 18 00 90 00 6C [00:06:28]RAPDU: 90 00 [00:06:28]wFMCommunicate OK [00:06:28]wFMCommunicate request_size=255 [00:06:28]MH_SAM_APDU [00:06:28]CAPDU: 80 0D 02 02 FA 05 00 6D 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 15 00 D0 90 D1 81 D0 B0 D0 BD D0 B1 D0 B0 D0 B5 D0 B2 20 D0 9D 2E 20 F4 03 04 00 7E 15 76 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 5E 04 04 00 BC 00 00 00 57 04 04 00 BE 00 00 00 AA 04 DF 04 6E 04 04 00 BC 00 00 00 69 04 A5 00 6F 04 04 00 B6 00 00 00 B1 04 04 00 DE 96 C9 01 70 04 04 00 EC 94 0A 01 72 04 03 00 F2 01 BF 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 62 9A 30 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 [00:06:29]Write to MH i2c: E2 02 01 E1 18 80 0D 02 02 FA 00 05 00 6D 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 15 00 D0 90 D1 81 D0 B0 D0 BD D0 B1 D0 OFD Sender: No OFD packet to send [00:06:29]B0 D0 B5 D0 B2 20 D0 9D 2E 20 F4 03 04 00 7E 15 76 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 5E 04 04 00 BC 00 00 00 57 04 04 00 BE 00 00 00 AA 04 DF 04 6E 04 04 00 BC 00 00 00 69 04 A5 00 6F 04 04 00 B6 00 00 00 B1 04 04 00 DE 96 C9 01 70 04 04 00 EC 94 0A 01 72 04 03 00 F2 01 BF 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 62 9A 30 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 00 00 03 [00:06:29]Write i2c OK [00:06:29]MH_I2C_Read... [00:06:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:06:29]Read from MH i2c: E2 [00:06:29]MH_I2C_Read... [00:06:29]Read from MH i2c: E2 03 00 [00:06:29]MH_I2C_Read... [00:06:29]Read from MH i2c: E2 03 00 E1 18 00 90 00 6D [00:06:29]RAPDU: 90 00 [00:06:29]wFMCommunicate OK [00:06:29]wFMCommunicate request_size=255 [00:06:29]MH_SAM_APDU [00:06:29]CAPDU: 80 0D 02 02 FA 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 C2 0C 04 6A 04 A0 00 6F 04 04 00 06 00 00 00 B1 04 03 00 60 93 1B 70 04 03 00 60 93 1B 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 CD ED 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 7B 3E 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 [00:06:29]Write to MH i2c: E2 02 01 E2 18 80 0D 02 02 FA 00 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 C2 0C 04 6A 04 A0 00 6F 04 04 00 06 00 00 00 B1 04 03 00 60 93 1B 70 04 03 00 60 93 1B 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 CD ED 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 7B 3E 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 00 00 64 [00:06:30]Write i2c OK [00:06:30]MH_I2C_Read... [00:06:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:06:30]Read from MH i2c: E2 [00:06:30]MH_I2C_Read... [00:06:30]Read from MH i2c: E2 03 00 [00:06:30]MH_I2C_Read... [00:06:30]Read from MH i2c: E2 03 00 E2 18 00 90 00 6E [00:06:30]RAPDU: 90 00 [00:06:30]wFMCommunicate OK [00:06:30]wFMCommunicate request_size=255 [00:06:30]MH_SAM_APDU [00:06:30]CAPDU: 80 0D 02 02 FA 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF [00:06:30]Write to MH i2c: E2 02 01 E3 18 80 0D 02 02 FA 00 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 00 00 2D [00:06:30]Write i2c OK [00:06:30]MH_I2C_Read... [00:06:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:06:31]Read from MH i2c: E2 [00:06:31]MH_I2C_Read... [00:06:31]Read from MH i2c: E2 03 00 [00:06:31]MH_I2C_Read... [00:06:31]Read from MH i2c: E2 03 00 E3 18 00 90 00 6F [00:06:31]RAPDU: 90 00 [00:06:31]wFMCommunicate OK [00:06:31]wFMCommunicate request_size=255 [00:06:31]MH_SAM_APDU [00:06:31]CAPDU: 80 0D 02 02 FA 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 [00:06:31]Write to MH i2c: E2 02 01 E4 18 80 0D 02 02 FA 00 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 00 00 4D [00:06:31]Write i2c OK [00:06:31]MH_I2C_Read... [00:06:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:06:31]Read from MH i2c: E2 [00:06:31]MH_I2C_Read... [00:06:31]Read from MH i2c: E2 03 00 [00:06:31]MH_I2C_Read... [00:06:31]Read from MH i2c: E2 03 00 E4 18 00 90 00 70 [00:06:31]RAPDU: 90 00 [00:06:31]wFMCommunicate OK [00:06:31]wFMCommunicate request_size=255 [00:06:31]MH_SAM_APDU [00:06:31]CAPDU: 80 0D 02 02 FA EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 [00:06:31]Write to MH i2c: E2 02 01 E5 18 80 0D 02 02 FA 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 00 07 [00:06:32]Write i2c OK [00:06:32]MH_I2C_Read... [00:06:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:06:32]Read from MH i2c: E2 [00:06:32]MH_I2C_Read... [00:06:32]Read from MH i2c: E2 03 00 [00:06:32]MH_I2C_Read... [00:06:32]Read from MH i2c: E2 03 00 E5 18 00 90 00 71 [00:06:32]RAPDU: 90 00 [00:06:32]wFMCommunicate OK [00:06:32]wFMCommunicate request_size=148 [00:06:32]MH_SAM_APDU [00:06:32]CAPDU: 80 0D 02 02 8F 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 4A 97 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 A6 BB 1B E6 12 DE [00:06:32]Write to MH i2c: E2 97 00 E6 18 80 0D 02 02 8F 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 4A 97 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 A6 BB 1B E6 12 DE 00 00 EB [00:06:32]Write i2c OK [00:06:32]MH_I2C_Read... [00:06:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:06:32]Read from MH i2c: E2 [00:06:32]MH_I2C_Read... [00:06:32]Read from MH i2c: E2 03 00 [00:06:32]MH_I2C_Read... [00:06:32]Read from MH i2c: E2 03 00 E6 18 00 90 00 72 [00:06:32]RAPDU: 90 00 [00:06:32]wFMCommunicate OK [00:06:32]wFMCommunicate request_size=4 [00:06:32]MH_SAM_APDU [00:06:32]CAPDU: 80 0D 03 02 [00:06:32]Write to MH i2c: E2 08 00 E7 18 80 0D 03 02 00 00 00 00 7A [00:06:32]Write i2c OK [00:06:32]MH_I2C_Read... [00:06:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:06:33]Read from MH i2c: E2 [00:06:33]MH_I2C_Read... [00:06:33]Read from MH i2c: E2 0B 00 [00:06:33]MH_I2C_Read... [00:06:33]Read from MH i2c: E2 0B 00 E7 18 00 90 7B A6 0B FD 54 8B 87 90 00 9A [00:06:33]RAPDU: 90 7B A6 0B FD 54 8B 87 90 00 [00:06:33]wFMCommunicate OK [00:06:33]SAM_PROTO_SignData done [00:06:33]FM_MakeSignedData done [00:06:33]CreateOFDProtocolMessage [00:06:33]wFMCommunicate request_size=4 [00:06:33]MH_SAM_APDU [00:06:33]CAPDU: 80 11 00 00 [00:06:33]Write to MH i2c: E2 08 00 E8 18 80 11 00 00 00 00 00 00 7A [00:06:33]Write i2c OK [00:06:33]MH_I2C_Read... [00:06:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:06:33]Read from MH i2c: E2 [00:06:33]MH_I2C_Read... [00:06:33]Read from MH i2c: E2 17 00 [00:06:33]MH_I2C_Read... [00:06:33]Read from MH i2c: E2 17 00 E8 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 CD [00:06:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [00:06:33]wFMCommunicate OK [00:06:33]CreateOFDProtocolMessage done [00:06:33]OFDSenderStorePacket 104266 [00:06:33]StoreOFDPacket docnum=104266 [00:06: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 81 05 00 00 E9 D2 79 05 BD 95 5A 05 01 00 05 00 6D 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 15 00 D0 90 D1 81 D0 B0 D0 BD D0 B1 D0 B0 D0 B5 D0 B2 20 D0 9D 2E 20 F4 03 04 00 7E 15 76 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 5E 04 04 00 BC 00 00 00 57 04 04 00 BE 00 00 00 AA 04 DF 04 6E 04 04 00 BC 00 00 00 69 04 A5 00 6F 04 04 00 B6 00 00 00 B1 04 04 00 DE 96 C9 01 70 04 04 00 EC 94 0A 01 72 04 03 00 F2 01 BF 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 62 9A 30 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 C2 0C 04 6A 04 A0 00 6F 04 04 00 06 00 00 00 B1 04 03 00 60 93 1B 70 04 03 00 60 93 1B 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 CD ED 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 7B 3E 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 4A 97 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 A6 BB 1B E6 12 DE 90 7B A6 0B FD 54 8B 87 [00:06:33]CheckFolder [00:06:33]dirname=/storage/ofd_packets [00:06:33]CheckFolder done [00:06:33]ProducePacketName [00:06:33]name=ofd_packets/00104266 [00:06:33]NVStorageSaveData ofd_packets/00104266 [00:06:33]File name is /storage/ofd_packets/00104266 [00:06:33]Write 1439 bytes [00:06:33]NVStorageSaveData done [00:06:33]OFDSenderStorePacket done [00:06:33]KKMCreateOFDPacket done [00:06:33]NVStorageSaveData kkm_last_timestamp [00:06:33]File name is /storage/kkm_last_timestamp [00:06:33]Write 4 bytes [00:06:33]NVStorageSaveData done [00:06:33]ExternCall_PrintAddStr [00:06:33]wPrintStart [00:06:33]Write to MH i2c: 01 00 00 E9 18 01 [00:06:33]Write i2c OK [00:06:33]MH_I2C_Read... [00:06:33]Read from MH i2c: 01 [00:06:33]MH_I2C_Read... [00:06:33]Read from MH i2c: 01 07 00 [00:06:33]MH_I2C_Read... [00:06:33]Read from MH i2c: 01 07 00 E9 18 00 00 00 00 00 FF 0F 16 [00:06:33]RasterBufferAndPrint [00:06:33]line Отчет о закрытии смены [00:06:33]line ФФД: 1.0 [00:06:33]line ИНН: 02508201610067 [00:06:33]line Кассир: Асанбаев Н. [00:06:33]line 22.06.2024 00:06 [00:06:33]line Смена: 355 [00:06:33]line РНМ: 0000000000092785 [00:06:33]line ЗНМ: 0300000164 [00:06:33]line СНО: Общий режим [00:06:33]line Чеков за смену: 188 [00:06:33]line ФД за смену: 190 [00:06:33]line Всего чеков: 188 [00:06:33]line ИТОГИ ПРИХОД [00:06:33]line Чеков: 182 [00:06:33]line Общий итог: 299885.74 [00:06:33]line Итого наличными: 174707.00 [00:06:33]line Итого безнал.: 125178.74 [00:06:33]line НДС 0% : 0.00 [00:06:33]line НДС 12% : 31852.50 [00:06:33]line НСП 0% : 0.00 [00:06:33]line НСП 1,50% : 0.00 [00:06:33]line НСП 0,50% : 0.00 [00:06:33]line НСП 5% : 0.00 [00:06:33]line НСП 3% : 0.00 [00:06:33]line НСП 2% : 0.00 [00:06:33]line НСП 1% : 2654.10 [00:06:33]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:06:33]line Чеков: 6 [00:06:33]line Общий итог: 18072.00 [00:06:33]line Итого наличными: 18072.00 [00:06:33]line Итого безнал.: 0.00 [00:06:33]line НДС 0% : 0.00 [00:06:33]line НДС 12% : 1919.49 [00:06:33]line НСП 0% : 0.00 [00:06:33]line НСП 1,50% : 0.00 [00:06:33]line НСП 0,50% : 0.00 [00:06:33]line НСП 5% : 0.00 [00:06:33]line НСП 3% : 0.00 [00:06:33]line НСП 2% : 0.00 [00:06:33]line НСП 1% : 159.95 [00:06:33]line ИТОГИ РАСХОД [00:06:33]line Чеков: 0 [00:06:33]line Общий итог: 0.00 [00:06:33]line Итого наличными: 0.00 [00:06:33]line Итого безнал.: 0.00 [00:06:33]line НДС 0% : 0.00 [00:06:33]line НДС 12% : 0.00 [00:06:33]line НСП 0% : 0.00 [00:06:33]line НСП 1,50% : 0.00 [00:06:33]line НСП 0,50% : 0.00 [00:06:33]line НСП 5% : 0.00 [00:06:33]line НСП 3% : 0.00 [00:06:33]line НСП 2% : 0.00 [00:06:33]line НСП 1% : 0.00 [00:06:33]line ИТОГИ ВОЗВРАТ РАСХОДА [00:06:33]line Чеков: 0 [00:06:33]line Общий итог: 0.00 [00:06:33]line Итого наличными: 0.00 [00:06:33]line Итого безнал.: 0.00 [00:06:33]line НДС 0% : 0.00 [00:06:33]line НДС 12% : 0.00 [00:06:33]line НСП 0% : 0.00 [00:06:33]line НСП 1,50% : 0.00 [00:06:33]line НСП 0,50% : 0.00 [00:06:33]line НСП 5% : 0.00 [00:06:33]line НСП 3% : 0.00 [00:06:33]line НСП 2% : 0.00 [00:06:33]line НСП 1% : 0.00 [00:06:33]line Сумма внесений: 0.00 [00:06:33]line Сумма выплат: 0.00 [00:06:33]line Нал. в кассе: 156635.00 [00:06:33]line НС Приход: 182736877.23 [00:06:33]line НС Возвр.Прихода: 4067013.00 [00:06:33]line НС Расход: 0.00 [00:06:33]line НС Возвр.Расхода: 0.00 [00:06:33]line ФД: 104266 [00:06:33]line ФМ: 0000000000875093 [00:06:33]line ФПД: 183322557158110 [00:06:33]OFD Sender: Processing packet 104266 [packets to send 17, broken 16] [00:06:33]ProducePacketName [00:06:33]name=ofd_packets/00104266 [00:06:33]OFD Sender: To server: pG, [00:06:33]CommunicateWithHost lk.salyk.kg:30040 [00:06:33]ConnectInit lk.salyk.kg [00:06:33]written 0, free lines is 4095 [00:06:33]Connected sock=10 [00:06: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 81 05 00 00 E9 D2 79 05 BD 95 5A 05 01 00 05 00 6D 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 15 00 D0 90 D1 81 D0 B0 D0 BD D0 B1 D0 B0 D0 B5 D0 B2 20 D0 9D 2E 20 F4 03 04 00 7E 15 76 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 5E 04 04 00 BC 00 00 00 57 04 04 00 BE 00 00 00 AA 04 DF 04 6E 04 04 00 BC 00 00 00 69 04 A5 00 6F 04 04 00 B6 00 00 00 B1 04 04 00 DE 96 C9 01 70 04 04 00 EC 94 0A 01 72 04 03 00 F2 01 BF 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 62 9A 30 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 C2 0C 04 6A 04 A0 00 6F 04 04 00 06 00 00 00 B1 04 03 00 60 93 1B 70 04 03 00 60 93 1B 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 CD ED 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 7B 3E 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 Write to MH i2c: 00 01 00 00 72 00 04 39 01 19 00 52 00 [00:06:34]00 Write i2c OK [00:06:34]04 MH_I2C_Read... [00:06:34]7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 Read from MH i2c: 01 01 00 [00:06:34]00 MH_I2C_Read... [00:06:34]EE Read from MH i2c: 03 01 0A 07 00 00 F2 [00:06:34]03 MH_I2C_Read... [00:06:34]01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 Read from MH i2c: 03 01 01 07 00 00 00 39 F7 19 03 00 01 00 00 00 00 00 EF 00 03 0A 00 F6 03 01 00 06 F7 03 01 00 B5 00 EF 03 0B 0A 19 00 [00:06:34]F6 RasterBufferAndPrint [00:06:34]03 line [00:06:34]line [00:06:34]line [00:06:34]01 line [00:06:34]00 line [00:06:34]05 F7 03 01 00 00 EF written 0, free lines is 3200 [00:06:34]03 0A 00 F6 03 01 MH_Cut [00:06:34]00 Write to MH i2c: 04 D1 F7 01 03 00 01 40 19 00 01 00 2B EF [00:06:34]03 0A 00 F6 03 Write i2c OK [00:06:34]01 MH_I2C_Read... [00:06:34]00 Read from MH i2c: 03 D1 [00:06:34]F7 MH_I2C_Read... [00:06:34]03 01 00 00 EF 03 0A Read from MH i2c: 00 D1 F6 01 03 00 01 [00:06:34]00 MH_I2C_Read... [00:06:34]02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 Read from MH i2c: 00 D1 01 01 F7 00 03 40 01 19 00 00 00 2A 6D [00:06:34]04 Write to MH i2c: 4C 01 02 00 78 04 04 00 00 00 00 00 79 04 8D 00 6F 00 04 41 04 19 00 5A 00 [00:06:35]00 00 00 B1 04 00 00 70 04 00 00 72 04 00 Write i2c OK [00:06:35]00 MH_I2C_Read... [00:06:35]00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 *** Cut start [00:06:35]03 01 00 *** Partial cut [00:06:35]05 *** CUTSNS_PIN = 1 [00:06:35]F7 *** CUTSNS_PIN = 0 [00:06:35]03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 4A 97 01 00 11 04 10 00 30 30 30 30 *** Brake cut motor [00:06:35]30 30 30 30 30 30 38 37 35 30 39 33 35 04 06 00 A6 BB 1B E6 12 DE 90 7B A6 0B FD 54 8B 87 [00:06: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 FD F8 47 00 C5 C6 A5 07 01 00 07 00 3B 00 *** Stop cut motor [00:06:36]F9 *** Cut end [00:06:36]03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 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 97 01 00 F4 03 04 00 0C BC 75 66 B6 04 01 00 00 CE 68 21 53 FE B9 FA B6 [00:06:36]CommunicateWithHost err = 0 [00:06:36]CheckOFDResponse [00:06:36]1017 (14) - 77093643461234 [00:06:36]1041 (16) - 0000000000875093 [00:06:36]1040 (4) - 104266 [00:06:36]1012 (4) - 21.06.2024 17:44 [00:06:36]1206 (1) - 0 [00:06:36]OFD Sender: Remove packet 104266 [00:06:36]ProducePacketName [00:06:36]name=ofd_packets/00104266 [00:06:36]NVStorageDeleteData [00:06:36]Read from MH i2c: 01 [00:06:36]MH_I2C_Read... [00:06:36]Read from MH i2c: 01 07 00 [00:06:36]MH_I2C_Read... [00:06:36]Read from MH i2c: 01 07 00 41 19 00 00 00 00 00 FF 0F 6F [00:06:36]process_action close_shift done [00:06:36]requested_data is exist [00:06:36]produce_requested_data [00:06:36]requested_item fd.num is exist - process it [00:06:36]SAM_PROTO_GetFieldsCounters [00:06:36]wFMCommunicate request_size=4 [00:06:36]MH_SAM_APDU [00:06:36]CAPDU: 80 13 00 00 [00:06:36]Write to MH i2c: E2 08 00 42 19 80 13 00 00 00 00 00 00 D7 [00:06:36]Write i2c OK [00:06:36]MH_I2C_Read... [00:06:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:06:36]Read from MH i2c: E2 [00:06:36]MH_I2C_Read... [00:06:36]Read from MH i2c: E2 62 00 [00:06:36]MH_I2C_Read... [00:06:36]Read from MH i2c: E2 62 00 42 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 4A 97 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 BC 00 00 00 5E 04 04 00 BC 00 00 00 57 04 04 00 BE 00 00 00 19 04 04 00 00 00 00 00 90 00 79 [00:06:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 BC 00 00 00 5E 04 04 00 BC 00 00 00 57 04 04 00 BE 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:06:36]wFMCommunicate OK [00:06:36]SAM_PROTO_GetFieldsCounters done [00:06:36]requested_item shift.num is exist - process it [00:06:36]requested_item shift.opened is exist - process it [00:06:36]req_shift_opened [00:06:36]FM_GetShiftState [00:06:36]SAM_PROTO_GetShiftState [00:06:36]wFMCommunicate request_size=4 [00:06:36]MH_SAM_APDU [00:06:36]CAPDU: 80 13 01 00 [00:06:36]Write to MH i2c: E2 08 00 43 19 80 13 01 00 00 00 00 00 D9 [00:06:36]Write i2c OK [00:06:36]MH_I2C_Read... [00:06:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:06:36]Read from MH i2c: E2 [00:06:36]MH_I2C_Read... [00:06:36]Read from MH i2c: E2 0E 00 [00:06:36]MH_I2C_Read... [00:06:36]Read from MH i2c: E2 0E 00 43 19 00 09 00 00 00 00 00 00 00 00 00 00 90 00 E4 [00:06:36]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:06:36]wFMCommunicate OK [00:06:36]SAM_PROTO_GetShiftState done [00:06:36]FM_GetShiftState done [00:06:36]req_shift_opened done [00:06:36]requested_item shift.open_date is exist - process it [00:06:36]req_shift_open_date [00:06:36]FM_GetShiftState [00:06:36]SAM_PROTO_GetShiftState [00:06:36]wFMCommunicate request_size=4 [00:06:36]MH_SAM_APDU [00:06:36]CAPDU: 80 13 01 00 [00:06:36]Write to MH i2c: E2 08 00 44 19 80 13 01 00 00 00 00 00 DA [00:06:36]OFD Sender: No OFD packet to send [00:06:36]Write i2c OK [00:06:36]MH_I2C_Read... [00:06:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:06:36]Read from MH i2c: E2 [00:06:36]MH_I2C_Read... [00:06:36]Read from MH i2c: E2 0E 00 [00:06:36]MH_I2C_Read... [00:06:36]Read from MH i2c: E2 0E 00 44 19 00 09 00 00 00 00 00 00 00 00 00 00 90 00 E5 [00:06:36]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:06:37]wFMCommunicate OK [00:06:37]SAM_PROTO_GetShiftState done [00:06:37]FM_GetShiftState done [00:06:37]req_shift_open_date done [00:06:37]produce_requested_data done [00:06:37]produce_requested_data return {"fd.num":104266,"shift.num":355,"shift.opened":0,"shift.open_date":0} [00:06:37]process_action_free close_shift [00:06:37]json_value_free [00:06:37]json_value_free done [00:06:37]process_json_proto returns [00:06:37]Send response to host [00:06:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":104266,"shift.num":355,"shift.opened":0,"shift.open_date":0}}} [00:06:37]free response buf [00:06:37]execute_script done [00:06:37]execute_script returns [00:06:37]free content buf [00:06:37]Sock 7.Close socket [00:06:37]Sock 7.Thread stoped [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:31]OFD Sender: No OFD packet to send [00:07:36]OFD Sender: No OFD packet to send [00:07:41]OFD Sender: No OFD packet to send [00:07:46]OFD Sender: No OFD packet to send [00:07:51]OFD Sender: No OFD packet to send [00:07:56]OFD Sender: No OFD packet to send [00:08:01]OFD Sender: No OFD packet to send [00:08:06]OFD Sender: No OFD packet to send [00:08:11]OFD Sender: No OFD packet to send [00:08:17]OFD Sender: No OFD packet to send [00:08:22]OFD Sender: No OFD packet to send [00:08:27]OFD Sender: No OFD packet to send [00:08:32]OFD Sender: No OFD packet to send [00:08:37]OFD Sender: No OFD packet to send [00:08:42]OFD Sender: No OFD packet to send [00:08:47]OFD Sender: No OFD packet to send [00:08:52]OFD Sender: No OFD packet to send [00:08:57]OFD Sender: No OFD packet to send [00:09:02]OFD Sender: No OFD packet to send [00:09:07]OFD Sender: No OFD packet to send [00:09:12]OFD Sender: No OFD packet to send [00:09:17]OFD Sender: No OFD packet to send [00:09:22]OFD Sender: No OFD packet to send [00:09:27]OFD Sender: No OFD packet to send [00:09:32]OFD Sender: No OFD packet to send [00:09:37]OFD Sender: No OFD packet to send [00:09:42]OFD Sender: No OFD packet to send [00:09:47]OFD Sender: No OFD packet to send [00:09:52]OFD Sender: No OFD packet to send [00:09:57]OFD Sender: No OFD packet to send [00:10:02]OFD Sender: No OFD packet to send [00:10:07]OFD Sender: No OFD packet to send [00:10:12]OFD Sender: No OFD packet to send [00:10:17]OFD Sender: No OFD packet to send [00:10:22]OFD Sender: No OFD packet to send [00:10:27]OFD Sender: No OFD packet to send [00:10:32]OFD Sender: No OFD packet to send [00:10:37]OFD Sender: No OFD packet to send [00:10:42]OFD Sender: No OFD packet to send [00:10:47]OFD Sender: No OFD packet to send [00:10:52]OFD Sender: No OFD packet to send [00:10:57]OFD Sender: No OFD packet to send [00:11:02]OFD Sender: No OFD packet to send [00:11:07]OFD Sender: No OFD packet to send [00:11:12]OFD Sender: No OFD packet to send [00:11:17]OFD Sender: No OFD packet to send [00:11:22]OFD Sender: No OFD packet to send [00:11:27]OFD Sender: No OFD packet to send [00:11:32]OFD Sender: No OFD packet to send [00:11:37]OFD Sender: No OFD packet to send [00:11:42]OFD Sender: No OFD packet to send [00:11:47]OFD Sender: No OFD packet to send [00:11:52]OFD Sender: No OFD packet to send [00:11:57]OFD Sender: No OFD packet to send [00:12:02]OFD Sender: No OFD packet to send [00:12:07]OFD Sender: No OFD packet to send [00:12:12]OFD Sender: No OFD packet to send [00:12:17]OFD Sender: No OFD packet to send [00:12:22]OFD Sender: No OFD packet to send [00:12:27]OFD Sender: No OFD packet to send [00:12:32]OFD Sender: No OFD packet to send [00:12:37]OFD Sender: No OFD packet to send [00:12:42]OFD Sender: No OFD packet to send [00:12:47]OFD Sender: No OFD packet to send [00:12:52]OFD Sender: No OFD packet to send [00:12:57]OFD Sender: No OFD packet to send [00:13:02]OFD Sender: No OFD packet to send [00:13:07]OFD Sender: No OFD packet to send [00:13:12]OFD Sender: No OFD packet to send [00:13:17]OFD Sender: No OFD packet to send [00:13:22]OFD Sender: No OFD packet to send [00:13:27]OFD Sender: No OFD packet to send [00:13:32]OFD Sender: No OFD packet to send [00:13:37]OFD Sender: No OFD packet to send [00:13:42]OFD Sender: No OFD packet to send [00:13:47]OFD Sender: No OFD packet to send [00:13:52]OFD Sender: No OFD packet to send [00:13:57]OFD Sender: No OFD packet to send [00:14:02]OFD Sender: No OFD packet to send [00:14:07]OFD Sender: No OFD packet to send [00:14:12]OFD Sender: No OFD packet to send [00:14:17]OFD Sender: No OFD packet to send [00:14:22]OFD Sender: No OFD packet to send [00:14:27]OFD Sender: No OFD packet to send [00:14:32]OFD Sender: No OFD packet to send [00:14:37]OFD Sender: No OFD packet to send [00:14:42]OFD Sender: No OFD packet to send [00:14:47]OFD Sender: No OFD packet to send [00:14:52]OFD Sender: No OFD packet to send [00:14:57]OFD Sender: No OFD packet to send [00:15:02]OFD Sender: No OFD packet to send [00:15:07]OFD Sender: No OFD packet to send [00:15:12]OFD Sender: No OFD packet to send [00:15:17]OFD Sender: No OFD packet to send [00:15:22]OFD Sender: No OFD packet to send [00:15:27]OFD Sender: No OFD packet to send [00:15:32]OFD Sender: No OFD packet to send [00:15:37]OFD Sender: No OFD packet to send [00:15:42]OFD Sender: No OFD packet to send [00:15:47]OFD Sender: No OFD packet to send [00:15:52]OFD Sender: No OFD packet to send [00:15:57]OFD Sender: No OFD packet to send [00:16:02]OFD Sender: No OFD packet to send [00:16:07]OFD Sender: No OFD packet to send [00:16:12]OFD Sender: No OFD packet to send [00:16:17]OFD Sender: No OFD packet to send [00:16:22]OFD Sender: No OFD packet to send [00:16:27]OFD Sender: No OFD packet to send [00:16:32]OFD Sender: No OFD packet to send [00:16:37]OFD Sender: No OFD packet to send [00:16:42]OFD Sender: No OFD packet to send [00:16:47]OFD Sender: No OFD packet to send [00:16:52]OFD Sender: No OFD packet to send [00:16:57]OFD Sender: No OFD packet to send [00:17:02]OFD Sender: No OFD packet to send [00:17:07]OFD Sender: No OFD packet to send [00:17:12]OFD Sender: No OFD packet to send [00:17:17]OFD Sender: No OFD packet to send [00:17:22]OFD Sender: No OFD packet to send [00:17:27]OFD Sender: No OFD packet to send [00:17:32]OFD Sender: No OFD packet to send [00:17:37]OFD Sender: No OFD packet to send [00:17:42]OFD Sender: No OFD packet to send [00:17:47]OFD Sender: No OFD packet to send [00:17:52]OFD Sender: No OFD packet to send [00:17:57]OFD Sender: No OFD packet to send [00:18:02]OFD Sender: No OFD packet to send [00:18:07]OFD Sender: No OFD packet to send [00:18:12]OFD Sender: No OFD packet to send [00:18:17]OFD Sender: No OFD packet to send [00:18:22]OFD Sender: No OFD packet to send [00:18:27]OFD Sender: No OFD packet to send [00:18:32]OFD Sender: No OFD packet to send [00:18:37]OFD Sender: No OFD packet to send [00:18:42]OFD Sender: No OFD packet to send [00:18:47]OFD Sender: No OFD packet to send [00:18:52]OFD Sender: No OFD packet to send [00:18:57]OFD Sender: No OFD packet to send [00:19:02]OFD Sender: No OFD packet to send [00:19:07]OFD Sender: No OFD packet to send [00:19:12]OFD Sender: No OFD packet to send [00:19:17]OFD Sender: No OFD packet to send [00:19:22]OFD Sender: No OFD packet to send [00:19:27]OFD Sender: No OFD packet to send [00:19:32]OFD Sender: No OFD packet to send [00:19:37]OFD Sender: No OFD packet to send [00:19:42]OFD Sender: No OFD packet to send [00:19:47]OFD Sender: No OFD packet to send [00:19:52]OFD Sender: No OFD packet to send [00:19:57]OFD Sender: No OFD packet to send [00:20:02]OFD Sender: No OFD packet to send [00:20:07]OFD Sender: No OFD packet to send [00:20:12]OFD Sender: No OFD packet to send [00:20:17]OFD Sender: No OFD packet to send [00:20:22]OFD Sender: No OFD packet to send [00:20:27]OFD Sender: No OFD packet to send [00:20:32]OFD Sender: No OFD packet to send [00:20:37]OFD Sender: No OFD packet to send [00:20:42]OFD Sender: No OFD packet to send [00:20:47]OFD Sender: No OFD packet to send [00:20:52]OFD Sender: No OFD packet to send [00:20:57]OFD Sender: No OFD packet to send [00:21:02]OFD Sender: No OFD packet to send [00:21:07]OFD Sender: No OFD packet to send [00:21:12]OFD Sender: No OFD packet to send [00:21:17]OFD Sender: No OFD packet to send [00:21:22]OFD Sender: No OFD packet to send [00:21:27]OFD Sender: No OFD packet to send [00:21:32]OFD Sender: No OFD packet to send [00:21:37]OFD Sender: No OFD packet to send [00:21:42]OFD Sender: No OFD packet to send [00:21:47]OFD Sender: No OFD packet to send [00:21:52]OFD Sender: No OFD packet to send [00:21:57]OFD Sender: No OFD packet to send [00:22:02]OFD Sender: No OFD packet to send [00:22:07]OFD Sender: No OFD packet to send [00:22:12]OFD Sender: No OFD packet to send [00:22:17]OFD Sender: No OFD packet to send [00:22:22]OFD Sender: No OFD packet to send [00:22:27]OFD Sender: No OFD packet to send [00:22:32]OFD Sender: No OFD packet to send [00:22:37]OFD Sender: No OFD packet to send [00:22:42]OFD Sender: No OFD packet to send [00:22:47]OFD Sender: No OFD packet to send [00:22:52]OFD Sender: No OFD packet to send [00:22:57]OFD Sender: No OFD packet to send [00:23:02]OFD Sender: No OFD packet to send [00:23:07]OFD Sender: No OFD packet to send [00:23:12]OFD Sender: No OFD packet to send [00:23:17]OFD Sender: No OFD packet to send [00:23:22]OFD Sender: No OFD packet to send [00:23:27]OFD Sender: No OFD packet to send [00:23:32]OFD Sender: No OFD packet to send [00:23:37]OFD Sender: No OFD packet to send [00:23:42]OFD Sender: No OFD packet to send [00:23:47]OFD Sender: No OFD packet to send [00:23:52]OFD Sender: No OFD packet to send [00:23:57]OFD Sender: No OFD packet to send [00:24:02]OFD Sender: No OFD packet to send [00:24:07]OFD Sender: No OFD packet to send [00:24:12]OFD Sender: No OFD packet to send [00:24:17]OFD Sender: No OFD packet to send [00:24:22]OFD Sender: No OFD packet to send [00:24:27]OFD Sender: No OFD packet to send [00:24:32]OFD Sender: No OFD packet to send [00:24:37]OFD Sender: No OFD packet to send [00:24:42]OFD Sender: No OFD packet to send [00:24:47]OFD Sender: No OFD packet to send [00:24:52]OFD Sender: No OFD packet to send [00:24:57]OFD Sender: No OFD packet to send [00:25:02]OFD Sender: No OFD packet to send [00:25:07]OFD Sender: No OFD packet to send [00:25:12]OFD Sender: No OFD packet to send [00:25:17]OFD Sender: No OFD packet to send [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:22]OFD Sender: No OFD packet to send [00:27:27]OFD Sender: No OFD packet to send [00:27:32]OFD Sender: No OFD packet to send [00:27:37]OFD Sender: No OFD packet to send [00:27:42]OFD Sender: No OFD packet to send [00:27:47]OFD Sender: No OFD packet to send [00:27:52]OFD Sender: No OFD packet to send [00:27:57]OFD Sender: No OFD packet to send [00:28:02]OFD Sender: No OFD packet to send [00:28:07]OFD Sender: No OFD packet to send [00:28:12]OFD Sender: No OFD packet to send [00:28:17]OFD Sender: No OFD packet to send [00:28:22]OFD Sender: No OFD packet to send [00:28:27]OFD Sender: No OFD packet to send [00:28:32]OFD Sender: No OFD packet to send [00:28:38]OFD Sender: No OFD packet to send [00:28:43]OFD Sender: No OFD packet to send [00:28:48]OFD Sender: No OFD packet to send [00:28:53]OFD Sender: No OFD packet to send [00:28:58]OFD Sender: No OFD packet to send [00:29:03]OFD Sender: No OFD packet to send [00:29:08]OFD Sender: No OFD packet to send [00:29:13]OFD Sender: No OFD packet to send [00:29:18]OFD Sender: No OFD packet to send [00:29:23]OFD Sender: No OFD packet to send [00:29:28]OFD Sender: No OFD packet to send [00:29:30]accept exits with 9 [00:29:30]New connection [00:29:30]New thread 3067473252 created [00:29:30]Thread 3067616612 joined [00:29:30]Waiting for new connection... [00:29:30] Sock 9.Parse request [00:29:30]Sock 9.Check first char [00:29:30]Sock 9.First char is OK [00:29:30]request: POST /json_proto HTTP/1.0 [00:29:30]Method: POST [00:29:30]URL: /json_proto [00:29:30]Method is POST - this is cgi request [00:29:30]url: /json_proto [00:29:30]query_string will be loaded in cgi processing [00:29:30]execute_cgi json_proto POST (null) [00:29:30]execute_cgi path=json_proto method=POST [00:29:30]POST find Content-Length [00:29:30]Host: 172.17.38.133:8080 [00:29:30]Content-Length: 215 [00:29:30]Content-Type: application/json [00:29:30] [00:29:30]POST finish read [00:29:30]Found Content-Length = 215 [00:29:30]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:29:30]execute_script... [00:29:30]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:29:30]POST & json_proto [00:29:30]process_json_proto [00:29:30]json parsed OK: [00:29:30]protocol is kg_v1.0 [00:29:30]action value=get_value [00:29:30]process_action get_value [00:29:30]cmd_get_value [00:29:30]process_action get_value done [00:29:30]requested_data is exist [00:29:30]produce_requested_data [00:29:30]requested_item kkm.sn is exist - process it [00:29:30]requested_item kkm.ver is exist - process it [00:29:30]requested_item fm.sn is exist - process it [00:29:30]wFMCommunicate request_size=4 [00:29:30]MH_SAM_APDU [00:29:30]CAPDU: 80 11 00 00 [00:29:30]Write to MH i2c: E2 08 00 45 19 80 11 00 00 00 00 00 00 D8 [00:29:30]Write i2c OK [00:29:30]MH_I2C_Read... [00:29:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:29:30]Read from MH i2c: E2 [00:29:30]MH_I2C_Read... [00:29:30]Read from MH i2c: E2 17 00 [00:29:30]MH_I2C_Read... [00:29:30]Read from MH i2c: E2 17 00 45 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 2B [00:29:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [00:29:30]wFMCommunicate OK [00:29:30]requested_item fd.num is exist - process it [00:29:30]SAM_PROTO_GetFieldsCounters [00:29:30]wFMCommunicate request_size=4 [00:29:30]MH_SAM_APDU [00:29:30]CAPDU: 80 13 00 00 [00:29:30]Write to MH i2c: E2 08 00 46 19 80 13 00 00 00 00 00 00 DB [00:29:30]Write i2c OK [00:29:30]MH_I2C_Read... [00:29:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:29:30]Read from MH i2c: E2 [00:29:30]MH_I2C_Read... [00:29:30]Read from MH i2c: E2 62 00 [00:29:30]MH_I2C_Read... [00:29:30]Read from MH i2c: E2 62 00 46 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 4A 97 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 BC 00 00 00 5E 04 04 00 BC 00 00 00 57 04 04 00 BE 00 00 00 19 04 04 00 00 00 00 00 90 00 7D [00:29: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 4A 97 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 BC 00 00 00 5E 04 04 00 BC 00 00 00 57 04 04 00 BE 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:29:30]wFMCommunicate OK [00:29:30]SAM_PROTO_GetFieldsCounters done [00:29:30]requested_item shift.num is exist - process it [00:29:30]requested_item shift.opened is exist - process it [00:29:30]req_shift_opened [00:29:30]FM_GetShiftState [00:29:30]SAM_PROTO_GetShiftState [00:29:30]wFMCommunicate request_size=4 [00:29:30]MH_SAM_APDU [00:29:30]CAPDU: 80 13 01 00 [00:29:30]Write to MH i2c: E2 08 00 47 19 80 13 01 00 00 00 00 00 DD [00:29:30]Write i2c OK [00:29:30]MH_I2C_Read... [00:29:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:29:30]Read from MH i2c: E2 [00:29:30]MH_I2C_Read... [00:29:30]Read from MH i2c: E2 0E 00 [00:29:30]MH_I2C_Read... [00:29:30]Read from MH i2c: E2 0E 00 47 19 00 09 00 00 00 00 00 00 00 00 00 00 90 00 E8 [00:29:30]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:29:30]wFMCommunicate OK [00:29:30]SAM_PROTO_GetShiftState done [00:29:30]FM_GetShiftState done [00:29:30]req_shift_opened done [00:29:30]requested_item shift.open_date is exist - process it [00:29:30]req_shift_open_date [00:29:30]FM_GetShiftState [00:29:30]SAM_PROTO_GetShiftState [00:29:30]wFMCommunicate request_size=4 [00:29:30]MH_SAM_APDU [00:29:30]CAPDU: 80 13 01 00 [00:29:30]Write to MH i2c: E2 08 00 48 19 80 13 01 00 00 00 00 00 DE [00:29:30]Write i2c OK [00:29:30]MH_I2C_Read... [00:29:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:29:30]Read from MH i2c: E2 [00:29:30]MH_I2C_Read... [00:29:30]Read from MH i2c: E2 0E 00 [00:29:30]MH_I2C_Read... [00:29:30]Read from MH i2c: E2 0E 00 48 19 00 09 00 00 00 00 00 00 00 00 00 00 90 00 E9 [00:29:30]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:29:30]wFMCommunicate OK [00:29:30]SAM_PROTO_GetShiftState done [00:29:30]FM_GetShiftState done [00:29:30]req_shift_open_date done [00:29:30]produce_requested_data done [00:29:30]produce_requested_data return {"kkm.sn":"0300000164","kkm.ver":"001","fm.sn":"0000000000875093","fd.num":104266,"shift.num":355,"shift.opened":0,"shift.open_date":0} [00:29:30]process_action_free get_value [00:29:30]json_value_free [00:29:30]json_value_free done [00:29:30]process_json_proto returns [00:29:30]Send response to host [00:29:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000164","kkm.ver":"001","fm.sn":"0000000000875093","fd.num":104266,"shift.num":355,"shift.opened":0,"shift.open_date":0}}} [00:29:30]free response buf [00:29:30]execute_script done [00:29:30]execute_script returns [00:29:30]free content buf [00:29:30]Sock 9.Close socket [00:29:30]Sock 9.Thread stoped [00:29:30]accept exits with 7 [00:29:30]New connection [00:29:30]New thread 3067616612 created [00:29:30]Thread 3067473252 joined [00:29:30]Waiting for new connection... [00:29:30] Sock 7.Parse request [00:29:30]Sock 7.Check first char [00:29:30]Sock 7.First char is OK [00:29:30]request: POST /json_proto HTTP/1.0 [00:29:30]Method: POST [00:29:30]URL: /json_proto [00:29:30]Method is POST - this is cgi request [00:29:30]url: /json_proto [00:29:30]query_string will be loaded in cgi processing [00:29:30]execute_cgi json_proto POST (null) [00:29:30]execute_cgi path=json_proto method=POST [00:29:30]POST find Content-Length [00:29:30]Host: 172.17.38.133:8080 [00:29:30]Content-Length: 331 [00:29:30]Content-Type: application/json [00:29:30] [00:29:30]POST finish read [00:29:30]Found Content-Length = 331 [00:29:30]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:29:30]execute_script... [00:29:30]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:29:30]POST & json_proto [00:29:30]process_json_proto [00:29:30]json parsed OK: [00:29:30]protocol is kg_v1.0 [00:29:30]action value=get_value [00:29:30]process_action get_value [00:29:30]cmd_get_value [00:29:30]process_action get_value done [00:29:30]requested_data is exist [00:29:30]produce_requested_data [00:29:30]requested_item fm.sale.total is exist - process it [00:29:30]SAM_PROTO_GetFMData [00:29:30]wFMCommunicate request_size=4 [00:29:30]MH_SAM_APDU [00:29:30]CAPDU: 80 13 03 00 [00:29:30]Write to MH i2c: E2 08 00 49 19 80 13 03 00 00 00 00 00 E1 [00:29:30]Write i2c OK [00:29:30]MH_I2C_Read... [00:29:31]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:29:31]Read from MH i2c: E2 [00:29:31]MH_I2C_Read... [00:29:31]Read from MH i2c: E2 FD 00 [00:29:31]MH_I2C_Read... [00:29:31]Read from MH i2c: E2 FD 00 49 19 00 C5 04 85 04 C1 04 6E 04 04 00 83 94 01 00 69 04 A3 00 6F 04 04 00 24 90 01 00 B1 04 05 00 AB 58 32 41 04 70 04 05 00 8C 5B 27 5C 03 72 04 04 00 1F FD 0A E5 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 A6 BC AE 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 57 C3 A3 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 5F 04 00 00 B1 04 04 00 F4 C4 3D 18 70 04 04 00 F4 C4 3D 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 75 10 93 02 EF 03 09 90 00 A4 [00:29:31]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 83 94 01 00 69 04 A3 00 6F 04 04 00 24 90 01 00 B1 04 05 00 AB 58 32 41 04 70 04 05 00 8C 5B 27 5C 03 72 04 04 00 1F FD 0A E5 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 A6 BC AE 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 57 C3 A3 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 5F 04 00 00 B1 04 04 00 F4 C4 3D 18 70 04 04 00 F4 C4 3D 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 75 10 93 02 EF 03 09 90 00 [00:29:31]wFMCommunicate OK [00:29:31]wFMCommunicate request_size=4 [00:29:31]MH_SAM_APDU [00:29:31]CAPDU: 80 17 00 00 [00:29:31]Write to MH i2c: E2 08 00 4A 19 80 17 00 00 00 00 00 00 E3 [00:29:31]Write i2c OK [00:29:31]MH_I2C_Read... [00:29:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:29:31]Read from MH i2c: E2 [00:29:31]MH_I2C_Read... [00:29:31]Read from MH i2c: E2 FD 00 [00:29:31]MH_I2C_Read... [00:29:31]Read from MH i2c: E2 FD 00 4A 19 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B8 EB 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 72 [00:29:31]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B8 EB 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:29:31]wFMCommunicate OK [00:29:31]wFMCommunicate request_size=4 [00:29:31]MH_SAM_APDU [00:29:31]CAPDU: 80 17 00 00 [00:29:31]Write to MH i2c: E2 08 00 4B 19 80 17 00 00 00 00 00 00 E4 [00:29:31]Write i2c OK [00:29:31]MH_I2C_Read... [00:29:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:29:31]Read from MH i2c: E2 [00:29:31]MH_I2C_Read... [00:29:31]Read from MH i2c: E2 FD 00 [00:29:31]MH_I2C_Read... [00:29:31]Read from MH i2c: E2 FD 00 4B 19 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 F6 [00:29:31]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:29:31]wFMCommunicate OK [00:29:31]wFMCommunicate request_size=4 [00:29:31]MH_SAM_APDU [00:29:31]CAPDU: 80 17 00 00 [00:29:31]Write to MH i2c: E2 08 00 4C 19 80 17 00 00 00 00 00 00 E5 [00:29:31]Write i2c OK [00:29:31]MH_I2C_Read... [00:29:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:29:32]Read from MH i2c: E2 [00:29:32]MH_I2C_Read... [00:29:32]Read from MH i2c: E2 FD 00 [00:29:32]MH_I2C_Read... [00:29:32]Read from MH i2c: E2 FD 00 4C 19 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 71 [00:29:32]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:29:32]wFMCommunicate OK [00:29:32]wFMCommunicate request_size=4 [00:29:32]MH_SAM_APDU [00:29:32]CAPDU: 80 17 00 00 [00:29:32]Write to MH i2c: E2 08 00 4D 19 80 17 00 00 00 00 00 00 E6 [00:29:32]Write i2c OK [00:29:32]MH_I2C_Read... [00:29:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:29:32]Read from MH i2c: E2 [00:29:32]MH_I2C_Read... [00:29:32]Read from MH i2c: E2 E2 00 [00:29:32]MH_I2C_Read... [00:29:32]Read from MH i2c: E2 E2 00 4D 19 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 C4 [00:29:32]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:29:32]wFMCommunicate OK [00:29:32]SAM_PROTO_GetFMData done [00:29:32]requested_item fm.sale_refund.total is exist - process it [00:29:32]requested_item fm.buy.total is exist - process it [00:29:32]requested_item shift.sale.total is exist - process it [00:29:32]SAM_PROTO_GetShiftData [00:29:32]wFMCommunicate request_size=4 [00:29:32]MH_SAM_APDU [00:29:32]CAPDU: 80 13 02 00 [00:29:32]Write to MH i2c: E2 08 00 4E 19 80 13 02 00 00 00 00 00 E5 [00:29:32]Write i2c OK [00:29:32]MH_I2C_Read... [00:29:32]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:29:32]Read from MH i2c: E2 [00:29:32]MH_I2C_Read... [00:29:32]Read from MH i2c: E2 FD 00 [00:29:32]MH_I2C_Read... [00:29:32]Read from MH i2c: E2 FD 00 4E 19 00 BC 04 AA 04 B8 04 6E 04 04 00 BC 00 00 00 69 04 9E 00 6F 04 04 00 B6 00 00 00 B1 04 04 00 DE 96 C9 01 70 04 04 00 EC 94 0A 01 72 04 03 00 F2 01 BF 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 62 9A 30 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 C2 0C 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 06 00 00 00 B1 04 03 00 60 93 1B 70 04 03 00 60 93 1B 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 CD ED 02 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 C2 [00:29:32]RAPDU: BC 04 AA 04 B8 04 6E 04 04 00 BC 00 00 00 69 04 9E 00 6F 04 04 00 B6 00 00 00 B1 04 04 00 DE 96 C9 01 70 04 04 00 EC 94 0A 01 72 04 03 00 F2 01 BF 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 62 9A 30 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 C2 0C 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 06 00 00 00 B1 04 03 00 60 93 1B 70 04 03 00 60 93 1B 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 CD ED 02 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 [00:29:32]wFMCommunicate OK [00:29:32]wFMCommunicate request_size=4 [00:29:32]MH_SAM_APDU [00:29:32]CAPDU: 80 17 00 00 [00:29:32]Write to MH i2c: E2 08 00 4F 19 80 17 00 00 00 00 00 00 E8 [00:29:32]Write i2c OK [00:29:32]MH_I2C_Read... [00:29:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:29:33]Read from MH i2c: E2 [00:29:33]MH_I2C_Read... [00:29:33]Read from MH i2c: E2 FD 00 [00:29:33]MH_I2C_Read... [00:29:33]Read from MH i2c: E2 FD 00 4F 19 00 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7B 3E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 4B [00:29:33]RAPDU: 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7B 3E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:29:33]wFMCommunicate OK [00:29:33]wFMCommunicate request_size=4 [00:29:33]MH_SAM_APDU [00:29:33]CAPDU: 80 17 00 00 [00:29:33]Write to MH i2c: E2 08 00 50 19 80 17 00 00 00 00 00 00 E9 [00:29:33]Write i2c OK [00:29:33]MH_I2C_Read... [00:29:33]OFD Sender: No OFD packet to send [00:29:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:29:33]Read from MH i2c: E2 [00:29:33]MH_I2C_Read... [00:29:33]Read from MH i2c: E2 FD 00 [00:29:33]MH_I2C_Read... [00:29:33]Read from MH i2c: E2 FD 00 50 19 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 12 [00:29:33]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:29:33]wFMCommunicate OK [00:29:33]wFMCommunicate request_size=4 [00:29:33]MH_SAM_APDU [00:29:33]CAPDU: 80 17 00 00 [00:29:33]Write to MH i2c: E2 08 00 51 19 80 17 00 00 00 00 00 00 EA [00:29:33]Write i2c OK [00:29:33]MH_I2C_Read... [00:29:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:29:33]Read from MH i2c: E2 [00:29:33]MH_I2C_Read... [00:29:33]Read from MH i2c: E2 FD 00 [00:29:33]MH_I2C_Read... [00:29:33]Read from MH i2c: E2 FD 00 51 19 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 6B [00:29:33]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:29:33]wFMCommunicate OK [00:29:33]wFMCommunicate request_size=4 [00:29:33]MH_SAM_APDU [00:29:33]CAPDU: 80 17 00 00 [00:29:33]Write to MH i2c: E2 08 00 52 19 80 17 00 00 00 00 00 00 EB [00:29:33]Write i2c OK [00:29:33]MH_I2C_Read... [00:29:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 214! [00:29:33]Read from MH i2c: E2 [00:29:33]MH_I2C_Read... [00:29:33]Read from MH i2c: E2 D9 00 [00:29:33]MH_I2C_Read... [00:29:33]Read from MH i2c: E2 D9 00 52 19 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 CA [00:29:33]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:29:33]wFMCommunicate OK [00:29:33]SAM_PROTO_GetShiftData done [00:29:33]requested_item shift.sale.total_cash is exist - process it [00:29:33]requested_item shift.sale_refund.total is exist - process it [00:29:33]requested_item shift.sale_refund.total_cash is exist - process it [00:29:33]requested_item shift.buy.total is exist - process it [00:29:33]requested_item shift.buy.total_cash is exist - process it [00:29:33]produce_requested_data done [00:29:33]produce_requested_data return {"fm.sale.total":182736877.23,"fm.sale_refund.total":4067013.00,"fm.buy.total":0.00,"shift.sale.total":299885.74,"shift.sale.total_cash":174707.00,"shift.sale_refund.total":18072.00,"shift.sale_refund.total_cash":18072.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:29:33]process_action_free get_value [00:29:33]json_value_free [00:29:33]json_value_free done [00:29:33]process_json_proto returns [00:29:33]Send response to host [00:29:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":182736877.23,"fm.sale_refund.total":4067013.00,"fm.buy.total":0.00,"shift.sale.total":299885.74,"shift.sale.total_cash":174707.00,"shift.sale_refund.total":18072.00,"shift.sale_refund.total_cash":18072.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:29:33]free response buf [00:29:33]execute_script done [00:29:33]execute_script returns [00:29:33]free content buf [00:29:33]Sock 7.Close socket [00:29:33]Sock 7.Thread stoped [00:29:34]accept exits with 9 [00:29:34]New connection [00:29:34]New thread 3067473252 created [00:29:34]Thread 3067616612 joined [00:29:34]Waiting for new connection... [00:29:34] Sock 9.Parse request [00:29:34]Sock 9.Check first char [00:29:34]Sock 9.First char is OK [00:29:34]request: POST /json_proto HTTP/1.0 [00:29:34]Method: POST [00:29:34]URL: /json_proto [00:29:34]Method is POST - this is cgi request [00:29:34]url: /json_proto [00:29:34]query_string will be loaded in cgi processing [00:29:34]execute_cgi json_proto POST (null) [00:29:34]execute_cgi path=json_proto method=POST [00:29:34]POST find Content-Length [00:29:34]Host: 172.17.38.133:8080 [00:29:34]Content-Length: 271 [00:29:34]Content-Type: application/json [00:29:34] [00:29:34]POST finish read [00:29:34]Found Content-Length = 271 [00:29:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:29:34]execute_script... [00:29:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:29:34]POST & json_proto [00:29:34]process_json_proto [00:29:34]json parsed OK: [00:29:34]protocol is kg_v1.0 [00:29:34]action value=open_shift [00:29:34]process_action open_shift [00:29:34]cmd_open_shift [00:29:34]MH_GetDate [00:29:34]Write to MH i2c: F0 00 00 53 19 5B [00:29:34]Write i2c OK [00:29:34]MH_I2C_Read... [00:29:34]Read from MH i2c: F0 [00:29:34]MH_I2C_Read... [00:29:34]Read from MH i2c: F0 09 00 [00:29:34]MH_I2C_Read... [00:29:34]Read from MH i2c: F0 09 00 53 19 00 F0 1A 76 66 BD 8F 7C 64 76 [00:29:34]GetLastDocTimeStamp 1719014782 [00:29:34]current date 1719016176 [00:29:34]FM_GetShiftState [00:29:34]SAM_PROTO_GetShiftState [00:29:34]wFMCommunicate request_size=4 [00:29:34]MH_SAM_APDU [00:29:34]CAPDU: 80 13 01 00 [00:29:34]Write to MH i2c: E2 08 00 54 19 80 13 01 00 00 00 00 00 EA [00:29:34]Write i2c OK [00:29:34]MH_I2C_Read... [00:29:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:29:34]Read from MH i2c: E2 [00:29:34]MH_I2C_Read... [00:29:34]Read from MH i2c: E2 0E 00 [00:29:34]MH_I2C_Read... [00:29:34]Read from MH i2c: E2 0E 00 54 19 00 09 00 00 00 00 00 00 00 00 00 00 90 00 F5 [00:29:34]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:29:34]wFMCommunicate OK [00:29:34]SAM_PROTO_GetShiftState done [00:29:34]FM_GetShiftState done [00:29:34]KKMCreateOpenShiftDocument [00:29:34]Load OK [00:29:34]Malloc new data [00:29:34]MH_GetDate [00:29:34]Write to MH i2c: F0 00 00 55 19 5D [00:29:34]Write i2c OK [00:29:34]MH_I2C_Read... [00:29:34]Read from MH i2c: F0 [00:29:34]MH_I2C_Read... [00:29:34]Read from MH i2c: F0 09 00 [00:29:34]MH_I2C_Read... [00:29:34]Read from MH i2c: F0 09 00 55 19 00 F0 1A 76 66 BD 8F 7C 64 78 [00:29:34]Malloc new data [00:29:34]KKMCreateOpenShiftDocument OK [00:29:34]KKMSetOpenShiftData OK [00:29:34]ProcessDocumentItem done err = 0, tmpTLVsize=203 [00:29:34]tlvbuf is 006EAE20 [00:29:34]KKMLoadAndSignOpenShiftData [00:29:34]SAM_PROTO_ProcessDocument [00:29:34]wFMCommunicate request_size=9 [00:29:34]MH_SAM_APDU [00:29:34]CAPDU: 80 15 01 00 04 02 00 CB 00 [00:29:34]Write to MH i2c: E2 0C 00 56 19 80 15 01 00 04 00 02 00 CB 00 00 00 C3 [00:29:34]Write i2c OK [00:29:34]MH_I2C_Read... [00:29:34]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:29:34]Read from MH i2c: E2 [00:29:34]MH_I2C_Read... [00:29:34]Read from MH i2c: E2 03 00 [00:29:34]MH_I2C_Read... [00:29:34]Read from MH i2c: E2 03 00 56 19 00 90 00 E3 [00:29:34]RAPDU: 90 00 [00:29:34]wFMCommunicate OK [00:29:34]wFMCommunicate request_size=23 [00:29:34]MH_SAM_APDU [00:29:34]CAPDU: 80 15 02 00 12 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 [00:29:34]Write to MH i2c: E2 1A 00 57 19 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 E5 [00:29:34]Write i2c OK [00:29:34]MH_I2C_Read... [00:29:34]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:29:34]Read from MH i2c: E2 [00:29:34]MH_I2C_Read... [00:29:34]Read from MH i2c: E2 03 00 [00:29:34]MH_I2C_Read... [00:29:34]Read from MH i2c: E2 03 00 57 19 00 90 00 E4 [00:29:34]RAPDU: 90 00 [00:29:34]wFMCommunicate OK [00:29:34]wFMCommunicate request_size=34 [00:29:34]MH_SAM_APDU [00:29:34]CAPDU: 80 15 02 00 1D FD 03 19 00 D0 91 D0 B0 D0 B9 D0 B1 D1 83 D0 B3 D1 83 D0 B5 D0 B2 D0 B0 20 D0 93 2E 20 [00:29:34]Write to MH i2c: E2 25 00 58 19 80 15 02 00 1D 00 FD 03 19 00 D0 91 D0 B0 D0 B9 D0 B1 D1 83 D0 B3 D1 83 D0 B5 D0 B2 D0 B0 20 D0 93 2E 20 00 00 B2 [00:29:34]Write i2c OK [00:29:34]MH_I2C_Read... [00:29:34]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:29:34]Read from MH i2c: E2 [00:29:34]MH_I2C_Read... [00:29:34]Read from MH i2c: E2 03 00 [00:29:34]MH_I2C_Read... [00:29:34]Read from MH i2c: E2 03 00 58 19 00 90 00 E5 [00:29:34]RAPDU: 90 00 [00:29:34]wFMCommunicate OK [00:29:34]wFMCommunicate request_size=87 [00:29:34]MH_SAM_APDU [00:29:34]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:29:34]Write to MH i2c: E2 5A 00 59 19 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 66 [00:29:34]Write i2c OK [00:29:34]MH_I2C_Read... [00:29:34]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:29:34]Read from MH i2c: E2 [00:29:34]MH_I2C_Read... [00:29:34]Read from MH i2c: E2 03 00 [00:29:34]MH_I2C_Read... [00:29:34]Read from MH i2c: E2 03 00 59 19 00 90 00 E6 [00:29:34]RAPDU: 90 00 [00:29:34]wFMCommunicate OK [00:29:34]wFMCommunicate request_size=51 [00:29:34]MH_SAM_APDU [00:29:34]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:29:34]Write to MH i2c: E2 36 00 5A 19 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 98 [00:29:34]Write i2c OK [00:29:34]MH_I2C_Read... [00:29:34]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:29:34]Read from MH i2c: E2 [00:29:34]MH_I2C_Read... [00:29:34]Read from MH i2c: E2 03 00 [00:29:34]MH_I2C_Read... [00:29:34]Read from MH i2c: E2 03 00 5A 19 00 90 00 E7 [00:29:34]RAPDU: 90 00 [00:29:34]wFMCommunicate OK [00:29:34]wFMCommunicate request_size=13 [00:29:34]MH_SAM_APDU [00:29:34]CAPDU: 80 15 02 00 08 F4 03 04 00 F0 1A 76 66 [00:29:34]Write to MH i2c: E2 10 00 5B 19 80 15 02 00 08 00 F4 03 04 00 F0 1A 76 66 00 00 E5 [00:29:34]Write i2c OK [00:29:34]MH_I2C_Read... [00:29:34]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:29:34]Read from MH i2c: E2 [00:29:34]MH_I2C_Read... [00:29:34]Read from MH i2c: E2 03 00 [00:29:34]MH_I2C_Read... [00:29:34]Read from MH i2c: E2 03 00 5B 19 00 90 00 E8 [00:29:34]RAPDU: 90 00 [00:29:34]wFMCommunicate OK [00:29:34]wFMCommunicate request_size=25 [00:29:34]MH_SAM_APDU [00:29:34]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:29:34]Write to MH i2c: E2 1C 00 5C 19 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 5D [00:29:34]Write i2c OK [00:29:34]MH_I2C_Read... [00:29:34]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:29:34]Read from MH i2c: E2 [00:29:34]MH_I2C_Read... [00:29:34]Read from MH i2c: E2 03 00 [00:29:34]MH_I2C_Read... [00:29:34]Read from MH i2c: E2 03 00 5C 19 00 90 00 E9 [00:29:34]RAPDU: 90 00 [00:29:34]wFMCommunicate OK [00:29:34]wFMCommunicate request_size=4 [00:29:34]MH_SAM_APDU [00:29:34]CAPDU: 80 15 03 00 [00:29:34]Write to MH i2c: E2 08 00 5D 19 80 15 03 00 00 00 00 00 F7 [00:29:34]Write i2c OK [00:29:34]MH_I2C_Read... [00:29:34]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 53! [00:29:34]Read from MH i2c: E2 [00:29:34]MH_I2C_Read... [00:29:34]Read from MH i2c: E2 38 00 [00:29:34]MH_I2C_Read... [00:29:34]Read from MH i2c: E2 38 00 5D 19 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 4B 97 01 00 0E 04 04 00 64 01 00 00 35 04 06 00 1E 47 26 CB 1E F3 90 00 72 [00:29:35]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 4B 97 01 00 0E 04 04 00 64 01 00 00 35 04 06 00 1E 47 26 CB 1E F3 90 00 [00:29:35]wFMCommunicate OK [00:29:35]SAM_PROTO_ProcessDocument answer len = 51 [00:29:35]SAM_PROTO_ProcessDocument done [00:29:35]SetTLVBufToDocument [00:29:35]Processing tag 1209 (04B9) [00:29:35]Malloc new data [00:29:35]Processing tag 1041 (0411) [00:29:35]Processing tag 1040 (0410) [00:29:35]Malloc new data [00:29:35]Processing tag 1038 (040E) [00:29:35]Malloc new data [00:29:35]Processing tag 1077 (0435) [00:29:35]Malloc new data [00:29:35]SetTLVBufToDocument err=0 [00:29:35]KKMLoadAndSignOpenShiftData store KKM data [00:29:35]KKMLoadAndSignOpenShiftData err=0 [00:29:35]Отчет об открытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Байбугуева Г. Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 Место: АЗС № 120 "Партнер Нефть" 22.06.2024 00:29 Смена: 356 РНМ: 0000000000092785 ЗНМ: 0300000164 ФД: 104267 ФМ: 0000000000875093 ФПД: 33290942357235 [00:29:35]StoreToDocumentArchive [00:29:35]shift 356 fd 104267 [00:29:35]Create dir for shift 0356 [00:29:35]save to /storage/0356/doc_00104267 [00:29:35]save last doc name /storage/0356/doc_00104267 to /storage/kkm_last_doc_name [00:29:35]save OK [00:29:35]Clear old archive folders... [00:29:35]Remove dir /storage/0355 [00:29:35]opendir ok [00:29:35]file . [00:29:35]file .. [00:29:35]file doc_00104077 [00:29:35]remove file /storage/0355/doc_00104077 [00:29:35]file doc_00104078 [00:29:35]remove file /storage/0355/doc_00104078 [00:29:35]file doc_00104079 [00:29:35]remove file /storage/0355/doc_00104079 [00:29:35]file doc_00104080 [00:29:35]remove file /storage/0355/doc_00104080 [00:29:35]file doc_00104081 [00:29:35]remove file /storage/0355/doc_00104081 [00:29:35]file doc_00104082 [00:29:35]remove file /storage/0355/doc_00104082 [00:29:35]file doc_00104083 [00:29:35]remove file /storage/0355/doc_00104083 [00:29:35]file doc_00104084 [00:29:35]remove file /storage/0355/doc_00104084 [00:29:35]file doc_00104085 [00:29:35]remove file /storage/0355/doc_00104085 [00:29:35]file doc_00104086 [00:29:35]remove file /storage/0355/doc_00104086 [00:29:35]file doc_00104087 [00:29:35]remove file /storage/0355/doc_00104087 [00:29:35]file doc_00104088 [00:29:35]remove file /storage/0355/doc_00104088 [00:29:35]file doc_00104089 [00:29:35]remove file /storage/0355/doc_00104089 [00:29:35]file doc_00104090 [00:29:35]remove file /storage/0355/doc_00104090 [00:29:35]file doc_00104091 [00:29:35]remove file /storage/0355/doc_00104091 [00:29:35]file doc_00104092 [00:29:35]remove file /storage/0355/doc_00104092 [00:29:35]file doc_00104093 [00:29:35]remove file /storage/0355/doc_00104093 [00:29:35]file doc_00104094 [00:29:35]remove file /storage/0355/doc_00104094 [00:29:35]file doc_00104095 [00:29:35]remove file /storage/0355/doc_00104095 [00:29:35]file doc_00104096 [00:29:35]remove file /storage/0355/doc_00104096 [00:29:35]file doc_00104097 [00:29:35]remove file /storage/0355/doc_00104097 [00:29:35]file doc_00104098 [00:29:35]remove file /storage/0355/doc_00104098 [00:29:35]file doc_00104099 [00:29:35]remove file /storage/0355/doc_00104099 [00:29:35]file doc_00104100 [00:29:35]remove file /storage/0355/doc_00104100 [00:29:35]file doc_00104101 [00:29:35]remove file /storage/0355/doc_00104101 [00:29:35]file doc_00104102 [00:29:35]remove file /storage/0355/doc_00104102 [00:29:35]file doc_00104103 [00:29:35]remove file /storage/0355/doc_00104103 [00:29:35]file doc_00104104 [00:29:35]remove file /storage/0355/doc_00104104 [00:29:35]file doc_00104105 [00:29:35]remove file /storage/0355/doc_00104105 [00:29:35]file doc_00104106 [00:29:35]remove file /storage/0355/doc_00104106 [00:29:35]file doc_00104107 [00:29:35]remove file /storage/0355/doc_00104107 [00:29:35]file doc_00104108 [00:29:35]remove file /storage/0355/doc_00104108 [00:29:35]file doc_00104109 [00:29:35]remove file /storage/0355/doc_00104109 [00:29:35]file doc_00104110 [00:29:35]remove file /storage/0355/doc_00104110 [00:29:35]file doc_00104111 [00:29:35]remove file /storage/0355/doc_00104111 [00:29:35]file doc_00104112 [00:29:35]remove file /storage/0355/doc_00104112 [00:29:35]file doc_00104113 [00:29:35]remove file /storage/0355/doc_00104113 [00:29:35]file doc_00104114 [00:29:35]remove file /storage/0355/doc_00104114 [00:29:35]file doc_00104115 [00:29:35]remove file /storage/0355/doc_00104115 [00:29:35]file doc_00104116 [00:29:35]remove file /storage/0355/doc_00104116 [00:29:35]file doc_00104117 [00:29:35]remove file /storage/0355/doc_00104117 [00:29:35]file doc_00104118 [00:29:35]remove file /storage/0355/doc_00104118 [00:29:35]file doc_00104119 [00:29:35]remove file /storage/0355/doc_00104119 [00:29:35]file doc_00104120 [00:29:35]remove file /storage/0355/doc_00104120 [00:29:35]file doc_00104121 [00:29:35]remove file /storage/0355/doc_00104121 [00:29:35]file doc_00104122 [00:29:35]remove file /storage/0355/doc_00104122 [00:29:35]file doc_00104123 [00:29:35]remove file /storage/0355/doc_00104123 [00:29:35]file doc_00104124 [00:29:35]remove file /storage/0355/doc_00104124 [00:29:35]file doc_00104125 [00:29:35]remove file /storage/0355/doc_00104125 [00:29:35]file doc_00104126 [00:29:35]remove file /storage/0355/doc_00104126 [00:29:35]file doc_00104127 [00:29:35]remove file /storage/0355/doc_00104127 [00:29:35]file doc_00104128 [00:29:35]remove file /storage/0355/doc_00104128 [00:29:35]file doc_00104129 [00:29:35]remove file /storage/0355/doc_00104129 [00:29:35]file doc_00104130 [00:29:35]remove file /storage/0355/doc_00104130 [00:29:35]file doc_00104131 [00:29:35]remove file /storage/0355/doc_00104131 [00:29:35]file doc_00104132 [00:29:35]remove file /storage/0355/doc_00104132 [00:29:35]file doc_00104133 [00:29:35]remove file /storage/0355/doc_00104133 [00:29:35]file doc_00104134 [00:29:35]remove file /storage/0355/doc_00104134 [00:29:35]file doc_00104135 [00:29:35]remove file /storage/0355/doc_00104135 [00:29:35]file doc_00104136 [00:29:35]remove file /storage/0355/doc_00104136 [00:29:35]file doc_00104137 [00:29:35]remove file /storage/0355/doc_00104137 [00:29:35]file doc_00104138 [00:29:35]remove file /storage/0355/doc_00104138 [00:29:35]file doc_00104139 [00:29:35]remove file /storage/0355/doc_00104139 [00:29:35]file doc_00104140 [00:29:35]remove file /storage/0355/doc_00104140 [00:29:35]file doc_00104141 [00:29:35]remove file /storage/0355/doc_00104141 [00:29:35]file doc_00104142 [00:29:35]remove file /storage/0355/doc_00104142 [00:29:35]file doc_00104143 [00:29:35]remove file /storage/0355/doc_00104143 [00:29:35]file doc_00104144 [00:29:35]remove file /storage/0355/doc_00104144 [00:29:35]file doc_00104145 [00:29:35]remove file /storage/0355/doc_00104145 [00:29:35]file doc_00104146 [00:29:35]remove file /storage/0355/doc_00104146 [00:29:35]file doc_00104147 [00:29:35]remove file /storage/0355/doc_00104147 [00:29:35]file doc_00104148 [00:29:35]remove file /storage/0355/doc_00104148 [00:29:35]file doc_00104149 [00:29:35]remove file /storage/0355/doc_00104149 [00:29:35]file doc_00104150 [00:29:35]remove file /storage/0355/doc_00104150 [00:29:35]file doc_00104151 [00:29:35]remove file /storage/0355/doc_00104151 [00:29:35]file doc_00104152 [00:29:35]remove file /storage/0355/doc_00104152 [00:29:35]file doc_00104153 [00:29:35]remove file /storage/0355/doc_00104153 [00:29:35]file doc_00104154 [00:29:35]remove file /storage/0355/doc_00104154 [00:29:35]file doc_00104155 [00:29:35]remove file /storage/0355/doc_00104155 [00:29:35]file doc_00104156 [00:29:35]remove file /storage/0355/doc_00104156 [00:29:35]file doc_00104157 [00:29:35]remove file /storage/0355/doc_00104157 [00:29:35]file doc_00104158 [00:29:35]remove file /storage/0355/doc_00104158 [00:29:35]file doc_00104159 [00:29:35]remove file /storage/0355/doc_00104159 [00:29:35]file doc_00104160 [00:29:35]remove file /storage/0355/doc_00104160 [00:29:35]file doc_00104161 [00:29:35]remove file /storage/0355/doc_00104161 [00:29:35]file doc_00104162 [00:29:35]remove file /storage/0355/doc_00104162 [00:29:35]file doc_00104163 [00:29:35]remove file /storage/0355/doc_00104163 [00:29:35]file doc_00104164 [00:29:35]remove file /storage/0355/doc_00104164 [00:29:35]file doc_00104165 [00:29:35]remove file /storage/0355/doc_00104165 [00:29:35]file doc_00104166 [00:29:35]remove file /storage/0355/doc_00104166 [00:29:35]file doc_00104167 [00:29:35]remove file /storage/0355/doc_00104167 [00:29:35]file doc_00104168 [00:29:35]remove file /storage/0355/doc_00104168 [00:29:35]file doc_00104169 [00:29:35]remove file /storage/0355/doc_00104169 [00:29:35]file doc_00104170 [00:29:35]remove file /storage/0355/doc_00104170 [00:29:35]file doc_00104171 [00:29:35]remove file /storage/0355/doc_00104171 [00:29:35]file doc_00104172 [00:29:35]remove file /storage/0355/doc_00104172 [00:29:35]file doc_00104173 [00:29:35]remove file /storage/0355/doc_00104173 [00:29:35]file doc_00104174 [00:29:35]remove file /storage/0355/doc_00104174 [00:29:35]file doc_00104175 [00:29:35]remove file /storage/0355/doc_00104175 [00:29:35]file doc_00104176 [00:29:35]remove file /storage/0355/doc_00104176 [00:29:35]file doc_00104177 [00:29:35]remove file /storage/0355/doc_00104177 [00:29:35]file doc_00104178 [00:29:35]remove file /storage/0355/doc_00104178 [00:29:35]file doc_00104179 [00:29:35]remove file /storage/0355/doc_00104179 [00:29:35]file doc_00104180 [00:29:35]remove file /storage/0355/doc_00104180 [00:29:35]file doc_00104181 [00:29:35]remove file /storage/0355/doc_00104181 [00:29:35]file doc_00104182 [00:29:35]remove file /storage/0355/doc_00104182 [00:29:35]file doc_00104183 [00:29:35]remove file /storage/0355/doc_00104183 [00:29:35]file doc_00104184 [00:29:35]remove file /storage/0355/doc_00104184 [00:29:35]file doc_00104185 [00:29:35]remove file /storage/0355/doc_00104185 [00:29:35]file doc_00104186 [00:29:35]remove file /storage/0355/doc_00104186 [00:29:35]file doc_00104187 [00:29:35]remove file /storage/0355/doc_00104187 [00:29:35]file doc_00104188 [00:29:35]remove file /storage/0355/doc_00104188 [00:29:35]file doc_00104189 [00:29:35]remove file /storage/0355/doc_00104189 [00:29:35]file doc_00104190 [00:29:35]remove file /storage/0355/doc_00104190 [00:29:35]file doc_00104191 [00:29:35]remove file /storage/0355/doc_00104191 [00:29:35]file doc_00104192 [00:29:35]remove file /storage/0355/doc_00104192 [00:29:35]file doc_00104193 [00:29:35]remove file /storage/0355/doc_00104193 [00:29:35]file doc_00104194 [00:29:35]remove file /storage/0355/doc_00104194 [00:29:35]file doc_00104195 [00:29:35]remove file /storage/0355/doc_00104195 [00:29:35]file doc_00104196 [00:29:35]remove file /storage/0355/doc_00104196 [00:29:35]file doc_00104197 [00:29:35]remove file /storage/0355/doc_00104197 [00:29:35]file doc_00104198 [00:29:35]remove file /storage/0355/doc_00104198 [00:29:35]file doc_00104199 [00:29:35]remove file /storage/0355/doc_00104199 [00:29:35]file doc_00104200 [00:29:35]remove file /storage/0355/doc_00104200 [00:29:35]file doc_00104201 [00:29:35]remove file /storage/0355/doc_00104201 [00:29:35]file doc_00104202 [00:29:35]remove file /storage/0355/doc_00104202 [00:29:35]file doc_00104203 [00:29:35]remove file /storage/0355/doc_00104203 [00:29:35]file doc_00104204 [00:29:35]remove file /storage/0355/doc_00104204 [00:29:35]file doc_00104205 [00:29:35]remove file /storage/0355/doc_00104205 [00:29:35]file doc_00104206 [00:29:35]remove file /storage/0355/doc_00104206 [00:29:35]file doc_00104207 [00:29:35]remove file /storage/0355/doc_00104207 [00:29:35]file doc_00104208 [00:29:35]remove file /storage/0355/doc_00104208 [00:29:35]file doc_00104209 [00:29:35]remove file /storage/0355/doc_00104209 [00:29:35]file doc_00104210 [00:29:35]remove file /storage/0355/doc_00104210 [00:29:35]file doc_00104211 [00:29:35]remove file /storage/0355/doc_00104211 [00:29:35]file doc_00104212 [00:29:35]remove file /storage/0355/doc_00104212 [00:29:35]file doc_00104213 [00:29:35]remove file /storage/0355/doc_00104213 [00:29:35]file doc_00104214 [00:29:35]remove file /storage/0355/doc_00104214 [00:29:35]file doc_00104215 [00:29:35]remove file /storage/0355/doc_00104215 [00:29:35]file doc_00104216 [00:29:35]remove file /storage/0355/doc_00104216 [00:29:35]file doc_00104217 [00:29:35]remove file /storage/0355/doc_00104217 [00:29:35]file doc_00104218 [00:29:35]remove file /storage/0355/doc_00104218 [00:29:35]file doc_00104219 [00:29:35]remove file /storage/0355/doc_00104219 [00:29:35]file doc_00104220 [00:29:35]remove file /storage/0355/doc_00104220 [00:29:35]file doc_00104221 [00:29:35]remove file /storage/0355/doc_00104221 [00:29:35]file doc_00104222 [00:29:35]remove file /storage/0355/doc_00104222 [00:29:35]file doc_00104223 [00:29:35]remove file /storage/0355/doc_00104223 [00:29:35]file doc_00104224 [00:29:35]remove file /storage/0355/doc_00104224 [00:29:35]file doc_00104225 [00:29:35]remove file /storage/0355/doc_00104225 [00:29:35]file doc_00104226 [00:29:35]remove file /storage/0355/doc_00104226 [00:29:35]file doc_00104227 [00:29:35]remove file /storage/0355/doc_00104227 [00:29:35]file doc_00104228 [00:29:35]remove file /storage/0355/doc_00104228 [00:29:35]file doc_00104229 [00:29:35]remove file /storage/0355/doc_00104229 [00:29:35]file doc_00104230 [00:29:35]remove file /storage/0355/doc_00104230 [00:29:35]file doc_00104231 [00:29:35]remove file /storage/0355/doc_00104231 [00:29:36]file doc_00104232 [00:29:36]remove file /storage/0355/doc_00104232 [00:29:36]file doc_00104233 [00:29:36]remove file /storage/0355/doc_00104233 [00:29:36]file doc_00104234 [00:29:36]remove file /storage/0355/doc_00104234 [00:29:36]file doc_00104235 [00:29:36]remove file /storage/0355/doc_00104235 [00:29:36]file doc_00104236 [00:29:36]remove file /storage/0355/doc_00104236 [00:29:36]file doc_00104237 [00:29:36]remove file /storage/0355/doc_00104237 [00:29:36]file doc_00104238 [00:29:36]remove file /storage/0355/doc_00104238 [00:29:36]file doc_00104239 [00:29:36]remove file /storage/0355/doc_00104239 [00:29:36]file doc_00104240 [00:29:36]remove file /storage/0355/doc_00104240 [00:29:36]file doc_00104241 [00:29:36]remove file /storage/0355/doc_00104241 [00:29:36]file doc_00104242 [00:29:36]remove file /storage/0355/doc_00104242 [00:29:36]file doc_00104243 [00:29:36]remove file /storage/0355/doc_00104243 [00:29:36]file doc_00104244 [00:29:36]remove file /storage/0355/doc_00104244 [00:29:36]file doc_00104245 [00:29:36]remove file /storage/0355/doc_00104245 [00:29:36]file doc_00104246 [00:29:36]remove file /storage/0355/doc_00104246 [00:29:36]file doc_00104247 [00:29:36]remove file /storage/0355/doc_00104247 [00:29:36]file doc_00104248 [00:29:36]remove file /storage/0355/doc_00104248 [00:29:36]file doc_00104249 [00:29:36]remove file /storage/0355/doc_00104249 [00:29:36]file doc_00104250 [00:29:36]remove file /storage/0355/doc_00104250 [00:29:36]file doc_00104251 [00:29:36]remove file /storage/0355/doc_00104251 [00:29:36]file doc_00104252 [00:29:36]remove file /storage/0355/doc_00104252 [00:29:36]file doc_00104253 [00:29:36]remove file /storage/0355/doc_00104253 [00:29:36]file doc_00104254 [00:29:36]remove file /storage/0355/doc_00104254 [00:29:36]file doc_00104255 [00:29:36]remove file /storage/0355/doc_00104255 [00:29:36]file doc_00104256 [00:29:36]remove file /storage/0355/doc_00104256 [00:29:36]file doc_00104257 [00:29:36]remove file /storage/0355/doc_00104257 [00:29:36]file doc_00104258 [00:29:36]remove file /storage/0355/doc_00104258 [00:29:36]file doc_00104259 [00:29:36]remove file /storage/0355/doc_00104259 [00:29:36]file doc_00104260 [00:29:36]remove file /storage/0355/doc_00104260 [00:29:36]file doc_00104261 [00:29:36]remove file /storage/0355/doc_00104261 [00:29:36]file doc_00104262 [00:29:36]remove file /storage/0355/doc_00104262 [00:29:36]file doc_00104263 [00:29:36]remove file /storage/0355/doc_00104263 [00:29:36]file doc_00104264 [00:29:36]remove file /storage/0355/doc_00104264 [00:29:36]file doc_00104265 [00:29:36]remove file /storage/0355/doc_00104265 [00:29:36]file doc_00104266 [00:29:36]remove file /storage/0355/doc_00104266 [00:29:36]remove dir /storage/0355 [00:29:36]ProcessDocumentItem done err = 0, tmpTLVsize=254 [00:29:36]tlvbuf is 00655960 [00:29:36]SAM_PROTO_ClearQueue [00:29:36]wFMCommunicate request_size=4 [00:29:36]MH_SAM_APDU [00:29:36]CAPDU: 80 09 00 00 [00:29:36]Write to MH i2c: E2 08 00 5E 19 80 09 00 00 00 00 00 00 E9 [00:29:36]Write i2c OK [00:29:36]MH_I2C_Read... [00:29:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:29:36]Read from MH i2c: E2 [00:29:36]MH_I2C_Read... [00:29:36]Read from MH i2c: E2 03 00 [00:29:36]MH_I2C_Read... [00:29:36]Read from MH i2c: E2 03 00 5E 19 00 90 00 EB [00:29:36]RAPDU: 90 00 [00:29:36]wFMCommunicate OK [00:29:36]SAM_PROTO_ClearQueue done [00:29:36]KKMCreateOFDPacket [00:29:36]OFDProtocolAddRootSTLVToBuf [00:29:36]FM_MakeSignedData [00:29:36]FM_MakeSignedData [00:29:36]SAM_PROTO_SignData [00:29:36]wFMCommunicate request_size=4 [00:29:36]MH_SAM_APDU [00:29:36]CAPDU: 80 0D 01 02 [00:29:36]Write to MH i2c: E2 08 00 5F 19 80 0D 01 02 00 00 00 00 F1 [00:29:36]Write i2c OK [00:29:36]MH_I2C_Read... [00:29:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:29:36]Read from MH i2c: E2 [00:29:36]MH_I2C_Read... [00:29:36]Read from MH i2c: E2 03 00 [00:29:36]MH_I2C_Read... [00:29:36]Read from MH i2c: E2 03 00 5F 19 00 90 00 EC [00:29:36]RAPDU: 90 00 [00:29:36]wFMCommunicate OK [00:29:36]wFMCommunicate request_size=255 [00:29:36]MH_SAM_APDU [00:29:36]CAPDU: 80 0D 02 02 FA 02 00 FE 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 19 00 D0 91 D0 B0 D0 B9 D0 B1 D1 83 D0 B3 D1 83 D0 B5 D0 B2 D0 B0 20 D0 93 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 F0 1A 76 66 0E 04 04 00 64 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 4B 97 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 35 04 [00:29:36]Write to MH i2c: E2 02 01 60 19 80 0D 02 02 FA 00 02 00 FE 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 19 00 D0 91 D0 B0 D0 B9 D0 B1 D1 83 D0 B3 D1 83 D0 B5 D0 B2 D0 B0 20 D0 93 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 F0 1A 76 66 0E 04 04 00 64 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 4B 97 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 35 04 00 00 2D [00:29:36]Write i2c OK [00:29:36]MH_I2C_Read... [00:29:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:29:36]Read from MH i2c: E2 [00:29:36]MH_I2C_Read... [00:29:36]Read from MH i2c: E2 03 00 [00:29:36]MH_I2C_Read... [00:29:36]Read from MH i2c: E2 03 00 60 19 00 90 00 ED [00:29:36]RAPDU: 90 00 [00:29:36]wFMCommunicate OK [00:29:36]wFMCommunicate request_size=13 [00:29:36]MH_SAM_APDU [00:29:36]CAPDU: 80 0D 02 02 08 06 00 1E 47 26 CB 1E F3 [00:29:36]Write to MH i2c: E2 10 00 61 19 80 0D 02 02 08 00 06 00 1E 47 26 CB 1E F3 00 00 71 [00:29:36]Write i2c OK [00:29:36]MH_I2C_Read... [00:29:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:29:36]Read from MH i2c: E2 [00:29:36]MH_I2C_Read... [00:29:36]Read from MH i2c: E2 03 00 [00:29:36]MH_I2C_Read... [00:29:36]Read from MH i2c: E2 03 00 61 19 00 90 00 EE [00:29:36]RAPDU: 90 00 [00:29:36]wFMCommunicate OK [00:29:36]wFMCommunicate request_size=4 [00:29:36]MH_SAM_APDU [00:29:36]CAPDU: 80 0D 03 02 [00:29:36]Write to MH i2c: E2 08 00 62 19 80 0D 03 02 00 00 00 00 F6 [00:29:36]Write i2c OK [00:29:36]MH_I2C_Read... [00:29:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:29:36]Read from MH i2c: E2 [00:29:36]MH_I2C_Read... [00:29:36]Read from MH i2c: E2 0B 00 [00:29:36]MH_I2C_Read... [00:29:36]Read from MH i2c: E2 0B 00 62 19 00 41 F2 1F 92 DC 8B 76 0E 90 00 C6 [00:29:36]RAPDU: 41 F2 1F 92 DC 8B 76 0E 90 00 [00:29:36]wFMCommunicate OK [00:29:36]SAM_PROTO_SignData done [00:29:36]FM_MakeSignedData done [00:29:36]CreateOFDProtocolMessage [00:29:36]wFMCommunicate request_size=4 [00:29:36]MH_SAM_APDU [00:29:36]CAPDU: 80 11 00 00 [00:29:36]Write to MH i2c: E2 08 00 63 19 80 11 00 00 00 00 00 00 F6 [00:29:36]Write i2c OK [00:29:36]MH_I2C_Read... [00:29:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:29:36]Read from MH i2c: E2 [00:29:36]MH_I2C_Read... [00:29:36]Read from MH i2c: E2 17 00 [00:29:36]MH_I2C_Read... [00:29:36]Read from MH i2c: E2 17 00 63 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 49 [00:29: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:29:36]wFMCommunicate OK [00:29:36]CreateOFDProtocolMessage done [00:29:36]OFDSenderStorePacket 104267 [00:29:36]StoreOFDPacket docnum=104267 [00:29: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 12 01 00 00 E8 06 0A 01 71 3F 5A 02 01 00 02 00 FE 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 19 00 D0 91 D0 B0 D0 B9 D0 B1 D1 83 D0 B3 D1 83 D0 B5 D0 B2 D0 B0 20 D0 93 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 F0 1A 76 66 0E 04 04 00 64 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 4B 97 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 47 26 CB 1E F3 41 F2 1F 92 DC 8B 76 0E [00:29:36]CheckFolder [00:29:36]dirname=/storage/ofd_packets [00:29:36]CheckFolder done [00:29:36]ProducePacketName [00:29:36]name=ofd_packets/00104267 [00:29:36]NVStorageSaveData ofd_packets/00104267 [00:29:36]File name is /storage/ofd_packets/00104267 [00:29:36]Write 304 bytes [00:29:36]NVStorageSaveData done [00:29:36]OFDSenderStorePacket done [00:29:36]KKMCreateOFDPacket done [00:29:36]NVStorageSaveData kkm_last_timestamp [00:29:36]File name is /storage/kkm_last_timestamp [00:29:36]Write 4 bytes [00:29:36]NVStorageSaveData done [00:29:36]ExternCall_PrintAddStr [00:29:36]wPrintStart [00:29:36]Write to MH i2c: 01 00 00 64 19 7D [00:29:36]Write i2c OK [00:29:36]MH_I2C_Read... [00:29:36]Read from MH i2c: 01 [00:29:36]MH_I2C_Read... [00:29:36]Read from MH i2c: 01 07 00 [00:29:36]MH_I2C_Read... [00:29:36]Read from MH i2c: 01 07 00 64 19 00 00 00 00 00 FF 0F 92 [00:29:36]RasterBufferAndPrint [00:29:36]line Отчет об открытии смены [00:29:36]line ФФД: 1.0 [00:29:36]line ИНН: 02508201610067 [00:29:36]line Кассир: Байбугуева Г. [00:29:36]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [00:29:36]line Место: АЗС № 120 "Партнер Нефть" [00:29:36]line 22.06.2024 00:29 [00:29:36]line Смена: 356 [00:29:36]line РНМ: 0000000000092785 [00:29:36]line ЗНМ: 0300000164 [00:29:36]line ФД: 104267 [00:29:36]line ФМ: 0000000000875093 [00:29:36]line ФПД: 33290942357235 [00:29:36]OFD Sender: Processing packet 104267 [packets to send 17, broken 16] [00:29:36]ProducePacketName [00:29:36]name=ofd_packets/00104267 [00:29:36]OFD Sender: To server: pG, [00:29:36]CommunicateWithHost lk.salyk.kg:30040 [00:29:36]ConnectInit lk.salyk.kg [00:29:36]written 0, free lines is 4095 [00:29:36]Connected sock=10 [00:29: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 12 01 00 00 E8 06 0A 01 71 3F 5A 02 01 00 02 00 FE 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 19 00 D0 91 D0 B0 D0 B9 D0 B1 D1 83 D0 B3 D1 83 D0 B5 D0 B2 D0 B0 20 D0 93 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 F0 1A 76 66 0E 04 04 00 64 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 4B 97 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 47 26 CB 1E F3 41 F2 1F 92 DC 8B 76 0E [00:29:37]Write to MH i2c: 01 00 00 76 19 8F [00:29:37]Write i2c OK [00:29:37]MH_I2C_Read... [00:29:37]Read from MH i2c: 01 [00:29:37]MH_I2C_Read... [00:29:37]Read from MH i2c: 01 07 00 [00:29:37]MH_I2C_Read... [00:29:37]Read from MH i2c: 01 07 00 76 19 00 00 00 00 00 AE 0E 52 [00:29:37]RasterBufferAndPrint [00:29:37]line [00:29:37]line [00:29:37]line [00:29:37]line [00:29:37]line [00:29:37]written 0, free lines is 3777 [00:29:37]MH_Cut [00:29:37]Write to MH i2c: D1 01 00 7D 19 01 68 [00:29:37]Write i2c OK [00:29:37]MH_I2C_Read... [00:29:37]Read from MH i2c: D1 [00:29:37]MH_I2C_Read... [00:29:37]Read from MH i2c: D1 01 00 [00:29:37]MH_I2C_Read... [00:29:37]Read from MH i2c: D1 01 00 7D 19 00 67 [00:29:37]Write to MH i2c: 01 00 00 7E 19 97 [00:29:37]Write i2c OK [00:29:37]MH_I2C_Read... [00:29: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 C3 78 47 00 88 77 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 4B 97 01 00 F4 03 04 00 71 C1 75 66 B6 04 01 00 00 F5 16 6D A4 01 CC CE 94 [00:29:37]CommunicateWithHost err = 0 [00:29:37]CheckOFDResponse [00:29:37]1017 (14) - 77093643461234 [00:29:37]1041 (16) - 0000000000875093 [00:29:37]1040 (4) - 104267 [00:29:37]1012 (4) - 21.06.2024 18:07 [00:29:37]1206 (1) - 0 [00:29:37]OFD Sender: Remove packet 104267 [00:29:37]ProducePacketName [00:29:37]name=ofd_packets/00104267 [00:29:37]NVStorageDeleteData [00:29:37]*** Cut start [00:29:37]*** Partial cut [00:29:37]*** CUTSNS_PIN = 1 [00:29:37]*** CUTSNS_PIN = 0 [00:29:37]*** Brake cut motor [00:29:37]OFD Sender: No OFD packet to send [00:29:38]Read from MH i2c: 01 [00:29:38]MH_I2C_Read... [00:29:38]*** Stop cut motor [00:29:38]*** Cut end [00:29:38]Read from MH i2c: 01 07 00 [00:29:38]MH_I2C_Read... [00:29:38]Read from MH i2c: 01 07 00 7E 19 00 00 00 00 00 FF 0F AC [00:29:38]process_action open_shift done [00:29:38]requested_data is exist [00:29:38]produce_requested_data [00:29:38]requested_item fd.num is exist - process it [00:29:38]SAM_PROTO_GetFieldsCounters [00:29:38]wFMCommunicate request_size=4 [00:29:38]MH_SAM_APDU [00:29:38]CAPDU: 80 13 00 00 [00:29:38]Write to MH i2c: E2 08 00 7F 19 80 13 00 00 00 00 00 00 14 [00:29:38]Write i2c OK [00:29:38]MH_I2C_Read... [00:29:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:29:38]Read from MH i2c: E2 [00:29:38]MH_I2C_Read... [00:29:38]Read from MH i2c: E2 62 00 [00:29:38]MH_I2C_Read... [00:29:38]Read from MH i2c: E2 62 00 7F 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 4B 97 01 00 0E 04 04 00 64 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 83 [00:29: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 4B 97 01 00 0E 04 04 00 64 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:29:38]wFMCommunicate OK [00:29:38]SAM_PROTO_GetFieldsCounters done [00:29:38]requested_item shift.num is exist - process it [00:29:38]requested_item shift.opened is exist - process it [00:29:38]req_shift_opened [00:29:38]FM_GetShiftState [00:29:38]SAM_PROTO_GetShiftState [00:29:38]wFMCommunicate request_size=4 [00:29:38]MH_SAM_APDU [00:29:38]CAPDU: 80 13 01 00 [00:29:38]Write to MH i2c: E2 08 00 80 19 80 13 01 00 00 00 00 00 16 [00:29:38]Write i2c OK [00:29:38]MH_I2C_Read... [00:29:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:29:38]Read from MH i2c: E2 [00:29:38]MH_I2C_Read... [00:29:38]Read from MH i2c: E2 0E 00 [00:29:38]MH_I2C_Read... [00:29:38]Read from MH i2c: E2 0E 00 80 19 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 08 [00:29:38]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [00:29:38]wFMCommunicate OK [00:29:38]SAM_PROTO_GetShiftState done [00:29:38]FM_GetShiftState done [00:29:38]req_shift_opened done [00:29:38]requested_item shift.open_date is exist - process it [00:29:38]req_shift_open_date [00:29:38]req_shift_open_date done [00:29:38]produce_requested_data done [00:29:38]produce_requested_data return {"fd.num":104267,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [00:29:38]process_action_free open_shift [00:29:38]json_value_free [00:29:38]json_value_free done [00:29:38]process_json_proto returns [00:29:38]Send response to host [00:29:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":104267,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [00:29:38]free response buf [00:29:38]execute_script done [00:29:38]execute_script returns [00:29:38]free content buf [00:29:38]Sock 9.Close socket [00:29:38]Sock 9.Thread stoped [00:29:38]accept exits with 7 [00:29:38]New connection [00:29:38]New thread 3067616612 created [00:29:38]Thread 3067473252 joined [00:29:38]Waiting for new connection... [00:29:38] Sock 7.Parse request [00:29:38]Sock 7.Check first char [00:29:38]Sock 7.First char is OK [00:29:38]request: POST /json_proto HTTP/1.0 [00:29:38]Method: POST [00:29:38]URL: /json_proto [00:29:38]Method is POST - this is cgi request [00:29:38]url: /json_proto [00:29:38]query_string will be loaded in cgi processing [00:29:38]execute_cgi json_proto POST (null) [00:29:38]execute_cgi path=json_proto method=POST [00:29:38]POST find Content-Length [00:29:38]Host: 172.17.38.133:8080 [00:29:38]Content-Length: 331 [00:29:38]Content-Type: application/json [00:29:38] [00:29:38]POST finish read [00:29:38]Found Content-Length = 331 [00:29:38]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:29:38]execute_script... [00:29:38]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:29:38]POST & json_proto [00:29:38]process_json_proto [00:29:38]json parsed OK: [00:29:38]protocol is kg_v1.0 [00:29:38]action value=get_value [00:29:38]process_action get_value [00:29:38]cmd_get_value [00:29:38]process_action get_value done [00:29:38]requested_data is exist [00:29:38]produce_requested_data [00:29:38]requested_item fm.sale.total is exist - process it [00:29:38]SAM_PROTO_GetFMData [00:29:38]wFMCommunicate request_size=4 [00:29:38]MH_SAM_APDU [00:29:38]CAPDU: 80 13 03 00 [00:29:38]Write to MH i2c: E2 08 00 81 19 80 13 03 00 00 00 00 00 19 [00:29:38]Write i2c OK [00:29:38]MH_I2C_Read... [00:29:38]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:29:38]Read from MH i2c: E2 [00:29:38]MH_I2C_Read... [00:29:38]Read from MH i2c: E2 FD 00 [00:29:38]MH_I2C_Read... [00:29:38]Read from MH i2c: E2 FD 00 81 19 00 C5 04 85 04 C1 04 6E 04 04 00 83 94 01 00 69 04 A3 00 6F 04 04 00 24 90 01 00 B1 04 05 00 AB 58 32 41 04 70 04 05 00 8C 5B 27 5C 03 72 04 04 00 1F FD 0A E5 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 A6 BC AE 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 57 C3 A3 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 5F 04 00 00 B1 04 04 00 F4 C4 3D 18 70 04 04 00 F4 C4 3D 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 75 10 93 02 EF 03 09 90 00 DC [00:29:38]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 83 94 01 00 69 04 A3 00 6F 04 04 00 24 90 01 00 B1 04 05 00 AB 58 32 41 04 70 04 05 00 8C 5B 27 5C 03 72 04 04 00 1F FD 0A E5 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 A6 BC AE 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 57 C3 A3 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 5F 04 00 00 B1 04 04 00 F4 C4 3D 18 70 04 04 00 F4 C4 3D 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 75 10 93 02 EF 03 09 90 00 [00:29:38]wFMCommunicate OK [00:29:38]wFMCommunicate request_size=4 [00:29:38]MH_SAM_APDU [00:29:38]CAPDU: 80 17 00 00 [00:29:38]Write to MH i2c: E2 08 00 82 19 80 17 00 00 00 00 00 00 1B [00:29:38]Write i2c OK [00:29:38]MH_I2C_Read... [00:29:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:29:39]Read from MH i2c: E2 [00:29:39]MH_I2C_Read... [00:29:39]Read from MH i2c: E2 FD 00 [00:29:39]MH_I2C_Read... [00:29:39]Read from MH i2c: E2 FD 00 82 19 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B8 EB 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 AA [00:29:39]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B8 EB 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:29:39]wFMCommunicate OK [00:29:39]wFMCommunicate request_size=4 [00:29:39]MH_SAM_APDU [00:29:39]CAPDU: 80 17 00 00 [00:29:39]Write to MH i2c: E2 08 00 83 19 80 17 00 00 00 00 00 00 1C [00:29:39]Write i2c OK [00:29:39]MH_I2C_Read... [00:29:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:29:39]Read from MH i2c: E2 [00:29:39]MH_I2C_Read... [00:29:39]Read from MH i2c: E2 FD 00 [00:29:39]MH_I2C_Read... [00:29:39]Read from MH i2c: E2 FD 00 83 19 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 2E [00:29:39]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:29:39]wFMCommunicate OK [00:29:39]wFMCommunicate request_size=4 [00:29:39]MH_SAM_APDU [00:29:39]CAPDU: 80 17 00 00 [00:29:39]Write to MH i2c: E2 08 00 84 19 80 17 00 00 00 00 00 00 1D [00:29:39]Write i2c OK [00:29:39]MH_I2C_Read... [00:29:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:29:40]Read from MH i2c: E2 [00:29:40]MH_I2C_Read... [00:29:40]Read from MH i2c: E2 FD 00 [00:29:40]MH_I2C_Read... [00:29:40]Read from MH i2c: E2 FD 00 84 19 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 A9 [00:29:40]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:29:40]wFMCommunicate OK [00:29:40]wFMCommunicate request_size=4 [00:29:40]MH_SAM_APDU [00:29:40]CAPDU: 80 17 00 00 [00:29:40]Write to MH i2c: E2 08 00 85 19 80 17 00 00 00 00 00 00 1E [00:29:40]Write i2c OK [00:29:40]MH_I2C_Read... [00:29:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:29:40]Read from MH i2c: E2 [00:29:40]MH_I2C_Read... [00:29:40]Read from MH i2c: E2 E2 00 [00:29:40]MH_I2C_Read... [00:29:40]Read from MH i2c: E2 E2 00 85 19 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 FC [00:29:40]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:29:40]wFMCommunicate OK [00:29:40]SAM_PROTO_GetFMData done [00:29:40]requested_item fm.sale_refund.total is exist - process it [00:29:40]requested_item fm.buy.total is exist - process it [00:29:40]requested_item shift.sale.total is exist - process it [00:29:40]SAM_PROTO_GetShiftData [00:29:40]wFMCommunicate request_size=4 [00:29:40]MH_SAM_APDU [00:29:40]CAPDU: 80 13 02 00 [00:29:40]Write to MH i2c: E2 08 00 86 19 80 13 02 00 00 00 00 00 1D [00:29:40]Write i2c OK [00:29:40]MH_I2C_Read... [00:29:41]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:29:41]Read from MH i2c: E2 [00:29:41]MH_I2C_Read... [00:29:41]Read from MH i2c: E2 FD 00 [00:29:41]MH_I2C_Read... [00:29:41]Read from MH i2c: E2 FD 00 86 19 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 90 [00:29:41]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:29:41]wFMCommunicate OK [00:29:41]wFMCommunicate request_size=4 [00:29:41]MH_SAM_APDU [00:29:41]CAPDU: 80 17 00 00 [00:29:41]Write to MH i2c: E2 08 00 87 19 80 17 00 00 00 00 00 00 20 [00:29:41]Write i2c OK [00:29:41]MH_I2C_Read... [00:29:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:29:41]Read from MH i2c: E2 [00:29:41]MH_I2C_Read... [00:29:41]Read from MH i2c: E2 FD 00 [00:29:41]MH_I2C_Read... [00:29:41]Read from MH i2c: E2 FD 00 87 19 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 28 [00:29:41]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:29:41]wFMCommunicate OK [00:29:41]wFMCommunicate request_size=4 [00:29:41]MH_SAM_APDU [00:29:41]CAPDU: 80 17 00 00 [00:29:41]Write to MH i2c: E2 08 00 88 19 80 17 00 00 00 00 00 00 21 [00:29:41]Write i2c OK [00:29:41]MH_I2C_Read... [00:29:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:29:41]Read from MH i2c: E2 [00:29:41]MH_I2C_Read... [00:29:41]Read from MH i2c: E2 FD 00 [00:29:41]MH_I2C_Read... [00:29:41]Read from MH i2c: E2 FD 00 88 19 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 F3 [00:29:42]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:29:42]wFMCommunicate OK [00:29:42]wFMCommunicate request_size=4 [00:29:42]MH_SAM_APDU [00:29:42]CAPDU: 80 17 00 00 [00:29:42]Write to MH i2c: E2 08 00 89 19 80 17 00 00 00 00 00 00 22 [00:29:42]Write i2c OK [00:29:42]MH_I2C_Read... [00:29:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:29:42]Read from MH i2c: E2 [00:29:42]MH_I2C_Read... [00:29:42]Read from MH i2c: E2 FD 00 [00:29:42]MH_I2C_Read... [00:29:42]Read from MH i2c: E2 FD 00 89 19 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 94 [00:29:42]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:29:42]wFMCommunicate OK [00:29:42]wFMCommunicate request_size=4 [00:29:42]MH_SAM_APDU [00:29:42]CAPDU: 80 17 00 00 [00:29:42]Write to MH i2c: E2 08 00 8A 19 80 17 00 00 00 00 00 00 23 [00:29:42]Write i2c OK [00:29:42]MH_I2C_Read... [00:29:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:29:42]Read from MH i2c: E2 [00:29:42]MH_I2C_Read... [00:29:42]Read from MH i2c: E2 BD 00 [00:29:42]MH_I2C_Read... [00:29:42]Read from MH i2c: E2 BD 00 8A 19 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 09 [00:29:42]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:29:43]wFMCommunicate OK [00:29:43]SAM_PROTO_GetShiftData done [00:29:43]requested_item shift.sale.total_cash is exist - process it [00:29:43]requested_item shift.sale_refund.total is exist - process it [00:29:43]requested_item shift.sale_refund.total_cash is exist - process it [00:29:43]requested_item shift.buy.total is exist - process it [00:29:43]requested_item shift.buy.total_cash is exist - process it [00:29:43]produce_requested_data done [00:29:43]produce_requested_data return {"fm.sale.total":182736877.23,"fm.sale_refund.total":4067013.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:29:43]process_action_free get_value [00:29:43]json_value_free [00:29:43]json_value_free done [00:29:43]process_json_proto returns [00:29:43]Send response to host [00:29:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":182736877.23,"fm.sale_refund.total":4067013.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:29:43]free response buf [00:29:43]execute_script done [00:29:43]execute_script returns [00:29:43]free content buf [00:29:43]Sock 7.Close socket [00:29:43]Sock 7.Thread stoped [00:29:43]OFD Sender: No OFD packet to send [00:29:48]OFD Sender: No OFD packet to send [00:29:53]OFD Sender: No OFD packet to send [00:29:58]OFD Sender: No OFD packet to send [00:30:03]OFD Sender: No OFD packet to send [00:30:08]OFD Sender: No OFD packet to send [00:30:13]OFD Sender: No OFD packet to send [00:30:18]OFD Sender: No OFD packet to send [00:30:23]OFD Sender: No OFD packet to send [00:30:28]OFD Sender: No OFD packet to send [00:30:33]OFD Sender: No OFD packet to send [00:30:38]OFD Sender: No OFD packet to send [00:30:43]OFD Sender: No OFD packet to send [00:30:48]OFD Sender: No OFD packet to send [00:30:53]OFD Sender: No OFD packet to send [00:30:58]OFD Sender: No OFD packet to send [00:31:03]OFD Sender: No OFD packet to send [00:31:08]OFD Sender: No OFD packet to send [00:31:13]OFD Sender: No OFD packet to send [00:31:18]OFD Sender: No OFD packet to send [00:31:23]OFD Sender: No OFD packet to send [00:31:28]OFD Sender: No OFD packet to send [00:31:33]OFD Sender: No OFD packet to send [00:31:38]OFD Sender: No OFD packet to send [00:31:43]OFD Sender: No OFD packet to send [00:31:48]OFD Sender: No OFD packet to send [00:31:53]OFD Sender: No OFD packet to send [00:31:58]OFD Sender: No OFD packet to send [00:32:03]OFD Sender: No OFD packet to send [00:32:08]OFD Sender: No OFD packet to send [00:32:13]OFD Sender: No OFD packet to send [00:32:18]OFD Sender: No OFD packet to send [00:32:23]OFD Sender: No OFD packet to send [00:32:28]OFD Sender: No OFD packet to send [00:32:33]OFD Sender: No OFD packet to send [00:32:38]OFD Sender: No OFD packet to send [00:32:43]OFD Sender: No OFD packet to send [00:32:48]OFD Sender: No OFD packet to send [00:32:53]OFD Sender: No OFD packet to send [00:32:58]OFD Sender: No OFD packet to send [00:33:03]OFD Sender: No OFD packet to send [00:33:08]OFD Sender: No OFD packet to send [00:33:13]OFD Sender: No OFD packet to send [00:33:18]OFD Sender: No OFD packet to send [00:33:23]OFD Sender: No OFD packet to send [00:33:28]OFD Sender: No OFD packet to send [00:33:33]OFD Sender: No OFD packet to send [00:33:38]OFD Sender: No OFD packet to send [00:33:43]OFD Sender: No OFD packet to send [00:33:48]OFD Sender: No OFD packet to send [00:33:53]OFD Sender: No OFD packet to send [00:33:58]OFD Sender: No OFD packet to send [00:34:03]OFD Sender: No OFD packet to send [00:34:08]OFD Sender: No OFD packet to send [00:34:13]OFD Sender: No OFD packet to send [00:34:18]OFD Sender: No OFD packet to send [00:34:23]OFD Sender: No OFD packet to send [00:34:28]OFD Sender: No OFD packet to send [00:34:33]OFD Sender: No OFD packet to send [00:34:38]OFD Sender: No OFD packet to send [00:34:43]OFD Sender: No OFD packet to send [00:34:48]OFD Sender: No OFD packet to send [00:34:53]OFD Sender: No OFD packet to send [00:34:58]OFD Sender: No OFD packet to send [00:35:03]OFD Sender: No OFD packet to send [00:35:08]OFD Sender: No OFD packet to send [00:35:13]OFD Sender: No OFD packet to send [00:35:18]OFD Sender: No OFD packet to send [00:35:23]OFD Sender: No OFD packet to send [00:35:28]OFD Sender: No OFD packet to send [00:35:33]OFD Sender: No OFD packet to send [00:35:38]OFD Sender: No OFD packet to send [00:35:43]OFD Sender: No OFD packet to send [00:35:48]OFD Sender: No OFD packet to send [00:35:53]OFD Sender: No OFD packet to send [00:35:58]OFD Sender: No OFD packet to send [00:36:03]OFD Sender: No OFD packet to send [00:36:08]OFD Sender: No OFD packet to send [00:36:13]OFD Sender: No OFD packet to send [00:36:18]OFD Sender: No OFD packet to send [00:36:23]OFD Sender: No OFD packet to send [00:36:28]OFD Sender: No OFD packet to send [00:36:33]OFD Sender: No OFD packet to send [00:36:38]OFD Sender: No OFD packet to send [00:36:43]OFD Sender: No OFD packet to send [00:36:48]OFD Sender: No OFD packet to send [00:36:53]OFD Sender: No OFD packet to send [00:36:58]OFD Sender: No OFD packet to send [00:37:03]OFD Sender: No OFD packet to send [00:37:08]OFD Sender: No OFD packet to send [00:37:12]accept exits with 9 [00:37:12]New connection [00:37:12]New thread 3067473252 created [00:37:12]Thread 3067616612 joined [00:37:12]Waiting for new connection... [00:37:12] Sock 9.Parse request [00:37:12]Sock 9.Check first char [00:37:12]Sock 9.First char is OK [00:37:12]request: POST /json_proto HTTP/1.0 [00:37:12]Method: POST [00:37:12]URL: /json_proto [00:37:12]Method is POST - this is cgi request [00:37:12]url: /json_proto [00:37:12]query_string will be loaded in cgi processing [00:37:12]execute_cgi json_proto POST (null) [00:37:12]execute_cgi path=json_proto method=POST [00:37:12]POST find Content-Length [00:37:12]Host: 172.17.38.133:8080 [00:37:12]Content-Length: 682 [00:37:12]Content-Type: application/json [00:37:12] [00:37:12]POST finish read [00:37:12]Found Content-Length = 682 [00:37:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673756", "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" ] } } [00:37:12]execute_script... [00: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)673756", "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" ] } } [00:37:12]POST & json_proto [00:37:12]process_json_proto [00:37:12]json parsed OK: [00:37:12]protocol is kg_v1.0 [00:37:12]action value=close_receipt [00:37:12]process_action close_receipt [00:37:12]cmd_close_receipt [00:37:12]MH_GetDate [00:37:12]Write to MH i2c: F0 00 00 8B 19 93 [00:37:12]Write i2c OK [00:37:12]MH_I2C_Read... [00:37:12]Read from MH i2c: F0 [00:37:12]MH_I2C_Read... [00:37:12]Read from MH i2c: F0 09 00 [00:37:12]MH_I2C_Read... [00:37:12]Read from MH i2c: F0 09 00 8B 19 00 BA 1C 76 66 BD 8F 7C 64 7A [00:37:12]GetLastDocTimeStamp 1719016176 [00:37:12]current date 1719016634 [00:37:12]FM_GetShiftState [00:37:12]SAM_PROTO_GetShiftState [00:37:12]wFMCommunicate request_size=4 [00:37:12]MH_SAM_APDU [00:37:12]CAPDU: 80 13 01 00 [00:37:12]Write to MH i2c: E2 08 00 8C 19 80 13 01 00 00 00 00 00 22 [00:37:12]Write i2c OK [00:37:12]MH_I2C_Read... [00:37:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:37:12]Read from MH i2c: E2 [00:37:12]MH_I2C_Read... [00:37:12]Read from MH i2c: E2 0E 00 [00:37:12]MH_I2C_Read... [00:37:12]Read from MH i2c: E2 0E 00 8C 19 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 14 [00:37:12]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [00:37:12]wFMCommunicate OK [00:37:12]SAM_PROTO_GetShiftState done [00:37:12]FM_GetShiftState done [00:37:12]opened in 1719016176 [00:37:12]opened+sec_in_day 1719102576 [00:37:12]quantity*price = 100064 [00:37:12]sum+1 = 100066 [00:37:12]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 СНО: Общий режим Чек 1 22.06.2024 00:37 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104268 ФПД: 17963296720031 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T003714&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104268&fm=17963296720031&tin=02508201610067®Number=0000000000092785&sum=100000 [00:37:13]StoreToDocumentArchive [00:37:13]shift 356 fd 104268 [00:37:13]save to /storage/0356/doc_00104268 [00:37:13]save last doc name /storage/0356/doc_00104268 to /storage/kkm_last_doc_name [00:37:13]save OK [00:37:13]Clear old archive folders... [00:37:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:37:13]tlvbuf is 006952B0 [00:37:13]SAM_PROTO_ClearQueue [00:37:13]wFMCommunicate request_size=4 [00:37:13]MH_SAM_APDU [00:37:13]CAPDU: 80 09 00 00 [00:37:13]Write to MH i2c: E2 08 00 99 19 80 09 00 00 00 00 00 00 24 [00:37:13]Write i2c OK [00:37:13]MH_I2C_Read... [00:37:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:37:13]Read from MH i2c: E2 [00:37:13]MH_I2C_Read... [00:37:13]Read from MH i2c: E2 03 00 [00:37:13]MH_I2C_Read... [00:37:13]Read from MH i2c: E2 03 00 99 19 00 90 00 26 [00:37:13]RAPDU: 90 00 [00:37:13]wFMCommunicate OK [00:37:13]SAM_PROTO_ClearQueue done [00:37:13]KKMCreateOFDPacket [00:37:13]OFDProtocolAddRootSTLVToBuf [00:37:13]FM_MakeSignedData [00:37:13]FM_MakeSignedData [00:37:13]SAM_PROTO_SignData [00:37:13]wFMCommunicate request_size=4 [00:37:13]MH_SAM_APDU [00:37:13]CAPDU: 80 0D 01 02 [00:37:13]Write to MH i2c: E2 08 00 9A 19 80 0D 01 02 00 00 00 00 2C [00:37:13]Write i2c OK [00:37:13]MH_I2C_Read... [00:37:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:37:13]Read from MH i2c: E2 [00:37:13]MH_I2C_Read... [00:37:13]Read from MH i2c: E2 03 00 [00:37:13]MH_I2C_Read... [00:37:13]Read from MH i2c: E2 03 00 9A 19 00 90 00 27 [00:37:13]RAPDU: 90 00 [00:37:13]wFMCommunicate OK [00:37:13]wFMCommunicate request_size=255 [00:37:13]MH_SAM_APDU [00: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 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 01 00 00 00 F4 03 04 00 BA 1C 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 10 [00:37:13]Write to MH i2c: E2 02 01 9B 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 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 01 00 00 00 F4 03 04 00 BA 1C 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 10 00 00 42 [00:37:13]Write i2c OK [00:37:13]MH_I2C_Read... [00:37:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:37:13]OFD Sender: No OFD packet to send [00:37:13]Read from MH i2c: E2 [00:37:13]MH_I2C_Read... [00:37:13]Read from MH i2c: E2 03 00 [00:37:13]MH_I2C_Read... [00:37:13]Read from MH i2c: E2 03 00 9B 19 00 90 00 28 [00:37:13]RAPDU: 90 00 [00:37:13]wFMCommunicate OK [00:37:13]wFMCommunicate request_size=10 [00:37:13]MH_SAM_APDU [00:37:13]CAPDU: 80 0D 02 02 05 56 67 EB 84 9F [00:37:13]Write to MH i2c: E2 0D 00 9C 19 80 0D 02 02 05 00 56 67 EB 84 9F 00 00 04 [00:37:13]Write i2c OK [00:37:13]MH_I2C_Read... [00:37:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:37:13]Read from MH i2c: E2 [00:37:13]MH_I2C_Read... [00:37:13]Read from MH i2c: E2 03 00 [00:37:13]MH_I2C_Read... [00:37:13]Read from MH i2c: E2 03 00 9C 19 00 90 00 29 [00:37:13]RAPDU: 90 00 [00:37:13]wFMCommunicate OK [00:37:13]wFMCommunicate request_size=4 [00:37:13]MH_SAM_APDU [00:37:13]CAPDU: 80 0D 03 02 [00:37:13]Write to MH i2c: E2 08 00 9D 19 80 0D 03 02 00 00 00 00 31 [00:37:13]Write i2c OK [00:37:13]MH_I2C_Read... [00:37:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:37:13]Read from MH i2c: E2 [00:37:13]MH_I2C_Read... [00:37:13]Read from MH i2c: E2 0B 00 [00:37:13]MH_I2C_Read... [00:37:13]Read from MH i2c: E2 0B 00 9D 19 00 F0 76 5E AF CD 61 2A 36 90 00 33 [00:37:13]RAPDU: F0 76 5E AF CD 61 2A 36 90 00 [00:37:13]wFMCommunicate OK [00:37:13]SAM_PROTO_SignData done [00:37:13]FM_MakeSignedData done [00:37:13]CreateOFDProtocolMessage [00:37:13]wFMCommunicate request_size=4 [00:37:13]MH_SAM_APDU [00:37:13]CAPDU: 80 11 00 00 [00:37:13]Write to MH i2c: E2 08 00 9E 19 80 11 00 00 00 00 00 00 31 [00:37:13]Write i2c OK [00:37:13]MH_I2C_Read... [00:37:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:37:13]Read from MH i2c: E2 [00:37:13]MH_I2C_Read... [00:37:13]Read from MH i2c: E2 17 00 [00:37:13]MH_I2C_Read... [00:37:13]Read from MH i2c: E2 17 00 9E 19 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: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 [00:37:13]wFMCommunicate OK [00:37:13]CreateOFDProtocolMessage done [00:37:13]OFDSenderStorePacket 104268 [00:37:13]StoreOFDPacket docnum=104268 [00:37: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 1D B2 07 01 F5 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 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 01 00 00 00 F4 03 04 00 BA 1C 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 10 56 67 EB 84 9F F0 76 5E AF CD 61 2A 36 [00:37:13]CheckFolder [00:37:13]dirname=/storage/ofd_packets [00:37:13]CheckFolder done [00:37:13]ProducePacketName [00:37:13]name=ofd_packets/00104268 [00:37:13]NVStorageSaveData ofd_packets/00104268 [00:37:13]File name is /storage/ofd_packets/00104268 [00:37:13]Write 301 bytes [00:37:13]NVStorageSaveData done [00:37:13]OFDSenderStorePacket done [00:37:13]KKMCreateOFDPacket done [00:37:13]NVStorageSaveData kkm_last_timestamp [00:37:13]File name is /storage/kkm_last_timestamp [00:37:13]Write 4 bytes [00:37:13]NVStorageSaveData done [00:37:13]ExternCall_PrintAddStr [00:37:13]wPrintStart [00:37:13]Write to MH i2c: 01 00 00 9F 19 B8 [00:37:13]Write i2c OK [00:37:13]MH_I2C_Read... [00:37:13]Read from MH i2c: 01 [00:37:13]MH_I2C_Read... [00:37:13]Read from MH i2c: 01 07 00 [00:37:13]MH_I2C_Read... [00:37:13]Read from MH i2c: 01 07 00 9F 19 00 00 00 00 00 FF 0F CD [00:37:13]RasterBufferAndPrint [00:37:13]line Счет N : (1)673756 [00:37:13]line ИНН: 02508201610067 [00:37:13]line Контрольно-Кассовый Чек [00:37:13]line ПРОДАЖА [00:37:13]line ТРК (МРК, ГНК) : 42 [00:37:13]line Товар: 2710124130 [00:37:13]line Аи-92-К-5 [00:37:13]line 15.070 * 66.40 [00:37:13]line = 1000.65 [00:37:13]line НДС 12% НСП 1% [00:37:13]line > о реализуемом товаре [00:37:13]line ОКРУГЛЕНИЕ: -0.65 [00:37:13]line ИТОГО: 1000.00 [00:37:13]line Внесено: 1000.00 [00:37:13]line СДАЧА: 0.00 [00:37:13]line НСП 1% : 8.85 [00:37:13]line НДС 12% : 106.26 [00:37:13]line Наличными: 1000.00 [00:37:13]line Безнал.: 0.00 [00:37:13]line Место: АЗС № 120 "Партнер Нефть" [00:37:13]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [00:37:13]line СНО: Общий режим [00:37:13]line Чек 1 22.06.2024 00:37 [00:37:13]line Смена: 356 ФФД: 1.0 [00:37:13]line ЗНМ: 0300000164 [00:37:13]line РНМ: 0000000000092785 [00:37:13]line Версия ККМ: 001 [00:37:13]line ФМ: 0000000000875093 [00:37:13]line ФД: 104268 [00:37:13]line ФПД: 17963296720031 [00:37:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T003714&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104268&fm=17963296720031&tin=02508201610067®Number=0000000000092785&sum=100000 [00:37:14]OFD Sender: Processing packet 104268 [packets to send 17, broken 16] [00:37:14]ProducePacketName [00:37:14]name=ofd_packets/00104268 [00:37:14]OFD Sender: To server: pG, [00:37:14]CommunicateWithHost lk.salyk.kg:30040 [00:37:14]ConnectInit lk.salyk.kg [00:37:14]written 0, free lines is 4095 [00:37:14]Write to MH i2c: 01 00 00 CA 19 E3 [00:37:14]Write i2c OK [00:37:14]MH_I2C_Read... [00:37:14]Read from MH i2c: 01 [00:37:14]MH_I2C_Read... [00:37:14]Read from MH i2c: 01 07 00 [00:37:14]MH_I2C_Read... [00:37:14]Read from MH i2c: 01 07 00 CA 19 00 00 00 00 00 E2 0C D8 [00:37:14]RasterBufferAndPrint [00:37:14]line [00:37:14]line [00:37:14]line [00:37:14]line [00:37:14]line [00:37:14]written 0, free lines is 3304 [00:37:14]MH_Cut [00:37:14]Write to MH i2c: D1 01 00 D1 19 01 BC [00:37:14]Write i2c OK [00:37:14]MH_I2C_Read... [00:37:14]Read from MH i2c: D1 [00:37:14]MH_I2C_Read... [00:37:14]Read from MH i2c: D1 01 00 [00:37:14]MH_I2C_Read... [00:37:14]Read from MH i2c: D1 01 00 D1 19 00 BB [00:37:14]Write to MH i2c: 01 00 00 D2 19 EB [00:37:14]Write i2c OK [00:37:14]MH_I2C_Read... [00:37:15]*** Cut start [00:37:15]*** Partial cut [00:37:15]*** CUTSNS_PIN = 1 [00:37:15]*** CUTSNS_PIN = 0 [00:37:15]*** Brake cut motor [00:37:15]Read from MH i2c: 01 [00:37:15]MH_I2C_Read... [00:37:15]*** Stop cut motor [00:37:15]*** Cut end [00:37:15]Read from MH i2c: 01 07 00 [00:37:15]MH_I2C_Read... [00:37:15]Read from MH i2c: 01 07 00 D2 19 00 00 00 00 00 FF 0F 00 [00:37:15]process_action close_receipt done [00:37:15]requested_data is exist [00:37:15]produce_requested_data [00:37:15]requested_item fm.sn is exist - process it [00:37:15]wFMCommunicate request_size=4 [00:37:15]MH_SAM_APDU [00:37:15]CAPDU: 80 11 00 00 [00:37:15]Write to MH i2c: E2 08 00 D3 19 80 11 00 00 00 00 00 00 66 [00:37:15]Write i2c OK [00:37:15]MH_I2C_Read... [00:37:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:37:15]Read from MH i2c: E2 [00:37:15]MH_I2C_Read... [00:37:15]Read from MH i2c: E2 17 00 [00:37:15]MH_I2C_Read... [00:37:15]Read from MH i2c: E2 17 00 D3 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 B9 [00:37:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [00:37:15]wFMCommunicate OK [00:37:15]requested_item fd.num is exist - process it [00:37:15]SAM_PROTO_GetFieldsCounters [00:37:15]wFMCommunicate request_size=4 [00:37:15]MH_SAM_APDU [00:37:15]CAPDU: 80 13 00 00 [00:37:15]Write to MH i2c: E2 08 00 D4 19 80 13 00 00 00 00 00 00 69 [00:37:15]Write i2c OK [00:37:15]MH_I2C_Read... [00:37:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:37:16]Read from MH i2c: E2 [00:37:16]MH_I2C_Read... [00:37:16]Read from MH i2c: E2 62 00 [00:37:16]MH_I2C_Read... [00:37:16]Read from MH i2c: E2 62 00 D4 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 4C 97 01 00 0E 04 04 00 64 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 DC [00: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 4C 97 01 00 0E 04 04 00 64 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:37:16]wFMCommunicate OK [00:37:16]SAM_PROTO_GetFieldsCounters done [00:37:16]requested_item shift.num is exist - process it [00:37:16]requested_item shift.opened is exist - process it [00:37:16]req_shift_opened [00:37:16]FM_GetShiftState [00:37:16]SAM_PROTO_GetShiftState [00:37:16]wFMCommunicate request_size=4 [00:37:16]MH_SAM_APDU [00:37:16]CAPDU: 80 13 01 00 [00:37:16]Write to MH i2c: E2 08 00 D5 19 80 13 01 00 00 00 00 00 6B [00:37:16]Write i2c OK [00:37:16]MH_I2C_Read... [00:37:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:37:16]Read from MH i2c: E2 [00:37:16]MH_I2C_Read... [00:37:16]Read from MH i2c: E2 0E 00 [00:37:16]MH_I2C_Read... [00:37:16]Read from MH i2c: E2 0E 00 D5 19 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 5D [00:37:16]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [00:37:16]wFMCommunicate OK [00:37:16]SAM_PROTO_GetShiftState done [00:37:16]FM_GetShiftState done [00:37:16]req_shift_opened done [00:37:16]requested_item shift.open_date is exist - process it [00:37:16]req_shift_open_date [00:37:16]req_shift_open_date done [00:37:16]produce_requested_data done [00:37:16]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104268,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [00:37:16]process_action_free close_receipt [00:37:16]json_value_free [00:37:16]json_value_free done [00:37:16]process_json_proto returns [00:37:16]Send response to host [00:37:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104268,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [00:37:16]free response buf [00:37:16]execute_script done [00:37:16]execute_script returns [00:37:16]free content buf [00:37:16]Sock 9.Close socket [00:37:16]Sock 9.Thread stoped [00:39:23]ConnectInit Can't connect to host [00:39:23]CommunicateWithHost connect error [00:39:23]CommunicateWithHost err = -1 [00:39:23]OFD Sender: Server communicate error [00:39:28]OFD Sender: Processing packet 104268 [packets to send 17, broken 16] [00:39:28]ProducePacketName [00:39:28]name=ofd_packets/00104268 [00:39:28]OFD Sender: To server: pG, [00:39:28]CommunicateWithHost lk.salyk.kg:30040 [00:39:28]ConnectInit lk.salyk.kg [00:39:28]Connected sock=9 [00:39: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 1D B2 07 01 F5 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 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 01 00 00 00 F4 03 04 00 BA 1C 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 10 56 67 EB 84 9F F0 76 5E AF CD 61 2A 36 [00:39: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 01 94 47 00 91 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 4C 97 01 00 F4 03 04 00 C1 C3 75 66 B6 04 01 00 00 61 FC EB A4 26 7E 5D 7C [00:39:29]CommunicateWithHost err = 0 [00:39:29]CheckOFDResponse [00:39:29]1017 (14) - 77093643461234 [00:39:29]1041 (16) - 0000000000875093 [00:39:29]1040 (4) - 104268 [00:39:29]1012 (4) - 21.06.2024 18:17 [00:39:29]1206 (1) - 0 [00:39:29]OFD Sender: Remove packet 104268 [00:39:29]ProducePacketName [00:39:29]name=ofd_packets/00104268 [00:39:29]NVStorageDeleteData [00:39:29]OFD Sender: No OFD packet to send [00:39:34]OFD Sender: No OFD packet to send [00:39:39]OFD Sender: No OFD packet to send [00:39:44]OFD Sender: No OFD packet to send [00:39:49]OFD Sender: No OFD packet to send [00:39:54]OFD Sender: No OFD packet to send [00:39:59]OFD Sender: No OFD packet to send [00:40:04]OFD Sender: No OFD packet to send [00:40:09]OFD Sender: No OFD packet to send [00:40:14]OFD Sender: No OFD packet to send [00:40:19]OFD Sender: No OFD packet to send [00:40:24]OFD Sender: No OFD packet to send [00:40:29]OFD Sender: No OFD packet to send [00:40:34]OFD Sender: No OFD packet to send [00:40:39]OFD Sender: No OFD packet to send [00:40:44]OFD Sender: No OFD packet to send [00:40:49]OFD Sender: No OFD packet to send [00:40:54]OFD Sender: No OFD packet to send [00:40:59]OFD Sender: No OFD packet to send [00:41:04]OFD Sender: No OFD packet to send [00:41:09]OFD Sender: No OFD packet to send [00:41:14]OFD Sender: No OFD packet to send [00:41:19]OFD Sender: No OFD packet to send [00:41:24]OFD Sender: No OFD packet to send [00:41:29]OFD Sender: No OFD packet to send [00:41:34]OFD Sender: No OFD packet to send [00:41:39]OFD Sender: No OFD packet to send [00:41:44]OFD Sender: No OFD packet to send [00:41:49]OFD Sender: No OFD packet to send [00:41:54]OFD Sender: No OFD packet to send [00:41:59]OFD Sender: No OFD packet to send [00:42:04]OFD Sender: No OFD packet to send [00:42:09]OFD Sender: No OFD packet to send [00:42:14]OFD Sender: No OFD packet to send [00:42:19]OFD Sender: No OFD packet to send [00:42:24]OFD Sender: No OFD packet to send [00:42:29]OFD Sender: No OFD packet to send [00:42:34]OFD Sender: No OFD packet to send [00:42:39]OFD Sender: No OFD packet to send [00:42:44]OFD Sender: No OFD packet to send [00:42:49]OFD Sender: No OFD packet to send [00:42:54]OFD Sender: No OFD packet to send [00:42:59]OFD Sender: No OFD packet to send [00:43:04]OFD Sender: No OFD packet to send [00:43:09]OFD Sender: No OFD packet to send [00:43:14]OFD Sender: No OFD packet to send [00:43:19]OFD Sender: No OFD packet to send [00:43:24]OFD Sender: No OFD packet to send [00:43:29]OFD Sender: No OFD packet to send [00:43:34]OFD Sender: No OFD packet to send [00:43:39]OFD Sender: No OFD packet to send [00:43:44]OFD Sender: No OFD packet to send [00:43:49]OFD Sender: No OFD packet to send [00:43:54]OFD Sender: No OFD packet to send [00:43:59]OFD Sender: No OFD packet to send [00:44:04]OFD Sender: No OFD packet to send [00:44:09]OFD Sender: No OFD packet to send [00:44:14]OFD Sender: No OFD packet to send [00:44:19]OFD Sender: No OFD packet to send [00:44:24]OFD Sender: No OFD packet to send [00:44:29]OFD Sender: No OFD packet to send [00:44:34]OFD Sender: No OFD packet to send [00:44:39]OFD Sender: No OFD packet to send [00:44:44]OFD Sender: No OFD packet to send [00:44:49]OFD Sender: No OFD packet to send [00:44:54]OFD Sender: No OFD packet to send [00:44:59]OFD Sender: No OFD packet to send [00:45:04]OFD Sender: No OFD packet to send [00:45:09]OFD Sender: No OFD packet to send [00:45:14]OFD Sender: No OFD packet to send [00:45:19]OFD Sender: No OFD packet to send [00:45:24]OFD Sender: No OFD packet to send [00:45:29]OFD Sender: No OFD packet to send [00:45:34]OFD Sender: No OFD packet to send [00:45:39]OFD Sender: No OFD packet to send [00:45:44]OFD Sender: No OFD packet to send [00:45:49]OFD Sender: No OFD packet to send [00:45:54]OFD Sender: No OFD packet to send [00:45:59]OFD Sender: No OFD packet to send [00:46:04]OFD Sender: No OFD packet to send [00:46:09]OFD Sender: No OFD packet to send [00:46:15]OFD Sender: No OFD packet to send [00:46:20]OFD Sender: No OFD packet to send [00:46:25]OFD Sender: No OFD packet to send [00:46:30]OFD Sender: No OFD packet to send [00:46:35]OFD Sender: No OFD packet to send [00:46:40]OFD Sender: No OFD packet to send [00:46:45]OFD Sender: No OFD packet to send [00:46:50]OFD Sender: No OFD packet to send [00:46:55]OFD Sender: No OFD packet to send [00:47:00]OFD Sender: No OFD packet to send [00:47:05]OFD Sender: No OFD packet to send [00:47:10]OFD Sender: No OFD packet to send [00:47:15]OFD Sender: No OFD packet to send [00:47:20]OFD Sender: No OFD packet to send [00:47:25]OFD Sender: No OFD packet to send [00:47:30]OFD Sender: No OFD packet to send [00:47:35]OFD Sender: No OFD packet to send [00:47:40]OFD Sender: No OFD packet to send [00:47:45]OFD Sender: No OFD packet to send [00:47:50]OFD Sender: No OFD packet to send [00:47:55]OFD Sender: No OFD packet to send [00:48:00]OFD Sender: No OFD packet to send [00:48:05]OFD Sender: No OFD packet to send [00:48:10]OFD Sender: No OFD packet to send [00:48:15]OFD Sender: No OFD packet to send [00:48:20]OFD Sender: No OFD packet to send [00:48:25]OFD Sender: No OFD packet to send [00:48:30]OFD Sender: No OFD packet to send [00:48:35]OFD Sender: No OFD packet to send [00:48:40]OFD Sender: No OFD packet to send [00:48:45]OFD Sender: No OFD packet to send [00:48:50]OFD Sender: No OFD packet to send [00:48:55]OFD Sender: No OFD packet to send [00:49:00]OFD Sender: No OFD packet to send [00:49:05]OFD Sender: No OFD packet to send [00:49:10]OFD Sender: No OFD packet to send [00:49:15]OFD Sender: No OFD packet to send [00:49:20]OFD Sender: No OFD packet to send [00:49:25]OFD Sender: No OFD packet to send [00:49:30]OFD Sender: No OFD packet to send [00:49:35]OFD Sender: No OFD packet to send [00:49:40]OFD Sender: No OFD packet to send [00:49:45]OFD Sender: No OFD packet to send [00:49:50]OFD Sender: No OFD packet to send [00:49:55]OFD Sender: No OFD packet to send [00:50:00]OFD Sender: No OFD packet to send [00:50:05]OFD Sender: No OFD packet to send [00:50:10]OFD Sender: No OFD packet to send [00:50:15]OFD Sender: No OFD packet to send [00:50:20]OFD Sender: No OFD packet to send [00:50:25]OFD Sender: No OFD packet to send [00:50:30]OFD Sender: No OFD packet to send [00:50:34]accept exits with 7 [00:50:34]New connection [00:50:34]New thread 3067616612 created [00:50:34]Thread 3067473252 joined [00:50:34]Waiting for new connection... [00:50:34] Sock 7.Parse request [00:50:34]Sock 7.Check first char [00:50:34]Sock 7.First char is OK [00:50:34]request: POST /json_proto HTTP/1.0 [00:50:34]Method: POST [00:50:34]URL: /json_proto [00:50:34]Method is POST - this is cgi request [00:50:34]url: /json_proto [00:50:34]query_string will be loaded in cgi processing [00:50:34]execute_cgi json_proto POST (null) [00:50:34]execute_cgi path=json_proto method=POST [00:50:34]POST find Content-Length [00:50:34]Host: 172.17.38.133:8080 [00:50:34]Content-Length: 687 [00:50:34]Content-Type: application/json [00:50:34] [00:50:34]POST finish read [00:50:34]Found Content-Length = 687 [00:50:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673757", "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" : 89.170, "sum" : 6500.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 6500.00, "total" : 6500.00, "payments": [ { "type": 0, "sum" : 6500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:50:34]execute_script... [00:50: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)673757", "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" : 89.170, "sum" : 6500.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 6500.00, "total" : 6500.00, "payments": [ { "type": 0, "sum" : 6500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:50:34]POST & json_proto [00:50:34]process_json_proto [00:50:34]json parsed OK: [00:50:34]protocol is kg_v1.0 [00:50:34]action value=close_receipt [00:50:34]process_action close_receipt [00:50:34]cmd_close_receipt [00:50:34]MH_GetDate [00:50:34]Write to MH i2c: F0 00 00 D6 19 DE [00:50:34]Write i2c OK [00:50:34]MH_I2C_Read... [00:50:34]Read from MH i2c: F0 [00:50:34]MH_I2C_Read... [00:50:34]Read from MH i2c: F0 09 00 [00:50:34]MH_I2C_Read... [00:50:34]Read from MH i2c: F0 09 00 D6 19 00 DC 1F 76 66 BD 8F 7C 64 EA [00:50:34]GetLastDocTimeStamp 1719016634 [00:50:34]current date 1719017436 [00:50:34]FM_GetShiftState [00:50:34]SAM_PROTO_GetShiftState [00:50:34]wFMCommunicate request_size=4 [00:50:34]MH_SAM_APDU [00:50:34]CAPDU: 80 13 01 00 [00:50:34]Write to MH i2c: E2 08 00 D7 19 80 13 01 00 00 00 00 00 6D [00:50:34]Write i2c OK [00:50:34]MH_I2C_Read... [00:50:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:50:34]Read from MH i2c: E2 [00:50:34]MH_I2C_Read... [00:50:34]Read from MH i2c: E2 0E 00 [00:50:34]MH_I2C_Read... [00:50:34]Read from MH i2c: E2 0E 00 D7 19 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 5F [00:50:34]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [00:50:34]wFMCommunicate OK [00:50:34]SAM_PROTO_GetShiftState done [00:50:34]FM_GetShiftState done [00:50:34]opened in 1719016176 [00:50:34]opened+sec_in_day 1719102576 [00:50:34]quantity*price = 650049 [00:50:34]sum+1 = 650050 [00:50:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 6500.00 Внесено: 6500.00 СДАЧА: 0.00 НСП 1% : 57.53 НДС 12% : 690.32 Наличными: 6500.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 2 22.06.2024 00:50 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104269 ФПД: 206881996967655 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T005036&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104269&fm=206881996967655&tin=02508201610067®Number=0000000000092785&sum=650000 [00:50:35]StoreToDocumentArchive [00:50:35]shift 356 fd 104269 [00:50:35]save to /storage/0356/doc_00104269 [00:50:35]save last doc name /storage/0356/doc_00104269 to /storage/kkm_last_doc_name [00:50:35]save OK [00:50:35]Clear old archive folders... [00:50:35]ProcessDocumentItem done err = 0, tmpTLVsize=252 [00:50:35]tlvbuf is 006A7BB0 [00:50:35]SAM_PROTO_ClearQueue [00:50:35]wFMCommunicate request_size=4 [00:50:35]MH_SAM_APDU [00:50:35]CAPDU: 80 09 00 00 [00:50:35]Write to MH i2c: E2 08 00 E4 19 80 09 00 00 00 00 00 00 6F [00:50:35]Write i2c OK [00:50:35]MH_I2C_Read... [00:50:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:50:35]Read from MH i2c: E2 [00:50:35]MH_I2C_Read... [00:50:35]Read from MH i2c: E2 03 00 [00:50:35]MH_I2C_Read... [00:50:35]Read from MH i2c: E2 03 00 E4 19 00 90 00 71 [00:50:35]RAPDU: 90 00 [00:50:35]wFMCommunicate OK [00:50:35]SAM_PROTO_ClearQueue done [00:50:35]KKMCreateOFDPacket [00:50:35]OFDProtocolAddRootSTLVToBuf [00:50:35]FM_MakeSignedData [00:50:35]FM_MakeSignedData [00:50:35]SAM_PROTO_SignData [00:50:35]wFMCommunicate request_size=4 [00:50:35]MH_SAM_APDU [00:50:35]CAPDU: 80 0D 01 02 [00:50:35]Write to MH i2c: E2 08 00 E5 19 80 0D 01 02 00 00 00 00 77 [00:50:35]Write i2c OK [00:50:35]MH_I2C_Read... [00:50:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:50:35]Read from MH i2c: E2 [00:50:35]MH_I2C_Read... [00:50:35]Read from MH i2c: E2 03 00 [00:50:35]MH_I2C_Read... [00:50:35]Read from MH i2c: E2 03 00 E5 19 00 90 00 72 [00:50:35]RAPDU: 90 00 [00:50:35]wFMCommunicate OK [00:50:35]wFMCommunicate request_size=255 [00:50:35]MH_SAM_APDU [00:50: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 52 5C 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 41 EB 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 EB 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 79 16 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A8 0D 01 00 00 00 07 04 06 00 10 EB 09 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 DC 1F 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 [00:50:35]Write to MH i2c: E2 02 01 E6 19 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 52 5C 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 41 EB 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 EB 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 79 16 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A8 0D 01 00 00 00 07 04 06 00 10 EB 09 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 DC 1F 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 00 00 AC [00:50:35]Write i2c OK [00:50:35]MH_I2C_Read... [00:50:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:50:36]Read from MH i2c: E2 [00:50:36]MH_I2C_Read... [00:50:36]Read from MH i2c: E2 03 00 [00:50:36]MH_I2C_Read... [00:50:36]Read from MH i2c: E2 03 00 E6 19 00 90 00 73 [00:50:36]RAPDU: 90 00 [00:50:36]wFMCommunicate OK [00:50:36]wFMCommunicate request_size=11 [00:50:36]MH_SAM_APDU [00:50:36]CAPDU: 80 0D 02 02 06 BC 28 77 F0 8E E7 [00:50:36]Write to MH i2c: E2 0E 00 E7 19 80 0D 02 02 06 00 BC 28 77 F0 8E E7 00 00 46 [00:50:36]Write i2c OK [00:50:36]MH_I2C_Read... [00:50:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:50:36]Read from MH i2c: E2 [00:50:36]MH_I2C_Read... [00:50:36]Read from MH i2c: E2 03 00 [00:50:36]MH_I2C_Read... [00:50:36]Read from MH i2c: E2 03 00 E7 19 00 90 00 74 [00:50:36]RAPDU: 90 00 [00:50:36]wFMCommunicate OK [00:50:36]wFMCommunicate request_size=4 [00:50:36]MH_SAM_APDU [00:50:36]CAPDU: 80 0D 03 02 [00:50:36]Write to MH i2c: E2 08 00 E8 19 80 0D 03 02 00 00 00 00 7C [00:50:36]Write i2c OK [00:50:36]MH_I2C_Read... [00:50:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:50:36]Read from MH i2c: E2 [00:50:36]MH_I2C_Read... [00:50:36]Read from MH i2c: E2 0B 00 [00:50:36]MH_I2C_Read... [00:50:36]Read from MH i2c: E2 0B 00 E8 19 00 96 6C 1D 6B 0E 2B EA C4 90 00 EE [00:50:36]RAPDU: 96 6C 1D 6B 0E 2B EA C4 90 00 [00:50:36]wFMCommunicate OK [00:50:36]SAM_PROTO_SignData done [00:50:36]FM_MakeSignedData done [00:50:36]CreateOFDProtocolMessage [00:50:36]wFMCommunicate request_size=4 [00:50:36]MH_SAM_APDU [00:50:36]CAPDU: 80 11 00 00 [00:50:36]Write to MH i2c: E2 08 00 E9 19 80 11 00 00 00 00 00 00 7C [00:50:36]Write i2c OK [00:50:36]MH_I2C_Read... [00:50:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:50:36]Read from MH i2c: E2 [00:50:36]MH_I2C_Read... [00:50:36]Read from MH i2c: E2 17 00 [00:50:36]MH_I2C_Read... [00:50:36]Read from MH i2c: E2 17 00 E9 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 CF [00:50: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:50:36]wFMCommunicate OK [00:50:36]CreateOFDProtocolMessage done [00:50:36]OFDSenderStorePacket 104269 [00:50:36]StoreOFDPacket docnum=104269 [00:50: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 1E 7A 08 01 EE 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 52 5C 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 41 EB 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 EB 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 79 16 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A8 0D 01 00 00 00 07 04 06 00 10 EB 09 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 DC 1F 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 BC 28 77 F0 8E E7 96 6C 1D 6B 0E 2B EA C4 [00:50:36]CheckFolder [00:50:36]dirname=/storage/ofd_packets [00:50:36]CheckFolder done [00:50:36]ProducePacketName [00:50:36]name=ofd_packets/00104269 [00:50:36]NVStorageSaveData ofd_packets/00104269 [00:50:36]File name is /storage/ofd_packets/00104269 [00:50:36]Write 302 bytes [00:50:36]NVStorageSaveData done [00:50:36]OFDSenderStorePacket done [00:50:36]KKMCreateOFDPacket done [00:50:36]NVStorageSaveData kkm_last_timestamp [00:50:36]File name is /storage/kkm_last_timestamp [00:50:36]Write 4 bytes [00:50:36]NVStorageSaveData done [00:50:36]ExternCall_PrintAddStr [00:50:36]wPrintStart [00:50:36]Write to MH i2c: 01 00 00 EA 19 03 [00:50:36]Write i2c OK [00:50:36]MH_I2C_Read... [00:50:36]Read from MH i2c: 01 [00:50:36]MH_I2C_Read... [00:50:36]Read from MH i2c: 01 07 00 [00:50:36]MH_I2C_Read... [00:50:36]Read from MH i2c: 01 07 00 EA 19 00 00 00 00 00 FF 0F 18 [00:50:36]RasterBufferAndPrint [00:50:36]line Счет N : (1)673757 [00:50:36]line ИНН: 02508201610067 [00:50:36]line Контрольно-Кассовый Чек [00:50:36]line ПРОДАЖА [00:50:36]line ТРК (МРК, ГНК) : 11 [00:50:36]line Товар: 2710194210 [00:50:36]line ДТ(л)-К-5 [00:50:36]line 89.170 * 72.90 [00:50:36]line = 6500.49 [00:50:36]line НДС 12% НСП 1% [00:50:36]line > о реализуемом товаре [00:50:36]line ОКРУГЛЕНИЕ: -0.49 [00:50:36]line ИТОГО: 6500.00 [00:50:36]line Внесено: 6500.00 [00:50:36]line СДАЧА: 0.00 [00:50:36]line НСП 1% : 57.53 [00:50:36]line НДС 12% : 690.32 [00:50:36]line Наличными: 6500.00 [00:50:36]line Безнал.: 0.00 [00:50:36]line Место: АЗС № 120 "Партнер Нефть" [00:50:36]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [00:50:36]line СНО: Общий режим [00:50:36]line Чек 2 22.06.2024 00:50 [00:50:36]line Смена: 356 ФФД: 1.0 [00:50:36]line ЗНМ: 0300000164 [00:50:36]line РНМ: 0000000000092785 [00:50:36]line Версия ККМ: 001 [00:50:36]line ФМ: 0000000000875093 [00:50:36]line ФД: 104269 [00:50:36]line ФПД: 206881996967655 [00:50:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T005036&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104269&fm=206881996967655&tin=02508201610067®Number=0000000000092785&sum=650000 [00:50:36]OFD Sender: Processing packet 104269 [packets to send 17, broken 16] [00:50:36]ProducePacketName [00:50:36]name=ofd_packets/00104269 [00:50:36]OFD Sender: To server: pG, [00:50:36]CommunicateWithHost lk.salyk.kg:30040 [00:50:36]ConnectInit lk.salyk.kg [00:50:36]written 0, free lines is 4095 [00:50:36]Connected sock=10 [00:50: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 1E 7A 08 01 EE 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 52 5C 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 41 EB 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 EB 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 79 16 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A8 0D 01 00 00 00 07 04 06 00 10 EB 09 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 DC 1F 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 BC 28 77 F0 8E E7 96 6C 1D 6B 0E 2B EA C4 [00:50: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 4D E7 47 00 79 10 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 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 97 01 00 F4 03 04 00 5D C6 75 66 B6 04 01 00 00 A0 4F 27 84 4F 76 36 07 [00:50:36]CommunicateWithHost err = 0 [00:50:36]CheckOFDResponse [00:50:36]1017 (14) - 77093643461234 [00:50:36]1041 (16) - 0000000000875093 [00:50:36]1040 (4) - 104269 [00:50:36]1012 (4) - 21.06.2024 18:28 [00:50:36]1206 (1) - 0 [00:50:36]OFD Sender: Remove packet 104269 [00:50:36]ProducePacketName [00:50:36]name=ofd_packets/00104269 [00:50:36]NVStorageDeleteData [00:50:37]Write to MH i2c: 01 00 00 15 1A 2F [00:50:37]Write i2c OK [00:50:37]MH_I2C_Read... [00:50:37]Read from MH i2c: 01 [00:50:37]MH_I2C_Read... [00:50:37]Read from MH i2c: 01 07 00 [00:50:37]MH_I2C_Read... [00:50:37]Read from MH i2c: 01 07 00 15 1A 00 00 00 00 00 EF 0C 31 [00:50:37]RasterBufferAndPrint [00:50:37]line [00:50:37]line [00:50:37]line [00:50:37]line [00:50:37]line [00:50:37]written 0, free lines is 3317 [00:50:37]MH_Cut [00:50:37]Write to MH i2c: D1 01 00 1C 1A 01 08 [00:50:37]Write i2c OK [00:50:37]MH_I2C_Read... [00:50:37]Read from MH i2c: D1 [00:50:37]MH_I2C_Read... [00:50:37]Read from MH i2c: D1 01 00 [00:50:37]MH_I2C_Read... [00:50:37]Read from MH i2c: D1 01 00 1C 1A 00 07 [00:50:37]Write to MH i2c: 01 00 00 1D 1A 37 [00:50:37]Write i2c OK [00:50:37]MH_I2C_Read... [00:50:37]OFD Sender: No OFD packet to send [00:50:37]*** Cut start [00:50:37]*** Partial cut [00:50:37]*** CUTSNS_PIN = 1 [00:50:37]*** CUTSNS_PIN = 0 [00:50:38]*** Brake cut motor [00:50:38]Read from MH i2c: 01 [00:50:38]MH_I2C_Read... [00:50:38]*** Stop cut motor [00:50:38]*** Cut end [00:50:38]Read from MH i2c: 01 07 00 [00:50:38]MH_I2C_Read... [00:50:38]Read from MH i2c: 01 07 00 1D 1A 00 00 00 00 00 FF 0F 4C [00:50:38]process_action close_receipt done [00:50:38]requested_data is exist [00:50:38]produce_requested_data [00:50:38]requested_item fm.sn is exist - process it [00:50:38]wFMCommunicate request_size=4 [00:50:38]MH_SAM_APDU [00:50:38]CAPDU: 80 11 00 00 [00:50:38]Write to MH i2c: E2 08 00 1E 1A 80 11 00 00 00 00 00 00 B2 [00:50:38]Write i2c OK [00:50:38]MH_I2C_Read... [00:50:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:50:38]Read from MH i2c: E2 [00:50:38]MH_I2C_Read... [00:50:38]Read from MH i2c: E2 17 00 [00:50:38]MH_I2C_Read... [00:50:38]Read from MH i2c: E2 17 00 1E 1A 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:50:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [00:50:38]wFMCommunicate OK [00:50:38]requested_item fd.num is exist - process it [00:50:38]SAM_PROTO_GetFieldsCounters [00:50:38]wFMCommunicate request_size=4 [00:50:38]MH_SAM_APDU [00:50:38]CAPDU: 80 13 00 00 [00:50:38]Write to MH i2c: E2 08 00 1F 1A 80 13 00 00 00 00 00 00 B5 [00:50:38]Write i2c OK [00:50:38]MH_I2C_Read... [00:50:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:50:38]Read from MH i2c: E2 [00:50:38]MH_I2C_Read... [00:50:38]Read from MH i2c: E2 62 00 [00:50:38]MH_I2C_Read... [00:50:38]Read from MH i2c: E2 62 00 1F 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 4D 97 01 00 0E 04 04 00 64 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 2C [00:50: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 4D 97 01 00 0E 04 04 00 64 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:50:38]wFMCommunicate OK [00:50:38]SAM_PROTO_GetFieldsCounters done [00:50:38]requested_item shift.num is exist - process it [00:50:38]requested_item shift.opened is exist - process it [00:50:38]req_shift_opened [00:50:38]FM_GetShiftState [00:50:38]SAM_PROTO_GetShiftState [00:50:38]wFMCommunicate request_size=4 [00:50:38]MH_SAM_APDU [00:50:38]CAPDU: 80 13 01 00 [00:50:38]Write to MH i2c: E2 08 00 20 1A 80 13 01 00 00 00 00 00 B7 [00:50:38]Write i2c OK [00:50:38]MH_I2C_Read... [00:50:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:50:38]Read from MH i2c: E2 [00:50:38]MH_I2C_Read... [00:50:38]Read from MH i2c: E2 0E 00 [00:50:38]MH_I2C_Read... [00:50:38]Read from MH i2c: E2 0E 00 20 1A 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 A9 [00:50:38]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [00:50:38]wFMCommunicate OK [00:50:38]SAM_PROTO_GetShiftState done [00:50:38]FM_GetShiftState done [00:50:38]req_shift_opened done [00:50:38]requested_item shift.open_date is exist - process it [00:50:38]req_shift_open_date [00:50:38]req_shift_open_date done [00:50:38]produce_requested_data done [00:50:38]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104269,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [00:50:38]process_action_free close_receipt [00:50:38]json_value_free [00:50:38]json_value_free done [00:50:38]process_json_proto returns [00:50:38]Send response to host [00:50:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104269,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [00:50:38]free response buf [00:50:38]execute_script done [00:50:38]execute_script returns [00:50:38]free content buf [00:50:38]Sock 7.Close socket [00:50:38]Sock 7.Thread stoped [00:50:42]OFD Sender: No OFD packet to send [00:50:47]OFD Sender: No OFD packet to send [00:50:52]OFD Sender: No OFD packet to send [00:50:57]OFD Sender: No OFD packet to send [00:51:02]OFD Sender: No OFD packet to send [00:51:07]OFD Sender: No OFD packet to send [00:51:12]OFD Sender: No OFD packet to send [00:51:17]OFD Sender: No OFD packet to send [00:51:22]OFD Sender: No OFD packet to send [00:51:27]OFD Sender: No OFD packet to send [00:51:32]OFD Sender: No OFD packet to send [00:51:37]OFD Sender: No OFD packet to send [00:51:42]OFD Sender: No OFD packet to send [00:51:47]OFD Sender: No OFD packet to send [00:51:52]OFD Sender: No OFD packet to send [00:51:57]OFD Sender: No OFD packet to send [00:52:02]OFD Sender: No OFD packet to send [00:52:07]OFD Sender: No OFD packet to send [00:52:12]OFD Sender: No OFD packet to send [00:52:17]OFD Sender: No OFD packet to send [00:52:22]OFD Sender: No OFD packet to send [00:52:27]OFD Sender: No OFD packet to send [00:52:32]OFD Sender: No OFD packet to send [00:52:34]accept exits with 9 [00:52:34]New connection [00:52:34]New thread 3067473252 created [00:52:34]Thread 3067616612 joined [00:52:34]Waiting for new connection... [00:52:34] Sock 9.Parse request [00:52:34]Sock 9.Check first char [00:52:34]Sock 9.First char is OK [00:52:34]request: POST /json_proto HTTP/1.0 [00:52:34]Method: POST [00:52:34]URL: /json_proto [00:52:34]Method is POST - this is cgi request [00:52:34]url: /json_proto [00:52:34]query_string will be loaded in cgi processing [00:52:34]execute_cgi json_proto POST (null) [00:52:34]execute_cgi path=json_proto method=POST [00:52:34]POST find Content-Length [00:52:34]Host: 172.17.38.133:8080 [00:52:34]Content-Length: 678 [00:52:34]Content-Type: application/json [00:52:34] [00:52:34]POST finish read [00:52:34]Found Content-Length = 678 [00:52:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673758", "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" ] } } [00:52:34]execute_script... [00:52:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673758", "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" ] } } [00:52:34]POST & json_proto [00:52:34]process_json_proto [00:52:34]json parsed OK: [00:52:34]protocol is kg_v1.0 [00:52:34]action value=close_receipt [00:52:34]process_action close_receipt [00:52:34]cmd_close_receipt [00:52:34]MH_GetDate [00:52:34]Write to MH i2c: F0 00 00 21 1A 2A [00:52:34]Write i2c OK [00:52:34]MH_I2C_Read... [00:52:34]Read from MH i2c: F0 [00:52:34]MH_I2C_Read... [00:52:34]Read from MH i2c: F0 09 00 [00:52:34]MH_I2C_Read... [00:52:34]Read from MH i2c: F0 09 00 21 1A 00 54 20 76 66 BD 8F 7C 64 AF [00:52:34]GetLastDocTimeStamp 1719017436 [00:52:34]current date 1719017556 [00:52:34]FM_GetShiftState [00:52:34]SAM_PROTO_GetShiftState [00:52:34]wFMCommunicate request_size=4 [00:52:34]MH_SAM_APDU [00:52:34]CAPDU: 80 13 01 00 [00:52:34]Write to MH i2c: E2 08 00 22 1A 80 13 01 00 00 00 00 00 B9 [00:52:34]Write i2c OK [00:52:34]MH_I2C_Read... [00:52:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:52:34]Read from MH i2c: E2 [00:52:34]MH_I2C_Read... [00:52:34]Read from MH i2c: E2 0E 00 [00:52:34]MH_I2C_Read... [00:52:34]Read from MH i2c: E2 0E 00 22 1A 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 AB [00:52:34]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [00:52:34]wFMCommunicate OK [00:52:34]SAM_PROTO_GetShiftState done [00:52:34]FM_GetShiftState done [00:52:34]opened in 1719016176 [00:52:34]opened+sec_in_day 1719102576 [00:52:34]quantity*price = 70052 [00:52:34]sum+1 = 70053 [00:52:34]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 СНО: Общий режим Чек 3 22.06.2024 00:52 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104270 ФПД: 118882471063228 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T005236&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104270&fm=118882471063228&tin=02508201610067®Number=0000000000092785&sum=70000 [00:52:35]StoreToDocumentArchive [00:52:35]shift 356 fd 104270 [00:52:35]save to /storage/0356/doc_00104270 [00:52:35]save last doc name /storage/0356/doc_00104270 to /storage/kkm_last_doc_name [00:52:35]save OK [00:52:35]Clear old archive folders... [00:52:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:52:35]tlvbuf is 006AEF80 [00:52:35]SAM_PROTO_ClearQueue [00:52:35]wFMCommunicate request_size=4 [00:52:35]MH_SAM_APDU [00:52:35]CAPDU: 80 09 00 00 [00:52:35]Write to MH i2c: E2 08 00 2F 1A 80 09 00 00 00 00 00 00 BB [00:52:35]Write i2c OK [00:52:35]MH_I2C_Read... [00:52:35]Read from MH i2c: E2 [00:52:35]MH_I2C_Read... [00:52:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:52:35]Read from MH i2c: E2 03 00 [00:52:35]MH_I2C_Read... [00:52:35]Read from MH i2c: E2 03 00 2F 1A 00 90 00 BD [00:52:35]RAPDU: 90 00 [00:52:35]wFMCommunicate OK [00:52:35]SAM_PROTO_ClearQueue done [00:52:35]KKMCreateOFDPacket [00:52:35]OFDProtocolAddRootSTLVToBuf [00:52:35]FM_MakeSignedData [00:52:35]FM_MakeSignedData [00:52:35]SAM_PROTO_SignData [00:52:35]wFMCommunicate request_size=4 [00:52:35]MH_SAM_APDU [00:52:35]CAPDU: 80 0D 01 02 [00:52:35]Write to MH i2c: E2 08 00 30 1A 80 0D 01 02 00 00 00 00 C3 [00:52:35]Write i2c OK [00:52:35]MH_I2C_Read... [00:52:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:52:35]Read from MH i2c: E2 [00:52:35]MH_I2C_Read... [00:52:35]Read from MH i2c: E2 03 00 [00:52:35]MH_I2C_Read... [00:52:35]Read from MH i2c: E2 03 00 30 1A 00 90 00 BE [00:52:35]RAPDU: 90 00 [00:52:35]wFMCommunicate OK [00:52:35]wFMCommunicate request_size=255 [00:52:35]MH_SAM_APDU [00:52: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 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 03 00 00 00 F4 03 04 00 54 20 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 6C [00:52:35]Write to MH i2c: E2 02 01 31 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 03 00 00 00 F4 03 04 00 54 20 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 6C 00 00 99 [00:52:35]Write i2c OK [00:52:35]MH_I2C_Read... [00:52:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:52:36]Read from MH i2c: E2 [00:52:36]MH_I2C_Read... [00:52:36]Read from MH i2c: E2 03 00 [00:52:36]MH_I2C_Read... [00:52:36]Read from MH i2c: E2 03 00 31 1A 00 90 00 BF [00:52:36]RAPDU: 90 00 [00:52:36]wFMCommunicate OK [00:52:36]wFMCommunicate request_size=10 [00:52:36]MH_SAM_APDU [00:52:36]CAPDU: 80 0D 02 02 05 1F 7B 75 2E BC [00:52:36]Write to MH i2c: E2 0D 00 32 1A 80 0D 02 02 05 00 1F 7B 75 2E BC 00 00 C9 [00:52:36]Write i2c OK [00:52:36]MH_I2C_Read... [00:52:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:52:36]Read from MH i2c: E2 [00:52:36]MH_I2C_Read... [00:52:36]Read from MH i2c: E2 03 00 [00:52:36]MH_I2C_Read... [00:52:36]Read from MH i2c: E2 03 00 32 1A 00 90 00 C0 [00:52:36]RAPDU: 90 00 [00:52:36]wFMCommunicate OK [00:52:36]wFMCommunicate request_size=4 [00:52:36]MH_SAM_APDU [00:52:36]CAPDU: 80 0D 03 02 [00:52:36]Write to MH i2c: E2 08 00 33 1A 80 0D 03 02 00 00 00 00 C8 [00:52:36]Write i2c OK [00:52:36]MH_I2C_Read... [00:52:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:52:36]Read from MH i2c: E2 [00:52:36]MH_I2C_Read... [00:52:36]Read from MH i2c: E2 0B 00 [00:52:36]MH_I2C_Read... [00:52:36]Read from MH i2c: E2 0B 00 33 1A 00 38 04 9F 62 4A DF 81 5C 90 00 0C [00:52:36]RAPDU: 38 04 9F 62 4A DF 81 5C 90 00 [00:52:36]wFMCommunicate OK [00:52:36]SAM_PROTO_SignData done [00:52:36]FM_MakeSignedData done [00:52:36]CreateOFDProtocolMessage [00:52:36]wFMCommunicate request_size=4 [00:52:36]MH_SAM_APDU [00:52:36]CAPDU: 80 11 00 00 [00:52:36]Write to MH i2c: E2 08 00 34 1A 80 11 00 00 00 00 00 00 C8 [00:52:36]Write i2c OK [00:52:36]MH_I2C_Read... [00:52:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:52:36]Read from MH i2c: E2 [00:52:36]MH_I2C_Read... [00:52:36]Read from MH i2c: E2 17 00 [00:52:36]MH_I2C_Read... [00:52:36]Read from MH i2c: E2 17 00 34 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 1B [00:52: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:52:36]wFMCommunicate OK [00:52:36]CreateOFDProtocolMessage done [00:52:36]OFDSenderStorePacket 104270 [00:52:36]StoreOFDPacket docnum=104270 [00:52: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 EC 9B 07 01 81 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 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 03 00 00 00 F4 03 04 00 54 20 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 6C 1F 7B 75 2E BC 38 04 9F 62 4A DF 81 5C [00:52:36]CheckFolder [00:52:36]dirname=/storage/ofd_packets [00:52:36]CheckFolder done [00:52:36]ProducePacketName [00:52:36]name=ofd_packets/00104270 [00:52:36]NVStorageSaveData ofd_packets/00104270 [00:52:36]File name is /storage/ofd_packets/00104270 [00:52:36]Write 301 bytes [00:52:36]NVStorageSaveData done [00:52:36]OFDSenderStorePacket done [00:52:36]KKMCreateOFDPacket done [00:52:36]NVStorageSaveData kkm_last_timestamp [00:52:36]File name is /storage/kkm_last_timestamp [00:52:36]Write 4 bytes [00:52:36]NVStorageSaveData done [00:52:36]ExternCall_PrintAddStr [00:52:36]wPrintStart [00:52:36]Write to MH i2c: 01 00 00 35 1A 4F [00:52:36]Write i2c OK [00:52:36]MH_I2C_Read... [00:52:36]Read from MH i2c: 01 [00:52:36]MH_I2C_Read... [00:52:36]Read from MH i2c: 01 07 00 [00:52:36]MH_I2C_Read... [00:52:36]Read from MH i2c: 01 07 00 35 1A 00 00 00 00 00 FF 0F 64 [00:52:36]RasterBufferAndPrint [00:52:36]line Счет N : (1)673758 [00:52:36]line ИНН: 02508201610067 [00:52:36]line Контрольно-Кассовый Чек [00:52:36]line ПРОДАЖА [00:52:36]line ТРК (МРК, ГНК) : 42 [00:52:36]line Товар: 2710124130 [00:52:36]line Аи-92-К-5 [00:52:36]line 10.550 * 66.40 [00:52:36]line = 700.52 [00:52:36]line НДС 12% НСП 1% [00:52:36]line > о реализуемом товаре [00:52:36]line ОКРУГЛЕНИЕ: -0.52 [00:52:36]line ИТОГО: 700.00 [00:52:36]line Внесено: 700.00 [00:52:36]line СДАЧА: 0.00 [00:52:36]line НСП 1% : 6.20 [00:52:36]line НДС 12% : 74.39 [00:52:36]line Наличными: 700.00 [00:52:36]line Безнал.: 0.00 [00:52:36]line Место: АЗС № 120 "Партнер Нефть" [00:52:36]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [00:52:36]line СНО: Общий режим [00:52:36]line Чек 3 22.06.2024 00:52 [00:52:36]line Смена: 356 ФФД: 1.0 [00:52:36]line ЗНМ: 0300000164 [00:52:36]line РНМ: 0000000000092785 [00:52:36]line Версия ККМ: 001 [00:52:36]line ФМ: 0000000000875093 [00:52:36]line ФД: 104270 [00:52:36]line ФПД: 118882471063228 [00:52:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T005236&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104270&fm=118882471063228&tin=02508201610067®Number=0000000000092785&sum=70000 [00:52:36]written 0, free lines is 4095 [00:52:36]OFD Sender: Processing packet 104270 [packets to send 17, broken 16] [00:52:36]ProducePacketName [00:52:36]name=ofd_packets/00104270 [00:52:36]OFD Sender: To server: pG, [00:52:36]CommunicateWithHost lk.salyk.kg:30040 [00:52:36]ConnectInit lk.salyk.kg [00:52:36]Connected sock=10 [00:52:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 EC 9B 07 01 81 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 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 03 00 00 00 F4 03 04 00 54 20 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 6C 1F 7B 75 2E BC 38 04 9F 62 4A DF 81 5C [00:52: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 F3 C0 47 00 CE 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 4E 97 01 00 F4 03 04 00 D5 C6 75 66 B6 04 01 00 00 20 26 BE FE 6F 99 97 2E [00:52:37]CommunicateWithHost err = 0 [00:52:37]CheckOFDResponse [00:52:37]1017 (14) - 77093643461234 [00:52:37]1041 (16) - 0000000000875093 [00:52:37]1040 (4) - 104270 [00:52:37]1012 (4) - 21.06.2024 18:30 [00:52:37]1206 (1) - 0 [00:52:37]OFD Sender: Remove packet 104270 [00:52:37]ProducePacketName [00:52:37]name=ofd_packets/00104270 [00:52:37]NVStorageDeleteData [00:52:37]Write to MH i2c: 01 00 00 60 1A 7A [00:52:37]Write i2c OK [00:52:37]MH_I2C_Read... [00:52:37]Read from MH i2c: 01 [00:52:37]MH_I2C_Read... [00:52:37]Read from MH i2c: 01 07 00 [00:52:37]MH_I2C_Read... [00:52:37]Read from MH i2c: 01 07 00 60 1A 00 00 00 00 00 D9 0C 66 [00:52:37]RasterBufferAndPrint [00:52:37]line [00:52:37]line [00:52:37]line [00:52:37]line [00:52:37]line [00:52:37]written 0, free lines is 3296 [00:52:37]MH_Cut [00:52:37]Write to MH i2c: D1 01 00 67 1A 01 53 [00:52:37]Write i2c OK [00:52:37]MH_I2C_Read... [00:52:37]Read from MH i2c: D1 [00:52:37]MH_I2C_Read... [00:52:37]Read from MH i2c: D1 01 00 [00:52:37]MH_I2C_Read... [00:52:37]Read from MH i2c: D1 01 00 67 1A 00 52 [00:52:37]Write to MH i2c: 01 00 00 68 1A 82 [00:52:37]Write i2c OK [00:52:37]MH_I2C_Read... [00:52:37]OFD Sender: No OFD packet to send [00:52:37]*** Cut start [00:52:37]*** Partial cut [00:52:37]*** CUTSNS_PIN = 1 [00:52:37]*** CUTSNS_PIN = 0 [00:52:38]*** Brake cut motor [00:52:38]Read from MH i2c: 01 [00:52:38]MH_I2C_Read... [00:52:38]*** Stop cut motor [00:52:38]*** Cut end [00:52:38]Read from MH i2c: 01 07 00 [00:52:38]MH_I2C_Read... [00:52:38]Read from MH i2c: 01 07 00 68 1A 00 00 00 00 00 FF 0F 97 [00:52:38]process_action close_receipt done [00:52:38]requested_data is exist [00:52:38]produce_requested_data [00:52:38]requested_item fm.sn is exist - process it [00:52:38]wFMCommunicate request_size=4 [00:52:38]MH_SAM_APDU [00:52:38]CAPDU: 80 11 00 00 [00:52:38]Write to MH i2c: E2 08 00 69 1A 80 11 00 00 00 00 00 00 FD [00:52:38]Write i2c OK [00:52:38]MH_I2C_Read... [00:52:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:52:38]Read from MH i2c: E2 [00:52:38]MH_I2C_Read... [00:52:38]Read from MH i2c: E2 17 00 [00:52:38]MH_I2C_Read... [00:52:38]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 [00:52:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [00:52:38]wFMCommunicate OK [00:52:38]requested_item fd.num is exist - process it [00:52:38]SAM_PROTO_GetFieldsCounters [00:52:38]wFMCommunicate request_size=4 [00:52:38]MH_SAM_APDU [00:52:38]CAPDU: 80 13 00 00 [00:52:38]Write to MH i2c: E2 08 00 6A 1A 80 13 00 00 00 00 00 00 00 [00:52:38]Write i2c OK [00:52:38]MH_I2C_Read... [00:52:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:52:38]Read from MH i2c: E2 [00:52:38]MH_I2C_Read... [00:52:38]Read from MH i2c: E2 62 00 [00:52:38]MH_I2C_Read... [00:52:38]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 4E 97 01 00 0E 04 04 00 64 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 7B [00:52:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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:52:38]wFMCommunicate OK [00:52:38]SAM_PROTO_GetFieldsCounters done [00:52:38]requested_item shift.num is exist - process it [00:52:38]requested_item shift.opened is exist - process it [00:52:38]req_shift_opened [00:52:38]FM_GetShiftState [00:52:38]SAM_PROTO_GetShiftState [00:52:38]wFMCommunicate request_size=4 [00:52:38]MH_SAM_APDU [00:52:38]CAPDU: 80 13 01 00 [00:52:38]Write to MH i2c: E2 08 00 6B 1A 80 13 01 00 00 00 00 00 02 [00:52:38]Write i2c OK [00:52:38]MH_I2C_Read... [00:52:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:52:38]Read from MH i2c: E2 [00:52:38]MH_I2C_Read... [00:52:38]Read from MH i2c: E2 0E 00 [00:52:38]MH_I2C_Read... [00:52:38]Read from MH i2c: E2 0E 00 6B 1A 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 F4 [00:52:38]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [00:52:38]wFMCommunicate OK [00:52:38]SAM_PROTO_GetShiftState done [00:52:38]FM_GetShiftState done [00:52:38]req_shift_opened done [00:52:38]requested_item shift.open_date is exist - process it [00:52:38]req_shift_open_date [00:52:38]req_shift_open_date done [00:52:38]produce_requested_data done [00:52:38]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104270,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [00:52:38]process_action_free close_receipt [00:52:38]json_value_free [00:52:38]json_value_free done [00:52:38]process_json_proto returns [00:52:38]Send response to host [00:52:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104270,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [00:52:38]free response buf [00:52:38]execute_script done [00:52:38]execute_script returns [00:52:38]free content buf [00:52:38]Sock 9.Close socket [00:52:38]Sock 9.Thread stoped [00:52:42]OFD Sender: No OFD packet to send [00:52:47]OFD Sender: No OFD packet to send [00:52:52]OFD Sender: No OFD packet to send [00:52:57]OFD Sender: No OFD packet to send [00:53:02]OFD Sender: No OFD packet to send [00:53:07]OFD Sender: No OFD packet to send [00:53:12]OFD Sender: No OFD packet to send [00:53:17]OFD Sender: No OFD packet to send [00:53:22]OFD Sender: No OFD packet to send [00:53:27]OFD Sender: No OFD packet to send [00:53:32]OFD Sender: No OFD packet to send [00:53:37]OFD Sender: No OFD packet to send [00:53:42]OFD Sender: No OFD packet to send [00:53:47]OFD Sender: No OFD packet to send [00:53:52]OFD Sender: No OFD packet to send [00:53:57]OFD Sender: No OFD packet to send [00:54:02]OFD Sender: No OFD packet to send [00:54:07]OFD Sender: No OFD packet to send [00:54:12]OFD Sender: No OFD packet to send [00:54:17]OFD Sender: No OFD packet to send [00:54:22]OFD Sender: No OFD packet to send [00:54:27]OFD Sender: No OFD packet to send [00:54:32]OFD Sender: No OFD packet to send [00:54:37]OFD Sender: No OFD packet to send [00:54:42]OFD Sender: No OFD packet to send [00:54:47]OFD Sender: No OFD packet to send [00:54:52]OFD Sender: No OFD packet to send [00:54:57]accept exits with 7 [00:54:57]New connection [00:54:57]New thread 3067616612 created [00:54:57]Thread 3067473252 joined [00:54:57]Waiting for new connection... [00:54:57] Sock 7.Parse request [00:54:57]Sock 7.Check first char [00:54:57]Sock 7.First char is OK [00:54:57]request: POST /json_proto HTTP/1.0 [00:54:57]Method: POST [00:54:57]URL: /json_proto [00:54:57]Method is POST - this is cgi request [00:54:57]url: /json_proto [00:54:57]query_string will be loaded in cgi processing [00:54:57]execute_cgi json_proto POST (null) [00:54:57]execute_cgi path=json_proto method=POST [00:54:57]POST find Content-Length [00:54:57]Host: 172.17.38.133:8080 [00:54:57]Content-Length: 819 [00:54:57]Content-Type: application/json [00:54:57] [00:54:57]POST finish read [00:54:57]Found Content-Length = 819 [00:54:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673759", "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" : 26.360, "sum" : 1750.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 1750.30 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:54:57]execute_script... [00:54: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)673759", "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" : 26.360, "sum" : 1750.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 1750.30 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:54:57]POST & json_proto [00:54:57]process_json_proto [00:54:57]json parsed OK: [00:54:57]protocol is kg_v1.0 [00:54:57]action value=close_receipt [00:54:57]process_action close_receipt [00:54:57]cmd_close_receipt [00:54:57]MH_GetDate [00:54:57]Write to MH i2c: F0 00 00 6C 1A 75 [00:54:57]Write i2c OK [00:54:57]MH_I2C_Read... [00:54:57]Read from MH i2c: F0 [00:54:57]MH_I2C_Read... [00:54:57]Read from MH i2c: F0 09 00 [00:54:57]MH_I2C_Read... [00:54:57]Read from MH i2c: F0 09 00 6C 1A 00 E3 20 76 66 BD 8F 7C 64 89 [00:54:57]GetLastDocTimeStamp 1719017556 [00:54:57]current date 1719017699 [00:54:57]FM_GetShiftState [00:54:57]SAM_PROTO_GetShiftState [00:54:57]wFMCommunicate request_size=4 [00:54:57]MH_SAM_APDU [00:54:57]CAPDU: 80 13 01 00 [00:54:57]Write to MH i2c: E2 08 00 6D 1A 80 13 01 00 00 00 00 00 04 [00:54:57]Write i2c OK [00:54:57]MH_I2C_Read... [00:54:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:54:57]Read from MH i2c: E2 [00:54:57]MH_I2C_Read... [00:54:57]Read from MH i2c: E2 0E 00 [00:54:57]MH_I2C_Read... [00:54:57]Read from MH i2c: E2 0E 00 6D 1A 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 F6 [00:54:57]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [00:54:57]wFMCommunicate OK [00:54:57]SAM_PROTO_GetShiftState done [00:54:57]FM_GetShiftState done [00:54:57]opened in 1719016176 [00:54:57]opened+sec_in_day 1719102576 [00:54:57]quantity*price = 175030 [00:54:57]sum+1 = 175031 [00:54:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1750.30 НСП 1% : 15.49 НДС 12% : 185.87 Наличными: 0.00 Безнал.: 1750.30 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 4 22.06.2024 00:54 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875093 ФД: 104271 ФПД: 916816300305 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T005459&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104271&fm=916816300305&tin=02508201610067®Number=0000000000092785&sum=175030 [00:54:58]StoreToDocumentArchive [00:54:58]shift 356 fd 104271 [00:54:58]save to /storage/0356/doc_00104271 [00:54:58]save last doc name /storage/0356/doc_00104271 to /storage/kkm_last_doc_name [00:54:58]save OK [00:54:58]Clear old archive folders... [00:54:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:54:58]tlvbuf is 00677DF0 [00:54:58]SAM_PROTO_ClearQueue [00:54:58]wFMCommunicate request_size=4 [00:54:58]MH_SAM_APDU [00:54:58]CAPDU: 80 09 00 00 [00:54:58]Write to MH i2c: E2 08 00 7A 1A 80 09 00 00 00 00 00 00 06 [00:54:58]Write i2c OK [00:54:58]MH_I2C_Read... [00:54:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:54:58]Read from MH i2c: E2 [00:54:58]MH_I2C_Read... [00:54:58]Read from MH i2c: E2 03 00 [00:54:58]MH_I2C_Read... [00:54:58]Read from MH i2c: E2 03 00 7A 1A 00 90 00 08 [00:54:58]RAPDU: 90 00 [00:54:58]wFMCommunicate OK [00:54:58]SAM_PROTO_ClearQueue done [00:54:58]KKMCreateOFDPacket [00:54:58]OFDProtocolAddRootSTLVToBuf [00:54:58]FM_MakeSignedData [00:54:58]FM_MakeSignedData [00:54:58]SAM_PROTO_SignData [00:54:58]wFMCommunicate request_size=4 [00:54:58]MH_SAM_APDU [00:54:58]CAPDU: 80 0D 01 02 [00:54:58]Write to MH i2c: E2 08 00 7B 1A 80 0D 01 02 00 00 00 00 0E [00:54:58]Write i2c OK [00:54:58]MH_I2C_Read... [00:54:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:54:58]Read from MH i2c: E2 [00:54:58]MH_I2C_Read... [00:54:58]Read from MH i2c: E2 03 00 [00:54:58]MH_I2C_Read... [00:54:58]Read from MH i2c: E2 03 00 7B 1A 00 90 00 09 [00:54:58]RAPDU: 90 00 [00:54:58]wFMCommunicate OK [00:54:58]wFMCommunicate request_size=255 [00:54:58]MH_SAM_APDU [00:54:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 66 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 B6 AB 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 AB 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0D 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 48 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 AB 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 E3 20 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 00 [00:54:58]Write to MH i2c: E2 02 01 7C 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 F8 66 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 B6 AB 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 AB 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0D 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 48 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 AB 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 E3 20 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 00 00 00 D3 [00:54:58]Write i2c OK [00:54:58]MH_I2C_Read... [00:54:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:54:59]Read from MH i2c: E2 [00:54:59]MH_I2C_Read... [00:54:59]Read from MH i2c: E2 03 00 [00:54:59]MH_I2C_Read... [00:54:59]Read from MH i2c: E2 03 00 7C 1A 00 90 00 0A [00:54:59]RAPDU: 90 00 [00:54:59]wFMCommunicate OK [00:54:59]wFMCommunicate request_size=10 [00:54:59]MH_SAM_APDU [00:54:59]CAPDU: 80 0D 02 02 05 D5 76 82 89 11 [00:54:59]Write to MH i2c: E2 0D 00 7D 1A 80 0D 02 02 05 00 D5 76 82 89 11 00 00 82 [00:54:59]Write i2c OK [00:54:59]MH_I2C_Read... [00:54:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:54:59]Read from MH i2c: E2 [00:54:59]MH_I2C_Read... [00:54:59]Read from MH i2c: E2 03 00 [00:54:59]MH_I2C_Read... [00:54:59]Read from MH i2c: E2 03 00 7D 1A 00 90 00 0B [00:54:59]RAPDU: 90 00 [00:54:59]wFMCommunicate OK [00:54:59]wFMCommunicate request_size=4 [00:54:59]MH_SAM_APDU [00:54:59]CAPDU: 80 0D 03 02 [00:54:59]Write to MH i2c: E2 08 00 7E 1A 80 0D 03 02 00 00 00 00 13 [00:54:59]Write i2c OK [00:54:59]MH_I2C_Read... [00:54:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:54:59]Read from MH i2c: E2 [00:54:59]MH_I2C_Read... [00:54:59]Read from MH i2c: E2 0B 00 [00:54:59]MH_I2C_Read... [00:54:59]Read from MH i2c: E2 0B 00 7E 1A 00 C6 5D AE 33 5D 13 CA 02 90 00 54 [00:54:59]RAPDU: C6 5D AE 33 5D 13 CA 02 90 00 [00:54:59]wFMCommunicate OK [00:54:59]SAM_PROTO_SignData done [00:54:59]FM_MakeSignedData done [00:54:59]CreateOFDProtocolMessage [00:54:59]wFMCommunicate request_size=4 [00:54:59]MH_SAM_APDU [00:54:59]CAPDU: 80 11 00 00 [00:54:59]Write to MH i2c: E2 08 00 7F 1A 80 11 00 00 00 00 00 00 13 [00:54:59]Write i2c OK [00:54:59]MH_I2C_Read... [00:54:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:54:59]Read from MH i2c: E2 [00:54:59]MH_I2C_Read... [00:54:59]Read from MH i2c: E2 17 00 [00:54:59]MH_I2C_Read... [00:54:59]Read from MH i2c: E2 17 00 7F 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 66 [00: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 [00:54:59]wFMCommunicate OK [00:54:59]CreateOFDProtocolMessage done [00:54:59]OFDSenderStorePacket 104271 [00:54:59]StoreOFDPacket docnum=104271 [00:54: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 6D 79 07 01 33 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 F8 66 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 B6 AB 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 AB 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0D 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 48 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 AB 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 E3 20 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 00 D5 76 82 89 11 C6 5D AE 33 5D 13 CA 02 [00:54:59]CheckFolder [00:54:59]dirname=/storage/ofd_packets [00:54:59]CheckFolder done [00:54:59]ProducePacketName [00:54:59]name=ofd_packets/00104271 [00:54:59]NVStorageSaveData ofd_packets/00104271 [00:54:59]File name is /storage/ofd_packets/00104271 [00:54:59]Write 301 bytes [00:54:59]NVStorageSaveData done [00:54:59]OFDSenderStorePacket done [00:54:59]KKMCreateOFDPacket done [00:54:59]NVStorageSaveData kkm_last_timestamp [00:54:59]File name is /storage/kkm_last_timestamp [00:54:59]Write 4 bytes [00:54:59]NVStorageSaveData done [00:54:59]ExternCall_PrintAddStr [00:54:59]wPrintStart [00:54:59]Write to MH i2c: 01 00 00 80 1A 9A [00:54:59]Write i2c OK [00:54:59]MH_I2C_Read... [00:54:59]Read from MH i2c: 01 [00:54:59]MH_I2C_Read... [00:54:59]Read from MH i2c: 01 07 00 [00:54:59]MH_I2C_Read... [00:54:59]Read from MH i2c: 01 07 00 80 1A 00 00 00 00 00 FF 0F AF [00:54:59]RasterBufferAndPrint [00:54:59]line Счет N : (1)673759 [00:54:59]line ИНН: 02508201610067 [00:54:59]line Контрольно-Кассовый Чек [00:54:59]line ПРОДАЖА [00:54:59]line ТРК (МРК, ГНК) : 32 [00:54:59]line Товар: 2710124130 [00:54:59]line Аи-92-К-5 [00:54:59]line 26.360 * 66.40 [00:54:59]line = 1750.30 [00:54:59]line НДС 12% НСП 1% [00:54:59]line > о реализуемом товаре [00:54:59]line ИТОГО: 1750.30 [00:54:59]line НСП 1% : 15.49 [00:54:59]line НДС 12% : 185.87 [00:54:59]line Наличными: 0.00 [00:54:59]line Безнал.: 1750.30 [00:54:59]line Место: АЗС № 120 "Партнер Нефть" [00:54:59]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [00:54:59]line СНО: Общий режим [00:54:59]line Чек 4 22.06.2024 00:54 [00:54:59]line Смена: 356 ФФД: 1.0 [00:54:59]line ЗНМ: 0300000164 [00:54:59]line РНМ: 0000000000092785 [00:54:59]line Версия ККМ: 001 [00:54:59]line Платежная система: Бакай Банк [00:54:59]line ФМ: 0000000000875093 [00:54:59]line ФД: 104271 [00:54:59]line ФПД: 916816300305 [00:54:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T005459&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104271&fm=916816300305&tin=02508201610067®Number=0000000000092785&sum=175030 [00:54:59]OFD Sender: Processing packet 104271 [packets to send 17, broken 16] [00:54:59]ProducePacketName [00:54:59]name=ofd_packets/00104271 [00:54:59]OFD Sender: To server: pG, [00:54:59]CommunicateWithHost lk.salyk.kg:30040 [00:54:59]ConnectInit lk.salyk.kg [00:54:59]written 0, free lines is 4095 [00:54:59]Connected sock=10 [00:54: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 0F 01 00 00 6D 79 07 01 33 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 F8 66 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 B6 AB 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 AB 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0D 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 48 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 AB 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 E3 20 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 00 D5 76 82 89 11 C6 5D AE 33 5D 13 CA 02 [00:55: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 E8 B4 47 00 13 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 4F 97 01 00 F4 03 04 00 64 C7 75 66 B6 04 01 00 00 21 B1 3E 13 8B 23 8A 67 [00:55:00]CommunicateWithHost err = 0 [00:55:00]CheckOFDResponse [00:55:00]1017 (14) - 77093643461234 [00:55:00]1041 (16) - 0000000000875093 [00:55:00]1040 (4) - 104271 [00:55:00]1012 (4) - 21.06.2024 18:33 [00:55:00]1206 (1) - 0 [00:55:00]OFD Sender: Remove packet 104271 [00:55:00]ProducePacketName [00:55:00]name=ofd_packets/00104271 [00:55:00]NVStorageDeleteData [00:55:00]Write to MH i2c: 01 00 00 AA 1A C4 [00:55:00]Write i2c OK [00:55:00]MH_I2C_Read... [00:55:00]Read from MH i2c: 01 [00:55:00]MH_I2C_Read... [00:55:00]Read from MH i2c: 01 07 00 [00:55:00]MH_I2C_Read... [00:55:00]Read from MH i2c: 01 07 00 AA 1A 00 00 00 00 00 01 0D D9 [00:55:00]RasterBufferAndPrint [00:55:00]line [00:55:00]line [00:55:00]line [00:55:00]line [00:55:00]line [00:55:00]written 0, free lines is 3335 [00:55:00]MH_Cut [00:55:00]Write to MH i2c: D1 01 00 B1 1A 01 9D [00:55:00]Write i2c OK [00:55:00]MH_I2C_Read... [00:55:00]Read from MH i2c: D1 [00:55:00]MH_I2C_Read... [00:55:00]Read from MH i2c: D1 01 00 [00:55:00]MH_I2C_Read... [00:55:00]Read from MH i2c: D1 01 00 B1 1A 00 9C [00:55:00]Write to MH i2c: 01 00 00 B2 1A CC [00:55:00]Write i2c OK [00:55:00]MH_I2C_Read... [00:55:00]OFD Sender: No OFD packet to send [00:55:00]*** Cut start [00:55:00]*** Partial cut [00:55:00]*** CUTSNS_PIN = 1 [00:55:00]*** CUTSNS_PIN = 0 [00:55:01]*** Brake cut motor [00:55:01]Read from MH i2c: 01 [00:55:01]MH_I2C_Read... [00:55:01]*** Stop cut motor [00:55:01]*** Cut end [00:55:01]Read from MH i2c: 01 07 00 [00:55:01]MH_I2C_Read... [00:55:01]Read from MH i2c: 01 07 00 B2 1A 00 00 00 00 00 FF 0F E1 [00:55:01]process_action close_receipt done [00:55:01]requested_data is exist [00:55:01]produce_requested_data [00:55:01]requested_item fm.sn is exist - process it [00:55:01]wFMCommunicate request_size=4 [00:55:01]MH_SAM_APDU [00:55:01]CAPDU: 80 11 00 00 [00:55:01]Write to MH i2c: E2 08 00 B3 1A 80 11 00 00 00 00 00 00 47 [00:55:01]Write i2c OK [00:55:01]MH_I2C_Read... [00:55:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:55:01]Read from MH i2c: E2 [00:55:01]MH_I2C_Read... [00:55:01]Read from MH i2c: E2 17 00 [00:55:01]MH_I2C_Read... [00:55:01]Read from MH i2c: E2 17 00 B3 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 9A [00:55:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [00:55:01]wFMCommunicate OK [00:55:01]requested_item fd.num is exist - process it [00:55:01]SAM_PROTO_GetFieldsCounters [00:55:01]wFMCommunicate request_size=4 [00:55:01]MH_SAM_APDU [00:55:01]CAPDU: 80 13 00 00 [00:55:01]Write to MH i2c: E2 08 00 B4 1A 80 13 00 00 00 00 00 00 4A [00:55:01]Write i2c OK [00:55:01]MH_I2C_Read... [00:55:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:55:01]Read from MH i2c: E2 [00:55:01]MH_I2C_Read... [00:55:01]Read from MH i2c: E2 62 00 [00:55:01]MH_I2C_Read... [00:55:01]Read from MH i2c: E2 62 00 B4 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 4F 97 01 00 0E 04 04 00 64 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 C9 [00:55:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:55:01]wFMCommunicate OK [00:55:01]SAM_PROTO_GetFieldsCounters done [00:55:01]requested_item shift.num is exist - process it [00:55:01]requested_item shift.opened is exist - process it [00:55:01]req_shift_opened [00:55:01]FM_GetShiftState [00:55:01]SAM_PROTO_GetShiftState [00:55:01]wFMCommunicate request_size=4 [00:55:01]MH_SAM_APDU [00:55:01]CAPDU: 80 13 01 00 [00:55:01]Write to MH i2c: E2 08 00 B5 1A 80 13 01 00 00 00 00 00 4C [00:55:01]Write i2c OK [00:55:01]MH_I2C_Read... [00:55:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:55:01]Read from MH i2c: E2 [00:55:01]MH_I2C_Read... [00:55:01]Read from MH i2c: E2 0E 00 [00:55:01]MH_I2C_Read... [00:55:01]Read from MH i2c: E2 0E 00 B5 1A 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 3E [00:55:01]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [00:55:01]wFMCommunicate OK [00:55:01]SAM_PROTO_GetShiftState done [00:55:01]FM_GetShiftState done [00:55:01]req_shift_opened done [00:55:01]requested_item shift.open_date is exist - process it [00:55:01]req_shift_open_date [00:55:01]req_shift_open_date done [00:55:01]produce_requested_data done [00:55:01]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104271,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [00:55:01]process_action_free close_receipt [00:55:01]json_value_free [00:55:01]json_value_free done [00:55:01]process_json_proto returns [00:55:01]Send response to host [00:55:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104271,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [00:55:01]free response buf [00:55:01]execute_script done [00:55:01]execute_script returns [00:55:01]free content buf [00:55:01]Sock 7.Close socket [00:55:01]Sock 7.Thread stoped [00:55:05]OFD Sender: No OFD packet to send [00:55:10]OFD Sender: No OFD packet to send [00:55:15]OFD Sender: No OFD packet to send [00:55:20]OFD Sender: No OFD packet to send [00:55:25]OFD Sender: No OFD packet to send [00:55:30]OFD Sender: No OFD packet to send [00:55:35]OFD Sender: No OFD packet to send [00:55:40]OFD Sender: No OFD packet to send [00:55:45]OFD Sender: No OFD packet to send [00:55:50]OFD Sender: No OFD packet to send [00:55:55]OFD Sender: No OFD packet to send [00:56:00]OFD Sender: No OFD packet to send [00:56:05]OFD Sender: No OFD packet to send [00:56:10]OFD Sender: No OFD packet to send [00:56:15]OFD Sender: No OFD packet to send [00:56:20]OFD Sender: No OFD packet to send [00:56:25]OFD Sender: No OFD packet to send [00:56:30]OFD Sender: No OFD packet to send [00:56:35]OFD Sender: No OFD packet to send [00:56:40]OFD Sender: No OFD packet to send [00:56:45]OFD Sender: No OFD packet to send [00:56:50]OFD Sender: No OFD packet to send [00:56:55]OFD Sender: No OFD packet to send [00:57:00]OFD Sender: No OFD packet to send [00:57:05]OFD Sender: No OFD packet to send [00:57:10]OFD Sender: No OFD packet to send [00:57:15]OFD Sender: No OFD packet to send [00:57:20]OFD Sender: No OFD packet to send [00:57:25]OFD Sender: No OFD packet to send [00:57:30]OFD Sender: No OFD packet to send [00:57:35]OFD Sender: No OFD packet to send [00:57:40]OFD Sender: No OFD packet to send [00:57:45]OFD Sender: No OFD packet to send [00:57:50]OFD Sender: No OFD packet to send [00:57:55]OFD Sender: No OFD packet to send [00:58:00]OFD Sender: No OFD packet to send [00:58:05]OFD Sender: No OFD packet to send [00:58:10]OFD Sender: No OFD packet to send [00:58:15]OFD Sender: No OFD packet to send [00:58:20]OFD Sender: No OFD packet to send [00:58:25]OFD Sender: No OFD packet to send [00:58:30]OFD Sender: No OFD packet to send [00:58:35]OFD Sender: No OFD packet to send [00:58:40]OFD Sender: No OFD packet to send [00:58:45]OFD Sender: No OFD packet to send [00:58:50]OFD Sender: No OFD packet to send [00:58:55]OFD Sender: No OFD packet to send [00:59:00]OFD Sender: No OFD packet to send [00:59:05]OFD Sender: No OFD packet to send [00:59:10]OFD Sender: No OFD packet to send [00:59:15]accept exits with 9 [00:59:15]New connection [00:59:15]New thread 3067473252 created [00:59:15]Thread 3067616612 joined [00:59:15]Waiting for new connection... [00:59:15] Sock 9.Parse request [00:59:15]Sock 9.Check first char [00:59:15]Sock 9.First char is OK [00:59:15]request: POST /json_proto HTTP/1.0 [00:59:15]Method: POST [00:59:15]URL: /json_proto [00:59:15]Method is POST - this is cgi request [00:59:15]url: /json_proto [00:59:15]query_string will be loaded in cgi processing [00:59:15]execute_cgi json_proto POST (null) [00:59:15]execute_cgi path=json_proto method=POST [00:59:15]POST find Content-Length [00:59:15]Host: 172.17.38.133:8080 [00:59:15]Content-Length: 682 [00:59:15]Content-Type: application/json [00:59:15] [00:59:15]POST finish read [00:59:15]Found Content-Length = 682 [00:59:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673760", "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" : 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" ] } } [00:59:15]execute_script... [00:59: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)673760", "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" : 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" ] } } [00:59:15]POST & json_proto [00:59:15]process_json_proto [00:59:15]json parsed OK: [00:59:15]protocol is kg_v1.0 [00:59:15]action value=close_receipt [00:59:15]process_action close_receipt [00:59:15]cmd_close_receipt [00:59:15]MH_GetDate [00:59:15]Write to MH i2c: F0 00 00 B6 1A BF [00:59:15]Write i2c OK [00:59:15]MH_I2C_Read... [00:59:15]Read from MH i2c: F0 [00:59:15]MH_I2C_Read... [00:59:15]Read from MH i2c: F0 09 00 [00:59:15]MH_I2C_Read... [00:59:15]Read from MH i2c: F0 09 00 B6 1A 00 E5 21 76 66 BD 8F 7C 64 D6 [00:59:15]GetLastDocTimeStamp 1719017699 [00:59:15]current date 1719017957 [00:59:15]FM_GetShiftState [00:59:15]SAM_PROTO_GetShiftState [00:59:15]wFMCommunicate request_size=4 [00:59:15]MH_SAM_APDU [00:59:15]CAPDU: 80 13 01 00 [00:59:15]Write to MH i2c: E2 08 00 B7 1A 80 13 01 00 00 00 00 00 4E [00:59:15]Write i2c OK [00:59:15]MH_I2C_Read... [00:59:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:59:15]Read from MH i2c: E2 [00:59:15]MH_I2C_Read... [00:59:15]Read from MH i2c: E2 0E 00 [00:59:15]MH_I2C_Read... [00:59:15]Read from MH i2c: E2 0E 00 B7 1A 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 40 [00:59:15]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [00:59:15]wFMCommunicate OK [00:59:15]SAM_PROTO_GetShiftState done [00:59:15]FM_GetShiftState done [00:59:15]opened in 1719016176 [00:59:15]opened+sec_in_day 1719102576 [00:59:15]quantity*price = 250062 [00:59:15]sum+1 = 250063 [00:59:15]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 СНО: Общий режим Чек 5 22.06.2024 00:59 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104272 ФПД: 239441085338862 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T005917&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104272&fm=239441085338862&tin=02508201610067®Number=0000000000092785&sum=250000 [00:59:16]StoreToDocumentArchive [00:59:16]shift 356 fd 104272 [00:59:16]save to /storage/0356/doc_00104272 [00:59:16]save last doc name /storage/0356/doc_00104272 to /storage/kkm_last_doc_name [00:59:16]save OK [00:59:16]Clear old archive folders... [00:59:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:59:16]tlvbuf is 0069D410 [00:59:16]SAM_PROTO_ClearQueue [00:59:16]wFMCommunicate request_size=4 [00:59:16]MH_SAM_APDU [00:59:16]CAPDU: 80 09 00 00 [00:59:16]Write to MH i2c: E2 08 00 C4 1A 80 09 00 00 00 00 00 00 50 [00:59:16]Write i2c OK [00:59:16]MH_I2C_Read... [00:59:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:59:16]Read from MH i2c: E2 [00:59:16]MH_I2C_Read... [00:59:16]Read from MH i2c: E2 03 00 [00:59:16]MH_I2C_Read... [00:59:16]Read from MH i2c: E2 03 00 C4 1A 00 90 00 52 [00:59:16]RAPDU: 90 00 [00:59:16]wFMCommunicate OK [00:59:16]SAM_PROTO_ClearQueue done [00:59:16]KKMCreateOFDPacket [00:59:16]OFDProtocolAddRootSTLVToBuf [00:59:16]FM_MakeSignedData [00:59:16]FM_MakeSignedData [00:59:16]SAM_PROTO_SignData [00:59:16]wFMCommunicate request_size=4 [00:59:16]MH_SAM_APDU [00:59:16]CAPDU: 80 0D 01 02 [00:59:16]Write to MH i2c: E2 08 00 C5 1A 80 0D 01 02 00 00 00 00 58 [00:59:16]Write i2c OK [00:59:16]MH_I2C_Read... [00:59:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:59:16]Read from MH i2c: E2 [00:59:16]MH_I2C_Read... [00:59:16]Read from MH i2c: E2 03 00 [00:59:16]MH_I2C_Read... [00:59:16]Read from MH i2c: E2 03 00 C5 1A 00 90 00 53 [00:59:16]RAPDU: 90 00 [00:59:16]wFMCommunicate OK [00:59:16]wFMCommunicate request_size=255 [00:59:16]MH_SAM_APDU [00:59: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 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 05 00 00 00 F4 03 04 00 E5 21 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 D9 [00:59:16]Write to MH i2c: E2 02 01 C6 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 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 05 00 00 00 F4 03 04 00 E5 21 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 D9 00 00 63 [00:59:16]Write i2c OK [00:59:16]MH_I2C_Read... [00:59:16]Read from MH i2c: E2 [00:59:16]MH_I2C_Read... [00:59:16]Read from MH i2c: E2 03 00 [00:59:16]MH_I2C_Read... [00:59:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:59:16]Read from MH i2c: E2 03 00 C6 1A 00 90 00 54 [00:59:16]RAPDU: 90 00 [00:59:16]wFMCommunicate OK [00:59:16]wFMCommunicate request_size=10 [00:59:16]MH_SAM_APDU [00:59:16]CAPDU: 80 0D 02 02 05 C5 38 D6 14 EE [00:59:16]Write to MH i2c: E2 0D 00 C7 1A 80 0D 02 02 05 00 C5 38 D6 14 EE 00 00 3A [00:59:16]Write i2c OK [00:59:16]MH_I2C_Read... [00:59:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:59:16]Read from MH i2c: E2 [00:59:16]MH_I2C_Read... [00:59:16]Read from MH i2c: E2 03 00 [00:59:16]MH_I2C_Read... [00:59:16]Read from MH i2c: E2 03 00 C7 1A 00 90 00 55 [00:59:16]RAPDU: 90 00 [00:59:16]wFMCommunicate OK [00:59:16]wFMCommunicate request_size=4 [00:59:16]MH_SAM_APDU [00:59:16]CAPDU: 80 0D 03 02 [00:59:16]Write to MH i2c: E2 08 00 C8 1A 80 0D 03 02 00 00 00 00 5D [00:59:16]Write i2c OK [00:59:16]MH_I2C_Read... [00:59:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:59:16]Read from MH i2c: E2 [00:59:16]MH_I2C_Read... [00:59:16]Read from MH i2c: E2 0B 00 [00:59:16]MH_I2C_Read... [00:59:16]Read from MH i2c: E2 0B 00 C8 1A 00 DD A5 32 EF F5 CD 5D B7 90 00 D7 [00:59:16]RAPDU: DD A5 32 EF F5 CD 5D B7 90 00 [00:59:16]wFMCommunicate OK [00:59:16]SAM_PROTO_SignData done [00:59:16]FM_MakeSignedData done [00:59:16]CreateOFDProtocolMessage [00:59:16]wFMCommunicate request_size=4 [00:59:16]MH_SAM_APDU [00:59:16]CAPDU: 80 11 00 00 [00:59:16]Write to MH i2c: E2 08 00 C9 1A 80 11 00 00 00 00 00 00 5D [00:59:16]Write i2c OK [00:59:16]MH_I2C_Read... [00:59:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:59:16]Read from MH i2c: E2 [00:59:16]MH_I2C_Read... [00:59:16]Read from MH i2c: E2 17 00 [00:59:16]MH_I2C_Read... [00:59:16]Read from MH i2c: E2 17 00 C9 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 B0 [00:59:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [00:59:16]wFMCommunicate OK [00:59:16]CreateOFDProtocolMessage done [00:59:16]OFDSenderStorePacket 104272 [00:59:16]StoreOFDPacket docnum=104272 [00:59: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 E2 44 07 01 98 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 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 05 00 00 00 F4 03 04 00 E5 21 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 D9 C5 38 D6 14 EE DD A5 32 EF F5 CD 5D B7 [00:59:16]CheckFolder [00:59:16]dirname=/storage/ofd_packets [00:59:16]CheckFolder done [00:59:16]ProducePacketName [00:59:16]name=ofd_packets/00104272 [00:59:16]NVStorageSaveData ofd_packets/00104272 [00:59:16]File name is /storage/ofd_packets/00104272 [00:59:16]Write 301 bytes [00:59:16]NVStorageSaveData done [00:59:16]OFDSenderStorePacket done [00:59:16]KKMCreateOFDPacket done [00:59:16]NVStorageSaveData kkm_last_timestamp [00:59:16]File name is /storage/kkm_last_timestamp [00:59:16]Write 4 bytes [00:59:16]NVStorageSaveData done [00:59:16]ExternCall_PrintAddStr [00:59:16]wPrintStart [00:59:16]Write to MH i2c: 01 00 00 CA 1A E4 [00:59:16]Write i2c OK [00:59:16]MH_I2C_Read... [00:59:16]Read from MH i2c: 01 [00:59:16]MH_I2C_Read... [00:59:16]Read from MH i2c: 01 07 00 [00:59:16]MH_I2C_Read... [00:59:16]Read from MH i2c: 01 07 00 CA 1A 00 00 00 00 00 FF 0F F9 [00:59:16]RasterBufferAndPrint [00:59:16]line Счет N : (1)673760 [00:59:16]line ИНН: 02508201610067 [00:59:16]line Контрольно-Кассовый Чек [00:59:16]line ПРОДАЖА [00:59:16]line ТРК (МРК, ГНК) : 32 [00:59:16]line Товар: 2710124130 [00:59:16]line Аи-92-К-5 [00:59:16]line 37.660 * 66.40 [00:59:16]line = 2500.62 [00:59:16]line НДС 12% НСП 1% [00:59:16]line > о реализуемом товаре [00:59:16]line ОКРУГЛЕНИЕ: -0.62 [00:59:16]line ИТОГО: 2500.00 [00:59:16]line Внесено: 2500.00 [00:59:16]line СДАЧА: 0.00 [00:59:16]line НСП 1% : 22.13 [00:59:16]line НДС 12% : 265.55 [00:59:16]line Наличными: 2500.00 [00:59:16]line Безнал.: 0.00 [00:59:16]line Место: АЗС № 120 "Партнер Нефть" [00:59:16]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [00:59:16]line СНО: Общий режим [00:59:16]line Чек 5 22.06.2024 00:59 [00:59:16]line Смена: 356 ФФД: 1.0 [00:59:16]line ЗНМ: 0300000164 [00:59:16]line РНМ: 0000000000092785 [00:59:16]line Версия ККМ: 001 [00:59:16]line ФМ: 0000000000875093 [00:59:17]line ФД: 104272 [00:59:17]line ФПД: 239441085338862 [00:59:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T005917&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104272&fm=239441085338862&tin=02508201610067®Number=0000000000092785&sum=250000 [00:59:17]OFD Sender: Processing packet 104272 [packets to send 17, broken 16] [00:59:17]ProducePacketName [00:59:17]name=ofd_packets/00104272 [00:59:17]OFD Sender: To server: pG, [00:59:17]CommunicateWithHost lk.salyk.kg:30040 [00:59:17]ConnectInit lk.salyk.kg [00:59:17]written 0, free lines is 4095 [00:59:17]Connected sock=10 [00:59: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 E2 44 07 01 98 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 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 05 00 00 00 F4 03 04 00 E5 21 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 D9 C5 38 D6 14 EE DD A5 32 EF F5 CD 5D B7 [00:59: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 10 F8 47 00 80 36 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 50 97 01 00 F4 03 04 00 66 C8 75 66 B6 04 01 00 00 56 85 55 C2 8C 24 55 50 [00:59:17]CommunicateWithHost err = 0 [00:59:17]CheckOFDResponse [00:59:17]1017 (14) - 77093643461234 [00:59:17]1041 (16) - 0000000000875093 [00:59:17]1040 (4) - 104272 [00:59:17]1012 (4) - 21.06.2024 18:37 [00:59:17]1206 (1) - 0 [00:59:17]OFD Sender: Remove packet 104272 [00:59:17]ProducePacketName [00:59:17]name=ofd_packets/00104272 [00:59:17]NVStorageDeleteData [00:59:17]Write to MH i2c: 01 00 00 F5 1A 0F [00:59:17]Write i2c OK [00:59:17]MH_I2C_Read... [00:59:17]Read from MH i2c: 01 [00:59:17]MH_I2C_Read... [00:59:17]Read from MH i2c: 01 07 00 [00:59:17]MH_I2C_Read... [00:59:17]Read from MH i2c: 01 07 00 F5 1A 00 00 00 00 00 F5 0C 17 [00:59:17]RasterBufferAndPrint [00:59:17]line [00:59:17]line [00:59:17]line [00:59:17]line [00:59:17]line [00:59:17]written 0, free lines is 3323 [00:59:17]MH_Cut [00:59:17]Write to MH i2c: D1 01 00 FC 1A 01 E8 [00:59:17]Write i2c OK [00:59:17]MH_I2C_Read... [00:59:17]Read from MH i2c: D1 [00:59:17]MH_I2C_Read... [00:59:17]Read from MH i2c: D1 01 00 [00:59:17]MH_I2C_Read... [00:59:17]Read from MH i2c: D1 01 00 FC 1A 00 E7 [00:59:17]Write to MH i2c: 01 00 00 FD 1A 17 [00:59:17]Write i2c OK [00:59:17]MH_I2C_Read... [00:59:18]OFD Sender: No OFD packet to send [00:59:18]*** Cut start [00:59:18]*** Partial cut [00:59:18]*** CUTSNS_PIN = 1 [00:59:18]*** CUTSNS_PIN = 0 [00:59:18]*** Brake cut motor [00:59:19]Read from MH i2c: 01 [00:59:19]MH_I2C_Read... [00:59:19]*** Stop cut motor [00:59:19]*** Cut end [00:59:19]Read from MH i2c: 01 07 00 [00:59:19]MH_I2C_Read... [00:59:19]Read from MH i2c: 01 07 00 FD 1A 00 00 00 00 00 FF 0F 2C [00:59:19]process_action close_receipt done [00:59:19]requested_data is exist [00:59:19]produce_requested_data [00:59:19]requested_item fm.sn is exist - process it [00:59:19]wFMCommunicate request_size=4 [00:59:19]MH_SAM_APDU [00:59:19]CAPDU: 80 11 00 00 [00:59:19]Write to MH i2c: E2 08 00 FE 1A 80 11 00 00 00 00 00 00 92 [00:59:19]Write i2c OK [00:59:19]MH_I2C_Read... [00:59:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:59:19]Read from MH i2c: E2 [00:59:19]MH_I2C_Read... [00:59:19]Read from MH i2c: E2 17 00 [00:59:19]MH_I2C_Read... [00:59:19]Read from MH i2c: E2 17 00 FE 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 E5 [00:59: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:59:19]wFMCommunicate OK [00:59:19]requested_item fd.num is exist - process it [00:59:19]SAM_PROTO_GetFieldsCounters [00:59:19]wFMCommunicate request_size=4 [00:59:19]MH_SAM_APDU [00:59:19]CAPDU: 80 13 00 00 [00:59:19]Write to MH i2c: E2 08 00 FF 1A 80 13 00 00 00 00 00 00 95 [00:59:19]Write i2c OK [00:59:19]MH_I2C_Read... [00:59:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:59:19]Read from MH i2c: E2 [00:59:19]MH_I2C_Read... [00:59:19]Read from MH i2c: E2 62 00 [00:59:19]MH_I2C_Read... [00:59:19]Read from MH i2c: E2 62 00 FF 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 50 97 01 00 0E 04 04 00 64 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 18 [00:59: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 50 97 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:59:19]wFMCommunicate OK [00:59:19]SAM_PROTO_GetFieldsCounters done [00:59:19]requested_item shift.num is exist - process it [00:59:19]requested_item shift.opened is exist - process it [00:59:19]req_shift_opened [00:59:19]FM_GetShiftState [00:59:19]SAM_PROTO_GetShiftState [00:59:19]wFMCommunicate request_size=4 [00:59:19]MH_SAM_APDU [00:59:19]CAPDU: 80 13 01 00 [00:59:19]Write to MH i2c: E2 08 00 00 1B 80 13 01 00 00 00 00 00 98 [00:59:19]Write i2c OK [00:59:19]MH_I2C_Read... [00:59:19]Read from MH i2c: E2 [00:59:19]MH_I2C_Read... [00:59:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:59:19]Read from MH i2c: E2 0E 00 [00:59:19]MH_I2C_Read... [00:59:19]Read from MH i2c: E2 0E 00 00 1B 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 8A [00:59:19]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [00:59:19]wFMCommunicate OK [00:59:19]SAM_PROTO_GetShiftState done [00:59:19]FM_GetShiftState done [00:59:19]req_shift_opened done [00:59:19]requested_item shift.open_date is exist - process it [00:59:19]req_shift_open_date [00:59:19]req_shift_open_date done [00:59:19]produce_requested_data done [00:59:19]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104272,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [00:59:19]process_action_free close_receipt [00:59:19]json_value_free [00:59:19]json_value_free done [00:59:19]process_json_proto returns [00:59:19]Send response to host [00:59:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104272,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [00:59:19]free response buf [00:59:19]execute_script done [00:59:19]execute_script returns [00:59:19]free content buf [00:59:19]Sock 9.Close socket [00:59:19]Sock 9.Thread stoped [00:59:23]OFD Sender: No OFD packet to send [00:59:28]OFD Sender: No OFD packet to send [00:59:33]OFD Sender: No OFD packet to send [00:59:38]OFD Sender: No OFD packet to send [00:59:43]OFD Sender: No OFD packet to send [00:59:48]OFD Sender: No OFD packet to send [00:59:53]OFD Sender: No OFD packet to send [00:59:58]OFD Sender: No OFD packet to send [01:00:03]OFD Sender: No OFD packet to send [01:00:08]OFD Sender: No OFD packet to send [01:00:13]OFD Sender: No OFD packet to send [01:00:18]OFD Sender: No OFD packet to send [01:00:23]OFD Sender: No OFD packet to send [01:00:28]OFD Sender: No OFD packet to send [01:00:33]OFD Sender: No OFD packet to send [01:00:38]OFD Sender: No OFD packet to send [01:00:43]OFD Sender: No OFD packet to send [01:00:48]OFD Sender: No OFD packet to send [01:00:53]OFD Sender: No OFD packet to send [01:00:58]OFD Sender: No OFD packet to send [01:01:03]OFD Sender: No OFD packet to send [01:01:08]OFD Sender: No OFD packet to send [01:01:13]OFD Sender: No OFD packet to send [01:01:18]OFD Sender: No OFD packet to send [01:01:23]OFD Sender: No OFD packet to send [01:01:28]OFD Sender: No OFD packet to send [01:01:33]OFD Sender: No OFD packet to send [01:01:38]OFD Sender: No OFD packet to send [01:01:43]OFD Sender: No OFD packet to send [01:01:48]OFD Sender: No OFD packet to send [01:01:53]OFD Sender: No OFD packet to send [01:01:58]OFD Sender: No OFD packet to send [01:02:03]OFD Sender: No OFD packet to send [01:02:08]OFD Sender: No OFD packet to send [01:02:13]OFD Sender: No OFD packet to send [01:02:18]OFD Sender: No OFD packet to send [01:02:23]OFD Sender: No OFD packet to send [01:02:28]OFD Sender: No OFD packet to send [01:02:33]OFD Sender: No OFD packet to send [01:02:38]OFD Sender: No OFD packet to send [01:02:43]OFD Sender: No OFD packet to send [01:02:48]OFD Sender: No OFD packet to send [01:02:53]OFD Sender: No OFD packet to send [01:02:58]OFD Sender: No OFD packet to send [01:03:03]OFD Sender: No OFD packet to send [01:03:08]OFD Sender: No OFD packet to send [01:03:13]OFD Sender: No OFD packet to send [01:03:18]OFD Sender: No OFD packet to send [01:03:23]OFD Sender: No OFD packet to send [01:03:28]OFD Sender: No OFD packet to send [01:03:33]OFD Sender: No OFD packet to send [01:03:38]OFD Sender: No OFD packet to send [01:03:43]OFD Sender: No OFD packet to send [01:03:48]OFD Sender: No OFD packet to send [01:03:53]OFD Sender: No OFD packet to send [01:03:58]OFD Sender: No OFD packet to send [01:04:03]OFD Sender: No OFD packet to send [01:04:08]OFD Sender: No OFD packet to send [01:04:13]OFD Sender: No OFD packet to send [01:04:18]OFD Sender: No OFD packet to send [01:04:23]OFD Sender: No OFD packet to send [01:04:28]OFD Sender: No OFD packet to send [01:04:33]OFD Sender: No OFD packet to send [01:04:38]OFD Sender: No OFD packet to send [01:04:43]OFD Sender: No OFD packet to send [01:04:48]OFD Sender: No OFD packet to send [01:04:53]OFD Sender: No OFD packet to send [01:04:58]OFD Sender: No OFD packet to send [01:05:03]OFD Sender: No OFD packet to send [01:05:08]OFD Sender: No OFD packet to send [01:05:13]OFD Sender: No OFD packet to send [01:05:18]OFD Sender: No OFD packet to send [01:05:23]OFD Sender: No OFD packet to send [01:05:28]OFD Sender: No OFD packet to send [01:05:33]OFD Sender: No OFD packet to send [01:05:38]OFD Sender: No OFD packet to send [01:05:43]OFD Sender: No OFD packet to send [01:05:48]OFD Sender: No OFD packet to send [01:05:53]OFD Sender: No OFD packet to send [01:05:58]OFD Sender: No OFD packet to send [01:06:03]OFD Sender: No OFD packet to send [01:06:08]OFD Sender: No OFD packet to send [01:06:13]OFD Sender: No OFD packet to send [01:06:18]OFD Sender: No OFD packet to send [01:06:23]OFD Sender: No OFD packet to send [01:06:28]OFD Sender: No OFD packet to send [01:06:33]OFD Sender: No OFD packet to send [01:06:38]OFD Sender: No OFD packet to send [01:06:43]OFD Sender: No OFD packet to send [01:06:48]OFD Sender: No OFD packet to send [01:06:53]OFD Sender: No OFD packet to send [01:06:58]OFD Sender: No OFD packet to send [01:07:03]OFD Sender: No OFD packet to send [01:07:08]OFD Sender: No OFD packet to send [01:07:13]OFD Sender: No OFD packet to send [01:07:18]OFD Sender: No OFD packet to send [01:07:23]OFD Sender: No OFD packet to send [01:07:28]OFD Sender: No OFD packet to send [01:07:33]OFD Sender: No OFD packet to send [01:07:38]OFD Sender: No OFD packet to send [01:07:43]OFD Sender: No OFD packet to send [01:07:48]OFD Sender: No OFD packet to send [01:07:53]OFD Sender: No OFD packet to send [01:07:58]OFD Sender: No OFD packet to send [01:08:03]OFD Sender: No OFD packet to send [01:08:08]OFD Sender: No OFD packet to send [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:45]accept exits with 7 [01:10:45]New connection [01:10:45]New thread 3067616612 created [01:10:45]Thread 3067473252 joined [01:10:45]Waiting for new connection... [01:10:45] Sock 7.Parse request [01:10:45]Sock 7.Check first char [01:10:45]Sock 7.First char is OK [01:10:45]request: POST /json_proto HTTP/1.0 [01:10:45]Method: POST [01:10:45]URL: /json_proto [01:10:45]Method is POST - this is cgi request [01:10:45]url: /json_proto [01:10:45]query_string will be loaded in cgi processing [01:10:45]execute_cgi json_proto POST (null) [01:10:45]execute_cgi path=json_proto method=POST [01:10:45]POST find Content-Length [01:10:45]Host: 172.17.38.133:8080 [01:10:45]Content-Length: 1168 [01:10:45]Content-Type: application/json [01:10:45] [01:10:45]POST finish read [01:10:45]Found Content-Length = 1168 [01:10: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 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673762\u000A22.06.2024 00: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 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\u000A30076980\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:10:45]execute_script... [01:10: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 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673762\u000A22.06.2024 00: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 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\u000A30076980\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:10:45]POST & json_proto [01:10:45]process_json_proto [01:10:45]json parsed OK: [01:10:45]protocol is kg_v1.0 [01:10:45]action value=print_text [01:10:45]process_action print_text [01:10:45]cmd_print_text [01:10:45]ExternCall_PrintAddStr [01:10:45]wPrintStart [01:10:45]Write to MH i2c: 01 00 00 01 1B 1C [01:10:45]Write i2c OK [01:10:45]MH_I2C_Read... [01:10:45]Read from MH i2c: 01 [01:10:45]MH_I2C_Read... [01:10:45]Read from MH i2c: 01 07 00 [01:10:45]MH_I2C_Read... [01:10:45]Read from MH i2c: 01 07 00 01 1B 00 00 00 00 00 FF 0F 31 [01:10:45]RasterBufferAndPrint [01:10:45]line *****ТОВАРНЫЙ ЧЕК***** [01:10:45]line АЗС 120 [01:10:45]line Партнер нефть [01:10:45]line 02508201610067 [01:10:45]line Кассир : Байбугуева Г. [01:10:45]line Счет N : (1)673762 [01:10:45]line 22.06.2024 00:47 [01:10:45]line ПРОДАЖА [01:10:45]line ТРК (МРК, ГНК): 42 [01:10:45]line Вид ГСМ : 2710124130 [01:10:45]line Аи-92-К-5 [01:10:45]line 10.000 x 66.40 [01:10:45]line ИТОГ: 664.00 [01:10:45]line Тип оплаты: Талоны: ТК ГПНА Online [01:10:45]line 30076980 [01:10:45]line ______________________ [01:10:45]line (подпись) [01:10:45]written 0, free lines is 4095 [01:10:45]Write to MH i2c: 01 00 00 15 1B 30 [01:10:45]Write i2c OK [01:10:45]MH_I2C_Read... [01:10:45]Read from MH i2c: 01 [01:10:45]MH_I2C_Read... [01:10:45]Read from MH i2c: 01 07 00 [01:10:45]MH_I2C_Read... [01:10:45]Read from MH i2c: 01 07 00 15 1B 00 00 00 00 00 12 0E 57 [01:10:45]RasterBufferAndPrint [01:10:45]line [01:10:45]line [01:10:45]line [01:10:45]line [01:10:45]line [01:10:45]written 0, free lines is 3604 [01:10:45]MH_Cut [01:10:45]Write to MH i2c: D1 01 00 1C 1B 01 09 [01:10:45]Write i2c OK [01:10:45]MH_I2C_Read... [01:10:45]Read from MH i2c: D1 [01:10:45]MH_I2C_Read... [01:10:45]Read from MH i2c: D1 01 00 [01:10:45]MH_I2C_Read... [01:10:45]Read from MH i2c: D1 01 00 1C 1B 00 08 [01:10:45]Write to MH i2c: 01 00 00 1D 1B 38 [01:10:45]Write i2c OK [01:10:45]MH_I2C_Read... [01:10:45]*** Cut start [01:10:45]*** Partial cut [01:10:45]*** CUTSNS_PIN = 1 [01:10:45]*** CUTSNS_PIN = 0 [01:10:46]*** Brake cut motor [01:10:46]Read from MH i2c: 01 [01:10:46]MH_I2C_Read... [01:10:46]*** Stop cut motor [01:10:46]*** Cut end [01:10:46]Read from MH i2c: 01 07 00 [01:10:46]MH_I2C_Read... [01:10:46]Read from MH i2c: 01 07 00 1D 1B 00 00 00 00 00 FF 0F 4D [01:10:46]process_action print_text done [01:10:46]requested_data is exist [01:10:46]produce_requested_data [01:10:46]requested_item fm.sn is exist - process it [01:10:46]wFMCommunicate request_size=4 [01:10:46]MH_SAM_APDU [01:10:46]CAPDU: 80 11 00 00 [01:10:46]Write to MH i2c: E2 08 00 1E 1B 80 11 00 00 00 00 00 00 B3 [01:10:46]Write i2c OK [01:10:46]MH_I2C_Read... [01:10:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:10:46]Read from MH i2c: E2 [01:10:46]MH_I2C_Read... [01:10:46]Read from MH i2c: E2 17 00 [01:10:46]MH_I2C_Read... [01:10:46]Read from MH i2c: E2 17 00 1E 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 06 [01: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 [01:10:46]wFMCommunicate OK [01:10:46]requested_item fd.num is exist - process it [01:10:46]SAM_PROTO_GetFieldsCounters [01:10:46]wFMCommunicate request_size=4 [01:10:46]MH_SAM_APDU [01:10:46]CAPDU: 80 13 00 00 [01:10:46]Write to MH i2c: E2 08 00 1F 1B 80 13 00 00 00 00 00 00 B6 [01:10:46]Write i2c OK [01:10:46]MH_I2C_Read... [01:10:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:10:46]Read from MH i2c: E2 [01:10:46]MH_I2C_Read... [01:10:46]Read from MH i2c: E2 62 00 [01:10:46]MH_I2C_Read... [01:10:46]Read from MH i2c: E2 62 00 1F 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 50 97 01 00 0E 04 04 00 64 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 39 [01: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 50 97 01 00 0E 04 04 00 64 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:10:46]wFMCommunicate OK [01:10:46]SAM_PROTO_GetFieldsCounters done [01:10:46]requested_item shift.num is exist - process it [01:10:46]requested_item shift.opened is exist - process it [01:10:46]req_shift_opened [01:10:46]FM_GetShiftState [01:10:46]SAM_PROTO_GetShiftState [01:10:46]wFMCommunicate request_size=4 [01:10:46]MH_SAM_APDU [01:10:46]CAPDU: 80 13 01 00 [01:10:46]Write to MH i2c: E2 08 00 20 1B 80 13 01 00 00 00 00 00 B8 [01:10:46]Write i2c OK [01:10:46]MH_I2C_Read... [01:10:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:10:46]Read from MH i2c: E2 [01:10:46]MH_I2C_Read... [01:10:46]Read from MH i2c: E2 0E 00 [01:10:46]MH_I2C_Read... [01:10:46]Read from MH i2c: E2 0E 00 20 1B 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 AA [01:10:46]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [01:10:46]wFMCommunicate OK [01:10:46]SAM_PROTO_GetShiftState done [01:10:46]FM_GetShiftState done [01:10:46]req_shift_opened done [01:10:46]requested_item shift.open_date is exist - process it [01:10:46]req_shift_open_date [01:10:46]req_shift_open_date done [01:10:46]produce_requested_data done [01:10:46]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104272,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [01:10:46]process_action_free print_text [01:10:46]json_value_free [01:10:46]json_value_free done [01:10:46]process_json_proto returns [01:10:46]Send response to host [01:10:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104272,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [01:10:46]free response buf [01:10:46]execute_script done [01:10:46]execute_script returns [01:10:46]free content buf [01:10:46]Sock 7.Close socket [01:10:46]Sock 7.Thread stoped [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:59]OFD Sender: No OFD packet to send [01:15:04]OFD Sender: No OFD packet to send [01:15:07]accept exits with 9 [01:15:07]New connection [01:15:07]New thread 3067473252 created [01:15:07]Thread 3067616612 joined [01:15:07]Waiting for new connection... [01:15:07] Sock 9.Parse request [01:15:07]Sock 9.Check first char [01:15:07]Sock 9.First char is OK [01:15:07]request: POST /json_proto HTTP/1.0 [01:15:07]Method: POST [01:15:07]URL: /json_proto [01:15:07]Method is POST - this is cgi request [01:15:07]url: /json_proto [01:15:07]query_string will be loaded in cgi processing [01:15:07]execute_cgi json_proto POST (null) [01:15:07]execute_cgi path=json_proto method=POST [01:15:07]POST find Content-Length [01:15:07]Host: 172.17.38.133:8080 [01:15:07]Content-Length: 692 [01:15:07]Content-Type: application/json [01:15:07] [01:15:07]POST finish read [01:15:07]Found Content-Length = 692 [01:15:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673761", "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" : 205.770, "sum" : 15000.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 15000.00, "total" : 15000.00, "payments": [ { "type": 0, "sum" : 15000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:15:07]execute_script... [01:15: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)673761", "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" : 205.770, "sum" : 15000.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 15000.00, "total" : 15000.00, "payments": [ { "type": 0, "sum" : 15000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:15:07]POST & json_proto [01:15:07]process_json_proto [01:15:07]json parsed OK: [01:15:07]protocol is kg_v1.0 [01:15:07]action value=close_receipt [01:15:07]process_action close_receipt [01:15:07]cmd_close_receipt [01:15:07]MH_GetDate [01:15:07]Write to MH i2c: F0 00 00 21 1B 2B [01:15:07]Write i2c OK [01:15:07]MH_I2C_Read... [01:15:07]Read from MH i2c: F0 [01:15:07]MH_I2C_Read... [01:15:07]Read from MH i2c: F0 09 00 [01:15:07]MH_I2C_Read... [01:15:07]Read from MH i2c: F0 09 00 21 1B 00 9D 25 76 66 BD 8F 7C 64 FE [01:15:07]GetLastDocTimeStamp 1719017957 [01:15:07]current date 1719018909 [01:15:07]FM_GetShiftState [01:15:07]SAM_PROTO_GetShiftState [01:15:07]wFMCommunicate request_size=4 [01:15:07]MH_SAM_APDU [01:15:07]CAPDU: 80 13 01 00 [01:15:07]Write to MH i2c: E2 08 00 22 1B 80 13 01 00 00 00 00 00 BA [01:15:07]Write i2c OK [01:15:07]MH_I2C_Read... [01:15:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:15:07]Read from MH i2c: E2 [01:15:07]MH_I2C_Read... [01:15:07]Read from MH i2c: E2 0E 00 [01:15:07]MH_I2C_Read... [01:15:07]Read from MH i2c: E2 0E 00 22 1B 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 AC [01:15:07]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [01:15:07]wFMCommunicate OK [01:15:07]SAM_PROTO_GetShiftState done [01:15:07]FM_GetShiftState done [01:15:07]opened in 1719016176 [01:15:07]opened+sec_in_day 1719102576 [01:15:07]quantity*price = 1500063 [01:15:07]sum+1 = 1500064 [01:15:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 15000.00 Внесено: 15000.00 СДАЧА: 0.00 НСП 1% : 132.75 НДС 12% : 1592.99 Наличными: 15000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 6 22.06.2024 01:15 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104273 ФПД: 87362832627314 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T011509&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104273&fm=87362832627314&tin=02508201610067®Number=0000000000092785&sum=1500000 [01:15:08]StoreToDocumentArchive [01:15:08]shift 356 fd 104273 [01:15:08]save to /storage/0356/doc_00104273 [01:15:08]save last doc name /storage/0356/doc_00104273 to /storage/kkm_last_doc_name [01:15:08]save OK [01:15:08]Clear old archive folders... [01:15:08]ProcessDocumentItem done err = 0, tmpTLVsize=252 [01:15:08]tlvbuf is 006957A0 [01:15:08]SAM_PROTO_ClearQueue [01:15:08]wFMCommunicate request_size=4 [01:15:08]MH_SAM_APDU [01:15:08]CAPDU: 80 09 00 00 [01:15:08]Write to MH i2c: E2 08 00 2F 1B 80 09 00 00 00 00 00 00 BC [01:15:08]Write i2c OK [01:15:08]MH_I2C_Read... [01:15:08]Read from MH i2c: E2 [01:15:08]MH_I2C_Read... [01:15:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:15:08]Read from MH i2c: E2 03 00 [01:15:08]MH_I2C_Read... [01:15:08]Read from MH i2c: E2 03 00 2F 1B 00 90 00 BE [01:15:08]RAPDU: 90 00 [01:15:08]wFMCommunicate OK [01:15:08]SAM_PROTO_ClearQueue done [01:15:08]KKMCreateOFDPacket [01:15:08]OFDProtocolAddRootSTLVToBuf [01:15:08]FM_MakeSignedData [01:15:08]FM_MakeSignedData [01:15:08]SAM_PROTO_SignData [01:15:08]wFMCommunicate request_size=4 [01:15:08]MH_SAM_APDU [01:15:08]CAPDU: 80 0D 01 02 [01:15:08]Write to MH i2c: E2 08 00 30 1B 80 0D 01 02 00 00 00 00 C4 [01:15:08]Write i2c OK [01:15:08]MH_I2C_Read... [01:15:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:15:08]Read from MH i2c: E2 [01:15:08]MH_I2C_Read... [01:15:08]Read from MH i2c: E2 03 00 [01:15:08]MH_I2C_Read... [01:15:08]Read from MH i2c: E2 03 00 30 1B 00 90 00 BF [01:15:08]RAPDU: 90 00 [01:15:08]wFMCommunicate OK [01:15:08]wFMCommunicate request_size=255 [01:15:08]MH_SAM_APDU [01:15:08]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 CA 23 03 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 9F E3 16 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 E3 16 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DB 33 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 6E 02 00 00 00 07 04 06 00 60 E3 16 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 9D 25 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 [01:15:08]Write to MH i2c: E2 02 01 31 1B 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 CA 23 03 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 9F E3 16 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 E3 16 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DB 33 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 6E 02 00 00 00 07 04 06 00 60 E3 16 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 9D 25 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 00 00 92 [01:15:08]Write i2c OK [01:15:08]MH_I2C_Read... [01:15:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:15:08]Read from MH i2c: E2 [01:15:08]MH_I2C_Read... [01:15:08]Read from MH i2c: E2 03 00 [01:15:08]MH_I2C_Read... [01:15:08]Read from MH i2c: E2 03 00 31 1B 00 90 00 C0 [01:15:08]RAPDU: 90 00 [01:15:08]wFMCommunicate OK [01:15:08]wFMCommunicate request_size=11 [01:15:08]MH_SAM_APDU [01:15:08]CAPDU: 80 0D 02 02 06 4F 74 BE 9A F6 72 [01:15:08]Write to MH i2c: E2 0E 00 32 1B 80 0D 02 02 06 00 4F 74 BE 9A F6 72 00 00 56 [01:15:08]Write i2c OK [01:15:08]MH_I2C_Read... [01:15:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:15:08]Read from MH i2c: E2 [01:15:08]MH_I2C_Read... [01:15:08]Read from MH i2c: E2 03 00 [01:15:08]MH_I2C_Read... [01:15:08]Read from MH i2c: E2 03 00 32 1B 00 90 00 C1 [01:15:08]RAPDU: 90 00 [01:15:08]wFMCommunicate OK [01:15:08]wFMCommunicate request_size=4 [01:15:08]MH_SAM_APDU [01:15:08]CAPDU: 80 0D 03 02 [01:15:08]Write to MH i2c: E2 08 00 33 1B 80 0D 03 02 00 00 00 00 C9 [01:15:08]Write i2c OK [01:15:08]MH_I2C_Read... [01:15:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:15:08]Read from MH i2c: E2 [01:15:08]MH_I2C_Read... [01:15:08]Read from MH i2c: E2 0B 00 [01:15:08]MH_I2C_Read... [01:15:08]Read from MH i2c: E2 0B 00 33 1B 00 F0 5B B2 87 A4 34 D3 AF 90 00 A8 [01:15:08]RAPDU: F0 5B B2 87 A4 34 D3 AF 90 00 [01:15:08]wFMCommunicate OK [01:15:08]SAM_PROTO_SignData done [01:15:08]FM_MakeSignedData done [01:15:08]CreateOFDProtocolMessage [01:15:08]wFMCommunicate request_size=4 [01:15:08]MH_SAM_APDU [01:15:08]CAPDU: 80 11 00 00 [01:15:08]Write to MH i2c: E2 08 00 34 1B 80 11 00 00 00 00 00 00 C9 [01:15:08]Write i2c OK [01:15:08]MH_I2C_Read... [01:15:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:15:08]Read from MH i2c: E2 [01:15:08]MH_I2C_Read... [01:15:08]Read from MH i2c: E2 17 00 [01:15:08]MH_I2C_Read... [01:15:08]Read from MH i2c: E2 17 00 34 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 1C [01:15:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [01:15:08]wFMCommunicate OK [01:15:08]CreateOFDProtocolMessage done [01:15:08]OFDSenderStorePacket 104273 [01:15:08]StoreOFDPacket docnum=104273 [01:15: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 10 01 00 00 80 44 08 01 94 7E 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 CA 23 03 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 9F E3 16 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 E3 16 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DB 33 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 6E 02 00 00 00 07 04 06 00 60 E3 16 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 9D 25 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 4F 74 BE 9A F6 72 F0 5B B2 87 A4 34 D3 AF [01:15:08]CheckFolder [01:15:08]dirname=/storage/ofd_packets [01:15:08]CheckFolder done [01:15:08]ProducePacketName [01:15:08]name=ofd_packets/00104273 [01:15:08]NVStorageSaveData ofd_packets/00104273 [01:15:08]File name is /storage/ofd_packets/00104273 [01:15:08]Write 302 bytes [01:15:08]NVStorageSaveData done [01:15:08]OFDSenderStorePacket done [01:15:08]KKMCreateOFDPacket done [01:15:08]NVStorageSaveData kkm_last_timestamp [01:15:08]File name is /storage/kkm_last_timestamp [01:15:08]Write 4 bytes [01:15:08]NVStorageSaveData done [01:15:08]ExternCall_PrintAddStr [01:15:08]wPrintStart [01:15:08]Write to MH i2c: 01 00 00 35 1B 50 [01:15:08]Write i2c OK [01:15:08]MH_I2C_Read... [01:15:08]Read from MH i2c: 01 [01:15:08]MH_I2C_Read... [01:15:08]Read from MH i2c: 01 07 00 [01:15:08]MH_I2C_Read... [01:15:08]Read from MH i2c: 01 07 00 35 1B 00 00 00 00 00 FF 0F 65 [01:15:08]RasterBufferAndPrint [01:15:08]line Счет N : (1)673761 [01:15:08]line ИНН: 02508201610067 [01:15:08]line Контрольно-Кассовый Чек [01:15:08]line ПРОДАЖА [01:15:08]line ТРК (МРК, ГНК) : 11 [01:15:08]line Товар: 2710194210 [01:15:08]line ДТ(л)-К-5 [01:15:08]line 205.770 * 72.90 [01:15:08]line = 15000.63 [01:15:08]line НДС 12% НСП 1% [01:15:08]line > о реализуемом товаре [01:15:08]line ОКРУГЛЕНИЕ: -0.63 [01:15:08]line ИТОГО: 15000.00 [01:15:08]line Внесено: 15000.00 [01:15:08]line СДАЧА: 0.00 [01:15:08]line НСП 1% : 132.75 [01:15:08]line НДС 12% : 1592.99 [01:15:08]line Наличными: 15000.00 [01:15:08]line Безнал.: 0.00 [01:15:08]line Место: АЗС № 120 "Партнер Нефть" [01:15:08]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [01:15:08]line СНО: Общий режим [01:15:08]line Чек 6 22.06.2024 01:15 [01:15:08]line Смена: 356 ФФД: 1.0 [01:15:08]line ЗНМ: 0300000164 [01:15:08]line РНМ: 0000000000092785 [01:15:08]line Версия ККМ: 001 [01:15:08]line ФМ: 0000000000875093 [01:15:08]line ФД: 104273 [01:15:08]line ФПД: 87362832627314 [01:15:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T011509&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104273&fm=87362832627314&tin=02508201610067®Number=0000000000092785&sum=1500000 [01:15:09]OFD Sender: Processing packet 104273 [packets to send 17, broken 16] [01:15:09]ProducePacketName [01:15:09]name=ofd_packets/00104273 [01:15:09]OFD Sender: To server: pG, [01:15:09]CommunicateWithHost lk.salyk.kg:30040 [01:15:09]ConnectInit lk.salyk.kg [01:15:09]written 0, free lines is 4095 [01:15:09]Connected sock=10 [01:15: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 10 01 00 00 80 44 08 01 94 7E 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 CA 23 03 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 9F E3 16 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 E3 16 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DB 33 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 6E 02 00 00 00 07 04 06 00 60 E3 16 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 9D 25 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 4F 74 BE 9A F6 72 F0 5B B2 87 A4 34 D3 AF [01:15: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 F7 62 47 00 8E 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 51 97 01 00 F4 03 04 00 1E CC 75 66 B6 04 01 00 00 9F 82 64 AE D9 68 11 16 [01:15:09]CommunicateWithHost err = 0 [01:15:09]CheckOFDResponse [01:15:09]1017 (14) - 77093643461234 [01:15:09]1041 (16) - 0000000000875093 [01:15:09]1040 (4) - 104273 [01:15:09]1012 (4) - 21.06.2024 18:53 [01:15:09]1206 (1) - 0 [01:15:09]OFD Sender: Remove packet 104273 [01:15:09]ProducePacketName [01:15:09]name=ofd_packets/00104273 [01:15:09]NVStorageDeleteData [01:15:09]Write to MH i2c: 01 00 00 60 1B 7B [01:15:09]Write i2c OK [01:15:09]MH_I2C_Read... [01:15:09]Read from MH i2c: 01 [01:15:09]MH_I2C_Read... [01:15:09]Read from MH i2c: 01 07 00 [01:15:09]MH_I2C_Read... [01:15:09]Read from MH i2c: 01 07 00 60 1B 00 00 00 00 00 E9 0C 77 [01:15:09]RasterBufferAndPrint [01:15:09]line [01:15:09]line [01:15:09]line [01:15:09]line [01:15:09]line [01:15:09]written 0, free lines is 3311 [01:15:09]MH_Cut [01:15:09]Write to MH i2c: D1 01 00 67 1B 01 54 [01:15:09]Write i2c OK [01:15:09]MH_I2C_Read... [01:15:09]Read from MH i2c: D1 [01:15:09]MH_I2C_Read... [01:15:09]Read from MH i2c: D1 01 00 [01:15:09]MH_I2C_Read... [01:15:09]Read from MH i2c: D1 01 00 67 1B 00 53 [01:15:09]Write to MH i2c: 01 00 00 68 1B 83 [01:15:09]Write i2c OK [01:15:09]MH_I2C_Read... [01:15:10]OFD Sender: No OFD packet to send [01:15:10]*** Cut start [01:15:10]*** Partial cut [01:15:10]*** CUTSNS_PIN = 1 [01:15:10]*** CUTSNS_PIN = 0 [01:15:10]*** Brake cut motor [01:15:10]Read from MH i2c: 01 [01:15:10]MH_I2C_Read... [01:15:10]*** Stop cut motor [01:15:10]*** Cut end [01:15:10]Read from MH i2c: 01 07 00 [01:15:10]MH_I2C_Read... [01:15:10]Read from MH i2c: 01 07 00 68 1B 00 00 00 00 00 FF 0F 98 [01:15:10]process_action close_receipt done [01:15:10]requested_data is exist [01:15:10]produce_requested_data [01:15:10]requested_item fm.sn is exist - process it [01:15:10]wFMCommunicate request_size=4 [01:15:10]MH_SAM_APDU [01:15:10]CAPDU: 80 11 00 00 [01:15:10]Write to MH i2c: E2 08 00 69 1B 80 11 00 00 00 00 00 00 FE [01:15:10]Write i2c OK [01:15:10]MH_I2C_Read... [01:15:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:15:11]Read from MH i2c: E2 [01:15:11]MH_I2C_Read... [01:15:11]Read from MH i2c: E2 17 00 [01:15:11]MH_I2C_Read... [01:15:11]Read from MH i2c: E2 17 00 69 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 51 [01:15:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [01:15:11]wFMCommunicate OK [01:15:11]requested_item fd.num is exist - process it [01:15:11]SAM_PROTO_GetFieldsCounters [01:15:11]wFMCommunicate request_size=4 [01:15:11]MH_SAM_APDU [01:15:11]CAPDU: 80 13 00 00 [01:15:11]Write to MH i2c: E2 08 00 6A 1B 80 13 00 00 00 00 00 00 01 [01:15:11]Write i2c OK [01:15:11]MH_I2C_Read... [01:15:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:15:11]Read from MH i2c: E2 [01:15:11]MH_I2C_Read... [01:15:11]Read from MH i2c: E2 62 00 [01:15:11]MH_I2C_Read... [01:15:11]Read from MH i2c: E2 62 00 6A 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 51 97 01 00 0E 04 04 00 64 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 88 [01:15: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 51 97 01 00 0E 04 04 00 64 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:15:11]wFMCommunicate OK [01:15:11]SAM_PROTO_GetFieldsCounters done [01:15:11]requested_item shift.num is exist - process it [01:15:11]requested_item shift.opened is exist - process it [01:15:11]req_shift_opened [01:15:11]FM_GetShiftState [01:15:11]SAM_PROTO_GetShiftState [01:15:11]wFMCommunicate request_size=4 [01:15:11]MH_SAM_APDU [01:15:11]CAPDU: 80 13 01 00 [01:15:11]Write to MH i2c: E2 08 00 6B 1B 80 13 01 00 00 00 00 00 03 [01:15:11]Write i2c OK [01:15:11]MH_I2C_Read... [01:15:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:15:11]Read from MH i2c: E2 [01:15:11]MH_I2C_Read... [01:15:11]Read from MH i2c: E2 0E 00 [01:15:11]MH_I2C_Read... [01:15:11]Read from MH i2c: E2 0E 00 6B 1B 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 F5 [01:15:11]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [01:15:11]wFMCommunicate OK [01:15:11]SAM_PROTO_GetShiftState done [01:15:11]FM_GetShiftState done [01:15:11]req_shift_opened done [01:15:11]requested_item shift.open_date is exist - process it [01:15:11]req_shift_open_date [01:15:11]req_shift_open_date done [01:15:11]produce_requested_data done [01:15:11]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104273,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [01:15:11]process_action_free close_receipt [01:15:11]json_value_free [01:15:11]json_value_free done [01:15:11]process_json_proto returns [01:15:11]Send response to host [01:15:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104273,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [01:15:11]free response buf [01:15:11]execute_script done [01:15:11]execute_script returns [01:15:11]free content buf [01:15:11]Sock 9.Close socket [01:15:11]Sock 9.Thread stoped [01:15:15]OFD Sender: No OFD packet to send [01:15:20]OFD Sender: No OFD packet to send [01:15:25]OFD Sender: No OFD packet to send [01:15:30]OFD Sender: No OFD packet to send [01:15:35]OFD Sender: No OFD packet to send [01:15:40]OFD Sender: No OFD packet to send [01:15:45]OFD Sender: No OFD packet to send [01:15:50]OFD Sender: No OFD packet to send [01:15:55]OFD Sender: No OFD packet to send [01:16:00]OFD Sender: No OFD packet to send [01:16:05]OFD Sender: No OFD packet to send [01:16:10]OFD Sender: No OFD packet to send [01:16:15]OFD Sender: No OFD packet to send [01:16:20]OFD Sender: No OFD packet to send [01:16:25]OFD Sender: No OFD packet to send [01:16:30]OFD Sender: No OFD packet to send [01:16:35]OFD Sender: No OFD packet to send [01:16:40]OFD Sender: No OFD packet to send [01:16:45]OFD Sender: No OFD packet to send [01:16:50]OFD Sender: No OFD packet to send [01:16:55]OFD Sender: No OFD packet to send [01:17:00]OFD Sender: No OFD packet to send [01:17:05]OFD Sender: No OFD packet to send [01:17:10]OFD Sender: No OFD packet to send [01:17:15]OFD Sender: No OFD packet to send [01:17:20]OFD Sender: No OFD packet to send [01:17:25]OFD Sender: No OFD packet to send [01:17:30]OFD Sender: No OFD packet to send [01:17:35]OFD Sender: No OFD packet to send [01:17:40]OFD Sender: No OFD packet to send [01:17:45]OFD Sender: No OFD packet to send [01:17:50]OFD Sender: No OFD packet to send [01:17:55]OFD Sender: No OFD packet to send [01:18:00]OFD Sender: No OFD packet to send [01:18:05]OFD Sender: No OFD packet to send [01:18:10]OFD Sender: No OFD packet to send [01:18:15]OFD Sender: No OFD packet to send [01:18:20]OFD Sender: No OFD packet to send [01:18:25]OFD Sender: No OFD packet to send [01:18:30]OFD Sender: No OFD packet to send [01:18:35]OFD Sender: No OFD packet to send [01:18:40]OFD Sender: No OFD packet to send [01:18:45]OFD Sender: No OFD packet to send [01:18:50]OFD Sender: No OFD packet to send [01:18:55]OFD Sender: No OFD packet to send [01:19:00]OFD Sender: No OFD packet to send [01:19:05]OFD Sender: No OFD packet to send [01:19:10]OFD Sender: No OFD packet to send [01:19:15]OFD Sender: No OFD packet to send [01:19:20]OFD Sender: No OFD packet to send [01:19:25]OFD Sender: No OFD packet to send [01:19:30]OFD Sender: No OFD packet to send [01:19:35]OFD Sender: No OFD packet to send [01:19:40]OFD Sender: No OFD packet to send [01:19:45]OFD Sender: No OFD packet to send [01:19:50]OFD Sender: No OFD packet to send [01:19:55]OFD Sender: No OFD packet to send [01:20:00]OFD Sender: No OFD packet to send [01:20:05]OFD Sender: No OFD packet to send [01:20:10]OFD Sender: No OFD packet to send [01:20:15]OFD Sender: No OFD packet to send [01:20:20]OFD Sender: No OFD packet to send [01:20:25]OFD Sender: No OFD packet to send [01:20:30]OFD Sender: No OFD packet to send [01:20:35]accept exits with 7 [01:20:35]New connection [01:20:35]New thread 3067616612 created [01:20:35]Thread 3067473252 joined [01:20:35]Waiting for new connection... [01:20:35] Sock 7.Parse request [01:20:35]Sock 7.Check first char [01:20:35]Sock 7.First char is OK [01:20:35]request: POST /json_proto HTTP/1.0 [01:20:35]Method: POST [01:20:35]URL: /json_proto [01:20:35]Method is POST - this is cgi request [01:20:35]url: /json_proto [01:20:35]query_string will be loaded in cgi processing [01:20:35]execute_cgi json_proto POST (null) [01:20:35]execute_cgi path=json_proto method=POST [01:20:35]POST find Content-Length [01:20:35]Host: 172.17.38.133:8080 [01:20:35]Content-Length: 677 [01:20:35]Content-Type: application/json [01:20:35] [01:20:35]POST finish read [01:20:35]Found Content-Length = 677 [01:20:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673764", "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" ] } } [01:20:35]execute_script... [01:20: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)673764", "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" ] } } [01:20:35]POST & json_proto [01:20:35]process_json_proto [01:20:35]json parsed OK: [01:20:35]protocol is kg_v1.0 [01:20:35]action value=close_receipt [01:20:35]process_action close_receipt [01:20:35]cmd_close_receipt [01:20:35]MH_GetDate [01:20:35]Write to MH i2c: F0 00 00 6C 1B 76 [01:20:35]Write i2c OK [01:20:35]MH_I2C_Read... [01:20:35]Read from MH i2c: F0 [01:20:35]MH_I2C_Read... [01:20:35]Read from MH i2c: F0 09 00 [01:20:35]MH_I2C_Read... [01:20:35]Read from MH i2c: F0 09 00 6C 1B 00 E5 26 76 66 BD 8F 7C 64 92 [01:20:35]GetLastDocTimeStamp 1719018909 [01:20:35]current date 1719019237 [01:20:35]FM_GetShiftState [01:20:35]SAM_PROTO_GetShiftState [01:20:35]wFMCommunicate request_size=4 [01:20:35]MH_SAM_APDU [01:20:35]CAPDU: 80 13 01 00 [01:20:35]Write to MH i2c: E2 08 00 6D 1B 80 13 01 00 00 00 00 00 05 [01:20:35]Write i2c OK [01:20:35]MH_I2C_Read... [01:20:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:20:35]Read from MH i2c: E2 [01:20:35]MH_I2C_Read... [01:20:35]Read from MH i2c: E2 0E 00 [01:20:35]MH_I2C_Read... [01:20:35]Read from MH i2c: E2 0E 00 6D 1B 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 F7 [01:20:35]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [01:20:35]wFMCommunicate OK [01:20:35]SAM_PROTO_GetShiftState done [01:20:35]FM_GetShiftState done [01:20:35]opened in 1719016176 [01:20:35]opened+sec_in_day 1719102576 [01:20:35]quantity*price = 30012 [01:20:35]sum+1 = 30014 [01:20:35]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 СНО: Общий режим Чек 7 22.06.2024 01:20 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104274 ФПД: 50849065261844 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T012037&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104274&fm=50849065261844&tin=02508201610067®Number=0000000000092785&sum=30000 [01:20:36]StoreToDocumentArchive [01:20:36]shift 356 fd 104274 [01:20:36]save to /storage/0356/doc_00104274 [01:20:36]save last doc name /storage/0356/doc_00104274 to /storage/kkm_last_doc_name [01:20:36]save OK [01:20:36]Clear old archive folders... [01:20:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:20:36]tlvbuf is B6F63470 [01:20:36]SAM_PROTO_ClearQueue [01:20:36]wFMCommunicate request_size=4 [01:20:36]MH_SAM_APDU [01:20:36]CAPDU: 80 09 00 00 [01:20:36]Write to MH i2c: E2 08 00 7A 1B 80 09 00 00 00 00 00 00 07 [01:20:36]Write i2c OK [01:20:36]MH_I2C_Read... [01:20:36]Read from MH i2c: E2 [01:20:36]MH_I2C_Read... [01:20:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:20:36]Read from MH i2c: E2 03 00 [01:20:36]MH_I2C_Read... [01:20:36]Read from MH i2c: E2 03 00 7A 1B 00 90 00 09 [01:20:36]RAPDU: 90 00 [01:20:36]wFMCommunicate OK [01:20:36]SAM_PROTO_ClearQueue done [01:20:36]KKMCreateOFDPacket [01:20:36]OFDProtocolAddRootSTLVToBuf [01:20:36]FM_MakeSignedData [01:20:36]FM_MakeSignedData [01:20:36]SAM_PROTO_SignData [01:20:36]wFMCommunicate request_size=4 [01:20:36]MH_SAM_APDU [01:20:36]CAPDU: 80 0D 01 02 [01:20:36]Write to MH i2c: E2 08 00 7B 1B 80 0D 01 02 00 00 00 00 0F [01:20:36]Write i2c OK [01:20:36]MH_I2C_Read... [01:20:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:20:36]Read from MH i2c: E2 [01:20:36]MH_I2C_Read... [01:20:36]Read from MH i2c: E2 03 00 [01:20:36]MH_I2C_Read... [01:20:36]Read from MH i2c: E2 03 00 7B 1B 00 90 00 0A [01:20:36]RAPDU: 90 00 [01:20:36]wFMCommunicate OK [01:20:36]wFMCommunicate request_size=255 [01:20:36]MH_SAM_APDU [01:20: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 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 07 00 00 00 F4 03 04 00 E5 26 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 52 97 01 00 35 04 06 00 2E [01:20:36]Write to MH i2c: E2 02 01 7C 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 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 07 00 00 00 F4 03 04 00 E5 26 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 52 97 01 00 35 04 06 00 2E 00 00 D2 [01:20:36]Write i2c OK [01:20:36]MH_I2C_Read... [01:20:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:20:36]Read from MH i2c: E2 [01:20:36]MH_I2C_Read... [01:20:36]Read from MH i2c: E2 03 00 [01:20:36]MH_I2C_Read... [01:20:36]Read from MH i2c: E2 03 00 7C 1B 00 90 00 0B [01:20:36]RAPDU: 90 00 [01:20:36]wFMCommunicate OK [01:20:36]wFMCommunicate request_size=10 [01:20:36]MH_SAM_APDU [01:20:36]CAPDU: 80 0D 02 02 05 3F 38 78 DB 14 [01:20:36]Write to MH i2c: E2 0D 00 7D 1B 80 0D 02 02 05 00 3F 38 78 DB 14 00 00 FA [01:20:36]Write i2c OK [01:20:36]MH_I2C_Read... [01:20:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:20:36]Read from MH i2c: E2 [01:20:36]MH_I2C_Read... [01:20:36]Read from MH i2c: E2 03 00 [01:20:36]MH_I2C_Read... [01:20:36]Read from MH i2c: E2 03 00 7D 1B 00 90 00 0C [01:20:36]RAPDU: 90 00 [01:20:36]wFMCommunicate OK [01:20:36]wFMCommunicate request_size=4 [01:20:36]MH_SAM_APDU [01:20:36]CAPDU: 80 0D 03 02 [01:20:36]Write to MH i2c: E2 08 00 7E 1B 80 0D 03 02 00 00 00 00 14 [01:20:36]Write i2c OK [01:20:36]MH_I2C_Read... [01:20:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:20:36]Read from MH i2c: E2 [01:20:36]MH_I2C_Read... [01:20:36]Read from MH i2c: E2 0B 00 [01:20:36]MH_I2C_Read... [01:20:36]Read from MH i2c: E2 0B 00 7E 1B 00 C8 2E ED 04 7E BC 2E 5B 90 00 BF [01:20:36]RAPDU: C8 2E ED 04 7E BC 2E 5B 90 00 [01:20:36]wFMCommunicate OK [01:20:36]SAM_PROTO_SignData done [01:20:36]FM_MakeSignedData done [01:20:36]CreateOFDProtocolMessage [01:20:36]wFMCommunicate request_size=4 [01:20:36]MH_SAM_APDU [01:20:36]CAPDU: 80 11 00 00 [01:20:36]Write to MH i2c: E2 08 00 7F 1B 80 11 00 00 00 00 00 00 14 [01:20:36]Write i2c OK [01:20:36]MH_I2C_Read... [01:20:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:20:36]Read from MH i2c: E2 [01:20:36]MH_I2C_Read... [01:20:36]Read from MH i2c: E2 17 00 [01:20:36]MH_I2C_Read... [01:20:36]Read from MH i2c: E2 17 00 7F 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 67 [01:20:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [01:20:36]wFMCommunicate OK [01:20:36]CreateOFDProtocolMessage done [01:20:36]OFDSenderStorePacket 104274 [01:20:36]StoreOFDPacket docnum=104274 [01:20: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 28 48 07 01 1F 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 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 07 00 00 00 F4 03 04 00 E5 26 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 52 97 01 00 35 04 06 00 2E 3F 38 78 DB 14 C8 2E ED 04 7E BC 2E 5B [01:20:36]CheckFolder [01:20:36]dirname=/storage/ofd_packets [01:20:36]CheckFolder done [01:20:36]ProducePacketName [01:20:36]name=ofd_packets/00104274 [01:20:36]NVStorageSaveData ofd_packets/00104274 [01:20:36]File name is /storage/ofd_packets/00104274 [01:20:36]Write 301 bytes [01:20:36]NVStorageSaveData done [01:20:36]OFDSenderStorePacket done [01:20:36]KKMCreateOFDPacket done [01:20:36]NVStorageSaveData kkm_last_timestamp [01:20:36]File name is /storage/kkm_last_timestamp [01:20:36]Write 4 bytes [01:20:36]NVStorageSaveData done [01:20:36]ExternCall_PrintAddStr [01:20:36]wPrintStart [01:20:36]Write to MH i2c: 01 00 00 80 1B 9B [01:20:36]Write i2c OK [01:20:36]MH_I2C_Read... [01:20:36]Read from MH i2c: 01 [01:20:36]MH_I2C_Read... [01:20:36]Read from MH i2c: 01 07 00 [01:20:36]MH_I2C_Read... [01:20:36]Read from MH i2c: 01 07 00 80 1B 00 00 00 00 00 FF 0F B0 [01:20:36]RasterBufferAndPrint [01:20:36]line Счет N : (1)673764 [01:20:36]line ИНН: 02508201610067 [01:20:36]line Контрольно-Кассовый Чек [01:20:36]line ПРОДАЖА [01:20:36]line ТРК (МРК, ГНК) : 42 [01:20:36]line Товар: 2710124130 [01:20:36]line Аи-92-К-5 [01:20:36]line 4.520 * 66.40 [01:20:36]line = 300.13 [01:20:36]line НДС 12% НСП 1% [01:20:36]line > о реализуемом товаре [01:20:36]line ОКРУГЛЕНИЕ: -0.13 [01:20:36]line ИТОГО: 300.00 [01:20:36]line Внесено: 300.00 [01:20:36]line СДАЧА: 0.00 [01:20:36]line НСП 1% : 2.66 [01:20:36]line НДС 12% : 31.87 [01:20:36]line Наличными: 300.00 [01:20:36]line Безнал.: 0.00 [01:20:36]line Место: АЗС № 120 "Партнер Нефть" [01:20:36]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [01:20:36]line СНО: Общий режим [01:20:36]line Чек 7 22.06.2024 01:20 [01:20:36]line Смена: 356 ФФД: 1.0 [01:20:36]line ЗНМ: 0300000164 [01:20:36]line РНМ: 0000000000092785 [01:20:36]line Версия ККМ: 001 [01:20:36]line ФМ: 0000000000875093 [01:20:36]line ФД: 104274 [01:20:36]line ФПД: 50849065261844 [01:20:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T012037&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104274&fm=50849065261844&tin=02508201610067®Number=0000000000092785&sum=30000 [01:20:37]OFD Sender: Processing packet 104274 [packets to send 17, broken 16] [01:20:37]ProducePacketName [01:20:37]name=ofd_packets/00104274 [01:20:37]OFD Sender: To server: pG, [01:20:37]CommunicateWithHost lk.salyk.kg:30040 [01:20:37]ConnectInit lk.salyk.kg [01:20:37]written 0, free lines is 4095 [01:20:37]Connected sock=11 [01:20: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 28 48 07 01 1F 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 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 07 00 00 00 F4 03 04 00 E5 26 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 52 97 01 00 35 04 06 00 2E 3F 38 78 DB 14 C8 2E ED 04 7E BC 2E 5B [01:20: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 AF 18 47 00 5F 5E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 52 97 01 00 F4 03 04 00 66 CD 75 66 B6 04 01 00 00 B6 08 93 7A FC 41 1E EA [01:20:37]CommunicateWithHost err = 0 [01:20:37]CheckOFDResponse [01:20:37]1017 (14) - 77093643461234 [01:20:37]1041 (16) - 0000000000875093 [01:20:37]1040 (4) - 104274 [01:20:37]1012 (4) - 21.06.2024 18:58 [01:20:37]1206 (1) - 0 [01:20:37]OFD Sender: Remove packet 104274 [01:20:37]ProducePacketName [01:20:37]name=ofd_packets/00104274 [01:20:37]NVStorageDeleteData [01:20:37]Write to MH i2c: 01 00 00 AB 1B C6 [01:20:37]Write i2c OK [01:20:37]MH_I2C_Read... [01:20:37]Read from MH i2c: 01 [01:20:37]MH_I2C_Read... [01:20:37]Read from MH i2c: 01 07 00 [01:20:37]MH_I2C_Read... [01:20:37]Read from MH i2c: 01 07 00 AB 1B 00 00 00 00 00 DF 0C B8 [01:20:37]RasterBufferAndPrint [01:20:37]line [01:20:37]line [01:20:37]line [01:20:37]line [01:20:37]line [01:20:37]written 0, free lines is 3301 [01:20:37]MH_Cut [01:20:37]Write to MH i2c: D1 01 00 B2 1B 01 9F [01:20:37]Write i2c OK [01:20:37]MH_I2C_Read... [01:20:37]Read from MH i2c: D1 [01:20:37]MH_I2C_Read... [01:20:37]Read from MH i2c: D1 01 00 [01:20:37]MH_I2C_Read... [01:20:37]Read from MH i2c: D1 01 00 B2 1B 00 9E [01:20:37]Write to MH i2c: 01 00 00 B3 1B CE [01:20:37]Write i2c OK [01:20:37]MH_I2C_Read... [01:20:38]OFD Sender: No OFD packet to send [01:20:38]*** Cut start [01:20:38]*** Partial cut [01:20:38]*** CUTSNS_PIN = 1 [01:20:38]*** CUTSNS_PIN = 0 [01:20:38]*** Brake cut motor [01:20:38]Read from MH i2c: 01 [01:20:38]MH_I2C_Read... [01:20:38]*** Stop cut motor [01:20:38]*** Cut end [01:20:38]Read from MH i2c: 01 07 00 [01:20:38]MH_I2C_Read... [01:20:38]Read from MH i2c: 01 07 00 B3 1B 00 00 00 00 00 FF 0F E3 [01:20:38]process_action close_receipt done [01:20:38]requested_data is exist [01:20:38]produce_requested_data [01:20:38]requested_item fm.sn is exist - process it [01:20:38]wFMCommunicate request_size=4 [01:20:38]MH_SAM_APDU [01:20:38]CAPDU: 80 11 00 00 [01:20:38]Write to MH i2c: E2 08 00 B4 1B 80 11 00 00 00 00 00 00 49 [01:20:38]Write i2c OK [01:20:38]MH_I2C_Read... [01:20:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:20:38]Read from MH i2c: E2 [01:20:38]MH_I2C_Read... [01:20:38]Read from MH i2c: E2 17 00 [01:20:38]MH_I2C_Read... [01:20:38]Read from MH i2c: E2 17 00 B4 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 9C [01:20:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [01:20:38]wFMCommunicate OK [01:20:38]requested_item fd.num is exist - process it [01:20:38]SAM_PROTO_GetFieldsCounters [01:20:38]wFMCommunicate request_size=4 [01:20:38]MH_SAM_APDU [01:20:38]CAPDU: 80 13 00 00 [01:20:38]Write to MH i2c: E2 08 00 B5 1B 80 13 00 00 00 00 00 00 4C [01:20:38]Write i2c OK [01:20:38]MH_I2C_Read... [01:20:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:20:39]Read from MH i2c: E2 [01:20:39]MH_I2C_Read... [01:20:39]Read from MH i2c: E2 62 00 [01:20:39]MH_I2C_Read... [01:20:39]Read from MH i2c: E2 62 00 B5 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 52 97 01 00 0E 04 04 00 64 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 D7 [01:20: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 52 97 01 00 0E 04 04 00 64 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:20:39]wFMCommunicate OK [01:20:39]SAM_PROTO_GetFieldsCounters done [01:20:39]requested_item shift.num is exist - process it [01:20:39]requested_item shift.opened is exist - process it [01:20:39]req_shift_opened [01:20:39]FM_GetShiftState [01:20:39]SAM_PROTO_GetShiftState [01:20:39]wFMCommunicate request_size=4 [01:20:39]MH_SAM_APDU [01:20:39]CAPDU: 80 13 01 00 [01:20:39]Write to MH i2c: E2 08 00 B6 1B 80 13 01 00 00 00 00 00 4E [01:20:39]Write i2c OK [01:20:39]MH_I2C_Read... [01:20:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:20:39]Read from MH i2c: E2 [01:20:39]MH_I2C_Read... [01:20:39]Read from MH i2c: E2 0E 00 [01:20:39]MH_I2C_Read... [01:20:39]Read from MH i2c: E2 0E 00 B6 1B 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 40 [01:20:39]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [01:20:39]wFMCommunicate OK [01:20:39]SAM_PROTO_GetShiftState done [01:20:39]FM_GetShiftState done [01:20:39]req_shift_opened done [01:20:39]requested_item shift.open_date is exist - process it [01:20:39]req_shift_open_date [01:20:39]req_shift_open_date done [01:20:39]produce_requested_data done [01:20:39]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104274,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [01:20:39]process_action_free close_receipt [01:20:39]json_value_free [01:20:39]json_value_free done [01:20:39]process_json_proto returns [01:20:39]Send response to host [01:20:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104274,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [01:20:39]free response buf [01:20:39]execute_script done [01:20:39]execute_script returns [01:20:39]free content buf [01:20:39]Sock 7.Close socket [01:20:39]Sock 7.Thread stoped [01:20:43]OFD Sender: No OFD packet to send [01:20:48]OFD Sender: No OFD packet to send [01:20:50]accept exits with 9 [01:20:50]New connection [01:20:50]New thread 3067473252 created [01:20:50]Thread 3067616612 joined [01:20:50]Waiting for new connection... [01:20:50] Sock 9.Parse request [01:20:50]Sock 9.Check first char [01:20:50]Sock 9.First char is OK [01:20:50]request: POST /json_proto HTTP/1.0 [01:20:50]Method: POST [01:20:50]URL: /json_proto [01:20:50]Method is POST - this is cgi request [01:20:50]url: /json_proto [01:20:50]query_string will be loaded in cgi processing [01:20:50]execute_cgi json_proto POST (null) [01:20:50]execute_cgi path=json_proto method=POST [01:20:50]POST find Content-Length [01:20:50]Host: 172.17.38.133:8080 [01:20:50]Content-Length: 682 [01:20:50]Content-Type: application/json [01:20:50] [01:20:50]POST finish read [01:20:50]Found Content-Length = 682 [01:20:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673765", "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" : 2.750, "sum" : 200.48, "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" ] } } [01:20:50]execute_script... [01:20: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)673765", "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" : 2.750, "sum" : 200.48, "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" ] } } [01:20:50]POST & json_proto [01:20:50]process_json_proto [01:20:50]json parsed OK: [01:20:50]protocol is kg_v1.0 [01:20:50]action value=close_receipt [01:20:50]process_action close_receipt [01:20:50]cmd_close_receipt [01:20:50]MH_GetDate [01:20:50]Write to MH i2c: F0 00 00 B7 1B C1 [01:20:50]Write i2c OK [01:20:50]MH_I2C_Read... [01:20:50]Read from MH i2c: F0 [01:20:50]MH_I2C_Read... [01:20:50]Read from MH i2c: F0 09 00 [01:20:50]MH_I2C_Read... [01:20:50]Read from MH i2c: F0 09 00 B7 1B 00 F4 26 76 66 BD 8F 7C 64 EC [01:20:50]GetLastDocTimeStamp 1719019237 [01:20:50]current date 1719019252 [01:20:50]FM_GetShiftState [01:20:50]SAM_PROTO_GetShiftState [01:20:50]wFMCommunicate request_size=4 [01:20:50]MH_SAM_APDU [01:20:50]CAPDU: 80 13 01 00 [01:20:50]Write to MH i2c: E2 08 00 B8 1B 80 13 01 00 00 00 00 00 50 [01:20:50]Write i2c OK [01:20:50]MH_I2C_Read... [01:20:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:20:50]Read from MH i2c: E2 [01:20:50]MH_I2C_Read... [01:20:50]Read from MH i2c: E2 0E 00 [01:20:50]MH_I2C_Read... [01:20:50]Read from MH i2c: E2 0E 00 B8 1B 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 42 [01:20:50]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [01:20:50]wFMCommunicate OK [01:20:50]SAM_PROTO_GetShiftState done [01:20:50]FM_GetShiftState done [01:20:50]opened in 1719016176 [01:20:50]opened+sec_in_day 1719102576 [01:20:50]quantity*price = 20047 [01:20:50]sum+1 = 20049 [01:20:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.48 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.29 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 8 22.06.2024 01:20 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104275 ФПД: 203794448287629 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T012052&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104275&fm=203794448287629&tin=02508201610067®Number=0000000000092785&sum=20000 [01:20:51]StoreToDocumentArchive [01:20:51]shift 356 fd 104275 [01:20:51]save to /storage/0356/doc_00104275 [01:20:51]save last doc name /storage/0356/doc_00104275 to /storage/kkm_last_doc_name [01:20:51]save OK [01:20:51]Clear old archive folders... [01:20:51]ProcessDocumentItem done err = 0, tmpTLVsize=252 [01:20:51]tlvbuf is B6F635C0 [01:20:51]SAM_PROTO_ClearQueue [01:20:51]wFMCommunicate request_size=4 [01:20:51]MH_SAM_APDU [01:20:51]CAPDU: 80 09 00 00 [01:20:51]Write to MH i2c: E2 08 00 C5 1B 80 09 00 00 00 00 00 00 52 [01:20:51]Write i2c OK [01:20:51]MH_I2C_Read... [01:20:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:20:51]Read from MH i2c: E2 [01:20:51]MH_I2C_Read... [01:20:51]Read from MH i2c: E2 03 00 [01:20:51]MH_I2C_Read... [01:20:51]Read from MH i2c: E2 03 00 C5 1B 00 90 00 54 [01:20:51]RAPDU: 90 00 [01:20:51]wFMCommunicate OK [01:20:51]SAM_PROTO_ClearQueue done [01:20:51]KKMCreateOFDPacket [01:20:51]OFDProtocolAddRootSTLVToBuf [01:20:51]FM_MakeSignedData [01:20:51]FM_MakeSignedData [01:20:51]SAM_PROTO_SignData [01:20:51]wFMCommunicate request_size=4 [01:20:51]MH_SAM_APDU [01:20:51]CAPDU: 80 0D 01 02 [01:20:51]Write to MH i2c: E2 08 00 C6 1B 80 0D 01 02 00 00 00 00 5A [01:20:51]Write i2c OK [01:20:51]MH_I2C_Read... [01:20:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:20:51]Read from MH i2c: E2 [01:20:51]MH_I2C_Read... [01:20:51]Read from MH i2c: E2 03 00 [01:20:51]MH_I2C_Read... [01:20:51]Read from MH i2c: E2 03 00 C6 1B 00 90 00 55 [01:20:51]RAPDU: 90 00 [01:20:51]wFMCommunicate OK [01:20:51]wFMCommunicate request_size=255 [01:20:51]MH_SAM_APDU [01:20: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 BE 0A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 50 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 08 00 00 00 F4 03 04 00 F4 26 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 [01:20:51]Write to MH i2c: E2 02 01 C7 1B 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 BE 0A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 50 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 08 00 00 00 F4 03 04 00 F4 26 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 00 00 D5 [01:20:51]Write i2c OK [01:20:51]MH_I2C_Read... [01:20:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:20:51]Read from MH i2c: E2 [01:20:51]MH_I2C_Read... [01:20:51]Read from MH i2c: E2 03 00 [01:20:51]MH_I2C_Read... [01:20:51]Read from MH i2c: E2 03 00 C7 1B 00 90 00 56 [01:20:51]RAPDU: 90 00 [01:20:51]wFMCommunicate OK [01:20:51]wFMCommunicate request_size=11 [01:20:51]MH_SAM_APDU [01:20:51]CAPDU: 80 0D 02 02 06 B9 59 97 B2 87 8D [01:20:51]Write to MH i2c: E2 0E 00 C8 1B 80 0D 02 02 06 00 B9 59 97 B2 87 8D 00 00 D8 [01:20:51]Write i2c OK [01:20:51]MH_I2C_Read... [01:20:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:20:51]Read from MH i2c: E2 [01:20:51]MH_I2C_Read... [01:20:51]Read from MH i2c: E2 03 00 [01:20:51]MH_I2C_Read... [01:20:51]Read from MH i2c: E2 03 00 C8 1B 00 90 00 57 [01:20:51]RAPDU: 90 00 [01:20:51]wFMCommunicate OK [01:20:51]wFMCommunicate request_size=4 [01:20:51]MH_SAM_APDU [01:20:51]CAPDU: 80 0D 03 02 [01:20:51]Write to MH i2c: E2 08 00 C9 1B 80 0D 03 02 00 00 00 00 5F [01:20:51]Write i2c OK [01:20:51]MH_I2C_Read... [01:20:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:20:51]Read from MH i2c: E2 [01:20:51]MH_I2C_Read... [01:20:51]Read from MH i2c: E2 0B 00 [01:20:51]MH_I2C_Read... [01:20:51]Read from MH i2c: E2 0B 00 C9 1B 00 89 E0 73 6D 74 44 2A 3E 90 00 C9 [01:20:51]RAPDU: 89 E0 73 6D 74 44 2A 3E 90 00 [01:20:51]wFMCommunicate OK [01:20:51]SAM_PROTO_SignData done [01:20:51]FM_MakeSignedData done [01:20:51]CreateOFDProtocolMessage [01:20:51]wFMCommunicate request_size=4 [01:20:51]MH_SAM_APDU [01:20:51]CAPDU: 80 11 00 00 [01:20:51]Write to MH i2c: E2 08 00 CA 1B 80 11 00 00 00 00 00 00 5F [01:20:51]Write i2c OK [01:20:51]MH_I2C_Read... [01:20:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:20:51]Read from MH i2c: E2 [01:20:51]MH_I2C_Read... [01:20:51]Read from MH i2c: E2 17 00 [01:20:51]MH_I2C_Read... [01:20:51]Read from MH i2c: E2 17 00 CA 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 B2 [01:20:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [01:20:51]wFMCommunicate OK [01:20:51]CreateOFDProtocolMessage done [01:20:51]OFDSenderStorePacket 104275 [01:20:51]StoreOFDPacket docnum=104275 [01:20: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 10 01 00 00 3C C8 08 01 B7 F0 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 BE 0A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 50 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 08 00 00 00 F4 03 04 00 F4 26 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 B9 59 97 B2 87 8D 89 E0 73 6D 74 44 2A 3E [01:20:51]CheckFolder [01:20:51]dirname=/storage/ofd_packets [01:20:51]CheckFolder done [01:20:51]ProducePacketName [01:20:51]name=ofd_packets/00104275 [01:20:51]NVStorageSaveData ofd_packets/00104275 [01:20:51]File name is /storage/ofd_packets/00104275 [01:20:51]Write 302 bytes [01:20:51]NVStorageSaveData done [01:20:51]OFDSenderStorePacket done [01:20:51]KKMCreateOFDPacket done [01:20:51]NVStorageSaveData kkm_last_timestamp [01:20:51]File name is /storage/kkm_last_timestamp [01:20:51]Write 4 bytes [01:20:51]NVStorageSaveData done [01:20:51]ExternCall_PrintAddStr [01:20:51]wPrintStart [01:20:51]Write to MH i2c: 01 00 00 CB 1B E6 [01:20:51]Write i2c OK [01:20:51]MH_I2C_Read... [01:20:51]Read from MH i2c: 01 [01:20:51]MH_I2C_Read... [01:20:51]Read from MH i2c: 01 07 00 [01:20:51]MH_I2C_Read... [01:20:51]Read from MH i2c: 01 07 00 CB 1B 00 00 00 00 00 FF 0F FB [01:20:51]RasterBufferAndPrint [01:20:51]line Счет N : (1)673765 [01:20:51]line ИНН: 02508201610067 [01:20:51]line Контрольно-Кассовый Чек [01:20:51]line ПРОДАЖА [01:20:51]line ТРК (МРК, ГНК) : 21 [01:20:51]line Товар: 2710194210 [01:20:51]line ДТ(л)-К-5 [01:20:51]line 2.750 * 72.90 [01:20:51]line = 200.48 [01:20:51]line НДС 12% НСП 1% [01:20:51]line > о реализуемом товаре [01:20:51]line ОКРУГЛЕНИЕ: -0.48 [01:20:51]line ИТОГО: 200.00 [01:20:51]line Внесено: 200.00 [01:20:51]line СДАЧА: 0.00 [01:20:51]line НСП 1% : 1.77 [01:20:51]line НДС 12% : 21.29 [01:20:51]line Наличными: 200.00 [01:20:51]line Безнал.: 0.00 [01:20:51]line Место: АЗС № 120 "Партнер Нефть" [01:20:51]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [01:20:51]line СНО: Общий режим [01:20:51]line Чек 8 22.06.2024 01:20 [01:20:51]line Смена: 356 ФФД: 1.0 [01:20:51]line ЗНМ: 0300000164 [01:20:51]line РНМ: 0000000000092785 [01:20:51]line Версия ККМ: 001 [01:20:51]line ФМ: 0000000000875093 [01:20:51]line ФД: 104275 [01:20:51]line ФПД: 203794448287629 [01:20:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T012052&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104275&fm=203794448287629&tin=02508201610067®Number=0000000000092785&sum=20000 [01:20:52]OFD Sender: Processing packet 104275 [packets to send 17, broken 16] [01:20:52]ProducePacketName [01:20:52]name=ofd_packets/00104275 [01:20:52]OFD Sender: To server: pG, [01:20:52]CommunicateWithHost lk.salyk.kg:30040 [01:20:52]ConnectInit lk.salyk.kg [01:20:52]written 0, free lines is 4095 [01:20:52]Connected sock=10 [01:20: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 3C C8 08 01 B7 F0 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 BE 0A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 50 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 08 00 00 00 F4 03 04 00 F4 26 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 B9 59 97 B2 87 8D 89 E0 73 6D 74 44 2A 3E [01:20: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 FB D9 47 00 96 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 53 97 01 00 F4 03 04 00 75 CD 75 66 B6 04 01 00 00 70 30 97 75 14 7B 28 EC [01:20:52]CommunicateWithHost err = 0 [01:20:52]CheckOFDResponse [01:20:52]1017 (14) - 77093643461234 [01:20:52]1041 (16) - 0000000000875093 [01:20:52]1040 (4) - 104275 [01:20:52]1012 (4) - 21.06.2024 18:59 [01:20:52]1206 (1) - 0 [01:20:52]OFD Sender: Remove packet 104275 [01:20:52]ProducePacketName [01:20:52]name=ofd_packets/00104275 [01:20:52]NVStorageDeleteData [01:20:52]Write to MH i2c: 01 00 00 F6 1B 11 [01:20:52]Write i2c OK [01:20:52]MH_I2C_Read... [01:20:52]Read from MH i2c: 01 [01:20:52]MH_I2C_Read... [01:20:52]Read from MH i2c: 01 07 00 [01:20:52]MH_I2C_Read... [01:20:52]Read from MH i2c: 01 07 00 F6 1B 00 00 00 00 00 F2 0C 16 [01:20:52]RasterBufferAndPrint [01:20:52]line [01:20:52]line [01:20:52]line [01:20:52]line [01:20:52]line [01:20:52]written 0, free lines is 3320 [01:20:52]MH_Cut [01:20:52]Write to MH i2c: D1 01 00 FD 1B 01 EA [01:20:52]Write i2c OK [01:20:52]MH_I2C_Read... [01:20:52]Read from MH i2c: D1 [01:20:52]MH_I2C_Read... [01:20:52]Read from MH i2c: D1 01 00 [01:20:52]MH_I2C_Read... [01:20:52]Read from MH i2c: D1 01 00 FD 1B 00 E9 [01:20:52]Write to MH i2c: 01 00 00 FE 1B 19 [01:20:52]Write i2c OK [01:20:52]MH_I2C_Read... [01:20:52]OFD Sender: No OFD packet to send [01:20:53]*** Cut start [01:20:53]*** Partial cut [01:20:53]*** CUTSNS_PIN = 1 [01:20:53]*** CUTSNS_PIN = 0 [01:20:53]*** Brake cut motor [01:20:53]Read from MH i2c: 01 [01:20:53]MH_I2C_Read... [01:20:53]*** Stop cut motor [01:20:53]*** Cut end [01:20:53]Read from MH i2c: 01 07 00 [01:20:53]MH_I2C_Read... [01:20:53]Read from MH i2c: 01 07 00 FE 1B 00 00 00 00 00 FF 0F 2E [01:20:53]process_action close_receipt done [01:20:53]requested_data is exist [01:20:53]produce_requested_data [01:20:53]requested_item fm.sn is exist - process it [01:20:53]wFMCommunicate request_size=4 [01:20:53]MH_SAM_APDU [01:20:53]CAPDU: 80 11 00 00 [01:20:53]Write to MH i2c: E2 08 00 FF 1B 80 11 00 00 00 00 00 00 94 [01:20:53]Write i2c OK [01:20:53]MH_I2C_Read... [01:20:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:20:53]Read from MH i2c: E2 [01:20:53]MH_I2C_Read... [01:20:53]Read from MH i2c: E2 17 00 [01:20:53]MH_I2C_Read... [01:20:53]Read from MH i2c: E2 17 00 FF 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 E7 [01:20:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [01:20:53]wFMCommunicate OK [01:20:53]requested_item fd.num is exist - process it [01:20:53]SAM_PROTO_GetFieldsCounters [01:20:53]wFMCommunicate request_size=4 [01:20:53]MH_SAM_APDU [01:20:53]CAPDU: 80 13 00 00 [01:20:53]Write to MH i2c: E2 08 00 00 1C 80 13 00 00 00 00 00 00 98 [01:20:53]Write i2c OK [01:20:53]MH_I2C_Read... [01:20:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:20:54]Read from MH i2c: E2 [01:20:54]MH_I2C_Read... [01:20:54]Read from MH i2c: E2 62 00 [01:20:54]MH_I2C_Read... [01:20:54]Read from MH i2c: E2 62 00 00 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 53 97 01 00 0E 04 04 00 64 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 27 [01:20: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 53 97 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:20:54]wFMCommunicate OK [01:20:54]SAM_PROTO_GetFieldsCounters done [01:20:54]requested_item shift.num is exist - process it [01:20:54]requested_item shift.opened is exist - process it [01:20:54]req_shift_opened [01:20:54]FM_GetShiftState [01:20:54]SAM_PROTO_GetShiftState [01:20:54]wFMCommunicate request_size=4 [01:20:54]MH_SAM_APDU [01:20:54]CAPDU: 80 13 01 00 [01:20:54]Write to MH i2c: E2 08 00 01 1C 80 13 01 00 00 00 00 00 9A [01:20:54]Write i2c OK [01:20:54]MH_I2C_Read... [01:20:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:20:54]Read from MH i2c: E2 [01:20:54]MH_I2C_Read... [01:20:54]Read from MH i2c: E2 0E 00 [01:20:54]MH_I2C_Read... [01:20:54]Read from MH i2c: E2 0E 00 01 1C 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 8C [01:20:54]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [01:20:54]wFMCommunicate OK [01:20:54]SAM_PROTO_GetShiftState done [01:20:54]FM_GetShiftState done [01:20:54]req_shift_opened done [01:20:54]requested_item shift.open_date is exist - process it [01:20:54]req_shift_open_date [01:20:54]req_shift_open_date done [01:20:54]produce_requested_data done [01:20:54]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104275,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [01:20:54]process_action_free close_receipt [01:20:54]json_value_free [01:20:54]json_value_free done [01:20:54]process_json_proto returns [01:20:54]Send response to host [01:20:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104275,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [01:20:54]free response buf [01:20:54]execute_script done [01:20:54]execute_script returns [01:20:54]free content buf [01:20:54]Sock 9.Close socket [01:20:54]Sock 9.Thread stoped [01:20:57]OFD Sender: No OFD packet to send [01:21:02]OFD Sender: No OFD packet to send [01:21:07]OFD Sender: No OFD packet to send [01:21:12]OFD Sender: No OFD packet to send [01:21:17]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:38]OFD Sender: No OFD packet to send [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:53]OFD Sender: No OFD packet to send [01:23:58]OFD Sender: No OFD packet to send [01:24:03]OFD Sender: No OFD packet to send [01:24:08]OFD Sender: No OFD packet to send [01:24:13]OFD Sender: No OFD packet to send [01:24:18]OFD Sender: No OFD packet to send [01:24:23]OFD Sender: No OFD packet to send [01:24:28]OFD Sender: No OFD packet to send [01:24:33]OFD Sender: No OFD packet to send [01:24:38]OFD Sender: No OFD packet to send [01:24:43]OFD Sender: No OFD packet to send [01:24:48]OFD Sender: No OFD packet to send [01:24:53]OFD Sender: No OFD packet to send [01:24:58]OFD Sender: No OFD packet to send [01:25:03]OFD Sender: No OFD packet to send [01:25:08]OFD Sender: No OFD packet to send [01:25:13]OFD Sender: No OFD packet to send [01:25:18]OFD Sender: No OFD packet to send [01:25:23]OFD Sender: No OFD packet to send [01:25:27]accept exits with 7 [01:25:27]New connection [01:25:27]New thread 3067616612 created [01:25:27]Thread 3067473252 joined [01:25:27]Waiting for new connection... [01:25:27] Sock 7.Parse request [01:25:27]Sock 7.Check first char [01:25:27]Sock 7.First char is OK [01:25:27]request: POST /json_proto HTTP/1.0 [01:25:27]Method: POST [01:25:27]URL: /json_proto [01:25:27]Method is POST - this is cgi request [01:25:27]url: /json_proto [01:25:27]query_string will be loaded in cgi processing [01:25:27]execute_cgi json_proto POST (null) [01:25:27]execute_cgi path=json_proto method=POST [01:25:27]POST find Content-Length [01:25:27]Host: 172.17.38.133:8080 [01:25:27]Content-Length: 687 [01:25:27]Content-Type: application/json [01:25:27] [01:25:27]POST finish read [01:25:27]Found Content-Length = 687 [01:25:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673766", "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" : 48.020, "sum" : 3500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3500.00, "total" : 3500.00, "payments": [ { "type": 0, "sum" : 3500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:25:27]execute_script... [01: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)673766", "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" : 48.020, "sum" : 3500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3500.00, "total" : 3500.00, "payments": [ { "type": 0, "sum" : 3500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:25:27]POST & json_proto [01:25:27]process_json_proto [01:25:27]json parsed OK: [01:25:27]protocol is kg_v1.0 [01:25:27]action value=close_receipt [01:25:27]process_action close_receipt [01:25:27]cmd_close_receipt [01:25:27]MH_GetDate [01:25:27]Write to MH i2c: F0 00 00 02 1C 0D [01:25:27]Write i2c OK [01:25:27]MH_I2C_Read... [01:25:27]Read from MH i2c: F0 [01:25:27]MH_I2C_Read... [01:25:27]Read from MH i2c: F0 09 00 [01:25:27]MH_I2C_Read... [01:25:27]Read from MH i2c: F0 09 00 02 1C 00 09 28 76 66 BD 8F 7C 64 4F [01:25:27]GetLastDocTimeStamp 1719019252 [01:25:27]current date 1719019529 [01:25:27]FM_GetShiftState [01:25:27]SAM_PROTO_GetShiftState [01:25:27]wFMCommunicate request_size=4 [01:25:27]MH_SAM_APDU [01:25:27]CAPDU: 80 13 01 00 [01:25:27]Write to MH i2c: E2 08 00 03 1C 80 13 01 00 00 00 00 00 9C [01:25:27]Write i2c OK [01:25:27]MH_I2C_Read... [01:25:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:25:27]Read from MH i2c: E2 [01:25:27]MH_I2C_Read... [01:25:27]Read from MH i2c: E2 0E 00 [01:25:27]MH_I2C_Read... [01:25:27]Read from MH i2c: E2 0E 00 03 1C 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 8E [01:25:27]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [01:25:27]wFMCommunicate OK [01:25:27]SAM_PROTO_GetShiftState done [01:25:27]FM_GetShiftState done [01:25:27]opened in 1719016176 [01:25:27]opened+sec_in_day 1719102576 [01:25:27]quantity*price = 350065 [01:25:27]sum+1 = 350067 [01:25:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 3500.00 Внесено: 3500.00 СДАЧА: 0.00 НСП 1% : 30.98 НДС 12% : 371.75 Наличными: 3500.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 9 22.06.2024 01:25 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104276 ФПД: 167831793677851 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T012529&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104276&fm=167831793677851&tin=02508201610067®Number=0000000000092785&sum=350000 [01:25:28]StoreToDocumentArchive [01:25:28]shift 356 fd 104276 [01:25:28]save to /storage/0356/doc_00104276 [01:25:28]save last doc name /storage/0356/doc_00104276 to /storage/kkm_last_doc_name [01:25:28]save OK [01:25:28]Clear old archive folders... [01:25:28]ProcessDocumentItem done err = 0, tmpTLVsize=252 [01:25:28]tlvbuf is 006C8670 [01:25:28]SAM_PROTO_ClearQueue [01:25:28]wFMCommunicate request_size=4 [01:25:28]MH_SAM_APDU [01:25:28]CAPDU: 80 09 00 00 [01:25:28]Write to MH i2c: E2 08 00 10 1C 80 09 00 00 00 00 00 00 9E [01:25:28]Write i2c OK [01:25:28]MH_I2C_Read... [01:25:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:25:28]Read from MH i2c: E2 [01:25:28]MH_I2C_Read... [01:25:28]Read from MH i2c: E2 03 00 [01:25:28]MH_I2C_Read... [01:25:28]Read from MH i2c: E2 03 00 10 1C 00 90 00 A0 [01:25:28]RAPDU: 90 00 [01:25:28]wFMCommunicate OK [01:25:28]SAM_PROTO_ClearQueue done [01:25:28]KKMCreateOFDPacket [01:25:28]OFDProtocolAddRootSTLVToBuf [01:25:28]FM_MakeSignedData [01:25:28]FM_MakeSignedData [01:25:28]SAM_PROTO_SignData [01:25:28]wFMCommunicate request_size=4 [01:25:28]MH_SAM_APDU [01:25:28]CAPDU: 80 0D 01 02 [01:25:28]Write to MH i2c: E2 08 00 11 1C 80 0D 01 02 00 00 00 00 A6 [01:25:28]Write i2c OK [01:25:28]MH_I2C_Read... [01:25:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:25:28]Read from MH i2c: E2 [01:25:28]MH_I2C_Read... [01:25:28]Read from MH i2c: E2 03 00 [01:25:28]MH_I2C_Read... [01:25:28]Read from MH i2c: E2 03 00 11 1C 00 90 00 A1 [01:25:28]RAPDU: 90 00 [01:25:28]wFMCommunicate OK [01:25:28]wFMCommunicate request_size=255 [01:25:28]MH_SAM_APDU [01:25:28]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 94 BB 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 72 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 91 00 00 00 00 07 04 06 00 30 57 05 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 09 28 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 [01:25:28]Write to MH i2c: E2 02 01 12 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 94 BB 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 72 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 91 00 00 00 00 07 04 06 00 30 57 05 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 09 28 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 00 00 11 [01:25:28]Write i2c OK [01:25:28]MH_I2C_Read... [01:25:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:25:28]Read from MH i2c: E2 [01:25:28]MH_I2C_Read... [01:25:28]Read from MH i2c: E2 03 00 [01:25:28]MH_I2C_Read... [01:25:28]Read from MH i2c: E2 03 00 12 1C 00 90 00 A2 [01:25:28]RAPDU: 90 00 [01:25:28]wFMCommunicate OK [01:25:28]wFMCommunicate request_size=11 [01:25:28]MH_SAM_APDU [01:25:28]CAPDU: 80 0D 02 02 06 98 A4 62 71 B6 1B [01:25:28]Write to MH i2c: E2 0E 00 13 1C 80 0D 02 02 06 00 98 A4 62 71 B6 1B 00 00 95 [01:25:28]Write i2c OK [01:25:28]MH_I2C_Read... [01:25:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:25:28]Read from MH i2c: E2 [01:25:28]MH_I2C_Read... [01:25:28]Read from MH i2c: E2 03 00 [01:25:28]MH_I2C_Read... [01:25:28]Read from MH i2c: E2 03 00 13 1C 00 90 00 A3 [01:25:28]RAPDU: 90 00 [01:25:28]wFMCommunicate OK [01:25:28]wFMCommunicate request_size=4 [01:25:28]MH_SAM_APDU [01:25:28]CAPDU: 80 0D 03 02 [01:25:28]Write to MH i2c: E2 08 00 14 1C 80 0D 03 02 00 00 00 00 AB [01:25:28]Write i2c OK [01:25:28]MH_I2C_Read... [01:25:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:25:28]Read from MH i2c: E2 [01:25:28]MH_I2C_Read... [01:25:28]Read from MH i2c: E2 0B 00 [01:25:28]MH_I2C_Read... [01:25:28]Read from MH i2c: E2 0B 00 14 1C 00 D6 B1 A0 9C 7C 0F 83 76 90 00 F3 [01:25:28]RAPDU: D6 B1 A0 9C 7C 0F 83 76 90 00 [01:25:28]wFMCommunicate OK [01:25:28]SAM_PROTO_SignData done [01:25:28]FM_MakeSignedData done [01:25:28]CreateOFDProtocolMessage [01:25:28]wFMCommunicate request_size=4 [01:25:28]MH_SAM_APDU [01:25:28]CAPDU: 80 11 00 00 [01:25:28]Write to MH i2c: E2 08 00 15 1C 80 11 00 00 00 00 00 00 AB [01:25:28]Write i2c OK [01:25:28]MH_I2C_Read... [01:25:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:25:28]Read from MH i2c: E2 [01:25:28]MH_I2C_Read... [01:25:28]Read from MH i2c: E2 17 00 [01:25:28]MH_I2C_Read... [01:25:28]Read from MH i2c: E2 17 00 15 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 FE [01: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 [01:25:28]wFMCommunicate OK [01:25:28]CreateOFDProtocolMessage done [01:25:28]OFDSenderStorePacket 104276 [01:25:28]StoreOFDPacket docnum=104276 [01:25: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 10 01 00 00 7A B8 08 01 76 4E 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 94 BB 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 72 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 91 00 00 00 00 07 04 06 00 30 57 05 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 09 28 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 98 A4 62 71 B6 1B D6 B1 A0 9C 7C 0F 83 76 [01:25:28]CheckFolder [01:25:28]dirname=/storage/ofd_packets [01:25:28]CheckFolder done [01:25:28]ProducePacketName [01:25:28]name=ofd_packets/00104276 [01:25:28]NVStorageSaveData ofd_packets/00104276 [01:25:28]File name is /storage/ofd_packets/00104276 [01:25:28]Write 302 bytes [01:25:28]NVStorageSaveData done [01:25:28]OFDSenderStorePacket done [01:25:28]KKMCreateOFDPacket done [01:25:28]NVStorageSaveData kkm_last_timestamp [01:25:28]File name is /storage/kkm_last_timestamp [01:25:28]Write 4 bytes [01:25:28]NVStorageSaveData done [01:25:28]ExternCall_PrintAddStr [01:25:28]wPrintStart [01:25:28]Write to MH i2c: 01 00 00 16 1C 32 [01:25:28]Write i2c OK [01:25:28]MH_I2C_Read... [01:25:28]Read from MH i2c: 01 [01:25:28]MH_I2C_Read... [01:25:28]Read from MH i2c: 01 07 00 [01:25:28]MH_I2C_Read... [01:25:28]Read from MH i2c: 01 07 00 16 1C 00 00 00 00 00 FF 0F 47 [01:25:28]RasterBufferAndPrint [01:25:28]line Счет N : (1)673766 [01:25:28]line ИНН: 02508201610067 [01:25:28]line Контрольно-Кассовый Чек [01:25:28]line ПРОДАЖА [01:25:28]line ТРК (МРК, ГНК) : 21 [01:25:28]line Товар: 2710194210 [01:25:28]line ДТ(л)-К-5 [01:25:28]line 48.020 * 72.90 [01:25:28]line = 3500.66 [01:25:28]line НДС 12% НСП 1% [01:25:28]line > о реализуемом товаре [01:25:28]line ОКРУГЛЕНИЕ: -0.66 [01:25:28]line ИТОГО: 3500.00 [01:25:28]line Внесено: 3500.00 [01:25:28]line СДАЧА: 0.00 [01:25:28]line НСП 1% : 30.98 [01:25:28]line НДС 12% : 371.75 [01:25:28]line Наличными: 3500.00 [01:25:28]line Безнал.: 0.00 [01:25:28]line Место: АЗС № 120 "Партнер Нефть" [01:25:28]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [01:25:28]line СНО: Общий режим [01:25:28]line Чек 9 22.06.2024 01:25 [01:25:28]line Смена: 356 ФФД: 1.0 [01:25:28]line ЗНМ: 0300000164 [01:25:28]line РНМ: 0000000000092785 [01:25:28]line Версия ККМ: 001 [01:25:28]line ФМ: 0000000000875093 [01:25:28]line ФД: 104276 [01:25:28]line ФПД: 167831793677851 [01:25:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T012529&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104276&fm=167831793677851&tin=02508201610067®Number=0000000000092785&sum=350000 [01:25:29]OFD Sender: Processing packet 104276 [packets to send 17, broken 16] [01:25:29]ProducePacketName [01:25:29]name=ofd_packets/00104276 [01:25:29]OFD Sender: To server: pG, [01:25:29]CommunicateWithHost lk.salyk.kg:30040 [01:25:29]ConnectInit lk.salyk.kg [01:25:29]written 0, free lines is 4095 [01:25:29]Connected sock=10 [01: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 10 01 00 00 7A B8 08 01 76 4E 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 94 BB 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 72 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 91 00 00 00 00 07 04 06 00 30 57 05 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 09 28 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 98 A4 62 71 B6 1B D6 B1 A0 9C 7C 0F 83 76 [01: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 AC 96 47 00 44 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 54 97 01 00 F4 03 04 00 8A CE 75 66 B6 04 01 00 00 62 F8 80 91 ED A5 05 FE [01:25:29]CommunicateWithHost err = 0 [01:25:29]CheckOFDResponse [01:25:29]1017 (14) - 77093643461234 [01:25:29]1041 (16) - 0000000000875093 [01:25:29]1040 (4) - 104276 [01:25:29]1012 (4) - 21.06.2024 19:03 [01:25:29]1206 (1) - 0 [01:25:29]OFD Sender: Remove packet 104276 [01:25:29]ProducePacketName [01:25:29]name=ofd_packets/00104276 [01:25:29]NVStorageDeleteData [01:25:29]Write to MH i2c: 01 00 00 41 1C 5D [01:25:29]Write i2c OK [01:25:29]MH_I2C_Read... [01:25:29]Read from MH i2c: 01 [01:25:29]MH_I2C_Read... [01:25:29]Read from MH i2c: 01 07 00 [01:25:29]MH_I2C_Read... [01:25:29]Read from MH i2c: 01 07 00 41 1C 00 00 00 00 00 D9 0C 49 [01:25:29]RasterBufferAndPrint [01:25:29]line [01:25:29]line [01:25:29]line [01:25:29]line [01:25:29]line [01:25:29]written 0, free lines is 3296 [01:25:29]MH_Cut [01:25:29]Write to MH i2c: D1 01 00 48 1C 01 36 [01:25:29]Write i2c OK [01:25:29]MH_I2C_Read... [01:25:29]Read from MH i2c: D1 [01:25:29]MH_I2C_Read... [01:25:29]Read from MH i2c: D1 01 00 [01:25:29]MH_I2C_Read... [01:25:29]Read from MH i2c: D1 01 00 48 1C 00 35 [01:25:29]Write to MH i2c: 01 00 00 49 1C 65 [01:25:29]Write i2c OK [01:25:29]MH_I2C_Read... [01:25:30]OFD Sender: No OFD packet to send [01:25:30]*** Cut start [01:25:30]*** Partial cut [01:25:30]*** CUTSNS_PIN = 1 [01:25:30]*** CUTSNS_PIN = 0 [01:25:30]*** Brake cut motor [01:25:31]Read from MH i2c: 01 [01:25:31]MH_I2C_Read... [01:25:31]*** Stop cut motor [01:25:31]*** Cut end [01:25:31]Read from MH i2c: 01 07 00 [01:25:31]MH_I2C_Read... [01:25:31]Read from MH i2c: 01 07 00 49 1C 00 00 00 00 00 FF 0F 7A [01:25:31]process_action close_receipt done [01:25:31]requested_data is exist [01:25:31]produce_requested_data [01:25:31]requested_item fm.sn is exist - process it [01:25:31]wFMCommunicate request_size=4 [01:25:31]MH_SAM_APDU [01:25:31]CAPDU: 80 11 00 00 [01:25:31]Write to MH i2c: E2 08 00 4A 1C 80 11 00 00 00 00 00 00 E0 [01:25:31]Write i2c OK [01:25:31]MH_I2C_Read... [01:25:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:25:31]Read from MH i2c: E2 [01:25:31]MH_I2C_Read... [01:25:31]Read from MH i2c: E2 17 00 [01:25:31]MH_I2C_Read... [01:25:31]Read from MH i2c: E2 17 00 4A 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 33 [01: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 [01:25:31]wFMCommunicate OK [01:25:31]requested_item fd.num is exist - process it [01:25:31]SAM_PROTO_GetFieldsCounters [01:25:31]wFMCommunicate request_size=4 [01:25:31]MH_SAM_APDU [01:25:31]CAPDU: 80 13 00 00 [01:25:31]Write to MH i2c: E2 08 00 4B 1C 80 13 00 00 00 00 00 00 E3 [01:25:31]Write i2c OK [01:25:31]MH_I2C_Read... [01:25:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:25:31]Read from MH i2c: E2 [01:25:31]MH_I2C_Read... [01:25:31]Read from MH i2c: E2 62 00 [01:25:31]MH_I2C_Read... [01:25:31]Read from MH i2c: E2 62 00 4B 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 54 97 01 00 0E 04 04 00 64 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 76 [01: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 54 97 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:25:31]wFMCommunicate OK [01:25:31]SAM_PROTO_GetFieldsCounters done [01:25:31]requested_item shift.num is exist - process it [01:25:31]requested_item shift.opened is exist - process it [01:25:31]req_shift_opened [01:25:31]FM_GetShiftState [01:25:31]SAM_PROTO_GetShiftState [01:25:31]wFMCommunicate request_size=4 [01:25:31]MH_SAM_APDU [01:25:31]CAPDU: 80 13 01 00 [01:25:31]Write to MH i2c: E2 08 00 4C 1C 80 13 01 00 00 00 00 00 E5 [01:25:31]Write i2c OK [01:25:31]MH_I2C_Read... [01:25:31]Read from MH i2c: E2 [01:25:31]MH_I2C_Read... [01:25:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:25:31]Read from MH i2c: E2 0E 00 [01:25:31]MH_I2C_Read... [01:25:31]Read from MH i2c: E2 0E 00 4C 1C 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 D7 [01:25:31]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [01:25:31]wFMCommunicate OK [01:25:31]SAM_PROTO_GetShiftState done [01:25:31]FM_GetShiftState done [01:25:31]req_shift_opened done [01:25:31]requested_item shift.open_date is exist - process it [01:25:31]req_shift_open_date [01:25:31]req_shift_open_date done [01:25:31]produce_requested_data done [01:25:31]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104276,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [01:25:31]process_action_free close_receipt [01:25:31]json_value_free [01:25:31]json_value_free done [01:25:31]process_json_proto returns [01:25:31]Send response to host [01:25:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104276,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [01:25:31]free response buf [01:25:31]execute_script done [01:25:31]execute_script returns [01:25:31]free content buf [01:25:31]Sock 7.Close socket [01:25:31]Sock 7.Thread stoped [01:25:35]OFD Sender: No OFD packet to send [01:25:40]OFD Sender: No OFD packet to send [01:25:45]OFD Sender: No OFD packet to send [01:25:50]OFD Sender: No OFD packet to send [01:25:55]OFD Sender: No OFD packet to send [01:26:00]OFD Sender: No OFD packet to send [01:26:05]OFD Sender: No OFD packet to send [01:26:10]OFD Sender: No OFD packet to send [01:26:15]OFD Sender: No OFD packet to send [01:26:20]OFD Sender: No OFD packet to send [01:26:25]OFD Sender: No OFD packet to send [01:26:30]OFD Sender: No OFD packet to send [01:26:35]OFD Sender: No OFD packet to send [01:26:40]OFD Sender: No OFD packet to send [01:26:45]OFD Sender: No OFD packet to send [01:26:50]OFD Sender: No OFD packet to send [01:26:54]accept exits with 9 [01:26:54]New connection [01:26:54]New thread 3067473252 created [01:26:54]Thread 3067616612 joined [01:26:54]Waiting for new connection... [01:26:54] Sock 9.Parse request [01:26:54]Sock 9.Check first char [01:26:54]Sock 9.First char is OK [01:26:54]request: POST /json_proto HTTP/1.0 [01:26:54]Method: POST [01:26:54]URL: /json_proto [01:26:54]Method is POST - this is cgi request [01:26:54]url: /json_proto [01:26:54]query_string will be loaded in cgi processing [01:26:54]execute_cgi json_proto POST (null) [01:26:54]execute_cgi path=json_proto method=POST [01:26:54]POST find Content-Length [01:26:54]Host: 172.17.38.133:8080 [01:26:54]Content-Length: 692 [01:26:54]Content-Type: application/json [01:26:54] [01:26:54]POST finish read [01:26:54]Found Content-Length = 692 [01:26:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673763", "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" : 195.930, "sum" : 14283.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 15000.00, "total" : 14283.00, "payments": [ { "type": 0, "sum" : 14283.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:26:54]execute_script... [01:26:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673763", "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" : 195.930, "sum" : 14283.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 15000.00, "total" : 14283.00, "payments": [ { "type": 0, "sum" : 14283.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:26:54]POST & json_proto [01:26:54]process_json_proto [01:26:54]json parsed OK: [01:26:54]protocol is kg_v1.0 [01:26:54]action value=close_receipt [01:26:54]process_action close_receipt [01:26:54]cmd_close_receipt [01:26:54]MH_GetDate [01:26:54]Write to MH i2c: F0 00 00 4D 1C 58 [01:26:54]Write i2c OK [01:26:54]MH_I2C_Read... [01:26:54]Read from MH i2c: F0 [01:26:54]MH_I2C_Read... [01:26:54]Read from MH i2c: F0 09 00 [01:26:54]MH_I2C_Read... [01:26:54]Read from MH i2c: F0 09 00 4D 1C 00 60 28 76 66 BD 8F 7C 64 F1 [01:26:54]GetLastDocTimeStamp 1719019529 [01:26:54]current date 1719019616 [01:26:54]FM_GetShiftState [01:26:54]SAM_PROTO_GetShiftState [01:26:54]wFMCommunicate request_size=4 [01:26:54]MH_SAM_APDU [01:26:54]CAPDU: 80 13 01 00 [01:26:54]Write to MH i2c: E2 08 00 4E 1C 80 13 01 00 00 00 00 00 E7 [01:26:54]Write i2c OK [01:26:54]MH_I2C_Read... [01:26:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:26:54]Read from MH i2c: E2 [01:26:54]MH_I2C_Read... [01:26:54]Read from MH i2c: E2 0E 00 [01:26:54]MH_I2C_Read... [01:26:54]Read from MH i2c: E2 0E 00 4E 1C 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 D9 [01:26:54]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [01:26:54]wFMCommunicate OK [01:26:54]SAM_PROTO_GetShiftState done [01:26:54]FM_GetShiftState done [01:26:54]opened in 1719016176 [01:26:54]opened+sec_in_day 1719102576 [01:26:54]quantity*price = 1428329 [01:26:54]sum+1 = 1428331 [01:26:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.30 ИТОГО: 14283.00 Внесено: 15000.00 СДАЧА: 717.00 НСП 1% : 126.40 НДС 12% : 1516.81 Наличными: 14283.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 10 22.06.2024 01:26 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104277 ФПД: 129546592154927 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T012656&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104277&fm=129546592154927&tin=02508201610067®Number=0000000000092785&sum=1428300 [01:26:55]StoreToDocumentArchive [01:26:55]shift 356 fd 104277 [01:26:55]save to /storage/0356/doc_00104277 [01:26:55]save last doc name /storage/0356/doc_00104277 to /storage/kkm_last_doc_name [01:26:55]save OK [01:26:55]Clear old archive folders... [01:26:55]ProcessDocumentItem done err = 0, tmpTLVsize=252 [01:26:55]tlvbuf is 006416F0 [01:26:55]SAM_PROTO_ClearQueue [01:26:55]wFMCommunicate request_size=4 [01:26:55]MH_SAM_APDU [01:26:55]CAPDU: 80 09 00 00 [01:26:55]Write to MH i2c: E2 08 00 5B 1C 80 09 00 00 00 00 00 00 E9 [01:26:55]Write i2c OK [01:26:55]MH_I2C_Read... [01:26:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:26:55]Read from MH i2c: E2 [01:26:55]MH_I2C_Read... [01:26:55]Read from MH i2c: E2 03 00 [01:26:55]MH_I2C_Read... [01:26:55]Read from MH i2c: E2 03 00 5B 1C 00 90 00 EB [01:26:55]RAPDU: 90 00 [01:26:55]wFMCommunicate OK [01:26:55]SAM_PROTO_ClearQueue done [01:26:55]KKMCreateOFDPacket [01:26:55]OFDProtocolAddRootSTLVToBuf [01:26:55]FM_MakeSignedData [01:26:55]FM_MakeSignedData [01:26:55]SAM_PROTO_SignData [01:26:55]wFMCommunicate request_size=4 [01:26:55]MH_SAM_APDU [01:26:55]CAPDU: 80 0D 01 02 [01:26:55]Write to MH i2c: E2 08 00 5C 1C 80 0D 01 02 00 00 00 00 F1 [01:26:55]Write i2c OK [01:26:55]MH_I2C_Read... [01:26:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:26:55]Read from MH i2c: E2 [01:26:55]MH_I2C_Read... [01:26:55]Read from MH i2c: E2 03 00 [01:26:55]MH_I2C_Read... [01:26:55]Read from MH i2c: E2 03 00 5C 1C 00 90 00 EC [01:26:55]RAPDU: 90 00 [01:26:55]wFMCommunicate OK [01:26:55]wFMCommunicate request_size=255 [01:26:55]MH_SAM_APDU [01:26: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 5A FD 02 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 6A CB 15 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C CB 15 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 60 31 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 50 02 00 00 00 07 04 06 00 4C CB 15 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 60 28 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 [01:26:55]Write to MH i2c: E2 02 01 5D 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 5A FD 02 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 6A CB 15 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C CB 15 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 60 31 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 50 02 00 00 00 07 04 06 00 4C CB 15 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 60 28 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 00 00 F1 [01:26:55]Write i2c OK [01:26:55]MH_I2C_Read... [01:26:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:26:55]Read from MH i2c: E2 [01:26:55]MH_I2C_Read... [01:26:55]Read from MH i2c: E2 03 00 [01:26:55]MH_I2C_Read... [01:26:55]Read from MH i2c: E2 03 00 5D 1C 00 90 00 ED [01:26:55]RAPDU: 90 00 [01:26:55]wFMCommunicate OK [01:26:55]wFMCommunicate request_size=11 [01:26:55]MH_SAM_APDU [01:26:55]CAPDU: 80 0D 02 02 06 75 D2 6A 9B 75 2F [01:26:55]Write to MH i2c: E2 0E 00 5E 1C 80 0D 02 02 06 00 75 D2 6A 9B 75 2F 00 00 F0 [01:26:55]Write i2c OK [01:26:55]MH_I2C_Read... [01:26:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:26:55]Read from MH i2c: E2 [01:26:55]MH_I2C_Read... [01:26:55]Read from MH i2c: E2 03 00 [01:26:55]MH_I2C_Read... [01:26:55]Read from MH i2c: E2 03 00 5E 1C 00 90 00 EE [01:26:55]RAPDU: 90 00 [01:26:55]wFMCommunicate OK [01:26:55]wFMCommunicate request_size=4 [01:26:55]MH_SAM_APDU [01:26:55]CAPDU: 80 0D 03 02 [01:26:55]Write to MH i2c: E2 08 00 5F 1C 80 0D 03 02 00 00 00 00 F6 [01:26:55]Write i2c OK [01:26:55]MH_I2C_Read... [01:26:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:26:55]Read from MH i2c: E2 [01:26:55]MH_I2C_Read... [01:26:55]Read from MH i2c: E2 0B 00 [01:26:55]MH_I2C_Read... [01:26:55]Read from MH i2c: E2 0B 00 5F 1C 00 72 00 D6 6A 9B E7 5A 35 90 00 BA [01:26:55]RAPDU: 72 00 D6 6A 9B E7 5A 35 90 00 [01:26:55]wFMCommunicate OK [01:26:55]SAM_PROTO_SignData done [01:26:55]FM_MakeSignedData done [01:26:55]CreateOFDProtocolMessage [01:26:55]wFMCommunicate request_size=4 [01:26:55]MH_SAM_APDU [01:26:55]CAPDU: 80 11 00 00 [01:26:55]Write to MH i2c: E2 08 00 60 1C 80 11 00 00 00 00 00 00 F6 [01:26:55]Write i2c OK [01:26:55]MH_I2C_Read... [01:26:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:26:56]Read from MH i2c: E2 [01:26:56]MH_I2C_Read... [01:26:56]Read from MH i2c: E2 17 00 [01:26:56]MH_I2C_Read... [01:26:56]Read from MH i2c: E2 17 00 60 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 49 [01:26:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [01:26:56]wFMCommunicate OK [01:26:56]CreateOFDProtocolMessage done [01:26:56]OFDSenderStorePacket 104277 [01:26:56]StoreOFDPacket docnum=104277 [01:26: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 7C 18 08 01 25 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 5A FD 02 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 6A CB 15 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C CB 15 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 60 31 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 50 02 00 00 00 07 04 06 00 4C CB 15 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 60 28 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 75 D2 6A 9B 75 2F 72 00 D6 6A 9B E7 5A 35 [01:26:56]CheckFolder [01:26:56]dirname=/storage/ofd_packets [01:26:56]CheckFolder done [01:26:56]ProducePacketName [01:26:56]name=ofd_packets/00104277 [01:26:56]NVStorageSaveData ofd_packets/00104277 [01:26:56]File name is /storage/ofd_packets/00104277 [01:26:56]Write 302 bytes [01:26:56]NVStorageSaveData done [01:26:56]OFDSenderStorePacket done [01:26:56]KKMCreateOFDPacket done [01:26:56]NVStorageSaveData kkm_last_timestamp [01:26:56]File name is /storage/kkm_last_timestamp [01:26:56]Write 4 bytes [01:26:56]NVStorageSaveData done [01:26:56]ExternCall_PrintAddStr [01:26:56]wPrintStart [01:26:56]Write to MH i2c: 01 00 00 61 1C 7D [01:26:56]Write i2c OK [01:26:56]MH_I2C_Read... [01:26:56]Read from MH i2c: 01 [01:26:56]MH_I2C_Read... [01:26:56]Read from MH i2c: 01 07 00 [01:26:56]MH_I2C_Read... [01:26:56]Read from MH i2c: 01 07 00 61 1C 00 00 00 00 00 FF 0F 92 [01:26:56]RasterBufferAndPrint [01:26:56]line Счет N : (1)673763 [01:26:56]line ИНН: 02508201610067 [01:26:56]line Контрольно-Кассовый Чек [01:26:56]line ПРОДАЖА [01:26:56]line ТРК (МРК, ГНК) : 11 [01:26:56]line Товар: 2710194210 [01:26:56]line ДТ(л)-К-5 [01:26:56]line 195.930 * 72.90 [01:26:56]line = 14283.30 [01:26:56]line НДС 12% НСП 1% [01:26:56]line > о реализуемом товаре [01:26:56]line ОКРУГЛЕНИЕ: -0.30 [01:26:56]line ИТОГО: 14283.00 [01:26:56]line Внесено: 15000.00 [01:26:56]line СДАЧА: 717.00 [01:26:56]line НСП 1% : 126.40 [01:26:56]line НДС 12% : 1516.81 [01:26:56]line Наличными: 14283.00 [01:26:56]line Безнал.: 0.00 [01:26:56]line Место: АЗС № 120 "Партнер Нефть" [01:26:56]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [01:26:56]line СНО: Общий режим [01:26:56]line Чек 10 22.06.2024 01:26 [01:26:56]line Смена: 356 ФФД: 1.0 [01:26:56]line ЗНМ: 0300000164 [01:26:56]line РНМ: 0000000000092785 [01:26:56]line Версия ККМ: 001 [01:26:56]line ФМ: 0000000000875093 [01:26:56]line ФД: 104277 [01:26:56]line ФПД: 129546592154927 [01:26:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T012656&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104277&fm=129546592154927&tin=02508201610067®Number=0000000000092785&sum=1428300 [01:26:56]OFD Sender: Processing packet 104277 [packets to send 17, broken 16] [01:26:56]ProducePacketName [01:26:56]name=ofd_packets/00104277 [01:26:56]OFD Sender: To server: pG, [01:26:56]CommunicateWithHost lk.salyk.kg:30040 [01:26:56]ConnectInit lk.salyk.kg [01:26:56]written 0, free lines is 4095 [01:26:56]Connected sock=10 [01:26:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 7C 18 08 01 25 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 5A FD 02 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 6A CB 15 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C CB 15 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 60 31 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 50 02 00 00 00 07 04 06 00 4C CB 15 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 60 28 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 75 D2 6A 9B 75 2F 72 00 D6 6A 9B E7 5A 35 [01:26: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 DB F6 47 00 DE 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 55 97 01 00 F4 03 04 00 E1 CE 75 66 B6 04 01 00 00 0B 71 67 CD 10 C0 DB 30 [01:26:56]CommunicateWithHost err = 0 [01:26:56]CheckOFDResponse [01:26:56]1017 (14) - 77093643461234 [01:26:56]1041 (16) - 0000000000875093 [01:26:56]1040 (4) - 104277 [01:26:56]1012 (4) - 21.06.2024 19:05 [01:26:56]1206 (1) - 0 [01:26:56]OFD Sender: Remove packet 104277 [01:26:56]ProducePacketName [01:26:56]name=ofd_packets/00104277 [01:26:56]NVStorageDeleteData [01:26:56]Write to MH i2c: 01 00 00 8C 1C A8 [01:26:56]Write i2c OK [01:26:56]MH_I2C_Read... [01:26:56]Read from MH i2c: 01 [01:26:56]MH_I2C_Read... [01:26:56]Read from MH i2c: 01 07 00 [01:26:56]MH_I2C_Read... [01:26:56]Read from MH i2c: 01 07 00 8C 1C 00 00 00 00 00 F4 0C AF [01:26:56]RasterBufferAndPrint [01:26:56]line [01:26:56]line [01:26:56]line [01:26:56]line [01:26:56]line [01:26:56]written 0, free lines is 3323 [01:26:56]MH_Cut [01:26:56]Write to MH i2c: D1 01 00 93 1C 01 81 [01:26:56]Write i2c OK [01:26:56]MH_I2C_Read... [01:26:56]Read from MH i2c: D1 [01:26:56]MH_I2C_Read... [01:26:56]Read from MH i2c: D1 01 00 [01:26:56]MH_I2C_Read... [01:26:56]Read from MH i2c: D1 01 00 93 1C 00 80 [01:26:56]Write to MH i2c: 01 00 00 94 1C B0 [01:26:56]Write i2c OK [01:26:56]MH_I2C_Read... [01:26:57]OFD Sender: No OFD packet to send [01:26:57]*** Cut start [01:26:57]*** Partial cut [01:26:57]*** CUTSNS_PIN = 1 [01:26:57]*** CUTSNS_PIN = 0 [01:26:57]*** Brake cut motor [01:26:58]Read from MH i2c: 01 [01:26:58]MH_I2C_Read... [01:26:58]*** Stop cut motor [01:26:58]*** Cut end [01:26:58]Read from MH i2c: 01 07 00 [01:26:58]MH_I2C_Read... [01:26:58]Read from MH i2c: 01 07 00 94 1C 00 00 00 00 00 FF 0F C5 [01:26:58]process_action close_receipt done [01:26:58]requested_data is exist [01:26:58]produce_requested_data [01:26:58]requested_item fm.sn is exist - process it [01:26:58]wFMCommunicate request_size=4 [01:26:58]MH_SAM_APDU [01:26:58]CAPDU: 80 11 00 00 [01:26:58]Write to MH i2c: E2 08 00 95 1C 80 11 00 00 00 00 00 00 2B [01:26:58]Write i2c OK [01:26:58]MH_I2C_Read... [01:26:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:26:58]Read from MH i2c: E2 [01:26:58]MH_I2C_Read... [01:26:58]Read from MH i2c: E2 17 00 [01:26:58]MH_I2C_Read... [01:26:58]Read from MH i2c: E2 17 00 95 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 7E [01:26:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [01:26:58]wFMCommunicate OK [01:26:58]requested_item fd.num is exist - process it [01:26:58]SAM_PROTO_GetFieldsCounters [01:26:58]wFMCommunicate request_size=4 [01:26:58]MH_SAM_APDU [01:26:58]CAPDU: 80 13 00 00 [01:26:58]Write to MH i2c: E2 08 00 96 1C 80 13 00 00 00 00 00 00 2E [01:26:58]Write i2c OK [01:26:58]MH_I2C_Read... [01:26:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:26:58]Read from MH i2c: E2 [01:26:58]MH_I2C_Read... [01:26:58]Read from MH i2c: E2 62 00 [01:26:58]MH_I2C_Read... [01:26:58]Read from MH i2c: E2 62 00 96 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 55 97 01 00 0E 04 04 00 64 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 C5 [01:26: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 55 97 01 00 0E 04 04 00 64 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 [01:26:58]wFMCommunicate OK [01:26:58]SAM_PROTO_GetFieldsCounters done [01:26:58]requested_item shift.num is exist - process it [01:26:58]requested_item shift.opened is exist - process it [01:26:58]req_shift_opened [01:26:58]FM_GetShiftState [01:26:58]SAM_PROTO_GetShiftState [01:26:58]wFMCommunicate request_size=4 [01:26:58]MH_SAM_APDU [01:26:58]CAPDU: 80 13 01 00 [01:26:58]Write to MH i2c: E2 08 00 97 1C 80 13 01 00 00 00 00 00 30 [01:26:58]Write i2c OK [01:26:58]MH_I2C_Read... [01:26:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:26:58]Read from MH i2c: E2 [01:26:58]MH_I2C_Read... [01:26:58]Read from MH i2c: E2 0E 00 [01:26:58]MH_I2C_Read... [01:26:58]Read from MH i2c: E2 0E 00 97 1C 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 22 [01:26:58]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [01:26:58]wFMCommunicate OK [01:26:58]SAM_PROTO_GetShiftState done [01:26:58]FM_GetShiftState done [01:26:58]req_shift_opened done [01:26:58]requested_item shift.open_date is exist - process it [01:26:58]req_shift_open_date [01:26:58]req_shift_open_date done [01:26:58]produce_requested_data done [01:26:58]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104277,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [01:26:58]process_action_free close_receipt [01:26:58]json_value_free [01:26:58]json_value_free done [01:26:58]process_json_proto returns [01:26:58]Send response to host [01:26:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104277,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [01:26:58]free response buf [01:26:58]execute_script done [01:26:58]execute_script returns [01:26:58]free content buf [01:26:58]Sock 9.Close socket [01:26:58]Sock 9.Thread stoped [01:27:02]OFD Sender: No OFD packet to send [01:27:07]OFD Sender: No OFD packet to send [01:27:12]OFD Sender: No OFD packet to send [01:27:17]OFD Sender: No OFD packet to send [01:27:22]OFD Sender: No OFD packet to send [01:27:27]OFD Sender: No OFD packet to send [01:27:32]OFD Sender: No OFD packet to send [01:27:37]OFD Sender: No OFD packet to send [01:27:42]OFD Sender: No OFD packet to send [01:27:47]OFD Sender: No OFD packet to send [01:27:52]OFD Sender: No OFD packet to send [01:27:57]OFD Sender: No OFD packet to send [01:28:02]OFD Sender: No OFD packet to send [01:28:07]OFD Sender: No OFD packet to send [01:28:12]OFD Sender: No OFD packet to send [01:28:17]OFD Sender: No OFD packet to send [01:28:22]OFD Sender: No OFD packet to send [01:28:27]OFD Sender: No OFD packet to send [01:28:32]OFD Sender: No OFD packet to send [01:28:37]OFD Sender: No OFD packet to send [01:28:42]OFD Sender: No OFD packet to send [01:28:47]OFD Sender: No OFD packet to send [01:28:52]OFD Sender: No OFD packet to send [01:28:57]OFD Sender: No OFD packet to send [01:29:02]OFD Sender: No OFD packet to send [01:29:07]OFD Sender: No OFD packet to send [01:29:12]OFD Sender: No OFD packet to send [01:29:17]OFD Sender: No OFD packet to send [01:29:22]OFD Sender: No OFD packet to send [01:29:27]OFD Sender: No OFD packet to send [01:29:32]OFD Sender: No OFD packet to send [01:29:37]OFD Sender: No OFD packet to send [01:29:42]OFD Sender: No OFD packet to send [01:29:47]OFD Sender: No OFD packet to send [01:29:52]OFD Sender: No OFD packet to send [01:29:57]OFD Sender: No OFD packet to send [01:30:02]OFD Sender: No OFD packet to send [01:30:07]OFD Sender: No OFD packet to send [01:30:12]OFD Sender: No OFD packet to send [01:30:17]OFD Sender: No OFD packet to send [01:30:22]OFD Sender: No OFD packet to send [01:30:27]OFD Sender: No OFD packet to send [01:30:32]OFD Sender: No OFD packet to send [01:30:37]OFD Sender: No OFD packet to send [01:30:42]OFD Sender: No OFD packet to send [01:30:47]OFD Sender: No OFD packet to send [01:30:52]OFD Sender: No OFD packet to send [01:30:57]OFD Sender: No OFD packet to send [01:31:02]OFD Sender: No OFD packet to send [01:31:07]OFD Sender: No OFD packet to send [01:31:12]OFD Sender: No OFD packet to send [01:31:17]OFD Sender: No OFD packet to send [01:31:22]OFD Sender: No OFD packet to send [01:31:27]OFD Sender: No OFD packet to send [01:31:32]OFD Sender: No OFD packet to send [01:31:37]OFD Sender: No OFD packet to send [01:31:42]OFD Sender: No OFD packet to send [01:31:47]OFD Sender: No OFD packet to send [01:31:52]OFD Sender: No OFD packet to send [01:31:57]OFD Sender: No OFD packet to send [01:32:02]OFD Sender: No OFD packet to send [01:32:07]OFD Sender: No OFD packet to send [01:32:12]OFD Sender: No OFD packet to send [01:32:17]OFD Sender: No OFD packet to send [01:32:22]OFD Sender: No OFD packet to send [01:32:27]OFD Sender: No OFD packet to send [01:32:32]OFD Sender: No OFD packet to send [01:32:37]OFD Sender: No OFD packet to send [01:32:42]OFD Sender: No OFD packet to send [01:32:47]OFD Sender: No OFD packet to send [01:32:52]OFD Sender: No OFD packet to send [01:32:57]OFD Sender: No OFD packet to send [01:33:02]OFD Sender: No OFD packet to send [01:33:07]OFD Sender: No OFD packet to send [01:33:12]OFD Sender: No OFD packet to send [01:33:17]OFD Sender: No OFD packet to send [01:33:22]OFD Sender: No OFD packet to send [01:33:27]OFD Sender: No OFD packet to send [01:33:32]OFD Sender: No OFD packet to send [01:33:37]OFD Sender: No OFD packet to send [01:33:42]OFD Sender: No OFD packet to send [01:33:47]OFD Sender: No OFD packet to send [01:33:52]OFD Sender: No OFD packet to send [01:33:57]OFD Sender: No OFD packet to send [01:34:02]OFD Sender: No OFD packet to send [01:34:07]OFD Sender: No OFD packet to send [01:34:12]OFD Sender: No OFD packet to send [01:34:16]accept exits with 7 [01:34:16]New connection [01:34:16]New thread 3067616612 created [01:34:16]Thread 3067473252 joined [01:34:16]Waiting for new connection... [01:34:16] Sock 7.Parse request [01:34:16]Sock 7.Check first char [01:34:16]Sock 7.First char is OK [01:34:16]request: POST /json_proto HTTP/1.0 [01:34:16]Method: POST [01:34:16]URL: /json_proto [01:34:16]Method is POST - this is cgi request [01:34:16]url: /json_proto [01:34:16]query_string will be loaded in cgi processing [01:34:16]execute_cgi json_proto POST (null) [01:34:16]execute_cgi path=json_proto method=POST [01:34:16]POST find Content-Length [01:34:16]Host: 172.17.38.133:8080 [01:34:16]Content-Length: 688 [01:34:16]Content-Type: application/json [01:34:16] [01:34:16]POST finish read [01:34:16]Found Content-Length = 688 [01:34:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673767", "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" : 109.740, "sum" : 8000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 8000.00, "total" : 8000.00, "payments": [ { "type": 0, "sum" : 8000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:34:16]execute_script... [01:34: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)673767", "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" : 109.740, "sum" : 8000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 8000.00, "total" : 8000.00, "payments": [ { "type": 0, "sum" : 8000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:34:16]POST & json_proto [01:34:16]process_json_proto [01:34:16]json parsed OK: [01:34:16]protocol is kg_v1.0 [01:34:16]action value=close_receipt [01:34:16]process_action close_receipt [01:34:16]cmd_close_receipt [01:34:16]MH_GetDate [01:34:16]Write to MH i2c: F0 00 00 98 1C A3 [01:34:16]Write i2c OK [01:34:16]MH_I2C_Read... [01:34:16]Read from MH i2c: F0 [01:34:16]MH_I2C_Read... [01:34:16]Read from MH i2c: F0 09 00 [01:34:16]MH_I2C_Read... [01:34:16]Read from MH i2c: F0 09 00 98 1C 00 1A 2A 76 66 BD 8F 7C 64 F8 [01:34:16]GetLastDocTimeStamp 1719019616 [01:34:16]current date 1719020058 [01:34:16]FM_GetShiftState [01:34:16]SAM_PROTO_GetShiftState [01:34:16]wFMCommunicate request_size=4 [01:34:16]MH_SAM_APDU [01:34:16]CAPDU: 80 13 01 00 [01:34:16]Write to MH i2c: E2 08 00 99 1C 80 13 01 00 00 00 00 00 32 [01:34:16]Write i2c OK [01:34:16]MH_I2C_Read... [01:34:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:34:16]Read from MH i2c: E2 [01:34:16]MH_I2C_Read... [01:34:16]Read from MH i2c: E2 0E 00 [01:34:16]MH_I2C_Read... [01:34:16]Read from MH i2c: E2 0E 00 99 1C 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 24 [01:34:16]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [01:34:16]wFMCommunicate OK [01:34:16]SAM_PROTO_GetShiftState done [01:34:16]FM_GetShiftState done [01:34:16]opened in 1719016176 [01:34:16]opened+sec_in_day 1719102576 [01:34:16]quantity*price = 800004 [01:34:16]sum+1 = 800006 [01:34:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 8000.00 Внесено: 8000.00 СДАЧА: 0.00 НСП 1% : 70.80 НДС 12% : 849.56 Наличными: 8000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 11 22.06.2024 01:34 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104278 ФПД: 214121075486395 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T013418&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104278&fm=214121075486395&tin=02508201610067®Number=0000000000092785&sum=800000 [01:34:17]StoreToDocumentArchive [01:34:17]shift 356 fd 104278 [01:34:17]save to /storage/0356/doc_00104278 [01:34:17]save last doc name /storage/0356/doc_00104278 to /storage/kkm_last_doc_name [01:34:17]save OK [01:34:17]Clear old archive folders... [01:34:17]ProcessDocumentItem done err = 0, tmpTLVsize=252 [01:34:17]tlvbuf is 006AF1C0 [01:34:17]SAM_PROTO_ClearQueue [01:34:17]wFMCommunicate request_size=4 [01:34:17]MH_SAM_APDU [01:34:17]CAPDU: 80 09 00 00 [01:34:17]Write to MH i2c: E2 08 00 A6 1C 80 09 00 00 00 00 00 00 34 [01:34:17]Write i2c OK [01:34:17]MH_I2C_Read... [01:34:17]Read from MH i2c: E2 [01:34:17]MH_I2C_Read... [01:34:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:34:17]Read from MH i2c: E2 03 00 [01:34:17]MH_I2C_Read... [01:34:17]Read from MH i2c: E2 03 00 A6 1C 00 90 00 36 [01:34:17]RAPDU: 90 00 [01:34:17]wFMCommunicate OK [01:34:17]SAM_PROTO_ClearQueue done [01:34:17]KKMCreateOFDPacket [01:34:17]OFDProtocolAddRootSTLVToBuf [01:34:17]FM_MakeSignedData [01:34:17]FM_MakeSignedData [01:34:17]SAM_PROTO_SignData [01:34:17]wFMCommunicate request_size=4 [01:34:17]MH_SAM_APDU [01:34:17]CAPDU: 80 0D 01 02 [01:34:17]Write to MH i2c: E2 08 00 A7 1C 80 0D 01 02 00 00 00 00 3C [01:34:17]Write i2c OK [01:34:17]MH_I2C_Read... [01:34:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:34:17]Read from MH i2c: E2 [01:34:17]MH_I2C_Read... [01:34:17]Read from MH i2c: E2 03 00 [01:34:17]MH_I2C_Read... [01:34:17]Read from MH i2c: E2 03 00 A7 1C 00 90 00 37 [01:34:17]RAPDU: 90 00 [01:34:17]wFMCommunicate OK [01:34:17]wFMCommunicate request_size=255 [01:34:17]MH_SAM_APDU [01:34: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 AC AC 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 05 35 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 35 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DC 4B 01 00 00 00 07 04 06 00 00 35 0C 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 1A 2A 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 [01:34:17]Write to MH i2c: E2 02 01 A8 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 AC AC 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 05 35 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 35 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DC 4B 01 00 00 00 07 04 06 00 00 35 0C 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 1A 2A 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 00 00 A7 [01:34:17]Write i2c OK [01:34:17]MH_I2C_Read... [01:34:17]OFD Sender: No OFD packet to send [01:34:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:34:17]Read from MH i2c: E2 [01:34:17]MH_I2C_Read... [01:34:17]Read from MH i2c: E2 03 00 [01:34:17]MH_I2C_Read... [01:34:17]Read from MH i2c: E2 03 00 A8 1C 00 90 00 38 [01:34:17]RAPDU: 90 00 [01:34:17]wFMCommunicate OK [01:34:17]wFMCommunicate request_size=11 [01:34:17]MH_SAM_APDU [01:34:17]CAPDU: 80 0D 02 02 06 C2 BD F2 A4 AE BB [01:34:17]Write to MH i2c: E2 0E 00 A9 1C 80 0D 02 02 06 00 C2 BD F2 A4 AE BB 00 00 C9 [01:34:17]Write i2c OK [01:34:17]MH_I2C_Read... [01:34:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:34:17]Read from MH i2c: E2 [01:34:17]MH_I2C_Read... [01:34:17]Read from MH i2c: E2 03 00 [01:34:17]MH_I2C_Read... [01:34:17]Read from MH i2c: E2 03 00 A9 1C 00 90 00 39 [01:34:17]RAPDU: 90 00 [01:34:17]wFMCommunicate OK [01:34:17]wFMCommunicate request_size=4 [01:34:17]MH_SAM_APDU [01:34:17]CAPDU: 80 0D 03 02 [01:34:17]Write to MH i2c: E2 08 00 AA 1C 80 0D 03 02 00 00 00 00 41 [01:34:17]Write i2c OK [01:34:17]MH_I2C_Read... [01:34:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:34:17]Read from MH i2c: E2 [01:34:17]MH_I2C_Read... [01:34:17]Read from MH i2c: E2 0B 00 [01:34:17]MH_I2C_Read... [01:34:17]Read from MH i2c: E2 0B 00 AA 1C 00 2B 43 DE D9 99 9F E2 9F 90 00 20 [01:34:17]RAPDU: 2B 43 DE D9 99 9F E2 9F 90 00 [01:34:17]wFMCommunicate OK [01:34:17]SAM_PROTO_SignData done [01:34:17]FM_MakeSignedData done [01:34:17]CreateOFDProtocolMessage [01:34:17]wFMCommunicate request_size=4 [01:34:17]MH_SAM_APDU [01:34:17]CAPDU: 80 11 00 00 [01:34:17]Write to MH i2c: E2 08 00 AB 1C 80 11 00 00 00 00 00 00 41 [01:34:17]Write i2c OK [01:34:17]MH_I2C_Read... [01:34:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:34:18]Read from MH i2c: E2 [01:34:18]MH_I2C_Read... [01:34:18]Read from MH i2c: E2 17 00 [01:34:18]MH_I2C_Read... [01:34:18]Read from MH i2c: E2 17 00 AB 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 94 [01:34:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [01:34:18]wFMCommunicate OK [01:34:18]CreateOFDProtocolMessage done [01:34:18]OFDSenderStorePacket 104278 [01:34:18]StoreOFDPacket docnum=104278 [01:34: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 49 D2 08 01 9A 87 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 AC AC 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 05 35 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 35 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DC 4B 01 00 00 00 07 04 06 00 00 35 0C 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 1A 2A 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 C2 BD F2 A4 AE BB 2B 43 DE D9 99 9F E2 9F [01:34:18]CheckFolder [01:34:18]dirname=/storage/ofd_packets [01:34:18]CheckFolder done [01:34:18]ProducePacketName [01:34:18]name=ofd_packets/00104278 [01:34:18]NVStorageSaveData ofd_packets/00104278 [01:34:18]File name is /storage/ofd_packets/00104278 [01:34:18]Write 302 bytes [01:34:18]NVStorageSaveData done [01:34:18]OFDSenderStorePacket done [01:34:18]KKMCreateOFDPacket done [01:34:18]NVStorageSaveData kkm_last_timestamp [01:34:18]File name is /storage/kkm_last_timestamp [01:34:18]Write 4 bytes [01:34:18]NVStorageSaveData done [01:34:18]ExternCall_PrintAddStr [01:34:18]wPrintStart [01:34:18]Write to MH i2c: 01 00 00 AC 1C C8 [01:34:18]Write i2c OK [01:34:18]MH_I2C_Read... [01:34:18]Read from MH i2c: 01 [01:34:18]MH_I2C_Read... [01:34:18]Read from MH i2c: 01 07 00 [01:34:18]MH_I2C_Read... [01:34:18]Read from MH i2c: 01 07 00 AC 1C 00 00 00 00 00 FF 0F DD [01:34:18]RasterBufferAndPrint [01:34:18]line Счет N : (1)673767 [01:34:18]line ИНН: 02508201610067 [01:34:18]line Контрольно-Кассовый Чек [01:34:18]line ПРОДАЖА [01:34:18]line ТРК (МРК, ГНК) : 11 [01:34:18]line Товар: 2710194210 [01:34:18]line ДТ(л)-К-5 [01:34:18]line 109.740 * 72.90 [01:34:18]line = 8000.05 [01:34:18]line НДС 12% НСП 1% [01:34:18]line > о реализуемом товаре [01:34:18]line ОКРУГЛЕНИЕ: -0.05 [01:34:18]line ИТОГО: 8000.00 [01:34:18]line Внесено: 8000.00 [01:34:18]line СДАЧА: 0.00 [01:34:18]line НСП 1% : 70.80 [01:34:18]line НДС 12% : 849.56 [01:34:18]line Наличными: 8000.00 [01:34:18]line Безнал.: 0.00 [01:34:18]line Место: АЗС № 120 "Партнер Нефть" [01:34:18]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [01:34:18]line СНО: Общий режим [01:34:18]line Чек 11 22.06.2024 01:34 [01:34:18]line Смена: 356 ФФД: 1.0 [01:34:18]line ЗНМ: 0300000164 [01:34:18]line РНМ: 0000000000092785 [01:34:18]line Версия ККМ: 001 [01:34:18]line ФМ: 0000000000875093 [01:34:18]line ФД: 104278 [01:34:18]line ФПД: 214121075486395 [01:34:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T013418&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104278&fm=214121075486395&tin=02508201610067®Number=0000000000092785&sum=800000 [01:34:18]OFD Sender: Processing packet 104278 [packets to send 17, broken 16] [01:34:18]ProducePacketName [01:34:18]name=ofd_packets/00104278 [01:34:18]OFD Sender: To server: pG, [01:34:18]CommunicateWithHost lk.salyk.kg:30040 [01:34:18]ConnectInit lk.salyk.kg [01:34:18]written 0, free lines is 4095 [01:34:18]Connected sock=11 [01:34: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 49 D2 08 01 9A 87 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 AC AC 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 05 35 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 35 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DC 4B 01 00 00 00 07 04 06 00 00 35 0C 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 1A 2A 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 C2 BD F2 A4 AE BB 2B 43 DE D9 99 9F E2 9F [01:34:18]Write to MH i2c: 01 00 00 D7 1C F3 [01:34:18]Write i2c OK [01:34:18]MH_I2C_Read... [01:34:18]Read from MH i2c: 01 [01:34:18]MH_I2C_Read... [01:34:18]Read from MH i2c: 01 07 00 [01:34:18]MH_I2C_Read... [01:34:18]Read from MH i2c: 01 07 00 D7 1C 00 00 00 00 00 E7 0C ED [01:34:18]RasterBufferAndPrint [01:34:18]line [01:34:18]line [01:34:18]line [01:34:18]line [01:34:18]line [01:34:18]written 0, free lines is 3310 [01:34:18]MH_Cut [01:34:18]Write to MH i2c: D1 01 00 DE 1C 01 CC [01:34:18]Write i2c OK [01:34:18]MH_I2C_Read... [01:34:18]Read from MH i2c: D1 [01:34:18]MH_I2C_Read... [01:34:18]Read from MH i2c: D1 01 00 [01:34:18]MH_I2C_Read... [01:34:18]Read from MH i2c: D1 01 00 DE 1C 00 CB [01:34:18]Write to MH i2c: 01 00 00 DF 1C FB [01:34:18]Write i2c OK [01:34:18]MH_I2C_Read... [01:34: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 B8 72 47 00 8B 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 56 97 01 00 F4 03 04 00 9B D0 75 66 B6 04 01 00 00 7F DC B0 A5 43 94 AD 29 [01:34:18]CommunicateWithHost err = 0 [01:34:18]CheckOFDResponse [01:34:18]1017 (14) - 77093643461234 [01:34:18]1041 (16) - 0000000000875093 [01:34:18]1040 (4) - 104278 [01:34:18]1012 (4) - 21.06.2024 19:12 [01:34:18]1206 (1) - 0 [01:34:18]OFD Sender: Remove packet 104278 [01:34:18]ProducePacketName [01:34:18]name=ofd_packets/00104278 [01:34:18]NVStorageDeleteData [01:34:19]OFD Sender: No OFD packet to send [01:34:19]*** Cut start [01:34:19]*** Partial cut [01:34:19]*** CUTSNS_PIN = 1 [01:34:19]*** CUTSNS_PIN = 0 [01:34:19]*** Brake cut motor [01:34:20]Read from MH i2c: 01 [01:34:20]MH_I2C_Read... [01:34:20]*** Stop cut motor [01:34:20]*** Cut end [01:34:20]Read from MH i2c: 01 07 00 [01:34:20]MH_I2C_Read... [01:34:20]Read from MH i2c: 01 07 00 DF 1C 00 00 00 00 00 FF 0F 10 [01:34:20]process_action close_receipt done [01:34:20]requested_data is exist [01:34:20]produce_requested_data [01:34:20]requested_item fm.sn is exist - process it [01:34:20]wFMCommunicate request_size=4 [01:34:20]MH_SAM_APDU [01:34:20]CAPDU: 80 11 00 00 [01:34:20]Write to MH i2c: E2 08 00 E0 1C 80 11 00 00 00 00 00 00 76 [01:34:20]Write i2c OK [01:34:20]MH_I2C_Read... [01:34:20]Read from MH i2c: E2 [01:34:20]MH_I2C_Read... [01:34:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:34:20]Read from MH i2c: E2 17 00 [01:34:20]MH_I2C_Read... [01:34:20]Read from MH i2c: E2 17 00 E0 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 C9 [01:34: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:34:20]wFMCommunicate OK [01:34:20]requested_item fd.num is exist - process it [01:34:20]SAM_PROTO_GetFieldsCounters [01:34:20]wFMCommunicate request_size=4 [01:34:20]MH_SAM_APDU [01:34:20]CAPDU: 80 13 00 00 [01:34:20]Write to MH i2c: E2 08 00 E1 1C 80 13 00 00 00 00 00 00 79 [01:34:20]Write i2c OK [01:34:20]MH_I2C_Read... [01:34:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:34:20]Read from MH i2c: E2 [01:34:20]MH_I2C_Read... [01:34:20]Read from MH i2c: E2 62 00 [01:34:20]MH_I2C_Read... [01:34:20]Read from MH i2c: E2 62 00 E1 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 56 97 01 00 0E 04 04 00 64 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 14 [01:34: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 56 97 01 00 0E 04 04 00 64 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 [01:34:20]wFMCommunicate OK [01:34:20]SAM_PROTO_GetFieldsCounters done [01:34:20]requested_item shift.num is exist - process it [01:34:20]requested_item shift.opened is exist - process it [01:34:20]req_shift_opened [01:34:20]FM_GetShiftState [01:34:20]SAM_PROTO_GetShiftState [01:34:20]wFMCommunicate request_size=4 [01:34:20]MH_SAM_APDU [01:34:20]CAPDU: 80 13 01 00 [01:34:20]Write to MH i2c: E2 08 00 E2 1C 80 13 01 00 00 00 00 00 7B [01:34:20]Write i2c OK [01:34:20]MH_I2C_Read... [01:34:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:34:20]Read from MH i2c: E2 [01:34:20]MH_I2C_Read... [01:34:20]Read from MH i2c: E2 0E 00 [01:34:20]MH_I2C_Read... [01:34:20]Read from MH i2c: E2 0E 00 E2 1C 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 6D [01:34:20]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [01:34:20]wFMCommunicate OK [01:34:20]SAM_PROTO_GetShiftState done [01:34:20]FM_GetShiftState done [01:34:20]req_shift_opened done [01:34:20]requested_item shift.open_date is exist - process it [01:34:20]req_shift_open_date [01:34:20]req_shift_open_date done [01:34:20]produce_requested_data done [01:34:20]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104278,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [01:34:20]process_action_free close_receipt [01:34:20]json_value_free [01:34:20]json_value_free done [01:34:20]process_json_proto returns [01:34:20]Send response to host [01:34:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104278,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [01:34:20]free response buf [01:34:20]execute_script done [01:34:20]execute_script returns [01:34:20]free content buf [01:34:20]Sock 7.Close socket [01:34:20]Sock 7.Thread stoped [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:27]accept exits with 9 [01:35:27]New connection [01:35:27]New thread 3067473252 created [01:35:27]Thread 3067616612 joined [01:35:27]Waiting for new connection... [01:35:27] Sock 9.Parse request [01:35:27]Sock 9.Check first char [01:35:27]Sock 9.First char is OK [01:35:27]request: POST /json_proto HTTP/1.0 [01:35:27]Method: POST [01:35:27]URL: /json_proto [01:35:27]Method is POST - this is cgi request [01:35:27]url: /json_proto [01:35:27]query_string will be loaded in cgi processing [01:35:27]execute_cgi json_proto POST (null) [01:35:27]execute_cgi path=json_proto method=POST [01:35:27]POST find Content-Length [01:35:27]Host: 172.17.38.133:8080 [01:35:27]Content-Length: 682 [01:35:27]Content-Type: application/json [01:35:27] [01:35:27]POST finish read [01:35:27]Found Content-Length = 682 [01:35:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673768", "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" : 9.840, "sum" : 717.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 717.00, "total" : 717.00, "payments": [ { "type": 0, "sum" : 717.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:35:27]execute_script... [01:35: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)673768", "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" : 9.840, "sum" : 717.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 717.00, "total" : 717.00, "payments": [ { "type": 0, "sum" : 717.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:35:27]POST & json_proto [01:35:27]process_json_proto [01:35:27]json parsed OK: [01:35:27]protocol is kg_v1.0 [01:35:27]action value=close_receipt [01:35:27]process_action close_receipt [01:35:27]cmd_close_receipt [01:35:27]MH_GetDate [01:35:27]Write to MH i2c: F0 00 00 E3 1C EE [01:35:27]Write i2c OK [01:35:27]MH_I2C_Read... [01:35:27]Read from MH i2c: F0 [01:35:27]MH_I2C_Read... [01:35:27]Read from MH i2c: F0 09 00 [01:35:27]MH_I2C_Read... [01:35:27]Read from MH i2c: F0 09 00 E3 1C 00 61 2A 76 66 BD 8F 7C 64 8A [01:35:27]GetLastDocTimeStamp 1719020058 [01:35:27]current date 1719020129 [01:35:27]FM_GetShiftState [01:35:27]SAM_PROTO_GetShiftState [01:35:27]wFMCommunicate request_size=4 [01:35:27]MH_SAM_APDU [01:35:27]CAPDU: 80 13 01 00 [01:35:27]Write to MH i2c: E2 08 00 E4 1C 80 13 01 00 00 00 00 00 7D [01:35:27]Write i2c OK [01:35:27]MH_I2C_Read... [01:35:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:35:27]Read from MH i2c: E2 [01:35:27]MH_I2C_Read... [01:35:27]Read from MH i2c: E2 0E 00 [01:35:27]MH_I2C_Read... [01:35:27]Read from MH i2c: E2 0E 00 E4 1C 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 6F [01:35:27]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [01:35:27]wFMCommunicate OK [01:35:27]SAM_PROTO_GetShiftState done [01:35:27]FM_GetShiftState done [01:35:27]opened in 1719016176 [01:35:27]opened+sec_in_day 1719102576 [01:35:27]quantity*price = 71733 [01:35:27]sum+1 = 71735 [01:35:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.34 ИТОГО: 717.00 Внесено: 717.00 СДАЧА: 0.00 НСП 1% : 6.35 НДС 12% : 76.18 Наличными: 717.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 12 22.06.2024 01:35 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104279 ФПД: 30071648412715 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T013529&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104279&fm=30071648412715&tin=02508201610067®Number=0000000000092785&sum=71700 [01:35:28]StoreToDocumentArchive [01:35:28]shift 356 fd 104279 [01:35:28]save to /storage/0356/doc_00104279 [01:35:28]save last doc name /storage/0356/doc_00104279 to /storage/kkm_last_doc_name [01:35:28]save OK [01:35:28]Clear old archive folders... [01:35:28]ProcessDocumentItem done err = 0, tmpTLVsize=252 [01:35:28]tlvbuf is 006DFE30 [01:35:28]SAM_PROTO_ClearQueue [01:35:28]wFMCommunicate request_size=4 [01:35:28]MH_SAM_APDU [01:35:28]CAPDU: 80 09 00 00 [01:35:28]Write to MH i2c: E2 08 00 F1 1C 80 09 00 00 00 00 00 00 7F [01:35:28]Write i2c OK [01:35:28]MH_I2C_Read... [01:35:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:35:28]Read from MH i2c: E2 [01:35:28]MH_I2C_Read... [01:35:28]Read from MH i2c: E2 03 00 [01:35:28]MH_I2C_Read... [01:35:28]Read from MH i2c: E2 03 00 F1 1C 00 90 00 81 [01:35:28]RAPDU: 90 00 [01:35:28]wFMCommunicate OK [01:35:28]SAM_PROTO_ClearQueue done [01:35:28]KKMCreateOFDPacket [01:35:28]OFDProtocolAddRootSTLVToBuf [01:35:28]FM_MakeSignedData [01:35:28]FM_MakeSignedData [01:35:28]SAM_PROTO_SignData [01:35:28]wFMCommunicate request_size=4 [01:35:28]MH_SAM_APDU [01:35:28]CAPDU: 80 0D 01 02 [01:35:28]Write to MH i2c: E2 08 00 F2 1C 80 0D 01 02 00 00 00 00 87 [01:35:28]Write i2c OK [01:35:28]MH_I2C_Read... [01:35:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:35:28]Read from MH i2c: E2 [01:35:28]MH_I2C_Read... [01:35:28]Read from MH i2c: E2 03 00 [01:35:28]MH_I2C_Read... [01:35:28]Read from MH i2c: E2 03 00 F2 1C 00 90 00 82 [01:35:28]RAPDU: 90 00 [01:35:28]wFMCommunicate OK [01:35:28]wFMCommunicate request_size=255 [01:35:28]MH_SAM_APDU [01:35:28]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 70 26 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 36 18 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 18 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 1D 00 00 00 00 07 04 06 00 14 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 0C 00 00 00 F4 03 04 00 61 2A 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 [01:35:28]Write to MH i2c: E2 02 01 F3 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 70 26 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 36 18 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 18 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 1D 00 00 00 00 07 04 06 00 14 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 0C 00 00 00 F4 03 04 00 61 2A 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 00 00 CA [01:35:28]Write i2c OK [01:35:28]MH_I2C_Read... [01:35:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:35:28]Read from MH i2c: E2 [01:35:28]MH_I2C_Read... [01:35:28]Read from MH i2c: E2 03 00 [01:35:28]MH_I2C_Read... [01:35:28]Read from MH i2c: E2 03 00 F3 1C 00 90 00 83 [01:35:28]RAPDU: 90 00 [01:35:28]wFMCommunicate OK [01:35:28]wFMCommunicate request_size=11 [01:35:28]MH_SAM_APDU [01:35:28]CAPDU: 80 0D 02 02 06 1B 59 99 EB E4 2B [01:35:28]Write to MH i2c: E2 0E 00 F4 1C 80 0D 02 02 06 00 1B 59 99 EB E4 2B 00 00 9D [01:35:28]Write i2c OK [01:35:28]MH_I2C_Read... [01:35:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:35:28]Read from MH i2c: E2 [01:35:28]MH_I2C_Read... [01:35:28]Read from MH i2c: E2 03 00 [01:35:28]MH_I2C_Read... [01:35:28]Read from MH i2c: E2 03 00 F4 1C 00 90 00 84 [01:35:28]RAPDU: 90 00 [01:35:28]wFMCommunicate OK [01:35:28]wFMCommunicate request_size=4 [01:35:28]MH_SAM_APDU [01:35:28]CAPDU: 80 0D 03 02 [01:35:28]Write to MH i2c: E2 08 00 F5 1C 80 0D 03 02 00 00 00 00 8C [01:35:28]Write i2c OK [01:35:28]MH_I2C_Read... [01:35:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:35:28]Read from MH i2c: E2 [01:35:28]MH_I2C_Read... [01:35:28]Read from MH i2c: E2 0B 00 [01:35:28]MH_I2C_Read... [01:35:28]Read from MH i2c: E2 0B 00 F5 1C 00 0B A0 67 26 97 58 78 C5 90 00 F1 [01:35:28]RAPDU: 0B A0 67 26 97 58 78 C5 90 00 [01:35:28]wFMCommunicate OK [01:35:28]SAM_PROTO_SignData done [01:35:28]FM_MakeSignedData done [01:35:28]CreateOFDProtocolMessage [01:35:28]wFMCommunicate request_size=4 [01:35:28]MH_SAM_APDU [01:35:28]CAPDU: 80 11 00 00 [01:35:28]Write to MH i2c: E2 08 00 F6 1C 80 11 00 00 00 00 00 00 8C [01:35:28]Write i2c OK [01:35:28]MH_I2C_Read... [01:35:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:35:28]Read from MH i2c: E2 [01:35:28]MH_I2C_Read... [01:35:28]Read from MH i2c: E2 17 00 [01:35:28]MH_I2C_Read... [01:35:28]Read from MH i2c: E2 17 00 F6 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 DF [01:35:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [01:35:28]wFMCommunicate OK [01:35:28]CreateOFDProtocolMessage done [01:35:28]OFDSenderStorePacket 104279 [01:35:28]StoreOFDPacket docnum=104279 [01:35: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 10 01 00 00 06 5D 08 01 6B 2A 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 70 26 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 36 18 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 18 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 1D 00 00 00 00 07 04 06 00 14 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 0C 00 00 00 F4 03 04 00 61 2A 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 1B 59 99 EB E4 2B 0B A0 67 26 97 58 78 C5 [01:35:28]CheckFolder [01:35:28]dirname=/storage/ofd_packets [01:35:28]CheckFolder done [01:35:28]ProducePacketName [01:35:28]name=ofd_packets/00104279 [01:35:28]NVStorageSaveData ofd_packets/00104279 [01:35:28]File name is /storage/ofd_packets/00104279 [01:35:28]Write 302 bytes [01:35:28]NVStorageSaveData done [01:35:28]OFDSenderStorePacket done [01:35:28]KKMCreateOFDPacket done [01:35:28]NVStorageSaveData kkm_last_timestamp [01:35:28]File name is /storage/kkm_last_timestamp [01:35:28]Write 4 bytes [01:35:28]NVStorageSaveData done [01:35:28]ExternCall_PrintAddStr [01:35:28]wPrintStart [01:35:28]Write to MH i2c: 01 00 00 F7 1C 13 [01:35:28]Write i2c OK [01:35:28]MH_I2C_Read... [01:35:28]Read from MH i2c: 01 [01:35:28]MH_I2C_Read... [01:35:28]Read from MH i2c: 01 07 00 [01:35:28]MH_I2C_Read... [01:35:28]Read from MH i2c: 01 07 00 F7 1C 00 00 00 00 00 FF 0F 28 [01:35:28]RasterBufferAndPrint [01:35:28]line Счет N : (1)673768 [01:35:28]line ИНН: 02508201610067 [01:35:28]line Контрольно-Кассовый Чек [01:35:28]line ПРОДАЖА [01:35:28]line ТРК (МРК, ГНК) : 11 [01:35:28]line Товар: 2710194210 [01:35:28]line ДТ(л)-К-5 [01:35:28]line 9.840 * 72.90 [01:35:28]line = 717.34 [01:35:28]line НДС 12% НСП 1% [01:35:28]line > о реализуемом товаре [01:35:28]line ОКРУГЛЕНИЕ: -0.34 [01:35:28]line ИТОГО: 717.00 [01:35:28]line Внесено: 717.00 [01:35:28]line СДАЧА: 0.00 [01:35:28]line НСП 1% : 6.35 [01:35:28]line НДС 12% : 76.18 [01:35:28]line Наличными: 717.00 [01:35:28]line Безнал.: 0.00 [01:35:28]line Место: АЗС № 120 "Партнер Нефть" [01:35:28]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [01:35:28]line СНО: Общий режим [01:35:28]line Чек 12 22.06.2024 01:35 [01:35:28]line Смена: 356 ФФД: 1.0 [01:35:28]line ЗНМ: 0300000164 [01:35:28]line РНМ: 0000000000092785 [01:35:28]line Версия ККМ: 001 [01:35:28]line ФМ: 0000000000875093 [01:35:29]line ФД: 104279 [01:35:29]line ФПД: 30071648412715 [01:35:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T013529&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104279&fm=30071648412715&tin=02508201610067®Number=0000000000092785&sum=71700 [01:35:29]OFD Sender: Processing packet 104279 [packets to send 17, broken 16] [01:35:29]ProducePacketName [01:35:29]name=ofd_packets/00104279 [01:35:29]OFD Sender: To server: pG, [01:35:29]CommunicateWithHost lk.salyk.kg:30040 [01:35:29]ConnectInit lk.salyk.kg [01:35:29]written 0, free lines is 4095 [01:35:29]Connected sock=10 [01:35: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 10 01 00 00 06 5D 08 01 6B 2A 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 70 26 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 36 18 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 18 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 1D 00 00 00 00 07 04 06 00 14 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 0C 00 00 00 F4 03 04 00 61 2A 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 1B 59 99 EB E4 2B 0B A0 67 26 97 58 78 C5 [01:35: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 85 10 47 00 1E F3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 57 97 01 00 F4 03 04 00 E2 D0 75 66 B6 04 01 00 00 2F FC BD 54 6C 9D 29 AE [01:35:29]CommunicateWithHost err = 0 [01:35:29]CheckOFDResponse [01:35:29]1017 (14) - 77093643461234 [01:35:29]1041 (16) - 0000000000875093 [01:35:29]1040 (4) - 104279 [01:35:29]1012 (4) - 21.06.2024 19:13 [01:35:29]1206 (1) - 0 [01:35:29]OFD Sender: Remove packet 104279 [01:35:29]ProducePacketName [01:35:29]name=ofd_packets/00104279 [01:35:29]NVStorageDeleteData [01:35:29]Write to MH i2c: 01 00 00 22 1D 3F [01:35:29]Write i2c OK [01:35:29]MH_I2C_Read... [01:35:29]Read from MH i2c: 01 [01:35:29]MH_I2C_Read... [01:35:29]Read from MH i2c: 01 07 00 [01:35:29]MH_I2C_Read... [01:35:29]Read from MH i2c: 01 07 00 22 1D 00 00 00 00 00 CE 0C 20 [01:35:29]RasterBufferAndPrint [01:35:29]line [01:35:29]line [01:35:29]line [01:35:29]line [01:35:29]line [01:35:29]written 0, free lines is 3282 [01:35:29]MH_Cut [01:35:29]Write to MH i2c: D1 01 00 29 1D 01 18 [01:35:29]Write i2c OK [01:35:29]MH_I2C_Read... [01:35:29]Read from MH i2c: D1 [01:35:29]MH_I2C_Read... [01:35:29]Read from MH i2c: D1 01 00 [01:35:29]MH_I2C_Read... [01:35:29]Read from MH i2c: D1 01 00 29 1D 00 17 [01:35:29]Write to MH i2c: 01 00 00 2A 1D 47 [01:35:29]Write i2c OK [01:35:29]MH_I2C_Read... [01:35:30]OFD Sender: No OFD packet to send [01:35:30]*** Cut start [01:35:30]*** Partial cut [01:35:30]*** CUTSNS_PIN = 1 [01:35:30]*** CUTSNS_PIN = 0 [01:35:30]*** Brake cut motor [01:35:30]Read from MH i2c: 01 [01:35:30]MH_I2C_Read... [01:35:30]*** Stop cut motor [01:35:30]*** Cut end [01:35:30]Read from MH i2c: 01 07 00 [01:35:30]MH_I2C_Read... [01:35:30]Read from MH i2c: 01 07 00 2A 1D 00 00 00 00 00 FF 0F 5C [01:35:30]process_action close_receipt done [01:35:30]requested_data is exist [01:35:30]produce_requested_data [01:35:30]requested_item fm.sn is exist - process it [01:35:30]wFMCommunicate request_size=4 [01:35:30]MH_SAM_APDU [01:35:30]CAPDU: 80 11 00 00 [01:35:30]Write to MH i2c: E2 08 00 2B 1D 80 11 00 00 00 00 00 00 C2 [01:35:30]Write i2c OK [01:35:30]MH_I2C_Read... [01:35:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:35:30]Read from MH i2c: E2 [01:35:30]MH_I2C_Read... [01:35:30]Read from MH i2c: E2 17 00 [01:35:30]MH_I2C_Read... [01:35:30]Read from MH i2c: E2 17 00 2B 1D 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:35:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [01:35:30]wFMCommunicate OK [01:35:30]requested_item fd.num is exist - process it [01:35:30]SAM_PROTO_GetFieldsCounters [01:35:30]wFMCommunicate request_size=4 [01:35:30]MH_SAM_APDU [01:35:30]CAPDU: 80 13 00 00 [01:35:30]Write to MH i2c: E2 08 00 2C 1D 80 13 00 00 00 00 00 00 C5 [01:35:30]Write i2c OK [01:35:30]MH_I2C_Read... [01:35:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:35:31]Read from MH i2c: E2 [01:35:31]MH_I2C_Read... [01:35:31]Read from MH i2c: E2 62 00 [01:35:31]MH_I2C_Read... [01:35:31]Read from MH i2c: E2 62 00 2C 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 57 97 01 00 0E 04 04 00 64 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 64 [01:35: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 57 97 01 00 0E 04 04 00 64 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 [01:35:31]wFMCommunicate OK [01:35:31]SAM_PROTO_GetFieldsCounters done [01:35:31]requested_item shift.num is exist - process it [01:35:31]requested_item shift.opened is exist - process it [01:35:31]req_shift_opened [01:35:31]FM_GetShiftState [01:35:31]SAM_PROTO_GetShiftState [01:35:31]wFMCommunicate request_size=4 [01:35:31]MH_SAM_APDU [01:35:31]CAPDU: 80 13 01 00 [01:35:31]Write to MH i2c: E2 08 00 2D 1D 80 13 01 00 00 00 00 00 C7 [01:35:31]Write i2c OK [01:35:31]MH_I2C_Read... [01:35:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:35:31]Read from MH i2c: E2 [01:35:31]MH_I2C_Read... [01:35:31]Read from MH i2c: E2 0E 00 [01:35:31]MH_I2C_Read... [01:35:31]Read from MH i2c: E2 0E 00 2D 1D 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 B9 [01:35:31]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [01:35:31]wFMCommunicate OK [01:35:31]SAM_PROTO_GetShiftState done [01:35:31]FM_GetShiftState done [01:35:31]req_shift_opened done [01:35:31]requested_item shift.open_date is exist - process it [01:35:31]req_shift_open_date [01:35:31]req_shift_open_date done [01:35:31]produce_requested_data done [01:35:31]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104279,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [01:35:31]process_action_free close_receipt [01:35:31]json_value_free [01:35:31]json_value_free done [01:35:31]process_json_proto returns [01:35:31]Send response to host [01:35:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104279,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [01:35:31]free response buf [01:35:31]execute_script done [01:35:31]execute_script returns [01:35:31]free content buf [01:35:31]Sock 9.Close socket [01:35:31]Sock 9.Thread stoped [01:35:31]accept exits with 7 [01:35:31]New connection [01:35:31]New thread 3067616612 created [01:35:31]Thread 3067473252 joined [01:35:31]Waiting for new connection... [01:35:31] Sock 7.Parse request [01:35:31]Sock 7.Check first char [01:35:31]Sock 7.First char is OK [01:35:31]request: POST /json_proto HTTP/1.0 [01:35:31]Method: POST [01:35:31]URL: /json_proto [01:35:31]Method is POST - this is cgi request [01:35:31]url: /json_proto [01:35:31]query_string will be loaded in cgi processing [01:35:31]execute_cgi json_proto POST (null) [01:35:31]execute_cgi path=json_proto method=POST [01:35:31]POST find Content-Length [01:35:31]Host: 172.17.38.133:8080 [01:35:31]Content-Length: 677 [01:35:31]Content-Type: application/json [01:35:31] [01:35:31]POST finish read [01:35:31]Found Content-Length = 677 [01:35:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673769", "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" ] } } [01:35:31]execute_script... [01:35:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673769", "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" ] } } [01:35:31]POST & json_proto [01:35:31]process_json_proto [01:35:31]json parsed OK: [01:35:31]protocol is kg_v1.0 [01:35:31]action value=close_receipt [01:35:31]process_action close_receipt [01:35:31]cmd_close_receipt [01:35:31]MH_GetDate [01:35:31]Write to MH i2c: F0 00 00 2E 1D 3A [01:35:31]Write i2c OK [01:35:31]MH_I2C_Read... [01:35:31]Read from MH i2c: F0 [01:35:31]MH_I2C_Read... [01:35:31]Read from MH i2c: F0 09 00 [01:35:31]MH_I2C_Read... [01:35:31]Read from MH i2c: F0 09 00 2E 1D 00 65 2A 76 66 BD 8F 7C 64 DA [01:35:31]GetLastDocTimeStamp 1719020129 [01:35:31]current date 1719020133 [01:35:31]FM_GetShiftState [01:35:31]SAM_PROTO_GetShiftState [01:35:31]wFMCommunicate request_size=4 [01:35:31]MH_SAM_APDU [01:35:31]CAPDU: 80 13 01 00 [01:35:31]Write to MH i2c: E2 08 00 2F 1D 80 13 01 00 00 00 00 00 C9 [01:35:31]Write i2c OK [01:35:31]MH_I2C_Read... [01:35:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:35:31]Read from MH i2c: E2 [01:35:31]MH_I2C_Read... [01:35:31]Read from MH i2c: E2 0E 00 [01:35:31]MH_I2C_Read... [01:35:31]Read from MH i2c: E2 0E 00 2F 1D 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 BB [01:35:31]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [01:35:31]wFMCommunicate OK [01:35:31]SAM_PROTO_GetShiftState done [01:35:31]FM_GetShiftState done [01:35:31]opened in 1719016176 [01:35:31]opened+sec_in_day 1719102576 [01:35:31]quantity*price = 50030 [01:35:31]sum+1 = 50031 [01:35:31]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 СНО: Общий режим Чек 13 22.06.2024 01:35 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104280 ФПД: 189911679005326 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T013533&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104280&fm=189911679005326&tin=02508201610067®Number=0000000000092785&sum=50000 [01:35:32]StoreToDocumentArchive [01:35:32]shift 356 fd 104280 [01:35:32]save to /storage/0356/doc_00104280 [01:35:32]save last doc name /storage/0356/doc_00104280 to /storage/kkm_last_doc_name [01:35:32]save OK [01:35:32]Clear old archive folders... [01:35:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:35:32]tlvbuf is 006EC0B0 [01:35:32]SAM_PROTO_ClearQueue [01:35:32]wFMCommunicate request_size=4 [01:35:32]MH_SAM_APDU [01:35:32]CAPDU: 80 09 00 00 [01:35:32]Write to MH i2c: E2 08 00 3C 1D 80 09 00 00 00 00 00 00 CB [01:35:32]Write i2c OK [01:35:32]MH_I2C_Read... [01:35:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:35:33]Read from MH i2c: E2 [01:35:33]MH_I2C_Read... [01:35:33]Read from MH i2c: E2 03 00 [01:35:33]MH_I2C_Read... [01:35:33]Read from MH i2c: E2 03 00 3C 1D 00 90 00 CD [01:35:33]RAPDU: 90 00 [01:35:33]wFMCommunicate OK [01:35:33]SAM_PROTO_ClearQueue done [01:35:33]KKMCreateOFDPacket [01:35:33]OFDProtocolAddRootSTLVToBuf [01:35:33]FM_MakeSignedData [01:35:33]FM_MakeSignedData [01:35:33]SAM_PROTO_SignData [01:35:33]wFMCommunicate request_size=4 [01:35:33]MH_SAM_APDU [01:35:33]CAPDU: 80 0D 01 02 [01:35:33]Write to MH i2c: E2 08 00 3D 1D 80 0D 01 02 00 00 00 00 D3 [01:35:33]Write i2c OK [01:35:33]MH_I2C_Read... [01:35:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:35:33]Read from MH i2c: E2 [01:35:33]MH_I2C_Read... [01:35:33]Read from MH i2c: E2 03 00 [01:35:33]MH_I2C_Read... [01:35:33]Read from MH i2c: E2 03 00 3D 1D 00 90 00 CE [01:35:33]RAPDU: 90 00 [01:35:33]wFMCommunicate OK [01:35:33]wFMCommunicate request_size=255 [01:35:33]MH_SAM_APDU [01:35: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 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 0D 00 00 00 F4 03 04 00 65 2A 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 AC [01:35:33]Write to MH i2c: E2 02 01 3E 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 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 0D 00 00 00 F4 03 04 00 65 2A 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 AC 00 00 CE [01:35:33]Write i2c OK [01:35:33]MH_I2C_Read... [01:35:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:35:33]Read from MH i2c: E2 [01:35:33]MH_I2C_Read... [01:35:33]Read from MH i2c: E2 03 00 [01:35:33]MH_I2C_Read... [01:35:33]Read from MH i2c: E2 03 00 3E 1D 00 90 00 CF [01:35:33]RAPDU: 90 00 [01:35:33]wFMCommunicate OK [01:35:33]wFMCommunicate request_size=10 [01:35:33]MH_SAM_APDU [01:35:33]CAPDU: 80 0D 02 02 05 B9 42 2A 72 8E [01:35:33]Write to MH i2c: E2 0D 00 3F 1D 80 0D 02 02 05 00 B9 42 2A 72 8E 00 00 05 [01:35:33]Write i2c OK [01:35:33]MH_I2C_Read... [01:35:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:35:33]Read from MH i2c: E2 [01:35:33]MH_I2C_Read... [01:35:33]Read from MH i2c: E2 03 00 [01:35:33]MH_I2C_Read... [01:35:33]Read from MH i2c: E2 03 00 3F 1D 00 90 00 D0 [01:35:33]RAPDU: 90 00 [01:35:33]wFMCommunicate OK [01:35:33]wFMCommunicate request_size=4 [01:35:33]MH_SAM_APDU [01:35:33]CAPDU: 80 0D 03 02 [01:35:33]Write to MH i2c: E2 08 00 40 1D 80 0D 03 02 00 00 00 00 D8 [01:35:33]Write i2c OK [01:35:33]MH_I2C_Read... [01:35:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:35:33]Read from MH i2c: E2 [01:35:33]MH_I2C_Read... [01:35:33]Read from MH i2c: E2 0B 00 [01:35:33]MH_I2C_Read... [01:35:33]Read from MH i2c: E2 0B 00 40 1D 00 64 FE 54 25 01 CE 55 F3 90 00 CB [01:35:33]RAPDU: 64 FE 54 25 01 CE 55 F3 90 00 [01:35:33]wFMCommunicate OK [01:35:33]SAM_PROTO_SignData done [01:35:33]FM_MakeSignedData done [01:35:33]CreateOFDProtocolMessage [01:35:33]wFMCommunicate request_size=4 [01:35:33]MH_SAM_APDU [01:35:33]CAPDU: 80 11 00 00 [01:35:33]Write to MH i2c: E2 08 00 41 1D 80 11 00 00 00 00 00 00 D8 [01:35:33]Write i2c OK [01:35:33]MH_I2C_Read... [01:35:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:35:33]Read from MH i2c: E2 [01:35:33]MH_I2C_Read... [01:35:33]Read from MH i2c: E2 17 00 [01:35:33]MH_I2C_Read... [01:35:33]Read from MH i2c: E2 17 00 41 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 2B [01: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 [01:35:33]wFMCommunicate OK [01:35:33]CreateOFDProtocolMessage done [01:35:33]OFDSenderStorePacket 104280 [01:35:33]StoreOFDPacket docnum=104280 [01:35: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 3C ED 07 01 CC 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 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 0D 00 00 00 F4 03 04 00 65 2A 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 AC B9 42 2A 72 8E 64 FE 54 25 01 CE 55 F3 [01:35:33]CheckFolder [01:35:33]dirname=/storage/ofd_packets [01:35:33]CheckFolder done [01:35:33]ProducePacketName [01:35:33]name=ofd_packets/00104280 [01:35:33]NVStorageSaveData ofd_packets/00104280 [01:35:33]File name is /storage/ofd_packets/00104280 [01:35:33]Write 301 bytes [01:35:33]NVStorageSaveData done [01:35:33]OFDSenderStorePacket done [01:35:33]KKMCreateOFDPacket done [01:35:33]NVStorageSaveData kkm_last_timestamp [01:35:33]File name is /storage/kkm_last_timestamp [01:35:33]Write 4 bytes [01:35:33]NVStorageSaveData done [01:35:33]ExternCall_PrintAddStr [01:35:33]wPrintStart [01:35:33]Write to MH i2c: 01 00 00 42 1D 5F [01:35:33]Write i2c OK [01:35:33]MH_I2C_Read... [01:35:33]Read from MH i2c: 01 [01:35:33]MH_I2C_Read... [01:35:33]Read from MH i2c: 01 07 00 [01:35:33]MH_I2C_Read... [01:35:33]Read from MH i2c: 01 07 00 42 1D 00 00 00 00 00 FF 0F 74 [01:35:33]RasterBufferAndPrint [01:35:33]line Счет N : (1)673769 [01:35:33]line ИНН: 02508201610067 [01:35:33]line Контрольно-Кассовый Чек [01:35:33]line ПРОДАЖА [01:35:33]line ТРК (МРК, ГНК) : 31 [01:35:33]line Товар: 2710124500 [01:35:33]line Аи-95-К-5 [01:35:33]line 6.770 * 73.90 [01:35:33]line = 500.30 [01:35:33]line НДС 12% НСП 1% [01:35:33]line > о реализуемом товаре [01:35:33]line ОКРУГЛЕНИЕ: -0.30 [01:35:33]line ИТОГО: 500.00 [01:35:33]line Внесено: 500.00 [01:35:33]line СДАЧА: 0.00 [01:35:33]line НСП 1% : 4.43 [01:35:33]line НДС 12% : 53.13 [01:35:33]line Наличными: 500.00 [01:35:33]line Безнал.: 0.00 [01:35:33]line Место: АЗС № 120 "Партнер Нефть" [01:35:33]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [01:35:33]line СНО: Общий режим [01:35:33]line Чек 13 22.06.2024 01:35 [01:35:33]line Смена: 356 ФФД: 1.0 [01:35:33]line ЗНМ: 0300000164 [01:35:33]line РНМ: 0000000000092785 [01:35:33]line Версия ККМ: 001 [01:35:33]line ФМ: 0000000000875093 [01:35:33]line ФД: 104280 [01:35:33]line ФПД: 189911679005326 [01:35:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T013533&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104280&fm=189911679005326&tin=02508201610067®Number=0000000000092785&sum=50000 [01:35:33]OFD Sender: Processing packet 104280 [packets to send 17, broken 16] [01:35:33]ProducePacketName [01:35:33]name=ofd_packets/00104280 [01:35:33]OFD Sender: To server: pG, [01:35:33]CommunicateWithHost lk.salyk.kg:30040 [01:35:33]ConnectInit lk.salyk.kg [01:35:33]written 0, free lines is 4095 [01:35:34]Connected sock=11 [01:35: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 3C ED 07 01 CC 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 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 0D 00 00 00 F4 03 04 00 65 2A 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 AC B9 42 2A 72 8E 64 FE 54 25 01 CE 55 F3 [01:35:34]Write to MH i2c: 01 00 00 6D 1D 8A [01:35:34]Write i2c OK [01:35:34]MH_I2C_Read... [01:35:34]Read from MH i2c: 01 [01:35:34]MH_I2C_Read... [01:35:34]Read from MH i2c: 01 07 00 [01:35:34]MH_I2C_Read... [01:35:34]Read from MH i2c: 01 07 00 6D 1D 00 00 00 00 00 E5 0C 82 [01:35:34]RasterBufferAndPrint [01:35:34]line [01:35:34]line [01:35:34]line [01:35:34]line [01:35:34]line [01:35:34]written 0, free lines is 3310 [01:35: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 EE 03 47 00 AC 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 58 97 01 00 F4 03 04 00 E7 D0 75 66 B6 04 01 00 00 4E 2F A1 F3 3D AB 7A AF [01:35:34]CommunicateWithHost err = 0 [01:35:34]CheckOFDResponse [01:35:34]1017 (14) - 77093643461234 [01:35:34]1041 (16) - 0000000000875093 [01:35:34]1040 (4) - 104280 [01:35:34]1012 (4) - 21.06.2024 19:13 [01:35:34]1206 (1) - 0 [01:35:34]OFD Sender: Remove packet 104280 [01:35:34]ProducePacketName [01:35:34]name=ofd_packets/00104280 [01:35:34]NVStorageDeleteData [01:35:34]MH_Cut [01:35:34]Write to MH i2c: D1 01 00 74 1D 01 63 [01:35:34]Write i2c OK [01:35:34]MH_I2C_Read... [01:35:34]Read from MH i2c: D1 [01:35:34]MH_I2C_Read... [01:35:34]Read from MH i2c: D1 01 00 [01:35:34]MH_I2C_Read... [01:35:34]Read from MH i2c: D1 01 00 74 1D 00 62 [01:35:34]Write to MH i2c: 01 00 00 75 1D 92 [01:35:34]Write i2c OK [01:35:34]MH_I2C_Read... [01:35:34]OFD Sender: No OFD packet to send [01:35:35]*** Cut start [01:35:35]*** Partial cut [01:35:35]*** CUTSNS_PIN = 1 [01:35:35]*** CUTSNS_PIN = 0 [01:35:35]*** Brake cut motor [01:35:35]Read from MH i2c: 01 [01:35:35]MH_I2C_Read... [01:35:35]*** Stop cut motor [01:35:35]*** Cut end [01:35:35]Read from MH i2c: 01 07 00 [01:35:35]MH_I2C_Read... [01:35:35]Read from MH i2c: 01 07 00 75 1D 00 00 00 00 00 FF 0F A7 [01:35:35]process_action close_receipt done [01:35:35]requested_data is exist [01:35:35]produce_requested_data [01:35:35]requested_item fm.sn is exist - process it [01:35:35]wFMCommunicate request_size=4 [01:35:35]MH_SAM_APDU [01:35:35]CAPDU: 80 11 00 00 [01:35:35]Write to MH i2c: E2 08 00 76 1D 80 11 00 00 00 00 00 00 0D [01:35:35]Write i2c OK [01:35:35]MH_I2C_Read... [01:35:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:35:35]Read from MH i2c: E2 [01:35:35]MH_I2C_Read... [01:35:35]Read from MH i2c: E2 17 00 [01:35:35]MH_I2C_Read... [01:35:35]Read from MH i2c: E2 17 00 76 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 60 [01:35:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [01:35:35]wFMCommunicate OK [01:35:35]requested_item fd.num is exist - process it [01:35:35]SAM_PROTO_GetFieldsCounters [01:35:35]wFMCommunicate request_size=4 [01:35:35]MH_SAM_APDU [01:35:35]CAPDU: 80 13 00 00 [01:35:35]Write to MH i2c: E2 08 00 77 1D 80 13 00 00 00 00 00 00 10 [01:35:35]Write i2c OK [01:35:35]MH_I2C_Read... [01:35:35]Read from MH i2c: E2 [01:35:35]MH_I2C_Read... [01:35:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:35:35]Read from MH i2c: E2 62 00 [01:35:35]MH_I2C_Read... [01:35:35]Read from MH i2c: E2 62 00 77 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 58 97 01 00 0E 04 04 00 64 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 B3 [01:35:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 [01:35:35]wFMCommunicate OK [01:35:35]SAM_PROTO_GetFieldsCounters done [01:35:35]requested_item shift.num is exist - process it [01:35:35]requested_item shift.opened is exist - process it [01:35:35]req_shift_opened [01:35:35]FM_GetShiftState [01:35:35]SAM_PROTO_GetShiftState [01:35:35]wFMCommunicate request_size=4 [01:35:35]MH_SAM_APDU [01:35:35]CAPDU: 80 13 01 00 [01:35:35]Write to MH i2c: E2 08 00 78 1D 80 13 01 00 00 00 00 00 12 [01:35:35]Write i2c OK [01:35:35]MH_I2C_Read... [01:35:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:35:35]Read from MH i2c: E2 [01:35:35]MH_I2C_Read... [01:35:35]Read from MH i2c: E2 0E 00 [01:35:35]MH_I2C_Read... [01:35:35]Read from MH i2c: E2 0E 00 78 1D 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 04 [01:35:35]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [01:35:35]wFMCommunicate OK [01:35:35]SAM_PROTO_GetShiftState done [01:35:35]FM_GetShiftState done [01:35:35]req_shift_opened done [01:35:35]requested_item shift.open_date is exist - process it [01:35:35]req_shift_open_date [01:35:35]req_shift_open_date done [01:35:35]produce_requested_data done [01:35:35]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104280,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [01:35:35]process_action_free close_receipt [01:35:35]json_value_free [01:35:35]json_value_free done [01:35:35]process_json_proto returns [01:35:35]Send response to host [01:35:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104280,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [01:35:35]free response buf [01:35:35]execute_script done [01:35:35]execute_script returns [01:35:35]free content buf [01:35:35]Sock 7.Close socket [01:35:35]Sock 7.Thread stoped [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:38:00]OFD Sender: No OFD packet to send [01:38:05]OFD Sender: No OFD packet to send [01:38:10]OFD Sender: No OFD packet to send [01:38:15]OFD Sender: No OFD packet to send [01:38:20]OFD Sender: No OFD packet to send [01:38:25]OFD Sender: No OFD packet to send [01:38:30]OFD Sender: No OFD packet to send [01:38:35]OFD Sender: No OFD packet to send [01:38:40]OFD Sender: No OFD packet to send [01:38:45]OFD Sender: No OFD packet to send [01:38:50]OFD Sender: No OFD packet to send [01:38:55]OFD Sender: No OFD packet to send [01:39:00]OFD Sender: No OFD packet to send [01:39:05]OFD Sender: No OFD packet to send [01:39:10]OFD Sender: No OFD packet to send [01:39:15]OFD Sender: No OFD packet to send [01:39:20]OFD Sender: No OFD packet to send [01:39:25]OFD Sender: No OFD packet to send [01:39:30]OFD Sender: No OFD packet to send [01:39:35]OFD Sender: No OFD packet to send [01:39:40]OFD Sender: No OFD packet to send [01:39:45]OFD Sender: No OFD packet to send [01:39:50]OFD Sender: No OFD packet to send [01:39:55]OFD Sender: No OFD packet to send [01:40:00]OFD Sender: No OFD packet to send [01:40:05]OFD Sender: No OFD packet to send [01:40:10]OFD Sender: No OFD packet to send [01:40:15]OFD Sender: No OFD packet to send [01:40:20]OFD Sender: No OFD packet to send [01:40:25]OFD Sender: No OFD packet to send [01:40:30]OFD Sender: No OFD packet to send [01:40:35]OFD Sender: No OFD packet to send [01:40:40]OFD Sender: No OFD packet to send [01:40:45]OFD Sender: No OFD packet to send [01:40:50]OFD Sender: No OFD packet to send [01:40:55]OFD Sender: No OFD packet to send [01:41:00]OFD Sender: No OFD packet to send [01:41:05]OFD Sender: No OFD packet to send [01:41:10]OFD Sender: No OFD packet to send [01:41:15]OFD Sender: No OFD packet to send [01:41:20]OFD Sender: No OFD packet to send [01:41:25]OFD Sender: No OFD packet to send [01:41:30]OFD Sender: No OFD packet to send [01:41:35]OFD Sender: No OFD packet to send [01:41:40]OFD Sender: No OFD packet to send [01:41:45]OFD Sender: No OFD packet to send [01:41:50]OFD Sender: No OFD packet to send [01:41:55]OFD Sender: No OFD packet to send [01:42:00]OFD Sender: No OFD packet to send [01:42:05]OFD Sender: No OFD packet to send [01:42:10]OFD Sender: No OFD packet to send [01:42:15]OFD Sender: No OFD packet to send [01:42:20]OFD Sender: No OFD packet to send [01:42:25]OFD Sender: No OFD packet to send [01:42:30]OFD Sender: No OFD packet to send [01:42:35]OFD Sender: No OFD packet to send [01:42:40]OFD Sender: No OFD packet to send [01:42:45]OFD Sender: No OFD packet to send [01:42:50]OFD Sender: No OFD packet to send [01:42:55]OFD Sender: No OFD packet to send [01:43:00]OFD Sender: No OFD packet to send [01:43:05]OFD Sender: No OFD packet to send [01:43:10]OFD Sender: No OFD packet to send [01:43:15]OFD Sender: No OFD packet to send [01:43:20]OFD Sender: No OFD packet to send [01:43:25]OFD Sender: No OFD packet to send [01:43:30]OFD Sender: No OFD packet to send [01:43:35]OFD Sender: No OFD packet to send [01:43:40]OFD Sender: No OFD packet to send [01:43:45]OFD Sender: No OFD packet to send [01:43:50]OFD Sender: No OFD packet to send [01:43:55]OFD Sender: No OFD packet to send [01:44:00]OFD Sender: No OFD packet to send [01:44:05]OFD Sender: No OFD packet to send [01:44:10]OFD Sender: No OFD packet to send [01:44:15]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:41]OFD Sender: No OFD packet to send [01:58:46]OFD Sender: No OFD packet to send [01:58:51]OFD Sender: No OFD packet to send [01:58:56]OFD Sender: No OFD packet to send [01:59:01]OFD Sender: No OFD packet to send [01:59:06]OFD Sender: No OFD packet to send [01:59:11]OFD Sender: No OFD packet to send [01:59:16]OFD Sender: No OFD packet to send [01:59:21]OFD Sender: No OFD packet to send [01:59:26]OFD Sender: No OFD packet to send [01:59:31]OFD Sender: No OFD packet to send [01:59:36]OFD Sender: No OFD packet to send [01:59:41]OFD Sender: No OFD packet to send [01:59:46]OFD Sender: No OFD packet to send [01:59:51]OFD Sender: No OFD packet to send [01:59:56]OFD Sender: No OFD packet to send [02:00:01]OFD Sender: No OFD packet to send [02:00:06]OFD Sender: No OFD packet to send [02:00:11]OFD Sender: No OFD packet to send [02:00:16]OFD Sender: No OFD packet to send [02:00:21]OFD Sender: No OFD packet to send [02:00:26]OFD Sender: No OFD packet to send [02:00:31]OFD Sender: No OFD packet to send [02:00:36]OFD Sender: No OFD packet to send [02:00:41]OFD Sender: No OFD packet to send [02:00:46]OFD Sender: No OFD packet to send [02:00:51]OFD Sender: No OFD packet to send [02:00:56]OFD Sender: No OFD packet to send [02:01:01]OFD Sender: No OFD packet to send [02:01:06]OFD Sender: No OFD packet to send [02:01:11]OFD Sender: No OFD packet to send [02:01:16]OFD Sender: No OFD packet to send [02:01:21]OFD Sender: No OFD packet to send [02:01:26]OFD Sender: No OFD packet to send [02:01:31]OFD Sender: No OFD packet to send [02:01:36]OFD Sender: No OFD packet to send [02:01:41]OFD Sender: No OFD packet to send [02:01:46]OFD Sender: No OFD packet to send [02:01:51]OFD Sender: No OFD packet to send [02:01:56]OFD Sender: No OFD packet to send [02:02:01]OFD Sender: No OFD packet to send [02:02:06]OFD Sender: No OFD packet to send [02:02:11]OFD Sender: No OFD packet to send [02:02:16]OFD Sender: No OFD packet to send [02:02:21]OFD Sender: No OFD packet to send [02:02:26]OFD Sender: No OFD packet to send [02:02:31]OFD Sender: No OFD packet to send [02:02:36]OFD Sender: No OFD packet to send [02:02:41]OFD Sender: No OFD packet to send [02:02:46]OFD Sender: No OFD packet to send [02:02:51]OFD Sender: No OFD packet to send [02:02:56]OFD Sender: No OFD packet to send [02:03:01]OFD Sender: No OFD packet to send [02:03:06]OFD Sender: No OFD packet to send [02:03:11]OFD Sender: No OFD packet to send [02:03:16]OFD Sender: No OFD packet to send [02:03:21]OFD Sender: No OFD packet to send [02:03:26]OFD Sender: No OFD packet to send [02:03:31]OFD Sender: No OFD packet to send [02:03:36]OFD Sender: No OFD packet to send [02:03:41]OFD Sender: No OFD packet to send [02:03:46]OFD Sender: No OFD packet to send [02:03:51]OFD Sender: No OFD packet to send [02:03:56]OFD Sender: No OFD packet to send [02:04:01]OFD Sender: No OFD packet to send [02:04:06]OFD Sender: No OFD packet to send [02:04:11]OFD Sender: No OFD packet to send [02:04:16]OFD Sender: No OFD packet to send [02:04:21]OFD Sender: No OFD packet to send [02:04:26]OFD Sender: No OFD packet to send [02:04:31]OFD Sender: No OFD packet to send [02:04:36]OFD Sender: No OFD packet to send [02:04:41]OFD Sender: No OFD packet to send [02:04:46]OFD Sender: No OFD packet to send [02:04:51]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:17]OFD Sender: No OFD packet to send [02:19:22]OFD Sender: No OFD packet to send [02:19:27]OFD Sender: No OFD packet to send [02:19:32]OFD Sender: No OFD packet to send [02:19:37]OFD Sender: No OFD packet to send [02:19:42]OFD Sender: No OFD packet to send [02:19:47]OFD Sender: No OFD packet to send [02:19:52]OFD Sender: No OFD packet to send [02:19:57]OFD Sender: No OFD packet to send [02:20:02]OFD Sender: No OFD packet to send [02:20:07]OFD Sender: No OFD packet to send [02:20:12]OFD Sender: No OFD packet to send [02:20:17]OFD Sender: No OFD packet to send [02:20:22]OFD Sender: No OFD packet to send [02:20:27]OFD Sender: No OFD packet to send [02:20:32]OFD Sender: No OFD packet to send [02:20:37]OFD Sender: No OFD packet to send [02:20:42]OFD Sender: No OFD packet to send [02:20:47]OFD Sender: No OFD packet to send [02:20:52]OFD Sender: No OFD packet to send [02:20:57]OFD Sender: No OFD packet to send [02:21:02]OFD Sender: No OFD packet to send [02:21:07]OFD Sender: No OFD packet to send [02:21:12]OFD Sender: No OFD packet to send [02:21:17]OFD Sender: No OFD packet to send [02:21:22]OFD Sender: No OFD packet to send [02:21:27]OFD Sender: No OFD packet to send [02:21:32]OFD Sender: No OFD packet to send [02:21:37]OFD Sender: No OFD packet to send [02:21:42]OFD Sender: No OFD packet to send [02:21:47]OFD Sender: No OFD packet to send [02:21:52]OFD Sender: No OFD packet to send [02:21:57]OFD Sender: No OFD packet to send [02:22:02]OFD Sender: No OFD packet to send [02:22:07]OFD Sender: No OFD packet to send [02:22:12]OFD Sender: No OFD packet to send [02:22:17]OFD Sender: No OFD packet to send [02:22:22]OFD Sender: No OFD packet to send [02:22:27]OFD Sender: No OFD packet to send [02:22:32]OFD Sender: No OFD packet to send [02:22:37]OFD Sender: No OFD packet to send [02:22:42]OFD Sender: No OFD packet to send [02:22:47]OFD Sender: No OFD packet to send [02:22:52]OFD Sender: No OFD packet to send [02:22:57]OFD Sender: No OFD packet to send [02:23:02]OFD Sender: No OFD packet to send [02:23:07]OFD Sender: No OFD packet to send [02:23:12]OFD Sender: No OFD packet to send [02:23:17]OFD Sender: No OFD packet to send [02:23:22]OFD Sender: No OFD packet to send [02:23:27]OFD Sender: No OFD packet to send [02:23:32]OFD Sender: No OFD packet to send [02:23:37]OFD Sender: No OFD packet to send [02:23:42]OFD Sender: No OFD packet to send [02:23:47]OFD Sender: No OFD packet to send [02:23:52]OFD Sender: No OFD packet to send [02:23:57]OFD Sender: No OFD packet to send [02:24:02]OFD Sender: No OFD packet to send [02:24:07]OFD Sender: No OFD packet to send [02:24:12]OFD Sender: No OFD packet to send [02:24:17]OFD Sender: No OFD packet to send [02:24:22]OFD Sender: No OFD packet to send [02:24:27]OFD Sender: No OFD packet to send [02:24:32]OFD Sender: No OFD packet to send [02:24:37]OFD Sender: No OFD packet to send [02:24:42]OFD Sender: No OFD packet to send [02:24:47]OFD Sender: No OFD packet to send [02:24:52]OFD Sender: No OFD packet to send [02:24:57]OFD Sender: No OFD packet to send [02:25:02]OFD Sender: No OFD packet to send [02:25:07]OFD Sender: No OFD packet to send [02:25:12]OFD Sender: No OFD packet to send [02:25:17]OFD Sender: No OFD packet to send [02:25:22]OFD Sender: No OFD packet to send [02:25:27]OFD Sender: No OFD packet to send [02:25:32]OFD Sender: No OFD packet to send [02:25:37]OFD Sender: No OFD packet to send [02:25:42]OFD Sender: No OFD packet to send [02:25:47]OFD Sender: No OFD packet to send [02:25:52]OFD Sender: No OFD packet to send [02:25:57]OFD Sender: No OFD packet to send [02:26:02]OFD Sender: No OFD packet to send [02:26:07]OFD Sender: No OFD packet to send [02:26:12]OFD Sender: No OFD packet to send [02:26:17]OFD Sender: No OFD packet to send [02:26:22]OFD Sender: No OFD packet to send [02:26:27]OFD Sender: No OFD packet to send [02:26:32]OFD Sender: No OFD packet to send [02:26:37]OFD Sender: No OFD packet to send [02:26:42]OFD Sender: No OFD packet to send [02:26:47]OFD Sender: No OFD packet to send [02:26:52]OFD Sender: No OFD packet to send [02:26:57]OFD Sender: No OFD packet to send [02:27:02]OFD Sender: No OFD packet to send [02:27:07]OFD Sender: No OFD packet to send [02:27:12]OFD Sender: No OFD packet to send [02:27:17]OFD Sender: No OFD packet to send [02:27:22]OFD Sender: No OFD packet to send [02:27:27]OFD Sender: No OFD packet to send [02:27:32]OFD Sender: No OFD packet to send [02:27:37]OFD Sender: No OFD packet to send [02:27:42]OFD Sender: No OFD packet to send [02:27:47]OFD Sender: No OFD packet to send [02:27:52]OFD Sender: No OFD packet to send [02:27:57]OFD Sender: No OFD packet to send [02:28:02]OFD Sender: No OFD packet to send [02:28:07]OFD Sender: No OFD packet to send [02:28:12]OFD Sender: No OFD packet to send [02:28:17]OFD Sender: No OFD packet to send [02:28:22]OFD Sender: No OFD packet to send [02:28:27]OFD Sender: No OFD packet to send [02:28:32]OFD Sender: No OFD packet to send [02:28:37]OFD Sender: No OFD packet to send [02:28:42]OFD Sender: No OFD packet to send [02:28:47]OFD Sender: No OFD packet to send [02:28:52]OFD Sender: No OFD packet to send [02:28:57]OFD Sender: No OFD packet to send [02:29:02]OFD Sender: No OFD packet to send [02:29:07]OFD Sender: No OFD packet to send [02:29:12]OFD Sender: No OFD packet to send [02:29:17]OFD Sender: No OFD packet to send [02:29:22]OFD Sender: No OFD packet to send [02:29:27]OFD Sender: No OFD packet to send [02:29:32]OFD Sender: No OFD packet to send [02:29:37]OFD Sender: No OFD packet to send [02:29:42]OFD Sender: No OFD packet to send [02:29:47]OFD Sender: No OFD packet to send [02:29:52]OFD Sender: No OFD packet to send [02:29:57]OFD Sender: No OFD packet to send [02:30:02]OFD Sender: No OFD packet to send [02:30:07]OFD Sender: No OFD packet to send [02:30:12]OFD Sender: No OFD packet to send [02:30:17]OFD Sender: No OFD packet to send [02:30:22]OFD Sender: No OFD packet to send [02:30:27]OFD Sender: No OFD packet to send [02:30:32]OFD Sender: No OFD packet to send [02:30:37]OFD Sender: No OFD packet to send [02:30:42]OFD Sender: No OFD packet to send [02:30:47]OFD Sender: No OFD packet to send [02:30:52]OFD Sender: No OFD packet to send [02:30:57]OFD Sender: No OFD packet to send [02:31:02]OFD Sender: No OFD packet to send [02:31:07]OFD Sender: No OFD packet to send [02:31:12]OFD Sender: No OFD packet to send [02:31:17]OFD Sender: No OFD packet to send [02:31:22]OFD Sender: No OFD packet to send [02:31:27]OFD Sender: No OFD packet to send [02:31:32]OFD Sender: No OFD packet to send [02:31:37]OFD Sender: No OFD packet to send [02:31:42]OFD Sender: No OFD packet to send [02:31:47]OFD Sender: No OFD packet to send [02:31:52]OFD Sender: No OFD packet to send [02:31:57]OFD Sender: No OFD packet to send [02:32:02]OFD Sender: No OFD packet to send [02:32:07]OFD Sender: No OFD packet to send [02:32:12]OFD Sender: No OFD packet to send [02:32:17]OFD Sender: No OFD packet to send [02:32:22]OFD Sender: No OFD packet to send [02:32:27]OFD Sender: No OFD packet to send [02:32:32]OFD Sender: No OFD packet to send [02:32:37]OFD Sender: No OFD packet to send [02:32:42]OFD Sender: No OFD packet to send [02:32:47]OFD Sender: No OFD packet to send [02:32:52]OFD Sender: No OFD packet to send [02:32:57]OFD Sender: No OFD packet to send [02:33:02]OFD Sender: No OFD packet to send [02:33:07]OFD Sender: No OFD packet to send [02:33:12]OFD Sender: No OFD packet to send [02:33:17]OFD Sender: No OFD packet to send [02:33:22]OFD Sender: No OFD packet to send [02:33:27]OFD Sender: No OFD packet to send [02:33:32]OFD Sender: No OFD packet to send [02:33:37]OFD Sender: No OFD packet to send [02:33:42]OFD Sender: No OFD packet to send [02:33:47]OFD Sender: No OFD packet to send [02:33:52]OFD Sender: No OFD packet to send [02:33:57]OFD Sender: No OFD packet to send [02:34:02]OFD Sender: No OFD packet to send [02:34:07]OFD Sender: No OFD packet to send [02:34:12]OFD Sender: No OFD packet to send [02:34:17]OFD Sender: No OFD packet to send [02:34:22]OFD Sender: No OFD packet to send [02:34:27]OFD Sender: No OFD packet to send [02:34:32]OFD Sender: No OFD packet to send [02:34:37]OFD Sender: No OFD packet to send [02:34:42]OFD Sender: No OFD packet to send [02:34:47]OFD Sender: No OFD packet to send [02:34:52]OFD Sender: No OFD packet to send [02:34:57]OFD Sender: No OFD packet to send [02:35:02]OFD Sender: No OFD packet to send [02:35:07]OFD Sender: No OFD packet to send [02:35:12]OFD Sender: No OFD packet to send [02:35:17]OFD Sender: No OFD packet to send [02:35:22]OFD Sender: No OFD packet to send [02:35:27]OFD Sender: No OFD packet to send [02:35:32]OFD Sender: No OFD packet to send [02:35:37]OFD Sender: No OFD packet to send [02:35:42]OFD Sender: No OFD packet to send [02:35:47]OFD Sender: No OFD packet to send [02:35:52]OFD Sender: No OFD packet to send [02:35:57]OFD Sender: No OFD packet to send [02:36:02]OFD Sender: No OFD packet to send [02:36:07]OFD Sender: No OFD packet to send [02:36:12]OFD Sender: No OFD packet to send [02:36:17]OFD Sender: No OFD packet to send [02:36:22]OFD Sender: No OFD packet to send [02:36:27]OFD Sender: No OFD packet to send [02:36:32]OFD Sender: No OFD packet to send [02:36:37]OFD Sender: No OFD packet to send [02:36:42]OFD Sender: No OFD packet to send [02:36:47]OFD Sender: No OFD packet to send [02:36:52]OFD Sender: No OFD packet to send [02:36:57]OFD Sender: No OFD packet to send [02:37:02]OFD Sender: No OFD packet to send [02:37:07]OFD Sender: No OFD packet to send [02:37:12]OFD Sender: No OFD packet to send [02:37:17]OFD Sender: No OFD packet to send [02:37:22]OFD Sender: No OFD packet to send [02:37:27]OFD Sender: No OFD packet to send [02:37:32]OFD Sender: No OFD packet to send [02:37:37]OFD Sender: No OFD packet to send [02:37:42]OFD Sender: No OFD packet to send [02:37:47]OFD Sender: No OFD packet to send [02:37:52]OFD Sender: No OFD packet to send [02:37:57]OFD Sender: No OFD packet to send [02:38:02]OFD Sender: No OFD packet to send [02:38:07]OFD Sender: No OFD packet to send [02:38:12]OFD Sender: No OFD packet to send [02:38:17]OFD Sender: No OFD packet to send [02:38:22]OFD Sender: No OFD packet to send [02:38:27]OFD Sender: No OFD packet to send [02:38:32]OFD Sender: No OFD packet to send [02:38:37]OFD Sender: No OFD packet to send [02:38:42]OFD Sender: No OFD packet to send [02:38:47]OFD Sender: No OFD packet to send [02:38:52]OFD Sender: No OFD packet to send [02:38:57]OFD Sender: No OFD packet to send [02:39:02]OFD Sender: No OFD packet to send [02:39:07]OFD Sender: No OFD packet to send [02:39:12]OFD Sender: No OFD packet to send [02:39:17]OFD Sender: No OFD packet to send [02:39:22]OFD Sender: No OFD packet to send [02:39:27]OFD Sender: No OFD packet to send [02:39:32]OFD Sender: No OFD packet to send [02:39:37]OFD Sender: No OFD packet to send [02:39:42]OFD Sender: No OFD packet to send [02:39:47]OFD Sender: No OFD packet to send [02:39:52]OFD Sender: No OFD packet to send [02:39:57]OFD Sender: No OFD packet to send [02:40:03]OFD Sender: No OFD packet to send [02:40:08]OFD Sender: No OFD packet to send [02:40:13]OFD Sender: No OFD packet to send [02:40:18]OFD Sender: No OFD packet to send [02:40:23]OFD Sender: No OFD packet to send [02:40:28]OFD Sender: No OFD packet to send [02:40:33]OFD Sender: No OFD packet to send [02:40:38]OFD Sender: No OFD packet to send [02:40:43]OFD Sender: No OFD packet to send [02:40:48]OFD Sender: No OFD packet to send [02:40:53]OFD Sender: No OFD packet to send [02:40:58]OFD Sender: No OFD packet to send [02:41:03]OFD Sender: No OFD packet to send [02:41:08]OFD Sender: No OFD packet to send [02:41:13]OFD Sender: No OFD packet to send [02:41:18]OFD Sender: No OFD packet to send [02:41:23]OFD Sender: No OFD packet to send [02:41:28]OFD Sender: No OFD packet to send [02:41:33]OFD Sender: No OFD packet to send [02:41:38]OFD Sender: No OFD packet to send [02:41:43]OFD Sender: No OFD packet to send [02:41:48]OFD Sender: No OFD packet to send [02:41:53]OFD Sender: No OFD packet to send [02:41:58]OFD Sender: No OFD packet to send [02:42:03]OFD Sender: No OFD packet to send [02:42:08]OFD Sender: No OFD packet to send [02:42:13]OFD Sender: No OFD packet to send [02:42:18]OFD Sender: No OFD packet to send [02:42:23]OFD Sender: No OFD packet to send [02:42:28]OFD Sender: No OFD packet to send [02:42:33]OFD Sender: No OFD packet to send [02:42:38]OFD Sender: No OFD packet to send [02:42:43]OFD Sender: No OFD packet to send [02:42:48]OFD Sender: No OFD packet to send [02:42:53]OFD Sender: No OFD packet to send [02:42:58]OFD Sender: No OFD packet to send [02:43:03]OFD Sender: No OFD packet to send [02:43:08]OFD Sender: No OFD packet to send [02:43:13]OFD Sender: No OFD packet to send [02:43:18]OFD Sender: No OFD packet to send [02:43:23]OFD Sender: No OFD packet to send [02:43:28]OFD Sender: No OFD packet to send [02:43:33]OFD Sender: No OFD packet to send [02:43:38]OFD Sender: No OFD packet to send [02:43:43]OFD Sender: No OFD packet to send [02:43:48]OFD Sender: No OFD packet to send [02:43:53]OFD Sender: No OFD packet to send [02:43:58]OFD Sender: No OFD packet to send [02:44:03]OFD Sender: No OFD packet to send [02:44:08]OFD Sender: No OFD packet to send [02:44:13]OFD Sender: No OFD packet to send [02:44:18]OFD Sender: No OFD packet to send [02:44:23]OFD Sender: No OFD packet to send [02:44:28]OFD Sender: No OFD packet to send [02:44:33]OFD Sender: No OFD packet to send [02:44:38]OFD Sender: No OFD packet to send [02:44:43]OFD Sender: No OFD packet to send [02:44:48]OFD Sender: No OFD packet to send [02:44:53]OFD Sender: No OFD packet to send [02:44:58]OFD Sender: No OFD packet to send [02:45:03]OFD Sender: No OFD packet to send [02:45:08]OFD Sender: No OFD packet to send [02:45:13]OFD Sender: No OFD packet to send [02:45:18]OFD Sender: No OFD packet to send [02:45:23]OFD Sender: No OFD packet to send [02:45:28]OFD Sender: No OFD packet to send [02:45:33]OFD Sender: No OFD packet to send [02:45:38]OFD Sender: No OFD packet to send [02:45:43]OFD Sender: No OFD packet to send [02:45:48]OFD Sender: No OFD packet to send [02:45:53]OFD Sender: No OFD packet to send [02:45:58]OFD Sender: No OFD packet to send [02:46:03]OFD Sender: No OFD packet to send [02:46:08]OFD Sender: No OFD packet to send [02:46:13]OFD Sender: No OFD packet to send [02:46:18]OFD Sender: No OFD packet to send [02:46:23]OFD Sender: No OFD packet to send [02:46:28]OFD Sender: No OFD packet to send [02:46:33]OFD Sender: No OFD packet to send [02:46:38]OFD Sender: No OFD packet to send [02:46:43]OFD Sender: No OFD packet to send [02:46:48]OFD Sender: No OFD packet to send [02:46:53]OFD Sender: No OFD packet to send [02:46:58]OFD Sender: No OFD packet to send [02:47:03]OFD Sender: No OFD packet to send [02:47:08]OFD Sender: No OFD packet to send [02:47:13]OFD Sender: No OFD packet to send [02:47:18]OFD Sender: No OFD packet to send [02:47:23]OFD Sender: No OFD packet to send [02:47:28]OFD Sender: No OFD packet to send [02:47:33]OFD Sender: No OFD packet to send [02:47:38]OFD Sender: No OFD packet to send [02:47:43]OFD Sender: No OFD packet to send [02:47:48]OFD Sender: No OFD packet to send [02:47:53]OFD Sender: No OFD packet to send [02:47:58]OFD Sender: No OFD packet to send [02:48:03]OFD Sender: No OFD packet to send [02:48:08]OFD Sender: No OFD packet to send [02:48:13]OFD Sender: No OFD packet to send [02:48:18]OFD Sender: No OFD packet to send [02:48:23]OFD Sender: No OFD packet to send [02:48:28]OFD Sender: No OFD packet to send [02:48:29]accept exits with 9 [02:48:29]New connection [02:48:29]New thread 3067473252 created [02:48:29]Thread 3067616612 joined [02:48:29]Waiting for new connection... [02:48:29] Sock 9.Parse request [02:48:29]Sock 9.Check first char [02:48:29]Sock 9.First char is OK [02:48:29]request: POST /json_proto HTTP/1.0 [02:48:29]Method: POST [02:48:29]URL: /json_proto [02:48:29]Method is POST - this is cgi request [02:48:29]url: /json_proto [02:48:29]query_string will be loaded in cgi processing [02:48:29]execute_cgi json_proto POST (null) [02:48:29]execute_cgi path=json_proto method=POST [02:48:29]POST find Content-Length [02:48:29]Host: 172.17.38.133:8080 [02:48:29]Content-Length: 816 [02:48:29]Content-Type: application/json [02:48:29] [02:48:29]POST finish read [02:48:29]Found Content-Length = 816 [02:48:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673771", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 400.39 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:48:29]execute_script... [02:48: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)673771", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 400.39 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:48:29]POST & json_proto [02:48:29]process_json_proto [02:48:29]json parsed OK: [02:48:29]protocol is kg_v1.0 [02:48:29]action value=close_receipt [02:48:29]process_action close_receipt [02:48:29]cmd_close_receipt [02:48:29]MH_GetDate [02:48:29]Write to MH i2c: F0 00 00 79 1D 85 [02:48:29]Write i2c OK [02:48:29]MH_I2C_Read... [02:48:29]Read from MH i2c: F0 [02:48:29]MH_I2C_Read... [02:48:29]Read from MH i2c: F0 09 00 [02:48:29]MH_I2C_Read... [02:48:29]Read from MH i2c: F0 09 00 79 1D 00 80 3B 76 66 BD 8F 7C 64 51 [02:48:29]GetLastDocTimeStamp 1719020133 [02:48:29]current date 1719024512 [02:48:29]FM_GetShiftState [02:48:29]SAM_PROTO_GetShiftState [02:48:29]wFMCommunicate request_size=4 [02:48:29]MH_SAM_APDU [02:48:29]CAPDU: 80 13 01 00 [02:48:29]Write to MH i2c: E2 08 00 7A 1D 80 13 01 00 00 00 00 00 14 [02:48:29]Write i2c OK [02:48:29]MH_I2C_Read... [02:48:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:48:30]Read from MH i2c: E2 [02:48:30]MH_I2C_Read... [02:48:30]Read from MH i2c: E2 0E 00 [02:48:30]MH_I2C_Read... [02:48:30]Read from MH i2c: E2 0E 00 7A 1D 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 06 [02:48:30]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [02:48:30]wFMCommunicate OK [02:48:30]SAM_PROTO_GetShiftState done [02:48:30]FM_GetShiftState done [02:48:30]opened in 1719016176 [02:48:30]opened+sec_in_day 1719102576 [02:48:30]quantity*price = 40039 [02:48:30]sum+1 = 40040 [02:48:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 400.39 НСП 1% : 3.54 НДС 12% : 42.52 Наличными: 0.00 Безнал.: 400.39 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 14 22.06.2024 02:48 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875093 ФД: 104281 ФПД: 62526123204012 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T024832&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104281&fm=62526123204012&tin=02508201610067®Number=0000000000092785&sum=40039 [02:48:31]StoreToDocumentArchive [02:48:31]shift 356 fd 104281 [02:48:31]save to /storage/0356/doc_00104281 [02:48:31]save last doc name /storage/0356/doc_00104281 to /storage/kkm_last_doc_name [02:48:31]save OK [02:48:31]Clear old archive folders... [02:48:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [02:48:31]tlvbuf is 00695D00 [02:48:31]SAM_PROTO_ClearQueue [02:48:31]wFMCommunicate request_size=4 [02:48:31]MH_SAM_APDU [02:48:31]CAPDU: 80 09 00 00 [02:48:31]Write to MH i2c: E2 08 00 87 1D 80 09 00 00 00 00 00 00 16 [02:48:31]Write i2c OK [02:48:31]MH_I2C_Read... [02:48:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:48:31]Read from MH i2c: E2 [02:48:31]MH_I2C_Read... [02:48:31]Read from MH i2c: E2 03 00 [02:48:31]MH_I2C_Read... [02:48:31]Read from MH i2c: E2 03 00 87 1D 00 90 00 18 [02:48:31]RAPDU: 90 00 [02:48:31]wFMCommunicate OK [02:48:31]SAM_PROTO_ClearQueue done [02:48:31]KKMCreateOFDPacket [02:48:31]OFDProtocolAddRootSTLVToBuf [02:48:31]FM_MakeSignedData [02:48:31]FM_MakeSignedData [02:48:31]SAM_PROTO_SignData [02:48:31]wFMCommunicate request_size=4 [02:48:31]MH_SAM_APDU [02:48:31]CAPDU: 80 0D 01 02 [02:48:31]Write to MH i2c: E2 08 00 88 1D 80 0D 01 02 00 00 00 00 1E [02:48:31]Write i2c OK [02:48:31]MH_I2C_Read... [02:48:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:48:31]Read from MH i2c: E2 [02:48:31]MH_I2C_Read... [02:48:31]Read from MH i2c: E2 03 00 [02:48:31]MH_I2C_Read... [02:48:31]Read from MH i2c: E2 03 00 88 1D 00 90 00 19 [02:48:31]RAPDU: 90 00 [02:48:31]wFMCommunicate OK [02:48:31]wFMCommunicate request_size=255 [02:48:31]MH_SAM_APDU [02:48: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 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 67 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 00 00 00 00 00 00 39 04 06 00 67 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 80 3B 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 38 [02:48:31]Write to MH i2c: E2 02 01 89 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 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 67 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 00 00 00 00 00 00 39 04 06 00 67 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 80 3B 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 38 00 00 27 [02:48:31]Write i2c OK [02:48:31]MH_I2C_Read... [02:48:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:48:31]Read from MH i2c: E2 [02:48:31]MH_I2C_Read... [02:48:31]Read from MH i2c: E2 03 00 [02:48:31]MH_I2C_Read... [02:48:31]Read from MH i2c: E2 03 00 89 1D 00 90 00 1A [02:48:31]RAPDU: 90 00 [02:48:31]wFMCommunicate OK [02:48:31]wFMCommunicate request_size=10 [02:48:31]MH_SAM_APDU [02:48:31]CAPDU: 80 0D 02 02 05 DD FF 5C DD AC [02:48:31]Write to MH i2c: E2 0D 00 8A 1D 80 0D 02 02 05 00 DD FF 5C DD AC 00 00 EC [02:48:31]Write i2c OK [02:48:31]MH_I2C_Read... [02:48:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:48:31]Read from MH i2c: E2 [02:48:31]MH_I2C_Read... [02:48:31]Read from MH i2c: E2 03 00 [02:48:31]MH_I2C_Read... [02:48:31]Read from MH i2c: E2 03 00 8A 1D 00 90 00 1B [02:48:31]RAPDU: 90 00 [02:48:31]wFMCommunicate OK [02:48:31]wFMCommunicate request_size=4 [02:48:31]MH_SAM_APDU [02:48:31]CAPDU: 80 0D 03 02 [02:48:31]Write to MH i2c: E2 08 00 8B 1D 80 0D 03 02 00 00 00 00 23 [02:48:31]Write i2c OK [02:48:31]MH_I2C_Read... [02:48:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:48:31]Read from MH i2c: E2 [02:48:31]MH_I2C_Read... [02:48:31]Read from MH i2c: E2 0B 00 [02:48:31]MH_I2C_Read... [02:48:31]Read from MH i2c: E2 0B 00 8B 1D 00 D2 9B 59 9D 8F E4 94 73 90 00 01 [02:48:31]RAPDU: D2 9B 59 9D 8F E4 94 73 90 00 [02:48:31]wFMCommunicate OK [02:48:31]SAM_PROTO_SignData done [02:48:31]FM_MakeSignedData done [02:48:31]CreateOFDProtocolMessage [02:48:31]wFMCommunicate request_size=4 [02:48:31]MH_SAM_APDU [02:48:31]CAPDU: 80 11 00 00 [02:48:31]Write to MH i2c: E2 08 00 8C 1D 80 11 00 00 00 00 00 00 23 [02:48:31]Write i2c OK [02:48:31]MH_I2C_Read... [02:48:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:48:31]Read from MH i2c: E2 [02:48:31]MH_I2C_Read... [02:48:31]Read from MH i2c: E2 17 00 [02:48:31]MH_I2C_Read... [02:48:31]Read from MH i2c: E2 17 00 8C 1D 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:48:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [02:48:31]wFMCommunicate OK [02:48:31]CreateOFDProtocolMessage done [02:48:31]OFDSenderStorePacket 104281 [02:48:31]StoreOFDPacket docnum=104281 [02:48: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 21 33 07 01 9C 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 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 67 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 00 00 00 00 00 00 39 04 06 00 67 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 80 3B 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 38 DD FF 5C DD AC D2 9B 59 9D 8F E4 94 73 [02:48:31]CheckFolder [02:48:31]dirname=/storage/ofd_packets [02:48:31]CheckFolder done [02:48:31]ProducePacketName [02:48:31]name=ofd_packets/00104281 [02:48:31]NVStorageSaveData ofd_packets/00104281 [02:48:31]File name is /storage/ofd_packets/00104281 [02:48:31]Write 301 bytes [02:48:31]NVStorageSaveData done [02:48:31]OFDSenderStorePacket done [02:48:31]KKMCreateOFDPacket done [02:48:31]NVStorageSaveData kkm_last_timestamp [02:48:31]File name is /storage/kkm_last_timestamp [02:48:31]Write 4 bytes [02:48:31]NVStorageSaveData done [02:48:31]ExternCall_PrintAddStr [02:48:31]wPrintStart [02:48:31]Write to MH i2c: 01 00 00 8D 1D AA [02:48:31]Write i2c OK [02:48:31]MH_I2C_Read... [02:48:31]Read from MH i2c: 01 [02:48:31]MH_I2C_Read... [02:48:31]Read from MH i2c: 01 07 00 [02:48:31]MH_I2C_Read... [02:48:31]Read from MH i2c: 01 07 00 8D 1D 00 00 00 00 00 FF 0F BF [02:48:31]RasterBufferAndPrint [02:48:31]line Счет N : (1)673771 [02:48:31]line ИНН: 02508201610067 [02:48:31]line Контрольно-Кассовый Чек [02:48:31]line ПРОДАЖА [02:48:31]line ТРК (МРК, ГНК) : 42 [02:48:31]line Товар: 2710124130 [02:48:31]line Аи-92-К-5 [02:48:31]line 6.030 * 66.40 [02:48:31]line = 400.39 [02:48:31]line НДС 12% НСП 1% [02:48:31]line > о реализуемом товаре [02:48:31]line ИТОГО: 400.39 [02:48:31]line НСП 1% : 3.54 [02:48:31]line НДС 12% : 42.52 [02:48:31]line Наличными: 0.00 [02:48:31]line Безнал.: 400.39 [02:48:31]line Место: АЗС № 120 "Партнер Нефть" [02:48:31]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [02:48:31]line СНО: Общий режим [02:48:31]line Чек 14 22.06.2024 02:48 [02:48:31]line Смена: 356 ФФД: 1.0 [02:48:31]line ЗНМ: 0300000164 [02:48:31]line РНМ: 0000000000092785 [02:48:31]line Версия ККМ: 001 [02:48:31]line Платежная система: Бакай Банк [02:48:31]line ФМ: 0000000000875093 [02:48:31]line ФД: 104281 [02:48:31]line ФПД: 62526123204012 [02:48:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T024832&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104281&fm=62526123204012&tin=02508201610067®Number=0000000000092785&sum=40039 [02:48:32]OFD Sender: Processing packet 104281 [packets to send 17, broken 16] [02:48:32]ProducePacketName [02:48:32]name=ofd_packets/00104281 [02:48:32]OFD Sender: To server: pG, [02:48:32]CommunicateWithHost lk.salyk.kg:30040 [02:48:32]ConnectInit lk.salyk.kg [02:48:32]written 0, free lines is 4095 [02:48:32]Connected sock=11 [02: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 0F 01 00 00 21 33 07 01 9C 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 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 67 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 00 00 00 00 00 00 39 04 06 00 67 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 80 3B 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 38 DD FF 5C DD AC D2 9B 59 9D 8F E4 94 73 [02:48:32]Write to MH i2c: 01 00 00 B7 1D D4 [02:48:32]Write i2c OK [02:48:32]MH_I2C_Read... [02:48:32]Read from MH i2c: 01 [02:48:32]MH_I2C_Read... [02:48:32]Read from MH i2c: 01 07 00 [02:48:32]MH_I2C_Read... [02:48:32]Read from MH i2c: 01 07 00 B7 1D 00 00 00 00 00 EB 0C D2 [02:48:32]RasterBufferAndPrint [02:48:32]line [02:48:32]line [02:48:32]line [02:48:32]line [02:48:32]line [02:48:32]written 0, free lines is 3313 [02:48: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 03 81 47 00 28 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 59 97 01 00 F4 03 04 00 01 E2 75 66 B6 04 01 00 00 1A 1D 76 5C A0 A5 5E 9C [02:48:32]CommunicateWithHost err = 0 [02:48:32]CheckOFDResponse [02:48:32]1017 (14) - 77093643461234 [02:48:32]1041 (16) - 0000000000875093 [02:48:32]1040 (4) - 104281 [02:48:32]1012 (4) - 21.06.2024 20:26 [02:48:32]1206 (1) - 0 [02:48:32]OFD Sender: Remove packet 104281 [02:48:32]ProducePacketName [02:48:32]name=ofd_packets/00104281 [02:48:32]NVStorageDeleteData [02:48:32]MH_Cut [02:48:32]Write to MH i2c: D1 01 00 BE 1D 01 AD [02:48:32]Write i2c OK [02:48:32]MH_I2C_Read... [02:48:32]Read from MH i2c: D1 [02:48:32]MH_I2C_Read... [02:48:32]Read from MH i2c: D1 01 00 [02:48:32]MH_I2C_Read... [02:48:32]Read from MH i2c: D1 01 00 BE 1D 00 AC [02:48:32]Write to MH i2c: 01 00 00 BF 1D DC [02:48:32]Write i2c OK [02:48:32]MH_I2C_Read... [02:48:32]OFD Sender: No OFD packet to send [02:48:33]*** Cut start [02:48:33]*** Partial cut [02:48:33]*** CUTSNS_PIN = 1 [02:48:33]*** CUTSNS_PIN = 0 [02:48:33]*** Brake cut motor [02:48:33]Read from MH i2c: 01 [02:48:33]MH_I2C_Read... [02:48:33]*** Stop cut motor [02:48:33]*** Cut end [02:48:33]Read from MH i2c: 01 07 00 [02:48:33]MH_I2C_Read... [02:48:33]Read from MH i2c: 01 07 00 BF 1D 00 00 00 00 00 FF 0F F1 [02:48:33]process_action close_receipt done [02:48:33]requested_data is exist [02:48:33]produce_requested_data [02:48:33]requested_item fm.sn is exist - process it [02:48:33]wFMCommunicate request_size=4 [02:48:33]MH_SAM_APDU [02:48:33]CAPDU: 80 11 00 00 [02:48:33]Write to MH i2c: E2 08 00 C0 1D 80 11 00 00 00 00 00 00 57 [02:48:33]Write i2c OK [02:48:33]MH_I2C_Read... [02:48:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:48:33]Read from MH i2c: E2 [02:48:33]MH_I2C_Read... [02:48:33]Read from MH i2c: E2 17 00 [02:48:33]MH_I2C_Read... [02:48:33]Read from MH i2c: E2 17 00 C0 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 AA [02:48:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [02:48:33]wFMCommunicate OK [02:48:33]requested_item fd.num is exist - process it [02:48:33]SAM_PROTO_GetFieldsCounters [02:48:33]wFMCommunicate request_size=4 [02:48:33]MH_SAM_APDU [02:48:33]CAPDU: 80 13 00 00 [02:48:33]Write to MH i2c: E2 08 00 C1 1D 80 13 00 00 00 00 00 00 5A [02:48:33]Write i2c OK [02:48:33]MH_I2C_Read... [02:48:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:48:34]Read from MH i2c: E2 [02:48:34]MH_I2C_Read... [02:48:34]Read from MH i2c: E2 62 00 [02:48:34]MH_I2C_Read... [02:48:34]Read from MH i2c: E2 62 00 C1 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 59 97 01 00 0E 04 04 00 64 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 01 [02: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 59 97 01 00 0E 04 04 00 64 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 [02:48:34]wFMCommunicate OK [02:48:34]SAM_PROTO_GetFieldsCounters done [02:48:34]requested_item shift.num is exist - process it [02:48:34]requested_item shift.opened is exist - process it [02:48:34]req_shift_opened [02:48:34]FM_GetShiftState [02:48:34]SAM_PROTO_GetShiftState [02:48:34]wFMCommunicate request_size=4 [02:48:34]MH_SAM_APDU [02:48:34]CAPDU: 80 13 01 00 [02:48:34]Write to MH i2c: E2 08 00 C2 1D 80 13 01 00 00 00 00 00 5C [02:48:34]Write i2c OK [02:48:34]MH_I2C_Read... [02:48:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:48:34]Read from MH i2c: E2 [02:48:34]MH_I2C_Read... [02:48:34]Read from MH i2c: E2 0E 00 [02:48:34]MH_I2C_Read... [02:48:34]Read from MH i2c: E2 0E 00 C2 1D 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 4E [02:48:34]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [02:48:34]wFMCommunicate OK [02:48:34]SAM_PROTO_GetShiftState done [02:48:34]FM_GetShiftState done [02:48:34]req_shift_opened done [02:48:34]requested_item shift.open_date is exist - process it [02:48:34]req_shift_open_date [02:48:34]req_shift_open_date done [02:48:34]produce_requested_data done [02:48:34]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104281,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [02:48:34]process_action_free close_receipt [02:48:34]json_value_free [02:48:34]json_value_free done [02:48:34]process_json_proto returns [02:48:34]Send response to host [02:48:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104281,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [02:48:34]free response buf [02:48:34]execute_script done [02:48:34]execute_script returns [02:48:34]free content buf [02:48:34]Sock 9.Close socket [02:48:34]Sock 9.Thread stoped [02:48:37]OFD Sender: No OFD packet to send [02:48:42]OFD Sender: No OFD packet to send [02:48:47]OFD Sender: No OFD packet to send [02:48:52]OFD Sender: No OFD packet to send [02:48:57]OFD Sender: No OFD packet to send [02:49:02]OFD Sender: No OFD packet to send [02:49:05]accept exits with 7 [02:49:05]New connection [02:49:05]New thread 3067616612 created [02:49:05]Thread 3067473252 joined [02:49:05]Waiting for new connection... [02:49:05] Sock 7.Parse request [02:49:05]Sock 7.Check first char [02:49:05]Sock 7.First char is OK [02:49:05]request: POST /json_proto HTTP/1.0 [02:49:05]Method: POST [02:49:05]URL: /json_proto [02:49:05]Method is POST - this is cgi request [02:49:05]url: /json_proto [02:49:05]query_string will be loaded in cgi processing [02:49:05]execute_cgi json_proto POST (null) [02:49:05]execute_cgi path=json_proto method=POST [02:49:05]POST find Content-Length [02:49:05]Host: 172.17.38.133:8080 [02:49:05]Content-Length: 824 [02:49:05]Content-Type: application/json [02:49:05] [02:49:05]POST finish read [02:49:05]Found Content-Length = 824 [02:49:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673770", "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.000, "sum" : 2187.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" : 2187.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:49:05]execute_script... [02:49:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673770", "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.000, "sum" : 2187.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" : 2187.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:49:05]POST & json_proto [02:49:05]process_json_proto [02:49:05]json parsed OK: [02:49:05]protocol is kg_v1.0 [02:49:05]action value=close_receipt [02:49:05]process_action close_receipt [02:49:05]cmd_close_receipt [02:49:05]MH_GetDate [02:49:05]Write to MH i2c: F0 00 00 C3 1D CF [02:49:05]Write i2c OK [02:49:05]MH_I2C_Read... [02:49:05]Read from MH i2c: F0 [02:49:05]MH_I2C_Read... [02:49:05]Read from MH i2c: F0 09 00 [02:49:05]MH_I2C_Read... [02:49:05]Read from MH i2c: F0 09 00 C3 1D 00 A3 3B 76 66 BD 8F 7C 64 BE [02:49:05]GetLastDocTimeStamp 1719024512 [02:49:05]current date 1719024547 [02:49:05]FM_GetShiftState [02:49:05]SAM_PROTO_GetShiftState [02:49:05]wFMCommunicate request_size=4 [02:49:05]MH_SAM_APDU [02:49:05]CAPDU: 80 13 01 00 [02:49:05]Write to MH i2c: E2 08 00 C4 1D 80 13 01 00 00 00 00 00 5E [02:49:05]Write i2c OK [02:49:05]MH_I2C_Read... [02:49:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:49:05]Read from MH i2c: E2 [02:49:05]MH_I2C_Read... [02:49:05]Read from MH i2c: E2 0E 00 [02:49:05]MH_I2C_Read... [02:49:05]Read from MH i2c: E2 0E 00 C4 1D 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 50 [02:49:05]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [02:49:05]wFMCommunicate OK [02:49:05]SAM_PROTO_GetShiftState done [02:49:05]FM_GetShiftState done [02:49:05]opened in 1719016176 [02:49:05]opened+sec_in_day 1719102576 [02:49:05]quantity*price = 218700 [02:49:05]sum+1 = 218701 [02:49:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2187.00 НСП 1% : 19.35 НДС 12% : 232.25 Наличными: 0.00 Безнал.: 2187.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 15 22.06.2024 02:49 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875093 ФД: 104282 ФПД: 101910242749707 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T024908&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104282&fm=101910242749707&tin=02508201610067®Number=0000000000092785&sum=218700 [02:49:06]StoreToDocumentArchive [02:49:06]shift 356 fd 104282 [02:49:06]save to /storage/0356/doc_00104282 [02:49:06]save last doc name /storage/0356/doc_00104282 to /storage/kkm_last_doc_name [02:49:06]save OK [02:49:06]Clear old archive folders... [02:49:06]ProcessDocumentItem done err = 0, tmpTLVsize=252 [02:49:06]tlvbuf is B6F4A1C0 [02:49:06]SAM_PROTO_ClearQueue [02:49:06]wFMCommunicate request_size=4 [02:49:06]MH_SAM_APDU [02:49:06]CAPDU: 80 09 00 00 [02:49:06]Write to MH i2c: E2 08 00 D1 1D 80 09 00 00 00 00 00 00 60 [02:49:06]Write i2c OK [02:49:06]MH_I2C_Read... [02:49:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:49:06]Read from MH i2c: E2 [02:49:06]MH_I2C_Read... [02:49:06]Read from MH i2c: E2 03 00 [02:49:06]MH_I2C_Read... [02:49:06]Read from MH i2c: E2 03 00 D1 1D 00 90 00 62 [02:49:06]RAPDU: 90 00 [02:49:06]wFMCommunicate OK [02:49:06]SAM_PROTO_ClearQueue done [02:49:06]KKMCreateOFDPacket [02:49:06]OFDProtocolAddRootSTLVToBuf [02:49:06]FM_MakeSignedData [02:49:06]FM_MakeSignedData [02:49:06]SAM_PROTO_SignData [02:49:06]wFMCommunicate request_size=4 [02:49:06]MH_SAM_APDU [02:49:06]CAPDU: 80 0D 01 02 [02:49:06]Write to MH i2c: E2 08 00 D2 1D 80 0D 01 02 00 00 00 00 68 [02:49:06]Write i2c OK [02:49:06]MH_I2C_Read... [02:49:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:49:06]Read from MH i2c: E2 [02:49:06]MH_I2C_Read... [02:49:06]Read from MH i2c: E2 03 00 [02:49:06]MH_I2C_Read... [02:49:06]Read from MH i2c: E2 03 00 D2 1D 00 90 00 63 [02:49:06]RAPDU: 90 00 [02:49:06]wFMCommunicate OK [02:49:06]wFMCommunicate request_size=255 [02:49:06]MH_SAM_APDU [02:49: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 30 75 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 4C 56 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 56 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 5A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4C 56 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 A4 3B 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 [02:49:06]Write to MH i2c: E2 02 01 D3 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 30 75 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 4C 56 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 56 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 5A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4C 56 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 A4 3B 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 00 00 A7 [02:49:06]Write i2c OK [02:49:06]MH_I2C_Read... [02:49:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:49:06]Read from MH i2c: E2 [02:49:06]MH_I2C_Read... [02:49:06]Read from MH i2c: E2 03 00 [02:49:06]MH_I2C_Read... [02:49:06]Read from MH i2c: E2 03 00 D3 1D 00 90 00 64 [02:49:06]RAPDU: 90 00 [02:49:06]wFMCommunicate OK [02:49:06]wFMCommunicate request_size=11 [02:49:06]MH_SAM_APDU [02:49:06]CAPDU: 80 0D 02 02 06 5C AF D3 D1 6D 0B [02:49:06]Write to MH i2c: E2 0E 00 D4 1D 80 0D 02 02 06 00 5C AF D3 D1 6D 0B 00 00 9E [02:49:06]Write i2c OK [02:49:06]MH_I2C_Read... [02:49:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:49:06]Read from MH i2c: E2 [02:49:06]MH_I2C_Read... [02:49:06]Read from MH i2c: E2 03 00 [02:49:06]MH_I2C_Read... [02:49:06]Read from MH i2c: E2 03 00 D4 1D 00 90 00 65 [02:49:06]RAPDU: 90 00 [02:49:06]wFMCommunicate OK [02:49:06]wFMCommunicate request_size=4 [02:49:06]MH_SAM_APDU [02:49:06]CAPDU: 80 0D 03 02 [02:49:06]Write to MH i2c: E2 08 00 D5 1D 80 0D 03 02 00 00 00 00 6D [02:49:06]Write i2c OK [02:49:06]MH_I2C_Read... [02:49:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:49:06]Read from MH i2c: E2 [02:49:06]MH_I2C_Read... [02:49:06]Read from MH i2c: E2 0B 00 [02:49:06]MH_I2C_Read... [02:49:06]Read from MH i2c: E2 0B 00 D5 1D 00 72 FF A3 AB 88 1F FA 35 90 00 03 [02:49:06]RAPDU: 72 FF A3 AB 88 1F FA 35 90 00 [02:49:06]wFMCommunicate OK [02:49:06]SAM_PROTO_SignData done [02:49:06]FM_MakeSignedData done [02:49:06]CreateOFDProtocolMessage [02:49:06]wFMCommunicate request_size=4 [02:49:06]MH_SAM_APDU [02:49:06]CAPDU: 80 11 00 00 [02:49:06]Write to MH i2c: E2 08 00 D6 1D 80 11 00 00 00 00 00 00 6D [02:49:06]Write i2c OK [02:49:06]MH_I2C_Read... [02:49:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:49:06]Read from MH i2c: E2 [02:49:06]MH_I2C_Read... [02:49:06]Read from MH i2c: E2 17 00 [02:49:06]MH_I2C_Read... [02:49:06]Read from MH i2c: E2 17 00 D6 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 C0 [02:49: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:49:06]wFMCommunicate OK [02:49:06]CreateOFDProtocolMessage done [02:49:06]OFDSenderStorePacket 104282 [02:49:06]StoreOFDPacket docnum=104282 [02:49: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 F1 95 08 01 1E 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 30 75 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 4C 56 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 56 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 5A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4C 56 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 A4 3B 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 5C AF D3 D1 6D 0B 72 FF A3 AB 88 1F FA 35 [02:49:06]CheckFolder [02:49:06]dirname=/storage/ofd_packets [02:49:06]CheckFolder done [02:49:06]ProducePacketName [02:49:06]name=ofd_packets/00104282 [02:49:06]NVStorageSaveData ofd_packets/00104282 [02:49:06]File name is /storage/ofd_packets/00104282 [02:49:06]Write 302 bytes [02:49:06]NVStorageSaveData done [02:49:06]OFDSenderStorePacket done [02:49:06]KKMCreateOFDPacket done [02:49:06]NVStorageSaveData kkm_last_timestamp [02:49:06]File name is /storage/kkm_last_timestamp [02:49:06]Write 4 bytes [02:49:06]NVStorageSaveData done [02:49:06]ExternCall_PrintAddStr [02:49:06]wPrintStart [02:49:06]Write to MH i2c: 01 00 00 D7 1D F4 [02:49:06]Write i2c OK [02:49:06]MH_I2C_Read... [02:49:06]Read from MH i2c: 01 [02:49:06]MH_I2C_Read... [02:49:06]Read from MH i2c: 01 07 00 [02:49:06]MH_I2C_Read... [02:49:06]Read from MH i2c: 01 07 00 D7 1D 00 00 00 00 00 FF 0F 09 [02:49:06]RasterBufferAndPrint [02:49:06]line Счет N : (1)673770 [02:49:06]line ИНН: 02508201610067 [02:49:06]line Контрольно-Кассовый Чек [02:49:06]line ПРОДАЖА [02:49:06]line ТРК (МРК, ГНК) : 21 [02:49:06]line Товар: 2710194210 [02:49:06]line ДТ(л)-К-5 [02:49:06]line 30.000 * 72.90 [02:49:06]line = 2187.00 [02:49:06]line НДС 12% НСП 1% [02:49:06]line > о реализуемом товаре [02:49:06]line ИТОГО: 2187.00 [02:49:06]line НСП 1% : 19.35 [02:49:06]line НДС 12% : 232.25 [02:49:06]line Наличными: 0.00 [02:49:06]line Безнал.: 2187.00 [02:49:06]line Место: АЗС № 120 "Партнер Нефть" [02:49:06]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [02:49:06]line СНО: Общий режим [02:49:06]line Чек 15 22.06.2024 02:49 [02:49:06]line Смена: 356 ФФД: 1.0 [02:49:06]line ЗНМ: 0300000164 [02:49:06]line РНМ: 0000000000092785 [02:49:06]line Версия ККМ: 001 [02:49:06]line Платежная система: Бакай Банк [02:49:06]line ФМ: 0000000000875093 [02:49:06]line ФД: 104282 [02:49:06]line ФПД: 101910242749707 [02:49:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T024908&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104282&fm=101910242749707&tin=02508201610067®Number=0000000000092785&sum=218700 [02:49:07]written 0, free lines is 4095 [02:49:07]OFD Sender: Processing packet 104282 [packets to send 17, broken 16] [02:49:07]ProducePacketName [02:49:07]name=ofd_packets/00104282 [02:49:07]OFD Sender: To server: pG, [02:49:07]CommunicateWithHost lk.salyk.kg:30040 [02:49:07]ConnectInit lk.salyk.kg [02:49:07]Connected sock=10 [02:49:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 F1 95 08 01 1E 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 30 75 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 4C 56 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 56 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 5A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4C 56 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 A4 3B 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 5C AF D3 D1 6D 0B 72 FF A3 AB 88 1F FA 35 [02:49:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 7D D2 47 00 74 D1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 5A 97 01 00 F4 03 04 00 24 E2 75 66 B6 04 01 00 00 18 25 40 91 AE 3A 12 E9 [02:49:07]CommunicateWithHost err = 0 [02:49:07]CheckOFDResponse [02:49:07]1017 (14) - 77093643461234 [02:49:07]1041 (16) - 0000000000875093 [02:49:07]1040 (4) - 104282 [02:49:07]1012 (4) - 21.06.2024 20:27 [02:49:07]1206 (1) - 0 [02:49:07]OFD Sender: Remove packet 104282 [02:49:07]ProducePacketName [02:49:07]name=ofd_packets/00104282 [02:49:07]NVStorageDeleteData [02:49:07]Write to MH i2c: 01 00 00 01 1E 1F [02:49:07]Write i2c OK [02:49:07]MH_I2C_Read... [02:49:07]Read from MH i2c: 01 [02:49:07]MH_I2C_Read... [02:49:07]Read from MH i2c: 01 07 00 [02:49:07]MH_I2C_Read... [02:49:07]Read from MH i2c: 01 07 00 01 1E 00 00 00 00 00 E9 0C 1B [02:49:07]RasterBufferAndPrint [02:49:07]line [02:49:07]line [02:49:07]line [02:49:07]line [02:49:07]line [02:49:07]written 0, free lines is 3311 [02:49:07]MH_Cut [02:49:07]Write to MH i2c: D1 01 00 08 1E 01 F8 [02:49:07]Write i2c OK [02:49:07]MH_I2C_Read... [02:49:07]Read from MH i2c: D1 [02:49:07]MH_I2C_Read... [02:49:07]Read from MH i2c: D1 01 00 [02:49:07]MH_I2C_Read... [02:49:07]Read from MH i2c: D1 01 00 08 1E 00 F7 [02:49:07]Write to MH i2c: 01 00 00 09 1E 27 [02:49:07]Write i2c OK [02:49:07]MH_I2C_Read... [02:49:08]OFD Sender: No OFD packet to send [02:49:08]*** Cut start [02:49:08]*** Partial cut [02:49:08]*** CUTSNS_PIN = 1 [02:49:08]*** CUTSNS_PIN = 0 [02:49:08]*** Brake cut motor [02:49:09]Read from MH i2c: 01 [02:49:09]MH_I2C_Read... [02:49:09]*** Stop cut motor [02:49:09]*** Cut end [02:49:09]Read from MH i2c: 01 07 00 [02:49:09]MH_I2C_Read... [02:49:09]Read from MH i2c: 01 07 00 09 1E 00 00 00 00 00 FF 0F 3C [02:49:09]process_action close_receipt done [02:49:09]requested_data is exist [02:49:09]produce_requested_data [02:49:09]requested_item fm.sn is exist - process it [02:49:09]wFMCommunicate request_size=4 [02:49:09]MH_SAM_APDU [02:49:09]CAPDU: 80 11 00 00 [02:49:09]Write to MH i2c: E2 08 00 0A 1E 80 11 00 00 00 00 00 00 A2 [02:49:09]Write i2c OK [02:49:09]MH_I2C_Read... [02:49:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:49:09]Read from MH i2c: E2 [02:49:09]MH_I2C_Read... [02:49:09]Read from MH i2c: E2 17 00 [02:49:09]MH_I2C_Read... [02:49:09]Read from MH i2c: E2 17 00 0A 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 F5 [02:49:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [02:49:09]wFMCommunicate OK [02:49:09]requested_item fd.num is exist - process it [02:49:09]SAM_PROTO_GetFieldsCounters [02:49:09]wFMCommunicate request_size=4 [02:49:09]MH_SAM_APDU [02:49:09]CAPDU: 80 13 00 00 [02:49:09]Write to MH i2c: E2 08 00 0B 1E 80 13 00 00 00 00 00 00 A5 [02:49:09]Write i2c OK [02:49:09]MH_I2C_Read... [02:49:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:49:09]Read from MH i2c: E2 [02:49:09]MH_I2C_Read... [02:49:09]Read from MH i2c: E2 62 00 [02:49:09]MH_I2C_Read... [02:49:09]Read from MH i2c: E2 62 00 0B 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 5A 97 01 00 0E 04 04 00 64 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 50 [02:49:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 [02:49:09]wFMCommunicate OK [02:49:09]SAM_PROTO_GetFieldsCounters done [02:49:09]requested_item shift.num is exist - process it [02:49:09]requested_item shift.opened is exist - process it [02:49:09]req_shift_opened [02:49:09]FM_GetShiftState [02:49:09]SAM_PROTO_GetShiftState [02:49:09]wFMCommunicate request_size=4 [02:49:09]MH_SAM_APDU [02:49:09]CAPDU: 80 13 01 00 [02:49:09]Write to MH i2c: E2 08 00 0C 1E 80 13 01 00 00 00 00 00 A7 [02:49:09]Write i2c OK [02:49:09]MH_I2C_Read... [02:49:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:49:09]Read from MH i2c: E2 [02:49:09]MH_I2C_Read... [02:49:09]Read from MH i2c: E2 0E 00 [02:49:09]MH_I2C_Read... [02:49:09]Read from MH i2c: E2 0E 00 0C 1E 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 99 [02:49:09]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [02:49:09]wFMCommunicate OK [02:49:09]SAM_PROTO_GetShiftState done [02:49:09]FM_GetShiftState done [02:49:09]req_shift_opened done [02:49:09]requested_item shift.open_date is exist - process it [02:49:09]req_shift_open_date [02:49:09]req_shift_open_date done [02:49:09]produce_requested_data done [02:49:09]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104282,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [02:49:09]process_action_free close_receipt [02:49:09]json_value_free [02:49:09]json_value_free done [02:49:09]process_json_proto returns [02:49:09]Send response to host [02:49:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104282,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [02:49:09]free response buf [02:49:09]execute_script done [02:49:09]execute_script returns [02:49:09]free content buf [02:49:09]Sock 7.Close socket [02:49:09]Sock 7.Thread stoped [02:49:13]OFD Sender: No OFD packet to send [02:49:18]OFD Sender: No OFD packet to send [02:49:23]OFD Sender: No OFD packet to send [02:49:28]OFD Sender: No OFD packet to send [02:49:33]OFD Sender: No OFD packet to send [02:49:38]OFD Sender: No OFD packet to send [02:49:43]OFD Sender: No OFD packet to send [02:49:48]OFD Sender: No OFD packet to send [02:49:53]OFD Sender: No OFD packet to send [02:49:58]OFD Sender: No OFD packet to send [02:50:03]OFD Sender: No OFD packet to send [02:50:08]OFD Sender: No OFD packet to send [02:50:13]OFD Sender: No OFD packet to send [02:50:18]OFD Sender: No OFD packet to send [02:50:23]OFD Sender: No OFD packet to send [02:50:28]OFD Sender: No OFD packet to send [02:50:33]OFD Sender: No OFD packet to send [02:50:38]OFD Sender: No OFD packet to send [02:50:43]OFD Sender: No OFD packet to send [02:50:48]OFD Sender: No OFD packet to send [02:50:53]OFD Sender: No OFD packet to send [02:50:58]OFD Sender: No OFD packet to send [02:51:03]OFD Sender: No OFD packet to send [02:51:08]OFD Sender: No OFD packet to send [02:51:13]OFD Sender: No OFD packet to send [02:51:18]OFD Sender: No OFD packet to send [02:51:23]OFD Sender: No OFD packet to send [02:51:28]OFD Sender: No OFD packet to send [02:51:33]OFD Sender: No OFD packet to send [02:51:38]OFD Sender: No OFD packet to send [02:51:43]OFD Sender: No OFD packet to send [02:51:48]OFD Sender: No OFD packet to send [02:51:53]OFD Sender: No OFD packet to send [02:51:58]OFD Sender: No OFD packet to send [02:52:03]OFD Sender: No OFD packet to send [02:52:08]OFD Sender: No OFD packet to send [02:52:13]OFD Sender: No OFD packet to send [02:52:18]OFD Sender: No OFD packet to send [02:52:23]OFD Sender: No OFD packet to send [02:52:28]OFD Sender: No OFD packet to send [02:52:33]OFD Sender: No OFD packet to send [02:52:38]OFD Sender: No OFD packet to send [02:52:43]OFD Sender: No OFD packet to send [02:52:48]OFD Sender: No OFD packet to send [02:52:53]OFD Sender: No OFD packet to send [02:52:58]OFD Sender: No OFD packet to send [02:53:03]OFD Sender: No OFD packet to send [02:53:08]OFD Sender: No OFD packet to send [02:53:13]OFD Sender: No OFD packet to send [02:53:18]OFD Sender: No OFD packet to send [02:53:23]OFD Sender: No OFD packet to send [02:53:28]OFD Sender: No OFD packet to send [02:53:33]OFD Sender: No OFD packet to send [02:53:38]OFD Sender: No OFD packet to send [02:53:43]OFD Sender: No OFD packet to send [02:53:48]OFD Sender: No OFD packet to send [02:53:53]OFD Sender: No OFD packet to send [02:53:58]OFD Sender: No OFD packet to send [02:54:03]OFD Sender: No OFD packet to send [02:54:08]OFD Sender: No OFD packet to send [02:54:13]OFD Sender: No OFD packet to send [02:54:18]OFD Sender: No OFD packet to send [02:54:21]accept exits with 9 [02:54:21]New connection [02:54:21]New thread 3067473252 created [02:54:21]Thread 3067616612 joined [02:54:21]Waiting for new connection... [02:54:21] Sock 9.Parse request [02:54:21]Sock 9.Check first char [02:54:21]Sock 9.First char is OK [02:54:21]request: POST /json_proto HTTP/1.0 [02:54:21]Method: POST [02:54:21]URL: /json_proto [02:54:21]Method is POST - this is cgi request [02:54:21]url: /json_proto [02:54:21]query_string will be loaded in cgi processing [02:54:21]execute_cgi json_proto POST (null) [02:54:21]execute_cgi path=json_proto method=POST [02:54:21]POST find Content-Length [02:54:21]Host: 172.17.38.133:8080 [02:54:21]Content-Length: 800 [02:54:21]Content-Type: application/json [02:54:21] [02:54:21]POST finish read [02:54:21]Found Content-Length = 800 [02:54:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673772", "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 }]} ], "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" : 350.59 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:54:21]execute_script... [02:54: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)673772", "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 }]} ], "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" : 350.59 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:54:21]POST & json_proto [02:54:21]process_json_proto [02:54:21]json parsed OK: [02:54:21]protocol is kg_v1.0 [02:54:21]action value=close_receipt [02:54:21]process_action close_receipt [02:54:21]cmd_close_receipt [02:54:21]MH_GetDate [02:54:21]Write to MH i2c: F0 00 00 0D 1E 1A [02:54:21]Write i2c OK [02:54:21]MH_I2C_Read... [02:54:21]Read from MH i2c: F0 [02:54:21]MH_I2C_Read... [02:54:21]Read from MH i2c: F0 09 00 [02:54:21]MH_I2C_Read... [02:54:21]Read from MH i2c: F0 09 00 0D 1E 00 E0 3C 76 66 BD 8F 7C 64 47 [02:54:21]GetLastDocTimeStamp 1719024548 [02:54:21]current date 1719024864 [02:54:21]FM_GetShiftState [02:54:21]SAM_PROTO_GetShiftState [02:54:21]wFMCommunicate request_size=4 [02:54:21]MH_SAM_APDU [02:54:21]CAPDU: 80 13 01 00 [02:54:21]Write to MH i2c: E2 08 00 0E 1E 80 13 01 00 00 00 00 00 A9 [02:54:21]Write i2c OK [02:54:21]MH_I2C_Read... [02:54:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:54:21]Read from MH i2c: E2 [02:54:21]MH_I2C_Read... [02:54:21]Read from MH i2c: E2 0E 00 [02:54:21]MH_I2C_Read... [02:54:21]Read from MH i2c: E2 0E 00 0E 1E 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 9B [02:54:21]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [02:54:21]wFMCommunicate OK [02:54:21]SAM_PROTO_GetShiftState done [02:54:21]FM_GetShiftState done [02:54:21]opened in 1719016176 [02:54:21]opened+sec_in_day 1719102576 [02:54:21]quantity*price = 35059 [02:54:21]sum+1 = 35060 [02:54:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 350.59 НСП 1% : 3.10 НДС 12% : 37.23 Наличными: 0.00 Безнал.: 350.59 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 16 22.06.2024 02:54 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875093 ФД: 104283 ФПД: 187372668435515 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T025424&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104283&fm=187372668435515&tin=02508201610067®Number=0000000000092785&sum=35059 [02:54:23]StoreToDocumentArchive [02:54:23]shift 356 fd 104283 [02:54:23]save to /storage/0356/doc_00104283 [02:54:23]save last doc name /storage/0356/doc_00104283 to /storage/kkm_last_doc_name [02:54:23]save OK [02:54:23]Clear old archive folders... [02:54:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [02:54:23]tlvbuf is 0069CC10 [02:54:23]SAM_PROTO_ClearQueue [02:54:23]wFMCommunicate request_size=4 [02:54:23]MH_SAM_APDU [02:54:23]CAPDU: 80 09 00 00 [02:54:23]Write to MH i2c: E2 08 00 1B 1E 80 09 00 00 00 00 00 00 AB [02:54:23]Write i2c OK [02:54:23]MH_I2C_Read... [02:54:23]Read from MH i2c: E2 [02:54:23]MH_I2C_Read... [02:54:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:54:23]Read from MH i2c: E2 03 00 [02:54:23]MH_I2C_Read... [02:54:23]Read from MH i2c: E2 03 00 1B 1E 00 90 00 AD [02:54:23]RAPDU: 90 00 [02:54:23]wFMCommunicate OK [02:54:23]SAM_PROTO_ClearQueue done [02:54:23]KKMCreateOFDPacket [02:54:23]OFDProtocolAddRootSTLVToBuf [02:54:23]FM_MakeSignedData [02:54:23]FM_MakeSignedData [02:54:23]SAM_PROTO_SignData [02:54:23]wFMCommunicate request_size=4 [02:54:23]MH_SAM_APDU [02:54:23]CAPDU: 80 0D 01 02 [02:54:23]Write to MH i2c: E2 08 00 1C 1E 80 0D 01 02 00 00 00 00 B3 [02:54:23]Write i2c OK [02:54:23]MH_I2C_Read... [02:54:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:54:23]Read from MH i2c: E2 [02:54:23]MH_I2C_Read... [02:54:23]Read from MH i2c: E2 03 00 [02:54:23]MH_I2C_Read... [02:54:23]Read from MH i2c: E2 03 00 1C 1E 00 90 00 AE [02:54:23]RAPDU: 90 00 [02:54:23]wFMCommunicate OK [02:54:23]wFMCommunicate request_size=255 [02:54:23]MH_SAM_APDU [02:54:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 F3 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F3 88 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 E0 3C 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 AA [02:54:23]Write to MH i2c: E2 02 01 1D 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 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 F3 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F3 88 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 E0 3C 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 AA 00 00 CB [02:54:23]Write i2c OK [02:54:23]MH_I2C_Read... [02:54:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:54:23]Read from MH i2c: E2 [02:54:23]MH_I2C_Read... [02:54:23]Read from MH i2c: E2 03 00 [02:54:23]MH_I2C_Read... [02:54:23]Read from MH i2c: E2 03 00 1D 1E 00 90 00 AF [02:54:23]RAPDU: 90 00 [02:54:23]wFMCommunicate OK [02:54:23]wFMCommunicate request_size=10 [02:54:23]MH_SAM_APDU [02:54:23]CAPDU: 80 0D 02 02 05 6A 19 57 BC 3B [02:54:23]Write to MH i2c: E2 0D 00 1E 1E 80 0D 02 02 05 00 6A 19 57 BC 3B 00 00 91 [02:54:23]Write i2c OK [02:54:23]MH_I2C_Read... [02:54:23]OFD Sender: No OFD packet to send [02:54:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:54:23]Read from MH i2c: E2 [02:54:23]MH_I2C_Read... [02:54:23]Read from MH i2c: E2 03 00 [02:54:23]MH_I2C_Read... [02:54:23]Read from MH i2c: E2 03 00 1E 1E 00 90 00 B0 [02:54:23]RAPDU: 90 00 [02:54:23]wFMCommunicate OK [02:54:23]wFMCommunicate request_size=4 [02:54:23]MH_SAM_APDU [02:54:23]CAPDU: 80 0D 03 02 [02:54:23]Write to MH i2c: E2 08 00 1F 1E 80 0D 03 02 00 00 00 00 B8 [02:54:23]Write i2c OK [02:54:23]MH_I2C_Read... [02:54:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:54:23]Read from MH i2c: E2 [02:54:23]MH_I2C_Read... [02:54:23]Read from MH i2c: E2 0B 00 [02:54:23]MH_I2C_Read... [02:54:23]Read from MH i2c: E2 0B 00 1F 1E 00 6F A4 F1 42 59 9B 7A D0 90 00 3D [02:54:23]RAPDU: 6F A4 F1 42 59 9B 7A D0 90 00 [02:54:23]wFMCommunicate OK [02:54:23]SAM_PROTO_SignData done [02:54:23]FM_MakeSignedData done [02:54:23]CreateOFDProtocolMessage [02:54:23]wFMCommunicate request_size=4 [02:54:23]MH_SAM_APDU [02:54:23]CAPDU: 80 11 00 00 [02:54:23]Write to MH i2c: E2 08 00 20 1E 80 11 00 00 00 00 00 00 B8 [02:54:23]Write i2c OK [02:54:23]MH_I2C_Read... [02:54:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:54:23]Read from MH i2c: E2 [02:54:23]MH_I2C_Read... [02:54:23]Read from MH i2c: E2 17 00 [02:54:23]MH_I2C_Read... [02:54:23]Read from MH i2c: E2 17 00 20 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 0B [02:54:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [02:54:23]wFMCommunicate OK [02:54:23]CreateOFDProtocolMessage done [02:54:23]OFDSenderStorePacket 104283 [02:54:23]StoreOFDPacket docnum=104283 [02:54: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 AD 37 07 01 4F EB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 F3 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F3 88 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 E0 3C 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 AA 6A 19 57 BC 3B 6F A4 F1 42 59 9B 7A D0 [02:54:23]CheckFolder [02:54:23]dirname=/storage/ofd_packets [02:54:23]CheckFolder done [02:54:23]ProducePacketName [02:54:23]name=ofd_packets/00104283 [02:54:23]NVStorageSaveData ofd_packets/00104283 [02:54:23]File name is /storage/ofd_packets/00104283 [02:54:23]Write 301 bytes [02:54:23]NVStorageSaveData done [02:54:23]OFDSenderStorePacket done [02:54:23]KKMCreateOFDPacket done [02:54:23]NVStorageSaveData kkm_last_timestamp [02:54:23]File name is /storage/kkm_last_timestamp [02:54:23]Write 4 bytes [02:54:23]NVStorageSaveData done [02:54:23]ExternCall_PrintAddStr [02:54:23]wPrintStart [02:54:23]Write to MH i2c: 01 00 00 21 1E 3F [02:54:23]Write i2c OK [02:54:23]MH_I2C_Read... [02:54:23]Read from MH i2c: 01 [02:54:23]MH_I2C_Read... [02:54:23]Read from MH i2c: 01 07 00 [02:54:23]MH_I2C_Read... [02:54:23]Read from MH i2c: 01 07 00 21 1E 00 00 00 00 00 FF 0F 54 [02:54:23]RasterBufferAndPrint [02:54:23]line Счет N : (1)673772 [02:54:23]line ИНН: 02508201610067 [02:54:23]line Контрольно-Кассовый Чек [02:54:23]line ПРОДАЖА [02:54:23]line ТРК (МРК, ГНК) : 42 [02:54:23]line Товар: 2710124130 [02:54:23]line Аи-92-К-5 [02:54:23]line 5.280 * 66.40 [02:54:23]line = 350.59 [02:54:23]line НДС 12% НСП 1% [02:54:23]line > о реализуемом товаре [02:54:23]line ИТОГО: 350.59 [02:54:23]line НСП 1% : 3.10 [02:54:23]line НДС 12% : 37.23 [02:54:23]line Наличными: 0.00 [02:54:23]line Безнал.: 350.59 [02:54:23]line Место: АЗС № 120 "Партнер Нефть" [02:54:23]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [02:54:23]line СНО: Общий режим [02:54:23]line Чек 16 22.06.2024 02:54 [02:54:23]line Смена: 356 ФФД: 1.0 [02:54:23]line ЗНМ: 0300000164 [02:54:23]line РНМ: 0000000000092785 [02:54:23]line Версия ККМ: 001 [02:54:23]line Платежная система: O! деньги [02:54:23]line ФМ: 0000000000875093 [02:54:23]line ФД: 104283 [02:54:23]line ФПД: 187372668435515 [02:54:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T025424&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104283&fm=187372668435515&tin=02508201610067®Number=0000000000092785&sum=35059 [02:54:23]OFD Sender: Processing packet 104283 [packets to send 17, broken 16] [02:54:23]ProducePacketName [02:54:23]name=ofd_packets/00104283 [02:54:23]OFD Sender: To server: pG, [02:54:23]CommunicateWithHost lk.salyk.kg:30040 [02:54:23]ConnectInit lk.salyk.kg [02:54:23]written 0, free lines is 4095 [02:54:24]Connected sock=10 [02:54: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 AD 37 07 01 4F EB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 F3 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F3 88 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 E0 3C 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 AA 6A 19 57 BC 3B 6F A4 F1 42 59 9B 7A D0 [02:54: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 1C 23 47 00 25 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 5B 97 01 00 F4 03 04 00 61 E3 75 66 B6 04 01 00 00 F9 D8 C1 E7 28 C0 21 43 [02:54:24]CommunicateWithHost err = 0 [02:54:24]CheckOFDResponse [02:54:24]1017 (14) - 77093643461234 [02:54:24]1041 (16) - 0000000000875093 [02:54:24]1040 (4) - 104283 [02:54:24]1012 (4) - 21.06.2024 20:32 [02:54:24]1206 (1) - 0 [02:54:24]OFD Sender: Remove packet 104283 [02:54:24]ProducePacketName [02:54:24]name=ofd_packets/00104283 [02:54:24]NVStorageDeleteData [02:54:24]Write to MH i2c: 01 00 00 4B 1E 69 [02:54:24]Write i2c OK [02:54:24]MH_I2C_Read... [02:54:24]Read from MH i2c: 01 [02:54:24]MH_I2C_Read... [02:54:24]Read from MH i2c: 01 07 00 [02:54:24]MH_I2C_Read... [02:54:24]Read from MH i2c: 01 07 00 4B 1E 00 00 00 00 00 E6 0C 62 [02:54:24]RasterBufferAndPrint [02:54:24]line [02:54:24]line [02:54:24]line [02:54:24]line [02:54:24]line [02:54:24]written 0, free lines is 3309 [02:54:24]MH_Cut [02:54:24]Write to MH i2c: D1 01 00 52 1E 01 42 [02:54:24]Write i2c OK [02:54:24]MH_I2C_Read... [02:54:24]Read from MH i2c: D1 [02:54:24]MH_I2C_Read... [02:54:24]Read from MH i2c: D1 01 00 [02:54:24]MH_I2C_Read... [02:54:24]Read from MH i2c: D1 01 00 52 1E 00 41 [02:54:24]Write to MH i2c: 01 00 00 53 1E 71 [02:54:24]Write i2c OK [02:54:24]MH_I2C_Read... [02:54:24]OFD Sender: No OFD packet to send [02:54:25]*** Cut start [02:54:25]*** Partial cut [02:54:25]*** CUTSNS_PIN = 1 [02:54:25]*** CUTSNS_PIN = 0 [02:54:25]*** Brake cut motor [02:54:25]Read from MH i2c: 01 [02:54:25]MH_I2C_Read... [02:54:25]*** Stop cut motor [02:54:25]*** Cut end [02:54:25]Read from MH i2c: 01 07 00 [02:54:25]MH_I2C_Read... [02:54:25]Read from MH i2c: 01 07 00 53 1E 00 00 00 00 00 FF 0F 86 [02:54:25]process_action close_receipt done [02:54:25]requested_data is exist [02:54:25]produce_requested_data [02:54:25]requested_item fm.sn is exist - process it [02:54:25]wFMCommunicate request_size=4 [02:54:25]MH_SAM_APDU [02:54:25]CAPDU: 80 11 00 00 [02:54:25]Write to MH i2c: E2 08 00 54 1E 80 11 00 00 00 00 00 00 EC [02:54:25]Write i2c OK [02:54:25]MH_I2C_Read... [02:54:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:54:25]Read from MH i2c: E2 [02:54:25]MH_I2C_Read... [02:54:25]Read from MH i2c: E2 17 00 [02:54:25]MH_I2C_Read... [02:54:25]Read from MH i2c: E2 17 00 54 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 3F [02:54:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [02:54:25]wFMCommunicate OK [02:54:25]requested_item fd.num is exist - process it [02:54:25]SAM_PROTO_GetFieldsCounters [02:54:25]wFMCommunicate request_size=4 [02:54:25]MH_SAM_APDU [02:54:25]CAPDU: 80 13 00 00 [02:54:25]Write to MH i2c: E2 08 00 55 1E 80 13 00 00 00 00 00 00 EF [02:54:25]Write i2c OK [02:54:25]MH_I2C_Read... [02:54:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:54:25]Read from MH i2c: E2 [02:54:25]MH_I2C_Read... [02:54:25]Read from MH i2c: E2 62 00 [02:54:25]MH_I2C_Read... [02:54:25]Read from MH i2c: E2 62 00 55 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 5B 97 01 00 0E 04 04 00 64 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 9E [02:54: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 5B 97 01 00 0E 04 04 00 64 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 [02:54:25]wFMCommunicate OK [02:54:25]SAM_PROTO_GetFieldsCounters done [02:54:25]requested_item shift.num is exist - process it [02:54:25]requested_item shift.opened is exist - process it [02:54:25]req_shift_opened [02:54:25]FM_GetShiftState [02:54:25]SAM_PROTO_GetShiftState [02:54:25]wFMCommunicate request_size=4 [02:54:25]MH_SAM_APDU [02:54:25]CAPDU: 80 13 01 00 [02:54:25]Write to MH i2c: E2 08 00 56 1E 80 13 01 00 00 00 00 00 F1 [02:54:25]Write i2c OK [02:54:25]MH_I2C_Read... [02:54:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:54:25]Read from MH i2c: E2 [02:54:25]MH_I2C_Read... [02:54:25]Read from MH i2c: E2 0E 00 [02:54:25]MH_I2C_Read... [02:54:25]Read from MH i2c: E2 0E 00 56 1E 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 E3 [02:54:25]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [02:54:25]wFMCommunicate OK [02:54:25]SAM_PROTO_GetShiftState done [02:54:25]FM_GetShiftState done [02:54:25]req_shift_opened done [02:54:25]requested_item shift.open_date is exist - process it [02:54:25]req_shift_open_date [02:54:25]req_shift_open_date done [02:54:25]produce_requested_data done [02:54:25]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104283,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [02:54:25]process_action_free close_receipt [02:54:25]json_value_free [02:54:25]json_value_free done [02:54:25]process_json_proto returns [02:54:25]Send response to host [02:54:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104283,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [02:54:25]free response buf [02:54:25]execute_script done [02:54:25]execute_script returns [02:54:25]free content buf [02:54:25]Sock 9.Close socket [02:54:25]Sock 9.Thread stoped [02:54:29]OFD Sender: No OFD packet to send [02:54:34]OFD Sender: No OFD packet to send [02:54:39]OFD Sender: No OFD packet to send [02:54:44]OFD Sender: No OFD packet to send [02:54:49]OFD Sender: No OFD packet to send [02:54:54]OFD Sender: No OFD packet to send [02:54:59]OFD Sender: No OFD packet to send [02:55:04]OFD Sender: No OFD packet to send [02:55:09]OFD Sender: No OFD packet to send [02:55:14]OFD Sender: No OFD packet to send [02:55:19]OFD Sender: No OFD packet to send [02:55:24]OFD Sender: No OFD packet to send [02:55:29]OFD Sender: No OFD packet to send [02:55:34]OFD Sender: No OFD packet to send [02:55:39]OFD Sender: No OFD packet to send [02:55:44]OFD Sender: No OFD packet to send [02:55:49]OFD Sender: No OFD packet to send [02:55:54]OFD Sender: No OFD packet to send [02:55:59]OFD Sender: No OFD packet to send [02:56:04]OFD Sender: No OFD packet to send [02:56:09]OFD Sender: No OFD packet to send [02:56:14]OFD Sender: No OFD packet to send [02:56:19]OFD Sender: No OFD packet to send [02:56:24]OFD Sender: No OFD packet to send [02:56:29]OFD Sender: No OFD packet to send [02:56:34]OFD Sender: No OFD packet to send [02:56:39]OFD Sender: No OFD packet to send [02:56:44]OFD Sender: No OFD packet to send [02:56:49]OFD Sender: No OFD packet to send [02:56:54]OFD Sender: No OFD packet to send [02:56:59]OFD Sender: No OFD packet to send [02:57:04]OFD Sender: No OFD packet to send [02:57:09]OFD Sender: No OFD packet to send [02:57:14]OFD Sender: No OFD packet to send [02:57:19]OFD Sender: No OFD packet to send [02:57:24]OFD Sender: No OFD packet to send [02:57:29]OFD Sender: No OFD packet to send [02:57:34]OFD Sender: No OFD packet to send [02:57:39]OFD Sender: No OFD packet to send [02:57:44]OFD Sender: No OFD packet to send [02:57:49]OFD Sender: No OFD packet to send [02:57:54]OFD Sender: No OFD packet to send [02:57:59]OFD Sender: No OFD packet to send [02:58:04]OFD Sender: No OFD packet to send [02:58:09]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:45]OFD Sender: No OFD packet to send [03:09:50]OFD Sender: No OFD packet to send [03:09:55]OFD Sender: No OFD packet to send [03:10:00]OFD Sender: No OFD packet to send [03:10:05]OFD Sender: No OFD packet to send [03:10:10]OFD Sender: No OFD packet to send [03:10:15]OFD Sender: No OFD packet to send [03:10:20]OFD Sender: No OFD packet to send [03:10:25]OFD Sender: No OFD packet to send [03:10:30]OFD Sender: No OFD packet to send [03:10:35]OFD Sender: No OFD packet to send [03:10:40]OFD Sender: No OFD packet to send [03:10:45]OFD Sender: No OFD packet to send [03:10:50]OFD Sender: No OFD packet to send [03:10:55]OFD Sender: No OFD packet to send [03:11:00]OFD Sender: No OFD packet to send [03:11:05]OFD Sender: No OFD packet to send [03:11:10]OFD Sender: No OFD packet to send [03:11:15]OFD Sender: No OFD packet to send [03:11:20]OFD Sender: No OFD packet to send [03:11:25]OFD Sender: No OFD packet to send [03:11:30]OFD Sender: No OFD packet to send [03:11:35]OFD Sender: No OFD packet to send [03:11:40]OFD Sender: No OFD packet to send [03:11:45]OFD Sender: No OFD packet to send [03:11:50]OFD Sender: No OFD packet to send [03:11:55]OFD Sender: No OFD packet to send [03:12:00]OFD Sender: No OFD packet to send [03:12:05]OFD Sender: No OFD packet to send [03:12:10]OFD Sender: No OFD packet to send [03:12:15]OFD Sender: No OFD packet to send [03:12:20]OFD Sender: No OFD packet to send [03:12:25]OFD Sender: No OFD packet to send [03:12:30]OFD Sender: No OFD packet to send [03:12:35]OFD Sender: No OFD packet to send [03:12:40]OFD Sender: No OFD packet to send [03:12:45]OFD Sender: No OFD packet to send [03:12:50]OFD Sender: No OFD packet to send [03:12:55]OFD Sender: No OFD packet to send [03:13:00]OFD Sender: No OFD packet to send [03:13:05]OFD Sender: No OFD packet to send [03:13:10]OFD Sender: No OFD packet to send [03:13:15]OFD Sender: No OFD packet to send [03:13:20]OFD Sender: No OFD packet to send [03:13:25]OFD Sender: No OFD packet to send [03:13:30]OFD Sender: No OFD packet to send [03:13:35]OFD Sender: No OFD packet to send [03:13:40]OFD Sender: No OFD packet to send [03:13:45]OFD Sender: No OFD packet to send [03:13:50]OFD Sender: No OFD packet to send [03:13:55]OFD Sender: No OFD packet to send [03:14:00]OFD Sender: No OFD packet to send [03:14:05]OFD Sender: No OFD packet to send [03:14:10]OFD Sender: No OFD packet to send [03:14:15]OFD Sender: No OFD packet to send [03:14:20]OFD Sender: No OFD packet to send [03:14:25]OFD Sender: No OFD packet to send [03:14:30]OFD Sender: No OFD packet to send [03:14:35]OFD Sender: No OFD packet to send [03:14:40]OFD Sender: No OFD packet to send [03:14:45]OFD Sender: No OFD packet to send [03:14:50]OFD Sender: No OFD packet to send [03:14:55]OFD Sender: No OFD packet to send [03:15:00]OFD Sender: No OFD packet to send [03:15:05]OFD Sender: No OFD packet to send [03:15:10]OFD Sender: No OFD packet to send [03:15:15]OFD Sender: No OFD packet to send [03:15:20]OFD Sender: No OFD packet to send [03:15:25]OFD Sender: No OFD packet to send [03:15:30]OFD Sender: No OFD packet to send [03:15:35]OFD Sender: No OFD packet to send [03:15:40]OFD Sender: No OFD packet to send [03:15:45]OFD Sender: No OFD packet to send [03:15:50]OFD Sender: No OFD packet to send [03:15:55]OFD Sender: No OFD packet to send [03:16:00]OFD Sender: No OFD packet to send [03:16:05]OFD Sender: No OFD packet to send [03:16:10]OFD Sender: No OFD packet to send [03:16:15]OFD Sender: No OFD packet to send [03:16:20]OFD Sender: No OFD packet to send [03:16:25]OFD Sender: No OFD packet to send [03:16:30]OFD Sender: No OFD packet to send [03:16:35]OFD Sender: No OFD packet to send [03:16:40]OFD Sender: No OFD packet to send [03:16:45]OFD Sender: No OFD packet to send [03:16:50]OFD Sender: No OFD packet to send [03:16:55]OFD Sender: No OFD packet to send [03:17:00]OFD Sender: No OFD packet to send [03:17:05]OFD Sender: No OFD packet to send [03:17:10]OFD Sender: No OFD packet to send [03:17:15]OFD Sender: No OFD packet to send [03:17:20]OFD Sender: No OFD packet to send [03:17:25]OFD Sender: No OFD packet to send [03:17:30]OFD Sender: No OFD packet to send [03:17:35]OFD Sender: No OFD packet to send [03:17:40]OFD Sender: No OFD packet to send [03:17:45]OFD Sender: No OFD packet to send [03:17:50]OFD Sender: No OFD packet to send [03:17:55]OFD Sender: No OFD packet to send [03:18:00]OFD Sender: No OFD packet to send [03:18:05]OFD Sender: No OFD packet to send [03:18:10]OFD Sender: No OFD packet to send [03:18:15]OFD Sender: No OFD packet to send [03:18:20]OFD Sender: No OFD packet to send [03:18:25]OFD Sender: No OFD packet to send [03:18:30]OFD Sender: No OFD packet to send [03:18:35]OFD Sender: No OFD packet to send [03:18:40]OFD Sender: No OFD packet to send [03:18: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